configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXxf86dga 1.1.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXxf86dga/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libXxf86dga/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libXxf86dga'
593 PACKAGE_TARNAME='libXxf86dga'
594 PACKAGE_VERSION='1.1.5'
595 PACKAGE_STRING='libXxf86dga 1.1.5'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXxf86dga/issues'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 XXF86DGA_LIBS
641 XXF86DGA_CFLAGS
642 XTMALLOC_ZERO_CFLAGS
643 XMALLOC_ZERO_CFLAGS
644 MALLOC_ZERO_CFLAGS
645 MAN_SUBSTS
646 XORG_MAN_PAGE
647 ADMIN_MAN_DIR
648 DRIVER_MAN_DIR
649 MISC_MAN_DIR
650 FILE_MAN_DIR
651 LIB_MAN_DIR
652 APP_MAN_DIR
653 ADMIN_MAN_SUFFIX
654 DRIVER_MAN_SUFFIX
655 MISC_MAN_SUFFIX
656 FILE_MAN_SUFFIX
657 LIB_MAN_SUFFIX
658 APP_MAN_SUFFIX
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 CPP
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 LIBTOOL
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_aix_soname
789 enable_dependency_tracking
790 with_gnu_ld
791 with_sysroot
792 enable_libtool_lock
793 enable_selective_werror
794 enable_strict_compilation
795 enable_malloc0returnsnull
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 LT_SYS_LIBRARY_PATH
806 CPP
807 PKG_CONFIG
808 PKG_CONFIG_PATH
809 PKG_CONFIG_LIBDIR
810 XXF86DGA_CFLAGS
811 XXF86DGA_LIBS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317 else
1318 ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures libXxf86dga 1.1.5 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libXxf86dga]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libXxf86dga 1.1.5:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --disable-selective-werror
1442 Turn off selective compiler errors. (default:
1443 enabled)
1444 --enable-strict-compilation
1445 Enable all warnings from compiler and make them
1446 errors (default: disabled)
1447 --enable-malloc0returnsnull
1448 malloc(0) returns NULL (default: auto)
1449
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-aix-soname=aix|svr4|both
1456 shared library versioning (aka "SONAME") variant to
1457 provide on AIX, [default=aix].
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1460 compiler's sysroot if not specified).
1461
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 LT_SYS_LIBRARY_PATH
1471 User-defined run-time library search path.
1472 CPP C preprocessor
1473 PKG_CONFIG path to pkg-config utility
1474 PKG_CONFIG_PATH
1475 directories to add to pkg-config's search path
1476 PKG_CONFIG_LIBDIR
1477 path overriding pkg-config's built-in search path
1478 XXF86DGA_CFLAGS
1479 C compiler flags for XXF86DGA, overriding pkg-config
1480 XXF86DGA_LIBS
1481 linker flags for XXF86DGA, overriding pkg-config
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXxf86dga/issues>.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 libXxf86dga configure 1.1.5
1550 generated by GNU Autoconf 2.69
1551
1552 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1557 fi
1558
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_link ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 test -x conftest$ac_exeext
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_link
1646
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 $4
1662 #include <$2>
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_header_compile
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_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1772 #define $2 innocuous_$2
1773
1774 /* System header to define __stub macros and hopefully few prototypes,
1775 which can conflict with char $2 (); below.
1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777 <limits.h> exists even on freestanding compilers. */
1778
1779 #ifdef __STDC__
1780 # include <limits.h>
1781 #else
1782 # include <assert.h>
1783 #endif
1784
1785 #undef $2
1786
1787 /* Override any GCC internal prototype to avoid an error.
1788 Use char because int might match the return type of a GCC
1789 builtin and then its argument prototype would still apply. */
1790 #ifdef __cplusplus
1791 extern "C"
1792 #endif
1793 char $2 ();
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined __stub_$2 || defined __stub___$2
1798 choke me
1799 #endif
1800
1801 int
1802 main ()
1803 {
1804 return $2 ();
1805 ;
1806 return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_link "$LINENO"; then :
1810 eval "$3=yes"
1811 else
1812 eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext \
1815 conftest$ac_exeext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_func
1823
1824 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1825 # ---------------------------------------------
1826 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1827 # accordingly.
1828 ac_fn_c_check_decl ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 as_decl_name=`echo $2|sed 's/ *(.*//'`
1832 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1834 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 $4
1841 int
1842 main ()
1843 {
1844 #ifndef $as_decl_name
1845 #ifdef __cplusplus
1846 (void) $as_decl_use;
1847 #else
1848 (void) $as_decl_name;
1849 #endif
1850 #endif
1851
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 eval "$3=yes"
1858 else
1859 eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 fi
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_decl
1869 cat >config.log <<_ACEOF
1870 This file contains any messages produced by compilers while
1871 running configure, to aid debugging if configure makes a mistake.
1872
1873 It was created by libXxf86dga $as_me 1.1.5, which was
1874 generated by GNU Autoconf 2.69. Invocation command line was
1875
1876 $ $0 $@
1877
1878 _ACEOF
1879 exec 5>>config.log
1880 {
1881 cat <<_ASUNAME
1882 ## --------- ##
1883 ## Platform. ##
1884 ## --------- ##
1885
1886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891
1892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1894
1895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1902
1903 _ASUNAME
1904
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 $as_echo "PATH: $as_dir"
1911 done
1912 IFS=$as_save_IFS
1913
1914 } >&5
1915
1916 cat >&5 <<_ACEOF
1917
1918
1919 ## ----------- ##
1920 ## Core tests. ##
1921 ## ----------- ##
1922
1923 _ACEOF
1924
1925
1926 # Keep a trace of the command line.
1927 # Strip out --no-create and --no-recursion so they do not pile up.
1928 # Strip out --silent because we don't want to record it for future runs.
1929 # Also quote any args containing shell meta-characters.
1930 # Make two passes to allow for proper duplicate-argument suppression.
1931 ac_configure_args=
1932 ac_configure_args0=
1933 ac_configure_args1=
1934 ac_must_keep_next=false
1935 for ac_pass in 1 2
1936 do
1937 for ac_arg
1938 do
1939 case $ac_arg in
1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942 | -silent | --silent | --silen | --sile | --sil)
1943 continue ;;
1944 *\'*)
1945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946 esac
1947 case $ac_pass in
1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949 2)
1950 as_fn_append ac_configure_args1 " '$ac_arg'"
1951 if test $ac_must_keep_next = true; then
1952 ac_must_keep_next=false # Got value, back to normal.
1953 else
1954 case $ac_arg in
1955 *=* | --config-cache | -C | -disable-* | --disable-* \
1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958 | -with-* | --with-* | -without-* | --without-* | --x)
1959 case "$ac_configure_args0 " in
1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961 esac
1962 ;;
1963 -* ) ac_must_keep_next=true ;;
1964 esac
1965 fi
1966 as_fn_append ac_configure_args " '$ac_arg'"
1967 ;;
1968 esac
1969 done
1970 done
1971 { ac_configure_args0=; unset ac_configure_args0;}
1972 { ac_configure_args1=; unset ac_configure_args1;}
1973
1974 # When interrupted or exit'd, cleanup temporary files, and complete
1975 # config.log. We remove comments because anyway the quotes in there
1976 # would cause problems or look ugly.
1977 # WARNING: Use '\'' to represent an apostrophe within the trap.
1978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979 trap 'exit_status=$?
1980 # Save into config.log some information that might help in debugging.
1981 {
1982 echo
1983
1984 $as_echo "## ---------------- ##
1985 ## Cache variables. ##
1986 ## ---------------- ##"
1987 echo
1988 # The following way of writing the cache mishandles newlines in values,
1989 (
1990 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in #(
1993 *${as_nl}*)
1994 case $ac_var in #(
1995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1996 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997 esac
1998 case $ac_var in #(
1999 _ | IFS | as_nl) ;; #(
2000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2001 *) { eval $ac_var=; unset $ac_var;} ;;
2002 esac ;;
2003 esac
2004 done
2005 (set) 2>&1 |
2006 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2007 *${as_nl}ac_space=\ *)
2008 sed -n \
2009 "s/'\''/'\''\\\\'\'''\''/g;
2010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011 ;; #(
2012 *)
2013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014 ;;
2015 esac |
2016 sort
2017 )
2018 echo
2019
2020 $as_echo "## ----------------- ##
2021 ## Output variables. ##
2022 ## ----------------- ##"
2023 echo
2024 for ac_var in $ac_subst_vars
2025 do
2026 eval ac_val=\$$ac_var
2027 case $ac_val in
2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 esac
2030 $as_echo "$ac_var='\''$ac_val'\''"
2031 done | sort
2032 echo
2033
2034 if test -n "$ac_subst_files"; then
2035 $as_echo "## ------------------- ##
2036 ## File substitutions. ##
2037 ## ------------------- ##"
2038 echo
2039 for ac_var in $ac_subst_files
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2048 fi
2049
2050 if test -s confdefs.h; then
2051 $as_echo "## ----------- ##
2052 ## confdefs.h. ##
2053 ## ----------- ##"
2054 echo
2055 cat confdefs.h
2056 echo
2057 fi
2058 test "$ac_signal" != 0 &&
2059 $as_echo "$as_me: caught signal $ac_signal"
2060 $as_echo "$as_me: exit $exit_status"
2061 } >&5
2062 rm -f core *.core core.conftest.* &&
2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 exit $exit_status
2065 ' 0
2066 for ac_signal in 1 2 13 15; do
2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2068 done
2069 ac_signal=0
2070
2071 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2072 rm -f -r conftest* confdefs.h
2073
2074 $as_echo "/* confdefs.h */" > confdefs.h
2075
2076 # Predefined preprocessor variables.
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_STRING "$PACKAGE_STRING"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_URL "$PACKAGE_URL"
2100 _ACEOF
2101
2102
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 ac_site_file1=NONE
2106 ac_site_file2=NONE
2107 if test -n "$CONFIG_SITE"; then
2108 # We do not want a PATH search for config.site.
2109 case $CONFIG_SITE in #((
2110 -*) ac_site_file1=./$CONFIG_SITE;;
2111 */*) ac_site_file1=$CONFIG_SITE;;
2112 *) ac_site_file1=./$CONFIG_SITE;;
2113 esac
2114 elif test "x$prefix" != xNONE; then
2115 ac_site_file1=$prefix/share/config.site
2116 ac_site_file2=$prefix/etc/config.site
2117 else
2118 ac_site_file1=$ac_default_prefix/share/config.site
2119 ac_site_file2=$ac_default_prefix/etc/config.site
2120 fi
2121 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2122 do
2123 test "x$ac_site_file" = xNONE && continue
2124 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2126 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2127 sed 's/^/| /' "$ac_site_file" >&5
2128 . "$ac_site_file" \
2129 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 as_fn_error $? "failed to load site script $ac_site_file
2132 See \`config.log' for more details" "$LINENO" 5; }
2133 fi
2134 done
2135
2136 if test -r "$cache_file"; then
2137 # Some versions of bash will fail to source /dev/null (special files
2138 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2139 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141 $as_echo "$as_me: loading cache $cache_file" >&6;}
2142 case $cache_file in
2143 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2144 *) . "./$cache_file";;
2145 esac
2146 fi
2147 else
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149 $as_echo "$as_me: creating cache $cache_file" >&6;}
2150 >$cache_file
2151 fi
2152
2153 # Check that the precious variables saved in the cache have kept the same
2154 # value.
2155 ac_cache_corrupted=false
2156 for ac_var in $ac_precious_vars; do
2157 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2158 eval ac_new_set=\$ac_env_${ac_var}_set
2159 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2160 eval ac_new_val=\$ac_env_${ac_var}_value
2161 case $ac_old_set,$ac_new_set in
2162 set,)
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2164 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2165 ac_cache_corrupted=: ;;
2166 ,set)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,);;
2171 *)
2172 if test "x$ac_old_val" != "x$ac_new_val"; then
2173 # differences in whitespace do not lead to failure.
2174 ac_old_val_w=`echo x $ac_old_val`
2175 ac_new_val_w=`echo x $ac_new_val`
2176 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2178 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2179 ac_cache_corrupted=:
2180 else
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2182 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2183 eval $ac_var=\$ac_old_val
2184 fi
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2186 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2188 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2189 fi;;
2190 esac
2191 # Pass precious variables to config.status.
2192 if test "$ac_new_set" = set; then
2193 case $ac_new_val in
2194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2195 *) ac_arg=$ac_var=$ac_new_val ;;
2196 esac
2197 case " $ac_configure_args " in
2198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2199 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2200 esac
2201 fi
2202 done
2203 if $ac_cache_corrupted; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2207 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2208 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2209 fi
2210 ## -------------------- ##
2211 ## Main body of script. ##
2212 ## -------------------- ##
2213
2214 ac_ext=c
2215 ac_cpp='$CPP $CPPFLAGS'
2216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219
2220
2221
2222 ac_config_headers="$ac_config_headers src/config.h"
2223
2224
2225 # Initialize Automake
2226 am__api_version='1.15'
2227
2228 ac_aux_dir=
2229 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2242 fi
2243 done
2244 if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246 fi
2247
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
2256
2257 # Find a good install program. We prefer a C program (faster),
2258 # so one script is as good as another. But avoid the broken or
2259 # incompatible versions:
2260 # SysV /etc/install, /usr/sbin/install
2261 # SunOS /usr/etc/install
2262 # IRIX /sbin/install
2263 # AIX /bin/install
2264 # AmigaOS /C/install, which installs bootblocks on floppy discs
2265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268 # OS/2's system install, which has a completely different semantic
2269 # ./install, which can be erroneously created by make from ./install.sh.
2270 # Reject install programs that cannot install multiple files.
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2273 if test -z "$INSTALL"; then
2274 if ${ac_cv_path_install+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 # Account for people who put trailing slashes in PATH elements.
2283 case $as_dir/ in #((
2284 ./ | .// | /[cC]/* | \
2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287 /usr/ucb/* ) ;;
2288 *)
2289 # OSF1 and SCO ODT 3.0 have their own names for install.
2290 # Don't use installbsd from OSF since it installs stuff as root
2291 # by default.
2292 for ac_prog in ginstall scoinst install; do
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295 if test $ac_prog = install &&
2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # AIX install. It has an incompatible calling convention.
2298 :
2299 elif test $ac_prog = install &&
2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301 # program-specific install script used by HP pwplus--don't use.
2302 :
2303 else
2304 rm -rf conftest.one conftest.two conftest.dir
2305 echo one > conftest.one
2306 echo two > conftest.two
2307 mkdir conftest.dir
2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309 test -s conftest.one && test -s conftest.two &&
2310 test -s conftest.dir/conftest.one &&
2311 test -s conftest.dir/conftest.two
2312 then
2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 break 3
2315 fi
2316 fi
2317 fi
2318 done
2319 done
2320 ;;
2321 esac
2322
2323 done
2324 IFS=$as_save_IFS
2325
2326 rm -rf conftest.one conftest.two conftest.dir
2327
2328 fi
2329 if test "${ac_cv_path_install+set}" = set; then
2330 INSTALL=$ac_cv_path_install
2331 else
2332 # As a last resort, use the slow shell script. Don't cache a
2333 # value for INSTALL within a source directory, because that will
2334 # break other packages using the cache if that directory is
2335 # removed, or if the value is a relative name.
2336 INSTALL=$ac_install_sh
2337 fi
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340 $as_echo "$INSTALL" >&6; }
2341
2342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343 # It thinks the first close brace ends the variable substitution.
2344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351 $as_echo_n "checking whether build environment is sane... " >&6; }
2352 # Reject unsafe characters in $srcdir or the absolute working directory
2353 # name. Accept space and tab only in the latter.
2354 am_lf='
2355 '
2356 case `pwd` in
2357 *[\\\"\#\$\&\'\`$am_lf]*)
2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359 esac
2360 case $srcdir in
2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2362 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363 esac
2364
2365 # Do 'set' in a subshell so we don't clobber the current shell's
2366 # arguments. Must try -L first in case configure is actually a
2367 # symlink; some systems play weird games with the mod time of symlinks
2368 # (eg FreeBSD returns the mod time of the symlink's containing
2369 # directory).
2370 if (
2371 am_has_slept=no
2372 for am_try in 1 2; do
2373 echo "timestamp, slept: $am_has_slept" > conftest.file
2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375 if test "$*" = "X"; then
2376 # -L didn't work.
2377 set X `ls -t "$srcdir/configure" conftest.file`
2378 fi
2379 if test "$*" != "X $srcdir/configure conftest.file" \
2380 && test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382 # If neither matched, then we have a broken ls. This can happen
2383 # if, for instance, CONFIG_SHELL is bash and it inherits a
2384 # broken ls alias from the environment. This has actually
2385 # happened. Such a system could not be considered "sane".
2386 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2387 alias in your environment" "$LINENO" 5
2388 fi
2389 if test "$2" = conftest.file || test $am_try -eq 2; then
2390 break
2391 fi
2392 # Just in case.
2393 sleep 1
2394 am_has_slept=yes
2395 done
2396 test "$2" = conftest.file
2397 )
2398 then
2399 # Ok.
2400 :
2401 else
2402 as_fn_error $? "newly created file is older than distributed files!
2403 Check your system clock" "$LINENO" 5
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406 $as_echo "yes" >&6; }
2407 # If we didn't sleep, we still need to ensure time stamps of config.status and
2408 # generated files are strictly newer.
2409 am_sleep_pid=
2410 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411 ( sleep 1 ) &
2412 am_sleep_pid=$!
2413 fi
2414
2415 rm -f conftest.file
2416
2417 test "$program_prefix" != NONE &&
2418 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419 # Use a double $ so make ignores it.
2420 test "$program_suffix" != NONE &&
2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422 # Double any \ or $.
2423 # By default was `s,x,x', remove it if useless.
2424 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426
2427 # Expand $ac_aux_dir to an absolute path.
2428 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2429
2430 if test x"${MISSING+set}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434 *)
2435 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436 esac
2437 fi
2438 # Use eval to expand $SHELL
2439 if eval "$MISSING --is-lightweight"; then
2440 am_missing_run="$MISSING "
2441 else
2442 am_missing_run=
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445 fi
2446
2447 if test x"${install_sh+set}" != xset; then
2448 case $am_aux_dir in
2449 *\ * | *\ *)
2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451 *)
2452 install_sh="\${SHELL} $am_aux_dir/install-sh"
2453 esac
2454 fi
2455
2456 # Installed binaries are usually stripped using 'strip' when the user
2457 # run "make install-strip". However 'strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the 'STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_STRIP+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492 $as_echo "$STRIP" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 fi
2500 if test -z "$ac_cv_prog_STRIP"; then
2501 ac_ct_STRIP=$STRIP
2502 # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test -n "$ac_ct_STRIP"; then
2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_STRIP="strip"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532 $as_echo "$ac_ct_STRIP" >&6; }
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2536 fi
2537
2538 if test "x$ac_ct_STRIP" = x; then
2539 STRIP=":"
2540 else
2541 case $cross_compiling:$ac_tool_warned in
2542 yes:)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547 STRIP=$ac_ct_STRIP
2548 fi
2549 else
2550 STRIP="$ac_cv_prog_STRIP"
2551 fi
2552
2553 fi
2554 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558 if test -z "$MKDIR_P"; then
2559 if ${ac_cv_path_mkdir+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_prog in mkdir gmkdir; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571 'mkdir (GNU coreutils) '* | \
2572 'mkdir (coreutils) '* | \
2573 'mkdir (fileutils) '4.1*)
2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575 break 3;;
2576 esac
2577 done
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583
2584 test -d ./--version && rmdir ./--version
2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
2587 else
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 MKDIR_P="$ac_install_sh -d"
2593 fi
2594 fi
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596 $as_echo "$MKDIR_P" >&6; }
2597
2598 for ac_prog in gawk mawk nawk awk
2599 do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 AWK=$ac_cv_prog_AWK
2628 if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630 $as_echo "$AWK" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 test -n "$AWK" && break
2638 done
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642 set x ${MAKE-make}
2643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2660 fi
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 SET_MAKE=
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2669 fi
2670
2671 rm -rf .tst 2>/dev/null
2672 mkdir .tst 2>/dev/null
2673 if test -d .tst; then
2674 am__leading_dot=.
2675 else
2676 am__leading_dot=_
2677 fi
2678 rmdir .tst 2>/dev/null
2679
2680 # Check whether --enable-silent-rules was given.
2681 if test "${enable_silent_rules+set}" = set; then :
2682 enableval=$enable_silent_rules;
2683 fi
2684
2685 case $enable_silent_rules in # (((
2686 yes) AM_DEFAULT_VERBOSITY=0;;
2687 no) AM_DEFAULT_VERBOSITY=1;;
2688 *) AM_DEFAULT_VERBOSITY=1;;
2689 esac
2690 am_make=${MAKE-make}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693 if ${am_cv_make_support_nested_variables+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if $as_echo 'TRUE=$(BAR$(V))
2697 BAR0=false
2698 BAR1=true
2699 V=1
2700 am__doit:
2701 @$(TRUE)
2702 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703 am_cv_make_support_nested_variables=yes
2704 else
2705 am_cv_make_support_nested_variables=no
2706 fi
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2710 if test $am_cv_make_support_nested_variables = yes; then
2711 AM_V='$(V)'
2712 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713 else
2714 AM_V=$AM_DEFAULT_VERBOSITY
2715 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716 fi
2717 AM_BACKSLASH='\'
2718
2719 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721 # is not polluted with repeated "-I."
2722 am__isrc=' -I$(srcdir)'
2723 # test to see if srcdir already configured
2724 if test -f $srcdir/config.status; then
2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726 fi
2727 fi
2728
2729 # test whether we have cygpath
2730 if test -z "$CYGPATH_W"; then
2731 if (cygpath --version) >/dev/null 2>/dev/null; then
2732 CYGPATH_W='cygpath -w'
2733 else
2734 CYGPATH_W=echo
2735 fi
2736 fi
2737
2738
2739 # Define the identity of the package.
2740 PACKAGE='libXxf86dga'
2741 VERSION='1.1.5'
2742
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE "$PACKAGE"
2746 _ACEOF
2747
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define VERSION "$VERSION"
2751 _ACEOF
2752
2753 # Some tools Automake needs.
2754
2755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769 # For better backward compatibility. To be removed once Automake 1.9.x
2770 # dies out for good. For more background, see:
2771 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773 mkdir_p='$(MKDIR_P)'
2774
2775 # We need awk for the "check" target (and possibly the TAP driver). The
2776 # system "awk" is bad on some platforms.
2777 # Always define AMTAR for backward compatibility. Yes, it's still used
2778 # in the wild :-( We should find a proper way to deprecate it ...
2779 AMTAR='$${TAR-tar}'
2780
2781
2782 # We'll loop over all known methods to create a tar archive until one works.
2783 _am_tools='gnutar pax cpio none'
2784
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792 # POSIX will say in a future version that running "rm -f" with no argument
2793 # is OK; and we want to be able to make that assumption in our Makefile
2794 # recipes. So use an aggressive probe to check that the usage we want is
2795 # actually supported "in the wild" to an acceptable degree.
2796 # See automake bug#10828.
2797 # To make any issue more visible, cause the running configure to be aborted
2798 # by default if the 'rm' program in use doesn't match our expectations; the
2799 # user can still override this though.
2800 if rm -f && rm -fr && rm -rf; then : OK; else
2801 cat >&2 <<'END'
2802 Oops!
2803
2804 Your 'rm' program seems unable to run without file operands specified
2805 on the command line, even when the '-f' option is present. This is contrary
2806 to the behaviour of most rm programs out there, and not conforming with
2807 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2808
2809 Please tell bug-automake@gnu.org about your system, including the value
2810 of your $PATH and any error possibly output before this message. This
2811 can help us improve future automake versions.
2812
2813 END
2814 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2815 echo 'Configuration will proceed anyway, since you have set the' >&2
2816 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2817 echo >&2
2818 else
2819 cat >&2 <<'END'
2820 Aborting the configuration process, to ensure you take notice of the issue.
2821
2822 You can download and install GNU coreutils to get an 'rm' implementation
2823 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2824
2825 If you want to complete the configuration process using your problematic
2826 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2827 to "yes", and re-run configure.
2828
2829 END
2830 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2831 fi
2832 fi
2833
2834
2835 # Initialize libtool
2836 case `pwd` in
2837 *\ * | *\ *)
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2839 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2840 esac
2841
2842
2843
2844 macro_version='2.4.6'
2845 macro_revision='2.4.6'
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859 ltmain=$ac_aux_dir/ltmain.sh
2860
2861 # Make sure we can run config.sub.
2862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2863 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2866 $as_echo_n "checking build system type... " >&6; }
2867 if ${ac_cv_build+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 ac_build_alias=$build_alias
2871 test "x$ac_build_alias" = x &&
2872 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2873 test "x$ac_build_alias" = x &&
2874 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2875 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2877
2878 fi
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2880 $as_echo "$ac_cv_build" >&6; }
2881 case $ac_cv_build in
2882 *-*-*) ;;
2883 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2884 esac
2885 build=$ac_cv_build
2886 ac_save_IFS=$IFS; IFS='-'
2887 set x $ac_cv_build
2888 shift
2889 build_cpu=$1
2890 build_vendor=$2
2891 shift; shift
2892 # Remember, the first character of IFS is used to create $*,
2893 # except with old shells:
2894 build_os=$*
2895 IFS=$ac_save_IFS
2896 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2897
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2900 $as_echo_n "checking host system type... " >&6; }
2901 if ${ac_cv_host+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test "x$host_alias" = x; then
2905 ac_cv_host=$ac_cv_build
2906 else
2907 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2908 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2909 fi
2910
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2913 $as_echo "$ac_cv_host" >&6; }
2914 case $ac_cv_host in
2915 *-*-*) ;;
2916 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2917 esac
2918 host=$ac_cv_host
2919 ac_save_IFS=$IFS; IFS='-'
2920 set x $ac_cv_host
2921 shift
2922 host_cpu=$1
2923 host_vendor=$2
2924 shift; shift
2925 # Remember, the first character of IFS is used to create $*,
2926 # except with old shells:
2927 host_os=$*
2928 IFS=$ac_save_IFS
2929 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2930
2931
2932 # Backslashify metacharacters that are still active within
2933 # double-quoted strings.
2934 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2935
2936 # Same as above, but do not quote variable references.
2937 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2938
2939 # Sed substitution to delay expansion of an escaped shell variable in a
2940 # double_quote_subst'ed string.
2941 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2942
2943 # Sed substitution to delay expansion of an escaped single quote.
2944 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2945
2946 # Sed substitution to avoid accidental globbing in evaled expressions
2947 no_glob_subst='s/\*/\\\*/g'
2948
2949 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2950 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2952
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2954 $as_echo_n "checking how to print strings... " >&6; }
2955 # Test print first, because it will be a builtin if present.
2956 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2957 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2958 ECHO='print -r --'
2959 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2960 ECHO='printf %s\n'
2961 else
2962 # Use this function as a fallback that always works.
2963 func_fallback_echo ()
2964 {
2965 eval 'cat <<_LTECHO_EOF
2966 $1
2967 _LTECHO_EOF'
2968 }
2969 ECHO='func_fallback_echo'
2970 fi
2971
2972 # func_echo_all arg...
2973 # Invoke $ECHO with all args, space-separated.
2974 func_echo_all ()
2975 {
2976 $ECHO ""
2977 }
2978
2979 case $ECHO in
2980 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2981 $as_echo "printf" >&6; } ;;
2982 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2983 $as_echo "print -r" >&6; } ;;
2984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2985 $as_echo "cat" >&6; } ;;
2986 esac
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001 DEPDIR="${am__leading_dot}deps"
3002
3003 ac_config_commands="$ac_config_commands depfiles"
3004
3005
3006 am_make=${MAKE-make}
3007 cat > confinc << 'END'
3008 am__doit:
3009 @echo this is the am__doit target
3010 .PHONY: am__doit
3011 END
3012 # If we don't find an include directive, just comment out the code.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3014 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3015 am__include="#"
3016 am__quote=
3017 _am_result=none
3018 # First try GNU make style include.
3019 echo "include confinc" > confmf
3020 # Ignore all kinds of additional output from 'make'.
3021 case `$am_make -s -f confmf 2> /dev/null` in #(
3022 *the\ am__doit\ target*)
3023 am__include=include
3024 am__quote=
3025 _am_result=GNU
3026 ;;
3027 esac
3028 # Now try BSD make style include.
3029 if test "$am__include" = "#"; then
3030 echo '.include "confinc"' > confmf
3031 case `$am_make -s -f confmf 2> /dev/null` in #(
3032 *the\ am__doit\ target*)
3033 am__include=.include
3034 am__quote="\""
3035 _am_result=BSD
3036 ;;
3037 esac
3038 fi
3039
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3042 $as_echo "$_am_result" >&6; }
3043 rm -f confinc confmf
3044
3045 # Check whether --enable-dependency-tracking was given.
3046 if test "${enable_dependency_tracking+set}" = set; then :
3047 enableval=$enable_dependency_tracking;
3048 fi
3049
3050 if test "x$enable_dependency_tracking" != xno; then
3051 am_depcomp="$ac_aux_dir/depcomp"
3052 AMDEPBACKSLASH='\'
3053 am__nodep='_no'
3054 fi
3055 if test "x$enable_dependency_tracking" != xno; then
3056 AMDEP_TRUE=
3057 AMDEP_FALSE='#'
3058 else
3059 AMDEP_TRUE='#'
3060 AMDEP_FALSE=
3061 fi
3062
3063
3064 ac_ext=c
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3071 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091 done
3092 done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107 fi
3108 if test -z "$ac_cv_prog_CC"; then
3109 ac_ct_CC=$CC
3110 # Extract the first word of "gcc", so it can be a program name with args.
3111 set dummy gcc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$ac_ct_CC"; then
3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_CC="gcc"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138 if test -n "$ac_ct_CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140 $as_echo "$ac_ct_CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146 if test "x$ac_ct_CC" = x; then
3147 CC=""
3148 else
3149 case $cross_compiling:$ac_tool_warned in
3150 yes:)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned=yes ;;
3154 esac
3155 CC=$ac_ct_CC
3156 fi
3157 else
3158 CC="$ac_cv_prog_CC"
3159 fi
3160
3161 if test -z "$CC"; then
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}cc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="${ac_tool_prefix}cc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 fi
3201 fi
3202 if test -z "$CC"; then
3203 # Extract the first word of "cc", so it can be a program name with args.
3204 set dummy cc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 ac_prog_rejected=no
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3222 ac_prog_rejected=yes
3223 continue
3224 fi
3225 ac_cv_prog_CC="cc"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229 done
3230 done
3231 IFS=$as_save_IFS
3232
3233 if test $ac_prog_rejected = yes; then
3234 # We found a bogon in the path, so make sure we never use it.
3235 set dummy $ac_cv_prog_CC
3236 shift
3237 if test $# != 0; then
3238 # We chose a different compiler from the bogus one.
3239 # However, it has the same basename, so the bogon will be chosen
3240 # first if we set CC to just the basename; use the full file name.
3241 shift
3242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3243 fi
3244 fi
3245 fi
3246 fi
3247 CC=$ac_cv_prog_CC
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256
3257 fi
3258 if test -z "$CC"; then
3259 if test -n "$ac_tool_prefix"; then
3260 for ac_prog in cl.exe
3261 do
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 test -n "$CC" && break
3300 done
3301 fi
3302 if test -z "$CC"; then
3303 ac_ct_CC=$CC
3304 for ac_prog in cl.exe
3305 do
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_CC="$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 $as_echo "$ac_ct_CC" >&6; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343 test -n "$ac_ct_CC" && break
3344 done
3345
3346 if test "x$ac_ct_CC" = x; then
3347 CC=""
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3353 ac_tool_warned=yes ;;
3354 esac
3355 CC=$ac_ct_CC
3356 fi
3357 fi
3358
3359 fi
3360
3361
3362 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "no acceptable C compiler found in \$PATH
3365 See \`config.log' for more details" "$LINENO" 5; }
3366
3367 # Provide some information about the compiler.
3368 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3369 set X $ac_compile
3370 ac_compiler=$2
3371 for ac_option in --version -v -V -qversion; do
3372 { { ac_try="$ac_compiler $ac_option >&5"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3380 ac_status=$?
3381 if test -s conftest.err; then
3382 sed '10a\
3383 ... rest of stderr output deleted ...
3384 10q' conftest.err >conftest.er1
3385 cat conftest.er1 >&5
3386 fi
3387 rm -f conftest.er1 conftest.err
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }
3390 done
3391
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 ac_clean_files_save=$ac_clean_files
3404 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3405 # Try to create an executable without -o first, disregard a.out.
3406 # It will help us diagnose broken compilers, and finding out an intuition
3407 # of exeext.
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3409 $as_echo_n "checking whether the C compiler works... " >&6; }
3410 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3411
3412 # The possible output files:
3413 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3414
3415 ac_rmfiles=
3416 for ac_file in $ac_files
3417 do
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3420 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3421 esac
3422 done
3423 rm -f $ac_rmfiles
3424
3425 if { { ac_try="$ac_link_default"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link_default") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3437 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3438 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3439 # so that the user can short-circuit this test for compilers unknown to
3440 # Autoconf.
3441 for ac_file in $ac_files ''
3442 do
3443 test -f "$ac_file" || continue
3444 case $ac_file in
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3446 ;;
3447 [ab].out )
3448 # We found the default executable, but exeext='' is most
3449 # certainly right.
3450 break;;
3451 *.* )
3452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3453 then :; else
3454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455 fi
3456 # We set ac_cv_exeext here because the later test for it is not
3457 # safe: cross compilers may not add the suffix if given an `-o'
3458 # argument, so we may need to know it at that point already.
3459 # Even if this section looks crufty: it has the advantage of
3460 # actually working.
3461 break;;
3462 * )
3463 break;;
3464 esac
3465 done
3466 test "$ac_cv_exeext" = no && ac_cv_exeext=
3467
3468 else
3469 ac_file=''
3470 fi
3471 if test -z "$ac_file"; then :
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error 77 "C compiler cannot create executables
3480 See \`config.log' for more details" "$LINENO" 5; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483 $as_echo "yes" >&6; }
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3486 $as_echo_n "checking for C compiler default output file name... " >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3488 $as_echo "$ac_file" >&6; }
3489 ac_exeext=$ac_cv_exeext
3490
3491 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3492 ac_clean_files=$ac_clean_files_save
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3494 $as_echo_n "checking for suffix of executables... " >&6; }
3495 if { { ac_try="$ac_link"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3508 # work properly (i.e., refer to `conftest.exe'), while it won't with
3509 # `rm'.
3510 for ac_file in conftest.exe conftest conftest.*; do
3511 test -f "$ac_file" || continue
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 break;;
3516 * ) break;;
3517 esac
3518 done
3519 else
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3523 See \`config.log' for more details" "$LINENO" 5; }
3524 fi
3525 rm -f conftest conftest$ac_cv_exeext
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3527 $as_echo "$ac_cv_exeext" >&6; }
3528
3529 rm -f conftest.$ac_ext
3530 EXEEXT=$ac_cv_exeext
3531 ac_exeext=$EXEEXT
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534 #include <stdio.h>
3535 int
3536 main ()
3537 {
3538 FILE *f = fopen ("conftest.out", "w");
3539 return ferror (f) || fclose (f) != 0;
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 ac_clean_files="$ac_clean_files conftest.out"
3546 # Check that the compiler produces executables we can run. If not, either
3547 # the compiler is broken, or we cross compile.
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3549 $as_echo_n "checking whether we are cross compiling... " >&6; }
3550 if test "$cross_compiling" != yes; then
3551 { { ac_try="$ac_link"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_link") 2>&5
3559 ac_status=$?
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 if { ac_try='./conftest$ac_cv_exeext'
3563 { { case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_try") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; }; then
3573 cross_compiling=no
3574 else
3575 if test "$cross_compiling" = maybe; then
3576 cross_compiling=yes
3577 else
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot run C compiled programs.
3581 If you meant to cross compile, use \`--host'.
3582 See \`config.log' for more details" "$LINENO" 5; }
3583 fi
3584 fi
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3587 $as_echo "$cross_compiling" >&6; }
3588
3589 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3590 ac_clean_files=$ac_clean_files_save
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3592 $as_echo_n "checking for suffix of object files... " >&6; }
3593 if ${ac_cv_objext+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.o conftest.obj
3608 if { { ac_try="$ac_compile"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compile") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 for ac_file in conftest.o conftest.obj conftest.*; do
3620 test -f "$ac_file" || continue;
3621 case $ac_file in
3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3623 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3624 break;;
3625 esac
3626 done
3627 else
3628 $as_echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot compute suffix of object files: cannot compile
3634 See \`config.log' for more details" "$LINENO" 5; }
3635 fi
3636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3639 $as_echo "$ac_cv_objext" >&6; }
3640 OBJEXT=$ac_cv_objext
3641 ac_objext=$OBJEXT
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3643 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3644 if ${ac_cv_c_compiler_gnu+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main ()
3652 {
3653 #ifndef __GNUC__
3654 choke me
3655 #endif
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_compiler_gnu=yes
3663 else
3664 ac_compiler_gnu=no
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3668
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3671 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3672 if test $ac_compiler_gnu = yes; then
3673 GCC=yes
3674 else
3675 GCC=
3676 fi
3677 ac_test_CFLAGS=${CFLAGS+set}
3678 ac_save_CFLAGS=$CFLAGS
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3680 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3681 if ${ac_cv_prog_cc_g+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 ac_save_c_werror_flag=$ac_c_werror_flag
3685 ac_c_werror_flag=yes
3686 ac_cv_prog_cc_g=no
3687 CFLAGS="-g"
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 int
3692 main ()
3693 {
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_prog_cc_g=yes
3701 else
3702 CFLAGS=""
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715
3716 else
3717 ac_c_werror_flag=$ac_save_c_werror_flag
3718 CFLAGS="-g"
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_cv_prog_cc_g=yes
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3741 $as_echo "$ac_cv_prog_cc_g" >&6; }
3742 if test "$ac_test_CFLAGS" = set; then
3743 CFLAGS=$ac_save_CFLAGS
3744 elif test $ac_cv_prog_cc_g = yes; then
3745 if test "$GCC" = yes; then
3746 CFLAGS="-g -O2"
3747 else
3748 CFLAGS="-g"
3749 fi
3750 else
3751 if test "$GCC" = yes; then
3752 CFLAGS="-O2"
3753 else
3754 CFLAGS=
3755 fi
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3758 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3759 if ${ac_cv_prog_cc_c89+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 ac_cv_prog_cc_c89=no
3763 ac_save_CC=$CC
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <stdarg.h>
3767 #include <stdio.h>
3768 struct stat;
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3773 char **p;
3774 int i;
3775 {
3776 return p[i];
3777 }
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3779 {
3780 char *s;
3781 va_list v;
3782 va_start (v,p);
3783 s = g (p, va_arg (v,int));
3784 va_end (v);
3785 return s;
3786 }
3787
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3796
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3799 #define FOO(x) 'x'
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3801
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3806 int argc;
3807 char **argv;
3808 int
3809 main ()
3810 {
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818 do
3819 CC="$ac_save_CC $ac_arg"
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_c89=$ac_arg
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext
3824 test "x$ac_cv_prog_cc_c89" != "xno" && break
3825 done
3826 rm -f conftest.$ac_ext
3827 CC=$ac_save_CC
3828
3829 fi
3830 # AC_CACHE_VAL
3831 case "x$ac_cv_prog_cc_c89" in
3832 x)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3834 $as_echo "none needed" >&6; } ;;
3835 xno)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3837 $as_echo "unsupported" >&6; } ;;
3838 *)
3839 CC="$CC $ac_cv_prog_cc_c89"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3841 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3842 esac
3843 if test "x$ac_cv_prog_cc_c89" != xno; then :
3844
3845 fi
3846
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3859 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3860 if ${am_cv_prog_cc_c_o+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 # Make sure it works both with $CC and with simple cc.
3875 # Following AC_PROG_CC_C_O, we do the test twice because some
3876 # compilers refuse to overwrite an existing .o file with -o,
3877 # though they will create one.
3878 am_cv_prog_cc_c_o=yes
3879 for am_i in 1 2; do
3880 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3881 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } \
3885 && test -f conftest2.$ac_objext; then
3886 : OK
3887 else
3888 am_cv_prog_cc_c_o=no
3889 break
3890 fi
3891 done
3892 rm -f core conftest*
3893 unset am_i
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3896 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3897 if test "$am_cv_prog_cc_c_o" != yes; then
3898 # Losing compiler, so override with the script.
3899 # FIXME: It is wrong to rewrite CC.
3900 # But if we don't then we get into trouble of one sort or another.
3901 # A longer-term fix would be to have automake use am__CC in this case,
3902 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3903 CC="$am_aux_dir/compile $CC"
3904 fi
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911
3912 depcc="$CC" am_compiler_list=
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3915 $as_echo_n "checking dependency style of $depcc... " >&6; }
3916 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3920 # We make a subdir and do the tests there. Otherwise we can end up
3921 # making bogus files that we don't know about and never remove. For
3922 # instance it was reported that on HP-UX the gcc test will end up
3923 # making a dummy file named 'D' -- because '-MD' means "put the output
3924 # in D".
3925 rm -rf conftest.dir
3926 mkdir conftest.dir
3927 # Copy depcomp to subdir because otherwise we won't find it if we're
3928 # using a relative directory.
3929 cp "$am_depcomp" conftest.dir
3930 cd conftest.dir
3931 # We will build objects and dependencies in a subdirectory because
3932 # it helps to detect inapplicable dependency modes. For instance
3933 # both Tru64's cc and ICC support -MD to output dependencies as a
3934 # side effect of compilation, but ICC will put the dependencies in
3935 # the current directory while Tru64 will put them in the object
3936 # directory.
3937 mkdir sub
3938
3939 am_cv_CC_dependencies_compiler_type=none
3940 if test "$am_compiler_list" = ""; then
3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942 fi
3943 am__universal=false
3944 case " $depcc " in #(
3945 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3946 esac
3947
3948 for depmode in $am_compiler_list; do
3949 # Setup a source with many dependencies, because some compilers
3950 # like to wrap large dependency lists on column 80 (with \), and
3951 # we should not choose a depcomp mode which is confused by this.
3952 #
3953 # We need to recreate these files for each test, as the compiler may
3954 # overwrite some of them when testing with obscure command lines.
3955 # This happens at least with the AIX C compiler.
3956 : > sub/conftest.c
3957 for i in 1 2 3 4 5 6; do
3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3960 # Solaris 10 /bin/sh.
3961 echo '/* dummy */' > sub/conftst$i.h
3962 done
3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964
3965 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3966 # mode. It turns out that the SunPro C++ compiler does not properly
3967 # handle '-M -o', and we need to detect this. Also, some Intel
3968 # versions had trouble with output in subdirs.
3969 am__obj=sub/conftest.${OBJEXT-o}
3970 am__minus_obj="-o $am__obj"
3971 case $depmode in
3972 gcc)
3973 # This depmode causes a compiler race in universal mode.
3974 test "$am__universal" = false || continue
3975 ;;
3976 nosideeffect)
3977 # After this tag, mechanisms are not by side-effect, so they'll
3978 # only be used when explicitly requested.
3979 if test "x$enable_dependency_tracking" = xyes; then
3980 continue
3981 else
3982 break
3983 fi
3984 ;;
3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3986 # This compiler won't grok '-c -o', but also, the minuso test has
3987 # not run yet. These depmodes are late enough in the game, and
3988 # so weak that their functioning should not be impacted.
3989 am__obj=conftest.${OBJEXT-o}
3990 am__minus_obj=
3991 ;;
3992 none) break ;;
3993 esac
3994 if depmode=$depmode \
3995 source=sub/conftest.c object=$am__obj \
3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998 >/dev/null 2>conftest.err &&
3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003 # icc doesn't choke on unknown options, it will just issue warnings
4004 # or remarks (even with -Werror). So we grep stderr for any message
4005 # that says an option was ignored or not supported.
4006 # When given -MP, icc 7.0 and 7.1 complain thusly:
4007 # icc: Command line warning: ignoring option '-M'; no argument required
4008 # The diagnosis changed in icc 8.0:
4009 # icc: Command line remark: option '-MP' not supported
4010 if (grep 'ignoring option' conftest.err ||
4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012 am_cv_CC_dependencies_compiler_type=$depmode
4013 break
4014 fi
4015 fi
4016 done
4017
4018 cd ..
4019 rm -rf conftest.dir
4020 else
4021 am_cv_CC_dependencies_compiler_type=none
4022 fi
4023
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4026 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4028
4029 if
4030 test "x$enable_dependency_tracking" != xno \
4031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4032 am__fastdepCC_TRUE=
4033 am__fastdepCC_FALSE='#'
4034 else
4035 am__fastdepCC_TRUE='#'
4036 am__fastdepCC_FALSE=
4037 fi
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4041 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4042 if ${ac_cv_path_SED+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4046 for ac_i in 1 2 3 4 5 6 7; do
4047 ac_script="$ac_script$as_nl$ac_script"
4048 done
4049 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4050 { ac_script=; unset ac_script;}
4051 if test -z "$SED"; then
4052 ac_path_SED_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in sed gsed; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4062 as_fn_executable_p "$ac_path_SED" || continue
4063 # Check for GNU ac_path_SED and select it if it is found.
4064 # Check for GNU $ac_path_SED
4065 case `"$ac_path_SED" --version 2>&1` in
4066 *GNU*)
4067 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4068 *)
4069 ac_count=0
4070 $as_echo_n 0123456789 >"conftest.in"
4071 while :
4072 do
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 $as_echo '' >> "conftest.nl"
4077 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 as_fn_arith $ac_count + 1 && ac_count=$as_val
4080 if test $ac_count -gt ${ac_path_SED_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_SED="$ac_path_SED"
4083 ac_path_SED_max=$ac_count
4084 fi
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4087 done
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091 $ac_path_SED_found && break 3
4092 done
4093 done
4094 done
4095 IFS=$as_save_IFS
4096 if test -z "$ac_cv_path_SED"; then
4097 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4098 fi
4099 else
4100 ac_cv_path_SED=$SED
4101 fi
4102
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4105 $as_echo "$ac_cv_path_SED" >&6; }
4106 SED="$ac_cv_path_SED"
4107 rm -f conftest.sed
4108
4109 test -z "$SED" && SED=sed
4110 Xsed="$SED -e 1s/^X//"
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124 if ${ac_cv_path_GREP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -z "$GREP"; then
4128 ac_path_GREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132 do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in grep ggrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138 as_fn_executable_p "$ac_path_GREP" || continue
4139 # Check for GNU ac_path_GREP and select it if it is found.
4140 # Check for GNU $ac_path_GREP
4141 case `"$ac_path_GREP" --version 2>&1` in
4142 *GNU*)
4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4144 *)
4145 ac_count=0
4146 $as_echo_n 0123456789 >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'GREP' >> "conftest.nl"
4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_GREP="$ac_path_GREP"
4159 ac_path_GREP_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4166
4167 $ac_path_GREP_found && break 3
4168 done
4169 done
4170 done
4171 IFS=$as_save_IFS
4172 if test -z "$ac_cv_path_GREP"; then
4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174 fi
4175 else
4176 ac_cv_path_GREP=$GREP
4177 fi
4178
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181 $as_echo "$ac_cv_path_GREP" >&6; }
4182 GREP="$ac_cv_path_GREP"
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186 $as_echo_n "checking for egrep... " >&6; }
4187 if ${ac_cv_path_EGREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191 then ac_cv_path_EGREP="$GREP -E"
4192 else
4193 if test -z "$EGREP"; then
4194 ac_path_EGREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in egrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204 as_fn_executable_p "$ac_path_EGREP" || continue
4205 # Check for GNU ac_path_EGREP and select it if it is found.
4206 # Check for GNU $ac_path_EGREP
4207 case `"$ac_path_EGREP" --version 2>&1` in
4208 *GNU*)
4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210 *)
4211 ac_count=0
4212 $as_echo_n 0123456789 >"conftest.in"
4213 while :
4214 do
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'EGREP' >> "conftest.nl"
4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_EGREP="$ac_path_EGREP"
4225 ac_path_EGREP_max=$ac_count
4226 fi
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4229 done
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 esac
4232
4233 $ac_path_EGREP_found && break 3
4234 done
4235 done
4236 done
4237 IFS=$as_save_IFS
4238 if test -z "$ac_cv_path_EGREP"; then
4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240 fi
4241 else
4242 ac_cv_path_EGREP=$EGREP
4243 fi
4244
4245 fi
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248 $as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4250
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4253 $as_echo_n "checking for fgrep... " >&6; }
4254 if ${ac_cv_path_FGREP+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4258 then ac_cv_path_FGREP="$GREP -F"
4259 else
4260 if test -z "$FGREP"; then
4261 ac_path_FGREP_found=false
4262 # Loop through the user's path and test for each of PROGNAME-LIST
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4265 do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_prog in fgrep; do
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4271 as_fn_executable_p "$ac_path_FGREP" || continue
4272 # Check for GNU ac_path_FGREP and select it if it is found.
4273 # Check for GNU $ac_path_FGREP
4274 case `"$ac_path_FGREP" --version 2>&1` in
4275 *GNU*)
4276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4277 *)
4278 ac_count=0
4279 $as_echo_n 0123456789 >"conftest.in"
4280 while :
4281 do
4282 cat "conftest.in" "conftest.in" >"conftest.tmp"
4283 mv "conftest.tmp" "conftest.in"
4284 cp "conftest.in" "conftest.nl"
4285 $as_echo 'FGREP' >> "conftest.nl"
4286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4288 as_fn_arith $ac_count + 1 && ac_count=$as_val
4289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4290 # Best one so far, save it but keep looking for a better one
4291 ac_cv_path_FGREP="$ac_path_FGREP"
4292 ac_path_FGREP_max=$ac_count
4293 fi
4294 # 10*(2^10) chars as input seems more than enough
4295 test $ac_count -gt 10 && break
4296 done
4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4298 esac
4299
4300 $ac_path_FGREP_found && break 3
4301 done
4302 done
4303 done
4304 IFS=$as_save_IFS
4305 if test -z "$ac_cv_path_FGREP"; then
4306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4307 fi
4308 else
4309 ac_cv_path_FGREP=$FGREP
4310 fi
4311
4312 fi
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4315 $as_echo "$ac_cv_path_FGREP" >&6; }
4316 FGREP="$ac_cv_path_FGREP"
4317
4318
4319 test -z "$GREP" && GREP=grep
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339 # Check whether --with-gnu-ld was given.
4340 if test "${with_gnu_ld+set}" = set; then :
4341 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4342 else
4343 with_gnu_ld=no
4344 fi
4345
4346 ac_prog=ld
4347 if test yes = "$GCC"; then
4348 # Check if gcc -print-prog-name=ld gives a path.
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4350 $as_echo_n "checking for ld used by $CC... " >&6; }
4351 case $host in
4352 *-*-mingw*)
4353 # gcc leaves a trailing carriage return, which upsets mingw
4354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4355 *)
4356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4357 esac
4358 case $ac_prog in
4359 # Accept absolute paths.
4360 [\\/]* | ?:[\\/]*)
4361 re_direlt='/[^/][^/]*/\.\./'
4362 # Canonicalize the pathname of ld
4363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4366 done
4367 test -z "$LD" && LD=$ac_prog
4368 ;;
4369 "")
4370 # If it fails, then pretend we aren't using GCC.
4371 ac_prog=ld
4372 ;;
4373 *)
4374 # If it is relative, then search for the first ld in PATH.
4375 with_gnu_ld=unknown
4376 ;;
4377 esac
4378 elif test yes = "$with_gnu_ld"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4380 $as_echo_n "checking for GNU ld... " >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4383 $as_echo_n "checking for non-GNU ld... " >&6; }
4384 fi
4385 if ${lt_cv_path_LD+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -z "$LD"; then
4389 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4390 for ac_dir in $PATH; do
4391 IFS=$lt_save_ifs
4392 test -z "$ac_dir" && ac_dir=.
4393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4394 lt_cv_path_LD=$ac_dir/$ac_prog
4395 # Check to see if the program is GNU ld. I'd rather use --version,
4396 # but apparently some variants of GNU ld only accept -v.
4397 # Break only if it was the GNU/non-GNU ld that we prefer.
4398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4399 *GNU* | *'with BFD'*)
4400 test no != "$with_gnu_ld" && break
4401 ;;
4402 *)
4403 test yes != "$with_gnu_ld" && break
4404 ;;
4405 esac
4406 fi
4407 done
4408 IFS=$lt_save_ifs
4409 else
4410 lt_cv_path_LD=$LD # Let the user override the test with a path.
4411 fi
4412 fi
4413
4414 LD=$lt_cv_path_LD
4415 if test -n "$LD"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4417 $as_echo "$LD" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4424 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4425 if ${lt_cv_prog_gnu_ld+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4429 case `$LD -v 2>&1 </dev/null` in
4430 *GNU* | *'with BFD'*)
4431 lt_cv_prog_gnu_ld=yes
4432 ;;
4433 *)
4434 lt_cv_prog_gnu_ld=no
4435 ;;
4436 esac
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4439 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4440 with_gnu_ld=$lt_cv_prog_gnu_ld
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4451 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4452 if ${lt_cv_path_NM+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$NM"; then
4456 # Let the user override the test.
4457 lt_cv_path_NM=$NM
4458 else
4459 lt_nm_to_check=${ac_tool_prefix}nm
4460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4461 lt_nm_to_check="$lt_nm_to_check nm"
4462 fi
4463 for lt_tmp_nm in $lt_nm_to_check; do
4464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4466 IFS=$lt_save_ifs
4467 test -z "$ac_dir" && ac_dir=.
4468 tmp_nm=$ac_dir/$lt_tmp_nm
4469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4470 # Check to see if the nm accepts a BSD-compat flag.
4471 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4472 # nm: unknown option "B" ignored
4473 # Tru64's nm complains that /dev/null is an invalid object file
4474 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4475 case $build_os in
4476 mingw*) lt_bad_file=conftest.nm/nofile ;;
4477 *) lt_bad_file=/dev/null ;;
4478 esac
4479 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4480 *$lt_bad_file* | *'Invalid file or object type'*)
4481 lt_cv_path_NM="$tmp_nm -B"
4482 break 2
4483 ;;
4484 *)
4485 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4486 */dev/null*)
4487 lt_cv_path_NM="$tmp_nm -p"
4488 break 2
4489 ;;
4490 *)
4491 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4492 continue # so that we can try to find one that supports BSD flags
4493 ;;
4494 esac
4495 ;;
4496 esac
4497 fi
4498 done
4499 IFS=$lt_save_ifs
4500 done
4501 : ${lt_cv_path_NM=no}
4502 fi
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4505 $as_echo "$lt_cv_path_NM" >&6; }
4506 if test no != "$lt_cv_path_NM"; then
4507 NM=$lt_cv_path_NM
4508 else
4509 # Didn't find any BSD compatible name lister, look for dumpbin.
4510 if test -n "$DUMPBIN"; then :
4511 # Let the user override the test.
4512 else
4513 if test -n "$ac_tool_prefix"; then
4514 for ac_prog in dumpbin "link -dump"
4515 do
4516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_prog_DUMPBIN+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -n "$DUMPBIN"; then
4524 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541 fi
4542 fi
4543 DUMPBIN=$ac_cv_prog_DUMPBIN
4544 if test -n "$DUMPBIN"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4546 $as_echo "$DUMPBIN" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551
4552
4553 test -n "$DUMPBIN" && break
4554 done
4555 fi
4556 if test -z "$DUMPBIN"; then
4557 ac_ct_DUMPBIN=$DUMPBIN
4558 for ac_prog in dumpbin "link -dump"
4559 do
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$ac_ct_DUMPBIN"; then
4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585 fi
4586 fi
4587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4588 if test -n "$ac_ct_DUMPBIN"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4590 $as_echo "$ac_ct_DUMPBIN" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4594 fi
4595
4596
4597 test -n "$ac_ct_DUMPBIN" && break
4598 done
4599
4600 if test "x$ac_ct_DUMPBIN" = x; then
4601 DUMPBIN=":"
4602 else
4603 case $cross_compiling:$ac_tool_warned in
4604 yes:)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4607 ac_tool_warned=yes ;;
4608 esac
4609 DUMPBIN=$ac_ct_DUMPBIN
4610 fi
4611 fi
4612
4613 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4614 *COFF*)
4615 DUMPBIN="$DUMPBIN -symbols -headers"
4616 ;;
4617 *)
4618 DUMPBIN=:
4619 ;;
4620 esac
4621 fi
4622
4623 if test : != "$DUMPBIN"; then
4624 NM=$DUMPBIN
4625 fi
4626 fi
4627 test -z "$NM" && NM=nm
4628
4629
4630
4631
4632
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4635 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4636 if ${lt_cv_nm_interface+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 lt_cv_nm_interface="BSD nm"
4640 echo "int some_variable = 0;" > conftest.$ac_ext
4641 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4642 (eval "$ac_compile" 2>conftest.err)
4643 cat conftest.err >&5
4644 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4645 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4646 cat conftest.err >&5
4647 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4648 cat conftest.out >&5
4649 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4650 lt_cv_nm_interface="MS dumpbin"
4651 fi
4652 rm -f conftest*
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4655 $as_echo "$lt_cv_nm_interface" >&6; }
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4658 $as_echo_n "checking whether ln -s works... " >&6; }
4659 LN_S=$as_ln_s
4660 if test "$LN_S" = "ln -s"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4662 $as_echo "yes" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4665 $as_echo "no, using $LN_S" >&6; }
4666 fi
4667
4668 # find the maximum length of command line arguments
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4670 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4671 if ${lt_cv_sys_max_cmd_len+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 i=0
4675 teststring=ABCD
4676
4677 case $build_os in
4678 msdosdjgpp*)
4679 # On DJGPP, this test can blow up pretty badly due to problems in libc
4680 # (any single argument exceeding 2000 bytes causes a buffer overrun
4681 # during glob expansion). Even if it were fixed, the result of this
4682 # check would be larger than it should be.
4683 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4684 ;;
4685
4686 gnu*)
4687 # Under GNU Hurd, this test is not required because there is
4688 # no limit to the length of command line arguments.
4689 # Libtool will interpret -1 as no limit whatsoever
4690 lt_cv_sys_max_cmd_len=-1;
4691 ;;
4692
4693 cygwin* | mingw* | cegcc*)
4694 # On Win9x/ME, this test blows up -- it succeeds, but takes
4695 # about 5 minutes as the teststring grows exponentially.
4696 # Worse, since 9x/ME are not pre-emptively multitasking,
4697 # you end up with a "frozen" computer, even though with patience
4698 # the test eventually succeeds (with a max line length of 256k).
4699 # Instead, let's just punt: use the minimum linelength reported by
4700 # all of the supported platforms: 8192 (on NT/2K/XP).
4701 lt_cv_sys_max_cmd_len=8192;
4702 ;;
4703
4704 mint*)
4705 # On MiNT this can take a long time and run out of memory.
4706 lt_cv_sys_max_cmd_len=8192;
4707 ;;
4708
4709 amigaos*)
4710 # On AmigaOS with pdksh, this test takes hours, literally.
4711 # So we just punt and use a minimum line length of 8192.
4712 lt_cv_sys_max_cmd_len=8192;
4713 ;;
4714
4715 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4716 # This has been around since 386BSD, at least. Likely further.
4717 if test -x /sbin/sysctl; then
4718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4719 elif test -x /usr/sbin/sysctl; then
4720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4721 else
4722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4723 fi
4724 # And add a safety zone
4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4727 ;;
4728
4729 interix*)
4730 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4731 lt_cv_sys_max_cmd_len=196608
4732 ;;
4733
4734 os2*)
4735 # The test takes a long time on OS/2.
4736 lt_cv_sys_max_cmd_len=8192
4737 ;;
4738
4739 osf*)
4740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4742 # nice to cause kernel panics so lets avoid the loop below.
4743 # First set a reasonable default.
4744 lt_cv_sys_max_cmd_len=16384
4745 #
4746 if test -x /sbin/sysconfig; then
4747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4748 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4749 esac
4750 fi
4751 ;;
4752 sco3.2v5*)
4753 lt_cv_sys_max_cmd_len=102400
4754 ;;
4755 sysv5* | sco5v6* | sysv4.2uw2*)
4756 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4757 if test -n "$kargmax"; then
4758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4759 else
4760 lt_cv_sys_max_cmd_len=32768
4761 fi
4762 ;;
4763 *)
4764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4765 if test -n "$lt_cv_sys_max_cmd_len" && \
4766 test undefined != "$lt_cv_sys_max_cmd_len"; then
4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4769 else
4770 # Make teststring a little bigger before we do anything with it.
4771 # a 1K string should be a reasonable start.
4772 for i in 1 2 3 4 5 6 7 8; do
4773 teststring=$teststring$teststring
4774 done
4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4776 # If test is not a shell built-in, we'll probably end up computing a
4777 # maximum length that is only half of the actual maximum length, but
4778 # we can't tell.
4779 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4780 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4781 test 17 != "$i" # 1/2 MB should be enough
4782 do
4783 i=`expr $i + 1`
4784 teststring=$teststring$teststring
4785 done
4786 # Only check the string length outside the loop.
4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4788 teststring=
4789 # Add a significant safety factor because C++ compilers can tack on
4790 # massive amounts of additional arguments before passing them to the
4791 # linker. It appears as though 1/2 is a usable value.
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4793 fi
4794 ;;
4795 esac
4796
4797 fi
4798
4799 if test -n "$lt_cv_sys_max_cmd_len"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4801 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4804 $as_echo "none" >&6; }
4805 fi
4806 max_cmd_len=$lt_cv_sys_max_cmd_len
4807
4808
4809
4810
4811
4812
4813 : ${CP="cp -f"}
4814 : ${MV="mv -f"}
4815 : ${RM="rm -f"}
4816
4817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4818 lt_unset=unset
4819 else
4820 lt_unset=false
4821 fi
4822
4823
4824
4825
4826
4827 # test EBCDIC or ASCII
4828 case `echo X|tr X '\101'` in
4829 A) # ASCII based system
4830 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4831 lt_SP2NL='tr \040 \012'
4832 lt_NL2SP='tr \015\012 \040\040'
4833 ;;
4834 *) # EBCDIC based system
4835 lt_SP2NL='tr \100 \n'
4836 lt_NL2SP='tr \r\n \100\100'
4837 ;;
4838 esac
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4849 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4850 if ${lt_cv_to_host_file_cmd+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 case $host in
4854 *-*-mingw* )
4855 case $build in
4856 *-*-mingw* ) # actually msys
4857 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4858 ;;
4859 *-*-cygwin* )
4860 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4861 ;;
4862 * ) # otherwise, assume *nix
4863 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4864 ;;
4865 esac
4866 ;;
4867 *-*-cygwin* )
4868 case $build in
4869 *-*-mingw* ) # actually msys
4870 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4871 ;;
4872 *-*-cygwin* )
4873 lt_cv_to_host_file_cmd=func_convert_file_noop
4874 ;;
4875 * ) # otherwise, assume *nix
4876 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4877 ;;
4878 esac
4879 ;;
4880 * ) # unhandled hosts (and "normal" native builds)
4881 lt_cv_to_host_file_cmd=func_convert_file_noop
4882 ;;
4883 esac
4884
4885 fi
4886
4887 to_host_file_cmd=$lt_cv_to_host_file_cmd
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4889 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4890
4891
4892
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4896 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4897 if ${lt_cv_to_tool_file_cmd+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 #assume ordinary cross tools, or native build.
4901 lt_cv_to_tool_file_cmd=func_convert_file_noop
4902 case $host in
4903 *-*-mingw* )
4904 case $build in
4905 *-*-mingw* ) # actually msys
4906 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4907 ;;
4908 esac
4909 ;;
4910 esac
4911
4912 fi
4913
4914 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4916 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4917
4918
4919
4920
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4923 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4924 if ${lt_cv_ld_reload_flag+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 lt_cv_ld_reload_flag='-r'
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4930 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4931 reload_flag=$lt_cv_ld_reload_flag
4932 case $reload_flag in
4933 "" | " "*) ;;
4934 *) reload_flag=" $reload_flag" ;;
4935 esac
4936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4937 case $host_os in
4938 cygwin* | mingw* | pw32* | cegcc*)
4939 if test yes != "$GCC"; then
4940 reload_cmds=false
4941 fi
4942 ;;
4943 darwin*)
4944 if test yes = "$GCC"; then
4945 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4946 else
4947 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4948 fi
4949 ;;
4950 esac
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_OBJDUMP+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$OBJDUMP"; then
4969 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4981 fi
4982 done
4983 done
4984 IFS=$as_save_IFS
4985
4986 fi
4987 fi
4988 OBJDUMP=$ac_cv_prog_OBJDUMP
4989 if test -n "$OBJDUMP"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4991 $as_echo "$OBJDUMP" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4995 fi
4996
4997
4998 fi
4999 if test -z "$ac_cv_prog_OBJDUMP"; then
5000 ac_ct_OBJDUMP=$OBJDUMP
5001 # Extract the first word of "objdump", so it can be a program name with args.
5002 set dummy objdump; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$ac_ct_OBJDUMP"; then
5009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5029 if test -n "$ac_ct_OBJDUMP"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5031 $as_echo "$ac_ct_OBJDUMP" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037 if test "x$ac_ct_OBJDUMP" = x; then
5038 OBJDUMP="false"
5039 else
5040 case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046 OBJDUMP=$ac_ct_OBJDUMP
5047 fi
5048 else
5049 OBJDUMP="$ac_cv_prog_OBJDUMP"
5050 fi
5051
5052 test -z "$OBJDUMP" && OBJDUMP=objdump
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5063 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5064 if ${lt_cv_deplibs_check_method+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 lt_cv_file_magic_cmd='$MAGIC_CMD'
5068 lt_cv_file_magic_test_file=
5069 lt_cv_deplibs_check_method='unknown'
5070 # Need to set the preceding variable on all platforms that support
5071 # interlibrary dependencies.
5072 # 'none' -- dependencies not supported.
5073 # 'unknown' -- same as none, but documents that we really don't know.
5074 # 'pass_all' -- all dependencies passed with no checks.
5075 # 'test_compile' -- check by making test program.
5076 # 'file_magic [[regex]]' -- check by looking for files in library path
5077 # that responds to the $file_magic_cmd with a given extended regex.
5078 # If you have 'file' or equivalent on your system and you're not sure
5079 # whether 'pass_all' will *always* work, you probably want this one.
5080
5081 case $host_os in
5082 aix[4-9]*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086 beos*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090 bsdi[45]*)
5091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5092 lt_cv_file_magic_cmd='/usr/bin/file -L'
5093 lt_cv_file_magic_test_file=/shlib/libc.so
5094 ;;
5095
5096 cygwin*)
5097 # func_win32_libid is a shell function defined in ltmain.sh
5098 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5099 lt_cv_file_magic_cmd='func_win32_libid'
5100 ;;
5101
5102 mingw* | pw32*)
5103 # Base MSYS/MinGW do not provide the 'file' command needed by
5104 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5105 # unless we find 'file', for example because we are cross-compiling.
5106 if ( file / ) >/dev/null 2>&1; then
5107 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5108 lt_cv_file_magic_cmd='func_win32_libid'
5109 else
5110 # Keep this pattern in sync with the one in func_win32_libid.
5111 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5112 lt_cv_file_magic_cmd='$OBJDUMP -f'
5113 fi
5114 ;;
5115
5116 cegcc*)
5117 # use the weaker test based on 'objdump'. See mingw*.
5118 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5119 lt_cv_file_magic_cmd='$OBJDUMP -f'
5120 ;;
5121
5122 darwin* | rhapsody*)
5123 lt_cv_deplibs_check_method=pass_all
5124 ;;
5125
5126 freebsd* | dragonfly*)
5127 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5128 case $host_cpu in
5129 i*86 )
5130 # Not sure whether the presence of OpenBSD here was a mistake.
5131 # Let's accept both of them until this is cleared up.
5132 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5133 lt_cv_file_magic_cmd=/usr/bin/file
5134 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5135 ;;
5136 esac
5137 else
5138 lt_cv_deplibs_check_method=pass_all
5139 fi
5140 ;;
5141
5142 haiku*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145
5146 hpux10.20* | hpux11*)
5147 lt_cv_file_magic_cmd=/usr/bin/file
5148 case $host_cpu in
5149 ia64*)
5150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5151 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5152 ;;
5153 hppa*64*)
5154 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]'
5155 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5156 ;;
5157 *)
5158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5159 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5160 ;;
5161 esac
5162 ;;
5163
5164 interix[3-9]*)
5165 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5167 ;;
5168
5169 irix5* | irix6* | nonstopux*)
5170 case $LD in
5171 *-32|*"-32 ") libmagic=32-bit;;
5172 *-n32|*"-n32 ") libmagic=N32;;
5173 *-64|*"-64 ") libmagic=64-bit;;
5174 *) libmagic=never-match;;
5175 esac
5176 lt_cv_deplibs_check_method=pass_all
5177 ;;
5178
5179 # This must be glibc/ELF.
5180 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183
5184 netbsd*)
5185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5187 else
5188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5189 fi
5190 ;;
5191
5192 newos6*)
5193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5194 lt_cv_file_magic_cmd=/usr/bin/file
5195 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5196 ;;
5197
5198 *nto* | *qnx*)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202 openbsd* | bitrig*)
5203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5205 else
5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5207 fi
5208 ;;
5209
5210 osf3* | osf4* | osf5*)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213
5214 rdos*)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217
5218 solaris*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225
5226 sysv4 | sysv4.3*)
5227 case $host_vendor in
5228 motorola)
5229 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]'
5230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5231 ;;
5232 ncr)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235 sequent)
5236 lt_cv_file_magic_cmd='/bin/file'
5237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5238 ;;
5239 sni)
5240 lt_cv_file_magic_cmd='/bin/file'
5241 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5242 lt_cv_file_magic_test_file=/lib/libc.so
5243 ;;
5244 siemens)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247 pc)
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250 esac
5251 ;;
5252
5253 tpf*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256 os2*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259 esac
5260
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5263 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5264
5265 file_magic_glob=
5266 want_nocaseglob=no
5267 if test "$build" = "$host"; then
5268 case $host_os in
5269 mingw* | pw32*)
5270 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5271 want_nocaseglob=yes
5272 else
5273 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5274 fi
5275 ;;
5276 esac
5277 fi
5278
5279 file_magic_cmd=$lt_cv_file_magic_cmd
5280 deplibs_check_method=$lt_cv_deplibs_check_method
5281 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304 if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if ${ac_cv_prog_DLLTOOL+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$DLLTOOL"; then
5313 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 DLLTOOL=$ac_cv_prog_DLLTOOL
5333 if test -n "$DLLTOOL"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5335 $as_echo "$DLLTOOL" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 fi
5343 if test -z "$ac_cv_prog_DLLTOOL"; then
5344 ac_ct_DLLTOOL=$DLLTOOL
5345 # Extract the first word of "dlltool", so it can be a program name with args.
5346 set dummy dlltool; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$ac_ct_DLLTOOL"; then
5353 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5373 if test -n "$ac_ct_DLLTOOL"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5375 $as_echo "$ac_ct_DLLTOOL" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381 if test "x$ac_ct_DLLTOOL" = x; then
5382 DLLTOOL="false"
5383 else
5384 case $cross_compiling:$ac_tool_warned in
5385 yes:)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388 ac_tool_warned=yes ;;
5389 esac
5390 DLLTOOL=$ac_ct_DLLTOOL
5391 fi
5392 else
5393 DLLTOOL="$ac_cv_prog_DLLTOOL"
5394 fi
5395
5396 test -z "$DLLTOOL" && DLLTOOL=dlltool
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5408 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5409 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 lt_cv_sharedlib_from_linklib_cmd='unknown'
5413
5414 case $host_os in
5415 cygwin* | mingw* | pw32* | cegcc*)
5416 # two different shell functions defined in ltmain.sh;
5417 # decide which one to use based on capabilities of $DLLTOOL
5418 case `$DLLTOOL --help 2>&1` in
5419 *--identify-strict*)
5420 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5421 ;;
5422 *)
5423 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5424 ;;
5425 esac
5426 ;;
5427 *)
5428 # fallback: assume linklib IS sharedlib
5429 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5430 ;;
5431 esac
5432
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5435 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5436 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5437 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5438
5439
5440
5441
5442
5443
5444
5445
5446 if test -n "$ac_tool_prefix"; then
5447 for ac_prog in ar
5448 do
5449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_AR+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$AR"; then
5457 ac_cv_prog_AR="$AR" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470 done
5471 done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 AR=$ac_cv_prog_AR
5477 if test -n "$AR"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5479 $as_echo "$AR" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 test -n "$AR" && break
5487 done
5488 fi
5489 if test -z "$AR"; then
5490 ac_ct_AR=$AR
5491 for ac_prog in ar
5492 do
5493 # Extract the first word of "$ac_prog", so it can be a program name with args.
5494 set dummy $ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$ac_ct_AR"; then
5501 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_AR="$ac_prog"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514 done
5515 done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5521 if test -n "$ac_ct_AR"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5523 $as_echo "$ac_ct_AR" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 test -n "$ac_ct_AR" && break
5531 done
5532
5533 if test "x$ac_ct_AR" = x; then
5534 AR="false"
5535 else
5536 case $cross_compiling:$ac_tool_warned in
5537 yes:)
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540 ac_tool_warned=yes ;;
5541 esac
5542 AR=$ac_ct_AR
5543 fi
5544 fi
5545
5546 : ${AR=ar}
5547 : ${AR_FLAGS=cru}
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5560 $as_echo_n "checking for archiver @FILE support... " >&6; }
5561 if ${lt_cv_ar_at_file+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 lt_cv_ar_at_file=no
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567
5568 int
5569 main ()
5570 {
5571
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 echo conftest.$ac_objext > conftest.lst
5578 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5580 (eval $lt_ar_try) 2>&5
5581 ac_status=$?
5582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5583 test $ac_status = 0; }
5584 if test 0 -eq "$ac_status"; then
5585 # Ensure the archiver fails upon bogus file names.
5586 rm -f conftest.$ac_objext libconftest.a
5587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5588 (eval $lt_ar_try) 2>&5
5589 ac_status=$?
5590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5591 test $ac_status = 0; }
5592 if test 0 -ne "$ac_status"; then
5593 lt_cv_ar_at_file=@
5594 fi
5595 fi
5596 rm -f conftest.* libconftest.a
5597
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5603 $as_echo "$lt_cv_ar_at_file" >&6; }
5604
5605 if test no = "$lt_cv_ar_at_file"; then
5606 archiver_list_spec=
5607 else
5608 archiver_list_spec=$lt_cv_ar_at_file
5609 fi
5610
5611
5612
5613
5614
5615
5616
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}strip; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_STRIP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$STRIP"; then
5626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 STRIP=$ac_cv_prog_STRIP
5646 if test -n "$STRIP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5648 $as_echo "$STRIP" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 fi
5656 if test -z "$ac_cv_prog_STRIP"; then
5657 ac_ct_STRIP=$STRIP
5658 # Extract the first word of "strip", so it can be a program name with args.
5659 set dummy strip; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$ac_ct_STRIP"; then
5666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_ac_ct_STRIP="strip"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5686 if test -n "$ac_ct_STRIP"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5688 $as_echo "$ac_ct_STRIP" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694 if test "x$ac_ct_STRIP" = x; then
5695 STRIP=":"
5696 else
5697 case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703 STRIP=$ac_ct_STRIP
5704 fi
5705 else
5706 STRIP="$ac_cv_prog_STRIP"
5707 fi
5708
5709 test -z "$STRIP" && STRIP=:
5710
5711
5712
5713
5714
5715
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_prog_RANLIB+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$RANLIB"; then
5725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 RANLIB=$ac_cv_prog_RANLIB
5745 if test -n "$RANLIB"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5747 $as_echo "$RANLIB" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754 fi
5755 if test -z "$ac_cv_prog_RANLIB"; then
5756 ac_ct_RANLIB=$RANLIB
5757 # Extract the first word of "ranlib", so it can be a program name with args.
5758 set dummy ranlib; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$ac_ct_RANLIB"; then
5765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_ac_ct_RANLIB="ranlib"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778 done
5779 done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5785 if test -n "$ac_ct_RANLIB"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5787 $as_echo "$ac_ct_RANLIB" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793 if test "x$ac_ct_RANLIB" = x; then
5794 RANLIB=":"
5795 else
5796 case $cross_compiling:$ac_tool_warned in
5797 yes:)
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5801 esac
5802 RANLIB=$ac_ct_RANLIB
5803 fi
5804 else
5805 RANLIB="$ac_cv_prog_RANLIB"
5806 fi
5807
5808 test -z "$RANLIB" && RANLIB=:
5809
5810
5811
5812
5813
5814
5815 # Determine commands to create old-style static archives.
5816 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5817 old_postinstall_cmds='chmod 644 $oldlib'
5818 old_postuninstall_cmds=
5819
5820 if test -n "$RANLIB"; then
5821 case $host_os in
5822 bitrig* | openbsd*)
5823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5824 ;;
5825 *)
5826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5827 ;;
5828 esac
5829 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5830 fi
5831
5832 case $host_os in
5833 darwin*)
5834 lock_old_archive_extraction=yes ;;
5835 *)
5836 lock_old_archive_extraction=no ;;
5837 esac
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877 # If no C compiler was specified, use CC.
5878 LTCC=${LTCC-"$CC"}
5879
5880 # If no C compiler flags were specified, use CFLAGS.
5881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5882
5883 # Allow CC to be a program name with arguments.
5884 compiler=$CC
5885
5886
5887 # Check for command to grab the raw symbol name followed by C symbol from nm.
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5889 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5890 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893
5894 # These are sane defaults that work on at least a few old systems.
5895 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5896
5897 # Character class describing NM global symbol codes.
5898 symcode='[BCDEGRST]'
5899
5900 # Regexp to match symbols that can be accessed directly from C.
5901 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5902
5903 # Define system-specific variables.
5904 case $host_os in
5905 aix*)
5906 symcode='[BCDT]'
5907 ;;
5908 cygwin* | mingw* | pw32* | cegcc*)
5909 symcode='[ABCDGISTW]'
5910 ;;
5911 hpux*)
5912 if test ia64 = "$host_cpu"; then
5913 symcode='[ABCDEGRST]'
5914 fi
5915 ;;
5916 irix* | nonstopux*)
5917 symcode='[BCDEGRST]'
5918 ;;
5919 osf*)
5920 symcode='[BCDEGQRST]'
5921 ;;
5922 solaris*)
5923 symcode='[BDRT]'
5924 ;;
5925 sco3.2v5*)
5926 symcode='[DT]'
5927 ;;
5928 sysv4.2uw2*)
5929 symcode='[DT]'
5930 ;;
5931 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5932 symcode='[ABDT]'
5933 ;;
5934 sysv4)
5935 symcode='[DFNSTU]'
5936 ;;
5937 esac
5938
5939 # If we're using GNU nm, then use its standard symbol codes.
5940 case `$NM -V 2>&1` in
5941 *GNU* | *'with BFD'*)
5942 symcode='[ABCDGIRSTW]' ;;
5943 esac
5944
5945 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5946 # Gets list of data symbols to import.
5947 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5948 # Adjust the below global symbol transforms to fixup imported variables.
5949 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5950 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5951 lt_c_name_lib_hook="\
5952 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5953 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5954 else
5955 # Disable hooks by default.
5956 lt_cv_sys_global_symbol_to_import=
5957 lt_cdecl_hook=
5958 lt_c_name_hook=
5959 lt_c_name_lib_hook=
5960 fi
5961
5962 # Transform an extracted symbol line into a proper C declaration.
5963 # Some systems (esp. on ia64) link data and code symbols differently,
5964 # so use this general approach.
5965 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5966 $lt_cdecl_hook\
5967 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5968 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5969
5970 # Transform an extracted symbol line into symbol name and symbol address
5971 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5972 $lt_c_name_hook\
5973 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5974 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5975
5976 # Transform an extracted symbol line into symbol name with lib prefix and
5977 # symbol address.
5978 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5979 $lt_c_name_lib_hook\
5980 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5981 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5982 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5983
5984 # Handle CRLF in mingw tool chain
5985 opt_cr=
5986 case $build_os in
5987 mingw*)
5988 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5989 ;;
5990 esac
5991
5992 # Try without a prefix underscore, then with it.
5993 for ac_symprfx in "" "_"; do
5994
5995 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5996 symxfrm="\\1 $ac_symprfx\\2 \\2"
5997
5998 # Write the raw and C identifiers.
5999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6000 # Fake it for dumpbin and say T for any non-static function,
6001 # D for any global variable and I for any imported variable.
6002 # Also find C++ and __fastcall symbols from MSVC++,
6003 # which start with @ or ?.
6004 lt_cv_sys_global_symbol_pipe="$AWK '"\
6005 " {last_section=section; section=\$ 3};"\
6006 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6007 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6008 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6009 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6010 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6011 " \$ 0!~/External *\|/{next};"\
6012 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6013 " {if(hide[section]) next};"\
6014 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6015 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6016 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6017 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6018 " ' prfx=^$ac_symprfx"
6019 else
6020 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6021 fi
6022 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6023
6024 # Check to see that the pipe works correctly.
6025 pipe_works=no
6026
6027 rm -f conftest*
6028 cat > conftest.$ac_ext <<_LT_EOF
6029 #ifdef __cplusplus
6030 extern "C" {
6031 #endif
6032 char nm_test_var;
6033 void nm_test_func(void);
6034 void nm_test_func(void){}
6035 #ifdef __cplusplus
6036 }
6037 #endif
6038 int main(){nm_test_var='a';nm_test_func();return(0);}
6039 _LT_EOF
6040
6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6042 (eval $ac_compile) 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; }; then
6046 # Now try to grab the symbols.
6047 nlist=conftest.nm
6048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6050 ac_status=$?
6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; } && test -s "$nlist"; then
6053 # Try sorting and uniquifying the output.
6054 if sort "$nlist" | uniq > "$nlist"T; then
6055 mv -f "$nlist"T "$nlist"
6056 else
6057 rm -f "$nlist"T
6058 fi
6059
6060 # Make sure that we snagged all the symbols we need.
6061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6063 cat <<_LT_EOF > conftest.$ac_ext
6064 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6065 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6066 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6067 relocations are performed -- see ld's documentation on pseudo-relocs. */
6068 # define LT_DLSYM_CONST
6069 #elif defined __osf__
6070 /* This system does not cope well with relocations in const data. */
6071 # define LT_DLSYM_CONST
6072 #else
6073 # define LT_DLSYM_CONST const
6074 #endif
6075
6076 #ifdef __cplusplus
6077 extern "C" {
6078 #endif
6079
6080 _LT_EOF
6081 # Now generate the symbol file.
6082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6083
6084 cat <<_LT_EOF >> conftest.$ac_ext
6085
6086 /* The mapping between symbol names and symbols. */
6087 LT_DLSYM_CONST struct {
6088 const char *name;
6089 void *address;
6090 }
6091 lt__PROGRAM__LTX_preloaded_symbols[] =
6092 {
6093 { "@PROGRAM@", (void *) 0 },
6094 _LT_EOF
6095 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6096 cat <<\_LT_EOF >> conftest.$ac_ext
6097 {0, (void *) 0}
6098 };
6099
6100 /* This works around a problem in FreeBSD linker */
6101 #ifdef FREEBSD_WORKAROUND
6102 static const void *lt_preloaded_setup() {
6103 return lt__PROGRAM__LTX_preloaded_symbols;
6104 }
6105 #endif
6106
6107 #ifdef __cplusplus
6108 }
6109 #endif
6110 _LT_EOF
6111 # Now try linking the two files.
6112 mv conftest.$ac_objext conftstm.$ac_objext
6113 lt_globsym_save_LIBS=$LIBS
6114 lt_globsym_save_CFLAGS=$CFLAGS
6115 LIBS=conftstm.$ac_objext
6116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6118 (eval $ac_link) 2>&5
6119 ac_status=$?
6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6122 pipe_works=yes
6123 fi
6124 LIBS=$lt_globsym_save_LIBS
6125 CFLAGS=$lt_globsym_save_CFLAGS
6126 else
6127 echo "cannot find nm_test_func in $nlist" >&5
6128 fi
6129 else
6130 echo "cannot find nm_test_var in $nlist" >&5
6131 fi
6132 else
6133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6134 fi
6135 else
6136 echo "$progname: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 fi
6139 rm -rf conftest* conftst*
6140
6141 # Do not use the global_symbol_pipe unless it works.
6142 if test yes = "$pipe_works"; then
6143 break
6144 else
6145 lt_cv_sys_global_symbol_pipe=
6146 fi
6147 done
6148
6149 fi
6150
6151 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6152 lt_cv_sys_global_symbol_to_cdecl=
6153 fi
6154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6156 $as_echo "failed" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6159 $as_echo "ok" >&6; }
6160 fi
6161
6162 # Response file support.
6163 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6164 nm_file_list_spec='@'
6165 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6166 nm_file_list_spec='@'
6167 fi
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6206 $as_echo_n "checking for sysroot... " >&6; }
6207
6208 # Check whether --with-sysroot was given.
6209 if test "${with_sysroot+set}" = set; then :
6210 withval=$with_sysroot;
6211 else
6212 with_sysroot=no
6213 fi
6214
6215
6216 lt_sysroot=
6217 case $with_sysroot in #(
6218 yes)
6219 if test yes = "$GCC"; then
6220 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6221 fi
6222 ;; #(
6223 /*)
6224 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6225 ;; #(
6226 no|'')
6227 ;; #(
6228 *)
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6230 $as_echo "$with_sysroot" >&6; }
6231 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6232 ;;
6233 esac
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6236 $as_echo "${lt_sysroot:-no}" >&6; }
6237
6238
6239
6240
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6243 $as_echo_n "checking for a working dd... " >&6; }
6244 if ${ac_cv_path_lt_DD+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 printf 0123456789abcdef0123456789abcdef >conftest.i
6248 cat conftest.i conftest.i >conftest2.i
6249 : ${lt_DD:=$DD}
6250 if test -z "$lt_DD"; then
6251 ac_path_lt_DD_found=false
6252 # Loop through the user's path and test for each of PROGNAME-LIST
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_prog in dd; do
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6261 as_fn_executable_p "$ac_path_lt_DD" || continue
6262 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6263 cmp -s conftest.i conftest.out \
6264 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6265 fi
6266 $ac_path_lt_DD_found && break 3
6267 done
6268 done
6269 done
6270 IFS=$as_save_IFS
6271 if test -z "$ac_cv_path_lt_DD"; then
6272 :
6273 fi
6274 else
6275 ac_cv_path_lt_DD=$lt_DD
6276 fi
6277
6278 rm -f conftest.i conftest2.i conftest.out
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6281 $as_echo "$ac_cv_path_lt_DD" >&6; }
6282
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6285 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6286 if ${lt_cv_truncate_bin+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 printf 0123456789abcdef0123456789abcdef >conftest.i
6290 cat conftest.i conftest.i >conftest2.i
6291 lt_cv_truncate_bin=
6292 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6293 cmp -s conftest.i conftest.out \
6294 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6295 fi
6296 rm -f conftest.i conftest2.i conftest.out
6297 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6300 $as_echo "$lt_cv_truncate_bin" >&6; }
6301
6302
6303
6304
6305
6306
6307
6308 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6309 func_cc_basename ()
6310 {
6311 for cc_temp in $*""; do
6312 case $cc_temp in
6313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6315 \-*) ;;
6316 *) break;;
6317 esac
6318 done
6319 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6320 }
6321
6322 # Check whether --enable-libtool-lock was given.
6323 if test "${enable_libtool_lock+set}" = set; then :
6324 enableval=$enable_libtool_lock;
6325 fi
6326
6327 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6328
6329 # Some flags need to be propagated to the compiler or linker for good
6330 # libtool support.
6331 case $host in
6332 ia64-*-hpux*)
6333 # Find out what ABI is being produced by ac_compile, and set mode
6334 # options accordingly.
6335 echo 'int i;' > conftest.$ac_ext
6336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6337 (eval $ac_compile) 2>&5
6338 ac_status=$?
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }; then
6341 case `/usr/bin/file conftest.$ac_objext` in
6342 *ELF-32*)
6343 HPUX_IA64_MODE=32
6344 ;;
6345 *ELF-64*)
6346 HPUX_IA64_MODE=64
6347 ;;
6348 esac
6349 fi
6350 rm -rf conftest*
6351 ;;
6352 *-*-irix6*)
6353 # Find out what ABI is being produced by ac_compile, and set linker
6354 # options accordingly.
6355 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6357 (eval $ac_compile) 2>&5
6358 ac_status=$?
6359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360 test $ac_status = 0; }; then
6361 if test yes = "$lt_cv_prog_gnu_ld"; then
6362 case `/usr/bin/file conftest.$ac_objext` in
6363 *32-bit*)
6364 LD="${LD-ld} -melf32bsmip"
6365 ;;
6366 *N32*)
6367 LD="${LD-ld} -melf32bmipn32"
6368 ;;
6369 *64-bit*)
6370 LD="${LD-ld} -melf64bmip"
6371 ;;
6372 esac
6373 else
6374 case `/usr/bin/file conftest.$ac_objext` in
6375 *32-bit*)
6376 LD="${LD-ld} -32"
6377 ;;
6378 *N32*)
6379 LD="${LD-ld} -n32"
6380 ;;
6381 *64-bit*)
6382 LD="${LD-ld} -64"
6383 ;;
6384 esac
6385 fi
6386 fi
6387 rm -rf conftest*
6388 ;;
6389
6390 mips64*-*linux*)
6391 # Find out what ABI is being produced by ac_compile, and set linker
6392 # options accordingly.
6393 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6395 (eval $ac_compile) 2>&5
6396 ac_status=$?
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; }; then
6399 emul=elf
6400 case `/usr/bin/file conftest.$ac_objext` in
6401 *32-bit*)
6402 emul="${emul}32"
6403 ;;
6404 *64-bit*)
6405 emul="${emul}64"
6406 ;;
6407 esac
6408 case `/usr/bin/file conftest.$ac_objext` in
6409 *MSB*)
6410 emul="${emul}btsmip"
6411 ;;
6412 *LSB*)
6413 emul="${emul}ltsmip"
6414 ;;
6415 esac
6416 case `/usr/bin/file conftest.$ac_objext` in
6417 *N32*)
6418 emul="${emul}n32"
6419 ;;
6420 esac
6421 LD="${LD-ld} -m $emul"
6422 fi
6423 rm -rf conftest*
6424 ;;
6425
6426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6427 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6428 # Find out what ABI is being produced by ac_compile, and set linker
6429 # options accordingly. Note that the listed cases only cover the
6430 # situations where additional linker options are needed (such as when
6431 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6432 # vice versa); the common cases where no linker options are needed do
6433 # not appear in the list.
6434 echo 'int i;' > conftest.$ac_ext
6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436 (eval $ac_compile) 2>&5
6437 ac_status=$?
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }; then
6440 case `/usr/bin/file conftest.o` in
6441 *32-bit*)
6442 case $host in
6443 x86_64-*kfreebsd*-gnu)
6444 LD="${LD-ld} -m elf_i386_fbsd"
6445 ;;
6446 x86_64-*linux*)
6447 case `/usr/bin/file conftest.o` in
6448 *x86-64*)
6449 LD="${LD-ld} -m elf32_x86_64"
6450 ;;
6451 *)
6452 LD="${LD-ld} -m elf_i386"
6453 ;;
6454 esac
6455 ;;
6456 powerpc64le-*linux*)
6457 LD="${LD-ld} -m elf32lppclinux"
6458 ;;
6459 powerpc64-*linux*)
6460 LD="${LD-ld} -m elf32ppclinux"
6461 ;;
6462 s390x-*linux*)
6463 LD="${LD-ld} -m elf_s390"
6464 ;;
6465 sparc64-*linux*)
6466 LD="${LD-ld} -m elf32_sparc"
6467 ;;
6468 esac
6469 ;;
6470 *64-bit*)
6471 case $host in
6472 x86_64-*kfreebsd*-gnu)
6473 LD="${LD-ld} -m elf_x86_64_fbsd"
6474 ;;
6475 x86_64-*linux*)
6476 LD="${LD-ld} -m elf_x86_64"
6477 ;;
6478 powerpcle-*linux*)
6479 LD="${LD-ld} -m elf64lppc"
6480 ;;
6481 powerpc-*linux*)
6482 LD="${LD-ld} -m elf64ppc"
6483 ;;
6484 s390*-*linux*|s390*-*tpf*)
6485 LD="${LD-ld} -m elf64_s390"
6486 ;;
6487 sparc*-*linux*)
6488 LD="${LD-ld} -m elf64_sparc"
6489 ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496
6497 *-*-sco3.2v5*)
6498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6499 SAVE_CFLAGS=$CFLAGS
6500 CFLAGS="$CFLAGS -belf"
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6502 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6503 if ${lt_cv_cc_needs_belf+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 ac_ext=c
6507 ac_cpp='$CPP $CPPFLAGS'
6508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514
6515 int
6516 main ()
6517 {
6518
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_link "$LINENO"; then :
6524 lt_cv_cc_needs_belf=yes
6525 else
6526 lt_cv_cc_needs_belf=no
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext \
6529 conftest$ac_exeext conftest.$ac_ext
6530 ac_ext=c
6531 ac_cpp='$CPP $CPPFLAGS'
6532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6535
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6538 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6539 if test yes != "$lt_cv_cc_needs_belf"; then
6540 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6541 CFLAGS=$SAVE_CFLAGS
6542 fi
6543 ;;
6544 *-*solaris*)
6545 # Find out what ABI is being produced by ac_compile, and set linker
6546 # options accordingly.
6547 echo 'int i;' > conftest.$ac_ext
6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6549 (eval $ac_compile) 2>&5
6550 ac_status=$?
6551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552 test $ac_status = 0; }; then
6553 case `/usr/bin/file conftest.o` in
6554 *64-bit*)
6555 case $lt_cv_prog_gnu_ld in
6556 yes*)
6557 case $host in
6558 i?86-*-solaris*|x86_64-*-solaris*)
6559 LD="${LD-ld} -m elf_x86_64"
6560 ;;
6561 sparc*-*-solaris*)
6562 LD="${LD-ld} -m elf64_sparc"
6563 ;;
6564 esac
6565 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6566 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6567 LD=${LD-ld}_sol2
6568 fi
6569 ;;
6570 *)
6571 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6572 LD="${LD-ld} -64"
6573 fi
6574 ;;
6575 esac
6576 ;;
6577 esac
6578 fi
6579 rm -rf conftest*
6580 ;;
6581 esac
6582
6583 need_locks=$enable_libtool_lock
6584
6585 if test -n "$ac_tool_prefix"; then
6586 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}mt; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$MANIFEST_TOOL"; then
6594 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6614 if test -n "$MANIFEST_TOOL"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6616 $as_echo "$MANIFEST_TOOL" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622
6623 fi
6624 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6625 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6626 # Extract the first word of "mt", so it can be a program name with args.
6627 set dummy mt; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 if test -n "$ac_ct_MANIFEST_TOOL"; then
6634 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6654 if test -n "$ac_ct_MANIFEST_TOOL"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6656 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6657 else
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661
6662 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6663 MANIFEST_TOOL=":"
6664 else
6665 case $cross_compiling:$ac_tool_warned in
6666 yes:)
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6670 esac
6671 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6672 fi
6673 else
6674 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6675 fi
6676
6677 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6679 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6680 if ${lt_cv_path_mainfest_tool+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 lt_cv_path_mainfest_tool=no
6684 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6685 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6686 cat conftest.err >&5
6687 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6688 lt_cv_path_mainfest_tool=yes
6689 fi
6690 rm -f conftest*
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6693 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6694 if test yes != "$lt_cv_path_mainfest_tool"; then
6695 MANIFEST_TOOL=:
6696 fi
6697
6698
6699
6700
6701
6702
6703 case $host_os in
6704 rhapsody* | darwin*)
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 if test -n "$DSYMUTIL"; then
6714 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6734 if test -n "$DSYMUTIL"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6736 $as_echo "$DSYMUTIL" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743 fi
6744 if test -z "$ac_cv_prog_DSYMUTIL"; then
6745 ac_ct_DSYMUTIL=$DSYMUTIL
6746 # Extract the first word of "dsymutil", so it can be a program name with args.
6747 set dummy dsymutil; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 if test -n "$ac_ct_DSYMUTIL"; then
6754 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6774 if test -n "$ac_ct_DSYMUTIL"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6776 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6777 else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782 if test "x$ac_ct_DSYMUTIL" = x; then
6783 DSYMUTIL=":"
6784 else
6785 case $cross_compiling:$ac_tool_warned in
6786 yes:)
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6790 esac
6791 DSYMUTIL=$ac_ct_DSYMUTIL
6792 fi
6793 else
6794 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6795 fi
6796
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_NMEDIT+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$NMEDIT"; then
6806 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 NMEDIT=$ac_cv_prog_NMEDIT
6826 if test -n "$NMEDIT"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6828 $as_echo "$NMEDIT" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_NMEDIT"; then
6837 ac_ct_NMEDIT=$NMEDIT
6838 # Extract the first word of "nmedit", so it can be a program name with args.
6839 set dummy nmedit; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$ac_ct_NMEDIT"; then
6846 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6866 if test -n "$ac_ct_NMEDIT"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6868 $as_echo "$ac_ct_NMEDIT" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874 if test "x$ac_ct_NMEDIT" = x; then
6875 NMEDIT=":"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 NMEDIT=$ac_ct_NMEDIT
6884 fi
6885 else
6886 NMEDIT="$ac_cv_prog_NMEDIT"
6887 fi
6888
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_LIPO+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$LIPO"; then
6898 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 LIPO=$ac_cv_prog_LIPO
6918 if test -n "$LIPO"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6920 $as_echo "$LIPO" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926
6927 fi
6928 if test -z "$ac_cv_prog_LIPO"; then
6929 ac_ct_LIPO=$LIPO
6930 # Extract the first word of "lipo", so it can be a program name with args.
6931 set dummy lipo; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_LIPO"; then
6938 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_ac_ct_LIPO="lipo"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955 fi
6956 fi
6957 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6958 if test -n "$ac_ct_LIPO"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6960 $as_echo "$ac_ct_LIPO" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966 if test "x$ac_ct_LIPO" = x; then
6967 LIPO=":"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 LIPO=$ac_ct_LIPO
6976 fi
6977 else
6978 LIPO="$ac_cv_prog_LIPO"
6979 fi
6980
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}otool; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_OTOOL+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$OTOOL"; then
6990 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 OTOOL=$ac_cv_prog_OTOOL
7010 if test -n "$OTOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7012 $as_echo "$OTOOL" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_OTOOL"; then
7021 ac_ct_OTOOL=$OTOOL
7022 # Extract the first word of "otool", so it can be a program name with args.
7023 set dummy otool; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$ac_ct_OTOOL"; then
7030 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_ac_ct_OTOOL="otool"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7050 if test -n "$ac_ct_OTOOL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7052 $as_echo "$ac_ct_OTOOL" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058 if test "x$ac_ct_OTOOL" = x; then
7059 OTOOL=":"
7060 else
7061 case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067 OTOOL=$ac_ct_OTOOL
7068 fi
7069 else
7070 OTOOL="$ac_cv_prog_OTOOL"
7071 fi
7072
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_OTOOL64+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 if test -n "$OTOOL64"; then
7082 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099 fi
7100 fi
7101 OTOOL64=$ac_cv_prog_OTOOL64
7102 if test -n "$OTOOL64"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7104 $as_echo "$OTOOL64" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110
7111 fi
7112 if test -z "$ac_cv_prog_OTOOL64"; then
7113 ac_ct_OTOOL64=$OTOOL64
7114 # Extract the first word of "otool64", so it can be a program name with args.
7115 set dummy otool64; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 if test -n "$ac_ct_OTOOL64"; then
7122 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_ac_ct_OTOOL64="otool64"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7142 if test -n "$ac_ct_OTOOL64"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7144 $as_echo "$ac_ct_OTOOL64" >&6; }
7145 else
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150 if test "x$ac_ct_OTOOL64" = x; then
7151 OTOOL64=":"
7152 else
7153 case $cross_compiling:$ac_tool_warned in
7154 yes:)
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157 ac_tool_warned=yes ;;
7158 esac
7159 OTOOL64=$ac_ct_OTOOL64
7160 fi
7161 else
7162 OTOOL64="$ac_cv_prog_OTOOL64"
7163 fi
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7192 $as_echo_n "checking for -single_module linker flag... " >&6; }
7193 if ${lt_cv_apple_cc_single_mod+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 lt_cv_apple_cc_single_mod=no
7197 if test -z "$LT_MULTI_MODULE"; then
7198 # By default we will add the -single_module flag. You can override
7199 # by either setting the environment variable LT_MULTI_MODULE
7200 # non-empty at configure time, or by adding -multi_module to the
7201 # link flags.
7202 rm -rf libconftest.dylib*
7203 echo "int foo(void){return 1;}" > conftest.c
7204 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7205 -dynamiclib -Wl,-single_module conftest.c" >&5
7206 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7208 _lt_result=$?
7209 # If there is a non-empty error log, and "single_module"
7210 # appears in it, assume the flag caused a linker warning
7211 if test -s conftest.err && $GREP single_module conftest.err; then
7212 cat conftest.err >&5
7213 # Otherwise, if the output was created with a 0 exit code from
7214 # the compiler, it worked.
7215 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7216 lt_cv_apple_cc_single_mod=yes
7217 else
7218 cat conftest.err >&5
7219 fi
7220 rm -rf libconftest.dylib*
7221 rm -f conftest.*
7222 fi
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7225 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7228 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7229 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 lt_cv_ld_exported_symbols_list=no
7233 save_LDFLAGS=$LDFLAGS
7234 echo "_main" > conftest.sym
7235 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238
7239 int
7240 main ()
7241 {
7242
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 if ac_fn_c_try_link "$LINENO"; then :
7248 lt_cv_ld_exported_symbols_list=yes
7249 else
7250 lt_cv_ld_exported_symbols_list=no
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext \
7253 conftest$ac_exeext conftest.$ac_ext
7254 LDFLAGS=$save_LDFLAGS
7255
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7258 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7261 $as_echo_n "checking for -force_load linker flag... " >&6; }
7262 if ${lt_cv_ld_force_load+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 lt_cv_ld_force_load=no
7266 cat > conftest.c << _LT_EOF
7267 int forced_loaded() { return 2;}
7268 _LT_EOF
7269 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7270 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7271 echo "$AR cru libconftest.a conftest.o" >&5
7272 $AR cru libconftest.a conftest.o 2>&5
7273 echo "$RANLIB libconftest.a" >&5
7274 $RANLIB libconftest.a 2>&5
7275 cat > conftest.c << _LT_EOF
7276 int main() { return 0;}
7277 _LT_EOF
7278 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7279 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7280 _lt_result=$?
7281 if test -s conftest.err && $GREP force_load conftest.err; then
7282 cat conftest.err >&5
7283 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7284 lt_cv_ld_force_load=yes
7285 else
7286 cat conftest.err >&5
7287 fi
7288 rm -f conftest.err libconftest.a conftest conftest.c
7289 rm -rf conftest.dSYM
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7293 $as_echo "$lt_cv_ld_force_load" >&6; }
7294 case $host_os in
7295 rhapsody* | darwin1.[012])
7296 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7297 darwin1.*)
7298 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7299 darwin*) # darwin 5.x on
7300 # if running on 10.5 or later, the deployment target defaults
7301 # to the OS version, if on x86, and 10.4, the deployment
7302 # target defaults to 10.4. Don't you love it?
7303 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7304 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7305 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7306 10.[012][,.]*)
7307 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7308 10.*)
7309 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7310 esac
7311 ;;
7312 esac
7313 if test yes = "$lt_cv_apple_cc_single_mod"; then
7314 _lt_dar_single_mod='$single_module'
7315 fi
7316 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7317 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7318 else
7319 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7320 fi
7321 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7322 _lt_dsymutil='~$DSYMUTIL $lib || :'
7323 else
7324 _lt_dsymutil=
7325 fi
7326 ;;
7327 esac
7328
7329 # func_munge_path_list VARIABLE PATH
7330 # -----------------------------------
7331 # VARIABLE is name of variable containing _space_ separated list of
7332 # directories to be munged by the contents of PATH, which is string
7333 # having a format:
7334 # "DIR[:DIR]:"
7335 # string "DIR[ DIR]" will be prepended to VARIABLE
7336 # ":DIR[:DIR]"
7337 # string "DIR[ DIR]" will be appended to VARIABLE
7338 # "DIRP[:DIRP]::[DIRA:]DIRA"
7339 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7340 # "DIRA[ DIRA]" will be appended to VARIABLE
7341 # "DIR[:DIR]"
7342 # VARIABLE will be replaced by "DIR[ DIR]"
7343 func_munge_path_list ()
7344 {
7345 case x$2 in
7346 x)
7347 ;;
7348 *:)
7349 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7350 ;;
7351 x:*)
7352 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7353 ;;
7354 *::*)
7355 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7356 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7357 ;;
7358 *)
7359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7360 ;;
7361 esac
7362 }
7363
7364 ac_ext=c
7365 ac_cpp='$CPP $CPPFLAGS'
7366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7370 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7371 # On Suns, sometimes $CPP names a directory.
7372 if test -n "$CPP" && test -d "$CPP"; then
7373 CPP=
7374 fi
7375 if test -z "$CPP"; then
7376 if ${ac_cv_prog_CPP+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 # Double quotes because CPP needs to be expanded
7380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7381 do
7382 ac_preproc_ok=false
7383 for ac_c_preproc_warn_flag in '' yes
7384 do
7385 # Use a header file that comes with gcc, so configuring glibc
7386 # with a fresh cross-compiler works.
7387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7388 # <limits.h> exists even on freestanding compilers.
7389 # On the NeXT, cc -E runs the code through the compiler's parser,
7390 # not just through cpp. "Syntax error" is here to catch this case.
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 #ifdef __STDC__
7394 # include <limits.h>
7395 #else
7396 # include <assert.h>
7397 #endif
7398 Syntax error
7399 _ACEOF
7400 if ac_fn_c_try_cpp "$LINENO"; then :
7401
7402 else
7403 # Broken: fails on valid input.
7404 continue
7405 fi
7406 rm -f conftest.err conftest.i conftest.$ac_ext
7407
7408 # OK, works on sane cases. Now check whether nonexistent headers
7409 # can be detected and how.
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412 #include <ac_nonexistent.h>
7413 _ACEOF
7414 if ac_fn_c_try_cpp "$LINENO"; then :
7415 # Broken: success on invalid input.
7416 continue
7417 else
7418 # Passes both tests.
7419 ac_preproc_ok=:
7420 break
7421 fi
7422 rm -f conftest.err conftest.i conftest.$ac_ext
7423
7424 done
7425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7426 rm -f conftest.i conftest.err conftest.$ac_ext
7427 if $ac_preproc_ok; then :
7428 break
7429 fi
7430
7431 done
7432 ac_cv_prog_CPP=$CPP
7433
7434 fi
7435 CPP=$ac_cv_prog_CPP
7436 else
7437 ac_cv_prog_CPP=$CPP
7438 fi
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7440 $as_echo "$CPP" >&6; }
7441 ac_preproc_ok=false
7442 for ac_c_preproc_warn_flag in '' yes
7443 do
7444 # Use a header file that comes with gcc, so configuring glibc
7445 # with a fresh cross-compiler works.
7446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7447 # <limits.h> exists even on freestanding compilers.
7448 # On the NeXT, cc -E runs the code through the compiler's parser,
7449 # not just through cpp. "Syntax error" is here to catch this case.
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 #ifdef __STDC__
7453 # include <limits.h>
7454 #else
7455 # include <assert.h>
7456 #endif
7457 Syntax error
7458 _ACEOF
7459 if ac_fn_c_try_cpp "$LINENO"; then :
7460
7461 else
7462 # Broken: fails on valid input.
7463 continue
7464 fi
7465 rm -f conftest.err conftest.i conftest.$ac_ext
7466
7467 # OK, works on sane cases. Now check whether nonexistent headers
7468 # can be detected and how.
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 #include <ac_nonexistent.h>
7472 _ACEOF
7473 if ac_fn_c_try_cpp "$LINENO"; then :
7474 # Broken: success on invalid input.
7475 continue
7476 else
7477 # Passes both tests.
7478 ac_preproc_ok=:
7479 break
7480 fi
7481 rm -f conftest.err conftest.i conftest.$ac_ext
7482
7483 done
7484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7485 rm -f conftest.i conftest.err conftest.$ac_ext
7486 if $ac_preproc_ok; then :
7487
7488 else
7489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7491 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7492 See \`config.log' for more details" "$LINENO" 5; }
7493 fi
7494
7495 ac_ext=c
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7503 $as_echo_n "checking for ANSI C header files... " >&6; }
7504 if ${ac_cv_header_stdc+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #include <stdlib.h>
7510 #include <stdarg.h>
7511 #include <string.h>
7512 #include <float.h>
7513
7514 int
7515 main ()
7516 {
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 ac_cv_header_stdc=yes
7524 else
7525 ac_cv_header_stdc=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528
7529 if test $ac_cv_header_stdc = yes; then
7530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #include <string.h>
7534
7535 _ACEOF
7536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7537 $EGREP "memchr" >/dev/null 2>&1; then :
7538
7539 else
7540 ac_cv_header_stdc=no
7541 fi
7542 rm -f conftest*
7543
7544 fi
7545
7546 if test $ac_cv_header_stdc = yes; then
7547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 #include <stdlib.h>
7551
7552 _ACEOF
7553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7554 $EGREP "free" >/dev/null 2>&1; then :
7555
7556 else
7557 ac_cv_header_stdc=no
7558 fi
7559 rm -f conftest*
7560
7561 fi
7562
7563 if test $ac_cv_header_stdc = yes; then
7564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7565 if test "$cross_compiling" = yes; then :
7566 :
7567 else
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 #include <ctype.h>
7571 #include <stdlib.h>
7572 #if ((' ' & 0x0FF) == 0x020)
7573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7575 #else
7576 # define ISLOWER(c) \
7577 (('a' <= (c) && (c) <= 'i') \
7578 || ('j' <= (c) && (c) <= 'r') \
7579 || ('s' <= (c) && (c) <= 'z'))
7580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7581 #endif
7582
7583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7584 int
7585 main ()
7586 {
7587 int i;
7588 for (i = 0; i < 256; i++)
7589 if (XOR (islower (i), ISLOWER (i))
7590 || toupper (i) != TOUPPER (i))
7591 return 2;
7592 return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_run "$LINENO"; then :
7596
7597 else
7598 ac_cv_header_stdc=no
7599 fi
7600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7601 conftest.$ac_objext conftest.beam conftest.$ac_ext
7602 fi
7603
7604 fi
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7607 $as_echo "$ac_cv_header_stdc" >&6; }
7608 if test $ac_cv_header_stdc = yes; then
7609
7610 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7611
7612 fi
7613
7614 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7616 inttypes.h stdint.h unistd.h
7617 do :
7618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7619 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7620 "
7621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7622 cat >>confdefs.h <<_ACEOF
7623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 _ACEOF
7625
7626 fi
7627
7628 done
7629
7630
7631 for ac_header in dlfcn.h
7632 do :
7633 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7634 "
7635 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7636 cat >>confdefs.h <<_ACEOF
7637 #define HAVE_DLFCN_H 1
7638 _ACEOF
7639
7640 fi
7641
7642 done
7643
7644
7645
7646
7647
7648 # Set options
7649
7650
7651
7652 enable_dlopen=no
7653
7654
7655 enable_win32_dll=no
7656
7657
7658 # Check whether --enable-shared was given.
7659 if test "${enable_shared+set}" = set; then :
7660 enableval=$enable_shared; p=${PACKAGE-default}
7661 case $enableval in
7662 yes) enable_shared=yes ;;
7663 no) enable_shared=no ;;
7664 *)
7665 enable_shared=no
7666 # Look at the argument we got. We use all the common list separators.
7667 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7668 for pkg in $enableval; do
7669 IFS=$lt_save_ifs
7670 if test "X$pkg" = "X$p"; then
7671 enable_shared=yes
7672 fi
7673 done
7674 IFS=$lt_save_ifs
7675 ;;
7676 esac
7677 else
7678 enable_shared=yes
7679 fi
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689 # Check whether --enable-static was given.
7690 if test "${enable_static+set}" = set; then :
7691 enableval=$enable_static; p=${PACKAGE-default}
7692 case $enableval in
7693 yes) enable_static=yes ;;
7694 no) enable_static=no ;;
7695 *)
7696 enable_static=no
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7699 for pkg in $enableval; do
7700 IFS=$lt_save_ifs
7701 if test "X$pkg" = "X$p"; then
7702 enable_static=yes
7703 fi
7704 done
7705 IFS=$lt_save_ifs
7706 ;;
7707 esac
7708 else
7709 enable_static=yes
7710 fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 # Check whether --with-pic was given.
7722 if test "${with_pic+set}" = set; then :
7723 withval=$with_pic; lt_p=${PACKAGE-default}
7724 case $withval in
7725 yes|no) pic_mode=$withval ;;
7726 *)
7727 pic_mode=default
7728 # Look at the argument we got. We use all the common list separators.
7729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7730 for lt_pkg in $withval; do
7731 IFS=$lt_save_ifs
7732 if test "X$lt_pkg" = "X$lt_p"; then
7733 pic_mode=yes
7734 fi
7735 done
7736 IFS=$lt_save_ifs
7737 ;;
7738 esac
7739 else
7740 pic_mode=default
7741 fi
7742
7743
7744
7745
7746
7747
7748
7749
7750 # Check whether --enable-fast-install was given.
7751 if test "${enable_fast_install+set}" = set; then :
7752 enableval=$enable_fast_install; p=${PACKAGE-default}
7753 case $enableval in
7754 yes) enable_fast_install=yes ;;
7755 no) enable_fast_install=no ;;
7756 *)
7757 enable_fast_install=no
7758 # Look at the argument we got. We use all the common list separators.
7759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7760 for pkg in $enableval; do
7761 IFS=$lt_save_ifs
7762 if test "X$pkg" = "X$p"; then
7763 enable_fast_install=yes
7764 fi
7765 done
7766 IFS=$lt_save_ifs
7767 ;;
7768 esac
7769 else
7770 enable_fast_install=yes
7771 fi
7772
7773
7774
7775
7776
7777
7778
7779
7780 shared_archive_member_spec=
7781 case $host,$enable_shared in
7782 power*-*-aix[5-9]*,yes)
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7784 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7785
7786 # Check whether --with-aix-soname was given.
7787 if test "${with_aix_soname+set}" = set; then :
7788 withval=$with_aix_soname; case $withval in
7789 aix|svr4|both)
7790 ;;
7791 *)
7792 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7793 ;;
7794 esac
7795 lt_cv_with_aix_soname=$with_aix_soname
7796 else
7797 if ${lt_cv_with_aix_soname+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 lt_cv_with_aix_soname=aix
7801 fi
7802
7803 with_aix_soname=$lt_cv_with_aix_soname
7804 fi
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7807 $as_echo "$with_aix_soname" >&6; }
7808 if test aix != "$with_aix_soname"; then
7809 # For the AIX way of multilib, we name the shared archive member
7810 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7811 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7812 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7813 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7814 if test 64 = "${OBJECT_MODE-32}"; then
7815 shared_archive_member_spec=shr_64
7816 else
7817 shared_archive_member_spec=shr
7818 fi
7819 fi
7820 ;;
7821 *)
7822 with_aix_soname=aix
7823 ;;
7824 esac
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835 # This can be used to rebuild libtool when needed
7836 LIBTOOL_DEPS=$ltmain
7837
7838 # Always use our own libtool.
7839 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870 test -z "$LN_S" && LN_S="ln -s"
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885 if test -n "${ZSH_VERSION+set}"; then
7886 setopt NO_GLOB_SUBST
7887 fi
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7890 $as_echo_n "checking for objdir... " >&6; }
7891 if ${lt_cv_objdir+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 rm -f .libs 2>/dev/null
7895 mkdir .libs 2>/dev/null
7896 if test -d .libs; then
7897 lt_cv_objdir=.libs
7898 else
7899 # MS-DOS does not allow filenames that begin with a dot.
7900 lt_cv_objdir=_libs
7901 fi
7902 rmdir .libs 2>/dev/null
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7905 $as_echo "$lt_cv_objdir" >&6; }
7906 objdir=$lt_cv_objdir
7907
7908
7909
7910
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define LT_OBJDIR "$lt_cv_objdir/"
7914 _ACEOF
7915
7916
7917
7918
7919 case $host_os in
7920 aix3*)
7921 # AIX sometimes has problems with the GCC collect2 program. For some
7922 # reason, if we set the COLLECT_NAMES environment variable, the problems
7923 # vanish in a puff of smoke.
7924 if test set != "${COLLECT_NAMES+set}"; then
7925 COLLECT_NAMES=
7926 export COLLECT_NAMES
7927 fi
7928 ;;
7929 esac
7930
7931 # Global variables:
7932 ofile=libtool
7933 can_build_shared=yes
7934
7935 # All known linkers require a '.a' archive for static linking (except MSVC,
7936 # which needs '.lib').
7937 libext=a
7938
7939 with_gnu_ld=$lt_cv_prog_gnu_ld
7940
7941 old_CC=$CC
7942 old_CFLAGS=$CFLAGS
7943
7944 # Set sane defaults for various variables
7945 test -z "$CC" && CC=cc
7946 test -z "$LTCC" && LTCC=$CC
7947 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7948 test -z "$LD" && LD=ld
7949 test -z "$ac_objext" && ac_objext=o
7950
7951 func_cc_basename $compiler
7952 cc_basename=$func_cc_basename_result
7953
7954
7955 # Only perform the check for file, if the check method requires it
7956 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7957 case $deplibs_check_method in
7958 file_magic*)
7959 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7961 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7962 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 case $MAGIC_CMD in
7966 [\\/*] | ?:[\\/]*)
7967 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7968 ;;
7969 *)
7970 lt_save_MAGIC_CMD=$MAGIC_CMD
7971 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7972 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7973 for ac_dir in $ac_dummy; do
7974 IFS=$lt_save_ifs
7975 test -z "$ac_dir" && ac_dir=.
7976 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7977 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7978 if test -n "$file_magic_test_file"; then
7979 case $deplibs_check_method in
7980 "file_magic "*)
7981 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7982 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7984 $EGREP "$file_magic_regex" > /dev/null; then
7985 :
7986 else
7987 cat <<_LT_EOF 1>&2
7988
7989 *** Warning: the command libtool uses to detect shared libraries,
7990 *** $file_magic_cmd, produces output that libtool cannot recognize.
7991 *** The result is that libtool may fail to recognize shared libraries
7992 *** as such. This will affect the creation of libtool libraries that
7993 *** depend on shared libraries, but programs linked with such libtool
7994 *** libraries will work regardless of this problem. Nevertheless, you
7995 *** may want to report the problem to your system manager and/or to
7996 *** bug-libtool (at] gnu.org
7997
7998 _LT_EOF
7999 fi ;;
8000 esac
8001 fi
8002 break
8003 fi
8004 done
8005 IFS=$lt_save_ifs
8006 MAGIC_CMD=$lt_save_MAGIC_CMD
8007 ;;
8008 esac
8009 fi
8010
8011 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8012 if test -n "$MAGIC_CMD"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8014 $as_echo "$MAGIC_CMD" >&6; }
8015 else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019
8020
8021
8022
8023
8024 if test -z "$lt_cv_path_MAGIC_CMD"; then
8025 if test -n "$ac_tool_prefix"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8027 $as_echo_n "checking for file... " >&6; }
8028 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 case $MAGIC_CMD in
8032 [\\/*] | ?:[\\/]*)
8033 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8034 ;;
8035 *)
8036 lt_save_MAGIC_CMD=$MAGIC_CMD
8037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8039 for ac_dir in $ac_dummy; do
8040 IFS=$lt_save_ifs
8041 test -z "$ac_dir" && ac_dir=.
8042 if test -f "$ac_dir/file"; then
8043 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8044 if test -n "$file_magic_test_file"; then
8045 case $deplibs_check_method in
8046 "file_magic "*)
8047 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8048 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8050 $EGREP "$file_magic_regex" > /dev/null; then
8051 :
8052 else
8053 cat <<_LT_EOF 1>&2
8054
8055 *** Warning: the command libtool uses to detect shared libraries,
8056 *** $file_magic_cmd, produces output that libtool cannot recognize.
8057 *** The result is that libtool may fail to recognize shared libraries
8058 *** as such. This will affect the creation of libtool libraries that
8059 *** depend on shared libraries, but programs linked with such libtool
8060 *** libraries will work regardless of this problem. Nevertheless, you
8061 *** may want to report the problem to your system manager and/or to
8062 *** bug-libtool (at] gnu.org
8063
8064 _LT_EOF
8065 fi ;;
8066 esac
8067 fi
8068 break
8069 fi
8070 done
8071 IFS=$lt_save_ifs
8072 MAGIC_CMD=$lt_save_MAGIC_CMD
8073 ;;
8074 esac
8075 fi
8076
8077 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8078 if test -n "$MAGIC_CMD"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8080 $as_echo "$MAGIC_CMD" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8084 fi
8085
8086
8087 else
8088 MAGIC_CMD=:
8089 fi
8090 fi
8091
8092 fi
8093 ;;
8094 esac
8095
8096 # Use C for the default configuration in the libtool script
8097
8098 lt_save_CC=$CC
8099 ac_ext=c
8100 ac_cpp='$CPP $CPPFLAGS'
8101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104
8105
8106 # Source file extension for C test sources.
8107 ac_ext=c
8108
8109 # Object file extension for compiled C test sources.
8110 objext=o
8111 objext=$objext
8112
8113 # Code to be used in simple compile tests
8114 lt_simple_compile_test_code="int some_variable = 0;"
8115
8116 # Code to be used in simple link tests
8117 lt_simple_link_test_code='int main(){return(0);}'
8118
8119
8120
8121
8122
8123
8124
8125 # If no C compiler was specified, use CC.
8126 LTCC=${LTCC-"$CC"}
8127
8128 # If no C compiler flags were specified, use CFLAGS.
8129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8130
8131 # Allow CC to be a program name with arguments.
8132 compiler=$CC
8133
8134 # Save the default compiler, since it gets overwritten when the other
8135 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8136 compiler_DEFAULT=$CC
8137
8138 # save warnings/boilerplate of simple test code
8139 ac_outfile=conftest.$ac_objext
8140 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8142 _lt_compiler_boilerplate=`cat conftest.err`
8143 $RM conftest*
8144
8145 ac_outfile=conftest.$ac_objext
8146 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8148 _lt_linker_boilerplate=`cat conftest.err`
8149 $RM -r conftest*
8150
8151
8152 if test -n "$compiler"; then
8153
8154 lt_prog_compiler_no_builtin_flag=
8155
8156 if test yes = "$GCC"; then
8157 case $cc_basename in
8158 nvcc*)
8159 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8160 *)
8161 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8162 esac
8163
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8165 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8166 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 lt_cv_prog_compiler_rtti_exceptions=no
8170 ac_outfile=conftest.$ac_objext
8171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8172 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8173 # Insert the option either (1) after the last *FLAGS variable, or
8174 # (2) before a word containing "conftest.", or (3) at the end.
8175 # Note that $ac_compile itself does not contain backslashes and begins
8176 # with a dollar sign (not a hyphen), so the echo should work correctly.
8177 # The option is referenced via a variable to avoid confusing sed.
8178 lt_compile=`echo "$ac_compile" | $SED \
8179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8181 -e 's:$: $lt_compiler_flag:'`
8182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8183 (eval "$lt_compile" 2>conftest.err)
8184 ac_status=$?
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 if (exit $ac_status) && test -s "$ac_outfile"; then
8188 # The compiler can only warn and ignore the option if not recognized
8189 # So say no if there are warnings other than the usual output.
8190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8193 lt_cv_prog_compiler_rtti_exceptions=yes
8194 fi
8195 fi
8196 $RM conftest*
8197
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8200 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8201
8202 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8203 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8204 else
8205 :
8206 fi
8207
8208 fi
8209
8210
8211
8212
8213
8214
8215 lt_prog_compiler_wl=
8216 lt_prog_compiler_pic=
8217 lt_prog_compiler_static=
8218
8219
8220 if test yes = "$GCC"; then
8221 lt_prog_compiler_wl='-Wl,'
8222 lt_prog_compiler_static='-static'
8223
8224 case $host_os in
8225 aix*)
8226 # All AIX code is PIC.
8227 if test ia64 = "$host_cpu"; then
8228 # AIX 5 now supports IA64 processor
8229 lt_prog_compiler_static='-Bstatic'
8230 fi
8231 lt_prog_compiler_pic='-fPIC'
8232 ;;
8233
8234 amigaos*)
8235 case $host_cpu in
8236 powerpc)
8237 # see comment about AmigaOS4 .so support
8238 lt_prog_compiler_pic='-fPIC'
8239 ;;
8240 m68k)
8241 # FIXME: we need at least 68020 code to build shared libraries, but
8242 # adding the '-m68020' flag to GCC prevents building anything better,
8243 # like '-m68040'.
8244 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8245 ;;
8246 esac
8247 ;;
8248
8249 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8250 # PIC is the default for these OSes.
8251 ;;
8252
8253 mingw* | cygwin* | pw32* | os2* | cegcc*)
8254 # This hack is so that the source file can tell whether it is being
8255 # built for inclusion in a dll (and should export symbols for example).
8256 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8257 # (--disable-auto-import) libraries
8258 lt_prog_compiler_pic='-DDLL_EXPORT'
8259 case $host_os in
8260 os2*)
8261 lt_prog_compiler_static='$wl-static'
8262 ;;
8263 esac
8264 ;;
8265
8266 darwin* | rhapsody*)
8267 # PIC is the default on this platform
8268 # Common symbols not allowed in MH_DYLIB files
8269 lt_prog_compiler_pic='-fno-common'
8270 ;;
8271
8272 haiku*)
8273 # PIC is the default for Haiku.
8274 # The "-static" flag exists, but is broken.
8275 lt_prog_compiler_static=
8276 ;;
8277
8278 hpux*)
8279 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8280 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8281 # sets the default TLS model and affects inlining.
8282 case $host_cpu in
8283 hppa*64*)
8284 # +Z the default
8285 ;;
8286 *)
8287 lt_prog_compiler_pic='-fPIC'
8288 ;;
8289 esac
8290 ;;
8291
8292 interix[3-9]*)
8293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8294 # Instead, we relocate shared libraries at runtime.
8295 ;;
8296
8297 msdosdjgpp*)
8298 # Just because we use GCC doesn't mean we suddenly get shared libraries
8299 # on systems that don't support them.
8300 lt_prog_compiler_can_build_shared=no
8301 enable_shared=no
8302 ;;
8303
8304 *nto* | *qnx*)
8305 # QNX uses GNU C++, but need to define -shared option too, otherwise
8306 # it will coredump.
8307 lt_prog_compiler_pic='-fPIC -shared'
8308 ;;
8309
8310 sysv4*MP*)
8311 if test -d /usr/nec; then
8312 lt_prog_compiler_pic=-Kconform_pic
8313 fi
8314 ;;
8315
8316 *)
8317 lt_prog_compiler_pic='-fPIC'
8318 ;;
8319 esac
8320
8321 case $cc_basename in
8322 nvcc*) # Cuda Compiler Driver 2.2
8323 lt_prog_compiler_wl='-Xlinker '
8324 if test -n "$lt_prog_compiler_pic"; then
8325 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8326 fi
8327 ;;
8328 esac
8329 else
8330 # PORTME Check for flag to pass linker flags through the system compiler.
8331 case $host_os in
8332 aix*)
8333 lt_prog_compiler_wl='-Wl,'
8334 if test ia64 = "$host_cpu"; then
8335 # AIX 5 now supports IA64 processor
8336 lt_prog_compiler_static='-Bstatic'
8337 else
8338 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8339 fi
8340 ;;
8341
8342 darwin* | rhapsody*)
8343 # PIC is the default on this platform
8344 # Common symbols not allowed in MH_DYLIB files
8345 lt_prog_compiler_pic='-fno-common'
8346 case $cc_basename in
8347 nagfor*)
8348 # NAG Fortran compiler
8349 lt_prog_compiler_wl='-Wl,-Wl,,'
8350 lt_prog_compiler_pic='-PIC'
8351 lt_prog_compiler_static='-Bstatic'
8352 ;;
8353 esac
8354 ;;
8355
8356 mingw* | cygwin* | pw32* | os2* | cegcc*)
8357 # This hack is so that the source file can tell whether it is being
8358 # built for inclusion in a dll (and should export symbols for example).
8359 lt_prog_compiler_pic='-DDLL_EXPORT'
8360 case $host_os in
8361 os2*)
8362 lt_prog_compiler_static='$wl-static'
8363 ;;
8364 esac
8365 ;;
8366
8367 hpux9* | hpux10* | hpux11*)
8368 lt_prog_compiler_wl='-Wl,'
8369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8370 # not for PA HP-UX.
8371 case $host_cpu in
8372 hppa*64*|ia64*)
8373 # +Z the default
8374 ;;
8375 *)
8376 lt_prog_compiler_pic='+Z'
8377 ;;
8378 esac
8379 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8380 lt_prog_compiler_static='$wl-a ${wl}archive'
8381 ;;
8382
8383 irix5* | irix6* | nonstopux*)
8384 lt_prog_compiler_wl='-Wl,'
8385 # PIC (with -KPIC) is the default.
8386 lt_prog_compiler_static='-non_shared'
8387 ;;
8388
8389 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8390 case $cc_basename in
8391 # old Intel for x86_64, which still supported -KPIC.
8392 ecc*)
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-static'
8396 ;;
8397 # icc used to be incompatible with GCC.
8398 # ICC 10 doesn't accept -KPIC any more.
8399 icc* | ifort*)
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='-fPIC'
8402 lt_prog_compiler_static='-static'
8403 ;;
8404 # Lahey Fortran 8.1.
8405 lf95*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='--shared'
8408 lt_prog_compiler_static='--static'
8409 ;;
8410 nagfor*)
8411 # NAG Fortran compiler
8412 lt_prog_compiler_wl='-Wl,-Wl,,'
8413 lt_prog_compiler_pic='-PIC'
8414 lt_prog_compiler_static='-Bstatic'
8415 ;;
8416 tcc*)
8417 # Fabrice Bellard et al's Tiny C Compiler
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_pic='-fPIC'
8420 lt_prog_compiler_static='-static'
8421 ;;
8422 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8423 # Portland Group compilers (*not* the Pentium gcc compiler,
8424 # which looks to be a dead project)
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_pic='-fpic'
8427 lt_prog_compiler_static='-Bstatic'
8428 ;;
8429 ccc*)
8430 lt_prog_compiler_wl='-Wl,'
8431 # All Alpha code is PIC.
8432 lt_prog_compiler_static='-non_shared'
8433 ;;
8434 xl* | bgxl* | bgf* | mpixl*)
8435 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-qpic'
8438 lt_prog_compiler_static='-qstaticlink'
8439 ;;
8440 *)
8441 case `$CC -V 2>&1 | sed 5q` in
8442 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8443 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_wl=''
8447 ;;
8448 *Sun\ F* | *Sun*Fortran*)
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_wl='-Qoption ld '
8452 ;;
8453 *Sun\ C*)
8454 # Sun C 5.9
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_wl='-Wl,'
8458 ;;
8459 *Intel*\ [CF]*Compiler*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-fPIC'
8462 lt_prog_compiler_static='-static'
8463 ;;
8464 *Portland\ Group*)
8465 lt_prog_compiler_wl='-Wl,'
8466 lt_prog_compiler_pic='-fpic'
8467 lt_prog_compiler_static='-Bstatic'
8468 ;;
8469 esac
8470 ;;
8471 esac
8472 ;;
8473
8474 newsos6)
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 ;;
8478
8479 *nto* | *qnx*)
8480 # QNX uses GNU C++, but need to define -shared option too, otherwise
8481 # it will coredump.
8482 lt_prog_compiler_pic='-fPIC -shared'
8483 ;;
8484
8485 osf3* | osf4* | osf5*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # All OSF/1 code is PIC.
8488 lt_prog_compiler_static='-non_shared'
8489 ;;
8490
8491 rdos*)
8492 lt_prog_compiler_static='-non_shared'
8493 ;;
8494
8495 solaris*)
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-Bstatic'
8498 case $cc_basename in
8499 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8500 lt_prog_compiler_wl='-Qoption ld ';;
8501 *)
8502 lt_prog_compiler_wl='-Wl,';;
8503 esac
8504 ;;
8505
8506 sunos4*)
8507 lt_prog_compiler_wl='-Qoption ld '
8508 lt_prog_compiler_pic='-PIC'
8509 lt_prog_compiler_static='-Bstatic'
8510 ;;
8511
8512 sysv4 | sysv4.2uw2* | sysv4.3*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 ;;
8517
8518 sysv4*MP*)
8519 if test -d /usr/nec; then
8520 lt_prog_compiler_pic='-Kconform_pic'
8521 lt_prog_compiler_static='-Bstatic'
8522 fi
8523 ;;
8524
8525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8529 ;;
8530
8531 unicos*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_can_build_shared=no
8534 ;;
8535
8536 uts4*)
8537 lt_prog_compiler_pic='-pic'
8538 lt_prog_compiler_static='-Bstatic'
8539 ;;
8540
8541 *)
8542 lt_prog_compiler_can_build_shared=no
8543 ;;
8544 esac
8545 fi
8546
8547 case $host_os in
8548 # For platforms that do not support PIC, -DPIC is meaningless:
8549 *djgpp*)
8550 lt_prog_compiler_pic=
8551 ;;
8552 *)
8553 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8554 ;;
8555 esac
8556
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8559 if ${lt_cv_prog_compiler_pic+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8565 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8566 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8567
8568 #
8569 # Check to make sure the PIC flag actually works.
8570 #
8571 if test -n "$lt_prog_compiler_pic"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8573 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8574 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 lt_cv_prog_compiler_pic_works=no
8578 ac_outfile=conftest.$ac_objext
8579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8581 # Insert the option either (1) after the last *FLAGS variable, or
8582 # (2) before a word containing "conftest.", or (3) at the end.
8583 # Note that $ac_compile itself does not contain backslashes and begins
8584 # with a dollar sign (not a hyphen), so the echo should work correctly.
8585 # The option is referenced via a variable to avoid confusing sed.
8586 lt_compile=`echo "$ac_compile" | $SED \
8587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589 -e 's:$: $lt_compiler_flag:'`
8590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8591 (eval "$lt_compile" 2>conftest.err)
8592 ac_status=$?
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 if (exit $ac_status) && test -s "$ac_outfile"; then
8596 # The compiler can only warn and ignore the option if not recognized
8597 # So say no if there are warnings other than the usual output.
8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8601 lt_cv_prog_compiler_pic_works=yes
8602 fi
8603 fi
8604 $RM conftest*
8605
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8608 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8609
8610 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8611 case $lt_prog_compiler_pic in
8612 "" | " "*) ;;
8613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8614 esac
8615 else
8616 lt_prog_compiler_pic=
8617 lt_prog_compiler_can_build_shared=no
8618 fi
8619
8620 fi
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 #
8633 # Check to make sure the static flag actually works.
8634 #
8635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8637 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8638 if ${lt_cv_prog_compiler_static_works+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 lt_cv_prog_compiler_static_works=no
8642 save_LDFLAGS=$LDFLAGS
8643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8644 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8646 # The linker can only warn and ignore the option if not recognized
8647 # So say no if there are warnings
8648 if test -s conftest.err; then
8649 # Append any errors to the config.log.
8650 cat conftest.err 1>&5
8651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653 if diff conftest.exp conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_static_works=yes
8655 fi
8656 else
8657 lt_cv_prog_compiler_static_works=yes
8658 fi
8659 fi
8660 $RM -r conftest*
8661 LDFLAGS=$save_LDFLAGS
8662
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8665 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8666
8667 if test yes = "$lt_cv_prog_compiler_static_works"; then
8668 :
8669 else
8670 lt_prog_compiler_static=
8671 fi
8672
8673
8674
8675
8676
8677
8678
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8681 if ${lt_cv_prog_compiler_c_o+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 lt_cv_prog_compiler_c_o=no
8685 $RM -r conftest 2>/dev/null
8686 mkdir conftest
8687 cd conftest
8688 mkdir out
8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8690
8691 lt_compiler_flag="-o out/conftest2.$ac_objext"
8692 # Insert the option either (1) after the last *FLAGS variable, or
8693 # (2) before a word containing "conftest.", or (3) at the end.
8694 # Note that $ac_compile itself does not contain backslashes and begins
8695 # with a dollar sign (not a hyphen), so the echo should work correctly.
8696 lt_compile=`echo "$ac_compile" | $SED \
8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8699 -e 's:$: $lt_compiler_flag:'`
8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8701 (eval "$lt_compile" 2>out/conftest.err)
8702 ac_status=$?
8703 cat out/conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8706 then
8707 # The compiler can only warn and ignore the option if not recognized
8708 # So say no if there are warnings
8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_c_o=yes
8713 fi
8714 fi
8715 chmod u+w . 2>&5
8716 $RM conftest*
8717 # SGI C++ compiler will create directory out/ii_files/ for
8718 # template instantiation
8719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8720 $RM out/* && rmdir out
8721 cd ..
8722 $RM -r conftest
8723 $RM conftest*
8724
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8727 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8728
8729
8730
8731
8732
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8736 if ${lt_cv_prog_compiler_c_o+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_c_o=no
8740 $RM -r conftest 2>/dev/null
8741 mkdir conftest
8742 cd conftest
8743 mkdir out
8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8745
8746 lt_compiler_flag="-o out/conftest2.$ac_objext"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 lt_compile=`echo "$ac_compile" | $SED \
8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754 -e 's:$: $lt_compiler_flag:'`
8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8756 (eval "$lt_compile" 2>out/conftest.err)
8757 ac_status=$?
8758 cat out/conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8761 then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_c_o=yes
8768 fi
8769 fi
8770 chmod u+w . 2>&5
8771 $RM conftest*
8772 # SGI C++ compiler will create directory out/ii_files/ for
8773 # template instantiation
8774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8775 $RM out/* && rmdir out
8776 cd ..
8777 $RM -r conftest
8778 $RM conftest*
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8782 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8783
8784
8785
8786
8787 hard_links=nottested
8788 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8789 # do not overwrite the value of need_locks provided by the user
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8791 $as_echo_n "checking if we can lock with hard links... " >&6; }
8792 hard_links=yes
8793 $RM conftest*
8794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8795 touch conftest.a
8796 ln conftest.a conftest.b 2>&5 || hard_links=no
8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8799 $as_echo "$hard_links" >&6; }
8800 if test no = "$hard_links"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8802 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8803 need_locks=warn
8804 fi
8805 else
8806 need_locks=no
8807 fi
8808
8809
8810
8811
8812
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8816
8817 runpath_var=
8818 allow_undefined_flag=
8819 always_export_symbols=no
8820 archive_cmds=
8821 archive_expsym_cmds=
8822 compiler_needs_object=no
8823 enable_shared_with_static_runtimes=no
8824 export_dynamic_flag_spec=
8825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8826 hardcode_automatic=no
8827 hardcode_direct=no
8828 hardcode_direct_absolute=no
8829 hardcode_libdir_flag_spec=
8830 hardcode_libdir_separator=
8831 hardcode_minus_L=no
8832 hardcode_shlibpath_var=unsupported
8833 inherit_rpath=no
8834 link_all_deplibs=unknown
8835 module_cmds=
8836 module_expsym_cmds=
8837 old_archive_from_new_cmds=
8838 old_archive_from_expsyms_cmds=
8839 thread_safe_flag_spec=
8840 whole_archive_flag_spec=
8841 # include_expsyms should be a list of space-separated symbols to be *always*
8842 # included in the symbol list
8843 include_expsyms=
8844 # exclude_expsyms can be an extended regexp of symbols to exclude
8845 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8846 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8847 # as well as any symbol that contains 'd'.
8848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8850 # platforms (ab)use it in PIC code, but their linkers get confused if
8851 # the symbol is explicitly referenced. Since portable code cannot
8852 # rely on this symbol name, it's probably fine to never include it in
8853 # preloaded symbol tables.
8854 # Exclude shared library initialization/finalization symbols.
8855 extract_expsyms_cmds=
8856
8857 case $host_os in
8858 cygwin* | mingw* | pw32* | cegcc*)
8859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8860 # When not using gcc, we currently assume that we are using
8861 # Microsoft Visual C++.
8862 if test yes != "$GCC"; then
8863 with_gnu_ld=no
8864 fi
8865 ;;
8866 interix*)
8867 # we just hope/assume this is gcc and not c89 (= MSVC++)
8868 with_gnu_ld=yes
8869 ;;
8870 openbsd* | bitrig*)
8871 with_gnu_ld=no
8872 ;;
8873 esac
8874
8875 ld_shlibs=yes
8876
8877 # On some targets, GNU ld is compatible enough with the native linker
8878 # that we're better off using the native interface for both.
8879 lt_use_gnu_ld_interface=no
8880 if test yes = "$with_gnu_ld"; then
8881 case $host_os in
8882 aix*)
8883 # The AIX port of GNU ld has always aspired to compatibility
8884 # with the native linker. However, as the warning in the GNU ld
8885 # block says, versions before 2.19.5* couldn't really create working
8886 # shared libraries, regardless of the interface used.
8887 case `$LD -v 2>&1` in
8888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8890 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8891 *)
8892 lt_use_gnu_ld_interface=yes
8893 ;;
8894 esac
8895 ;;
8896 *)
8897 lt_use_gnu_ld_interface=yes
8898 ;;
8899 esac
8900 fi
8901
8902 if test yes = "$lt_use_gnu_ld_interface"; then
8903 # If archive_cmds runs LD, not CC, wlarc should be empty
8904 wlarc='$wl'
8905
8906 # Set some defaults for GNU ld with shared library support. These
8907 # are reset later if shared libraries are not supported. Putting them
8908 # here allows them to be overridden if necessary.
8909 runpath_var=LD_RUN_PATH
8910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8911 export_dynamic_flag_spec='$wl--export-dynamic'
8912 # ancient GNU ld didn't support --whole-archive et. al.
8913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8914 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8915 else
8916 whole_archive_flag_spec=
8917 fi
8918 supports_anon_versioning=no
8919 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8920 *GNU\ gold*) supports_anon_versioning=yes ;;
8921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8924 *\ 2.11.*) ;; # other 2.11 versions
8925 *) supports_anon_versioning=yes ;;
8926 esac
8927
8928 # See if GNU ld supports shared libraries.
8929 case $host_os in
8930 aix[3-9]*)
8931 # On AIX/PPC, the GNU linker is very broken
8932 if test ia64 != "$host_cpu"; then
8933 ld_shlibs=no
8934 cat <<_LT_EOF 1>&2
8935
8936 *** Warning: the GNU linker, at least up to release 2.19, is reported
8937 *** to be unable to reliably create shared libraries on AIX.
8938 *** Therefore, libtool is disabling shared libraries support. If you
8939 *** really care for shared libraries, you may want to install binutils
8940 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8941 *** You will then need to restart the configuration process.
8942
8943 _LT_EOF
8944 fi
8945 ;;
8946
8947 amigaos*)
8948 case $host_cpu in
8949 powerpc)
8950 # see comment about AmigaOS4 .so support
8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8952 archive_expsym_cmds=''
8953 ;;
8954 m68k)
8955 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)'
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_minus_L=yes
8958 ;;
8959 esac
8960 ;;
8961
8962 beos*)
8963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8964 allow_undefined_flag=unsupported
8965 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8966 # support --undefined. This deserves some investigation. FIXME
8967 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8968 else
8969 ld_shlibs=no
8970 fi
8971 ;;
8972
8973 cygwin* | mingw* | pw32* | cegcc*)
8974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8975 # as there is no search path for DLLs.
8976 hardcode_libdir_flag_spec='-L$libdir'
8977 export_dynamic_flag_spec='$wl--export-all-symbols'
8978 allow_undefined_flag=unsupported
8979 always_export_symbols=no
8980 enable_shared_with_static_runtimes=yes
8981 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'
8982 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8983
8984 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8986 # If the export-symbols file already is a .def file, use it as
8987 # is; otherwise, prepend EXPORTS...
8988 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8989 cp $export_symbols $output_objdir/$soname.def;
8990 else
8991 echo EXPORTS > $output_objdir/$soname.def;
8992 cat $export_symbols >> $output_objdir/$soname.def;
8993 fi~
8994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8995 else
8996 ld_shlibs=no
8997 fi
8998 ;;
8999
9000 haiku*)
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9002 link_all_deplibs=yes
9003 ;;
9004
9005 os2*)
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_minus_L=yes
9008 allow_undefined_flag=unsupported
9009 shrext_cmds=.dll
9010 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9013 $ECHO EXPORTS >> $output_objdir/$libname.def~
9014 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9015 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9016 emximp -o $lib $output_objdir/$libname.def'
9017 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9018 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9019 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9020 $ECHO EXPORTS >> $output_objdir/$libname.def~
9021 prefix_cmds="$SED"~
9022 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9023 prefix_cmds="$prefix_cmds -e 1d";
9024 fi~
9025 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9026 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9028 emximp -o $lib $output_objdir/$libname.def'
9029 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9030 enable_shared_with_static_runtimes=yes
9031 ;;
9032
9033 interix[3-9]*)
9034 hardcode_direct=no
9035 hardcode_shlibpath_var=no
9036 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9037 export_dynamic_flag_spec='$wl-E'
9038 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9039 # Instead, shared libraries are loaded at an image base (0x10000000 by
9040 # default) and relocated if they conflict, which is a slow very memory
9041 # consuming and fragmenting process. To avoid this, we pick a random,
9042 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9043 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9045 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'
9046 ;;
9047
9048 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9049 tmp_diet=no
9050 if test linux-dietlibc = "$host_os"; then
9051 case $cc_basename in
9052 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9053 esac
9054 fi
9055 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9056 && test no = "$tmp_diet"
9057 then
9058 tmp_addflag=' $pic_flag'
9059 tmp_sharedflag='-shared'
9060 case $cc_basename,$host_cpu in
9061 pgcc*) # Portland Group C compiler
9062 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'
9063 tmp_addflag=' $pic_flag'
9064 ;;
9065 pgf77* | pgf90* | pgf95* | pgfortran*)
9066 # Portland Group f77 and f90 compilers
9067 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'
9068 tmp_addflag=' $pic_flag -Mnomain' ;;
9069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9070 tmp_addflag=' -i_dynamic' ;;
9071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9072 tmp_addflag=' -i_dynamic -nofor_main' ;;
9073 ifc* | ifort*) # Intel Fortran compiler
9074 tmp_addflag=' -nofor_main' ;;
9075 lf95*) # Lahey Fortran 8.1
9076 whole_archive_flag_spec=
9077 tmp_sharedflag='--shared' ;;
9078 nagfor*) # NAGFOR 5.3
9079 tmp_sharedflag='-Wl,-shared' ;;
9080 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9081 tmp_sharedflag='-qmkshrobj'
9082 tmp_addflag= ;;
9083 nvcc*) # Cuda Compiler Driver 2.2
9084 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'
9085 compiler_needs_object=yes
9086 ;;
9087 esac
9088 case `$CC -V 2>&1 | sed 5q` in
9089 *Sun\ C*) # Sun C 5.9
9090 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'
9091 compiler_needs_object=yes
9092 tmp_sharedflag='-G' ;;
9093 *Sun\ F*) # Sun Fortran 8.3
9094 tmp_sharedflag='-G' ;;
9095 esac
9096 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9097
9098 if test yes = "$supports_anon_versioning"; then
9099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9101 echo "local: *; };" >> $output_objdir/$libname.ver~
9102 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9103 fi
9104
9105 case $cc_basename in
9106 tcc*)
9107 export_dynamic_flag_spec='-rdynamic'
9108 ;;
9109 xlf* | bgf* | bgxlf* | mpixlf*)
9110 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9111 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9113 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9114 if test yes = "$supports_anon_versioning"; then
9115 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9117 echo "local: *; };" >> $output_objdir/$libname.ver~
9118 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9119 fi
9120 ;;
9121 esac
9122 else
9123 ld_shlibs=no
9124 fi
9125 ;;
9126
9127 netbsd*)
9128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9129 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9130 wlarc=
9131 else
9132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9133 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9134 fi
9135 ;;
9136
9137 solaris*)
9138 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9139 ld_shlibs=no
9140 cat <<_LT_EOF 1>&2
9141
9142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9143 *** create shared libraries on Solaris systems. Therefore, libtool
9144 *** is disabling shared libraries support. We urge you to upgrade GNU
9145 *** binutils to release 2.9.1 or newer. Another option is to modify
9146 *** your PATH or compiler configuration so that the native linker is
9147 *** used, and then restart.
9148
9149 _LT_EOF
9150 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9152 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9153 else
9154 ld_shlibs=no
9155 fi
9156 ;;
9157
9158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9159 case `$LD -v 2>&1` in
9160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9161 ld_shlibs=no
9162 cat <<_LT_EOF 1>&2
9163
9164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9165 *** reliably create shared libraries on SCO systems. Therefore, libtool
9166 *** is disabling shared libraries support. We urge you to upgrade GNU
9167 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9168 *** your PATH or compiler configuration so that the native linker is
9169 *** used, and then restart.
9170
9171 _LT_EOF
9172 ;;
9173 *)
9174 # For security reasons, it is highly recommended that you always
9175 # use absolute paths for naming shared libraries, and exclude the
9176 # DT_RUNPATH tag from executables and libraries. But doing so
9177 # requires that you compile everything twice, which is a pain.
9178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9182 else
9183 ld_shlibs=no
9184 fi
9185 ;;
9186 esac
9187 ;;
9188
9189 sunos4*)
9190 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9191 wlarc=
9192 hardcode_direct=yes
9193 hardcode_shlibpath_var=no
9194 ;;
9195
9196 *)
9197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9199 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9200 else
9201 ld_shlibs=no
9202 fi
9203 ;;
9204 esac
9205
9206 if test no = "$ld_shlibs"; then
9207 runpath_var=
9208 hardcode_libdir_flag_spec=
9209 export_dynamic_flag_spec=
9210 whole_archive_flag_spec=
9211 fi
9212 else
9213 # PORTME fill in a description of your system's linker (not GNU ld)
9214 case $host_os in
9215 aix3*)
9216 allow_undefined_flag=unsupported
9217 always_export_symbols=yes
9218 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'
9219 # Note: this linker hardcodes the directories in LIBPATH if there
9220 # are no directories specified by -L.
9221 hardcode_minus_L=yes
9222 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9223 # Neither direct hardcoding nor static linking is supported with a
9224 # broken collect2.
9225 hardcode_direct=unsupported
9226 fi
9227 ;;
9228
9229 aix[4-9]*)
9230 if test ia64 = "$host_cpu"; then
9231 # On IA64, the linker does run time linking by default, so we don't
9232 # have to do anything special.
9233 aix_use_runtimelinking=no
9234 exp_sym_flag='-Bexport'
9235 no_entry_flag=
9236 else
9237 # If we're using GNU nm, then we don't want the "-C" option.
9238 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9239 # Without the "-l" option, or with the "-B" option, AIX nm treats
9240 # weak defined symbols like other global defined symbols, whereas
9241 # GNU nm marks them as "W".
9242 # While the 'weak' keyword is ignored in the Export File, we need
9243 # it in the Import File for the 'aix-soname' feature, so we have
9244 # to replace the "-B" option with "-P" for AIX nm.
9245 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9246 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'
9247 else
9248 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'
9249 fi
9250 aix_use_runtimelinking=no
9251
9252 # Test if we are trying to use run time linking or normal
9253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9254 # have runtime linking enabled, and use it for executables.
9255 # For shared libraries, we enable/disable runtime linking
9256 # depending on the kind of the shared library created -
9257 # when "with_aix_soname,aix_use_runtimelinking" is:
9258 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9259 # "aix,yes" lib.so shared, rtl:yes, for executables
9260 # lib.a static archive
9261 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9262 # lib.a(lib.so.V) shared, rtl:no, for executables
9263 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9264 # lib.a(lib.so.V) shared, rtl:no
9265 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9266 # lib.a static archive
9267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9268 for ld_flag in $LDFLAGS; do
9269 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9270 aix_use_runtimelinking=yes
9271 break
9272 fi
9273 done
9274 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9275 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9276 # so we don't have lib.a shared libs to link our executables.
9277 # We have to force runtime linking in this case.
9278 aix_use_runtimelinking=yes
9279 LDFLAGS="$LDFLAGS -Wl,-brtl"
9280 fi
9281 ;;
9282 esac
9283
9284 exp_sym_flag='-bexport'
9285 no_entry_flag='-bnoentry'
9286 fi
9287
9288 # When large executables or shared objects are built, AIX ld can
9289 # have problems creating the table of contents. If linking a library
9290 # or program results in "error TOC overflow" add -mminimal-toc to
9291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9293
9294 archive_cmds=''
9295 hardcode_direct=yes
9296 hardcode_direct_absolute=yes
9297 hardcode_libdir_separator=':'
9298 link_all_deplibs=yes
9299 file_list_spec='$wl-f,'
9300 case $with_aix_soname,$aix_use_runtimelinking in
9301 aix,*) ;; # traditional, no import file
9302 svr4,* | *,yes) # use import file
9303 # The Import File defines what to hardcode.
9304 hardcode_direct=no
9305 hardcode_direct_absolute=no
9306 ;;
9307 esac
9308
9309 if test yes = "$GCC"; then
9310 case $host_os in aix4.[012]|aix4.[012].*)
9311 # We only want to do this on AIX 4.2 and lower, the check
9312 # below for broken collect2 doesn't work under 4.3+
9313 collect2name=`$CC -print-prog-name=collect2`
9314 if test -f "$collect2name" &&
9315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9316 then
9317 # We have reworked collect2
9318 :
9319 else
9320 # We have old collect2
9321 hardcode_direct=unsupported
9322 # It fails to find uninstalled libraries when the uninstalled
9323 # path is not listed in the libpath. Setting hardcode_minus_L
9324 # to unsupported forces relinking
9325 hardcode_minus_L=yes
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_libdir_separator=
9328 fi
9329 ;;
9330 esac
9331 shared_flag='-shared'
9332 if test yes = "$aix_use_runtimelinking"; then
9333 shared_flag="$shared_flag "'$wl-G'
9334 fi
9335 # Need to ensure runtime linking is disabled for the traditional
9336 # shared library, or the linker may eventually find shared libraries
9337 # /with/ Import File - we do not want to mix them.
9338 shared_flag_aix='-shared'
9339 shared_flag_svr4='-shared $wl-G'
9340 else
9341 # not using gcc
9342 if test ia64 = "$host_cpu"; then
9343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9344 # chokes on -Wl,-G. The following line is correct:
9345 shared_flag='-G'
9346 else
9347 if test yes = "$aix_use_runtimelinking"; then
9348 shared_flag='$wl-G'
9349 else
9350 shared_flag='$wl-bM:SRE'
9351 fi
9352 shared_flag_aix='$wl-bM:SRE'
9353 shared_flag_svr4='$wl-G'
9354 fi
9355 fi
9356
9357 export_dynamic_flag_spec='$wl-bexpall'
9358 # It seems that -bexpall does not export symbols beginning with
9359 # underscore (_), so it is better to generate a list of symbols to export.
9360 always_export_symbols=yes
9361 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9362 # Warning - without using the other runtime loading flags (-brtl),
9363 # -berok will link without error, but may produce a broken library.
9364 allow_undefined_flag='-berok'
9365 # Determine the default libpath from the value encoded in an
9366 # empty executable.
9367 if test set = "${lt_cv_aix_libpath+set}"; then
9368 aix_libpath=$lt_cv_aix_libpath
9369 else
9370 if ${lt_cv_aix_libpath_+:} false; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375
9376 int
9377 main ()
9378 {
9379
9380 ;
9381 return 0;
9382 }
9383 _ACEOF
9384 if ac_fn_c_try_link "$LINENO"; then :
9385
9386 lt_aix_libpath_sed='
9387 /Import File Strings/,/^$/ {
9388 /^0/ {
9389 s/^0 *\([^ ]*\) *$/\1/
9390 p
9391 }
9392 }'
9393 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9394 # Check for a 64-bit object if we didn't find anything.
9395 if test -z "$lt_cv_aix_libpath_"; then
9396 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9397 fi
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
9401 if test -z "$lt_cv_aix_libpath_"; then
9402 lt_cv_aix_libpath_=/usr/lib:/lib
9403 fi
9404
9405 fi
9406
9407 aix_libpath=$lt_cv_aix_libpath_
9408 fi
9409
9410 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9411 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
9412 else
9413 if test ia64 = "$host_cpu"; then
9414 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9415 allow_undefined_flag="-z nodefs"
9416 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"
9417 else
9418 # Determine the default libpath from the value encoded in an
9419 # empty executable.
9420 if test set = "${lt_cv_aix_libpath+set}"; then
9421 aix_libpath=$lt_cv_aix_libpath
9422 else
9423 if ${lt_cv_aix_libpath_+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428
9429 int
9430 main ()
9431 {
9432
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_link "$LINENO"; then :
9438
9439 lt_aix_libpath_sed='
9440 /Import File Strings/,/^$/ {
9441 /^0/ {
9442 s/^0 *\([^ ]*\) *$/\1/
9443 p
9444 }
9445 }'
9446 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9447 # Check for a 64-bit object if we didn't find anything.
9448 if test -z "$lt_cv_aix_libpath_"; then
9449 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450 fi
9451 fi
9452 rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test -z "$lt_cv_aix_libpath_"; then
9455 lt_cv_aix_libpath_=/usr/lib:/lib
9456 fi
9457
9458 fi
9459
9460 aix_libpath=$lt_cv_aix_libpath_
9461 fi
9462
9463 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9464 # Warning - without using the other run time loading flags,
9465 # -berok will link without error, but may produce a broken library.
9466 no_undefined_flag=' $wl-bernotok'
9467 allow_undefined_flag=' $wl-berok'
9468 if test yes = "$with_gnu_ld"; then
9469 # We only use this code for GNU lds that support --whole-archive.
9470 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9471 else
9472 # Exported symbols can be pulled into shared objects from archives
9473 whole_archive_flag_spec='$convenience'
9474 fi
9475 archive_cmds_need_lc=yes
9476 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9477 # -brtl affects multiple linker settings, -berok does not and is overridden later
9478 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9479 if test svr4 != "$with_aix_soname"; then
9480 # This is similar to how AIX traditionally builds its shared libraries.
9481 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'
9482 fi
9483 if test aix != "$with_aix_soname"; then
9484 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'
9485 else
9486 # used by -dlpreopen to get the symbols
9487 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9488 fi
9489 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9490 fi
9491 fi
9492 ;;
9493
9494 amigaos*)
9495 case $host_cpu in
9496 powerpc)
9497 # see comment about AmigaOS4 .so support
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9499 archive_expsym_cmds=''
9500 ;;
9501 m68k)
9502 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)'
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_minus_L=yes
9505 ;;
9506 esac
9507 ;;
9508
9509 bsdi[45]*)
9510 export_dynamic_flag_spec=-rdynamic
9511 ;;
9512
9513 cygwin* | mingw* | pw32* | cegcc*)
9514 # When not using gcc, we currently assume that we are using
9515 # Microsoft Visual C++.
9516 # hardcode_libdir_flag_spec is actually meaningless, as there is
9517 # no search path for DLLs.
9518 case $cc_basename in
9519 cl*)
9520 # Native MSVC
9521 hardcode_libdir_flag_spec=' '
9522 allow_undefined_flag=unsupported
9523 always_export_symbols=yes
9524 file_list_spec='@'
9525 # Tell ltmain to make .lib files, not .a files.
9526 libext=lib
9527 # Tell ltmain to make .dll files, not .so files.
9528 shrext_cmds=.dll
9529 # FIXME: Setting linknames here is a bad hack.
9530 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9531 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9532 cp "$export_symbols" "$output_objdir/$soname.def";
9533 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9534 else
9535 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9536 fi~
9537 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9538 linknames='
9539 # The linker will not automatically build a static lib if we build a DLL.
9540 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9541 enable_shared_with_static_runtimes=yes
9542 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9543 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9544 # Don't use ranlib
9545 old_postinstall_cmds='chmod 644 $oldlib'
9546 postlink_cmds='lt_outputfile="@OUTPUT@"~
9547 lt_tool_outputfile="@TOOL_OUTPUT@"~
9548 case $lt_outputfile in
9549 *.exe|*.EXE) ;;
9550 *)
9551 lt_outputfile=$lt_outputfile.exe
9552 lt_tool_outputfile=$lt_tool_outputfile.exe
9553 ;;
9554 esac~
9555 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9556 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9557 $RM "$lt_outputfile.manifest";
9558 fi'
9559 ;;
9560 *)
9561 # Assume MSVC wrapper
9562 hardcode_libdir_flag_spec=' '
9563 allow_undefined_flag=unsupported
9564 # Tell ltmain to make .lib files, not .a files.
9565 libext=lib
9566 # Tell ltmain to make .dll files, not .so files.
9567 shrext_cmds=.dll
9568 # FIXME: Setting linknames here is a bad hack.
9569 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9570 # The linker will automatically build a .lib file if we build a DLL.
9571 old_archive_from_new_cmds='true'
9572 # FIXME: Should let the user specify the lib program.
9573 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9574 enable_shared_with_static_runtimes=yes
9575 ;;
9576 esac
9577 ;;
9578
9579 darwin* | rhapsody*)
9580
9581
9582 archive_cmds_need_lc=no
9583 hardcode_direct=no
9584 hardcode_automatic=yes
9585 hardcode_shlibpath_var=unsupported
9586 if test yes = "$lt_cv_ld_force_load"; then
9587 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\"`'
9588
9589 else
9590 whole_archive_flag_spec=''
9591 fi
9592 link_all_deplibs=yes
9593 allow_undefined_flag=$_lt_dar_allow_undefined
9594 case $cc_basename in
9595 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9596 *) _lt_dar_can_shared=$GCC ;;
9597 esac
9598 if test yes = "$_lt_dar_can_shared"; then
9599 output_verbose_link_cmd=func_echo_all
9600 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9601 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9602 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"
9603 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"
9604
9605 else
9606 ld_shlibs=no
9607 fi
9608
9609 ;;
9610
9611 dgux*)
9612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613 hardcode_libdir_flag_spec='-L$libdir'
9614 hardcode_shlibpath_var=no
9615 ;;
9616
9617 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9618 # support. Future versions do this automatically, but an explicit c++rt0.o
9619 # does not break anything, and helps significantly (at the cost of a little
9620 # extra space).
9621 freebsd2.2*)
9622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9623 hardcode_libdir_flag_spec='-R$libdir'
9624 hardcode_direct=yes
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9629 freebsd2.*)
9630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_direct=yes
9632 hardcode_minus_L=yes
9633 hardcode_shlibpath_var=no
9634 ;;
9635
9636 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9637 freebsd* | dragonfly*)
9638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9639 hardcode_libdir_flag_spec='-R$libdir'
9640 hardcode_direct=yes
9641 hardcode_shlibpath_var=no
9642 ;;
9643
9644 hpux9*)
9645 if test yes = "$GCC"; then
9646 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'
9647 else
9648 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'
9649 fi
9650 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9651 hardcode_libdir_separator=:
9652 hardcode_direct=yes
9653
9654 # hardcode_minus_L: Not really in the search PATH,
9655 # but as the default location of the library.
9656 hardcode_minus_L=yes
9657 export_dynamic_flag_spec='$wl-E'
9658 ;;
9659
9660 hpux10*)
9661 if test yes,no = "$GCC,$with_gnu_ld"; then
9662 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9663 else
9664 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9665 fi
9666 if test no = "$with_gnu_ld"; then
9667 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9668 hardcode_libdir_separator=:
9669 hardcode_direct=yes
9670 hardcode_direct_absolute=yes
9671 export_dynamic_flag_spec='$wl-E'
9672 # hardcode_minus_L: Not really in the search PATH,
9673 # but as the default location of the library.
9674 hardcode_minus_L=yes
9675 fi
9676 ;;
9677
9678 hpux11*)
9679 if test yes,no = "$GCC,$with_gnu_ld"; then
9680 case $host_cpu in
9681 hppa*64*)
9682 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 ;;
9684 ia64*)
9685 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686 ;;
9687 *)
9688 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689 ;;
9690 esac
9691 else
9692 case $host_cpu in
9693 hppa*64*)
9694 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 ;;
9696 ia64*)
9697 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9698 ;;
9699 *)
9700
9701 # Older versions of the 11.00 compiler do not understand -b yet
9702 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9704 $as_echo_n "checking if $CC understands -b... " >&6; }
9705 if ${lt_cv_prog_compiler__b+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 lt_cv_prog_compiler__b=no
9709 save_LDFLAGS=$LDFLAGS
9710 LDFLAGS="$LDFLAGS -b"
9711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9713 # The linker can only warn and ignore the option if not recognized
9714 # So say no if there are warnings
9715 if test -s conftest.err; then
9716 # Append any errors to the config.log.
9717 cat conftest.err 1>&5
9718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9720 if diff conftest.exp conftest.er2 >/dev/null; then
9721 lt_cv_prog_compiler__b=yes
9722 fi
9723 else
9724 lt_cv_prog_compiler__b=yes
9725 fi
9726 fi
9727 $RM -r conftest*
9728 LDFLAGS=$save_LDFLAGS
9729
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9732 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9733
9734 if test yes = "$lt_cv_prog_compiler__b"; then
9735 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9738 fi
9739
9740 ;;
9741 esac
9742 fi
9743 if test no = "$with_gnu_ld"; then
9744 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9745 hardcode_libdir_separator=:
9746
9747 case $host_cpu in
9748 hppa*64*|ia64*)
9749 hardcode_direct=no
9750 hardcode_shlibpath_var=no
9751 ;;
9752 *)
9753 hardcode_direct=yes
9754 hardcode_direct_absolute=yes
9755 export_dynamic_flag_spec='$wl-E'
9756
9757 # hardcode_minus_L: Not really in the search PATH,
9758 # but as the default location of the library.
9759 hardcode_minus_L=yes
9760 ;;
9761 esac
9762 fi
9763 ;;
9764
9765 irix5* | irix6* | nonstopux*)
9766 if test yes = "$GCC"; then
9767 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'
9768 # Try to use the -exported_symbol ld option, if it does not
9769 # work, assume that -exports_file does not work either and
9770 # implicitly export all symbols.
9771 # This should be the same for all languages, so no per-tag cache variable.
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9773 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9774 if ${lt_cv_irix_exported_symbol+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 save_LDFLAGS=$LDFLAGS
9778 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9781 int foo (void) { return 0; }
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784 lt_cv_irix_exported_symbol=yes
9785 else
9786 lt_cv_irix_exported_symbol=no
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LDFLAGS=$save_LDFLAGS
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9793 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9794 if test yes = "$lt_cv_irix_exported_symbol"; then
9795 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'
9796 fi
9797 else
9798 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'
9799 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'
9800 fi
9801 archive_cmds_need_lc='no'
9802 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9803 hardcode_libdir_separator=:
9804 inherit_rpath=yes
9805 link_all_deplibs=yes
9806 ;;
9807
9808 linux*)
9809 case $cc_basename in
9810 tcc*)
9811 # Fabrice Bellard et al's Tiny C Compiler
9812 ld_shlibs=yes
9813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9814 ;;
9815 esac
9816 ;;
9817
9818 netbsd*)
9819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9821 else
9822 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9823 fi
9824 hardcode_libdir_flag_spec='-R$libdir'
9825 hardcode_direct=yes
9826 hardcode_shlibpath_var=no
9827 ;;
9828
9829 newsos6)
9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_direct=yes
9832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9833 hardcode_libdir_separator=:
9834 hardcode_shlibpath_var=no
9835 ;;
9836
9837 *nto* | *qnx*)
9838 ;;
9839
9840 openbsd* | bitrig*)
9841 if test -f /usr/libexec/ld.so; then
9842 hardcode_direct=yes
9843 hardcode_shlibpath_var=no
9844 hardcode_direct_absolute=yes
9845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9846 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9847 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9848 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9849 export_dynamic_flag_spec='$wl-E'
9850 else
9851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9852 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9853 fi
9854 else
9855 ld_shlibs=no
9856 fi
9857 ;;
9858
9859 os2*)
9860 hardcode_libdir_flag_spec='-L$libdir'
9861 hardcode_minus_L=yes
9862 allow_undefined_flag=unsupported
9863 shrext_cmds=.dll
9864 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9865 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9866 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9867 $ECHO EXPORTS >> $output_objdir/$libname.def~
9868 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9870 emximp -o $lib $output_objdir/$libname.def'
9871 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9872 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9873 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9874 $ECHO EXPORTS >> $output_objdir/$libname.def~
9875 prefix_cmds="$SED"~
9876 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9877 prefix_cmds="$prefix_cmds -e 1d";
9878 fi~
9879 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9880 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9881 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9882 emximp -o $lib $output_objdir/$libname.def'
9883 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9884 enable_shared_with_static_runtimes=yes
9885 ;;
9886
9887 osf3*)
9888 if test yes = "$GCC"; then
9889 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9890 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'
9891 else
9892 allow_undefined_flag=' -expect_unresolved \*'
9893 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'
9894 fi
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9897 hardcode_libdir_separator=:
9898 ;;
9899
9900 osf4* | osf5*) # as osf3* with the addition of -msym flag
9901 if test yes = "$GCC"; then
9902 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9903 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'
9904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9905 else
9906 allow_undefined_flag=' -expect_unresolved \*'
9907 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'
9908 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~
9909 $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'
9910
9911 # Both c and cxx compiler support -rpath directly
9912 hardcode_libdir_flag_spec='-rpath $libdir'
9913 fi
9914 archive_cmds_need_lc='no'
9915 hardcode_libdir_separator=:
9916 ;;
9917
9918 solaris*)
9919 no_undefined_flag=' -z defs'
9920 if test yes = "$GCC"; then
9921 wlarc='$wl'
9922 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9924 $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'
9925 else
9926 case `$CC -V 2>&1` in
9927 *"Compilers 5.0"*)
9928 wlarc=''
9929 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9932 ;;
9933 *)
9934 wlarc='$wl'
9935 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9937 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9938 ;;
9939 esac
9940 fi
9941 hardcode_libdir_flag_spec='-R$libdir'
9942 hardcode_shlibpath_var=no
9943 case $host_os in
9944 solaris2.[0-5] | solaris2.[0-5].*) ;;
9945 *)
9946 # The compiler driver will combine and reorder linker options,
9947 # but understands '-z linker_flag'. GCC discards it without '$wl',
9948 # but is careful enough not to reorder.
9949 # Supported since Solaris 2.6 (maybe 2.5.1?)
9950 if test yes = "$GCC"; then
9951 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9952 else
9953 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9954 fi
9955 ;;
9956 esac
9957 link_all_deplibs=yes
9958 ;;
9959
9960 sunos4*)
9961 if test sequent = "$host_vendor"; then
9962 # Use $CC to link under sequent, because it throws in some extra .o
9963 # files that make .init and .fini sections work.
9964 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9965 else
9966 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9967 fi
9968 hardcode_libdir_flag_spec='-L$libdir'
9969 hardcode_direct=yes
9970 hardcode_minus_L=yes
9971 hardcode_shlibpath_var=no
9972 ;;
9973
9974 sysv4)
9975 case $host_vendor in
9976 sni)
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_direct=yes # is this really true???
9979 ;;
9980 siemens)
9981 ## LD is ld it makes a PLAMLIB
9982 ## CC just makes a GrossModule.
9983 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9984 reload_cmds='$CC -r -o $output$reload_objs'
9985 hardcode_direct=no
9986 ;;
9987 motorola)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9990 ;;
9991 esac
9992 runpath_var='LD_RUN_PATH'
9993 hardcode_shlibpath_var=no
9994 ;;
9995
9996 sysv4.3*)
9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_shlibpath_var=no
9999 export_dynamic_flag_spec='-Bexport'
10000 ;;
10001
10002 sysv4*MP*)
10003 if test -d /usr/nec; then
10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_shlibpath_var=no
10006 runpath_var=LD_RUN_PATH
10007 hardcode_runpath_var=yes
10008 ld_shlibs=yes
10009 fi
10010 ;;
10011
10012 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10013 no_undefined_flag='$wl-z,text'
10014 archive_cmds_need_lc=no
10015 hardcode_shlibpath_var=no
10016 runpath_var='LD_RUN_PATH'
10017
10018 if test yes = "$GCC"; then
10019 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 else
10022 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 fi
10025 ;;
10026
10027 sysv5* | sco3.2v5* | sco5v6*)
10028 # Note: We CANNOT use -z defs as we might desire, because we do not
10029 # link with -lc, and that would cause any symbols used from libc to
10030 # always be unresolved, which means just about no library would
10031 # ever link correctly. If we're not using GNU ld we use -z text
10032 # though, which does catch some bad symbols but isn't as heavy-handed
10033 # as -z defs.
10034 no_undefined_flag='$wl-z,text'
10035 allow_undefined_flag='$wl-z,nodefs'
10036 archive_cmds_need_lc=no
10037 hardcode_shlibpath_var=no
10038 hardcode_libdir_flag_spec='$wl-R,$libdir'
10039 hardcode_libdir_separator=':'
10040 link_all_deplibs=yes
10041 export_dynamic_flag_spec='$wl-Bexport'
10042 runpath_var='LD_RUN_PATH'
10043
10044 if test yes = "$GCC"; then
10045 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 else
10048 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 fi
10051 ;;
10052
10053 uts4*)
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_libdir_flag_spec='-L$libdir'
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 *)
10060 ld_shlibs=no
10061 ;;
10062 esac
10063
10064 if test sni = "$host_vendor"; then
10065 case $host in
10066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10067 export_dynamic_flag_spec='$wl-Blargedynsym'
10068 ;;
10069 esac
10070 fi
10071 fi
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10074 $as_echo "$ld_shlibs" >&6; }
10075 test no = "$ld_shlibs" && can_build_shared=no
10076
10077 with_gnu_ld=$with_gnu_ld
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093 #
10094 # Do we need to explicitly link libc?
10095 #
10096 case "x$archive_cmds_need_lc" in
10097 x|xyes)
10098 # Assume -lc should be added
10099 archive_cmds_need_lc=yes
10100
10101 if test yes,yes = "$GCC,$enable_shared"; then
10102 case $archive_cmds in
10103 *'~'*)
10104 # FIXME: we may have to deal with multi-command sequences.
10105 ;;
10106 '$CC '*)
10107 # Test whether the compiler implicitly links with -lc since on some
10108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10109 # to ld, don't add -lc before -lgcc.
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10111 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10112 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 $RM conftest*
10116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10117
10118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10119 (eval $ac_compile) 2>&5
10120 ac_status=$?
10121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122 test $ac_status = 0; } 2>conftest.err; then
10123 soname=conftest
10124 lib=conftest
10125 libobjs=conftest.$ac_objext
10126 deplibs=
10127 wl=$lt_prog_compiler_wl
10128 pic_flag=$lt_prog_compiler_pic
10129 compiler_flags=-v
10130 linker_flags=-v
10131 verstring=
10132 output_objdir=.
10133 libname=conftest
10134 lt_save_allow_undefined_flag=$allow_undefined_flag
10135 allow_undefined_flag=
10136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10137 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10138 ac_status=$?
10139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10140 test $ac_status = 0; }
10141 then
10142 lt_cv_archive_cmds_need_lc=no
10143 else
10144 lt_cv_archive_cmds_need_lc=yes
10145 fi
10146 allow_undefined_flag=$lt_save_allow_undefined_flag
10147 else
10148 cat conftest.err 1>&5
10149 fi
10150 $RM conftest*
10151
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10154 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10155 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10156 ;;
10157 esac
10158 fi
10159 ;;
10160 esac
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10314 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10315
10316 if test yes = "$GCC"; then
10317 case $host_os in
10318 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10319 *) lt_awk_arg='/^libraries:/' ;;
10320 esac
10321 case $host_os in
10322 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10323 *) lt_sed_strip_eq='s|=/|/|g' ;;
10324 esac
10325 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10326 case $lt_search_path_spec in
10327 *\;*)
10328 # if the path contains ";" then we assume it to be the separator
10329 # otherwise default to the standard path separator (i.e. ":") - it is
10330 # assumed that no part of a normal pathname contains ";" but that should
10331 # okay in the real world where ";" in dirpaths is itself problematic.
10332 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10333 ;;
10334 *)
10335 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10336 ;;
10337 esac
10338 # Ok, now we have the path, separated by spaces, we can step through it
10339 # and add multilib dir if necessary...
10340 lt_tmp_lt_search_path_spec=
10341 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10342 # ...but if some path component already ends with the multilib dir we assume
10343 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10344 case "$lt_multi_os_dir; $lt_search_path_spec " in
10345 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10346 lt_multi_os_dir=
10347 ;;
10348 esac
10349 for lt_sys_path in $lt_search_path_spec; do
10350 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10352 elif test -n "$lt_multi_os_dir"; then
10353 test -d "$lt_sys_path" && \
10354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10355 fi
10356 done
10357 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10358 BEGIN {RS = " "; FS = "/|\n";} {
10359 lt_foo = "";
10360 lt_count = 0;
10361 for (lt_i = NF; lt_i > 0; lt_i--) {
10362 if ($lt_i != "" && $lt_i != ".") {
10363 if ($lt_i == "..") {
10364 lt_count++;
10365 } else {
10366 if (lt_count == 0) {
10367 lt_foo = "/" $lt_i lt_foo;
10368 } else {
10369 lt_count--;
10370 }
10371 }
10372 }
10373 }
10374 if (lt_foo != "") { lt_freq[lt_foo]++; }
10375 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10376 }'`
10377 # AWK program above erroneously prepends '/' to C:/dos/paths
10378 # for these hosts.
10379 case $host_os in
10380 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10381 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10382 esac
10383 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10384 else
10385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10386 fi
10387 library_names_spec=
10388 libname_spec='lib$name'
10389 soname_spec=
10390 shrext_cmds=.so
10391 postinstall_cmds=
10392 postuninstall_cmds=
10393 finish_cmds=
10394 finish_eval=
10395 shlibpath_var=
10396 shlibpath_overrides_runpath=unknown
10397 version_type=none
10398 dynamic_linker="$host_os ld.so"
10399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10400 need_lib_prefix=unknown
10401 hardcode_into_libs=no
10402
10403 # when you set need_version to no, make sure it does not cause -set_version
10404 # flags to be left without arguments
10405 need_version=unknown
10406
10407
10408
10409 case $host_os in
10410 aix3*)
10411 version_type=linux # correct to gnu/linux during the next big refactor
10412 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10413 shlibpath_var=LIBPATH
10414
10415 # AIX 3 has no versioning support, so we append a major version to the name.
10416 soname_spec='$libname$release$shared_ext$major'
10417 ;;
10418
10419 aix[4-9]*)
10420 version_type=linux # correct to gnu/linux during the next big refactor
10421 need_lib_prefix=no
10422 need_version=no
10423 hardcode_into_libs=yes
10424 if test ia64 = "$host_cpu"; then
10425 # AIX 5 supports IA64
10426 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 else
10429 # With GCC up to 2.95.x, collect2 would create an import file
10430 # for dependence libraries. The import file would start with
10431 # the line '#! .'. This would cause the generated library to
10432 # depend on '.', always an invalid library. This was fixed in
10433 # development snapshots of GCC prior to 3.0.
10434 case $host_os in
10435 aix4 | aix4.[01] | aix4.[01].*)
10436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10437 echo ' yes '
10438 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10439 :
10440 else
10441 can_build_shared=no
10442 fi
10443 ;;
10444 esac
10445 # Using Import Files as archive members, it is possible to support
10446 # filename-based versioning of shared library archives on AIX. While
10447 # this would work for both with and without runtime linking, it will
10448 # prevent static linking of such archives. So we do filename-based
10449 # shared library versioning with .so extension only, which is used
10450 # when both runtime linking and shared linking is enabled.
10451 # Unfortunately, runtime linking may impact performance, so we do
10452 # not want this to be the default eventually. Also, we use the
10453 # versioned .so libs for executables only if there is the -brtl
10454 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10455 # To allow for filename-based versioning support, we need to create
10456 # libNAME.so.V as an archive file, containing:
10457 # *) an Import File, referring to the versioned filename of the
10458 # archive as well as the shared archive member, telling the
10459 # bitwidth (32 or 64) of that shared object, and providing the
10460 # list of exported symbols of that shared object, eventually
10461 # decorated with the 'weak' keyword
10462 # *) the shared object with the F_LOADONLY flag set, to really avoid
10463 # it being seen by the linker.
10464 # At run time we better use the real file rather than another symlink,
10465 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10466
10467 case $with_aix_soname,$aix_use_runtimelinking in
10468 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10469 # soname into executable. Probably we can add versioning support to
10470 # collect2, so additional links can be useful in future.
10471 aix,yes) # traditional libtool
10472 dynamic_linker='AIX unversionable lib.so'
10473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10474 # instead of lib<name>.a to let people know that these are not
10475 # typical AIX shared libraries.
10476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10477 ;;
10478 aix,no) # traditional AIX only
10479 dynamic_linker='AIX lib.a(lib.so.V)'
10480 # We preserve .a as extension for shared libraries through AIX4.2
10481 # and later when we are not doing run time linking.
10482 library_names_spec='$libname$release.a $libname.a'
10483 soname_spec='$libname$release$shared_ext$major'
10484 ;;
10485 svr4,*) # full svr4 only
10486 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10487 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10488 # We do not specify a path in Import Files, so LIBPATH fires.
10489 shlibpath_overrides_runpath=yes
10490 ;;
10491 *,yes) # both, prefer svr4
10492 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10493 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10494 # unpreferred sharedlib libNAME.a needs extra handling
10495 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"'
10496 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"'
10497 # We do not specify a path in Import Files, so LIBPATH fires.
10498 shlibpath_overrides_runpath=yes
10499 ;;
10500 *,no) # both, prefer aix
10501 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10502 library_names_spec='$libname$release.a $libname.a'
10503 soname_spec='$libname$release$shared_ext$major'
10504 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10505 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)'
10506 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"'
10507 ;;
10508 esac
10509 shlibpath_var=LIBPATH
10510 fi
10511 ;;
10512
10513 amigaos*)
10514 case $host_cpu in
10515 powerpc)
10516 # Since July 2007 AmigaOS4 officially supports .so libraries.
10517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10519 ;;
10520 m68k)
10521 library_names_spec='$libname.ixlibrary $libname.a'
10522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10523 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'
10524 ;;
10525 esac
10526 ;;
10527
10528 beos*)
10529 library_names_spec='$libname$shared_ext'
10530 dynamic_linker="$host_os ld.so"
10531 shlibpath_var=LIBRARY_PATH
10532 ;;
10533
10534 bsdi[45]*)
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 need_version=no
10537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10538 soname_spec='$libname$release$shared_ext$major'
10539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10543 # the default ld.so.conf also contains /usr/contrib/lib and
10544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10545 # libtool to hard-code these into programs
10546 ;;
10547
10548 cygwin* | mingw* | pw32* | cegcc*)
10549 version_type=windows
10550 shrext_cmds=.dll
10551 need_version=no
10552 need_lib_prefix=no
10553
10554 case $GCC,$cc_basename in
10555 yes,*)
10556 # gcc
10557 library_names_spec='$libname.dll.a'
10558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10559 postinstall_cmds='base_file=`basename \$file`~
10560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10561 dldir=$destdir/`dirname \$dlpath`~
10562 test -d \$dldir || mkdir -p \$dldir~
10563 $install_prog $dir/$dlname \$dldir/$dlname~
10564 chmod a+x \$dldir/$dlname~
10565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10567 fi'
10568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10569 dlpath=$dir/\$dldll~
10570 $RM \$dlpath'
10571 shlibpath_overrides_runpath=yes
10572
10573 case $host_os in
10574 cygwin*)
10575 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10576 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10577
10578 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10579 ;;
10580 mingw* | cegcc*)
10581 # MinGW DLLs use traditional 'lib' prefix
10582 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10583 ;;
10584 pw32*)
10585 # pw32 DLLs use 'pw' prefix rather than 'lib'
10586 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10587 ;;
10588 esac
10589 dynamic_linker='Win32 ld.exe'
10590 ;;
10591
10592 *,cl*)
10593 # Native MSVC
10594 libname_spec='$name'
10595 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10596 library_names_spec='$libname.dll.lib'
10597
10598 case $build_os in
10599 mingw*)
10600 sys_lib_search_path_spec=
10601 lt_save_ifs=$IFS
10602 IFS=';'
10603 for lt_path in $LIB
10604 do
10605 IFS=$lt_save_ifs
10606 # Let DOS variable expansion print the short 8.3 style file name.
10607 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10608 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10609 done
10610 IFS=$lt_save_ifs
10611 # Convert to MSYS style.
10612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10613 ;;
10614 cygwin*)
10615 # Convert to unix form, then to dos form, then back to unix form
10616 # but this time dos style (no spaces!) so that the unix form looks
10617 # like /cygdrive/c/PROGRA~1:/cygdr...
10618 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10619 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10620 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10621 ;;
10622 *)
10623 sys_lib_search_path_spec=$LIB
10624 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10625 # It is most probably a Windows format PATH.
10626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10627 else
10628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10629 fi
10630 # FIXME: find the short name or the path components, as spaces are
10631 # common. (e.g. "Program Files" -> "PROGRA~1")
10632 ;;
10633 esac
10634
10635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10636 postinstall_cmds='base_file=`basename \$file`~
10637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10638 dldir=$destdir/`dirname \$dlpath`~
10639 test -d \$dldir || mkdir -p \$dldir~
10640 $install_prog $dir/$dlname \$dldir/$dlname'
10641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10642 dlpath=$dir/\$dldll~
10643 $RM \$dlpath'
10644 shlibpath_overrides_runpath=yes
10645 dynamic_linker='Win32 link.exe'
10646 ;;
10647
10648 *)
10649 # Assume MSVC wrapper
10650 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10651 dynamic_linker='Win32 ld.exe'
10652 ;;
10653 esac
10654 # FIXME: first we should search . and the directory the executable is in
10655 shlibpath_var=PATH
10656 ;;
10657
10658 darwin* | rhapsody*)
10659 dynamic_linker="$host_os dyld"
10660 version_type=darwin
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10664 soname_spec='$libname$release$major$shared_ext'
10665 shlibpath_overrides_runpath=yes
10666 shlibpath_var=DYLD_LIBRARY_PATH
10667 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10668
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10671 ;;
10672
10673 dgux*)
10674 version_type=linux # correct to gnu/linux during the next big refactor
10675 need_lib_prefix=no
10676 need_version=no
10677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10678 soname_spec='$libname$release$shared_ext$major'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 ;;
10681
10682 freebsd* | dragonfly*)
10683 # DragonFly does not have aout. When/if they implement a new
10684 # versioning mechanism, adjust this.
10685 if test -x /usr/bin/objformat; then
10686 objformat=`/usr/bin/objformat`
10687 else
10688 case $host_os in
10689 freebsd[23].*) objformat=aout ;;
10690 *) objformat=elf ;;
10691 esac
10692 fi
10693 version_type=freebsd-$objformat
10694 case $version_type in
10695 freebsd-elf*)
10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10697 soname_spec='$libname$release$shared_ext$major'
10698 need_version=no
10699 need_lib_prefix=no
10700 ;;
10701 freebsd-*)
10702 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10703 need_version=yes
10704 ;;
10705 esac
10706 shlibpath_var=LD_LIBRARY_PATH
10707 case $host_os in
10708 freebsd2.*)
10709 shlibpath_overrides_runpath=yes
10710 ;;
10711 freebsd3.[01]* | freebsdelf3.[01]*)
10712 shlibpath_overrides_runpath=yes
10713 hardcode_into_libs=yes
10714 ;;
10715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10717 shlibpath_overrides_runpath=no
10718 hardcode_into_libs=yes
10719 ;;
10720 *) # from 4.6 on, and DragonFly
10721 shlibpath_overrides_runpath=yes
10722 hardcode_into_libs=yes
10723 ;;
10724 esac
10725 ;;
10726
10727 haiku*)
10728 version_type=linux # correct to gnu/linux during the next big refactor
10729 need_lib_prefix=no
10730 need_version=no
10731 dynamic_linker="$host_os runtime_loader"
10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733 soname_spec='$libname$release$shared_ext$major'
10734 shlibpath_var=LIBRARY_PATH
10735 shlibpath_overrides_runpath=no
10736 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10737 hardcode_into_libs=yes
10738 ;;
10739
10740 hpux9* | hpux10* | hpux11*)
10741 # Give a soname corresponding to the major version so that dld.sl refuses to
10742 # link against other versions.
10743 version_type=sunos
10744 need_lib_prefix=no
10745 need_version=no
10746 case $host_cpu in
10747 ia64*)
10748 shrext_cmds='.so'
10749 hardcode_into_libs=yes
10750 dynamic_linker="$host_os dld.so"
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10754 soname_spec='$libname$release$shared_ext$major'
10755 if test 32 = "$HPUX_IA64_MODE"; then
10756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10757 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10758 else
10759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10760 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10761 fi
10762 ;;
10763 hppa*64*)
10764 shrext_cmds='.sl'
10765 hardcode_into_libs=yes
10766 dynamic_linker="$host_os dld.sl"
10767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10770 soname_spec='$libname$release$shared_ext$major'
10771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10773 ;;
10774 *)
10775 shrext_cmds='.sl'
10776 dynamic_linker="$host_os dld.sl"
10777 shlibpath_var=SHLIB_PATH
10778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10780 soname_spec='$libname$release$shared_ext$major'
10781 ;;
10782 esac
10783 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10784 postinstall_cmds='chmod 555 $lib'
10785 # or fails outright, so override atomically:
10786 install_override_mode=555
10787 ;;
10788
10789 interix[3-9]*)
10790 version_type=linux # correct to gnu/linux during the next big refactor
10791 need_lib_prefix=no
10792 need_version=no
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10794 soname_spec='$libname$release$shared_ext$major'
10795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath=no
10798 hardcode_into_libs=yes
10799 ;;
10800
10801 irix5* | irix6* | nonstopux*)
10802 case $host_os in
10803 nonstopux*) version_type=nonstopux ;;
10804 *)
10805 if test yes = "$lt_cv_prog_gnu_ld"; then
10806 version_type=linux # correct to gnu/linux during the next big refactor
10807 else
10808 version_type=irix
10809 fi ;;
10810 esac
10811 need_lib_prefix=no
10812 need_version=no
10813 soname_spec='$libname$release$shared_ext$major'
10814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10815 case $host_os in
10816 irix5* | nonstopux*)
10817 libsuff= shlibsuff=
10818 ;;
10819 *)
10820 case $LD in # libtool.m4 will add one of these switches to LD
10821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10822 libsuff= shlibsuff= libmagic=32-bit;;
10823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10824 libsuff=32 shlibsuff=N32 libmagic=N32;;
10825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10826 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10827 *) libsuff= shlibsuff= libmagic=never-match;;
10828 esac
10829 ;;
10830 esac
10831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10832 shlibpath_overrides_runpath=no
10833 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10834 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10835 hardcode_into_libs=yes
10836 ;;
10837
10838 # No shared lib support for Linux oldld, aout, or coff.
10839 linux*oldld* | linux*aout* | linux*coff*)
10840 dynamic_linker=no
10841 ;;
10842
10843 linux*android*)
10844 version_type=none # Android doesn't support versioned libraries.
10845 need_lib_prefix=no
10846 need_version=no
10847 library_names_spec='$libname$release$shared_ext'
10848 soname_spec='$libname$release$shared_ext'
10849 finish_cmds=
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852
10853 # This implies no fast_install, which is unacceptable.
10854 # Some rework will be needed to allow for fast_install
10855 # before this can be enabled.
10856 hardcode_into_libs=yes
10857
10858 dynamic_linker='Android linker'
10859 # Don't embed -rpath directories since the linker doesn't support them.
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 ;;
10862
10863 # This must be glibc/ELF.
10864 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10865 version_type=linux # correct to gnu/linux during the next big refactor
10866 need_lib_prefix=no
10867 need_version=no
10868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869 soname_spec='$libname$release$shared_ext$major'
10870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=no
10873
10874 # Some binutils ld are patched to set DT_RUNPATH
10875 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 lt_cv_shlibpath_overrides_runpath=no
10879 save_LDFLAGS=$LDFLAGS
10880 save_libdir=$libdir
10881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10885
10886 int
10887 main ()
10888 {
10889
10890 ;
10891 return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10896 lt_cv_shlibpath_overrides_runpath=yes
10897 fi
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LDFLAGS=$save_LDFLAGS
10902 libdir=$save_libdir
10903
10904 fi
10905
10906 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10907
10908 # This implies no fast_install, which is unacceptable.
10909 # Some rework will be needed to allow for fast_install
10910 # before this can be enabled.
10911 hardcode_into_libs=yes
10912
10913 # Ideally, we could use ldconfig to report *all* directores which are
10914 # searched for libraries, however this is still not possible. Aside from not
10915 # being certain /sbin/ldconfig is available, command
10916 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10917 # even though it is searched at run-time. Try to do the best guess by
10918 # appending ld.so.conf contents (and includes) to the search path.
10919 if test -f /etc/ld.so.conf; then
10920 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' ' '`
10921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10922 fi
10923
10924 # We used to test for /lib/ld.so.1 and disable shared libraries on
10925 # powerpc, because MkLinux only supported shared libraries with the
10926 # GNU dynamic linker. Since this was broken with cross compilers,
10927 # most powerpc-linux boxes support dynamic linking these days and
10928 # people can always --disable-shared, the test was removed, and we
10929 # assume the GNU/Linux dynamic linker is in use.
10930 dynamic_linker='GNU/Linux ld.so'
10931 ;;
10932
10933 netbsd*)
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10940 dynamic_linker='NetBSD (a.out) ld.so'
10941 else
10942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10943 soname_spec='$libname$release$shared_ext$major'
10944 dynamic_linker='NetBSD ld.elf_so'
10945 fi
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=yes
10948 hardcode_into_libs=yes
10949 ;;
10950
10951 newsos6)
10952 version_type=linux # correct to gnu/linux during the next big refactor
10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes
10956 ;;
10957
10958 *nto* | *qnx*)
10959 version_type=qnx
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963 soname_spec='$libname$release$shared_ext$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=no
10966 hardcode_into_libs=yes
10967 dynamic_linker='ldqnx.so'
10968 ;;
10969
10970 openbsd* | bitrig*)
10971 version_type=sunos
10972 sys_lib_dlsearch_path_spec=/usr/lib
10973 need_lib_prefix=no
10974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10975 need_version=no
10976 else
10977 need_version=yes
10978 fi
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=yes
10983 ;;
10984
10985 os2*)
10986 libname_spec='$name'
10987 version_type=windows
10988 shrext_cmds=.dll
10989 need_version=no
10990 need_lib_prefix=no
10991 # OS/2 can only load a DLL with a base name of 8 characters or less.
10992 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10993 v=$($ECHO $release$versuffix | tr -d .-);
10994 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10995 $ECHO $n$v`$shared_ext'
10996 library_names_spec='${libname}_dll.$libext'
10997 dynamic_linker='OS/2 ld.exe'
10998 shlibpath_var=BEGINLIBPATH
10999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11001 postinstall_cmds='base_file=`basename \$file`~
11002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11003 dldir=$destdir/`dirname \$dlpath`~
11004 test -d \$dldir || mkdir -p \$dldir~
11005 $install_prog $dir/$dlname \$dldir/$dlname~
11006 chmod a+x \$dldir/$dlname~
11007 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11008 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11009 fi'
11010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11011 dlpath=$dir/\$dldll~
11012 $RM \$dlpath'
11013 ;;
11014
11015 osf3* | osf4* | osf5*)
11016 version_type=osf
11017 need_lib_prefix=no
11018 need_version=no
11019 soname_spec='$libname$release$shared_ext$major'
11020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11024 ;;
11025
11026 rdos*)
11027 dynamic_linker=no
11028 ;;
11029
11030 solaris*)
11031 version_type=linux # correct to gnu/linux during the next big refactor
11032 need_lib_prefix=no
11033 need_version=no
11034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11035 soname_spec='$libname$release$shared_ext$major'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038 hardcode_into_libs=yes
11039 # ldd complains unless libraries are executable
11040 postinstall_cmds='chmod +x $lib'
11041 ;;
11042
11043 sunos4*)
11044 version_type=sunos
11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11049 if test yes = "$with_gnu_ld"; then
11050 need_lib_prefix=no
11051 fi
11052 need_version=yes
11053 ;;
11054
11055 sysv4 | sysv4.3*)
11056 version_type=linux # correct to gnu/linux during the next big refactor
11057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11058 soname_spec='$libname$release$shared_ext$major'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 case $host_vendor in
11061 sni)
11062 shlibpath_overrides_runpath=no
11063 need_lib_prefix=no
11064 runpath_var=LD_RUN_PATH
11065 ;;
11066 siemens)
11067 need_lib_prefix=no
11068 ;;
11069 motorola)
11070 need_lib_prefix=no
11071 need_version=no
11072 shlibpath_overrides_runpath=no
11073 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11074 ;;
11075 esac
11076 ;;
11077
11078 sysv4*MP*)
11079 if test -d /usr/nec; then
11080 version_type=linux # correct to gnu/linux during the next big refactor
11081 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11082 soname_spec='$libname$shared_ext.$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 fi
11085 ;;
11086
11087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11088 version_type=sco
11089 need_lib_prefix=no
11090 need_version=no
11091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11092 soname_spec='$libname$release$shared_ext$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11095 hardcode_into_libs=yes
11096 if test yes = "$with_gnu_ld"; then
11097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11098 else
11099 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11100 case $host_os in
11101 sco3.2v5*)
11102 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11103 ;;
11104 esac
11105 fi
11106 sys_lib_dlsearch_path_spec='/usr/lib'
11107 ;;
11108
11109 tpf*)
11110 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11111 version_type=linux # correct to gnu/linux during the next big refactor
11112 need_lib_prefix=no
11113 need_version=no
11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=no
11117 hardcode_into_libs=yes
11118 ;;
11119
11120 uts4*)
11121 version_type=linux # correct to gnu/linux during the next big refactor
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123 soname_spec='$libname$release$shared_ext$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 ;;
11126
11127 *)
11128 dynamic_linker=no
11129 ;;
11130 esac
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11132 $as_echo "$dynamic_linker" >&6; }
11133 test no = "$dynamic_linker" && can_build_shared=no
11134
11135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11136 if test yes = "$GCC"; then
11137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11138 fi
11139
11140 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11141 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11142 fi
11143
11144 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11145 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11146 fi
11147
11148 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11149 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11150
11151 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11152 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11153
11154 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11155 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11254 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11255 hardcode_action=
11256 if test -n "$hardcode_libdir_flag_spec" ||
11257 test -n "$runpath_var" ||
11258 test yes = "$hardcode_automatic"; then
11259
11260 # We can hardcode non-existent directories.
11261 if test no != "$hardcode_direct" &&
11262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11263 # have to relink, otherwise we might link with an installed library
11264 # when we should be linking with a yet-to-be-installed one
11265 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11266 test no != "$hardcode_minus_L"; then
11267 # Linking always hardcodes the temporary library directory.
11268 hardcode_action=relink
11269 else
11270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11271 hardcode_action=immediate
11272 fi
11273 else
11274 # We cannot hardcode anything, or else we can only hardcode existing
11275 # directories.
11276 hardcode_action=unsupported
11277 fi
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11279 $as_echo "$hardcode_action" >&6; }
11280
11281 if test relink = "$hardcode_action" ||
11282 test yes = "$inherit_rpath"; then
11283 # Fast installation is not supported
11284 enable_fast_install=no
11285 elif test yes = "$shlibpath_overrides_runpath" ||
11286 test no = "$enable_shared"; then
11287 # Fast installation is not necessary
11288 enable_fast_install=needless
11289 fi
11290
11291
11292
11293
11294
11295
11296 if test yes != "$enable_dlopen"; then
11297 enable_dlopen=unknown
11298 enable_dlopen_self=unknown
11299 enable_dlopen_self_static=unknown
11300 else
11301 lt_cv_dlopen=no
11302 lt_cv_dlopen_libs=
11303
11304 case $host_os in
11305 beos*)
11306 lt_cv_dlopen=load_add_on
11307 lt_cv_dlopen_libs=
11308 lt_cv_dlopen_self=yes
11309 ;;
11310
11311 mingw* | pw32* | cegcc*)
11312 lt_cv_dlopen=LoadLibrary
11313 lt_cv_dlopen_libs=
11314 ;;
11315
11316 cygwin*)
11317 lt_cv_dlopen=dlopen
11318 lt_cv_dlopen_libs=
11319 ;;
11320
11321 darwin*)
11322 # if libdl is installed we need to link against it
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11324 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11325 if ${ac_cv_lib_dl_dlopen+:} false; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 ac_check_lib_save_LIBS=$LIBS
11329 LIBS="-ldl $LIBS"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char dlopen ();
11340 int
11341 main ()
11342 {
11343 return dlopen ();
11344 ;
11345 return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_c_try_link "$LINENO"; then :
11349 ac_cv_lib_dl_dlopen=yes
11350 else
11351 ac_cv_lib_dl_dlopen=no
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11358 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11359 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11360 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11361 else
11362
11363 lt_cv_dlopen=dyld
11364 lt_cv_dlopen_libs=
11365 lt_cv_dlopen_self=yes
11366
11367 fi
11368
11369 ;;
11370
11371 tpf*)
11372 # Don't try to run any link tests for TPF. We know it's impossible
11373 # because TPF is a cross-compiler, and we know how we open DSOs.
11374 lt_cv_dlopen=dlopen
11375 lt_cv_dlopen_libs=
11376 lt_cv_dlopen_self=no
11377 ;;
11378
11379 *)
11380 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11381 if test "x$ac_cv_func_shl_load" = xyes; then :
11382 lt_cv_dlopen=shl_load
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11385 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11386 if ${ac_cv_lib_dld_shl_load+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-ldld $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char shl_load ();
11401 int
11402 main ()
11403 {
11404 return shl_load ();
11405 ;
11406 return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 ac_cv_lib_dld_shl_load=yes
11411 else
11412 ac_cv_lib_dld_shl_load=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11419 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11420 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11421 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11422 else
11423 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11424 if test "x$ac_cv_func_dlopen" = xyes; then :
11425 lt_cv_dlopen=dlopen
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11428 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11429 if ${ac_cv_lib_dl_dlopen+:} false; then :
11430 $as_echo_n "(cached) " >&6
11431 else
11432 ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-ldl $LIBS"
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char dlopen ();
11444 int
11445 main ()
11446 {
11447 return dlopen ();
11448 ;
11449 return 0;
11450 }
11451 _ACEOF
11452 if ac_fn_c_try_link "$LINENO"; then :
11453 ac_cv_lib_dl_dlopen=yes
11454 else
11455 ac_cv_lib_dl_dlopen=no
11456 fi
11457 rm -f core conftest.err conftest.$ac_objext \
11458 conftest$ac_exeext conftest.$ac_ext
11459 LIBS=$ac_check_lib_save_LIBS
11460 fi
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11462 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11463 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11467 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11468 if ${ac_cv_lib_svld_dlopen+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 ac_check_lib_save_LIBS=$LIBS
11472 LIBS="-lsvld $LIBS"
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11475
11476 /* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11479 #ifdef __cplusplus
11480 extern "C"
11481 #endif
11482 char dlopen ();
11483 int
11484 main ()
11485 {
11486 return dlopen ();
11487 ;
11488 return 0;
11489 }
11490 _ACEOF
11491 if ac_fn_c_try_link "$LINENO"; then :
11492 ac_cv_lib_svld_dlopen=yes
11493 else
11494 ac_cv_lib_svld_dlopen=no
11495 fi
11496 rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498 LIBS=$ac_check_lib_save_LIBS
11499 fi
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11501 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11502 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11503 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11504 else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11506 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11507 if ${ac_cv_lib_dld_dld_link+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 ac_check_lib_save_LIBS=$LIBS
11511 LIBS="-ldld $LIBS"
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char dld_link ();
11522 int
11523 main ()
11524 {
11525 return dld_link ();
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_lib_dld_dld_link=yes
11532 else
11533 ac_cv_lib_dld_dld_link=no
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS=$ac_check_lib_save_LIBS
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11540 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11541 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11542 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11543 fi
11544
11545
11546 fi
11547
11548
11549 fi
11550
11551
11552 fi
11553
11554
11555 fi
11556
11557
11558 fi
11559
11560 ;;
11561 esac
11562
11563 if test no = "$lt_cv_dlopen"; then
11564 enable_dlopen=no
11565 else
11566 enable_dlopen=yes
11567 fi
11568
11569 case $lt_cv_dlopen in
11570 dlopen)
11571 save_CPPFLAGS=$CPPFLAGS
11572 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11573
11574 save_LDFLAGS=$LDFLAGS
11575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11576
11577 save_LIBS=$LIBS
11578 LIBS="$lt_cv_dlopen_libs $LIBS"
11579
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11581 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11582 if ${lt_cv_dlopen_self+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 if test yes = "$cross_compiling"; then :
11586 lt_cv_dlopen_self=cross
11587 else
11588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11589 lt_status=$lt_dlunknown
11590 cat > conftest.$ac_ext <<_LT_EOF
11591 #line $LINENO "configure"
11592 #include "confdefs.h"
11593
11594 #if HAVE_DLFCN_H
11595 #include <dlfcn.h>
11596 #endif
11597
11598 #include <stdio.h>
11599
11600 #ifdef RTLD_GLOBAL
11601 # define LT_DLGLOBAL RTLD_GLOBAL
11602 #else
11603 # ifdef DL_GLOBAL
11604 # define LT_DLGLOBAL DL_GLOBAL
11605 # else
11606 # define LT_DLGLOBAL 0
11607 # endif
11608 #endif
11609
11610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11611 find out it does not work in some platform. */
11612 #ifndef LT_DLLAZY_OR_NOW
11613 # ifdef RTLD_LAZY
11614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11615 # else
11616 # ifdef DL_LAZY
11617 # define LT_DLLAZY_OR_NOW DL_LAZY
11618 # else
11619 # ifdef RTLD_NOW
11620 # define LT_DLLAZY_OR_NOW RTLD_NOW
11621 # else
11622 # ifdef DL_NOW
11623 # define LT_DLLAZY_OR_NOW DL_NOW
11624 # else
11625 # define LT_DLLAZY_OR_NOW 0
11626 # endif
11627 # endif
11628 # endif
11629 # endif
11630 #endif
11631
11632 /* When -fvisibility=hidden is used, assume the code has been annotated
11633 correspondingly for the symbols needed. */
11634 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11635 int fnord () __attribute__((visibility("default")));
11636 #endif
11637
11638 int fnord () { return 42; }
11639 int main ()
11640 {
11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642 int status = $lt_dlunknown;
11643
11644 if (self)
11645 {
11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11647 else
11648 {
11649 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11650 else puts (dlerror ());
11651 }
11652 /* dlclose (self); */
11653 }
11654 else
11655 puts (dlerror ());
11656
11657 return status;
11658 }
11659 _LT_EOF
11660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11661 (eval $ac_link) 2>&5
11662 ac_status=$?
11663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11664 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11665 (./conftest; exit; ) >&5 2>/dev/null
11666 lt_status=$?
11667 case x$lt_status in
11668 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11669 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11670 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11671 esac
11672 else :
11673 # compilation failed
11674 lt_cv_dlopen_self=no
11675 fi
11676 fi
11677 rm -fr conftest*
11678
11679
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11682 $as_echo "$lt_cv_dlopen_self" >&6; }
11683
11684 if test yes = "$lt_cv_dlopen_self"; then
11685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11687 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11688 if ${lt_cv_dlopen_self_static+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 if test yes = "$cross_compiling"; then :
11692 lt_cv_dlopen_self_static=cross
11693 else
11694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11695 lt_status=$lt_dlunknown
11696 cat > conftest.$ac_ext <<_LT_EOF
11697 #line $LINENO "configure"
11698 #include "confdefs.h"
11699
11700 #if HAVE_DLFCN_H
11701 #include <dlfcn.h>
11702 #endif
11703
11704 #include <stdio.h>
11705
11706 #ifdef RTLD_GLOBAL
11707 # define LT_DLGLOBAL RTLD_GLOBAL
11708 #else
11709 # ifdef DL_GLOBAL
11710 # define LT_DLGLOBAL DL_GLOBAL
11711 # else
11712 # define LT_DLGLOBAL 0
11713 # endif
11714 #endif
11715
11716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11717 find out it does not work in some platform. */
11718 #ifndef LT_DLLAZY_OR_NOW
11719 # ifdef RTLD_LAZY
11720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11721 # else
11722 # ifdef DL_LAZY
11723 # define LT_DLLAZY_OR_NOW DL_LAZY
11724 # else
11725 # ifdef RTLD_NOW
11726 # define LT_DLLAZY_OR_NOW RTLD_NOW
11727 # else
11728 # ifdef DL_NOW
11729 # define LT_DLLAZY_OR_NOW DL_NOW
11730 # else
11731 # define LT_DLLAZY_OR_NOW 0
11732 # endif
11733 # endif
11734 # endif
11735 # endif
11736 #endif
11737
11738 /* When -fvisibility=hidden is used, assume the code has been annotated
11739 correspondingly for the symbols needed. */
11740 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11741 int fnord () __attribute__((visibility("default")));
11742 #endif
11743
11744 int fnord () { return 42; }
11745 int main ()
11746 {
11747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11748 int status = $lt_dlunknown;
11749
11750 if (self)
11751 {
11752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11753 else
11754 {
11755 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11756 else puts (dlerror ());
11757 }
11758 /* dlclose (self); */
11759 }
11760 else
11761 puts (dlerror ());
11762
11763 return status;
11764 }
11765 _LT_EOF
11766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11767 (eval $ac_link) 2>&5
11768 ac_status=$?
11769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11770 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11771 (./conftest; exit; ) >&5 2>/dev/null
11772 lt_status=$?
11773 case x$lt_status in
11774 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11775 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11776 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11777 esac
11778 else :
11779 # compilation failed
11780 lt_cv_dlopen_self_static=no
11781 fi
11782 fi
11783 rm -fr conftest*
11784
11785
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11788 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11789 fi
11790
11791 CPPFLAGS=$save_CPPFLAGS
11792 LDFLAGS=$save_LDFLAGS
11793 LIBS=$save_LIBS
11794 ;;
11795 esac
11796
11797 case $lt_cv_dlopen_self in
11798 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11799 *) enable_dlopen_self=unknown ;;
11800 esac
11801
11802 case $lt_cv_dlopen_self_static in
11803 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11804 *) enable_dlopen_self_static=unknown ;;
11805 esac
11806 fi
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824 striplib=
11825 old_striplib=
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11827 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11828 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11829 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11830 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832 $as_echo "yes" >&6; }
11833 else
11834 # FIXME - insert some real tests, host_os isn't really good enough
11835 case $host_os in
11836 darwin*)
11837 if test -n "$STRIP"; then
11838 striplib="$STRIP -x"
11839 old_striplib="$STRIP -S"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11841 $as_echo "yes" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11845 fi
11846 ;;
11847 *)
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11850 ;;
11851 esac
11852 fi
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865 # Report what library types will actually be built
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11867 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11869 $as_echo "$can_build_shared" >&6; }
11870
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11872 $as_echo_n "checking whether to build shared libraries... " >&6; }
11873 test no = "$can_build_shared" && enable_shared=no
11874
11875 # On AIX, shared libraries and static libraries use the same namespace, and
11876 # are all built from PIC.
11877 case $host_os in
11878 aix3*)
11879 test yes = "$enable_shared" && enable_static=no
11880 if test -n "$RANLIB"; then
11881 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11882 postinstall_cmds='$RANLIB $lib'
11883 fi
11884 ;;
11885
11886 aix[4-9]*)
11887 if test ia64 != "$host_cpu"; then
11888 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11889 yes,aix,yes) ;; # shared object as lib.so file only
11890 yes,svr4,*) ;; # shared object as lib.so archive member only
11891 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11892 esac
11893 fi
11894 ;;
11895 esac
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11897 $as_echo "$enable_shared" >&6; }
11898
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11900 $as_echo_n "checking whether to build static libraries... " >&6; }
11901 # Make sure either enable_shared or enable_static is yes.
11902 test yes = "$enable_shared" || enable_static=yes
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11904 $as_echo "$enable_static" >&6; }
11905
11906
11907
11908
11909 fi
11910 ac_ext=c
11911 ac_cpp='$CPP $CPPFLAGS'
11912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915
11916 CC=$lt_save_CC
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932 ac_config_commands="$ac_config_commands libtool"
11933
11934
11935
11936
11937 # Only expand once:
11938
11939
11940
11941 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11954 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11955 if ${ac_cv_prog_cc_c99+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 ac_cv_prog_cc_c99=no
11959 ac_save_CC=$CC
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #include <stdarg.h>
11963 #include <stdbool.h>
11964 #include <stdlib.h>
11965 #include <wchar.h>
11966 #include <stdio.h>
11967
11968 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11969 #define debug(...) fprintf (stderr, __VA_ARGS__)
11970 #define showlist(...) puts (#__VA_ARGS__)
11971 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11972 static void
11973 test_varargs_macros (void)
11974 {
11975 int x = 1234;
11976 int y = 5678;
11977 debug ("Flag");
11978 debug ("X = %d\n", x);
11979 showlist (The first, second, and third items.);
11980 report (x>y, "x is %d but y is %d", x, y);
11981 }
11982
11983 // Check long long types.
11984 #define BIG64 18446744073709551615ull
11985 #define BIG32 4294967295ul
11986 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11987 #if !BIG_OK
11988 your preprocessor is broken;
11989 #endif
11990 #if BIG_OK
11991 #else
11992 your preprocessor is broken;
11993 #endif
11994 static long long int bignum = -9223372036854775807LL;
11995 static unsigned long long int ubignum = BIG64;
11996
11997 struct incomplete_array
11998 {
11999 int datasize;
12000 double data[];
12001 };
12002
12003 struct named_init {
12004 int number;
12005 const wchar_t *name;
12006 double average;
12007 };
12008
12009 typedef const char *ccp;
12010
12011 static inline int
12012 test_restrict (ccp restrict text)
12013 {
12014 // See if C++-style comments work.
12015 // Iterate through items via the restricted pointer.
12016 // Also check for declarations in for loops.
12017 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12018 continue;
12019 return 0;
12020 }
12021
12022 // Check varargs and va_copy.
12023 static void
12024 test_varargs (const char *format, ...)
12025 {
12026 va_list args;
12027 va_start (args, format);
12028 va_list args_copy;
12029 va_copy (args_copy, args);
12030
12031 const char *str;
12032 int number;
12033 float fnumber;
12034
12035 while (*format)
12036 {
12037 switch (*format++)
12038 {
12039 case 's': // string
12040 str = va_arg (args_copy, const char *);
12041 break;
12042 case 'd': // int
12043 number = va_arg (args_copy, int);
12044 break;
12045 case 'f': // float
12046 fnumber = va_arg (args_copy, double);
12047 break;
12048 default:
12049 break;
12050 }
12051 }
12052 va_end (args_copy);
12053 va_end (args);
12054 }
12055
12056 int
12057 main ()
12058 {
12059
12060 // Check bool.
12061 _Bool success = false;
12062
12063 // Check restrict.
12064 if (test_restrict ("String literal") == 0)
12065 success = true;
12066 char *restrict newvar = "Another string";
12067
12068 // Check varargs.
12069 test_varargs ("s, d' f .", "string", 65, 34.234);
12070 test_varargs_macros ();
12071
12072 // Check flexible array members.
12073 struct incomplete_array *ia =
12074 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12075 ia->datasize = 10;
12076 for (int i = 0; i < ia->datasize; ++i)
12077 ia->data[i] = i * 1.234;
12078
12079 // Check named initializers.
12080 struct named_init ni = {
12081 .number = 34,
12082 .name = L"Test wide string",
12083 .average = 543.34343,
12084 };
12085
12086 ni.number = 58;
12087
12088 int dynamic_array[ni.number];
12089 dynamic_array[ni.number - 1] = 543;
12090
12091 // work around unused variable warnings
12092 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12093 || dynamic_array[ni.number - 1] != 543);
12094
12095 ;
12096 return 0;
12097 }
12098 _ACEOF
12099 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12100 do
12101 CC="$ac_save_CC $ac_arg"
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103 ac_cv_prog_cc_c99=$ac_arg
12104 fi
12105 rm -f core conftest.err conftest.$ac_objext
12106 test "x$ac_cv_prog_cc_c99" != "xno" && break
12107 done
12108 rm -f conftest.$ac_ext
12109 CC=$ac_save_CC
12110
12111 fi
12112 # AC_CACHE_VAL
12113 case "x$ac_cv_prog_cc_c99" in
12114 x)
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12116 $as_echo "none needed" >&6; } ;;
12117 xno)
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12119 $as_echo "unsupported" >&6; } ;;
12120 *)
12121 CC="$CC $ac_cv_prog_cc_c99"
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12123 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12124 esac
12125 if test "x$ac_cv_prog_cc_c99" != xno; then :
12126
12127 fi
12128
12129
12130
12131
12132
12133
12134 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12135 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12136 CLANGCC="yes"
12137 else
12138 CLANGCC="no"
12139 fi
12140
12141 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12142 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12143 INTELCC="yes"
12144 else
12145 INTELCC="no"
12146 fi
12147
12148 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12149 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12150 SUNCC="yes"
12151 else
12152 SUNCC="no"
12153 fi
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12164 if test -n "$ac_tool_prefix"; then
12165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12166 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 case $PKG_CONFIG in
12173 [\\/]* | ?:[\\/]*)
12174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12175 ;;
12176 *)
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12179 do
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12187 fi
12188 done
12189 done
12190 IFS=$as_save_IFS
12191
12192 ;;
12193 esac
12194 fi
12195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12196 if test -n "$PKG_CONFIG"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12198 $as_echo "$PKG_CONFIG" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203
12204
12205 fi
12206 if test -z "$ac_cv_path_PKG_CONFIG"; then
12207 ac_pt_PKG_CONFIG=$PKG_CONFIG
12208 # Extract the first word of "pkg-config", so it can be a program name with args.
12209 set dummy pkg-config; ac_word=$2
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211 $as_echo_n "checking for $ac_word... " >&6; }
12212 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 case $ac_pt_PKG_CONFIG in
12216 [\\/]* | ?:[\\/]*)
12217 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12218 ;;
12219 *)
12220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221 for as_dir in $PATH
12222 do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12227 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 break 2
12230 fi
12231 done
12232 done
12233 IFS=$as_save_IFS
12234
12235 ;;
12236 esac
12237 fi
12238 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12239 if test -n "$ac_pt_PKG_CONFIG"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12241 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 fi
12246
12247 if test "x$ac_pt_PKG_CONFIG" = x; then
12248 PKG_CONFIG=""
12249 else
12250 case $cross_compiling:$ac_tool_warned in
12251 yes:)
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12254 ac_tool_warned=yes ;;
12255 esac
12256 PKG_CONFIG=$ac_pt_PKG_CONFIG
12257 fi
12258 else
12259 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12260 fi
12261
12262 fi
12263 if test -n "$PKG_CONFIG"; then
12264 _pkg_min_version=0.9.0
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12266 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12267 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269 $as_echo "yes" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12273 PKG_CONFIG=""
12274 fi
12275 fi
12276
12277
12278
12279
12280
12281 # Check whether --enable-selective-werror was given.
12282 if test "${enable_selective_werror+set}" = set; then :
12283 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12284 else
12285 SELECTIVE_WERROR=yes
12286 fi
12287
12288
12289
12290
12291
12292 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12293 if test "x$SUNCC" = "xyes"; then
12294 BASE_CFLAGS="-v"
12295 else
12296 BASE_CFLAGS=""
12297 fi
12298
12299 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313 xorg_testset_save_CFLAGS="$CFLAGS"
12314
12315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324 int i;
12325 _ACEOF
12326 if ac_fn_c_try_compile "$LINENO"; then :
12327 xorg_cv_cc_flag_unknown_warning_option=yes
12328 else
12329 xorg_cv_cc_flag_unknown_warning_option=no
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12336 CFLAGS="$xorg_testset_save_CFLAGS"
12337 fi
12338
12339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12342 fi
12343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351 int i;
12352 _ACEOF
12353 if ac_fn_c_try_compile "$LINENO"; then :
12354 xorg_cv_cc_flag_unused_command_line_argument=yes
12355 else
12356 xorg_cv_cc_flag_unused_command_line_argument=no
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12363 CFLAGS="$xorg_testset_save_CFLAGS"
12364 fi
12365
12366 found="no"
12367
12368 if test $found = "no" ; then
12369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12371 fi
12372
12373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12375 fi
12376
12377 CFLAGS="$CFLAGS -Wall"
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12380 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12381 cacheid=xorg_cv_cc_flag__Wall
12382 if eval \${$cacheid+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 int i;
12388 int
12389 main ()
12390 {
12391
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"; then :
12397 eval $cacheid=yes
12398 else
12399 eval $cacheid=no
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12403 fi
12404
12405
12406 CFLAGS="$xorg_testset_save_CFLAGS"
12407
12408 eval supported=\$$cacheid
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12410 $as_echo "$supported" >&6; }
12411 if test "$supported" = "yes" ; then
12412 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12413 found="yes"
12414 fi
12415 fi
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431 xorg_testset_save_CFLAGS="$CFLAGS"
12432
12433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 int i;
12443 _ACEOF
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 xorg_cv_cc_flag_unknown_warning_option=yes
12446 else
12447 xorg_cv_cc_flag_unknown_warning_option=no
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12454 CFLAGS="$xorg_testset_save_CFLAGS"
12455 fi
12456
12457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12460 fi
12461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469 int i;
12470 _ACEOF
12471 if ac_fn_c_try_compile "$LINENO"; then :
12472 xorg_cv_cc_flag_unused_command_line_argument=yes
12473 else
12474 xorg_cv_cc_flag_unused_command_line_argument=no
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12481 CFLAGS="$xorg_testset_save_CFLAGS"
12482 fi
12483
12484 found="no"
12485
12486 if test $found = "no" ; then
12487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12489 fi
12490
12491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12493 fi
12494
12495 CFLAGS="$CFLAGS -Wpointer-arith"
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12498 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12499 cacheid=xorg_cv_cc_flag__Wpointer_arith
12500 if eval \${$cacheid+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12505 int i;
12506 int
12507 main ()
12508 {
12509
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12515 eval $cacheid=yes
12516 else
12517 eval $cacheid=no
12518 fi
12519 rm -f core conftest.err conftest.$ac_objext \
12520 conftest$ac_exeext conftest.$ac_ext
12521 fi
12522
12523
12524 CFLAGS="$xorg_testset_save_CFLAGS"
12525
12526 eval supported=\$$cacheid
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12528 $as_echo "$supported" >&6; }
12529 if test "$supported" = "yes" ; then
12530 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12531 found="yes"
12532 fi
12533 fi
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549 xorg_testset_save_CFLAGS="$CFLAGS"
12550
12551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 int i;
12561 _ACEOF
12562 if ac_fn_c_try_compile "$LINENO"; then :
12563 xorg_cv_cc_flag_unknown_warning_option=yes
12564 else
12565 xorg_cv_cc_flag_unknown_warning_option=no
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568 fi
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12572 CFLAGS="$xorg_testset_save_CFLAGS"
12573 fi
12574
12575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12578 fi
12579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 int i;
12588 _ACEOF
12589 if ac_fn_c_try_compile "$LINENO"; then :
12590 xorg_cv_cc_flag_unused_command_line_argument=yes
12591 else
12592 xorg_cv_cc_flag_unused_command_line_argument=no
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12599 CFLAGS="$xorg_testset_save_CFLAGS"
12600 fi
12601
12602 found="no"
12603
12604 if test $found = "no" ; then
12605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12607 fi
12608
12609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12611 fi
12612
12613 CFLAGS="$CFLAGS -Wmissing-declarations"
12614
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12616 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12617 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12618 if eval \${$cacheid+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 int i;
12624 int
12625 main ()
12626 {
12627
12628 ;
12629 return 0;
12630 }
12631 _ACEOF
12632 if ac_fn_c_try_link "$LINENO"; then :
12633 eval $cacheid=yes
12634 else
12635 eval $cacheid=no
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639 fi
12640
12641
12642 CFLAGS="$xorg_testset_save_CFLAGS"
12643
12644 eval supported=\$$cacheid
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12646 $as_echo "$supported" >&6; }
12647 if test "$supported" = "yes" ; then
12648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12649 found="yes"
12650 fi
12651 fi
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667 xorg_testset_save_CFLAGS="$CFLAGS"
12668
12669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 int i;
12679 _ACEOF
12680 if ac_fn_c_try_compile "$LINENO"; then :
12681 xorg_cv_cc_flag_unknown_warning_option=yes
12682 else
12683 xorg_cv_cc_flag_unknown_warning_option=no
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 fi
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12690 CFLAGS="$xorg_testset_save_CFLAGS"
12691 fi
12692
12693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12696 fi
12697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 int i;
12706 _ACEOF
12707 if ac_fn_c_try_compile "$LINENO"; then :
12708 xorg_cv_cc_flag_unused_command_line_argument=yes
12709 else
12710 xorg_cv_cc_flag_unused_command_line_argument=no
12711 fi
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 fi
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12717 CFLAGS="$xorg_testset_save_CFLAGS"
12718 fi
12719
12720 found="no"
12721
12722 if test $found = "no" ; then
12723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12725 fi
12726
12727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12729 fi
12730
12731 CFLAGS="$CFLAGS -Wformat=2"
12732
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12734 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12735 cacheid=xorg_cv_cc_flag__Wformat_2
12736 if eval \${$cacheid+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 int i;
12742 int
12743 main ()
12744 {
12745
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 if ac_fn_c_try_link "$LINENO"; then :
12751 eval $cacheid=yes
12752 else
12753 eval $cacheid=no
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext \
12756 conftest$ac_exeext conftest.$ac_ext
12757 fi
12758
12759
12760 CFLAGS="$xorg_testset_save_CFLAGS"
12761
12762 eval supported=\$$cacheid
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12764 $as_echo "$supported" >&6; }
12765 if test "$supported" = "yes" ; then
12766 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12767 found="yes"
12768 fi
12769 fi
12770
12771 if test $found = "no" ; then
12772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12774 fi
12775
12776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12778 fi
12779
12780 CFLAGS="$CFLAGS -Wformat"
12781
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12783 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12784 cacheid=xorg_cv_cc_flag__Wformat
12785 if eval \${$cacheid+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12790 int i;
12791 int
12792 main ()
12793 {
12794
12795 ;
12796 return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_link "$LINENO"; then :
12800 eval $cacheid=yes
12801 else
12802 eval $cacheid=no
12803 fi
12804 rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 fi
12807
12808
12809 CFLAGS="$xorg_testset_save_CFLAGS"
12810
12811 eval supported=\$$cacheid
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12813 $as_echo "$supported" >&6; }
12814 if test "$supported" = "yes" ; then
12815 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12816 found="yes"
12817 fi
12818 fi
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836 xorg_testset_save_CFLAGS="$CFLAGS"
12837
12838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 int i;
12848 _ACEOF
12849 if ac_fn_c_try_compile "$LINENO"; then :
12850 xorg_cv_cc_flag_unknown_warning_option=yes
12851 else
12852 xorg_cv_cc_flag_unknown_warning_option=no
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 fi
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12859 CFLAGS="$xorg_testset_save_CFLAGS"
12860 fi
12861
12862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12865 fi
12866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 int i;
12875 _ACEOF
12876 if ac_fn_c_try_compile "$LINENO"; then :
12877 xorg_cv_cc_flag_unused_command_line_argument=yes
12878 else
12879 xorg_cv_cc_flag_unused_command_line_argument=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12886 CFLAGS="$xorg_testset_save_CFLAGS"
12887 fi
12888
12889 found="no"
12890
12891 if test $found = "no" ; then
12892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12894 fi
12895
12896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12898 fi
12899
12900 CFLAGS="$CFLAGS -Wstrict-prototypes"
12901
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12903 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12904 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12905 if eval \${$cacheid+:} false; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910 int i;
12911 int
12912 main ()
12913 {
12914
12915 ;
12916 return 0;
12917 }
12918 _ACEOF
12919 if ac_fn_c_try_link "$LINENO"; then :
12920 eval $cacheid=yes
12921 else
12922 eval $cacheid=no
12923 fi
12924 rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12926 fi
12927
12928
12929 CFLAGS="$xorg_testset_save_CFLAGS"
12930
12931 eval supported=\$$cacheid
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12933 $as_echo "$supported" >&6; }
12934 if test "$supported" = "yes" ; then
12935 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12936 found="yes"
12937 fi
12938 fi
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954 xorg_testset_save_CFLAGS="$CFLAGS"
12955
12956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12965 int i;
12966 _ACEOF
12967 if ac_fn_c_try_compile "$LINENO"; then :
12968 xorg_cv_cc_flag_unknown_warning_option=yes
12969 else
12970 xorg_cv_cc_flag_unknown_warning_option=no
12971 fi
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12977 CFLAGS="$xorg_testset_save_CFLAGS"
12978 fi
12979
12980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12983 fi
12984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12992 int i;
12993 _ACEOF
12994 if ac_fn_c_try_compile "$LINENO"; then :
12995 xorg_cv_cc_flag_unused_command_line_argument=yes
12996 else
12997 xorg_cv_cc_flag_unused_command_line_argument=no
12998 fi
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13004 CFLAGS="$xorg_testset_save_CFLAGS"
13005 fi
13006
13007 found="no"
13008
13009 if test $found = "no" ; then
13010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13012 fi
13013
13014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13016 fi
13017
13018 CFLAGS="$CFLAGS -Wmissing-prototypes"
13019
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13021 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13022 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13023 if eval \${$cacheid+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 int i;
13029 int
13030 main ()
13031 {
13032
13033 ;
13034 return 0;
13035 }
13036 _ACEOF
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 eval $cacheid=yes
13039 else
13040 eval $cacheid=no
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 fi
13045
13046
13047 CFLAGS="$xorg_testset_save_CFLAGS"
13048
13049 eval supported=\$$cacheid
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13051 $as_echo "$supported" >&6; }
13052 if test "$supported" = "yes" ; then
13053 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13054 found="yes"
13055 fi
13056 fi
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072 xorg_testset_save_CFLAGS="$CFLAGS"
13073
13074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13083 int i;
13084 _ACEOF
13085 if ac_fn_c_try_compile "$LINENO"; then :
13086 xorg_cv_cc_flag_unknown_warning_option=yes
13087 else
13088 xorg_cv_cc_flag_unknown_warning_option=no
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13095 CFLAGS="$xorg_testset_save_CFLAGS"
13096 fi
13097
13098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13101 fi
13102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 int i;
13111 _ACEOF
13112 if ac_fn_c_try_compile "$LINENO"; then :
13113 xorg_cv_cc_flag_unused_command_line_argument=yes
13114 else
13115 xorg_cv_cc_flag_unused_command_line_argument=no
13116 fi
13117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 fi
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13122 CFLAGS="$xorg_testset_save_CFLAGS"
13123 fi
13124
13125 found="no"
13126
13127 if test $found = "no" ; then
13128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13130 fi
13131
13132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13134 fi
13135
13136 CFLAGS="$CFLAGS -Wnested-externs"
13137
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13139 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13140 cacheid=xorg_cv_cc_flag__Wnested_externs
13141 if eval \${$cacheid+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146 int i;
13147 int
13148 main ()
13149 {
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_link "$LINENO"; then :
13156 eval $cacheid=yes
13157 else
13158 eval $cacheid=no
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162 fi
13163
13164
13165 CFLAGS="$xorg_testset_save_CFLAGS"
13166
13167 eval supported=\$$cacheid
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13169 $as_echo "$supported" >&6; }
13170 if test "$supported" = "yes" ; then
13171 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13172 found="yes"
13173 fi
13174 fi
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190 xorg_testset_save_CFLAGS="$CFLAGS"
13191
13192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 int i;
13202 _ACEOF
13203 if ac_fn_c_try_compile "$LINENO"; then :
13204 xorg_cv_cc_flag_unknown_warning_option=yes
13205 else
13206 xorg_cv_cc_flag_unknown_warning_option=no
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 fi
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13213 CFLAGS="$xorg_testset_save_CFLAGS"
13214 fi
13215
13216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13219 fi
13220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 int i;
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231 xorg_cv_cc_flag_unused_command_line_argument=yes
13232 else
13233 xorg_cv_cc_flag_unused_command_line_argument=no
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13240 CFLAGS="$xorg_testset_save_CFLAGS"
13241 fi
13242
13243 found="no"
13244
13245 if test $found = "no" ; then
13246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248 fi
13249
13250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13252 fi
13253
13254 CFLAGS="$CFLAGS -Wbad-function-cast"
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13257 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13258 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13259 if eval \${$cacheid+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 int i;
13265 int
13266 main ()
13267 {
13268
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274 eval $cacheid=yes
13275 else
13276 eval $cacheid=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280 fi
13281
13282
13283 CFLAGS="$xorg_testset_save_CFLAGS"
13284
13285 eval supported=\$$cacheid
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13287 $as_echo "$supported" >&6; }
13288 if test "$supported" = "yes" ; then
13289 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13290 found="yes"
13291 fi
13292 fi
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308 xorg_testset_save_CFLAGS="$CFLAGS"
13309
13310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 int i;
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 xorg_cv_cc_flag_unknown_warning_option=yes
13323 else
13324 xorg_cv_cc_flag_unknown_warning_option=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13331 CFLAGS="$xorg_testset_save_CFLAGS"
13332 fi
13333
13334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13337 fi
13338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346 int i;
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"; then :
13349 xorg_cv_cc_flag_unused_command_line_argument=yes
13350 else
13351 xorg_cv_cc_flag_unused_command_line_argument=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13358 CFLAGS="$xorg_testset_save_CFLAGS"
13359 fi
13360
13361 found="no"
13362
13363 if test $found = "no" ; then
13364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366 fi
13367
13368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13370 fi
13371
13372 CFLAGS="$CFLAGS -Wold-style-definition"
13373
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13375 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13376 cacheid=xorg_cv_cc_flag__Wold_style_definition
13377 if eval \${$cacheid+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 int i;
13383 int
13384 main ()
13385 {
13386
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_link "$LINENO"; then :
13392 eval $cacheid=yes
13393 else
13394 eval $cacheid=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 fi
13399
13400
13401 CFLAGS="$xorg_testset_save_CFLAGS"
13402
13403 eval supported=\$$cacheid
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13405 $as_echo "$supported" >&6; }
13406 if test "$supported" = "yes" ; then
13407 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13408 found="yes"
13409 fi
13410 fi
13411
13412 if test $found = "no" ; then
13413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415 fi
13416
13417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419 fi
13420
13421 CFLAGS="$CFLAGS -fd"
13422
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13424 $as_echo_n "checking if $CC supports -fd... " >&6; }
13425 cacheid=xorg_cv_cc_flag__fd
13426 if eval \${$cacheid+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 int i;
13432 int
13433 main ()
13434 {
13435
13436 ;
13437 return 0;
13438 }
13439 _ACEOF
13440 if ac_fn_c_try_link "$LINENO"; then :
13441 eval $cacheid=yes
13442 else
13443 eval $cacheid=no
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
13447 fi
13448
13449
13450 CFLAGS="$xorg_testset_save_CFLAGS"
13451
13452 eval supported=\$$cacheid
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13454 $as_echo "$supported" >&6; }
13455 if test "$supported" = "yes" ; then
13456 BASE_CFLAGS="$BASE_CFLAGS -fd"
13457 found="yes"
13458 fi
13459 fi
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475 xorg_testset_save_CFLAGS="$CFLAGS"
13476
13477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486 int i;
13487 _ACEOF
13488 if ac_fn_c_try_compile "$LINENO"; then :
13489 xorg_cv_cc_flag_unknown_warning_option=yes
13490 else
13491 xorg_cv_cc_flag_unknown_warning_option=no
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13498 CFLAGS="$xorg_testset_save_CFLAGS"
13499 fi
13500
13501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13504 fi
13505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 int i;
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516 xorg_cv_cc_flag_unused_command_line_argument=yes
13517 else
13518 xorg_cv_cc_flag_unused_command_line_argument=no
13519 fi
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13525 CFLAGS="$xorg_testset_save_CFLAGS"
13526 fi
13527
13528 found="no"
13529
13530 if test $found = "no" ; then
13531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533 fi
13534
13535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537 fi
13538
13539 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13540
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13542 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13543 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13544 if eval \${$cacheid+:} false; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549 int i;
13550 int
13551 main ()
13552 {
13553
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 eval $cacheid=yes
13560 else
13561 eval $cacheid=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 fi
13566
13567
13568 CFLAGS="$xorg_testset_save_CFLAGS"
13569
13570 eval supported=\$$cacheid
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13572 $as_echo "$supported" >&6; }
13573 if test "$supported" = "yes" ; then
13574 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13575 found="yes"
13576 fi
13577 fi
13578
13579
13580
13581
13582
13583 # This chunk adds additional warnings that could catch undesired effects.
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597 xorg_testset_save_CFLAGS="$CFLAGS"
13598
13599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 int i;
13609 _ACEOF
13610 if ac_fn_c_try_compile "$LINENO"; then :
13611 xorg_cv_cc_flag_unknown_warning_option=yes
13612 else
13613 xorg_cv_cc_flag_unknown_warning_option=no
13614 fi
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13620 CFLAGS="$xorg_testset_save_CFLAGS"
13621 fi
13622
13623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13626 fi
13627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 int i;
13636 _ACEOF
13637 if ac_fn_c_try_compile "$LINENO"; then :
13638 xorg_cv_cc_flag_unused_command_line_argument=yes
13639 else
13640 xorg_cv_cc_flag_unused_command_line_argument=no
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13647 CFLAGS="$xorg_testset_save_CFLAGS"
13648 fi
13649
13650 found="no"
13651
13652 if test $found = "no" ; then
13653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13655 fi
13656
13657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13659 fi
13660
13661 CFLAGS="$CFLAGS -Wunused"
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13664 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13665 cacheid=xorg_cv_cc_flag__Wunused
13666 if eval \${$cacheid+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 int i;
13672 int
13673 main ()
13674 {
13675
13676 ;
13677 return 0;
13678 }
13679 _ACEOF
13680 if ac_fn_c_try_link "$LINENO"; then :
13681 eval $cacheid=yes
13682 else
13683 eval $cacheid=no
13684 fi
13685 rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
13687 fi
13688
13689
13690 CFLAGS="$xorg_testset_save_CFLAGS"
13691
13692 eval supported=\$$cacheid
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13694 $as_echo "$supported" >&6; }
13695 if test "$supported" = "yes" ; then
13696 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13697 found="yes"
13698 fi
13699 fi
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715 xorg_testset_save_CFLAGS="$CFLAGS"
13716
13717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 int i;
13727 _ACEOF
13728 if ac_fn_c_try_compile "$LINENO"; then :
13729 xorg_cv_cc_flag_unknown_warning_option=yes
13730 else
13731 xorg_cv_cc_flag_unknown_warning_option=no
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13738 CFLAGS="$xorg_testset_save_CFLAGS"
13739 fi
13740
13741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744 fi
13745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 int i;
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756 xorg_cv_cc_flag_unused_command_line_argument=yes
13757 else
13758 xorg_cv_cc_flag_unused_command_line_argument=no
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761 fi
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13765 CFLAGS="$xorg_testset_save_CFLAGS"
13766 fi
13767
13768 found="no"
13769
13770 if test $found = "no" ; then
13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13773 fi
13774
13775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13777 fi
13778
13779 CFLAGS="$CFLAGS -Wuninitialized"
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13782 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13783 cacheid=xorg_cv_cc_flag__Wuninitialized
13784 if eval \${$cacheid+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789 int i;
13790 int
13791 main ()
13792 {
13793
13794 ;
13795 return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_link "$LINENO"; then :
13799 eval $cacheid=yes
13800 else
13801 eval $cacheid=no
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 fi
13806
13807
13808 CFLAGS="$xorg_testset_save_CFLAGS"
13809
13810 eval supported=\$$cacheid
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13812 $as_echo "$supported" >&6; }
13813 if test "$supported" = "yes" ; then
13814 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13815 found="yes"
13816 fi
13817 fi
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833 xorg_testset_save_CFLAGS="$CFLAGS"
13834
13835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13838 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13839 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 int i;
13845 _ACEOF
13846 if ac_fn_c_try_compile "$LINENO"; then :
13847 xorg_cv_cc_flag_unknown_warning_option=yes
13848 else
13849 xorg_cv_cc_flag_unknown_warning_option=no
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13854 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13856 CFLAGS="$xorg_testset_save_CFLAGS"
13857 fi
13858
13859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13862 fi
13863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13865 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13866 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 int i;
13872 _ACEOF
13873 if ac_fn_c_try_compile "$LINENO"; then :
13874 xorg_cv_cc_flag_unused_command_line_argument=yes
13875 else
13876 xorg_cv_cc_flag_unused_command_line_argument=no
13877 fi
13878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13881 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13883 CFLAGS="$xorg_testset_save_CFLAGS"
13884 fi
13885
13886 found="no"
13887
13888 if test $found = "no" ; then
13889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13891 fi
13892
13893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13895 fi
13896
13897 CFLAGS="$CFLAGS -Wshadow"
13898
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13900 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13901 cacheid=xorg_cv_cc_flag__Wshadow
13902 if eval \${$cacheid+:} false; then :
13903 $as_echo_n "(cached) " >&6
13904 else
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 int i;
13908 int
13909 main ()
13910 {
13911
13912 ;
13913 return 0;
13914 }
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 eval $cacheid=yes
13918 else
13919 eval $cacheid=no
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 fi
13924
13925
13926 CFLAGS="$xorg_testset_save_CFLAGS"
13927
13928 eval supported=\$$cacheid
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13930 $as_echo "$supported" >&6; }
13931 if test "$supported" = "yes" ; then
13932 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13933 found="yes"
13934 fi
13935 fi
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951 xorg_testset_save_CFLAGS="$CFLAGS"
13952
13953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962 int i;
13963 _ACEOF
13964 if ac_fn_c_try_compile "$LINENO"; then :
13965 xorg_cv_cc_flag_unknown_warning_option=yes
13966 else
13967 xorg_cv_cc_flag_unknown_warning_option=no
13968 fi
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 fi
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13974 CFLAGS="$xorg_testset_save_CFLAGS"
13975 fi
13976
13977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980 fi
13981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 int i;
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992 xorg_cv_cc_flag_unused_command_line_argument=yes
13993 else
13994 xorg_cv_cc_flag_unused_command_line_argument=no
13995 fi
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 fi
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14001 CFLAGS="$xorg_testset_save_CFLAGS"
14002 fi
14003
14004 found="no"
14005
14006 if test $found = "no" ; then
14007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14009 fi
14010
14011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14013 fi
14014
14015 CFLAGS="$CFLAGS -Wmissing-noreturn"
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14018 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14019 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14020 if eval \${$cacheid+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 int i;
14026 int
14027 main ()
14028 {
14029
14030 ;
14031 return 0;
14032 }
14033 _ACEOF
14034 if ac_fn_c_try_link "$LINENO"; then :
14035 eval $cacheid=yes
14036 else
14037 eval $cacheid=no
14038 fi
14039 rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
14041 fi
14042
14043
14044 CFLAGS="$xorg_testset_save_CFLAGS"
14045
14046 eval supported=\$$cacheid
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14048 $as_echo "$supported" >&6; }
14049 if test "$supported" = "yes" ; then
14050 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14051 found="yes"
14052 fi
14053 fi
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069 xorg_testset_save_CFLAGS="$CFLAGS"
14070
14071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 int i;
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 xorg_cv_cc_flag_unknown_warning_option=yes
14084 else
14085 xorg_cv_cc_flag_unknown_warning_option=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14092 CFLAGS="$xorg_testset_save_CFLAGS"
14093 fi
14094
14095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14098 fi
14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 int i;
14108 _ACEOF
14109 if ac_fn_c_try_compile "$LINENO"; then :
14110 xorg_cv_cc_flag_unused_command_line_argument=yes
14111 else
14112 xorg_cv_cc_flag_unused_command_line_argument=no
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 fi
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14119 CFLAGS="$xorg_testset_save_CFLAGS"
14120 fi
14121
14122 found="no"
14123
14124 if test $found = "no" ; then
14125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14127 fi
14128
14129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14131 fi
14132
14133 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14136 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14137 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14138 if eval \${$cacheid+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 int i;
14144 int
14145 main ()
14146 {
14147
14148 ;
14149 return 0;
14150 }
14151 _ACEOF
14152 if ac_fn_c_try_link "$LINENO"; then :
14153 eval $cacheid=yes
14154 else
14155 eval $cacheid=no
14156 fi
14157 rm -f core conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 fi
14160
14161
14162 CFLAGS="$xorg_testset_save_CFLAGS"
14163
14164 eval supported=\$$cacheid
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14166 $as_echo "$supported" >&6; }
14167 if test "$supported" = "yes" ; then
14168 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14169 found="yes"
14170 fi
14171 fi
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187 xorg_testset_save_CFLAGS="$CFLAGS"
14188
14189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 int i;
14199 _ACEOF
14200 if ac_fn_c_try_compile "$LINENO"; then :
14201 xorg_cv_cc_flag_unknown_warning_option=yes
14202 else
14203 xorg_cv_cc_flag_unknown_warning_option=no
14204 fi
14205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14210 CFLAGS="$xorg_testset_save_CFLAGS"
14211 fi
14212
14213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216 fi
14217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 int i;
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"; then :
14228 xorg_cv_cc_flag_unused_command_line_argument=yes
14229 else
14230 xorg_cv_cc_flag_unused_command_line_argument=no
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14237 CFLAGS="$xorg_testset_save_CFLAGS"
14238 fi
14239
14240 found="no"
14241
14242 if test $found = "no" ; then
14243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14245 fi
14246
14247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14249 fi
14250
14251 CFLAGS="$CFLAGS -Wredundant-decls"
14252
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14254 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14255 cacheid=xorg_cv_cc_flag__Wredundant_decls
14256 if eval \${$cacheid+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 int i;
14262 int
14263 main ()
14264 {
14265
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 eval $cacheid=yes
14272 else
14273 eval $cacheid=no
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14277 fi
14278
14279
14280 CFLAGS="$xorg_testset_save_CFLAGS"
14281
14282 eval supported=\$$cacheid
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14284 $as_echo "$supported" >&6; }
14285 if test "$supported" = "yes" ; then
14286 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14287 found="yes"
14288 fi
14289 fi
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305 xorg_testset_save_CFLAGS="$CFLAGS"
14306
14307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 int i;
14317 _ACEOF
14318 if ac_fn_c_try_compile "$LINENO"; then :
14319 xorg_cv_cc_flag_unknown_warning_option=yes
14320 else
14321 xorg_cv_cc_flag_unknown_warning_option=no
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14328 CFLAGS="$xorg_testset_save_CFLAGS"
14329 fi
14330
14331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14334 fi
14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14343 int i;
14344 _ACEOF
14345 if ac_fn_c_try_compile "$LINENO"; then :
14346 xorg_cv_cc_flag_unused_command_line_argument=yes
14347 else
14348 xorg_cv_cc_flag_unused_command_line_argument=no
14349 fi
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14355 CFLAGS="$xorg_testset_save_CFLAGS"
14356 fi
14357
14358 found="no"
14359
14360 if test $found = "no" ; then
14361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14363 fi
14364
14365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367 fi
14368
14369 CFLAGS="$CFLAGS -Wlogical-op"
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14372 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14373 cacheid=xorg_cv_cc_flag__Wlogical_op
14374 if eval \${$cacheid+:} false; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 int i;
14380 int
14381 main ()
14382 {
14383
14384 ;
14385 return 0;
14386 }
14387 _ACEOF
14388 if ac_fn_c_try_link "$LINENO"; then :
14389 eval $cacheid=yes
14390 else
14391 eval $cacheid=no
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14395 fi
14396
14397
14398 CFLAGS="$xorg_testset_save_CFLAGS"
14399
14400 eval supported=\$$cacheid
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14402 $as_echo "$supported" >&6; }
14403 if test "$supported" = "yes" ; then
14404 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14405 found="yes"
14406 fi
14407 fi
14408
14409
14410
14411 # These are currently disabled because they are noisy. They will be enabled
14412 # in the future once the codebase is sufficiently modernized to silence
14413 # them. For now, I don't want them to drown out the other warnings.
14414 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14415 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14416 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14417
14418 # Turn some warnings into errors, so we don't accidently get successful builds
14419 # when there are problems that should be fixed.
14420
14421 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435 xorg_testset_save_CFLAGS="$CFLAGS"
14436
14437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14440 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14441 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 int i;
14447 _ACEOF
14448 if ac_fn_c_try_compile "$LINENO"; then :
14449 xorg_cv_cc_flag_unknown_warning_option=yes
14450 else
14451 xorg_cv_cc_flag_unknown_warning_option=no
14452 fi
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 fi
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14456 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14458 CFLAGS="$xorg_testset_save_CFLAGS"
14459 fi
14460
14461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14464 fi
14465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14467 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14468 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 int i;
14474 _ACEOF
14475 if ac_fn_c_try_compile "$LINENO"; then :
14476 xorg_cv_cc_flag_unused_command_line_argument=yes
14477 else
14478 xorg_cv_cc_flag_unused_command_line_argument=no
14479 fi
14480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14483 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14485 CFLAGS="$xorg_testset_save_CFLAGS"
14486 fi
14487
14488 found="no"
14489
14490 if test $found = "no" ; then
14491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14493 fi
14494
14495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14497 fi
14498
14499 CFLAGS="$CFLAGS -Werror=implicit"
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14502 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14503 cacheid=xorg_cv_cc_flag__Werror_implicit
14504 if eval \${$cacheid+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509 int i;
14510 int
14511 main ()
14512 {
14513
14514 ;
14515 return 0;
14516 }
14517 _ACEOF
14518 if ac_fn_c_try_link "$LINENO"; then :
14519 eval $cacheid=yes
14520 else
14521 eval $cacheid=no
14522 fi
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525 fi
14526
14527
14528 CFLAGS="$xorg_testset_save_CFLAGS"
14529
14530 eval supported=\$$cacheid
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14532 $as_echo "$supported" >&6; }
14533 if test "$supported" = "yes" ; then
14534 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14535 found="yes"
14536 fi
14537 fi
14538
14539 if test $found = "no" ; then
14540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14542 fi
14543
14544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14546 fi
14547
14548 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14549
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14551 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14552 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14553 if eval \${$cacheid+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558 int i;
14559 int
14560 main ()
14561 {
14562
14563 ;
14564 return 0;
14565 }
14566 _ACEOF
14567 if ac_fn_c_try_link "$LINENO"; then :
14568 eval $cacheid=yes
14569 else
14570 eval $cacheid=no
14571 fi
14572 rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext conftest.$ac_ext
14574 fi
14575
14576
14577 CFLAGS="$xorg_testset_save_CFLAGS"
14578
14579 eval supported=\$$cacheid
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14581 $as_echo "$supported" >&6; }
14582 if test "$supported" = "yes" ; then
14583 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14584 found="yes"
14585 fi
14586 fi
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602 xorg_testset_save_CFLAGS="$CFLAGS"
14603
14604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 int i;
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"; then :
14616 xorg_cv_cc_flag_unknown_warning_option=yes
14617 else
14618 xorg_cv_cc_flag_unknown_warning_option=no
14619 fi
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14625 CFLAGS="$xorg_testset_save_CFLAGS"
14626 fi
14627
14628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14631 fi
14632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14640 int i;
14641 _ACEOF
14642 if ac_fn_c_try_compile "$LINENO"; then :
14643 xorg_cv_cc_flag_unused_command_line_argument=yes
14644 else
14645 xorg_cv_cc_flag_unused_command_line_argument=no
14646 fi
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 fi
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14652 CFLAGS="$xorg_testset_save_CFLAGS"
14653 fi
14654
14655 found="no"
14656
14657 if test $found = "no" ; then
14658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14660 fi
14661
14662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14664 fi
14665
14666 CFLAGS="$CFLAGS -Werror=nonnull"
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14669 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14670 cacheid=xorg_cv_cc_flag__Werror_nonnull
14671 if eval \${$cacheid+:} false; then :
14672 $as_echo_n "(cached) " >&6
14673 else
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14676 int i;
14677 int
14678 main ()
14679 {
14680
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 if ac_fn_c_try_link "$LINENO"; then :
14686 eval $cacheid=yes
14687 else
14688 eval $cacheid=no
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext \
14691 conftest$ac_exeext conftest.$ac_ext
14692 fi
14693
14694
14695 CFLAGS="$xorg_testset_save_CFLAGS"
14696
14697 eval supported=\$$cacheid
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14699 $as_echo "$supported" >&6; }
14700 if test "$supported" = "yes" ; then
14701 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14702 found="yes"
14703 fi
14704 fi
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720 xorg_testset_save_CFLAGS="$CFLAGS"
14721
14722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731 int i;
14732 _ACEOF
14733 if ac_fn_c_try_compile "$LINENO"; then :
14734 xorg_cv_cc_flag_unknown_warning_option=yes
14735 else
14736 xorg_cv_cc_flag_unknown_warning_option=no
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 fi
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14743 CFLAGS="$xorg_testset_save_CFLAGS"
14744 fi
14745
14746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749 fi
14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14758 int i;
14759 _ACEOF
14760 if ac_fn_c_try_compile "$LINENO"; then :
14761 xorg_cv_cc_flag_unused_command_line_argument=yes
14762 else
14763 xorg_cv_cc_flag_unused_command_line_argument=no
14764 fi
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 fi
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14770 CFLAGS="$xorg_testset_save_CFLAGS"
14771 fi
14772
14773 found="no"
14774
14775 if test $found = "no" ; then
14776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778 fi
14779
14780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14782 fi
14783
14784 CFLAGS="$CFLAGS -Werror=init-self"
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14787 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14788 cacheid=xorg_cv_cc_flag__Werror_init_self
14789 if eval \${$cacheid+:} false; then :
14790 $as_echo_n "(cached) " >&6
14791 else
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 int i;
14795 int
14796 main ()
14797 {
14798
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 if ac_fn_c_try_link "$LINENO"; then :
14804 eval $cacheid=yes
14805 else
14806 eval $cacheid=no
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810 fi
14811
14812
14813 CFLAGS="$xorg_testset_save_CFLAGS"
14814
14815 eval supported=\$$cacheid
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14817 $as_echo "$supported" >&6; }
14818 if test "$supported" = "yes" ; then
14819 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14820 found="yes"
14821 fi
14822 fi
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838 xorg_testset_save_CFLAGS="$CFLAGS"
14839
14840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846 else
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14849 int i;
14850 _ACEOF
14851 if ac_fn_c_try_compile "$LINENO"; then :
14852 xorg_cv_cc_flag_unknown_warning_option=yes
14853 else
14854 xorg_cv_cc_flag_unknown_warning_option=no
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14861 CFLAGS="$xorg_testset_save_CFLAGS"
14862 fi
14863
14864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14867 fi
14868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 int i;
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"; then :
14879 xorg_cv_cc_flag_unused_command_line_argument=yes
14880 else
14881 xorg_cv_cc_flag_unused_command_line_argument=no
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884 fi
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14888 CFLAGS="$xorg_testset_save_CFLAGS"
14889 fi
14890
14891 found="no"
14892
14893 if test $found = "no" ; then
14894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14896 fi
14897
14898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14900 fi
14901
14902 CFLAGS="$CFLAGS -Werror=main"
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14905 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14906 cacheid=xorg_cv_cc_flag__Werror_main
14907 if eval \${$cacheid+:} false; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 int i;
14913 int
14914 main ()
14915 {
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 if ac_fn_c_try_link "$LINENO"; then :
14922 eval $cacheid=yes
14923 else
14924 eval $cacheid=no
14925 fi
14926 rm -f core conftest.err conftest.$ac_objext \
14927 conftest$ac_exeext conftest.$ac_ext
14928 fi
14929
14930
14931 CFLAGS="$xorg_testset_save_CFLAGS"
14932
14933 eval supported=\$$cacheid
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14935 $as_echo "$supported" >&6; }
14936 if test "$supported" = "yes" ; then
14937 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14938 found="yes"
14939 fi
14940 fi
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956 xorg_testset_save_CFLAGS="$CFLAGS"
14957
14958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 int i;
14968 _ACEOF
14969 if ac_fn_c_try_compile "$LINENO"; then :
14970 xorg_cv_cc_flag_unknown_warning_option=yes
14971 else
14972 xorg_cv_cc_flag_unknown_warning_option=no
14973 fi
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14979 CFLAGS="$xorg_testset_save_CFLAGS"
14980 fi
14981
14982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14985 fi
14986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14990 $as_echo_n "(cached) " >&6
14991 else
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14994 int i;
14995 _ACEOF
14996 if ac_fn_c_try_compile "$LINENO"; then :
14997 xorg_cv_cc_flag_unused_command_line_argument=yes
14998 else
14999 xorg_cv_cc_flag_unused_command_line_argument=no
15000 fi
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15006 CFLAGS="$xorg_testset_save_CFLAGS"
15007 fi
15008
15009 found="no"
15010
15011 if test $found = "no" ; then
15012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15014 fi
15015
15016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15018 fi
15019
15020 CFLAGS="$CFLAGS -Werror=missing-braces"
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15023 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15024 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15025 if eval \${$cacheid+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 int i;
15031 int
15032 main ()
15033 {
15034
15035 ;
15036 return 0;
15037 }
15038 _ACEOF
15039 if ac_fn_c_try_link "$LINENO"; then :
15040 eval $cacheid=yes
15041 else
15042 eval $cacheid=no
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 fi
15047
15048
15049 CFLAGS="$xorg_testset_save_CFLAGS"
15050
15051 eval supported=\$$cacheid
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15053 $as_echo "$supported" >&6; }
15054 if test "$supported" = "yes" ; then
15055 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15056 found="yes"
15057 fi
15058 fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074 xorg_testset_save_CFLAGS="$CFLAGS"
15075
15076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085 int i;
15086 _ACEOF
15087 if ac_fn_c_try_compile "$LINENO"; then :
15088 xorg_cv_cc_flag_unknown_warning_option=yes
15089 else
15090 xorg_cv_cc_flag_unknown_warning_option=no
15091 fi
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15097 CFLAGS="$xorg_testset_save_CFLAGS"
15098 fi
15099
15100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15103 fi
15104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15108 $as_echo_n "(cached) " >&6
15109 else
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112 int i;
15113 _ACEOF
15114 if ac_fn_c_try_compile "$LINENO"; then :
15115 xorg_cv_cc_flag_unused_command_line_argument=yes
15116 else
15117 xorg_cv_cc_flag_unused_command_line_argument=no
15118 fi
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 fi
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15124 CFLAGS="$xorg_testset_save_CFLAGS"
15125 fi
15126
15127 found="no"
15128
15129 if test $found = "no" ; then
15130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15132 fi
15133
15134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15136 fi
15137
15138 CFLAGS="$CFLAGS -Werror=sequence-point"
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15141 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15142 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15143 if eval \${$cacheid+:} false; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 int i;
15149 int
15150 main ()
15151 {
15152
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 if ac_fn_c_try_link "$LINENO"; then :
15158 eval $cacheid=yes
15159 else
15160 eval $cacheid=no
15161 fi
15162 rm -f core conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
15164 fi
15165
15166
15167 CFLAGS="$xorg_testset_save_CFLAGS"
15168
15169 eval supported=\$$cacheid
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15171 $as_echo "$supported" >&6; }
15172 if test "$supported" = "yes" ; then
15173 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15174 found="yes"
15175 fi
15176 fi
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192 xorg_testset_save_CFLAGS="$CFLAGS"
15193
15194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15199 $as_echo_n "(cached) " >&6
15200 else
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 int i;
15204 _ACEOF
15205 if ac_fn_c_try_compile "$LINENO"; then :
15206 xorg_cv_cc_flag_unknown_warning_option=yes
15207 else
15208 xorg_cv_cc_flag_unknown_warning_option=no
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 fi
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15215 CFLAGS="$xorg_testset_save_CFLAGS"
15216 fi
15217
15218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221 fi
15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 int i;
15231 _ACEOF
15232 if ac_fn_c_try_compile "$LINENO"; then :
15233 xorg_cv_cc_flag_unused_command_line_argument=yes
15234 else
15235 xorg_cv_cc_flag_unused_command_line_argument=no
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 fi
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15242 CFLAGS="$xorg_testset_save_CFLAGS"
15243 fi
15244
15245 found="no"
15246
15247 if test $found = "no" ; then
15248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15250 fi
15251
15252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15254 fi
15255
15256 CFLAGS="$CFLAGS -Werror=return-type"
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15259 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15260 cacheid=xorg_cv_cc_flag__Werror_return_type
15261 if eval \${$cacheid+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 int i;
15267 int
15268 main ()
15269 {
15270
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 if ac_fn_c_try_link "$LINENO"; then :
15276 eval $cacheid=yes
15277 else
15278 eval $cacheid=no
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 fi
15283
15284
15285 CFLAGS="$xorg_testset_save_CFLAGS"
15286
15287 eval supported=\$$cacheid
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15289 $as_echo "$supported" >&6; }
15290 if test "$supported" = "yes" ; then
15291 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15292 found="yes"
15293 fi
15294 fi
15295
15296 if test $found = "no" ; then
15297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15299 fi
15300
15301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15303 fi
15304
15305 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15308 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15309 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15310 if eval \${$cacheid+:} false; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315 int i;
15316 int
15317 main ()
15318 {
15319
15320 ;
15321 return 0;
15322 }
15323 _ACEOF
15324 if ac_fn_c_try_link "$LINENO"; then :
15325 eval $cacheid=yes
15326 else
15327 eval $cacheid=no
15328 fi
15329 rm -f core conftest.err conftest.$ac_objext \
15330 conftest$ac_exeext conftest.$ac_ext
15331 fi
15332
15333
15334 CFLAGS="$xorg_testset_save_CFLAGS"
15335
15336 eval supported=\$$cacheid
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15338 $as_echo "$supported" >&6; }
15339 if test "$supported" = "yes" ; then
15340 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15341 found="yes"
15342 fi
15343 fi
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359 xorg_testset_save_CFLAGS="$CFLAGS"
15360
15361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15366 $as_echo_n "(cached) " >&6
15367 else
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370 int i;
15371 _ACEOF
15372 if ac_fn_c_try_compile "$LINENO"; then :
15373 xorg_cv_cc_flag_unknown_warning_option=yes
15374 else
15375 xorg_cv_cc_flag_unknown_warning_option=no
15376 fi
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 fi
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15382 CFLAGS="$xorg_testset_save_CFLAGS"
15383 fi
15384
15385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15388 fi
15389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15393 $as_echo_n "(cached) " >&6
15394 else
15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15397 int i;
15398 _ACEOF
15399 if ac_fn_c_try_compile "$LINENO"; then :
15400 xorg_cv_cc_flag_unused_command_line_argument=yes
15401 else
15402 xorg_cv_cc_flag_unused_command_line_argument=no
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405 fi
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15409 CFLAGS="$xorg_testset_save_CFLAGS"
15410 fi
15411
15412 found="no"
15413
15414 if test $found = "no" ; then
15415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15417 fi
15418
15419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15421 fi
15422
15423 CFLAGS="$CFLAGS -Werror=trigraphs"
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15426 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15427 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15428 if eval \${$cacheid+:} false; then :
15429 $as_echo_n "(cached) " >&6
15430 else
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 int i;
15434 int
15435 main ()
15436 {
15437
15438 ;
15439 return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_c_try_link "$LINENO"; then :
15443 eval $cacheid=yes
15444 else
15445 eval $cacheid=no
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449 fi
15450
15451
15452 CFLAGS="$xorg_testset_save_CFLAGS"
15453
15454 eval supported=\$$cacheid
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15456 $as_echo "$supported" >&6; }
15457 if test "$supported" = "yes" ; then
15458 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15459 found="yes"
15460 fi
15461 fi
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477 xorg_testset_save_CFLAGS="$CFLAGS"
15478
15479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15484 $as_echo_n "(cached) " >&6
15485 else
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 int i;
15489 _ACEOF
15490 if ac_fn_c_try_compile "$LINENO"; then :
15491 xorg_cv_cc_flag_unknown_warning_option=yes
15492 else
15493 xorg_cv_cc_flag_unknown_warning_option=no
15494 fi
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 fi
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15500 CFLAGS="$xorg_testset_save_CFLAGS"
15501 fi
15502
15503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15506 fi
15507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15511 $as_echo_n "(cached) " >&6
15512 else
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 int i;
15516 _ACEOF
15517 if ac_fn_c_try_compile "$LINENO"; then :
15518 xorg_cv_cc_flag_unused_command_line_argument=yes
15519 else
15520 xorg_cv_cc_flag_unused_command_line_argument=no
15521 fi
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523 fi
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15527 CFLAGS="$xorg_testset_save_CFLAGS"
15528 fi
15529
15530 found="no"
15531
15532 if test $found = "no" ; then
15533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15535 fi
15536
15537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15539 fi
15540
15541 CFLAGS="$CFLAGS -Werror=array-bounds"
15542
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15544 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15545 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15546 if eval \${$cacheid+:} false; then :
15547 $as_echo_n "(cached) " >&6
15548 else
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15551 int i;
15552 int
15553 main ()
15554 {
15555
15556 ;
15557 return 0;
15558 }
15559 _ACEOF
15560 if ac_fn_c_try_link "$LINENO"; then :
15561 eval $cacheid=yes
15562 else
15563 eval $cacheid=no
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext \
15566 conftest$ac_exeext conftest.$ac_ext
15567 fi
15568
15569
15570 CFLAGS="$xorg_testset_save_CFLAGS"
15571
15572 eval supported=\$$cacheid
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15574 $as_echo "$supported" >&6; }
15575 if test "$supported" = "yes" ; then
15576 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15577 found="yes"
15578 fi
15579 fi
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595 xorg_testset_save_CFLAGS="$CFLAGS"
15596
15597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 int i;
15607 _ACEOF
15608 if ac_fn_c_try_compile "$LINENO"; then :
15609 xorg_cv_cc_flag_unknown_warning_option=yes
15610 else
15611 xorg_cv_cc_flag_unknown_warning_option=no
15612 fi
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 fi
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15618 CFLAGS="$xorg_testset_save_CFLAGS"
15619 fi
15620
15621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15624 fi
15625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15633 int i;
15634 _ACEOF
15635 if ac_fn_c_try_compile "$LINENO"; then :
15636 xorg_cv_cc_flag_unused_command_line_argument=yes
15637 else
15638 xorg_cv_cc_flag_unused_command_line_argument=no
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641 fi
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15645 CFLAGS="$xorg_testset_save_CFLAGS"
15646 fi
15647
15648 found="no"
15649
15650 if test $found = "no" ; then
15651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15653 fi
15654
15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15657 fi
15658
15659 CFLAGS="$CFLAGS -Werror=write-strings"
15660
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15662 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15663 cacheid=xorg_cv_cc_flag__Werror_write_strings
15664 if eval \${$cacheid+:} false; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 int i;
15670 int
15671 main ()
15672 {
15673
15674 ;
15675 return 0;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_link "$LINENO"; then :
15679 eval $cacheid=yes
15680 else
15681 eval $cacheid=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685 fi
15686
15687
15688 CFLAGS="$xorg_testset_save_CFLAGS"
15689
15690 eval supported=\$$cacheid
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15692 $as_echo "$supported" >&6; }
15693 if test "$supported" = "yes" ; then
15694 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15695 found="yes"
15696 fi
15697 fi
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713 xorg_testset_save_CFLAGS="$CFLAGS"
15714
15715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15718 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15719 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15724 int i;
15725 _ACEOF
15726 if ac_fn_c_try_compile "$LINENO"; then :
15727 xorg_cv_cc_flag_unknown_warning_option=yes
15728 else
15729 xorg_cv_cc_flag_unknown_warning_option=no
15730 fi
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 fi
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15734 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15736 CFLAGS="$xorg_testset_save_CFLAGS"
15737 fi
15738
15739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15742 fi
15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15745 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15746 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15751 int i;
15752 _ACEOF
15753 if ac_fn_c_try_compile "$LINENO"; then :
15754 xorg_cv_cc_flag_unused_command_line_argument=yes
15755 else
15756 xorg_cv_cc_flag_unused_command_line_argument=no
15757 fi
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 fi
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15761 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15763 CFLAGS="$xorg_testset_save_CFLAGS"
15764 fi
15765
15766 found="no"
15767
15768 if test $found = "no" ; then
15769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771 fi
15772
15773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15775 fi
15776
15777 CFLAGS="$CFLAGS -Werror=address"
15778
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15780 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15781 cacheid=xorg_cv_cc_flag__Werror_address
15782 if eval \${$cacheid+:} false; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786 /* end confdefs.h. */
15787 int i;
15788 int
15789 main ()
15790 {
15791
15792 ;
15793 return 0;
15794 }
15795 _ACEOF
15796 if ac_fn_c_try_link "$LINENO"; then :
15797 eval $cacheid=yes
15798 else
15799 eval $cacheid=no
15800 fi
15801 rm -f core conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext conftest.$ac_ext
15803 fi
15804
15805
15806 CFLAGS="$xorg_testset_save_CFLAGS"
15807
15808 eval supported=\$$cacheid
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15810 $as_echo "$supported" >&6; }
15811 if test "$supported" = "yes" ; then
15812 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15813 found="yes"
15814 fi
15815 fi
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831 xorg_testset_save_CFLAGS="$CFLAGS"
15832
15833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15838 $as_echo_n "(cached) " >&6
15839 else
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 int i;
15843 _ACEOF
15844 if ac_fn_c_try_compile "$LINENO"; then :
15845 xorg_cv_cc_flag_unknown_warning_option=yes
15846 else
15847 xorg_cv_cc_flag_unknown_warning_option=no
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15854 CFLAGS="$xorg_testset_save_CFLAGS"
15855 fi
15856
15857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15860 fi
15861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15869 int i;
15870 _ACEOF
15871 if ac_fn_c_try_compile "$LINENO"; then :
15872 xorg_cv_cc_flag_unused_command_line_argument=yes
15873 else
15874 xorg_cv_cc_flag_unused_command_line_argument=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15881 CFLAGS="$xorg_testset_save_CFLAGS"
15882 fi
15883
15884 found="no"
15885
15886 if test $found = "no" ; then
15887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15889 fi
15890
15891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15893 fi
15894
15895 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15896
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15898 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15899 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15900 if eval \${$cacheid+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 int i;
15906 int
15907 main ()
15908 {
15909
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_link "$LINENO"; then :
15915 eval $cacheid=yes
15916 else
15917 eval $cacheid=no
15918 fi
15919 rm -f core conftest.err conftest.$ac_objext \
15920 conftest$ac_exeext conftest.$ac_ext
15921 fi
15922
15923
15924 CFLAGS="$xorg_testset_save_CFLAGS"
15925
15926 eval supported=\$$cacheid
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15928 $as_echo "$supported" >&6; }
15929 if test "$supported" = "yes" ; then
15930 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15931 found="yes"
15932 fi
15933 fi
15934
15935 if test $found = "no" ; then
15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15938 fi
15939
15940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15942 fi
15943
15944 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15945
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15947 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15948 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15949 if eval \${$cacheid+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 int i;
15955 int
15956 main ()
15957 {
15958
15959 ;
15960 return 0;
15961 }
15962 _ACEOF
15963 if ac_fn_c_try_link "$LINENO"; then :
15964 eval $cacheid=yes
15965 else
15966 eval $cacheid=no
15967 fi
15968 rm -f core conftest.err conftest.$ac_objext \
15969 conftest$ac_exeext conftest.$ac_ext
15970 fi
15971
15972
15973 CFLAGS="$xorg_testset_save_CFLAGS"
15974
15975 eval supported=\$$cacheid
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15977 $as_echo "$supported" >&6; }
15978 if test "$supported" = "yes" ; then
15979 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15980 found="yes"
15981 fi
15982 fi
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998 xorg_testset_save_CFLAGS="$CFLAGS"
15999
16000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009 int i;
16010 _ACEOF
16011 if ac_fn_c_try_compile "$LINENO"; then :
16012 xorg_cv_cc_flag_unknown_warning_option=yes
16013 else
16014 xorg_cv_cc_flag_unknown_warning_option=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 fi
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16021 CFLAGS="$xorg_testset_save_CFLAGS"
16022 fi
16023
16024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16027 fi
16028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16032 $as_echo_n "(cached) " >&6
16033 else
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 int i;
16037 _ACEOF
16038 if ac_fn_c_try_compile "$LINENO"; then :
16039 xorg_cv_cc_flag_unused_command_line_argument=yes
16040 else
16041 xorg_cv_cc_flag_unused_command_line_argument=no
16042 fi
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 fi
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16048 CFLAGS="$xorg_testset_save_CFLAGS"
16049 fi
16050
16051 found="no"
16052
16053 if test $found = "no" ; then
16054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16056 fi
16057
16058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16060 fi
16061
16062 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16063
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16065 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16066 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16067 if eval \${$cacheid+:} false; then :
16068 $as_echo_n "(cached) " >&6
16069 else
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 int i;
16073 int
16074 main ()
16075 {
16076
16077 ;
16078 return 0;
16079 }
16080 _ACEOF
16081 if ac_fn_c_try_link "$LINENO"; then :
16082 eval $cacheid=yes
16083 else
16084 eval $cacheid=no
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16088 fi
16089
16090
16091 CFLAGS="$xorg_testset_save_CFLAGS"
16092
16093 eval supported=\$$cacheid
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16095 $as_echo "$supported" >&6; }
16096 if test "$supported" = "yes" ; then
16097 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16098 found="yes"
16099 fi
16100 fi
16101
16102 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16103 else
16104 { $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
16105 $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;}
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119 xorg_testset_save_CFLAGS="$CFLAGS"
16120
16121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16124 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16125 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16126 $as_echo_n "(cached) " >&6
16127 else
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h. */
16130 int i;
16131 _ACEOF
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133 xorg_cv_cc_flag_unknown_warning_option=yes
16134 else
16135 xorg_cv_cc_flag_unknown_warning_option=no
16136 fi
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16138 fi
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16140 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16142 CFLAGS="$xorg_testset_save_CFLAGS"
16143 fi
16144
16145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148 fi
16149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16151 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16152 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 int i;
16158 _ACEOF
16159 if ac_fn_c_try_compile "$LINENO"; then :
16160 xorg_cv_cc_flag_unused_command_line_argument=yes
16161 else
16162 xorg_cv_cc_flag_unused_command_line_argument=no
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165 fi
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16167 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16169 CFLAGS="$xorg_testset_save_CFLAGS"
16170 fi
16171
16172 found="no"
16173
16174 if test $found = "no" ; then
16175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16177 fi
16178
16179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16181 fi
16182
16183 CFLAGS="$CFLAGS -Wimplicit"
16184
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16186 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16187 cacheid=xorg_cv_cc_flag__Wimplicit
16188 if eval \${$cacheid+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16193 int i;
16194 int
16195 main ()
16196 {
16197
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 if ac_fn_c_try_link "$LINENO"; then :
16203 eval $cacheid=yes
16204 else
16205 eval $cacheid=no
16206 fi
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 fi
16210
16211
16212 CFLAGS="$xorg_testset_save_CFLAGS"
16213
16214 eval supported=\$$cacheid
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16216 $as_echo "$supported" >&6; }
16217 if test "$supported" = "yes" ; then
16218 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16219 found="yes"
16220 fi
16221 fi
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237 xorg_testset_save_CFLAGS="$CFLAGS"
16238
16239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16242 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16243 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248 int i;
16249 _ACEOF
16250 if ac_fn_c_try_compile "$LINENO"; then :
16251 xorg_cv_cc_flag_unknown_warning_option=yes
16252 else
16253 xorg_cv_cc_flag_unknown_warning_option=no
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 fi
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16258 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16260 CFLAGS="$xorg_testset_save_CFLAGS"
16261 fi
16262
16263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266 fi
16267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16269 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16270 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16271 $as_echo_n "(cached) " >&6
16272 else
16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h. */
16275 int i;
16276 _ACEOF
16277 if ac_fn_c_try_compile "$LINENO"; then :
16278 xorg_cv_cc_flag_unused_command_line_argument=yes
16279 else
16280 xorg_cv_cc_flag_unused_command_line_argument=no
16281 fi
16282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283 fi
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16285 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16287 CFLAGS="$xorg_testset_save_CFLAGS"
16288 fi
16289
16290 found="no"
16291
16292 if test $found = "no" ; then
16293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16295 fi
16296
16297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16299 fi
16300
16301 CFLAGS="$CFLAGS -Wnonnull"
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16304 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16305 cacheid=xorg_cv_cc_flag__Wnonnull
16306 if eval \${$cacheid+:} false; then :
16307 $as_echo_n "(cached) " >&6
16308 else
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 int i;
16312 int
16313 main ()
16314 {
16315
16316 ;
16317 return 0;
16318 }
16319 _ACEOF
16320 if ac_fn_c_try_link "$LINENO"; then :
16321 eval $cacheid=yes
16322 else
16323 eval $cacheid=no
16324 fi
16325 rm -f core conftest.err conftest.$ac_objext \
16326 conftest$ac_exeext conftest.$ac_ext
16327 fi
16328
16329
16330 CFLAGS="$xorg_testset_save_CFLAGS"
16331
16332 eval supported=\$$cacheid
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16334 $as_echo "$supported" >&6; }
16335 if test "$supported" = "yes" ; then
16336 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16337 found="yes"
16338 fi
16339 fi
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355 xorg_testset_save_CFLAGS="$CFLAGS"
16356
16357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16360 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16361 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16362 $as_echo_n "(cached) " >&6
16363 else
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 int i;
16367 _ACEOF
16368 if ac_fn_c_try_compile "$LINENO"; then :
16369 xorg_cv_cc_flag_unknown_warning_option=yes
16370 else
16371 xorg_cv_cc_flag_unknown_warning_option=no
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 fi
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16376 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16378 CFLAGS="$xorg_testset_save_CFLAGS"
16379 fi
16380
16381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384 fi
16385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16387 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16388 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 int i;
16394 _ACEOF
16395 if ac_fn_c_try_compile "$LINENO"; then :
16396 xorg_cv_cc_flag_unused_command_line_argument=yes
16397 else
16398 xorg_cv_cc_flag_unused_command_line_argument=no
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 fi
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16403 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16405 CFLAGS="$xorg_testset_save_CFLAGS"
16406 fi
16407
16408 found="no"
16409
16410 if test $found = "no" ; then
16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16413 fi
16414
16415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16417 fi
16418
16419 CFLAGS="$CFLAGS -Winit-self"
16420
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16422 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16423 cacheid=xorg_cv_cc_flag__Winit_self
16424 if eval \${$cacheid+:} false; then :
16425 $as_echo_n "(cached) " >&6
16426 else
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 int i;
16430 int
16431 main ()
16432 {
16433
16434 ;
16435 return 0;
16436 }
16437 _ACEOF
16438 if ac_fn_c_try_link "$LINENO"; then :
16439 eval $cacheid=yes
16440 else
16441 eval $cacheid=no
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16445 fi
16446
16447
16448 CFLAGS="$xorg_testset_save_CFLAGS"
16449
16450 eval supported=\$$cacheid
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16452 $as_echo "$supported" >&6; }
16453 if test "$supported" = "yes" ; then
16454 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16455 found="yes"
16456 fi
16457 fi
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473 xorg_testset_save_CFLAGS="$CFLAGS"
16474
16475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16478 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16479 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16480 $as_echo_n "(cached) " >&6
16481 else
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 int i;
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487 xorg_cv_cc_flag_unknown_warning_option=yes
16488 else
16489 xorg_cv_cc_flag_unknown_warning_option=no
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 fi
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16494 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16496 CFLAGS="$xorg_testset_save_CFLAGS"
16497 fi
16498
16499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502 fi
16503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16505 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16506 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 int i;
16512 _ACEOF
16513 if ac_fn_c_try_compile "$LINENO"; then :
16514 xorg_cv_cc_flag_unused_command_line_argument=yes
16515 else
16516 xorg_cv_cc_flag_unused_command_line_argument=no
16517 fi
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519 fi
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16521 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16523 CFLAGS="$xorg_testset_save_CFLAGS"
16524 fi
16525
16526 found="no"
16527
16528 if test $found = "no" ; then
16529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16531 fi
16532
16533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16535 fi
16536
16537 CFLAGS="$CFLAGS -Wmain"
16538
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16540 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16541 cacheid=xorg_cv_cc_flag__Wmain
16542 if eval \${$cacheid+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 int i;
16548 int
16549 main ()
16550 {
16551
16552 ;
16553 return 0;
16554 }
16555 _ACEOF
16556 if ac_fn_c_try_link "$LINENO"; then :
16557 eval $cacheid=yes
16558 else
16559 eval $cacheid=no
16560 fi
16561 rm -f core conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 fi
16564
16565
16566 CFLAGS="$xorg_testset_save_CFLAGS"
16567
16568 eval supported=\$$cacheid
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16570 $as_echo "$supported" >&6; }
16571 if test "$supported" = "yes" ; then
16572 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16573 found="yes"
16574 fi
16575 fi
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591 xorg_testset_save_CFLAGS="$CFLAGS"
16592
16593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16596 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16597 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 int i;
16603 _ACEOF
16604 if ac_fn_c_try_compile "$LINENO"; then :
16605 xorg_cv_cc_flag_unknown_warning_option=yes
16606 else
16607 xorg_cv_cc_flag_unknown_warning_option=no
16608 fi
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 fi
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16612 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16614 CFLAGS="$xorg_testset_save_CFLAGS"
16615 fi
16616
16617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620 fi
16621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16623 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16624 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h. */
16629 int i;
16630 _ACEOF
16631 if ac_fn_c_try_compile "$LINENO"; then :
16632 xorg_cv_cc_flag_unused_command_line_argument=yes
16633 else
16634 xorg_cv_cc_flag_unused_command_line_argument=no
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637 fi
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16639 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16641 CFLAGS="$xorg_testset_save_CFLAGS"
16642 fi
16643
16644 found="no"
16645
16646 if test $found = "no" ; then
16647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16649 fi
16650
16651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16653 fi
16654
16655 CFLAGS="$CFLAGS -Wmissing-braces"
16656
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16658 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16659 cacheid=xorg_cv_cc_flag__Wmissing_braces
16660 if eval \${$cacheid+:} false; then :
16661 $as_echo_n "(cached) " >&6
16662 else
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 int i;
16666 int
16667 main ()
16668 {
16669
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_link "$LINENO"; then :
16675 eval $cacheid=yes
16676 else
16677 eval $cacheid=no
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16681 fi
16682
16683
16684 CFLAGS="$xorg_testset_save_CFLAGS"
16685
16686 eval supported=\$$cacheid
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16688 $as_echo "$supported" >&6; }
16689 if test "$supported" = "yes" ; then
16690 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16691 found="yes"
16692 fi
16693 fi
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709 xorg_testset_save_CFLAGS="$CFLAGS"
16710
16711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16714 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16715 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16716 $as_echo_n "(cached) " >&6
16717 else
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h. */
16720 int i;
16721 _ACEOF
16722 if ac_fn_c_try_compile "$LINENO"; then :
16723 xorg_cv_cc_flag_unknown_warning_option=yes
16724 else
16725 xorg_cv_cc_flag_unknown_warning_option=no
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 fi
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16730 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16732 CFLAGS="$xorg_testset_save_CFLAGS"
16733 fi
16734
16735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738 fi
16739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16741 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16742 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16743 $as_echo_n "(cached) " >&6
16744 else
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 int i;
16748 _ACEOF
16749 if ac_fn_c_try_compile "$LINENO"; then :
16750 xorg_cv_cc_flag_unused_command_line_argument=yes
16751 else
16752 xorg_cv_cc_flag_unused_command_line_argument=no
16753 fi
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 fi
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16757 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16759 CFLAGS="$xorg_testset_save_CFLAGS"
16760 fi
16761
16762 found="no"
16763
16764 if test $found = "no" ; then
16765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16767 fi
16768
16769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16771 fi
16772
16773 CFLAGS="$CFLAGS -Wsequence-point"
16774
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16776 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16777 cacheid=xorg_cv_cc_flag__Wsequence_point
16778 if eval \${$cacheid+:} false; then :
16779 $as_echo_n "(cached) " >&6
16780 else
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16783 int i;
16784 int
16785 main ()
16786 {
16787
16788 ;
16789 return 0;
16790 }
16791 _ACEOF
16792 if ac_fn_c_try_link "$LINENO"; then :
16793 eval $cacheid=yes
16794 else
16795 eval $cacheid=no
16796 fi
16797 rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
16799 fi
16800
16801
16802 CFLAGS="$xorg_testset_save_CFLAGS"
16803
16804 eval supported=\$$cacheid
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16806 $as_echo "$supported" >&6; }
16807 if test "$supported" = "yes" ; then
16808 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16809 found="yes"
16810 fi
16811 fi
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827 xorg_testset_save_CFLAGS="$CFLAGS"
16828
16829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 int i;
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841 xorg_cv_cc_flag_unknown_warning_option=yes
16842 else
16843 xorg_cv_cc_flag_unknown_warning_option=no
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16850 CFLAGS="$xorg_testset_save_CFLAGS"
16851 fi
16852
16853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856 fi
16857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16861 $as_echo_n "(cached) " >&6
16862 else
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865 int i;
16866 _ACEOF
16867 if ac_fn_c_try_compile "$LINENO"; then :
16868 xorg_cv_cc_flag_unused_command_line_argument=yes
16869 else
16870 xorg_cv_cc_flag_unused_command_line_argument=no
16871 fi
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 fi
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16877 CFLAGS="$xorg_testset_save_CFLAGS"
16878 fi
16879
16880 found="no"
16881
16882 if test $found = "no" ; then
16883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16885 fi
16886
16887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16889 fi
16890
16891 CFLAGS="$CFLAGS -Wreturn-type"
16892
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16894 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16895 cacheid=xorg_cv_cc_flag__Wreturn_type
16896 if eval \${$cacheid+:} false; then :
16897 $as_echo_n "(cached) " >&6
16898 else
16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 int i;
16902 int
16903 main ()
16904 {
16905
16906 ;
16907 return 0;
16908 }
16909 _ACEOF
16910 if ac_fn_c_try_link "$LINENO"; then :
16911 eval $cacheid=yes
16912 else
16913 eval $cacheid=no
16914 fi
16915 rm -f core conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16917 fi
16918
16919
16920 CFLAGS="$xorg_testset_save_CFLAGS"
16921
16922 eval supported=\$$cacheid
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16924 $as_echo "$supported" >&6; }
16925 if test "$supported" = "yes" ; then
16926 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16927 found="yes"
16928 fi
16929 fi
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945 xorg_testset_save_CFLAGS="$CFLAGS"
16946
16947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16950 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16951 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16952 $as_echo_n "(cached) " >&6
16953 else
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956 int i;
16957 _ACEOF
16958 if ac_fn_c_try_compile "$LINENO"; then :
16959 xorg_cv_cc_flag_unknown_warning_option=yes
16960 else
16961 xorg_cv_cc_flag_unknown_warning_option=no
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 fi
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16966 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16968 CFLAGS="$xorg_testset_save_CFLAGS"
16969 fi
16970
16971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16974 fi
16975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16977 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16978 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16983 int i;
16984 _ACEOF
16985 if ac_fn_c_try_compile "$LINENO"; then :
16986 xorg_cv_cc_flag_unused_command_line_argument=yes
16987 else
16988 xorg_cv_cc_flag_unused_command_line_argument=no
16989 fi
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 fi
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16993 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16995 CFLAGS="$xorg_testset_save_CFLAGS"
16996 fi
16997
16998 found="no"
16999
17000 if test $found = "no" ; then
17001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17003 fi
17004
17005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17007 fi
17008
17009 CFLAGS="$CFLAGS -Wtrigraphs"
17010
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17012 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17013 cacheid=xorg_cv_cc_flag__Wtrigraphs
17014 if eval \${$cacheid+:} false; then :
17015 $as_echo_n "(cached) " >&6
17016 else
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 int i;
17020 int
17021 main ()
17022 {
17023
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 eval $cacheid=yes
17030 else
17031 eval $cacheid=no
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17035 fi
17036
17037
17038 CFLAGS="$xorg_testset_save_CFLAGS"
17039
17040 eval supported=\$$cacheid
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17042 $as_echo "$supported" >&6; }
17043 if test "$supported" = "yes" ; then
17044 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17045 found="yes"
17046 fi
17047 fi
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063 xorg_testset_save_CFLAGS="$CFLAGS"
17064
17065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17068 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17069 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17070 $as_echo_n "(cached) " >&6
17071 else
17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 int i;
17075 _ACEOF
17076 if ac_fn_c_try_compile "$LINENO"; then :
17077 xorg_cv_cc_flag_unknown_warning_option=yes
17078 else
17079 xorg_cv_cc_flag_unknown_warning_option=no
17080 fi
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 fi
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17084 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17086 CFLAGS="$xorg_testset_save_CFLAGS"
17087 fi
17088
17089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092 fi
17093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17095 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17096 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 int i;
17102 _ACEOF
17103 if ac_fn_c_try_compile "$LINENO"; then :
17104 xorg_cv_cc_flag_unused_command_line_argument=yes
17105 else
17106 xorg_cv_cc_flag_unused_command_line_argument=no
17107 fi
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 fi
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17111 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17113 CFLAGS="$xorg_testset_save_CFLAGS"
17114 fi
17115
17116 found="no"
17117
17118 if test $found = "no" ; then
17119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121 fi
17122
17123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17125 fi
17126
17127 CFLAGS="$CFLAGS -Warray-bounds"
17128
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17130 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17131 cacheid=xorg_cv_cc_flag__Warray_bounds
17132 if eval \${$cacheid+:} false; then :
17133 $as_echo_n "(cached) " >&6
17134 else
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17137 int i;
17138 int
17139 main ()
17140 {
17141
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 if ac_fn_c_try_link "$LINENO"; then :
17147 eval $cacheid=yes
17148 else
17149 eval $cacheid=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 fi
17154
17155
17156 CFLAGS="$xorg_testset_save_CFLAGS"
17157
17158 eval supported=\$$cacheid
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17160 $as_echo "$supported" >&6; }
17161 if test "$supported" = "yes" ; then
17162 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17163 found="yes"
17164 fi
17165 fi
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181 xorg_testset_save_CFLAGS="$CFLAGS"
17182
17183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17188 $as_echo_n "(cached) " >&6
17189 else
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192 int i;
17193 _ACEOF
17194 if ac_fn_c_try_compile "$LINENO"; then :
17195 xorg_cv_cc_flag_unknown_warning_option=yes
17196 else
17197 xorg_cv_cc_flag_unknown_warning_option=no
17198 fi
17199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 fi
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17204 CFLAGS="$xorg_testset_save_CFLAGS"
17205 fi
17206
17207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210 fi
17211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17219 int i;
17220 _ACEOF
17221 if ac_fn_c_try_compile "$LINENO"; then :
17222 xorg_cv_cc_flag_unused_command_line_argument=yes
17223 else
17224 xorg_cv_cc_flag_unused_command_line_argument=no
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17227 fi
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17231 CFLAGS="$xorg_testset_save_CFLAGS"
17232 fi
17233
17234 found="no"
17235
17236 if test $found = "no" ; then
17237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239 fi
17240
17241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17243 fi
17244
17245 CFLAGS="$CFLAGS -Wwrite-strings"
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17248 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17249 cacheid=xorg_cv_cc_flag__Wwrite_strings
17250 if eval \${$cacheid+:} false; then :
17251 $as_echo_n "(cached) " >&6
17252 else
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17255 int i;
17256 int
17257 main ()
17258 {
17259
17260 ;
17261 return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_c_try_link "$LINENO"; then :
17265 eval $cacheid=yes
17266 else
17267 eval $cacheid=no
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 fi
17272
17273
17274 CFLAGS="$xorg_testset_save_CFLAGS"
17275
17276 eval supported=\$$cacheid
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17278 $as_echo "$supported" >&6; }
17279 if test "$supported" = "yes" ; then
17280 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17281 found="yes"
17282 fi
17283 fi
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299 xorg_testset_save_CFLAGS="$CFLAGS"
17300
17301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17306 $as_echo_n "(cached) " >&6
17307 else
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 int i;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"; then :
17313 xorg_cv_cc_flag_unknown_warning_option=yes
17314 else
17315 xorg_cv_cc_flag_unknown_warning_option=no
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17322 CFLAGS="$xorg_testset_save_CFLAGS"
17323 fi
17324
17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17328 fi
17329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17333 $as_echo_n "(cached) " >&6
17334 else
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337 int i;
17338 _ACEOF
17339 if ac_fn_c_try_compile "$LINENO"; then :
17340 xorg_cv_cc_flag_unused_command_line_argument=yes
17341 else
17342 xorg_cv_cc_flag_unused_command_line_argument=no
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 fi
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17349 CFLAGS="$xorg_testset_save_CFLAGS"
17350 fi
17351
17352 found="no"
17353
17354 if test $found = "no" ; then
17355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17357 fi
17358
17359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17361 fi
17362
17363 CFLAGS="$CFLAGS -Waddress"
17364
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17366 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17367 cacheid=xorg_cv_cc_flag__Waddress
17368 if eval \${$cacheid+:} false; then :
17369 $as_echo_n "(cached) " >&6
17370 else
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17373 int i;
17374 int
17375 main ()
17376 {
17377
17378 ;
17379 return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_link "$LINENO"; then :
17383 eval $cacheid=yes
17384 else
17385 eval $cacheid=no
17386 fi
17387 rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17389 fi
17390
17391
17392 CFLAGS="$xorg_testset_save_CFLAGS"
17393
17394 eval supported=\$$cacheid
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17396 $as_echo "$supported" >&6; }
17397 if test "$supported" = "yes" ; then
17398 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17399 found="yes"
17400 fi
17401 fi
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417 xorg_testset_save_CFLAGS="$CFLAGS"
17418
17419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17424 $as_echo_n "(cached) " >&6
17425 else
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17428 int i;
17429 _ACEOF
17430 if ac_fn_c_try_compile "$LINENO"; then :
17431 xorg_cv_cc_flag_unknown_warning_option=yes
17432 else
17433 xorg_cv_cc_flag_unknown_warning_option=no
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17440 CFLAGS="$xorg_testset_save_CFLAGS"
17441 fi
17442
17443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17446 fi
17447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17451 $as_echo_n "(cached) " >&6
17452 else
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h. */
17455 int i;
17456 _ACEOF
17457 if ac_fn_c_try_compile "$LINENO"; then :
17458 xorg_cv_cc_flag_unused_command_line_argument=yes
17459 else
17460 xorg_cv_cc_flag_unused_command_line_argument=no
17461 fi
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463 fi
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17467 CFLAGS="$xorg_testset_save_CFLAGS"
17468 fi
17469
17470 found="no"
17471
17472 if test $found = "no" ; then
17473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17475 fi
17476
17477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17479 fi
17480
17481 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17482
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17484 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17485 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17486 if eval \${$cacheid+:} false; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h. */
17491 int i;
17492 int
17493 main ()
17494 {
17495
17496 ;
17497 return 0;
17498 }
17499 _ACEOF
17500 if ac_fn_c_try_link "$LINENO"; then :
17501 eval $cacheid=yes
17502 else
17503 eval $cacheid=no
17504 fi
17505 rm -f core conftest.err conftest.$ac_objext \
17506 conftest$ac_exeext conftest.$ac_ext
17507 fi
17508
17509
17510 CFLAGS="$xorg_testset_save_CFLAGS"
17511
17512 eval supported=\$$cacheid
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17514 $as_echo "$supported" >&6; }
17515 if test "$supported" = "yes" ; then
17516 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17517 found="yes"
17518 fi
17519 fi
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535 xorg_testset_save_CFLAGS="$CFLAGS"
17536
17537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17540 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17541 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17542 $as_echo_n "(cached) " >&6
17543 else
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 int i;
17547 _ACEOF
17548 if ac_fn_c_try_compile "$LINENO"; then :
17549 xorg_cv_cc_flag_unknown_warning_option=yes
17550 else
17551 xorg_cv_cc_flag_unknown_warning_option=no
17552 fi
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 fi
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17556 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17558 CFLAGS="$xorg_testset_save_CFLAGS"
17559 fi
17560
17561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17564 fi
17565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17567 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17568 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17569 $as_echo_n "(cached) " >&6
17570 else
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h. */
17573 int i;
17574 _ACEOF
17575 if ac_fn_c_try_compile "$LINENO"; then :
17576 xorg_cv_cc_flag_unused_command_line_argument=yes
17577 else
17578 xorg_cv_cc_flag_unused_command_line_argument=no
17579 fi
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 fi
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17583 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17585 CFLAGS="$xorg_testset_save_CFLAGS"
17586 fi
17587
17588 found="no"
17589
17590 if test $found = "no" ; then
17591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17593 fi
17594
17595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17597 fi
17598
17599 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17600
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17602 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17603 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17604 if eval \${$cacheid+:} false; then :
17605 $as_echo_n "(cached) " >&6
17606 else
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17609 int i;
17610 int
17611 main ()
17612 {
17613
17614 ;
17615 return 0;
17616 }
17617 _ACEOF
17618 if ac_fn_c_try_link "$LINENO"; then :
17619 eval $cacheid=yes
17620 else
17621 eval $cacheid=no
17622 fi
17623 rm -f core conftest.err conftest.$ac_objext \
17624 conftest$ac_exeext conftest.$ac_ext
17625 fi
17626
17627
17628 CFLAGS="$xorg_testset_save_CFLAGS"
17629
17630 eval supported=\$$cacheid
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17632 $as_echo "$supported" >&6; }
17633 if test "$supported" = "yes" ; then
17634 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17635 found="yes"
17636 fi
17637 fi
17638
17639
17640 fi
17641
17642
17643
17644
17645
17646
17647
17648 CWARNFLAGS="$BASE_CFLAGS"
17649 if test "x$GCC" = xyes ; then
17650 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17651 fi
17652
17653
17654
17655
17656
17657
17658
17659
17660 # Check whether --enable-strict-compilation was given.
17661 if test "${enable_strict_compilation+set}" = set; then :
17662 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17663 else
17664 STRICT_COMPILE=no
17665 fi
17666
17667
17668
17669
17670
17671
17672 STRICT_CFLAGS=""
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686 xorg_testset_save_CFLAGS="$CFLAGS"
17687
17688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17697 int i;
17698 _ACEOF
17699 if ac_fn_c_try_compile "$LINENO"; then :
17700 xorg_cv_cc_flag_unknown_warning_option=yes
17701 else
17702 xorg_cv_cc_flag_unknown_warning_option=no
17703 fi
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705 fi
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17709 CFLAGS="$xorg_testset_save_CFLAGS"
17710 fi
17711
17712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17715 fi
17716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17724 int i;
17725 _ACEOF
17726 if ac_fn_c_try_compile "$LINENO"; then :
17727 xorg_cv_cc_flag_unused_command_line_argument=yes
17728 else
17729 xorg_cv_cc_flag_unused_command_line_argument=no
17730 fi
17731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 fi
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17736 CFLAGS="$xorg_testset_save_CFLAGS"
17737 fi
17738
17739 found="no"
17740
17741 if test $found = "no" ; then
17742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17744 fi
17745
17746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17748 fi
17749
17750 CFLAGS="$CFLAGS -pedantic"
17751
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17753 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17754 cacheid=xorg_cv_cc_flag__pedantic
17755 if eval \${$cacheid+:} false; then :
17756 $as_echo_n "(cached) " >&6
17757 else
17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17760 int i;
17761 int
17762 main ()
17763 {
17764
17765 ;
17766 return 0;
17767 }
17768 _ACEOF
17769 if ac_fn_c_try_link "$LINENO"; then :
17770 eval $cacheid=yes
17771 else
17772 eval $cacheid=no
17773 fi
17774 rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17776 fi
17777
17778
17779 CFLAGS="$xorg_testset_save_CFLAGS"
17780
17781 eval supported=\$$cacheid
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17783 $as_echo "$supported" >&6; }
17784 if test "$supported" = "yes" ; then
17785 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17786 found="yes"
17787 fi
17788 fi
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804 xorg_testset_save_CFLAGS="$CFLAGS"
17805
17806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17815 int i;
17816 _ACEOF
17817 if ac_fn_c_try_compile "$LINENO"; then :
17818 xorg_cv_cc_flag_unknown_warning_option=yes
17819 else
17820 xorg_cv_cc_flag_unknown_warning_option=no
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823 fi
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17827 CFLAGS="$xorg_testset_save_CFLAGS"
17828 fi
17829
17830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17833 fi
17834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17838 $as_echo_n "(cached) " >&6
17839 else
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842 int i;
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"; then :
17845 xorg_cv_cc_flag_unused_command_line_argument=yes
17846 else
17847 xorg_cv_cc_flag_unused_command_line_argument=no
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 fi
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17854 CFLAGS="$xorg_testset_save_CFLAGS"
17855 fi
17856
17857 found="no"
17858
17859 if test $found = "no" ; then
17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862 fi
17863
17864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17866 fi
17867
17868 CFLAGS="$CFLAGS -Werror"
17869
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17871 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17872 cacheid=xorg_cv_cc_flag__Werror
17873 if eval \${$cacheid+:} false; then :
17874 $as_echo_n "(cached) " >&6
17875 else
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878 int i;
17879 int
17880 main ()
17881 {
17882
17883 ;
17884 return 0;
17885 }
17886 _ACEOF
17887 if ac_fn_c_try_link "$LINENO"; then :
17888 eval $cacheid=yes
17889 else
17890 eval $cacheid=no
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 fi
17895
17896
17897 CFLAGS="$xorg_testset_save_CFLAGS"
17898
17899 eval supported=\$$cacheid
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17901 $as_echo "$supported" >&6; }
17902 if test "$supported" = "yes" ; then
17903 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17904 found="yes"
17905 fi
17906 fi
17907
17908 if test $found = "no" ; then
17909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17911 fi
17912
17913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17915 fi
17916
17917 CFLAGS="$CFLAGS -errwarn"
17918
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17920 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17921 cacheid=xorg_cv_cc_flag__errwarn
17922 if eval \${$cacheid+:} false; then :
17923 $as_echo_n "(cached) " >&6
17924 else
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17927 int i;
17928 int
17929 main ()
17930 {
17931
17932 ;
17933 return 0;
17934 }
17935 _ACEOF
17936 if ac_fn_c_try_link "$LINENO"; then :
17937 eval $cacheid=yes
17938 else
17939 eval $cacheid=no
17940 fi
17941 rm -f core conftest.err conftest.$ac_objext \
17942 conftest$ac_exeext conftest.$ac_ext
17943 fi
17944
17945
17946 CFLAGS="$xorg_testset_save_CFLAGS"
17947
17948 eval supported=\$$cacheid
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17950 $as_echo "$supported" >&6; }
17951 if test "$supported" = "yes" ; then
17952 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17953 found="yes"
17954 fi
17955 fi
17956
17957
17958
17959 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17960 # activate it with -Werror, so we add it here explicitly.
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974 xorg_testset_save_CFLAGS="$CFLAGS"
17975
17976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985 int i;
17986 _ACEOF
17987 if ac_fn_c_try_compile "$LINENO"; then :
17988 xorg_cv_cc_flag_unknown_warning_option=yes
17989 else
17990 xorg_cv_cc_flag_unknown_warning_option=no
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993 fi
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17997 CFLAGS="$xorg_testset_save_CFLAGS"
17998 fi
17999
18000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18003 fi
18004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18008 $as_echo_n "(cached) " >&6
18009 else
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18012 int i;
18013 _ACEOF
18014 if ac_fn_c_try_compile "$LINENO"; then :
18015 xorg_cv_cc_flag_unused_command_line_argument=yes
18016 else
18017 xorg_cv_cc_flag_unused_command_line_argument=no
18018 fi
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 fi
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18024 CFLAGS="$xorg_testset_save_CFLAGS"
18025 fi
18026
18027 found="no"
18028
18029 if test $found = "no" ; then
18030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18032 fi
18033
18034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18036 fi
18037
18038 CFLAGS="$CFLAGS -Werror=attributes"
18039
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18041 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18042 cacheid=xorg_cv_cc_flag__Werror_attributes
18043 if eval \${$cacheid+:} false; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048 int i;
18049 int
18050 main ()
18051 {
18052
18053 ;
18054 return 0;
18055 }
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"; then :
18058 eval $cacheid=yes
18059 else
18060 eval $cacheid=no
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18064 fi
18065
18066
18067 CFLAGS="$xorg_testset_save_CFLAGS"
18068
18069 eval supported=\$$cacheid
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18071 $as_echo "$supported" >&6; }
18072 if test "$supported" = "yes" ; then
18073 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18074 found="yes"
18075 fi
18076 fi
18077
18078
18079
18080 if test "x$STRICT_COMPILE" = "xyes"; then
18081 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18082 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18083 fi
18084
18085
18086
18087
18088
18089
18090 cat >>confdefs.h <<_ACEOF
18091 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18092 _ACEOF
18093
18094 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18095 if test "x$PVM" = "x"; then
18096 PVM="0"
18097 fi
18098
18099 cat >>confdefs.h <<_ACEOF
18100 #define PACKAGE_VERSION_MINOR $PVM
18101 _ACEOF
18102
18103 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18104 if test "x$PVP" = "x"; then
18105 PVP="0"
18106 fi
18107
18108 cat >>confdefs.h <<_ACEOF
18109 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18110 _ACEOF
18111
18112
18113
18114 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18115 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18116 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18117 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18118
18119
18120
18121
18122 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18123 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18124 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18125 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18126 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18127
18128
18129
18130
18131
18132
18133 if test x$APP_MAN_SUFFIX = x ; then
18134 APP_MAN_SUFFIX=1
18135 fi
18136 if test x$APP_MAN_DIR = x ; then
18137 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18138 fi
18139
18140 if test x$LIB_MAN_SUFFIX = x ; then
18141 LIB_MAN_SUFFIX=3
18142 fi
18143 if test x$LIB_MAN_DIR = x ; then
18144 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18145 fi
18146
18147 if test x$FILE_MAN_SUFFIX = x ; then
18148 case $host_os in
18149 # Solaris 2.0 - 11 use SysV man page sections
18150 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18151 *) FILE_MAN_SUFFIX=5 ;;
18152 esac
18153 fi
18154 if test x$FILE_MAN_DIR = x ; then
18155 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18156 fi
18157
18158 if test x$MISC_MAN_SUFFIX = x ; then
18159 case $host_os in
18160 # Solaris 2.0 - 11 use SysV man page sections
18161 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18162 *) MISC_MAN_SUFFIX=7 ;;
18163 esac
18164 fi
18165 if test x$MISC_MAN_DIR = x ; then
18166 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18167 fi
18168
18169 if test x$DRIVER_MAN_SUFFIX = x ; then
18170 case $host_os in
18171 # Solaris 2.0 - 11 use SysV man page sections
18172 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18173 *) DRIVER_MAN_SUFFIX=4 ;;
18174 esac
18175 fi
18176 if test x$DRIVER_MAN_DIR = x ; then
18177 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18178 fi
18179
18180 if test x$ADMIN_MAN_SUFFIX = x ; then
18181 case $host_os in
18182 # Solaris 2.0 - 11 use SysV man page sections
18183 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18184 *) ADMIN_MAN_SUFFIX=8 ;;
18185 esac
18186 fi
18187 if test x$ADMIN_MAN_DIR = x ; then
18188 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18189 fi
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205 XORG_MAN_PAGE="X Version 11"
18206
18207 MAN_SUBSTS="\
18208 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18209 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18210 -e 's|__xservername__|Xorg|g' \
18211 -e 's|__xconfigfile__|xorg.conf|g' \
18212 -e 's|__projectroot__|\$(prefix)|g' \
18213 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18214 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18215 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18216 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18217 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18218 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18219 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18220
18221
18222
18223 # Check whether --enable-silent-rules was given.
18224 if test "${enable_silent_rules+set}" = set; then :
18225 enableval=$enable_silent_rules;
18226 fi
18227
18228 case $enable_silent_rules in # (((
18229 yes) AM_DEFAULT_VERBOSITY=0;;
18230 no) AM_DEFAULT_VERBOSITY=1;;
18231 *) AM_DEFAULT_VERBOSITY=0;;
18232 esac
18233 am_make=${MAKE-make}
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18235 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18236 if ${am_cv_make_support_nested_variables+:} false; then :
18237 $as_echo_n "(cached) " >&6
18238 else
18239 if $as_echo 'TRUE=$(BAR$(V))
18240 BAR0=false
18241 BAR1=true
18242 V=1
18243 am__doit:
18244 @$(TRUE)
18245 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18246 am_cv_make_support_nested_variables=yes
18247 else
18248 am_cv_make_support_nested_variables=no
18249 fi
18250 fi
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18252 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18253 if test $am_cv_make_support_nested_variables = yes; then
18254 AM_V='$(V)'
18255 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18256 else
18257 AM_V=$AM_DEFAULT_VERBOSITY
18258 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18259 fi
18260 AM_BACKSLASH='\'
18261
18262
18263
18264 # Check whether --enable-malloc0returnsnull was given.
18265 if test "${enable_malloc0returnsnull+set}" = set; then :
18266 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18267 else
18268 MALLOC_ZERO_RETURNS_NULL=auto
18269 fi
18270
18271
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18273 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18274 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18275 if ${xorg_cv_malloc0_returns_null+:} false; then :
18276 $as_echo_n "(cached) " >&6
18277 else
18278 if test "$cross_compiling" = yes; then :
18279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18281 as_fn_error $? "cannot run test program while cross compiling
18282 See \`config.log' for more details" "$LINENO" 5; }
18283 else
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18286
18287 #include <stdlib.h>
18288
18289 int
18290 main ()
18291 {
18292
18293 char *m0, *r0, *c0, *p;
18294 m0 = malloc(0);
18295 p = malloc(10);
18296 r0 = realloc(p,0);
18297 c0 = calloc(0,10);
18298 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18299
18300 ;
18301 return 0;
18302 }
18303 _ACEOF
18304 if ac_fn_c_try_run "$LINENO"; then :
18305 xorg_cv_malloc0_returns_null=yes
18306 else
18307 xorg_cv_malloc0_returns_null=no
18308 fi
18309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18310 conftest.$ac_objext conftest.beam conftest.$ac_ext
18311 fi
18312
18313 fi
18314
18315 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18316 fi
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18318 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18319
18320 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18321 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18322 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18323 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18324 else
18325 MALLOC_ZERO_CFLAGS=""
18326 XMALLOC_ZERO_CFLAGS=""
18327 XTMALLOC_ZERO_CFLAGS=""
18328 fi
18329
18330
18331
18332
18333
18334
18335 # Obtain compiler/linker options for depedencies
18336
18337 pkg_failed=no
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86DGA" >&5
18339 $as_echo_n "checking for XXF86DGA... " >&6; }
18340
18341 if test -n "$XXF86DGA_CFLAGS"; then
18342 pkg_cv_XXF86DGA_CFLAGS="$XXF86DGA_CFLAGS"
18343 elif test -n "$PKG_CONFIG"; then
18344 if test -n "$PKG_CONFIG" && \
18345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2\""; } >&5
18346 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2") 2>&5
18347 ac_status=$?
18348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18349 test $ac_status = 0; }; then
18350 pkg_cv_XXF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2" 2>/dev/null`
18351 test "x$?" != "x0" && pkg_failed=yes
18352 else
18353 pkg_failed=yes
18354 fi
18355 else
18356 pkg_failed=untried
18357 fi
18358 if test -n "$XXF86DGA_LIBS"; then
18359 pkg_cv_XXF86DGA_LIBS="$XXF86DGA_LIBS"
18360 elif test -n "$PKG_CONFIG"; then
18361 if test -n "$PKG_CONFIG" && \
18362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2\""; } >&5
18363 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2") 2>&5
18364 ac_status=$?
18365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18366 test $ac_status = 0; }; then
18367 pkg_cv_XXF86DGA_LIBS=`$PKG_CONFIG --libs "xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2" 2>/dev/null`
18368 test "x$?" != "x0" && pkg_failed=yes
18369 else
18370 pkg_failed=yes
18371 fi
18372 else
18373 pkg_failed=untried
18374 fi
18375
18376
18377
18378 if test $pkg_failed = yes; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381
18382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18383 _pkg_short_errors_supported=yes
18384 else
18385 _pkg_short_errors_supported=no
18386 fi
18387 if test $_pkg_short_errors_supported = yes; then
18388 XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2" 2>&1`
18389 else
18390 XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2" 2>&1`
18391 fi
18392 # Put the nasty error message in config.log where it belongs
18393 echo "$XXF86DGA_PKG_ERRORS" >&5
18394
18395 as_fn_error $? "Package requirements (xproto x11 >= 1.6 xextproto xext xf86dgaproto >= 2.0.99.2) were not met:
18396
18397 $XXF86DGA_PKG_ERRORS
18398
18399 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18400 installed software in a non-standard prefix.
18401
18402 Alternatively, you may set the environment variables XXF86DGA_CFLAGS
18403 and XXF86DGA_LIBS to avoid the need to call pkg-config.
18404 See the pkg-config man page for more details." "$LINENO" 5
18405 elif test $pkg_failed = untried; then
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18407 $as_echo "no" >&6; }
18408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18410 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18411 is in your PATH or set the PKG_CONFIG environment variable to the full
18412 path to pkg-config.
18413
18414 Alternatively, you may set the environment variables XXF86DGA_CFLAGS
18415 and XXF86DGA_LIBS to avoid the need to call pkg-config.
18416 See the pkg-config man page for more details.
18417
18418 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18419 See \`config.log' for more details" "$LINENO" 5; }
18420 else
18421 XXF86DGA_CFLAGS=$pkg_cv_XXF86DGA_CFLAGS
18422 XXF86DGA_LIBS=$pkg_cv_XXF86DGA_LIBS
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18424 $as_echo "yes" >&6; }
18425
18426 fi
18427
18428 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86dga.pc"
18429
18430 cat >confcache <<\_ACEOF
18431 # This file is a shell script that caches the results of configure
18432 # tests run on this system so they can be shared between configure
18433 # scripts and configure runs, see configure's option --config-cache.
18434 # It is not useful on other systems. If it contains results you don't
18435 # want to keep, you may remove or edit it.
18436 #
18437 # config.status only pays attention to the cache file if you give it
18438 # the --recheck option to rerun configure.
18439 #
18440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18442 # following values.
18443
18444 _ACEOF
18445
18446 # The following way of writing the cache mishandles newlines in values,
18447 # but we know of no workaround that is simple, portable, and efficient.
18448 # So, we kill variables containing newlines.
18449 # Ultrix sh set writes to stderr and can't be redirected directly,
18450 # and sets the high bit in the cache file unless we assign to the vars.
18451 (
18452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18453 eval ac_val=\$$ac_var
18454 case $ac_val in #(
18455 *${as_nl}*)
18456 case $ac_var in #(
18457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18459 esac
18460 case $ac_var in #(
18461 _ | IFS | as_nl) ;; #(
18462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18463 *) { eval $ac_var=; unset $ac_var;} ;;
18464 esac ;;
18465 esac
18466 done
18467
18468 (set) 2>&1 |
18469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18470 *${as_nl}ac_space=\ *)
18471 # `set' does not quote correctly, so add quotes: double-quote
18472 # substitution turns \\\\ into \\, and sed turns \\ into \.
18473 sed -n \
18474 "s/'/'\\\\''/g;
18475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18476 ;; #(
18477 *)
18478 # `set' quotes correctly as required by POSIX, so do not add quotes.
18479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18480 ;;
18481 esac |
18482 sort
18483 ) |
18484 sed '
18485 /^ac_cv_env_/b end
18486 t clear
18487 :clear
18488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18489 t end
18490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18491 :end' >>confcache
18492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18493 if test -w "$cache_file"; then
18494 if test "x$cache_file" != "x/dev/null"; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18496 $as_echo "$as_me: updating cache $cache_file" >&6;}
18497 if test ! -f "$cache_file" || test -h "$cache_file"; then
18498 cat confcache >"$cache_file"
18499 else
18500 case $cache_file in #(
18501 */* | ?:*)
18502 mv -f confcache "$cache_file"$$ &&
18503 mv -f "$cache_file"$$ "$cache_file" ;; #(
18504 *)
18505 mv -f confcache "$cache_file" ;;
18506 esac
18507 fi
18508 fi
18509 else
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18512 fi
18513 fi
18514 rm -f confcache
18515
18516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18517 # Let make expand exec_prefix.
18518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18519
18520 DEFS=-DHAVE_CONFIG_H
18521
18522 ac_libobjs=
18523 ac_ltlibobjs=
18524 U=
18525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18526 # 1. Remove the extension, and $U if already installed.
18527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18528 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18530 # will be set to the directory where LIBOBJS objects are built.
18531 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18532 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18533 done
18534 LIBOBJS=$ac_libobjs
18535
18536 LTLIBOBJS=$ac_ltlibobjs
18537
18538
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18540 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18541 if test -n "$am_sleep_pid"; then
18542 # Hide warnings about reused PIDs.
18543 wait $am_sleep_pid 2>/dev/null
18544 fi
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18546 $as_echo "done" >&6; }
18547 if test -n "$EXEEXT"; then
18548 am__EXEEXT_TRUE=
18549 am__EXEEXT_FALSE='#'
18550 else
18551 am__EXEEXT_TRUE='#'
18552 am__EXEEXT_FALSE=
18553 fi
18554
18555 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18556 as_fn_error $? "conditional \"AMDEP\" was never defined.
18557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18558 fi
18559 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18560 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18562 fi
18563
18564 : "${CONFIG_STATUS=./config.status}"
18565 ac_write_fail=0
18566 ac_clean_files_save=$ac_clean_files
18567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18569 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18570 as_write_fail=0
18571 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18572 #! $SHELL
18573 # Generated by $as_me.
18574 # Run this file to recreate the current configuration.
18575 # Compiler output produced by configure, useful for debugging
18576 # configure, is in config.log if it exists.
18577
18578 debug=false
18579 ac_cs_recheck=false
18580 ac_cs_silent=false
18581
18582 SHELL=\${CONFIG_SHELL-$SHELL}
18583 export SHELL
18584 _ASEOF
18585 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18586 ## -------------------- ##
18587 ## M4sh Initialization. ##
18588 ## -------------------- ##
18589
18590 # Be more Bourne compatible
18591 DUALCASE=1; export DUALCASE # for MKS sh
18592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18593 emulate sh
18594 NULLCMD=:
18595 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18596 # is contrary to our usage. Disable this feature.
18597 alias -g '${1+"$@"}'='"$@"'
18598 setopt NO_GLOB_SUBST
18599 else
18600 case `(set -o) 2>/dev/null` in #(
18601 *posix*) :
18602 set -o posix ;; #(
18603 *) :
18604 ;;
18605 esac
18606 fi
18607
18608
18609 as_nl='
18610 '
18611 export as_nl
18612 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18613 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18614 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18616 # Prefer a ksh shell builtin over an external printf program on Solaris,
18617 # but without wasting forks for bash or zsh.
18618 if test -z "$BASH_VERSION$ZSH_VERSION" \
18619 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18620 as_echo='print -r --'
18621 as_echo_n='print -rn --'
18622 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18623 as_echo='printf %s\n'
18624 as_echo_n='printf %s'
18625 else
18626 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18627 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18628 as_echo_n='/usr/ucb/echo -n'
18629 else
18630 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18631 as_echo_n_body='eval
18632 arg=$1;
18633 case $arg in #(
18634 *"$as_nl"*)
18635 expr "X$arg" : "X\\(.*\\)$as_nl";
18636 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18637 esac;
18638 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18639 '
18640 export as_echo_n_body
18641 as_echo_n='sh -c $as_echo_n_body as_echo'
18642 fi
18643 export as_echo_body
18644 as_echo='sh -c $as_echo_body as_echo'
18645 fi
18646
18647 # The user is always right.
18648 if test "${PATH_SEPARATOR+set}" != set; then
18649 PATH_SEPARATOR=:
18650 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18651 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18652 PATH_SEPARATOR=';'
18653 }
18654 fi
18655
18656
18657 # IFS
18658 # We need space, tab and new line, in precisely that order. Quoting is
18659 # there to prevent editors from complaining about space-tab.
18660 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18661 # splitting by setting IFS to empty value.)
18662 IFS=" "" $as_nl"
18663
18664 # Find who we are. Look in the path if we contain no directory separator.
18665 as_myself=
18666 case $0 in #((
18667 *[\\/]* ) as_myself=$0 ;;
18668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18669 for as_dir in $PATH
18670 do
18671 IFS=$as_save_IFS
18672 test -z "$as_dir" && as_dir=.
18673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18674 done
18675 IFS=$as_save_IFS
18676
18677 ;;
18678 esac
18679 # We did not find ourselves, most probably we were run as `sh COMMAND'
18680 # in which case we are not to be found in the path.
18681 if test "x$as_myself" = x; then
18682 as_myself=$0
18683 fi
18684 if test ! -f "$as_myself"; then
18685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18686 exit 1
18687 fi
18688
18689 # Unset variables that we do not need and which cause bugs (e.g. in
18690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18691 # suppresses any "Segmentation fault" message there. '((' could
18692 # trigger a bug in pdksh 5.2.14.
18693 for as_var in BASH_ENV ENV MAIL MAILPATH
18694 do eval test x\${$as_var+set} = xset \
18695 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18696 done
18697 PS1='$ '
18698 PS2='> '
18699 PS4='+ '
18700
18701 # NLS nuisances.
18702 LC_ALL=C
18703 export LC_ALL
18704 LANGUAGE=C
18705 export LANGUAGE
18706
18707 # CDPATH.
18708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18709
18710
18711 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18712 # ----------------------------------------
18713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18715 # script with STATUS, using 1 if that was 0.
18716 as_fn_error ()
18717 {
18718 as_status=$1; test $as_status -eq 0 && as_status=1
18719 if test "$4"; then
18720 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18722 fi
18723 $as_echo "$as_me: error: $2" >&2
18724 as_fn_exit $as_status
18725 } # as_fn_error
18726
18727
18728 # as_fn_set_status STATUS
18729 # -----------------------
18730 # Set $? to STATUS, without forking.
18731 as_fn_set_status ()
18732 {
18733 return $1
18734 } # as_fn_set_status
18735
18736 # as_fn_exit STATUS
18737 # -----------------
18738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18739 as_fn_exit ()
18740 {
18741 set +e
18742 as_fn_set_status $1
18743 exit $1
18744 } # as_fn_exit
18745
18746 # as_fn_unset VAR
18747 # ---------------
18748 # Portably unset VAR.
18749 as_fn_unset ()
18750 {
18751 { eval $1=; unset $1;}
18752 }
18753 as_unset=as_fn_unset
18754 # as_fn_append VAR VALUE
18755 # ----------------------
18756 # Append the text in VALUE to the end of the definition contained in VAR. Take
18757 # advantage of any shell optimizations that allow amortized linear growth over
18758 # repeated appends, instead of the typical quadratic growth present in naive
18759 # implementations.
18760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18761 eval 'as_fn_append ()
18762 {
18763 eval $1+=\$2
18764 }'
18765 else
18766 as_fn_append ()
18767 {
18768 eval $1=\$$1\$2
18769 }
18770 fi # as_fn_append
18771
18772 # as_fn_arith ARG...
18773 # ------------------
18774 # Perform arithmetic evaluation on the ARGs, and store the result in the
18775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18776 # must be portable across $(()) and expr.
18777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18778 eval 'as_fn_arith ()
18779 {
18780 as_val=$(( $* ))
18781 }'
18782 else
18783 as_fn_arith ()
18784 {
18785 as_val=`expr "$@" || test $? -eq 1`
18786 }
18787 fi # as_fn_arith
18788
18789
18790 if expr a : '\(a\)' >/dev/null 2>&1 &&
18791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18792 as_expr=expr
18793 else
18794 as_expr=false
18795 fi
18796
18797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18798 as_basename=basename
18799 else
18800 as_basename=false
18801 fi
18802
18803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18804 as_dirname=dirname
18805 else
18806 as_dirname=false
18807 fi
18808
18809 as_me=`$as_basename -- "$0" ||
18810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18811 X"$0" : 'X\(//\)$' \| \
18812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18813 $as_echo X/"$0" |
18814 sed '/^.*\/\([^/][^/]*\)\/*$/{
18815 s//\1/
18816 q
18817 }
18818 /^X\/\(\/\/\)$/{
18819 s//\1/
18820 q
18821 }
18822 /^X\/\(\/\).*/{
18823 s//\1/
18824 q
18825 }
18826 s/.*/./; q'`
18827
18828 # Avoid depending upon Character Ranges.
18829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18832 as_cr_digits='0123456789'
18833 as_cr_alnum=$as_cr_Letters$as_cr_digits
18834
18835 ECHO_C= ECHO_N= ECHO_T=
18836 case `echo -n x` in #(((((
18837 -n*)
18838 case `echo 'xy\c'` in
18839 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18840 xy) ECHO_C='\c';;
18841 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18842 ECHO_T=' ';;
18843 esac;;
18844 *)
18845 ECHO_N='-n';;
18846 esac
18847
18848 rm -f conf$$ conf$$.exe conf$$.file
18849 if test -d conf$$.dir; then
18850 rm -f conf$$.dir/conf$$.file
18851 else
18852 rm -f conf$$.dir
18853 mkdir conf$$.dir 2>/dev/null
18854 fi
18855 if (echo >conf$$.file) 2>/dev/null; then
18856 if ln -s conf$$.file conf$$ 2>/dev/null; then
18857 as_ln_s='ln -s'
18858 # ... but there are two gotchas:
18859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18861 # In both cases, we have to default to `cp -pR'.
18862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18863 as_ln_s='cp -pR'
18864 elif ln conf$$.file conf$$ 2>/dev/null; then
18865 as_ln_s=ln
18866 else
18867 as_ln_s='cp -pR'
18868 fi
18869 else
18870 as_ln_s='cp -pR'
18871 fi
18872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18873 rmdir conf$$.dir 2>/dev/null
18874
18875
18876 # as_fn_mkdir_p
18877 # -------------
18878 # Create "$as_dir" as a directory, including parents if necessary.
18879 as_fn_mkdir_p ()
18880 {
18881
18882 case $as_dir in #(
18883 -*) as_dir=./$as_dir;;
18884 esac
18885 test -d "$as_dir" || eval $as_mkdir_p || {
18886 as_dirs=
18887 while :; do
18888 case $as_dir in #(
18889 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18890 *) as_qdir=$as_dir;;
18891 esac
18892 as_dirs="'$as_qdir' $as_dirs"
18893 as_dir=`$as_dirname -- "$as_dir" ||
18894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18895 X"$as_dir" : 'X\(//\)[^/]' \| \
18896 X"$as_dir" : 'X\(//\)$' \| \
18897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18898 $as_echo X"$as_dir" |
18899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18900 s//\1/
18901 q
18902 }
18903 /^X\(\/\/\)[^/].*/{
18904 s//\1/
18905 q
18906 }
18907 /^X\(\/\/\)$/{
18908 s//\1/
18909 q
18910 }
18911 /^X\(\/\).*/{
18912 s//\1/
18913 q
18914 }
18915 s/.*/./; q'`
18916 test -d "$as_dir" && break
18917 done
18918 test -z "$as_dirs" || eval "mkdir $as_dirs"
18919 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18920
18921
18922 } # as_fn_mkdir_p
18923 if mkdir -p . 2>/dev/null; then
18924 as_mkdir_p='mkdir -p "$as_dir"'
18925 else
18926 test -d ./-p && rmdir ./-p
18927 as_mkdir_p=false
18928 fi
18929
18930
18931 # as_fn_executable_p FILE
18932 # -----------------------
18933 # Test if FILE is an executable regular file.
18934 as_fn_executable_p ()
18935 {
18936 test -f "$1" && test -x "$1"
18937 } # as_fn_executable_p
18938 as_test_x='test -x'
18939 as_executable_p=as_fn_executable_p
18940
18941 # Sed expression to map a string onto a valid CPP name.
18942 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18943
18944 # Sed expression to map a string onto a valid variable name.
18945 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18946
18947
18948 exec 6>&1
18949 ## ----------------------------------- ##
18950 ## Main body of $CONFIG_STATUS script. ##
18951 ## ----------------------------------- ##
18952 _ASEOF
18953 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18954
18955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18956 # Save the log message, to keep $0 and so on meaningful, and to
18957 # report actual input values of CONFIG_FILES etc. instead of their
18958 # values after options handling.
18959 ac_log="
18960 This file was extended by libXxf86dga $as_me 1.1.5, which was
18961 generated by GNU Autoconf 2.69. Invocation command line was
18962
18963 CONFIG_FILES = $CONFIG_FILES
18964 CONFIG_HEADERS = $CONFIG_HEADERS
18965 CONFIG_LINKS = $CONFIG_LINKS
18966 CONFIG_COMMANDS = $CONFIG_COMMANDS
18967 $ $0 $@
18968
18969 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18970 "
18971
18972 _ACEOF
18973
18974 case $ac_config_files in *"
18975 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18976 esac
18977
18978 case $ac_config_headers in *"
18979 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18980 esac
18981
18982
18983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18984 # Files that config.status was made for.
18985 config_files="$ac_config_files"
18986 config_headers="$ac_config_headers"
18987 config_commands="$ac_config_commands"
18988
18989 _ACEOF
18990
18991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18992 ac_cs_usage="\
18993 \`$as_me' instantiates files and other configuration actions
18994 from templates according to the current configuration. Unless the files
18995 and actions are specified as TAGs, all are instantiated by default.
18996
18997 Usage: $0 [OPTION]... [TAG]...
18998
18999 -h, --help print this help, then exit
19000 -V, --version print version number and configuration settings, then exit
19001 --config print configuration, then exit
19002 -q, --quiet, --silent
19003 do not print progress messages
19004 -d, --debug don't remove temporary files
19005 --recheck update $as_me by reconfiguring in the same conditions
19006 --file=FILE[:TEMPLATE]
19007 instantiate the configuration file FILE
19008 --header=FILE[:TEMPLATE]
19009 instantiate the configuration header FILE
19010
19011 Configuration files:
19012 $config_files
19013
19014 Configuration headers:
19015 $config_headers
19016
19017 Configuration commands:
19018 $config_commands
19019
19020 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXxf86dga/issues>."
19021
19022 _ACEOF
19023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19024 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19025 ac_cs_version="\\
19026 libXxf86dga config.status 1.1.5
19027 configured by $0, generated by GNU Autoconf 2.69,
19028 with options \\"\$ac_cs_config\\"
19029
19030 Copyright (C) 2012 Free Software Foundation, Inc.
19031 This config.status script is free software; the Free Software Foundation
19032 gives unlimited permission to copy, distribute and modify it."
19033
19034 ac_pwd='$ac_pwd'
19035 srcdir='$srcdir'
19036 INSTALL='$INSTALL'
19037 MKDIR_P='$MKDIR_P'
19038 AWK='$AWK'
19039 test -n "\$AWK" || AWK=awk
19040 _ACEOF
19041
19042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19043 # The default lists apply if the user does not specify any file.
19044 ac_need_defaults=:
19045 while test $# != 0
19046 do
19047 case $1 in
19048 --*=?*)
19049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19051 ac_shift=:
19052 ;;
19053 --*=)
19054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19055 ac_optarg=
19056 ac_shift=:
19057 ;;
19058 *)
19059 ac_option=$1
19060 ac_optarg=$2
19061 ac_shift=shift
19062 ;;
19063 esac
19064
19065 case $ac_option in
19066 # Handling of the options.
19067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19068 ac_cs_recheck=: ;;
19069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19070 $as_echo "$ac_cs_version"; exit ;;
19071 --config | --confi | --conf | --con | --co | --c )
19072 $as_echo "$ac_cs_config"; exit ;;
19073 --debug | --debu | --deb | --de | --d | -d )
19074 debug=: ;;
19075 --file | --fil | --fi | --f )
19076 $ac_shift
19077 case $ac_optarg in
19078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19079 '') as_fn_error $? "missing file argument" ;;
19080 esac
19081 as_fn_append CONFIG_FILES " '$ac_optarg'"
19082 ac_need_defaults=false;;
19083 --header | --heade | --head | --hea )
19084 $ac_shift
19085 case $ac_optarg in
19086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19087 esac
19088 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19089 ac_need_defaults=false;;
19090 --he | --h)
19091 # Conflict between --help and --header
19092 as_fn_error $? "ambiguous option: \`$1'
19093 Try \`$0 --help' for more information.";;
19094 --help | --hel | -h )
19095 $as_echo "$ac_cs_usage"; exit ;;
19096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19098 ac_cs_silent=: ;;
19099
19100 # This is an error.
19101 -*) as_fn_error $? "unrecognized option: \`$1'
19102 Try \`$0 --help' for more information." ;;
19103
19104 *) as_fn_append ac_config_targets " $1"
19105 ac_need_defaults=false ;;
19106
19107 esac
19108 shift
19109 done
19110
19111 ac_configure_extra_args=
19112
19113 if $ac_cs_silent; then
19114 exec 6>/dev/null
19115 ac_configure_extra_args="$ac_configure_extra_args --silent"
19116 fi
19117
19118 _ACEOF
19119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 if \$ac_cs_recheck; then
19121 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19122 shift
19123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19124 CONFIG_SHELL='$SHELL'
19125 export CONFIG_SHELL
19126 exec "\$@"
19127 fi
19128
19129 _ACEOF
19130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19131 exec 5>>config.log
19132 {
19133 echo
19134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19135 ## Running $as_me. ##
19136 _ASBOX
19137 $as_echo "$ac_log"
19138 } >&5
19139
19140 _ACEOF
19141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19142 #
19143 # INIT-COMMANDS
19144 #
19145 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19146
19147
19148 # The HP-UX ksh and POSIX shell print the target directory to stdout
19149 # if CDPATH is set.
19150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19151
19152 sed_quote_subst='$sed_quote_subst'
19153 double_quote_subst='$double_quote_subst'
19154 delay_variable_subst='$delay_variable_subst'
19155 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19156 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19157 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19158 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19159 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19160 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19161 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19162 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19163 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19164 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19165 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19166 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19167 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19168 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19169 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19170 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19171 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19172 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19173 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19174 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19175 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19176 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19177 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19178 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19179 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19180 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19181 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19182 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19183 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19184 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19185 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19186 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19187 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19188 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19189 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19190 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19191 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19192 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19193 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19194 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19195 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19196 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19197 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19198 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19199 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19200 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19201 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19202 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19203 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19204 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19205 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19206 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19207 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19208 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19209 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19210 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19211 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19212 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19213 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"`'
19214 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19215 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19216 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19217 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19218 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19219 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19220 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19221 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19222 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19223 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19224 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19225 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19226 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19227 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19228 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19229 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19230 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19231 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19232 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19233 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19234 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19235 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19236 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19237 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19238 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19239 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19240 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19241 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19242 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19243 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19244 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19245 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19246 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19247 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19248 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19249 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19250 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19251 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19252 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19253 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19254 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19255 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19256 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19257 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19258 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19259 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19260 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19261 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19262 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19263 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19264 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19265 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19266 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19267 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19268 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19269 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19270 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19271 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19272 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19273 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19274 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19275 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19276 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19277 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19278 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19279 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19280 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19281 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19282 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19283 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19284 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19285 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19286 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19287 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19288 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19289 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19290
19291 LTCC='$LTCC'
19292 LTCFLAGS='$LTCFLAGS'
19293 compiler='$compiler_DEFAULT'
19294
19295 # A function that is used when there is no print builtin or printf.
19296 func_fallback_echo ()
19297 {
19298 eval 'cat <<_LTECHO_EOF
19299 \$1
19300 _LTECHO_EOF'
19301 }
19302
19303 # Quote evaled strings.
19304 for var in SHELL \
19305 ECHO \
19306 PATH_SEPARATOR \
19307 SED \
19308 GREP \
19309 EGREP \
19310 FGREP \
19311 LD \
19312 NM \
19313 LN_S \
19314 lt_SP2NL \
19315 lt_NL2SP \
19316 reload_flag \
19317 OBJDUMP \
19318 deplibs_check_method \
19319 file_magic_cmd \
19320 file_magic_glob \
19321 want_nocaseglob \
19322 DLLTOOL \
19323 sharedlib_from_linklib_cmd \
19324 AR \
19325 AR_FLAGS \
19326 archiver_list_spec \
19327 STRIP \
19328 RANLIB \
19329 CC \
19330 CFLAGS \
19331 compiler \
19332 lt_cv_sys_global_symbol_pipe \
19333 lt_cv_sys_global_symbol_to_cdecl \
19334 lt_cv_sys_global_symbol_to_import \
19335 lt_cv_sys_global_symbol_to_c_name_address \
19336 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19337 lt_cv_nm_interface \
19338 nm_file_list_spec \
19339 lt_cv_truncate_bin \
19340 lt_prog_compiler_no_builtin_flag \
19341 lt_prog_compiler_pic \
19342 lt_prog_compiler_wl \
19343 lt_prog_compiler_static \
19344 lt_cv_prog_compiler_c_o \
19345 need_locks \
19346 MANIFEST_TOOL \
19347 DSYMUTIL \
19348 NMEDIT \
19349 LIPO \
19350 OTOOL \
19351 OTOOL64 \
19352 shrext_cmds \
19353 export_dynamic_flag_spec \
19354 whole_archive_flag_spec \
19355 compiler_needs_object \
19356 with_gnu_ld \
19357 allow_undefined_flag \
19358 no_undefined_flag \
19359 hardcode_libdir_flag_spec \
19360 hardcode_libdir_separator \
19361 exclude_expsyms \
19362 include_expsyms \
19363 file_list_spec \
19364 variables_saved_for_relink \
19365 libname_spec \
19366 library_names_spec \
19367 soname_spec \
19368 install_override_mode \
19369 finish_eval \
19370 old_striplib \
19371 striplib; do
19372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19373 *[\\\\\\\`\\"\\\$]*)
19374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19375 ;;
19376 *)
19377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19378 ;;
19379 esac
19380 done
19381
19382 # Double-quote double-evaled strings.
19383 for var in reload_cmds \
19384 old_postinstall_cmds \
19385 old_postuninstall_cmds \
19386 old_archive_cmds \
19387 extract_expsyms_cmds \
19388 old_archive_from_new_cmds \
19389 old_archive_from_expsyms_cmds \
19390 archive_cmds \
19391 archive_expsym_cmds \
19392 module_cmds \
19393 module_expsym_cmds \
19394 export_symbols_cmds \
19395 prelink_cmds \
19396 postlink_cmds \
19397 postinstall_cmds \
19398 postuninstall_cmds \
19399 finish_cmds \
19400 sys_lib_search_path_spec \
19401 configure_time_dlsearch_path \
19402 configure_time_lt_sys_library_path; do
19403 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19404 *[\\\\\\\`\\"\\\$]*)
19405 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19406 ;;
19407 *)
19408 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19409 ;;
19410 esac
19411 done
19412
19413 ac_aux_dir='$ac_aux_dir'
19414
19415 # See if we are running on zsh, and set the options that allow our
19416 # commands through without removal of \ escapes INIT.
19417 if test -n "\${ZSH_VERSION+set}"; then
19418 setopt NO_GLOB_SUBST
19419 fi
19420
19421
19422 PACKAGE='$PACKAGE'
19423 VERSION='$VERSION'
19424 RM='$RM'
19425 ofile='$ofile'
19426
19427
19428
19429
19430 _ACEOF
19431
19432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19433
19434 # Handling of arguments.
19435 for ac_config_target in $ac_config_targets
19436 do
19437 case $ac_config_target in
19438 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19442 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19443 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19444 "xxf86dga.pc") CONFIG_FILES="$CONFIG_FILES xxf86dga.pc" ;;
19445
19446 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19447 esac
19448 done
19449
19450
19451 # If the user did not use the arguments to specify the items to instantiate,
19452 # then the envvar interface is used. Set only those that are not.
19453 # We use the long form for the default assignment because of an extremely
19454 # bizarre bug on SunOS 4.1.3.
19455 if $ac_need_defaults; then
19456 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19457 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19459 fi
19460
19461 # Have a temporary directory for convenience. Make it in the build tree
19462 # simply because there is no reason against having it here, and in addition,
19463 # creating and moving files from /tmp can sometimes cause problems.
19464 # Hook for its removal unless debugging.
19465 # Note that there is a small window in which the directory will not be cleaned:
19466 # after its creation but before its name has been assigned to `$tmp'.
19467 $debug ||
19468 {
19469 tmp= ac_tmp=
19470 trap 'exit_status=$?
19471 : "${ac_tmp:=$tmp}"
19472 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19473 ' 0
19474 trap 'as_fn_exit 1' 1 2 13 15
19475 }
19476 # Create a (secure) tmp directory for tmp files.
19477
19478 {
19479 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19480 test -d "$tmp"
19481 } ||
19482 {
19483 tmp=./conf$$-$RANDOM
19484 (umask 077 && mkdir "$tmp")
19485 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19486 ac_tmp=$tmp
19487
19488 # Set up the scripts for CONFIG_FILES section.
19489 # No need to generate them if there are no CONFIG_FILES.
19490 # This happens for instance with `./config.status config.h'.
19491 if test -n "$CONFIG_FILES"; then
19492
19493
19494 ac_cr=`echo X | tr X '\015'`
19495 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19496 # But we know of no other shell where ac_cr would be empty at this
19497 # point, so we can use a bashism as a fallback.
19498 if test "x$ac_cr" = x; then
19499 eval ac_cr=\$\'\\r\'
19500 fi
19501 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19502 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19503 ac_cs_awk_cr='\\r'
19504 else
19505 ac_cs_awk_cr=$ac_cr
19506 fi
19507
19508 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19509 _ACEOF
19510
19511
19512 {
19513 echo "cat >conf$$subs.awk <<_ACEOF" &&
19514 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19515 echo "_ACEOF"
19516 } >conf$$subs.sh ||
19517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19518 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19519 ac_delim='%!_!# '
19520 for ac_last_try in false false false false false :; do
19521 . ./conf$$subs.sh ||
19522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19523
19524 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19525 if test $ac_delim_n = $ac_delim_num; then
19526 break
19527 elif $ac_last_try; then
19528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19529 else
19530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19531 fi
19532 done
19533 rm -f conf$$subs.sh
19534
19535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19536 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19537 _ACEOF
19538 sed -n '
19539 h
19540 s/^/S["/; s/!.*/"]=/
19541 p
19542 g
19543 s/^[^!]*!//
19544 :repl
19545 t repl
19546 s/'"$ac_delim"'$//
19547 t delim
19548 :nl
19549 h
19550 s/\(.\{148\}\)..*/\1/
19551 t more1
19552 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19553 p
19554 n
19555 b repl
19556 :more1
19557 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19558 p
19559 g
19560 s/.\{148\}//
19561 t nl
19562 :delim
19563 h
19564 s/\(.\{148\}\)..*/\1/
19565 t more2
19566 s/["\\]/\\&/g; s/^/"/; s/$/"/
19567 p
19568 b
19569 :more2
19570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19571 p
19572 g
19573 s/.\{148\}//
19574 t delim
19575 ' <conf$$subs.awk | sed '
19576 /^[^""]/{
19577 N
19578 s/\n//
19579 }
19580 ' >>$CONFIG_STATUS || ac_write_fail=1
19581 rm -f conf$$subs.awk
19582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19583 _ACAWK
19584 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19585 for (key in S) S_is_set[key] = 1
19586 FS = ""
19587
19588 }
19589 {
19590 line = $ 0
19591 nfields = split(line, field, "@")
19592 substed = 0
19593 len = length(field[1])
19594 for (i = 2; i < nfields; i++) {
19595 key = field[i]
19596 keylen = length(key)
19597 if (S_is_set[key]) {
19598 value = S[key]
19599 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19600 len += length(value) + length(field[++i])
19601 substed = 1
19602 } else
19603 len += 1 + keylen
19604 }
19605
19606 print line
19607 }
19608
19609 _ACAWK
19610 _ACEOF
19611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19612 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19613 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19614 else
19615 cat
19616 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19617 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19618 _ACEOF
19619
19620 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19621 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19622 # trailing colons and then remove the whole line if VPATH becomes empty
19623 # (actually we leave an empty line to preserve line numbers).
19624 if test "x$srcdir" = x.; then
19625 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19626 h
19627 s///
19628 s/^/:/
19629 s/[ ]*$/:/
19630 s/:\$(srcdir):/:/g
19631 s/:\${srcdir}:/:/g
19632 s/:@srcdir@:/:/g
19633 s/^:*//
19634 s/:*$//
19635 x
19636 s/\(=[ ]*\).*/\1/
19637 G
19638 s/\n//
19639 s/^[^=]*=[ ]*$//
19640 }'
19641 fi
19642
19643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19644 fi # test -n "$CONFIG_FILES"
19645
19646 # Set up the scripts for CONFIG_HEADERS section.
19647 # No need to generate them if there are no CONFIG_HEADERS.
19648 # This happens for instance with `./config.status Makefile'.
19649 if test -n "$CONFIG_HEADERS"; then
19650 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19651 BEGIN {
19652 _ACEOF
19653
19654 # Transform confdefs.h into an awk script `defines.awk', embedded as
19655 # here-document in config.status, that substitutes the proper values into
19656 # config.h.in to produce config.h.
19657
19658 # Create a delimiter string that does not exist in confdefs.h, to ease
19659 # handling of long lines.
19660 ac_delim='%!_!# '
19661 for ac_last_try in false false :; do
19662 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19663 if test -z "$ac_tt"; then
19664 break
19665 elif $ac_last_try; then
19666 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19667 else
19668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19669 fi
19670 done
19671
19672 # For the awk script, D is an array of macro values keyed by name,
19673 # likewise P contains macro parameters if any. Preserve backslash
19674 # newline sequences.
19675
19676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19677 sed -n '
19678 s/.\{148\}/&'"$ac_delim"'/g
19679 t rset
19680 :rset
19681 s/^[ ]*#[ ]*define[ ][ ]*/ /
19682 t def
19683 d
19684 :def
19685 s/\\$//
19686 t bsnl
19687 s/["\\]/\\&/g
19688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19689 D["\1"]=" \3"/p
19690 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19691 d
19692 :bsnl
19693 s/["\\]/\\&/g
19694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19695 D["\1"]=" \3\\\\\\n"\\/p
19696 t cont
19697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19698 t cont
19699 d
19700 :cont
19701 n
19702 s/.\{148\}/&'"$ac_delim"'/g
19703 t clear
19704 :clear
19705 s/\\$//
19706 t bsnlc
19707 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19708 d
19709 :bsnlc
19710 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19711 b cont
19712 ' <confdefs.h | sed '
19713 s/'"$ac_delim"'/"\\\
19714 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19715
19716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19717 for (key in D) D_is_set[key] = 1
19718 FS = ""
19719 }
19720 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19721 line = \$ 0
19722 split(line, arg, " ")
19723 if (arg[1] == "#") {
19724 defundef = arg[2]
19725 mac1 = arg[3]
19726 } else {
19727 defundef = substr(arg[1], 2)
19728 mac1 = arg[2]
19729 }
19730 split(mac1, mac2, "(") #)
19731 macro = mac2[1]
19732 prefix = substr(line, 1, index(line, defundef) - 1)
19733 if (D_is_set[macro]) {
19734 # Preserve the white space surrounding the "#".
19735 print prefix "define", macro P[macro] D[macro]
19736 next
19737 } else {
19738 # Replace #undef with comments. This is necessary, for example,
19739 # in the case of _POSIX_SOURCE, which is predefined and required
19740 # on some systems where configure will not decide to define it.
19741 if (defundef == "undef") {
19742 print "/*", prefix defundef, macro, "*/"
19743 next
19744 }
19745 }
19746 }
19747 { print }
19748 _ACAWK
19749 _ACEOF
19750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19751 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19752 fi # test -n "$CONFIG_HEADERS"
19753
19754
19755 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19756 shift
19757 for ac_tag
19758 do
19759 case $ac_tag in
19760 :[FHLC]) ac_mode=$ac_tag; continue;;
19761 esac
19762 case $ac_mode$ac_tag in
19763 :[FHL]*:*);;
19764 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19765 :[FH]-) ac_tag=-:-;;
19766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19767 esac
19768 ac_save_IFS=$IFS
19769 IFS=:
19770 set x $ac_tag
19771 IFS=$ac_save_IFS
19772 shift
19773 ac_file=$1
19774 shift
19775
19776 case $ac_mode in
19777 :L) ac_source=$1;;
19778 :[FH])
19779 ac_file_inputs=
19780 for ac_f
19781 do
19782 case $ac_f in
19783 -) ac_f="$ac_tmp/stdin";;
19784 *) # Look for the file first in the build tree, then in the source tree
19785 # (if the path is not absolute). The absolute path cannot be DOS-style,
19786 # because $ac_f cannot contain `:'.
19787 test -f "$ac_f" ||
19788 case $ac_f in
19789 [\\/$]*) false;;
19790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19791 esac ||
19792 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19793 esac
19794 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19795 as_fn_append ac_file_inputs " '$ac_f'"
19796 done
19797
19798 # Let's still pretend it is `configure' which instantiates (i.e., don't
19799 # use $as_me), people would be surprised to read:
19800 # /* config.h. Generated by config.status. */
19801 configure_input='Generated from '`
19802 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19803 `' by configure.'
19804 if test x"$ac_file" != x-; then
19805 configure_input="$ac_file. $configure_input"
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19807 $as_echo "$as_me: creating $ac_file" >&6;}
19808 fi
19809 # Neutralize special characters interpreted by sed in replacement strings.
19810 case $configure_input in #(
19811 *\&* | *\|* | *\\* )
19812 ac_sed_conf_input=`$as_echo "$configure_input" |
19813 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19814 *) ac_sed_conf_input=$configure_input;;
19815 esac
19816
19817 case $ac_tag in
19818 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19820 esac
19821 ;;
19822 esac
19823
19824 ac_dir=`$as_dirname -- "$ac_file" ||
19825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19826 X"$ac_file" : 'X\(//\)[^/]' \| \
19827 X"$ac_file" : 'X\(//\)$' \| \
19828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19829 $as_echo X"$ac_file" |
19830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19831 s//\1/
19832 q
19833 }
19834 /^X\(\/\/\)[^/].*/{
19835 s//\1/
19836 q
19837 }
19838 /^X\(\/\/\)$/{
19839 s//\1/
19840 q
19841 }
19842 /^X\(\/\).*/{
19843 s//\1/
19844 q
19845 }
19846 s/.*/./; q'`
19847 as_dir="$ac_dir"; as_fn_mkdir_p
19848 ac_builddir=.
19849
19850 case "$ac_dir" in
19851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19852 *)
19853 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19854 # A ".." for each directory in $ac_dir_suffix.
19855 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19856 case $ac_top_builddir_sub in
19857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19859 esac ;;
19860 esac
19861 ac_abs_top_builddir=$ac_pwd
19862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19863 # for backward compatibility:
19864 ac_top_builddir=$ac_top_build_prefix
19865
19866 case $srcdir in
19867 .) # We are building in place.
19868 ac_srcdir=.
19869 ac_top_srcdir=$ac_top_builddir_sub
19870 ac_abs_top_srcdir=$ac_pwd ;;
19871 [\\/]* | ?:[\\/]* ) # Absolute name.
19872 ac_srcdir=$srcdir$ac_dir_suffix;
19873 ac_top_srcdir=$srcdir
19874 ac_abs_top_srcdir=$srcdir ;;
19875 *) # Relative name.
19876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19877 ac_top_srcdir=$ac_top_build_prefix$srcdir
19878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19879 esac
19880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19881
19882
19883 case $ac_mode in
19884 :F)
19885 #
19886 # CONFIG_FILE
19887 #
19888
19889 case $INSTALL in
19890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19891 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19892 esac
19893 ac_MKDIR_P=$MKDIR_P
19894 case $MKDIR_P in
19895 [\\/$]* | ?:[\\/]* ) ;;
19896 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19897 esac
19898 _ACEOF
19899
19900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19901 # If the template does not know about datarootdir, expand it.
19902 # FIXME: This hack should be removed a few years after 2.60.
19903 ac_datarootdir_hack=; ac_datarootdir_seen=
19904 ac_sed_dataroot='
19905 /datarootdir/ {
19906 p
19907 q
19908 }
19909 /@datadir@/p
19910 /@docdir@/p
19911 /@infodir@/p
19912 /@localedir@/p
19913 /@mandir@/p'
19914 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19915 *datarootdir*) ac_datarootdir_seen=yes;;
19916 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19918 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19919 _ACEOF
19920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19921 ac_datarootdir_hack='
19922 s&@datadir@&$datadir&g
19923 s&@docdir@&$docdir&g
19924 s&@infodir@&$infodir&g
19925 s&@localedir@&$localedir&g
19926 s&@mandir@&$mandir&g
19927 s&\\\${datarootdir}&$datarootdir&g' ;;
19928 esac
19929 _ACEOF
19930
19931 # Neutralize VPATH when `$srcdir' = `.'.
19932 # Shell code in configure.ac might set extrasub.
19933 # FIXME: do we really want to maintain this feature?
19934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19935 ac_sed_extra="$ac_vpsub
19936 $extrasub
19937 _ACEOF
19938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19939 :t
19940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19941 s|@configure_input@|$ac_sed_conf_input|;t t
19942 s&@top_builddir@&$ac_top_builddir_sub&;t t
19943 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19944 s&@srcdir@&$ac_srcdir&;t t
19945 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19946 s&@top_srcdir@&$ac_top_srcdir&;t t
19947 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19948 s&@builddir@&$ac_builddir&;t t
19949 s&@abs_builddir@&$ac_abs_builddir&;t t
19950 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19951 s&@INSTALL@&$ac_INSTALL&;t t
19952 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19953 $ac_datarootdir_hack
19954 "
19955 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19956 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19957
19958 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19959 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19961 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19963 which seems to be undefined. Please make sure it is defined" >&5
19964 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19965 which seems to be undefined. Please make sure it is defined" >&2;}
19966
19967 rm -f "$ac_tmp/stdin"
19968 case $ac_file in
19969 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19970 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19971 esac \
19972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19973 ;;
19974 :H)
19975 #
19976 # CONFIG_HEADER
19977 #
19978 if test x"$ac_file" != x-; then
19979 {
19980 $as_echo "/* $configure_input */" \
19981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19982 } >"$ac_tmp/config.h" \
19983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19984 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19986 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19987 else
19988 rm -f "$ac_file"
19989 mv "$ac_tmp/config.h" "$ac_file" \
19990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19991 fi
19992 else
19993 $as_echo "/* $configure_input */" \
19994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19995 || as_fn_error $? "could not create -" "$LINENO" 5
19996 fi
19997 # Compute "$ac_file"'s index in $config_headers.
19998 _am_arg="$ac_file"
19999 _am_stamp_count=1
20000 for _am_header in $config_headers :; do
20001 case $_am_header in
20002 $_am_arg | $_am_arg:* )
20003 break ;;
20004 * )
20005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20006 esac
20007 done
20008 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20009 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20010 X"$_am_arg" : 'X\(//\)[^/]' \| \
20011 X"$_am_arg" : 'X\(//\)$' \| \
20012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20013 $as_echo X"$_am_arg" |
20014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20015 s//\1/
20016 q
20017 }
20018 /^X\(\/\/\)[^/].*/{
20019 s//\1/
20020 q
20021 }
20022 /^X\(\/\/\)$/{
20023 s//\1/
20024 q
20025 }
20026 /^X\(\/\).*/{
20027 s//\1/
20028 q
20029 }
20030 s/.*/./; q'`/stamp-h$_am_stamp_count
20031 ;;
20032
20033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20034 $as_echo "$as_me: executing $ac_file commands" >&6;}
20035 ;;
20036 esac
20037
20038
20039 case $ac_file$ac_mode in
20040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20041 # Older Autoconf quotes --file arguments for eval, but not when files
20042 # are listed without --file. Let's play safe and only enable the eval
20043 # if we detect the quoting.
20044 case $CONFIG_FILES in
20045 *\'*) eval set x "$CONFIG_FILES" ;;
20046 *) set x $CONFIG_FILES ;;
20047 esac
20048 shift
20049 for mf
20050 do
20051 # Strip MF so we end up with the name of the file.
20052 mf=`echo "$mf" | sed -e 's/:.*$//'`
20053 # Check whether this is an Automake generated Makefile or not.
20054 # We used to match only the files named 'Makefile.in', but
20055 # some people rename them; so instead we look at the file content.
20056 # Grep'ing the first line is not enough: some people post-process
20057 # each Makefile.in and add a new line on top of each file to say so.
20058 # Grep'ing the whole file is not good either: AIX grep has a line
20059 # limit of 2048, but all sed's we know have understand at least 4000.
20060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20061 dirpart=`$as_dirname -- "$mf" ||
20062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20063 X"$mf" : 'X\(//\)[^/]' \| \
20064 X"$mf" : 'X\(//\)$' \| \
20065 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20066 $as_echo X"$mf" |
20067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20068 s//\1/
20069 q
20070 }
20071 /^X\(\/\/\)[^/].*/{
20072 s//\1/
20073 q
20074 }
20075 /^X\(\/\/\)$/{
20076 s//\1/
20077 q
20078 }
20079 /^X\(\/\).*/{
20080 s//\1/
20081 q
20082 }
20083 s/.*/./; q'`
20084 else
20085 continue
20086 fi
20087 # Extract the definition of DEPDIR, am__include, and am__quote
20088 # from the Makefile without running 'make'.
20089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20090 test -z "$DEPDIR" && continue
20091 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20092 test -z "$am__include" && continue
20093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20094 # Find all dependency output files, they are included files with
20095 # $(DEPDIR) in their names. We invoke sed twice because it is the
20096 # simplest approach to changing $(DEPDIR) to its actual value in the
20097 # expansion.
20098 for file in `sed -n "
20099 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20100 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20101 # Make sure the directory exists.
20102 test -f "$dirpart/$file" && continue
20103 fdir=`$as_dirname -- "$file" ||
20104 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20105 X"$file" : 'X\(//\)[^/]' \| \
20106 X"$file" : 'X\(//\)$' \| \
20107 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20108 $as_echo X"$file" |
20109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20110 s//\1/
20111 q
20112 }
20113 /^X\(\/\/\)[^/].*/{
20114 s//\1/
20115 q
20116 }
20117 /^X\(\/\/\)$/{
20118 s//\1/
20119 q
20120 }
20121 /^X\(\/\).*/{
20122 s//\1/
20123 q
20124 }
20125 s/.*/./; q'`
20126 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20127 # echo "creating $dirpart/$file"
20128 echo '# dummy' > "$dirpart/$file"
20129 done
20130 done
20131 }
20132 ;;
20133 "libtool":C)
20134
20135 # See if we are running on zsh, and set the options that allow our
20136 # commands through without removal of \ escapes.
20137 if test -n "${ZSH_VERSION+set}"; then
20138 setopt NO_GLOB_SUBST
20139 fi
20140
20141 cfgfile=${ofile}T
20142 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20143 $RM "$cfgfile"
20144
20145 cat <<_LT_EOF >> "$cfgfile"
20146 #! $SHELL
20147 # Generated automatically by $as_me ($PACKAGE) $VERSION
20148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20149 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20150
20151 # Provide generalized library-building support services.
20152 # Written by Gordon Matzigkeit, 1996
20153
20154 # Copyright (C) 2014 Free Software Foundation, Inc.
20155 # This is free software; see the source for copying conditions. There is NO
20156 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20157
20158 # GNU Libtool is free software; you can redistribute it and/or modify
20159 # it under the terms of the GNU General Public License as published by
20160 # the Free Software Foundation; either version 2 of of the License, or
20161 # (at your option) any later version.
20162 #
20163 # As a special exception to the GNU General Public License, if you
20164 # distribute this file as part of a program or library that is built
20165 # using GNU Libtool, you may include this file under the same
20166 # distribution terms that you use for the rest of that program.
20167 #
20168 # GNU Libtool is distributed in the hope that it will be useful, but
20169 # WITHOUT ANY WARRANTY; without even the implied warranty of
20170 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20171 # GNU General Public License for more details.
20172 #
20173 # You should have received a copy of the GNU General Public License
20174 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20175
20176
20177 # The names of the tagged configurations supported by this script.
20178 available_tags=''
20179
20180 # Configured defaults for sys_lib_dlsearch_path munging.
20181 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20182
20183 # ### BEGIN LIBTOOL CONFIG
20184
20185 # Which release of libtool.m4 was used?
20186 macro_version=$macro_version
20187 macro_revision=$macro_revision
20188
20189 # Whether or not to build shared libraries.
20190 build_libtool_libs=$enable_shared
20191
20192 # Whether or not to build static libraries.
20193 build_old_libs=$enable_static
20194
20195 # What type of objects to build.
20196 pic_mode=$pic_mode
20197
20198 # Whether or not to optimize for fast installation.
20199 fast_install=$enable_fast_install
20200
20201 # Shared archive member basename,for filename based shared library versioning on AIX.
20202 shared_archive_member_spec=$shared_archive_member_spec
20203
20204 # Shell to use when invoking shell scripts.
20205 SHELL=$lt_SHELL
20206
20207 # An echo program that protects backslashes.
20208 ECHO=$lt_ECHO
20209
20210 # The PATH separator for the build system.
20211 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20212
20213 # The host system.
20214 host_alias=$host_alias
20215 host=$host
20216 host_os=$host_os
20217
20218 # The build system.
20219 build_alias=$build_alias
20220 build=$build
20221 build_os=$build_os
20222
20223 # A sed program that does not truncate output.
20224 SED=$lt_SED
20225
20226 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20227 Xsed="\$SED -e 1s/^X//"
20228
20229 # A grep program that handles long lines.
20230 GREP=$lt_GREP
20231
20232 # An ERE matcher.
20233 EGREP=$lt_EGREP
20234
20235 # A literal string matcher.
20236 FGREP=$lt_FGREP
20237
20238 # A BSD- or MS-compatible name lister.
20239 NM=$lt_NM
20240
20241 # Whether we need soft or hard links.
20242 LN_S=$lt_LN_S
20243
20244 # What is the maximum length of a command?
20245 max_cmd_len=$max_cmd_len
20246
20247 # Object file suffix (normally "o").
20248 objext=$ac_objext
20249
20250 # Executable file suffix (normally "").
20251 exeext=$exeext
20252
20253 # whether the shell understands "unset".
20254 lt_unset=$lt_unset
20255
20256 # turn spaces into newlines.
20257 SP2NL=$lt_lt_SP2NL
20258
20259 # turn newlines into spaces.
20260 NL2SP=$lt_lt_NL2SP
20261
20262 # convert \$build file names to \$host format.
20263 to_host_file_cmd=$lt_cv_to_host_file_cmd
20264
20265 # convert \$build files to toolchain format.
20266 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20267
20268 # An object symbol dumper.
20269 OBJDUMP=$lt_OBJDUMP
20270
20271 # Method to check whether dependent libraries are shared objects.
20272 deplibs_check_method=$lt_deplibs_check_method
20273
20274 # Command to use when deplibs_check_method = "file_magic".
20275 file_magic_cmd=$lt_file_magic_cmd
20276
20277 # How to find potential files when deplibs_check_method = "file_magic".
20278 file_magic_glob=$lt_file_magic_glob
20279
20280 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20281 want_nocaseglob=$lt_want_nocaseglob
20282
20283 # DLL creation program.
20284 DLLTOOL=$lt_DLLTOOL
20285
20286 # Command to associate shared and link libraries.
20287 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20288
20289 # The archiver.
20290 AR=$lt_AR
20291
20292 # Flags to create an archive.
20293 AR_FLAGS=$lt_AR_FLAGS
20294
20295 # How to feed a file listing to the archiver.
20296 archiver_list_spec=$lt_archiver_list_spec
20297
20298 # A symbol stripping program.
20299 STRIP=$lt_STRIP
20300
20301 # Commands used to install an old-style archive.
20302 RANLIB=$lt_RANLIB
20303 old_postinstall_cmds=$lt_old_postinstall_cmds
20304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20305
20306 # Whether to use a lock for old archive extraction.
20307 lock_old_archive_extraction=$lock_old_archive_extraction
20308
20309 # A C compiler.
20310 LTCC=$lt_CC
20311
20312 # LTCC compiler flags.
20313 LTCFLAGS=$lt_CFLAGS
20314
20315 # Take the output of nm and produce a listing of raw symbols and C names.
20316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20317
20318 # Transform the output of nm in a proper C declaration.
20319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20320
20321 # Transform the output of nm into a list of symbols to manually relocate.
20322 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20323
20324 # Transform the output of nm in a C name address pair.
20325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20326
20327 # Transform the output of nm in a C name address pair when lib prefix is needed.
20328 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20329
20330 # The name lister interface.
20331 nm_interface=$lt_lt_cv_nm_interface
20332
20333 # Specify filename containing input files for \$NM.
20334 nm_file_list_spec=$lt_nm_file_list_spec
20335
20336 # The root where to search for dependent libraries,and where our libraries should be installed.
20337 lt_sysroot=$lt_sysroot
20338
20339 # Command to truncate a binary pipe.
20340 lt_truncate_bin=$lt_lt_cv_truncate_bin
20341
20342 # The name of the directory that contains temporary libtool files.
20343 objdir=$objdir
20344
20345 # Used to examine libraries when file_magic_cmd begins with "file".
20346 MAGIC_CMD=$MAGIC_CMD
20347
20348 # Must we lock files when doing compilation?
20349 need_locks=$lt_need_locks
20350
20351 # Manifest tool.
20352 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20353
20354 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20355 DSYMUTIL=$lt_DSYMUTIL
20356
20357 # Tool to change global to local symbols on Mac OS X.
20358 NMEDIT=$lt_NMEDIT
20359
20360 # Tool to manipulate fat objects and archives on Mac OS X.
20361 LIPO=$lt_LIPO
20362
20363 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20364 OTOOL=$lt_OTOOL
20365
20366 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20367 OTOOL64=$lt_OTOOL64
20368
20369 # Old archive suffix (normally "a").
20370 libext=$libext
20371
20372 # Shared library suffix (normally ".so").
20373 shrext_cmds=$lt_shrext_cmds
20374
20375 # The commands to extract the exported symbol list from a shared archive.
20376 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20377
20378 # Variables whose values should be saved in libtool wrapper scripts and
20379 # restored at link time.
20380 variables_saved_for_relink=$lt_variables_saved_for_relink
20381
20382 # Do we need the "lib" prefix for modules?
20383 need_lib_prefix=$need_lib_prefix
20384
20385 # Do we need a version for libraries?
20386 need_version=$need_version
20387
20388 # Library versioning type.
20389 version_type=$version_type
20390
20391 # Shared library runtime path variable.
20392 runpath_var=$runpath_var
20393
20394 # Shared library path variable.
20395 shlibpath_var=$shlibpath_var
20396
20397 # Is shlibpath searched before the hard-coded library search path?
20398 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20399
20400 # Format of library name prefix.
20401 libname_spec=$lt_libname_spec
20402
20403 # List of archive names. First name is the real one, the rest are links.
20404 # The last name is the one that the linker finds with -lNAME
20405 library_names_spec=$lt_library_names_spec
20406
20407 # The coded name of the library, if different from the real name.
20408 soname_spec=$lt_soname_spec
20409
20410 # Permission mode override for installation of shared libraries.
20411 install_override_mode=$lt_install_override_mode
20412
20413 # Command to use after installation of a shared archive.
20414 postinstall_cmds=$lt_postinstall_cmds
20415
20416 # Command to use after uninstallation of a shared archive.
20417 postuninstall_cmds=$lt_postuninstall_cmds
20418
20419 # Commands used to finish a libtool library installation in a directory.
20420 finish_cmds=$lt_finish_cmds
20421
20422 # As "finish_cmds", except a single script fragment to be evaled but
20423 # not shown.
20424 finish_eval=$lt_finish_eval
20425
20426 # Whether we should hardcode library paths into libraries.
20427 hardcode_into_libs=$hardcode_into_libs
20428
20429 # Compile-time system search path for libraries.
20430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20431
20432 # Detected run-time system search path for libraries.
20433 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20434
20435 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20436 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20437
20438 # Whether dlopen is supported.
20439 dlopen_support=$enable_dlopen
20440
20441 # Whether dlopen of programs is supported.
20442 dlopen_self=$enable_dlopen_self
20443
20444 # Whether dlopen of statically linked programs is supported.
20445 dlopen_self_static=$enable_dlopen_self_static
20446
20447 # Commands to strip libraries.
20448 old_striplib=$lt_old_striplib
20449 striplib=$lt_striplib
20450
20451
20452 # The linker used to build libraries.
20453 LD=$lt_LD
20454
20455 # How to create reloadable object files.
20456 reload_flag=$lt_reload_flag
20457 reload_cmds=$lt_reload_cmds
20458
20459 # Commands used to build an old-style archive.
20460 old_archive_cmds=$lt_old_archive_cmds
20461
20462 # A language specific compiler.
20463 CC=$lt_compiler
20464
20465 # Is the compiler the GNU compiler?
20466 with_gcc=$GCC
20467
20468 # Compiler flag to turn off builtin functions.
20469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20470
20471 # Additional compiler flags for building library objects.
20472 pic_flag=$lt_lt_prog_compiler_pic
20473
20474 # How to pass a linker flag through the compiler.
20475 wl=$lt_lt_prog_compiler_wl
20476
20477 # Compiler flag to prevent dynamic linking.
20478 link_static_flag=$lt_lt_prog_compiler_static
20479
20480 # Does compiler simultaneously support -c and -o options?
20481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20482
20483 # Whether or not to add -lc for building shared libraries.
20484 build_libtool_need_lc=$archive_cmds_need_lc
20485
20486 # Whether or not to disallow shared libs when runtime libs are static.
20487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20488
20489 # Compiler flag to allow reflexive dlopens.
20490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20491
20492 # Compiler flag to generate shared objects directly from archives.
20493 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20494
20495 # Whether the compiler copes with passing no objects directly.
20496 compiler_needs_object=$lt_compiler_needs_object
20497
20498 # Create an old-style archive from a shared archive.
20499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20500
20501 # Create a temporary old-style archive to link instead of a shared archive.
20502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20503
20504 # Commands used to build a shared archive.
20505 archive_cmds=$lt_archive_cmds
20506 archive_expsym_cmds=$lt_archive_expsym_cmds
20507
20508 # Commands used to build a loadable module if different from building
20509 # a shared archive.
20510 module_cmds=$lt_module_cmds
20511 module_expsym_cmds=$lt_module_expsym_cmds
20512
20513 # Whether we are building with GNU ld or not.
20514 with_gnu_ld=$lt_with_gnu_ld
20515
20516 # Flag that allows shared libraries with undefined symbols to be built.
20517 allow_undefined_flag=$lt_allow_undefined_flag
20518
20519 # Flag that enforces no undefined symbols.
20520 no_undefined_flag=$lt_no_undefined_flag
20521
20522 # Flag to hardcode \$libdir into a binary during linking.
20523 # This must work even if \$libdir does not exist
20524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20525
20526 # Whether we need a single "-rpath" flag with a separated argument.
20527 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20528
20529 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20530 # DIR into the resulting binary.
20531 hardcode_direct=$hardcode_direct
20532
20533 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20534 # DIR into the resulting binary and the resulting library dependency is
20535 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20536 # library is relocated.
20537 hardcode_direct_absolute=$hardcode_direct_absolute
20538
20539 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20540 # into the resulting binary.
20541 hardcode_minus_L=$hardcode_minus_L
20542
20543 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20544 # into the resulting binary.
20545 hardcode_shlibpath_var=$hardcode_shlibpath_var
20546
20547 # Set to "yes" if building a shared library automatically hardcodes DIR
20548 # into the library and all subsequent libraries and executables linked
20549 # against it.
20550 hardcode_automatic=$hardcode_automatic
20551
20552 # Set to yes if linker adds runtime paths of dependent libraries
20553 # to runtime path list.
20554 inherit_rpath=$inherit_rpath
20555
20556 # Whether libtool must link a program against all its dependency libraries.
20557 link_all_deplibs=$link_all_deplibs
20558
20559 # Set to "yes" if exported symbols are required.
20560 always_export_symbols=$always_export_symbols
20561
20562 # The commands to list exported symbols.
20563 export_symbols_cmds=$lt_export_symbols_cmds
20564
20565 # Symbols that should not be listed in the preloaded symbols.
20566 exclude_expsyms=$lt_exclude_expsyms
20567
20568 # Symbols that must always be exported.
20569 include_expsyms=$lt_include_expsyms
20570
20571 # Commands necessary for linking programs (against libraries) with templates.
20572 prelink_cmds=$lt_prelink_cmds
20573
20574 # Commands necessary for finishing linking programs.
20575 postlink_cmds=$lt_postlink_cmds
20576
20577 # Specify filename containing input files.
20578 file_list_spec=$lt_file_list_spec
20579
20580 # How to hardcode a shared library path into an executable.
20581 hardcode_action=$hardcode_action
20582
20583 # ### END LIBTOOL CONFIG
20584
20585 _LT_EOF
20586
20587 cat <<'_LT_EOF' >> "$cfgfile"
20588
20589 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20590
20591 # func_munge_path_list VARIABLE PATH
20592 # -----------------------------------
20593 # VARIABLE is name of variable containing _space_ separated list of
20594 # directories to be munged by the contents of PATH, which is string
20595 # having a format:
20596 # "DIR[:DIR]:"
20597 # string "DIR[ DIR]" will be prepended to VARIABLE
20598 # ":DIR[:DIR]"
20599 # string "DIR[ DIR]" will be appended to VARIABLE
20600 # "DIRP[:DIRP]::[DIRA:]DIRA"
20601 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20602 # "DIRA[ DIRA]" will be appended to VARIABLE
20603 # "DIR[:DIR]"
20604 # VARIABLE will be replaced by "DIR[ DIR]"
20605 func_munge_path_list ()
20606 {
20607 case x$2 in
20608 x)
20609 ;;
20610 *:)
20611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20612 ;;
20613 x:*)
20614 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20615 ;;
20616 *::*)
20617 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20618 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20619 ;;
20620 *)
20621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20622 ;;
20623 esac
20624 }
20625
20626
20627 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20628 func_cc_basename ()
20629 {
20630 for cc_temp in $*""; do
20631 case $cc_temp in
20632 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20633 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20634 \-*) ;;
20635 *) break;;
20636 esac
20637 done
20638 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20639 }
20640
20641
20642 # ### END FUNCTIONS SHARED WITH CONFIGURE
20643
20644 _LT_EOF
20645
20646 case $host_os in
20647 aix3*)
20648 cat <<\_LT_EOF >> "$cfgfile"
20649 # AIX sometimes has problems with the GCC collect2 program. For some
20650 # reason, if we set the COLLECT_NAMES environment variable, the problems
20651 # vanish in a puff of smoke.
20652 if test set != "${COLLECT_NAMES+set}"; then
20653 COLLECT_NAMES=
20654 export COLLECT_NAMES
20655 fi
20656 _LT_EOF
20657 ;;
20658 esac
20659
20660
20661 ltmain=$ac_aux_dir/ltmain.sh
20662
20663
20664 # We use sed instead of cat because bash on DJGPP gets confused if
20665 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20666 # text mode, it properly converts lines to CR/LF. This bash problem
20667 # is reportedly fixed, but why not run on old versions too?
20668 sed '$q' "$ltmain" >> "$cfgfile" \
20669 || (rm -f "$cfgfile"; exit 1)
20670
20671 mv -f "$cfgfile" "$ofile" ||
20672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20673 chmod +x "$ofile"
20674
20675 ;;
20676
20677 esac
20678 done # for ac_tag
20679
20680
20681 as_fn_exit 0
20682 _ACEOF
20683 ac_clean_files=$ac_clean_files_save
20684
20685 test $ac_write_fail = 0 ||
20686 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20687
20688
20689 # configure is writing to config.log, and then calls config.status.
20690 # config.status does its own redirection, appending to config.log.
20691 # Unfortunately, on DOS this fails, as config.log is still kept open
20692 # by configure, so config.status won't be able to write to it; its
20693 # output is simply discarded. So we exec the FD to /dev/null,
20694 # effectively closing config.log, so it can be properly (re)opened and
20695 # appended to by config.status. When coming back to configure, we
20696 # need to make the FD available again.
20697 if test "$no_create" != yes; then
20698 ac_cs_success=:
20699 ac_config_status_args=
20700 test "$silent" = yes &&
20701 ac_config_status_args="$ac_config_status_args --quiet"
20702 exec 5>/dev/null
20703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20704 exec 5>>config.log
20705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20706 # would make configure fail if this is the last instruction.
20707 $ac_cs_success || as_fn_exit 1
20708 fi
20709 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20711 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20712 fi
20713
20714