configure revision 1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-vesa 2.5.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-vesa'
593 PACKAGE_TARNAME='xf86-video-vesa'
594 PACKAGE_VERSION='2.5.0'
595 PACKAGE_STRING='xf86-video-vesa 2.5.0'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 PCIACCESS_LIBS
642 PCIACCESS_CFLAGS
643 XEXT_LIBS
644 XEXT_CFLAGS
645 XORG_LIBS
646 XORG_CFLAGS
647 moduledir
648 LT_SYS_LIBRARY_PATH
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 MANIFEST_TOOL
655 RANLIB
656 ac_ct_AR
657 AR
658 DLLTOOL
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 LIBTOOL
667 MAN_SUBSTS
668 XORG_MAN_PAGE
669 ADMIN_MAN_DIR
670 DRIVER_MAN_DIR
671 MISC_MAN_DIR
672 FILE_MAN_DIR
673 LIB_MAN_DIR
674 APP_MAN_DIR
675 ADMIN_MAN_SUFFIX
676 DRIVER_MAN_SUFFIX
677 MISC_MAN_SUFFIX
678 FILE_MAN_SUFFIX
679 LIB_MAN_SUFFIX
680 APP_MAN_SUFFIX
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 INSTALL_CMD
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 CHANGELOG_CMD
695 STRICT_CFLAGS
696 CWARNFLAGS
697 BASE_CFLAGS
698 EGREP
699 GREP
700 CPP
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL
782 am__quote'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_dependency_tracking
788 enable_selective_werror
789 enable_strict_compilation
790 enable_static
791 enable_shared
792 with_pic
793 enable_fast_install
794 with_aix_soname
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 with_xorg_module_dir
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CPP
809 PKG_CONFIG
810 PKG_CONFIG_PATH
811 PKG_CONFIG_LIBDIR
812 LT_SYS_LIBRARY_PATH
813 XORG_CFLAGS
814 XORG_LIBS
815 XEXT_CFLAGS
816 XEXT_LIBS
817 PCIACCESS_CFLAGS
818 PCIACCESS_LIBS'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures xf86-video-vesa 2.5.0 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of xf86-video-vesa 2.5.0:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --disable-selective-werror
1444 Turn off selective compiler errors. (default:
1445 enabled)
1446 --enable-strict-compilation
1447 Enable all warnings from compiler and make them
1448 errors (default: disabled)
1449 --enable-static[=PKGS] build static libraries [default=no]
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-aix-soname=aix|svr4|both
1461 shared library versioning (aka "SONAME") variant to
1462 provide on AIX, [default=aix].
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1465 compiler's sysroot if not specified).
1466 --with-xorg-module-dir=DIR
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477 PKG_CONFIG path to pkg-config utility
1478 PKG_CONFIG_PATH
1479 directories to add to pkg-config's search path
1480 PKG_CONFIG_LIBDIR
1481 path overriding pkg-config's built-in search path
1482 LT_SYS_LIBRARY_PATH
1483 User-defined run-time library search path.
1484 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1485 XORG_LIBS linker flags for XORG, overriding pkg-config
1486 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1487 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1488 PCIACCESS_CFLAGS
1489 C compiler flags for PCIACCESS, overriding pkg-config
1490 PCIACCESS_LIBS
1491 linker flags for PCIACCESS, overriding pkg-config
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 xf86-video-vesa configure 2.5.0
1560 generated by GNU Autoconf 2.69
1561
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1612 # ---------------------------------------------
1613 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1614 # accordingly.
1615 ac_fn_c_check_decl ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 as_decl_name=`echo $2|sed 's/ *(.*//'`
1619 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1621 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 int
1629 main ()
1630 {
1631 #ifndef $as_decl_name
1632 #ifdef __cplusplus
1633 (void) $as_decl_use;
1634 #else
1635 (void) $as_decl_name;
1636 #endif
1637 #endif
1638
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$3=yes"
1645 else
1646 eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_decl
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_compile
1766
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 test -x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802 fi
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_link
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by xf86-video-vesa $as_me 2.5.0, which was
1884 generated by GNU Autoconf 2.69. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2059
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2123 esac
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2162
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2181 *)
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2211 fi
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2223
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231
2232 ac_config_headers="$ac_config_headers config.h"
2233
2234 ac_aux_dir=
2235 for ac_dir in . "$srcdir"/.; do
2236 if test -f "$ac_dir/install-sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2239 break
2240 elif test -f "$ac_dir/install.sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2243 break
2244 elif test -f "$ac_dir/shtool"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 break
2248 fi
2249 done
2250 if test -z "$ac_aux_dir"; then
2251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2252 fi
2253
2254 # These three variables are undocumented and unsupported,
2255 # and are intended to be withdrawn in a future Autoconf release.
2256 # They can cause serious problems if a builder's source tree is in a directory
2257 # whose full name contains unusual characters.
2258 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2259 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2260 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2261
2262
2263
2264 # Initialize Automake
2265 am__api_version='1.16'
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 # Reject unsafe characters in $srcdir or the absolute working directory
2363 # name. Accept space and tab only in the latter.
2364 am_lf='
2365 '
2366 case `pwd` in
2367 *[\\\"\#\$\&\'\`$am_lf]*)
2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369 esac
2370 case $srcdir in
2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2372 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373 esac
2374
2375 # Do 'set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 am_has_slept=no
2382 for am_try in 1 2; do
2383 echo "timestamp, slept: $am_has_slept" > conftest.file
2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385 if test "$*" = "X"; then
2386 # -L didn't work.
2387 set X `ls -t "$srcdir/configure" conftest.file`
2388 fi
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399 if test "$2" = conftest.file || test $am_try -eq 2; then
2400 break
2401 fi
2402 # Just in case.
2403 sleep 1
2404 am_has_slept=yes
2405 done
2406 test "$2" = conftest.file
2407 )
2408 then
2409 # Ok.
2410 :
2411 else
2412 as_fn_error $? "newly created file is older than distributed files!
2413 Check your system clock" "$LINENO" 5
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417 # If we didn't sleep, we still need to ensure time stamps of config.status and
2418 # generated files are strictly newer.
2419 am_sleep_pid=
2420 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421 ( sleep 1 ) &
2422 am_sleep_pid=$!
2423 fi
2424
2425 rm -f conftest.file
2426
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437 # Expand $ac_aux_dir to an absolute path.
2438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440 if test x"${MISSING+set}" != xset; then
2441 case $am_aux_dir in
2442 *\ * | *\ *)
2443 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444 *)
2445 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2446 esac
2447 fi
2448 # Use eval to expand $SHELL
2449 if eval "$MISSING --is-lightweight"; then
2450 am_missing_run="$MISSING "
2451 else
2452 am_missing_run=
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2454 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2455 fi
2456
2457 if test x"${install_sh+set}" != xset; then
2458 case $am_aux_dir in
2459 *\ * | *\ *)
2460 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461 *)
2462 install_sh="\${SHELL} $am_aux_dir/install-sh"
2463 esac
2464 fi
2465
2466 # Installed binaries are usually stripped using 'strip' when the user
2467 # run "make install-strip". However 'strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the 'STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_STRIP+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2502 $as_echo "$STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511 ac_ct_STRIP=$STRIP
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2542 $as_echo "$ac_ct_STRIP" >&6; }
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548 if test "x$ac_ct_STRIP" = x; then
2549 STRIP=":"
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 STRIP=$ac_ct_STRIP
2558 fi
2559 else
2560 STRIP="$ac_cv_prog_STRIP"
2561 fi
2562
2563 fi
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2567 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2568 if test -z "$MKDIR_P"; then
2569 if ${ac_cv_path_mkdir+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_prog in mkdir gmkdir; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2580 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2581 'mkdir (GNU coreutils) '* | \
2582 'mkdir (coreutils) '* | \
2583 'mkdir (fileutils) '4.1*)
2584 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585 break 3;;
2586 esac
2587 done
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593
2594 test -d ./--version && rmdir ./--version
2595 if test "${ac_cv_path_mkdir+set}" = set; then
2596 MKDIR_P="$ac_cv_path_mkdir -p"
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for MKDIR_P within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 MKDIR_P="$ac_install_sh -d"
2603 fi
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2606 $as_echo "$MKDIR_P" >&6; }
2607
2608 for ac_prog in gawk mawk nawk awk
2609 do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_AWK+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$AWK"; then
2618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_AWK="$ac_prog"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 AWK=$ac_cv_prog_AWK
2638 if test -n "$AWK"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640 $as_echo "$AWK" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 test -n "$AWK" && break
2648 done
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 set x ${MAKE-make}
2653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664 *@@@%%%=?*=@@@%%%*)
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 *)
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 SET_MAKE=
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 rm -rf .tst 2>/dev/null
2682 mkdir .tst 2>/dev/null
2683 if test -d .tst; then
2684 am__leading_dot=.
2685 else
2686 am__leading_dot=_
2687 fi
2688 rmdir .tst 2>/dev/null
2689
2690 # Check whether --enable-silent-rules was given.
2691 if test "${enable_silent_rules+set}" = set; then :
2692 enableval=$enable_silent_rules;
2693 fi
2694
2695 case $enable_silent_rules in # (((
2696 yes) AM_DEFAULT_VERBOSITY=0;;
2697 no) AM_DEFAULT_VERBOSITY=1;;
2698 *) AM_DEFAULT_VERBOSITY=1;;
2699 esac
2700 am_make=${MAKE-make}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2702 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2703 if ${am_cv_make_support_nested_variables+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if $as_echo 'TRUE=$(BAR$(V))
2707 BAR0=false
2708 BAR1=true
2709 V=1
2710 am__doit:
2711 @$(TRUE)
2712 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2713 am_cv_make_support_nested_variables=yes
2714 else
2715 am_cv_make_support_nested_variables=no
2716 fi
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2719 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2720 if test $am_cv_make_support_nested_variables = yes; then
2721 AM_V='$(V)'
2722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2723 else
2724 AM_V=$AM_DEFAULT_VERBOSITY
2725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2726 fi
2727 AM_BACKSLASH='\'
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736 fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2743 else
2744 CYGPATH_W=echo
2745 fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750 PACKAGE='xf86-video-vesa'
2751 VERSION='2.5.0'
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2756 _ACEOF
2757
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2761 _ACEOF
2762
2763 # Some tools Automake needs.
2764
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779 # For better backward compatibility. To be removed once Automake 1.9.x
2780 # dies out for good. For more background, see:
2781 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2782 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2783 mkdir_p='$(MKDIR_P)'
2784
2785 # We need awk for the "check" target (and possibly the TAP driver). The
2786 # system "awk" is bad on some platforms.
2787 # Always define AMTAR for backward compatibility. Yes, it's still used
2788 # in the wild :-( We should find a proper way to deprecate it ...
2789 AMTAR='$${TAR-tar}'
2790
2791
2792 # We'll loop over all known methods to create a tar archive until one works.
2793 _am_tools='gnutar pax cpio none'
2794
2795 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2796
2797
2798
2799
2800
2801
2802 # POSIX will say in a future version that running "rm -f" with no argument
2803 # is OK; and we want to be able to make that assumption in our Makefile
2804 # recipes. So use an aggressive probe to check that the usage we want is
2805 # actually supported "in the wild" to an acceptable degree.
2806 # See automake bug#10828.
2807 # To make any issue more visible, cause the running configure to be aborted
2808 # by default if the 'rm' program in use doesn't match our expectations; the
2809 # user can still override this though.
2810 if rm -f && rm -fr && rm -rf; then : OK; else
2811 cat >&2 <<'END'
2812 Oops!
2813
2814 Your 'rm' program seems unable to run without file operands specified
2815 on the command line, even when the '-f' option is present. This is contrary
2816 to the behaviour of most rm programs out there, and not conforming with
2817 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2818
2819 Please tell bug-automake@gnu.org about your system, including the value
2820 of your $PATH and any error possibly output before this message. This
2821 can help us improve future automake versions.
2822
2823 END
2824 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2825 echo 'Configuration will proceed anyway, since you have set the' >&2
2826 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2827 echo >&2
2828 else
2829 cat >&2 <<'END'
2830 Aborting the configuration process, to ensure you take notice of the issue.
2831
2832 You can download and install GNU coreutils to get an 'rm' implementation
2833 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2834
2835 If you want to complete the configuration process using your problematic
2836 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2837 to "yes", and re-run configure.
2838
2839 END
2840 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2841 fi
2842 fi
2843
2844
2845 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857 DEPDIR="${am__leading_dot}deps"
2858
2859 ac_config_commands="$ac_config_commands depfiles"
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2862 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2863 cat > confinc.mk << 'END'
2864 am__doit:
2865 @echo this is the am__doit target >confinc.out
2866 .PHONY: am__doit
2867 END
2868 am__include="#"
2869 am__quote=
2870 # BSD make does it like this.
2871 echo '.include "confinc.mk" # ignored' > confmf.BSD
2872 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2873 echo 'include confinc.mk # ignored' > confmf.GNU
2874 _am_result=no
2875 for s in GNU BSD; do
2876 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2877 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881 case $?:`cat confinc.out 2>/dev/null` in #(
2882 '0:this is the am__doit target') :
2883 case $s in #(
2884 BSD) :
2885 am__include='.include' am__quote='"' ;; #(
2886 *) :
2887 am__include='include' am__quote='' ;;
2888 esac ;; #(
2889 *) :
2890 ;;
2891 esac
2892 if test "$am__include" != "#"; then
2893 _am_result="yes ($s style)"
2894 break
2895 fi
2896 done
2897 rm -f confinc.* confmf.*
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2899 $as_echo "${_am_result}" >&6; }
2900
2901 # Check whether --enable-dependency-tracking was given.
2902 if test "${enable_dependency_tracking+set}" = set; then :
2903 enableval=$enable_dependency_tracking;
2904 fi
2905
2906 if test "x$enable_dependency_tracking" != xno; then
2907 am_depcomp="$ac_aux_dir/depcomp"
2908 AMDEPBACKSLASH='\'
2909 am__nodep='_no'
2910 fi
2911 if test "x$enable_dependency_tracking" != xno; then
2912 AMDEP_TRUE=
2913 AMDEP_FALSE='#'
2914 else
2915 AMDEP_TRUE='#'
2916 AMDEP_FALSE=
2917 fi
2918
2919
2920 ac_ext=c
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$ac_cv_prog_CC"; then
2965 ac_ct_CC=$CC
2966 # Extract the first word of "gcc", so it can be a program name with args.
2967 set dummy gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$ac_ct_CC"; then
2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_ac_ct_CC="gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996 $as_echo "$ac_ct_CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002 if test "x$ac_ct_CC" = x; then
3003 CC=""
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 CC=$ac_ct_CC
3012 fi
3013 else
3014 CC="$ac_cv_prog_CC"
3015 fi
3016
3017 if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_CC="${ac_tool_prefix}cc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 fi
3058 if test -z "$CC"; then
3059 # Extract the first word of "cc", so it can be a program name with args.
3060 set dummy cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 ac_prog_rejected=no
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078 ac_prog_rejected=yes
3079 continue
3080 fi
3081 ac_cv_prog_CC="cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 if test $ac_prog_rejected = yes; then
3090 # We found a bogon in the path, so make sure we never use it.
3091 set dummy $ac_cv_prog_CC
3092 shift
3093 if test $# != 0; then
3094 # We chose a different compiler from the bogus one.
3095 # However, it has the same basename, so the bogon will be chosen
3096 # first if we set CC to just the basename; use the full file name.
3097 shift
3098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099 fi
3100 fi
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 fi
3114 if test -z "$CC"; then
3115 if test -n "$ac_tool_prefix"; then
3116 for ac_prog in cl.exe
3117 do
3118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 test -n "$CC" && break
3156 done
3157 fi
3158 if test -z "$CC"; then
3159 ac_ct_CC=$CC
3160 for ac_prog in cl.exe
3161 do
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$ac_ct_CC"; then
3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_CC="$ac_prog"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190 if test -n "$ac_ct_CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192 $as_echo "$ac_ct_CC" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199 test -n "$ac_ct_CC" && break
3200 done
3201
3202 if test "x$ac_ct_CC" = x; then
3203 CC=""
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 CC=$ac_ct_CC
3212 fi
3213 fi
3214
3215 fi
3216
3217
3218 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details" "$LINENO" 5; }
3222
3223 # Provide some information about the compiler.
3224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3225 set X $ac_compile
3226 ac_compiler=$2
3227 for ac_option in --version -v -V -qversion; do
3228 { { ac_try="$ac_compiler $ac_option >&5"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3236 ac_status=$?
3237 if test -s conftest.err; then
3238 sed '10a\
3239 ... rest of stderr output deleted ...
3240 10q' conftest.err >conftest.er1
3241 cat conftest.er1 >&5
3242 fi
3243 rm -f conftest.er1 conftest.err
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3246 done
3247
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250
3251 int
3252 main ()
3253 {
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 ac_clean_files_save=$ac_clean_files
3260 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3261 # Try to create an executable without -o first, disregard a.out.
3262 # It will help us diagnose broken compilers, and finding out an intuition
3263 # of exeext.
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3265 $as_echo_n "checking whether the C compiler works... " >&6; }
3266 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267
3268 # The possible output files:
3269 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270
3271 ac_rmfiles=
3272 for ac_file in $ac_files
3273 do
3274 case $ac_file in
3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277 esac
3278 done
3279 rm -f $ac_rmfiles
3280
3281 if { { ac_try="$ac_link_default"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_link_default") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; then :
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3296 # Autoconf.
3297 for ac_file in $ac_files ''
3298 do
3299 test -f "$ac_file" || continue
3300 case $ac_file in
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302 ;;
3303 [ab].out )
3304 # We found the default executable, but exeext='' is most
3305 # certainly right.
3306 break;;
3307 *.* )
3308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3309 then :; else
3310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311 fi
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an `-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3316 # actually working.
3317 break;;
3318 * )
3319 break;;
3320 esac
3321 done
3322 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
3324 else
3325 ac_file=''
3326 fi
3327 if test -z "$ac_file"; then :
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error 77 "C compiler cannot create executables
3336 See \`config.log' for more details" "$LINENO" 5; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342 $as_echo_n "checking for C compiler default output file name... " >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344 $as_echo "$ac_file" >&6; }
3345 ac_exeext=$ac_cv_exeext
3346
3347 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3348 ac_clean_files=$ac_clean_files_save
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350 $as_echo_n "checking for suffix of executables... " >&6; }
3351 if { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3364 # work properly (i.e., refer to `conftest.exe'), while it won't with
3365 # `rm'.
3366 for ac_file in conftest.exe conftest conftest.*; do
3367 test -f "$ac_file" || continue
3368 case $ac_file in
3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371 break;;
3372 * ) break;;
3373 esac
3374 done
3375 else
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 fi
3381 rm -f conftest conftest$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383 $as_echo "$ac_cv_exeext" >&6; }
3384
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3387 ac_exeext=$EXEEXT
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390 #include <stdio.h>
3391 int
3392 main ()
3393 {
3394 FILE *f = fopen ("conftest.out", "w");
3395 return ferror (f) || fclose (f) != 0;
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 ac_clean_files="$ac_clean_files conftest.out"
3402 # Check that the compiler produces executables we can run. If not, either
3403 # the compiler is broken, or we cross compile.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3405 $as_echo_n "checking whether we are cross compiling... " >&6; }
3406 if test "$cross_compiling" != yes; then
3407 { { ac_try="$ac_link"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }
3418 if { ac_try='./conftest$ac_cv_exeext'
3419 { { case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_try") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; }; then
3429 cross_compiling=no
3430 else
3431 if test "$cross_compiling" = maybe; then
3432 cross_compiling=yes
3433 else
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot run C compiled programs.
3437 If you meant to cross compile, use \`--host'.
3438 See \`config.log' for more details" "$LINENO" 5; }
3439 fi
3440 fi
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3443 $as_echo "$cross_compiling" >&6; }
3444
3445 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3446 ac_clean_files=$ac_clean_files_save
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448 $as_echo_n "checking for suffix of object files... " >&6; }
3449 if ${ac_cv_objext+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_compile") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; then :
3475 for ac_file in conftest.o conftest.obj conftest.*; do
3476 test -f "$ac_file" || continue;
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 break;;
3481 esac
3482 done
3483 else
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 fi
3492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495 $as_echo "$ac_cv_objext" >&6; }
3496 OBJEXT=$ac_cv_objext
3497 ac_objext=$OBJEXT
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500 if ${ac_cv_c_compiler_gnu+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509 #ifndef __GNUC__
3510 choke me
3511 #endif
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_compiler_gnu=yes
3519 else
3520 ac_compiler_gnu=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3529 GCC=yes
3530 else
3531 GCC=
3532 fi
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if ${ac_cv_prog_cc_g+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3542 ac_cv_prog_cc_g=no
3543 CFLAGS="-g"
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_cv_prog_cc_g=yes
3557 else
3558 CFLAGS=""
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561
3562 int
3563 main ()
3564 {
3565
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571
3572 else
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3574 CFLAGS="-g"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_g=yes
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597 $as_echo "$ac_cv_prog_cc_g" >&6; }
3598 if test "$ac_test_CFLAGS" = set; then
3599 CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3605 fi
3606 else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3611 fi
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if ${ac_cv_prog_cc_c89+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 ac_cv_prog_cc_c89=no
3619 ac_save_CC=$CC
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdarg.h>
3623 #include <stdio.h>
3624 struct stat;
3625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3626 struct buf { int x; };
3627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3628 static char *e (p, i)
3629 char **p;
3630 int i;
3631 {
3632 return p[i];
3633 }
3634 static char *f (char * (*g) (char **, int), char **p, ...)
3635 {
3636 char *s;
3637 va_list v;
3638 va_start (v,p);
3639 s = g (p, va_arg (v,int));
3640 va_end (v);
3641 return s;
3642 }
3643
3644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3645 function prototypes and stuff, but not '\xHH' hex character constants.
3646 These don't provoke an error unfortunately, instead are silently treated
3647 as 'x'. The following induces an error, until -std is added to get
3648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3649 array size at least. It's necessary to write '\x00'==0 to get something
3650 that's true only with -std. */
3651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652
3653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3654 inside strings and character constants. */
3655 #define FOO(x) 'x'
3656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657
3658 int test (int i, double x);
3659 struct s1 {int (*f) (int a);};
3660 struct s2 {int (*f) (double a);};
3661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662 int argc;
3663 char **argv;
3664 int
3665 main ()
3666 {
3667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3673 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3674 do
3675 CC="$ac_save_CC $ac_arg"
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_cv_prog_cc_c89=$ac_arg
3678 fi
3679 rm -f core conftest.err conftest.$ac_objext
3680 test "x$ac_cv_prog_cc_c89" != "xno" && break
3681 done
3682 rm -f conftest.$ac_ext
3683 CC=$ac_save_CC
3684
3685 fi
3686 # AC_CACHE_VAL
3687 case "x$ac_cv_prog_cc_c89" in
3688 x)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3690 $as_echo "none needed" >&6; } ;;
3691 xno)
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3693 $as_echo "unsupported" >&6; } ;;
3694 *)
3695 CC="$CC $ac_cv_prog_cc_c89"
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3697 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3698 esac
3699 if test "x$ac_cv_prog_cc_c89" != xno; then :
3700
3701 fi
3702
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3715 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3716 if ${am_cv_prog_cc_c_o+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
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 # Make sure it works both with $CC and with simple cc.
3731 # Following AC_PROG_CC_C_O, we do the test twice because some
3732 # compilers refuse to overwrite an existing .o file with -o,
3733 # though they will create one.
3734 am_cv_prog_cc_c_o=yes
3735 for am_i in 1 2; do
3736 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3737 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } \
3741 && test -f conftest2.$ac_objext; then
3742 : OK
3743 else
3744 am_cv_prog_cc_c_o=no
3745 break
3746 fi
3747 done
3748 rm -f core conftest*
3749 unset am_i
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3752 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3753 if test "$am_cv_prog_cc_c_o" != yes; then
3754 # Losing compiler, so override with the script.
3755 # FIXME: It is wrong to rewrite CC.
3756 # But if we don't then we get into trouble of one sort or another.
3757 # A longer-term fix would be to have automake use am__CC in this case,
3758 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3759 CC="$am_aux_dir/compile $CC"
3760 fi
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767
3768 depcc="$CC" am_compiler_list=
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3771 $as_echo_n "checking dependency style of $depcc... " >&6; }
3772 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3776 # We make a subdir and do the tests there. Otherwise we can end up
3777 # making bogus files that we don't know about and never remove. For
3778 # instance it was reported that on HP-UX the gcc test will end up
3779 # making a dummy file named 'D' -- because '-MD' means "put the output
3780 # in D".
3781 rm -rf conftest.dir
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3794
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 fi
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3803
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3808 #
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3816 # Solaris 10 /bin/sh.
3817 echo '/* dummy */' > sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle '-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs.
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3831 ;;
3832 nosideeffect)
3833 # After this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested.
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3839 fi
3840 ;;
3841 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3842 # This compiler won't grok '-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3847 ;;
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3870 fi
3871 fi
3872 done
3873
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885 if
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3893 fi
3894
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3897 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3898 if ${ac_cv_prog_cc_c99+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 ac_cv_prog_cc_c99=no
3902 ac_save_CC=$CC
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <stdarg.h>
3906 #include <stdbool.h>
3907 #include <stdlib.h>
3908 #include <wchar.h>
3909 #include <stdio.h>
3910
3911 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3912 #define debug(...) fprintf (stderr, __VA_ARGS__)
3913 #define showlist(...) puts (#__VA_ARGS__)
3914 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3915 static void
3916 test_varargs_macros (void)
3917 {
3918 int x = 1234;
3919 int y = 5678;
3920 debug ("Flag");
3921 debug ("X = %d\n", x);
3922 showlist (The first, second, and third items.);
3923 report (x>y, "x is %d but y is %d", x, y);
3924 }
3925
3926 // Check long long types.
3927 #define BIG64 18446744073709551615ull
3928 #define BIG32 4294967295ul
3929 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3930 #if !BIG_OK
3931 your preprocessor is broken;
3932 #endif
3933 #if BIG_OK
3934 #else
3935 your preprocessor is broken;
3936 #endif
3937 static long long int bignum = -9223372036854775807LL;
3938 static unsigned long long int ubignum = BIG64;
3939
3940 struct incomplete_array
3941 {
3942 int datasize;
3943 double data[];
3944 };
3945
3946 struct named_init {
3947 int number;
3948 const wchar_t *name;
3949 double average;
3950 };
3951
3952 typedef const char *ccp;
3953
3954 static inline int
3955 test_restrict (ccp restrict text)
3956 {
3957 // See if C++-style comments work.
3958 // Iterate through items via the restricted pointer.
3959 // Also check for declarations in for loops.
3960 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3961 continue;
3962 return 0;
3963 }
3964
3965 // Check varargs and va_copy.
3966 static void
3967 test_varargs (const char *format, ...)
3968 {
3969 va_list args;
3970 va_start (args, format);
3971 va_list args_copy;
3972 va_copy (args_copy, args);
3973
3974 const char *str;
3975 int number;
3976 float fnumber;
3977
3978 while (*format)
3979 {
3980 switch (*format++)
3981 {
3982 case 's': // string
3983 str = va_arg (args_copy, const char *);
3984 break;
3985 case 'd': // int
3986 number = va_arg (args_copy, int);
3987 break;
3988 case 'f': // float
3989 fnumber = va_arg (args_copy, double);
3990 break;
3991 default:
3992 break;
3993 }
3994 }
3995 va_end (args_copy);
3996 va_end (args);
3997 }
3998
3999 int
4000 main ()
4001 {
4002
4003 // Check bool.
4004 _Bool success = false;
4005
4006 // Check restrict.
4007 if (test_restrict ("String literal") == 0)
4008 success = true;
4009 char *restrict newvar = "Another string";
4010
4011 // Check varargs.
4012 test_varargs ("s, d' f .", "string", 65, 34.234);
4013 test_varargs_macros ();
4014
4015 // Check flexible array members.
4016 struct incomplete_array *ia =
4017 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4018 ia->datasize = 10;
4019 for (int i = 0; i < ia->datasize; ++i)
4020 ia->data[i] = i * 1.234;
4021
4022 // Check named initializers.
4023 struct named_init ni = {
4024 .number = 34,
4025 .name = L"Test wide string",
4026 .average = 543.34343,
4027 };
4028
4029 ni.number = 58;
4030
4031 int dynamic_array[ni.number];
4032 dynamic_array[ni.number - 1] = 543;
4033
4034 // work around unused variable warnings
4035 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4036 || dynamic_array[ni.number - 1] != 543);
4037
4038 ;
4039 return 0;
4040 }
4041 _ACEOF
4042 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4043 do
4044 CC="$ac_save_CC $ac_arg"
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_c99=$ac_arg
4047 fi
4048 rm -f core conftest.err conftest.$ac_objext
4049 test "x$ac_cv_prog_cc_c99" != "xno" && break
4050 done
4051 rm -f conftest.$ac_ext
4052 CC=$ac_save_CC
4053
4054 fi
4055 # AC_CACHE_VAL
4056 case "x$ac_cv_prog_cc_c99" in
4057 x)
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059 $as_echo "none needed" >&6; } ;;
4060 xno)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4062 $as_echo "unsupported" >&6; } ;;
4063 *)
4064 CC="$CC $ac_cv_prog_cc_c99"
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4066 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4067 esac
4068 if test "x$ac_cv_prog_cc_c99" != xno; then :
4069
4070 fi
4071
4072
4073
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4080 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4081 # On Suns, sometimes $CPP names a directory.
4082 if test -n "$CPP" && test -d "$CPP"; then
4083 CPP=
4084 fi
4085 if test -z "$CPP"; then
4086 if ${ac_cv_prog_CPP+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 # Double quotes because CPP needs to be expanded
4090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4091 do
4092 ac_preproc_ok=false
4093 for ac_c_preproc_warn_flag in '' yes
4094 do
4095 # Use a header file that comes with gcc, so configuring glibc
4096 # with a fresh cross-compiler works.
4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 # <limits.h> exists even on freestanding compilers.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 #ifdef __STDC__
4104 # include <limits.h>
4105 #else
4106 # include <assert.h>
4107 #endif
4108 Syntax error
4109 _ACEOF
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4111
4112 else
4113 # Broken: fails on valid input.
4114 continue
4115 fi
4116 rm -f conftest.err conftest.i conftest.$ac_ext
4117
4118 # OK, works on sane cases. Now check whether nonexistent headers
4119 # can be detected and how.
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4125 # Broken: success on invalid input.
4126 continue
4127 else
4128 # Passes both tests.
4129 ac_preproc_ok=:
4130 break
4131 fi
4132 rm -f conftest.err conftest.i conftest.$ac_ext
4133
4134 done
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.i conftest.err conftest.$ac_ext
4137 if $ac_preproc_ok; then :
4138 break
4139 fi
4140
4141 done
4142 ac_cv_prog_CPP=$CPP
4143
4144 fi
4145 CPP=$ac_cv_prog_CPP
4146 else
4147 ac_cv_prog_CPP=$CPP
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4150 $as_echo "$CPP" >&6; }
4151 ac_preproc_ok=false
4152 for ac_c_preproc_warn_flag in '' yes
4153 do
4154 # Use a header file that comes with gcc, so configuring glibc
4155 # with a fresh cross-compiler works.
4156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157 # <limits.h> exists even on freestanding compilers.
4158 # On the NeXT, cc -E runs the code through the compiler's parser,
4159 # not just through cpp. "Syntax error" is here to catch this case.
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #ifdef __STDC__
4163 # include <limits.h>
4164 #else
4165 # include <assert.h>
4166 #endif
4167 Syntax error
4168 _ACEOF
4169 if ac_fn_c_try_cpp "$LINENO"; then :
4170
4171 else
4172 # Broken: fails on valid input.
4173 continue
4174 fi
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4176
4177 # OK, works on sane cases. Now check whether nonexistent headers
4178 # can be detected and how.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #include <ac_nonexistent.h>
4182 _ACEOF
4183 if ac_fn_c_try_cpp "$LINENO"; then :
4184 # Broken: success on invalid input.
4185 continue
4186 else
4187 # Passes both tests.
4188 ac_preproc_ok=:
4189 break
4190 fi
4191 rm -f conftest.err conftest.i conftest.$ac_ext
4192
4193 done
4194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4195 rm -f conftest.i conftest.err conftest.$ac_ext
4196 if $ac_preproc_ok; then :
4197
4198 else
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4202 See \`config.log' for more details" "$LINENO" 5; }
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if ${ac_cv_path_GREP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in grep ggrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228 as_fn_executable_p "$ac_path_GREP" || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4234 *)
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP="$ac_path_GREP"
4249 ac_path_GREP_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257 $ac_path_GREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_GREP"; then
4263 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 fi
4265 else
4266 ac_cv_path_GREP=$GREP
4267 fi
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4271 $as_echo "$ac_cv_path_GREP" >&6; }
4272 GREP="$ac_cv_path_GREP"
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4276 $as_echo_n "checking for egrep... " >&6; }
4277 if ${ac_cv_path_EGREP+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4281 then ac_cv_path_EGREP="$GREP -E"
4282 else
4283 if test -z "$EGREP"; then
4284 ac_path_EGREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in egrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_EGREP" || continue
4295 # Check for GNU ac_path_EGREP and select it if it is found.
4296 # Check for GNU $ac_path_EGREP
4297 case `"$ac_path_EGREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4300 *)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'EGREP' >> "conftest.nl"
4309 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_EGREP="$ac_path_EGREP"
4315 ac_path_EGREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4322
4323 $ac_path_EGREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_EGREP"; then
4329 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 fi
4331 else
4332 ac_cv_path_EGREP=$EGREP
4333 fi
4334
4335 fi
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4338 $as_echo "$ac_cv_path_EGREP" >&6; }
4339 EGREP="$ac_cv_path_EGREP"
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4343 $as_echo_n "checking for ANSI C header files... " >&6; }
4344 if ${ac_cv_header_stdc+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <stdlib.h>
4350 #include <stdarg.h>
4351 #include <string.h>
4352 #include <float.h>
4353
4354 int
4355 main ()
4356 {
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_cv_header_stdc=yes
4364 else
4365 ac_cv_header_stdc=no
4366 fi
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368
4369 if test $ac_cv_header_stdc = yes; then
4370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <string.h>
4374
4375 _ACEOF
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "memchr" >/dev/null 2>&1; then :
4378
4379 else
4380 ac_cv_header_stdc=no
4381 fi
4382 rm -f conftest*
4383
4384 fi
4385
4386 if test $ac_cv_header_stdc = yes; then
4387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 #include <stdlib.h>
4391
4392 _ACEOF
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 $EGREP "free" >/dev/null 2>&1; then :
4395
4396 else
4397 ac_cv_header_stdc=no
4398 fi
4399 rm -f conftest*
4400
4401 fi
4402
4403 if test $ac_cv_header_stdc = yes; then
4404 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4405 if test "$cross_compiling" = yes; then :
4406 :
4407 else
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #include <ctype.h>
4411 #include <stdlib.h>
4412 #if ((' ' & 0x0FF) == 0x020)
4413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4415 #else
4416 # define ISLOWER(c) \
4417 (('a' <= (c) && (c) <= 'i') \
4418 || ('j' <= (c) && (c) <= 'r') \
4419 || ('s' <= (c) && (c) <= 'z'))
4420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4421 #endif
4422
4423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4424 int
4425 main ()
4426 {
4427 int i;
4428 for (i = 0; i < 256; i++)
4429 if (XOR (islower (i), ISLOWER (i))
4430 || toupper (i) != TOUPPER (i))
4431 return 2;
4432 return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_run "$LINENO"; then :
4436
4437 else
4438 ac_cv_header_stdc=no
4439 fi
4440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4441 conftest.$ac_objext conftest.beam conftest.$ac_ext
4442 fi
4443
4444 fi
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4447 $as_echo "$ac_cv_header_stdc" >&6; }
4448 if test $ac_cv_header_stdc = yes; then
4449
4450 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4451
4452 fi
4453
4454 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4455 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4456 inttypes.h stdint.h unistd.h
4457 do :
4458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4460 "
4461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4462 cat >>confdefs.h <<_ACEOF
4463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4464 _ACEOF
4465
4466 fi
4467
4468 done
4469
4470
4471
4472
4473
4474
4475 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4476 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4477 CLANGCC="yes"
4478 else
4479 CLANGCC="no"
4480 fi
4481
4482 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4483 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4484 INTELCC="yes"
4485 else
4486 INTELCC="no"
4487 fi
4488
4489 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4490 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4491 SUNCC="yes"
4492 else
4493 SUNCC="no"
4494 fi
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 case $PKG_CONFIG in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 ;;
4534 esac
4535 fi
4536 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4537 if test -n "$PKG_CONFIG"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4539 $as_echo "$PKG_CONFIG" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545
4546 fi
4547 if test -z "$ac_cv_path_PKG_CONFIG"; then
4548 ac_pt_PKG_CONFIG=$PKG_CONFIG
4549 # Extract the first word of "pkg-config", so it can be a program name with args.
4550 set dummy pkg-config; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 case $ac_pt_PKG_CONFIG in
4557 [\\/]* | ?:[\\/]*)
4558 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4559 ;;
4560 *)
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 ;;
4577 esac
4578 fi
4579 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4580 if test -n "$ac_pt_PKG_CONFIG"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4582 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588 if test "x$ac_pt_PKG_CONFIG" = x; then
4589 PKG_CONFIG=""
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592 yes:)
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597 PKG_CONFIG=$ac_pt_PKG_CONFIG
4598 fi
4599 else
4600 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4601 fi
4602
4603 fi
4604 if test -n "$PKG_CONFIG"; then
4605 _pkg_min_version=0.9.0
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4607 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4608 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4610 $as_echo "yes" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 PKG_CONFIG=""
4615 fi
4616 fi
4617 # Make sure we can run config.sub.
4618 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4619 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4622 $as_echo_n "checking build system type... " >&6; }
4623 if ${ac_cv_build+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 ac_build_alias=$build_alias
4627 test "x$ac_build_alias" = x &&
4628 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4629 test "x$ac_build_alias" = x &&
4630 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4631 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4633
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4636 $as_echo "$ac_cv_build" >&6; }
4637 case $ac_cv_build in
4638 *-*-*) ;;
4639 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4640 esac
4641 build=$ac_cv_build
4642 ac_save_IFS=$IFS; IFS='-'
4643 set x $ac_cv_build
4644 shift
4645 build_cpu=$1
4646 build_vendor=$2
4647 shift; shift
4648 # Remember, the first character of IFS is used to create $*,
4649 # except with old shells:
4650 build_os=$*
4651 IFS=$ac_save_IFS
4652 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4656 $as_echo_n "checking host system type... " >&6; }
4657 if ${ac_cv_host+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test "x$host_alias" = x; then
4661 ac_cv_host=$ac_cv_build
4662 else
4663 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4665 fi
4666
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4669 $as_echo "$ac_cv_host" >&6; }
4670 case $ac_cv_host in
4671 *-*-*) ;;
4672 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4673 esac
4674 host=$ac_cv_host
4675 ac_save_IFS=$IFS; IFS='-'
4676 set x $ac_cv_host
4677 shift
4678 host_cpu=$1
4679 host_vendor=$2
4680 shift; shift
4681 # Remember, the first character of IFS is used to create $*,
4682 # except with old shells:
4683 host_os=$*
4684 IFS=$ac_save_IFS
4685 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4689 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4690 if ${ac_cv_path_SED+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4694 for ac_i in 1 2 3 4 5 6 7; do
4695 ac_script="$ac_script$as_nl$ac_script"
4696 done
4697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4698 { ac_script=; unset ac_script;}
4699 if test -z "$SED"; then
4700 ac_path_SED_found=false
4701 # Loop through the user's path and test for each of PROGNAME-LIST
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in sed gsed; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4710 as_fn_executable_p "$ac_path_SED" || continue
4711 # Check for GNU ac_path_SED and select it if it is found.
4712 # Check for GNU $ac_path_SED
4713 case `"$ac_path_SED" --version 2>&1` in
4714 *GNU*)
4715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4716 *)
4717 ac_count=0
4718 $as_echo_n 0123456789 >"conftest.in"
4719 while :
4720 do
4721 cat "conftest.in" "conftest.in" >"conftest.tmp"
4722 mv "conftest.tmp" "conftest.in"
4723 cp "conftest.in" "conftest.nl"
4724 $as_echo '' >> "conftest.nl"
4725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727 as_fn_arith $ac_count + 1 && ac_count=$as_val
4728 if test $ac_count -gt ${ac_path_SED_max-0}; then
4729 # Best one so far, save it but keep looking for a better one
4730 ac_cv_path_SED="$ac_path_SED"
4731 ac_path_SED_max=$ac_count
4732 fi
4733 # 10*(2^10) chars as input seems more than enough
4734 test $ac_count -gt 10 && break
4735 done
4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 esac
4738
4739 $ac_path_SED_found && break 3
4740 done
4741 done
4742 done
4743 IFS=$as_save_IFS
4744 if test -z "$ac_cv_path_SED"; then
4745 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4746 fi
4747 else
4748 ac_cv_path_SED=$SED
4749 fi
4750
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4753 $as_echo "$ac_cv_path_SED" >&6; }
4754 SED="$ac_cv_path_SED"
4755 rm -f conftest.sed
4756
4757
4758
4759
4760
4761
4762 # Check whether --enable-selective-werror was given.
4763 if test "${enable_selective_werror+set}" = set; then :
4764 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4765 else
4766 SELECTIVE_WERROR=yes
4767 fi
4768
4769
4770
4771
4772
4773 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4774 if test "x$SUNCC" = "xyes"; then
4775 BASE_CFLAGS="-v"
4776 else
4777 BASE_CFLAGS=""
4778 fi
4779
4780 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 xorg_testset_save_CFLAGS="$CFLAGS"
4795
4796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 int i;
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 xorg_cv_cc_flag_unknown_warning_option=yes
4809 else
4810 xorg_cv_cc_flag_unknown_warning_option=no
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4817 CFLAGS="$xorg_testset_save_CFLAGS"
4818 fi
4819
4820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823 fi
4824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 int i;
4833 _ACEOF
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 xorg_cv_cc_flag_unused_command_line_argument=yes
4836 else
4837 xorg_cv_cc_flag_unused_command_line_argument=no
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4844 CFLAGS="$xorg_testset_save_CFLAGS"
4845 fi
4846
4847 found="no"
4848
4849 if test $found = "no" ; then
4850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852 fi
4853
4854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4856 fi
4857
4858 CFLAGS="$CFLAGS -Wall"
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4861 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4862 cacheid=xorg_cv_cc_flag__Wall
4863 if eval \${$cacheid+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 int i;
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_link "$LINENO"; then :
4878 eval $cacheid=yes
4879 else
4880 eval $cacheid=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext \
4883 conftest$ac_exeext conftest.$ac_ext
4884 fi
4885
4886
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4888
4889 eval supported=\$$cacheid
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4891 $as_echo "$supported" >&6; }
4892 if test "$supported" = "yes" ; then
4893 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4894 found="yes"
4895 fi
4896 fi
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 xorg_testset_save_CFLAGS="$CFLAGS"
4913
4914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 int i;
4924 _ACEOF
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926 xorg_cv_cc_flag_unknown_warning_option=yes
4927 else
4928 xorg_cv_cc_flag_unknown_warning_option=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4935 CFLAGS="$xorg_testset_save_CFLAGS"
4936 fi
4937
4938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 fi
4942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 int i;
4951 _ACEOF
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953 xorg_cv_cc_flag_unused_command_line_argument=yes
4954 else
4955 xorg_cv_cc_flag_unused_command_line_argument=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4962 CFLAGS="$xorg_testset_save_CFLAGS"
4963 fi
4964
4965 found="no"
4966
4967 if test $found = "no" ; then
4968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970 fi
4971
4972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4974 fi
4975
4976 CFLAGS="$CFLAGS -Wpointer-arith"
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4979 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4980 cacheid=xorg_cv_cc_flag__Wpointer_arith
4981 if eval \${$cacheid+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 int i;
4987 int
4988 main ()
4989 {
4990
4991 ;
4992 return 0;
4993 }
4994 _ACEOF
4995 if ac_fn_c_try_link "$LINENO"; then :
4996 eval $cacheid=yes
4997 else
4998 eval $cacheid=no
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext \
5001 conftest$ac_exeext conftest.$ac_ext
5002 fi
5003
5004
5005 CFLAGS="$xorg_testset_save_CFLAGS"
5006
5007 eval supported=\$$cacheid
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5009 $as_echo "$supported" >&6; }
5010 if test "$supported" = "yes" ; then
5011 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5012 found="yes"
5013 fi
5014 fi
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 xorg_testset_save_CFLAGS="$CFLAGS"
5031
5032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5035 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5036 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 int i;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 xorg_cv_cc_flag_unknown_warning_option=yes
5045 else
5046 xorg_cv_cc_flag_unknown_warning_option=no
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5051 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5053 CFLAGS="$xorg_testset_save_CFLAGS"
5054 fi
5055
5056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5059 fi
5060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5062 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5063 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 int i;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 xorg_cv_cc_flag_unused_command_line_argument=yes
5072 else
5073 xorg_cv_cc_flag_unused_command_line_argument=no
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5078 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5080 CFLAGS="$xorg_testset_save_CFLAGS"
5081 fi
5082
5083 found="no"
5084
5085 if test $found = "no" ; then
5086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088 fi
5089
5090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5092 fi
5093
5094 CFLAGS="$CFLAGS -Wmissing-declarations"
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5097 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5098 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5099 if eval \${$cacheid+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 int i;
5105 int
5106 main ()
5107 {
5108
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 if ac_fn_c_try_link "$LINENO"; then :
5114 eval $cacheid=yes
5115 else
5116 eval $cacheid=no
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120 fi
5121
5122
5123 CFLAGS="$xorg_testset_save_CFLAGS"
5124
5125 eval supported=\$$cacheid
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5127 $as_echo "$supported" >&6; }
5128 if test "$supported" = "yes" ; then
5129 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5130 found="yes"
5131 fi
5132 fi
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 xorg_testset_save_CFLAGS="$CFLAGS"
5149
5150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 xorg_cv_cc_flag_unknown_warning_option=yes
5163 else
5164 xorg_cv_cc_flag_unknown_warning_option=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5171 CFLAGS="$xorg_testset_save_CFLAGS"
5172 fi
5173
5174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177 fi
5178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 int i;
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 xorg_cv_cc_flag_unused_command_line_argument=yes
5190 else
5191 xorg_cv_cc_flag_unused_command_line_argument=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5198 CFLAGS="$xorg_testset_save_CFLAGS"
5199 fi
5200
5201 found="no"
5202
5203 if test $found = "no" ; then
5204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206 fi
5207
5208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5210 fi
5211
5212 CFLAGS="$CFLAGS -Wformat=2"
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5215 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5216 cacheid=xorg_cv_cc_flag__Wformat_2
5217 if eval \${$cacheid+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 int i;
5223 int
5224 main ()
5225 {
5226
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232 eval $cacheid=yes
5233 else
5234 eval $cacheid=no
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238 fi
5239
5240
5241 CFLAGS="$xorg_testset_save_CFLAGS"
5242
5243 eval supported=\$$cacheid
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5245 $as_echo "$supported" >&6; }
5246 if test "$supported" = "yes" ; then
5247 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5248 found="yes"
5249 fi
5250 fi
5251
5252 if test $found = "no" ; then
5253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5255 fi
5256
5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259 fi
5260
5261 CFLAGS="$CFLAGS -Wformat"
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5264 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5265 cacheid=xorg_cv_cc_flag__Wformat
5266 if eval \${$cacheid+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 int i;
5272 int
5273 main ()
5274 {
5275
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_c_try_link "$LINENO"; then :
5281 eval $cacheid=yes
5282 else
5283 eval $cacheid=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext conftest.$ac_ext
5287 fi
5288
5289
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291
5292 eval supported=\$$cacheid
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5294 $as_echo "$supported" >&6; }
5295 if test "$supported" = "yes" ; then
5296 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5297 found="yes"
5298 fi
5299 fi
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 xorg_testset_save_CFLAGS="$CFLAGS"
5318
5319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5322 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5323 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 int i;
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 xorg_cv_cc_flag_unknown_warning_option=yes
5332 else
5333 xorg_cv_cc_flag_unknown_warning_option=no
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5338 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5340 CFLAGS="$xorg_testset_save_CFLAGS"
5341 fi
5342
5343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346 fi
5347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5349 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5350 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 int i;
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 xorg_cv_cc_flag_unused_command_line_argument=yes
5359 else
5360 xorg_cv_cc_flag_unused_command_line_argument=no
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5365 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5367 CFLAGS="$xorg_testset_save_CFLAGS"
5368 fi
5369
5370 found="no"
5371
5372 if test $found = "no" ; then
5373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375 fi
5376
5377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5379 fi
5380
5381 CFLAGS="$CFLAGS -Wstrict-prototypes"
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5384 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5385 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5386 if eval \${$cacheid+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 int i;
5392 int
5393 main ()
5394 {
5395
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_link "$LINENO"; then :
5401 eval $cacheid=yes
5402 else
5403 eval $cacheid=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 fi
5408
5409
5410 CFLAGS="$xorg_testset_save_CFLAGS"
5411
5412 eval supported=\$$cacheid
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5414 $as_echo "$supported" >&6; }
5415 if test "$supported" = "yes" ; then
5416 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5417 found="yes"
5418 fi
5419 fi
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 xorg_testset_save_CFLAGS="$CFLAGS"
5436
5437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5440 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5441 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 int i;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 xorg_cv_cc_flag_unknown_warning_option=yes
5450 else
5451 xorg_cv_cc_flag_unknown_warning_option=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5456 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5458 CFLAGS="$xorg_testset_save_CFLAGS"
5459 fi
5460
5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464 fi
5465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5467 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5468 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 int i;
5474 _ACEOF
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 xorg_cv_cc_flag_unused_command_line_argument=yes
5477 else
5478 xorg_cv_cc_flag_unused_command_line_argument=no
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5483 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5485 CFLAGS="$xorg_testset_save_CFLAGS"
5486 fi
5487
5488 found="no"
5489
5490 if test $found = "no" ; then
5491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493 fi
5494
5495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5497 fi
5498
5499 CFLAGS="$CFLAGS -Wmissing-prototypes"
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5502 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5503 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5504 if eval \${$cacheid+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 int i;
5510 int
5511 main ()
5512 {
5513
5514 ;
5515 return 0;
5516 }
5517 _ACEOF
5518 if ac_fn_c_try_link "$LINENO"; then :
5519 eval $cacheid=yes
5520 else
5521 eval $cacheid=no
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525 fi
5526
5527
5528 CFLAGS="$xorg_testset_save_CFLAGS"
5529
5530 eval supported=\$$cacheid
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5532 $as_echo "$supported" >&6; }
5533 if test "$supported" = "yes" ; then
5534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5535 found="yes"
5536 fi
5537 fi
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 xorg_testset_save_CFLAGS="$CFLAGS"
5554
5555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 int i;
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 xorg_cv_cc_flag_unknown_warning_option=yes
5568 else
5569 xorg_cv_cc_flag_unknown_warning_option=no
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5576 CFLAGS="$xorg_testset_save_CFLAGS"
5577 fi
5578
5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582 fi
5583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 int i;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 xorg_cv_cc_flag_unused_command_line_argument=yes
5595 else
5596 xorg_cv_cc_flag_unused_command_line_argument=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5603 CFLAGS="$xorg_testset_save_CFLAGS"
5604 fi
5605
5606 found="no"
5607
5608 if test $found = "no" ; then
5609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611 fi
5612
5613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5615 fi
5616
5617 CFLAGS="$CFLAGS -Wnested-externs"
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5620 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5621 cacheid=xorg_cv_cc_flag__Wnested_externs
5622 if eval \${$cacheid+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 int i;
5628 int
5629 main ()
5630 {
5631
5632 ;
5633 return 0;
5634 }
5635 _ACEOF
5636 if ac_fn_c_try_link "$LINENO"; then :
5637 eval $cacheid=yes
5638 else
5639 eval $cacheid=no
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5643 fi
5644
5645
5646 CFLAGS="$xorg_testset_save_CFLAGS"
5647
5648 eval supported=\$$cacheid
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5650 $as_echo "$supported" >&6; }
5651 if test "$supported" = "yes" ; then
5652 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5653 found="yes"
5654 fi
5655 fi
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 xorg_testset_save_CFLAGS="$CFLAGS"
5672
5673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 int i;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 xorg_cv_cc_flag_unknown_warning_option=yes
5686 else
5687 xorg_cv_cc_flag_unknown_warning_option=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695 fi
5696
5697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700 fi
5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 int i;
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 xorg_cv_cc_flag_unused_command_line_argument=yes
5713 else
5714 xorg_cv_cc_flag_unused_command_line_argument=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 found="no"
5725
5726 if test $found = "no" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 fi
5734
5735 CFLAGS="$CFLAGS -Wbad-function-cast"
5736
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5738 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5739 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5740 if eval \${$cacheid+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 int i;
5746 int
5747 main ()
5748 {
5749
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 eval $cacheid=yes
5756 else
5757 eval $cacheid=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 fi
5762
5763
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765
5766 eval supported=\$$cacheid
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5768 $as_echo "$supported" >&6; }
5769 if test "$supported" = "yes" ; then
5770 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5771 found="yes"
5772 fi
5773 fi
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 xorg_testset_save_CFLAGS="$CFLAGS"
5790
5791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 int i;
5801 _ACEOF
5802 if ac_fn_c_try_compile "$LINENO"; then :
5803 xorg_cv_cc_flag_unknown_warning_option=yes
5804 else
5805 xorg_cv_cc_flag_unknown_warning_option=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5812 CFLAGS="$xorg_testset_save_CFLAGS"
5813 fi
5814
5815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 fi
5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 int i;
5828 _ACEOF
5829 if ac_fn_c_try_compile "$LINENO"; then :
5830 xorg_cv_cc_flag_unused_command_line_argument=yes
5831 else
5832 xorg_cv_cc_flag_unused_command_line_argument=no
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5839 CFLAGS="$xorg_testset_save_CFLAGS"
5840 fi
5841
5842 found="no"
5843
5844 if test $found = "no" ; then
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 fi
5848
5849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5851 fi
5852
5853 CFLAGS="$CFLAGS -Wold-style-definition"
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5856 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5857 cacheid=xorg_cv_cc_flag__Wold_style_definition
5858 if eval \${$cacheid+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 int i;
5864 int
5865 main ()
5866 {
5867
5868 ;
5869 return 0;
5870 }
5871 _ACEOF
5872 if ac_fn_c_try_link "$LINENO"; then :
5873 eval $cacheid=yes
5874 else
5875 eval $cacheid=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879 fi
5880
5881
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883
5884 eval supported=\$$cacheid
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5886 $as_echo "$supported" >&6; }
5887 if test "$supported" = "yes" ; then
5888 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5889 found="yes"
5890 fi
5891 fi
5892
5893 if test $found = "no" ; then
5894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896 fi
5897
5898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900 fi
5901
5902 CFLAGS="$CFLAGS -fd"
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5905 $as_echo_n "checking if $CC supports -fd... " >&6; }
5906 cacheid=xorg_cv_cc_flag__fd
5907 if eval \${$cacheid+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 int i;
5913 int
5914 main ()
5915 {
5916
5917 ;
5918 return 0;
5919 }
5920 _ACEOF
5921 if ac_fn_c_try_link "$LINENO"; then :
5922 eval $cacheid=yes
5923 else
5924 eval $cacheid=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext \
5927 conftest$ac_exeext conftest.$ac_ext
5928 fi
5929
5930
5931 CFLAGS="$xorg_testset_save_CFLAGS"
5932
5933 eval supported=\$$cacheid
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5935 $as_echo "$supported" >&6; }
5936 if test "$supported" = "yes" ; then
5937 BASE_CFLAGS="$BASE_CFLAGS -fd"
5938 found="yes"
5939 fi
5940 fi
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 xorg_testset_save_CFLAGS="$CFLAGS"
5957
5958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 int i;
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 xorg_cv_cc_flag_unknown_warning_option=yes
5971 else
5972 xorg_cv_cc_flag_unknown_warning_option=no
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5979 CFLAGS="$xorg_testset_save_CFLAGS"
5980 fi
5981
5982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985 fi
5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 xorg_cv_cc_flag_unused_command_line_argument=yes
5998 else
5999 xorg_cv_cc_flag_unused_command_line_argument=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007 fi
6008
6009 found="no"
6010
6011 if test $found = "no" ; then
6012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014 fi
6015
6016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6018 fi
6019
6020 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6021
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6023 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6024 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6025 if eval \${$cacheid+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 int i;
6031 int
6032 main ()
6033 {
6034
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 if ac_fn_c_try_link "$LINENO"; then :
6040 eval $cacheid=yes
6041 else
6042 eval $cacheid=no
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6046 fi
6047
6048
6049 CFLAGS="$xorg_testset_save_CFLAGS"
6050
6051 eval supported=\$$cacheid
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6053 $as_echo "$supported" >&6; }
6054 if test "$supported" = "yes" ; then
6055 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6056 found="yes"
6057 fi
6058 fi
6059
6060
6061
6062
6063
6064 # This chunk adds additional warnings that could catch undesired effects.
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 int i;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 xorg_cv_cc_flag_unknown_warning_option=yes
6093 else
6094 xorg_cv_cc_flag_unknown_warning_option=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6102 fi
6103
6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107 fi
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 int i;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 xorg_cv_cc_flag_unused_command_line_argument=yes
6120 else
6121 xorg_cv_cc_flag_unused_command_line_argument=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6129 fi
6130
6131 found="no"
6132
6133 if test $found = "no" ; then
6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140 fi
6141
6142 CFLAGS="$CFLAGS -Wunused"
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6145 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6146 cacheid=xorg_cv_cc_flag__Wunused
6147 if eval \${$cacheid+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 int i;
6153 int
6154 main ()
6155 {
6156
6157 ;
6158 return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_c_try_link "$LINENO"; then :
6162 eval $cacheid=yes
6163 else
6164 eval $cacheid=no
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6168 fi
6169
6170
6171 CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173 eval supported=\$$cacheid
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 $as_echo "$supported" >&6; }
6176 if test "$supported" = "yes" ; then
6177 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6178 found="yes"
6179 fi
6180 fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 int i;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 xorg_cv_cc_flag_unknown_warning_option=yes
6211 else
6212 xorg_cv_cc_flag_unknown_warning_option=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6220 fi
6221
6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 fi
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 int i;
6235 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 xorg_cv_cc_flag_unused_command_line_argument=yes
6238 else
6239 xorg_cv_cc_flag_unused_command_line_argument=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6247 fi
6248
6249 found="no"
6250
6251 if test $found = "no" ; then
6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254 fi
6255
6256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258 fi
6259
6260 CFLAGS="$CFLAGS -Wuninitialized"
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6263 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6264 cacheid=xorg_cv_cc_flag__Wuninitialized
6265 if eval \${$cacheid+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 int i;
6271 int
6272 main ()
6273 {
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_c_try_link "$LINENO"; then :
6280 eval $cacheid=yes
6281 else
6282 eval $cacheid=no
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286 fi
6287
6288
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291 eval supported=\$$cacheid
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 $as_echo "$supported" >&6; }
6294 if test "$supported" = "yes" ; then
6295 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6296 found="yes"
6297 fi
6298 fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 int i;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 xorg_cv_cc_flag_unknown_warning_option=yes
6329 else
6330 xorg_cv_cc_flag_unknown_warning_option=no
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337 CFLAGS="$xorg_testset_save_CFLAGS"
6338 fi
6339
6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343 fi
6344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 int i;
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355 xorg_cv_cc_flag_unused_command_line_argument=yes
6356 else
6357 xorg_cv_cc_flag_unused_command_line_argument=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6365 fi
6366
6367 found="no"
6368
6369 if test $found = "no" ; then
6370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372 fi
6373
6374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376 fi
6377
6378 CFLAGS="$CFLAGS -Wshadow"
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6381 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6382 cacheid=xorg_cv_cc_flag__Wshadow
6383 if eval \${$cacheid+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 int i;
6389 int
6390 main ()
6391 {
6392
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_link "$LINENO"; then :
6398 eval $cacheid=yes
6399 else
6400 eval $cacheid=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
6404 fi
6405
6406
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409 eval supported=\$$cacheid
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411 $as_echo "$supported" >&6; }
6412 if test "$supported" = "yes" ; then
6413 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6414 found="yes"
6415 fi
6416 fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 xorg_cv_cc_flag_unknown_warning_option=yes
6447 else
6448 xorg_cv_cc_flag_unknown_warning_option=no
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455 CFLAGS="$xorg_testset_save_CFLAGS"
6456 fi
6457
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461 fi
6462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 int i;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 xorg_cv_cc_flag_unused_command_line_argument=yes
6474 else
6475 xorg_cv_cc_flag_unused_command_line_argument=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6483 fi
6484
6485 found="no"
6486
6487 if test $found = "no" ; then
6488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490 fi
6491
6492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494 fi
6495
6496 CFLAGS="$CFLAGS -Wmissing-noreturn"
6497
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6499 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6500 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6501 if eval \${$cacheid+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 int i;
6507 int
6508 main ()
6509 {
6510
6511 ;
6512 return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_link "$LINENO"; then :
6516 eval $cacheid=yes
6517 else
6518 eval $cacheid=no
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 fi
6523
6524
6525 CFLAGS="$xorg_testset_save_CFLAGS"
6526
6527 eval supported=\$$cacheid
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529 $as_echo "$supported" >&6; }
6530 if test "$supported" = "yes" ; then
6531 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6532 found="yes"
6533 fi
6534 fi
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 xorg_testset_save_CFLAGS="$CFLAGS"
6551
6552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 int i;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 xorg_cv_cc_flag_unknown_warning_option=yes
6565 else
6566 xorg_cv_cc_flag_unknown_warning_option=no
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6573 CFLAGS="$xorg_testset_save_CFLAGS"
6574 fi
6575
6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579 fi
6580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 int i;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 xorg_cv_cc_flag_unused_command_line_argument=yes
6592 else
6593 xorg_cv_cc_flag_unused_command_line_argument=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6601 fi
6602
6603 found="no"
6604
6605 if test $found = "no" ; then
6606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608 fi
6609
6610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612 fi
6613
6614 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6615
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6617 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6618 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6619 if eval \${$cacheid+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624 int i;
6625 int
6626 main ()
6627 {
6628
6629 ;
6630 return 0;
6631 }
6632 _ACEOF
6633 if ac_fn_c_try_link "$LINENO"; then :
6634 eval $cacheid=yes
6635 else
6636 eval $cacheid=no
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6640 fi
6641
6642
6643 CFLAGS="$xorg_testset_save_CFLAGS"
6644
6645 eval supported=\$$cacheid
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6647 $as_echo "$supported" >&6; }
6648 if test "$supported" = "yes" ; then
6649 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6650 found="yes"
6651 fi
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668 xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 xorg_cv_cc_flag_unknown_warning_option=yes
6683 else
6684 xorg_cv_cc_flag_unknown_warning_option=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697 fi
6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 int i;
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 xorg_cv_cc_flag_unused_command_line_argument=yes
6710 else
6711 xorg_cv_cc_flag_unused_command_line_argument=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718 CFLAGS="$xorg_testset_save_CFLAGS"
6719 fi
6720
6721 found="no"
6722
6723 if test $found = "no" ; then
6724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726 fi
6727
6728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730 fi
6731
6732 CFLAGS="$CFLAGS -Wredundant-decls"
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6735 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6736 cacheid=xorg_cv_cc_flag__Wredundant_decls
6737 if eval \${$cacheid+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 int i;
6743 int
6744 main ()
6745 {
6746
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"; then :
6752 eval $cacheid=yes
6753 else
6754 eval $cacheid=no
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext \
6757 conftest$ac_exeext conftest.$ac_ext
6758 fi
6759
6760
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763 eval supported=\$$cacheid
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765 $as_echo "$supported" >&6; }
6766 if test "$supported" = "yes" ; then
6767 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6768 found="yes"
6769 fi
6770 fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786 xorg_testset_save_CFLAGS="$CFLAGS"
6787
6788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 int i;
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 xorg_cv_cc_flag_unknown_warning_option=yes
6801 else
6802 xorg_cv_cc_flag_unknown_warning_option=no
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6809 CFLAGS="$xorg_testset_save_CFLAGS"
6810 fi
6811
6812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815 fi
6816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int i;
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 xorg_cv_cc_flag_unused_command_line_argument=yes
6828 else
6829 xorg_cv_cc_flag_unused_command_line_argument=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6836 CFLAGS="$xorg_testset_save_CFLAGS"
6837 fi
6838
6839 found="no"
6840
6841 if test $found = "no" ; then
6842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6844 fi
6845
6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6848 fi
6849
6850 CFLAGS="$CFLAGS -Wlogical-op"
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6853 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6854 cacheid=xorg_cv_cc_flag__Wlogical_op
6855 if eval \${$cacheid+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 int i;
6861 int
6862 main ()
6863 {
6864
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_link "$LINENO"; then :
6870 eval $cacheid=yes
6871 else
6872 eval $cacheid=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6876 fi
6877
6878
6879 CFLAGS="$xorg_testset_save_CFLAGS"
6880
6881 eval supported=\$$cacheid
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6883 $as_echo "$supported" >&6; }
6884 if test "$supported" = "yes" ; then
6885 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6886 found="yes"
6887 fi
6888 fi
6889
6890
6891
6892 # These are currently disabled because they are noisy. They will be enabled
6893 # in the future once the codebase is sufficiently modernized to silence
6894 # them. For now, I don't want them to drown out the other warnings.
6895 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6896 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6897 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6898
6899 # Turn some warnings into errors, so we don't accidently get successful builds
6900 # when there are problems that should be fixed.
6901
6902 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 xorg_testset_save_CFLAGS="$CFLAGS"
6917
6918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 int i;
6928 _ACEOF
6929 if ac_fn_c_try_compile "$LINENO"; then :
6930 xorg_cv_cc_flag_unknown_warning_option=yes
6931 else
6932 xorg_cv_cc_flag_unknown_warning_option=no
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6939 CFLAGS="$xorg_testset_save_CFLAGS"
6940 fi
6941
6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945 fi
6946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 int i;
6955 _ACEOF
6956 if ac_fn_c_try_compile "$LINENO"; then :
6957 xorg_cv_cc_flag_unused_command_line_argument=yes
6958 else
6959 xorg_cv_cc_flag_unused_command_line_argument=no
6960 fi
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6966 CFLAGS="$xorg_testset_save_CFLAGS"
6967 fi
6968
6969 found="no"
6970
6971 if test $found = "no" ; then
6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6974 fi
6975
6976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6978 fi
6979
6980 CFLAGS="$CFLAGS -Werror=implicit"
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6983 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6984 cacheid=xorg_cv_cc_flag__Werror_implicit
6985 if eval \${$cacheid+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6990 int i;
6991 int
6992 main ()
6993 {
6994
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 if ac_fn_c_try_link "$LINENO"; then :
7000 eval $cacheid=yes
7001 else
7002 eval $cacheid=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 fi
7007
7008
7009 CFLAGS="$xorg_testset_save_CFLAGS"
7010
7011 eval supported=\$$cacheid
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7013 $as_echo "$supported" >&6; }
7014 if test "$supported" = "yes" ; then
7015 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7016 found="yes"
7017 fi
7018 fi
7019
7020 if test $found = "no" ; then
7021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023 fi
7024
7025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027 fi
7028
7029 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7030
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7032 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7033 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7034 if eval \${$cacheid+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 int i;
7040 int
7041 main ()
7042 {
7043
7044 ;
7045 return 0;
7046 }
7047 _ACEOF
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 eval $cacheid=yes
7050 else
7051 eval $cacheid=no
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 fi
7056
7057
7058 CFLAGS="$xorg_testset_save_CFLAGS"
7059
7060 eval supported=\$$cacheid
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062 $as_echo "$supported" >&6; }
7063 if test "$supported" = "yes" ; then
7064 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7065 found="yes"
7066 fi
7067 fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 xorg_testset_save_CFLAGS="$CFLAGS"
7084
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 int i;
7095 _ACEOF
7096 if ac_fn_c_try_compile "$LINENO"; then :
7097 xorg_cv_cc_flag_unknown_warning_option=yes
7098 else
7099 xorg_cv_cc_flag_unknown_warning_option=no
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106 CFLAGS="$xorg_testset_save_CFLAGS"
7107 fi
7108
7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112 fi
7113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 int i;
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124 xorg_cv_cc_flag_unused_command_line_argument=yes
7125 else
7126 xorg_cv_cc_flag_unused_command_line_argument=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7134 fi
7135
7136 found="no"
7137
7138 if test $found = "no" ; then
7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141 fi
7142
7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145 fi
7146
7147 CFLAGS="$CFLAGS -Werror=nonnull"
7148
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7150 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7151 cacheid=xorg_cv_cc_flag__Werror_nonnull
7152 if eval \${$cacheid+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 int i;
7158 int
7159 main ()
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167 eval $cacheid=yes
7168 else
7169 eval $cacheid=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7173 fi
7174
7175
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7177
7178 eval supported=\$$cacheid
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180 $as_echo "$supported" >&6; }
7181 if test "$supported" = "yes" ; then
7182 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7183 found="yes"
7184 fi
7185 fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 xorg_testset_save_CFLAGS="$CFLAGS"
7202
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 int i;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 xorg_cv_cc_flag_unknown_warning_option=yes
7216 else
7217 xorg_cv_cc_flag_unknown_warning_option=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224 CFLAGS="$xorg_testset_save_CFLAGS"
7225 fi
7226
7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230 fi
7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239 int i;
7240 _ACEOF
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242 xorg_cv_cc_flag_unused_command_line_argument=yes
7243 else
7244 xorg_cv_cc_flag_unused_command_line_argument=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7252 fi
7253
7254 found="no"
7255
7256 if test $found = "no" ; then
7257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259 fi
7260
7261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263 fi
7264
7265 CFLAGS="$CFLAGS -Werror=init-self"
7266
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7268 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7269 cacheid=xorg_cv_cc_flag__Werror_init_self
7270 if eval \${$cacheid+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 int i;
7276 int
7277 main ()
7278 {
7279
7280 ;
7281 return 0;
7282 }
7283 _ACEOF
7284 if ac_fn_c_try_link "$LINENO"; then :
7285 eval $cacheid=yes
7286 else
7287 eval $cacheid=no
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 fi
7292
7293
7294 CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296 eval supported=\$$cacheid
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 $as_echo "$supported" >&6; }
7299 if test "$supported" = "yes" ; then
7300 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7301 found="yes"
7302 fi
7303 fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319 xorg_testset_save_CFLAGS="$CFLAGS"
7320
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 xorg_cv_cc_flag_unknown_warning_option=yes
7334 else
7335 xorg_cv_cc_flag_unknown_warning_option=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7343 fi
7344
7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348 fi
7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 int i;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360 xorg_cv_cc_flag_unused_command_line_argument=yes
7361 else
7362 xorg_cv_cc_flag_unused_command_line_argument=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7370 fi
7371
7372 found="no"
7373
7374 if test $found = "no" ; then
7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377 fi
7378
7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381 fi
7382
7383 CFLAGS="$CFLAGS -Werror=main"
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7386 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7387 cacheid=xorg_cv_cc_flag__Werror_main
7388 if eval \${$cacheid+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 int i;
7394 int
7395 main ()
7396 {
7397
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_c_try_link "$LINENO"; then :
7403 eval $cacheid=yes
7404 else
7405 eval $cacheid=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7409 fi
7410
7411
7412 CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414 eval supported=\$$cacheid
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416 $as_echo "$supported" >&6; }
7417 if test "$supported" = "yes" ; then
7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7419 found="yes"
7420 fi
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 xorg_testset_save_CFLAGS="$CFLAGS"
7438
7439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 int i;
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451 xorg_cv_cc_flag_unknown_warning_option=yes
7452 else
7453 xorg_cv_cc_flag_unknown_warning_option=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460 CFLAGS="$xorg_testset_save_CFLAGS"
7461 fi
7462
7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466 fi
7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 int i;
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 xorg_cv_cc_flag_unused_command_line_argument=yes
7479 else
7480 xorg_cv_cc_flag_unused_command_line_argument=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 found="no"
7491
7492 if test $found = "no" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496
7497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499 fi
7500
7501 CFLAGS="$CFLAGS -Werror=missing-braces"
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7504 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7505 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7506 if eval \${$cacheid+:} false; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 int i;
7512 int
7513 main ()
7514 {
7515
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"; then :
7521 eval $cacheid=yes
7522 else
7523 eval $cacheid=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 fi
7528
7529
7530 CFLAGS="$xorg_testset_save_CFLAGS"
7531
7532 eval supported=\$$cacheid
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7534 $as_echo "$supported" >&6; }
7535 if test "$supported" = "yes" ; then
7536 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7537 found="yes"
7538 fi
7539 fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555 xorg_testset_save_CFLAGS="$CFLAGS"
7556
7557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569 xorg_cv_cc_flag_unknown_warning_option=yes
7570 else
7571 xorg_cv_cc_flag_unknown_warning_option=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579 fi
7580
7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584 fi
7585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 int i;
7594 _ACEOF
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 xorg_cv_cc_flag_unused_command_line_argument=yes
7597 else
7598 xorg_cv_cc_flag_unused_command_line_argument=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7605 CFLAGS="$xorg_testset_save_CFLAGS"
7606 fi
7607
7608 found="no"
7609
7610 if test $found = "no" ; then
7611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613 fi
7614
7615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7617 fi
7618
7619 CFLAGS="$CFLAGS -Werror=sequence-point"
7620
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7622 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7623 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7624 if eval \${$cacheid+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 int i;
7630 int
7631 main ()
7632 {
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_link "$LINENO"; then :
7639 eval $cacheid=yes
7640 else
7641 eval $cacheid=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 fi
7646
7647
7648 CFLAGS="$xorg_testset_save_CFLAGS"
7649
7650 eval supported=\$$cacheid
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7652 $as_echo "$supported" >&6; }
7653 if test "$supported" = "yes" ; then
7654 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7655 found="yes"
7656 fi
7657 fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 xorg_testset_save_CFLAGS="$CFLAGS"
7674
7675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 int i;
7685 _ACEOF
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687 xorg_cv_cc_flag_unknown_warning_option=yes
7688 else
7689 xorg_cv_cc_flag_unknown_warning_option=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697 fi
7698
7699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 fi
7703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 int i;
7712 _ACEOF
7713 if ac_fn_c_try_compile "$LINENO"; then :
7714 xorg_cv_cc_flag_unused_command_line_argument=yes
7715 else
7716 xorg_cv_cc_flag_unused_command_line_argument=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7723 CFLAGS="$xorg_testset_save_CFLAGS"
7724 fi
7725
7726 found="no"
7727
7728 if test $found = "no" ; then
7729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731 fi
7732
7733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7735 fi
7736
7737 CFLAGS="$CFLAGS -Werror=return-type"
7738
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7740 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7741 cacheid=xorg_cv_cc_flag__Werror_return_type
7742 if eval \${$cacheid+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 int i;
7748 int
7749 main ()
7750 {
7751
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_link "$LINENO"; then :
7757 eval $cacheid=yes
7758 else
7759 eval $cacheid=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext \
7762 conftest$ac_exeext conftest.$ac_ext
7763 fi
7764
7765
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767
7768 eval supported=\$$cacheid
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7770 $as_echo "$supported" >&6; }
7771 if test "$supported" = "yes" ; then
7772 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7773 found="yes"
7774 fi
7775 fi
7776
7777 if test $found = "no" ; then
7778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780 fi
7781
7782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784 fi
7785
7786 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7787
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7789 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7790 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7791 if eval \${$cacheid+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 int i;
7797 int
7798 main ()
7799 {
7800
7801 ;
7802 return 0;
7803 }
7804 _ACEOF
7805 if ac_fn_c_try_link "$LINENO"; then :
7806 eval $cacheid=yes
7807 else
7808 eval $cacheid=no
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7812 fi
7813
7814
7815 CFLAGS="$xorg_testset_save_CFLAGS"
7816
7817 eval supported=\$$cacheid
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819 $as_echo "$supported" >&6; }
7820 if test "$supported" = "yes" ; then
7821 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7822 found="yes"
7823 fi
7824 fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7841
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 int i;
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 xorg_cv_cc_flag_unknown_warning_option=yes
7855 else
7856 xorg_cv_cc_flag_unknown_warning_option=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863 CFLAGS="$xorg_testset_save_CFLAGS"
7864 fi
7865
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869 fi
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 int i;
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881 xorg_cv_cc_flag_unused_command_line_argument=yes
7882 else
7883 xorg_cv_cc_flag_unused_command_line_argument=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7891 fi
7892
7893 found="no"
7894
7895 if test $found = "no" ; then
7896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898 fi
7899
7900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902 fi
7903
7904 CFLAGS="$CFLAGS -Werror=trigraphs"
7905
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7907 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7908 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7909 if eval \${$cacheid+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 int i;
7915 int
7916 main ()
7917 {
7918
7919 ;
7920 return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 eval $cacheid=yes
7925 else
7926 eval $cacheid=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 fi
7931
7932
7933 CFLAGS="$xorg_testset_save_CFLAGS"
7934
7935 eval supported=\$$cacheid
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937 $as_echo "$supported" >&6; }
7938 if test "$supported" = "yes" ; then
7939 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7940 found="yes"
7941 fi
7942 fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 xorg_testset_save_CFLAGS="$CFLAGS"
7959
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 int i;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 xorg_cv_cc_flag_unknown_warning_option=yes
7973 else
7974 xorg_cv_cc_flag_unknown_warning_option=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981 CFLAGS="$xorg_testset_save_CFLAGS"
7982 fi
7983
7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987 fi
7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 int i;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 xorg_cv_cc_flag_unused_command_line_argument=yes
8000 else
8001 xorg_cv_cc_flag_unused_command_line_argument=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009 fi
8010
8011 found="no"
8012
8013 if test $found = "no" ; then
8014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016 fi
8017
8018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020 fi
8021
8022 CFLAGS="$CFLAGS -Werror=array-bounds"
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8025 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8026 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8027 if eval \${$cacheid+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032 int i;
8033 int
8034 main ()
8035 {
8036
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_link "$LINENO"; then :
8042 eval $cacheid=yes
8043 else
8044 eval $cacheid=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
8048 fi
8049
8050
8051 CFLAGS="$xorg_testset_save_CFLAGS"
8052
8053 eval supported=\$$cacheid
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055 $as_echo "$supported" >&6; }
8056 if test "$supported" = "yes" ; then
8057 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8058 found="yes"
8059 fi
8060 fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 xorg_testset_save_CFLAGS="$CFLAGS"
8077
8078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 int i;
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 xorg_cv_cc_flag_unknown_warning_option=yes
8091 else
8092 xorg_cv_cc_flag_unknown_warning_option=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100 fi
8101
8102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105 fi
8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 int i;
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117 xorg_cv_cc_flag_unused_command_line_argument=yes
8118 else
8119 xorg_cv_cc_flag_unused_command_line_argument=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127 fi
8128
8129 found="no"
8130
8131 if test $found = "no" ; then
8132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8134 fi
8135
8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8138 fi
8139
8140 CFLAGS="$CFLAGS -Werror=write-strings"
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8143 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8144 cacheid=xorg_cv_cc_flag__Werror_write_strings
8145 if eval \${$cacheid+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 int i;
8151 int
8152 main ()
8153 {
8154
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_link "$LINENO"; then :
8160 eval $cacheid=yes
8161 else
8162 eval $cacheid=no
8163 fi
8164 rm -f core conftest.err conftest.$ac_objext \
8165 conftest$ac_exeext conftest.$ac_ext
8166 fi
8167
8168
8169 CFLAGS="$xorg_testset_save_CFLAGS"
8170
8171 eval supported=\$$cacheid
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8173 $as_echo "$supported" >&6; }
8174 if test "$supported" = "yes" ; then
8175 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8176 found="yes"
8177 fi
8178 fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194 xorg_testset_save_CFLAGS="$CFLAGS"
8195
8196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 int i;
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208 xorg_cv_cc_flag_unknown_warning_option=yes
8209 else
8210 xorg_cv_cc_flag_unknown_warning_option=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223 fi
8224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 int i;
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235 xorg_cv_cc_flag_unused_command_line_argument=yes
8236 else
8237 xorg_cv_cc_flag_unused_command_line_argument=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8244 CFLAGS="$xorg_testset_save_CFLAGS"
8245 fi
8246
8247 found="no"
8248
8249 if test $found = "no" ; then
8250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8252 fi
8253
8254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8256 fi
8257
8258 CFLAGS="$CFLAGS -Werror=address"
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8261 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8262 cacheid=xorg_cv_cc_flag__Werror_address
8263 if eval \${$cacheid+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 int i;
8269 int
8270 main ()
8271 {
8272
8273 ;
8274 return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278 eval $cacheid=yes
8279 else
8280 eval $cacheid=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284 fi
8285
8286
8287 CFLAGS="$xorg_testset_save_CFLAGS"
8288
8289 eval supported=\$$cacheid
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8291 $as_echo "$supported" >&6; }
8292 if test "$supported" = "yes" ; then
8293 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8294 found="yes"
8295 fi
8296 fi
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312 xorg_testset_save_CFLAGS="$CFLAGS"
8313
8314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 _ACEOF
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 xorg_cv_cc_flag_unknown_warning_option=yes
8327 else
8328 xorg_cv_cc_flag_unknown_warning_option=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8335 CFLAGS="$xorg_testset_save_CFLAGS"
8336 fi
8337
8338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341 fi
8342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8350 int i;
8351 _ACEOF
8352 if ac_fn_c_try_compile "$LINENO"; then :
8353 xorg_cv_cc_flag_unused_command_line_argument=yes
8354 else
8355 xorg_cv_cc_flag_unused_command_line_argument=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8362 CFLAGS="$xorg_testset_save_CFLAGS"
8363 fi
8364
8365 found="no"
8366
8367 if test $found = "no" ; then
8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370 fi
8371
8372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374 fi
8375
8376 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8377
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8379 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8380 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8381 if eval \${$cacheid+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 int i;
8387 int
8388 main ()
8389 {
8390
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"; then :
8396 eval $cacheid=yes
8397 else
8398 eval $cacheid=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 fi
8403
8404
8405 CFLAGS="$xorg_testset_save_CFLAGS"
8406
8407 eval supported=\$$cacheid
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8409 $as_echo "$supported" >&6; }
8410 if test "$supported" = "yes" ; then
8411 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8412 found="yes"
8413 fi
8414 fi
8415
8416 if test $found = "no" ; then
8417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419 fi
8420
8421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423 fi
8424
8425 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8428 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8429 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8430 if eval \${$cacheid+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 int i;
8436 int
8437 main ()
8438 {
8439
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 eval $cacheid=yes
8446 else
8447 eval $cacheid=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 fi
8452
8453
8454 CFLAGS="$xorg_testset_save_CFLAGS"
8455
8456 eval supported=\$$cacheid
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8458 $as_echo "$supported" >&6; }
8459 if test "$supported" = "yes" ; then
8460 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8461 found="yes"
8462 fi
8463 fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479 xorg_testset_save_CFLAGS="$CFLAGS"
8480
8481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 int i;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 xorg_cv_cc_flag_unknown_warning_option=yes
8494 else
8495 xorg_cv_cc_flag_unknown_warning_option=no
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 fi
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8502 CFLAGS="$xorg_testset_save_CFLAGS"
8503 fi
8504
8505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508 fi
8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 int i;
8518 _ACEOF
8519 if ac_fn_c_try_compile "$LINENO"; then :
8520 xorg_cv_cc_flag_unused_command_line_argument=yes
8521 else
8522 xorg_cv_cc_flag_unused_command_line_argument=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 fi
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8529 CFLAGS="$xorg_testset_save_CFLAGS"
8530 fi
8531
8532 found="no"
8533
8534 if test $found = "no" ; then
8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537 fi
8538
8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541 fi
8542
8543 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8546 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8547 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8548 if eval \${$cacheid+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 int i;
8554 int
8555 main ()
8556 {
8557
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_link "$LINENO"; then :
8563 eval $cacheid=yes
8564 else
8565 eval $cacheid=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
8569 fi
8570
8571
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574 eval supported=\$$cacheid
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576 $as_echo "$supported" >&6; }
8577 if test "$supported" = "yes" ; then
8578 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8579 found="yes"
8580 fi
8581 fi
8582
8583 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8584 else
8585 { $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
8586 $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;}
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614 xorg_cv_cc_flag_unknown_warning_option=yes
8615 else
8616 xorg_cv_cc_flag_unknown_warning_option=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623 CFLAGS="$xorg_testset_save_CFLAGS"
8624 fi
8625
8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629 fi
8630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 int i;
8639 _ACEOF
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641 xorg_cv_cc_flag_unused_command_line_argument=yes
8642 else
8643 xorg_cv_cc_flag_unused_command_line_argument=no
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8651 fi
8652
8653 found="no"
8654
8655 if test $found = "no" ; then
8656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658 fi
8659
8660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662 fi
8663
8664 CFLAGS="$CFLAGS -Wimplicit"
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8667 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8668 cacheid=xorg_cv_cc_flag__Wimplicit
8669 if eval \${$cacheid+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8674 int i;
8675 int
8676 main ()
8677 {
8678
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_link "$LINENO"; then :
8684 eval $cacheid=yes
8685 else
8686 eval $cacheid=no
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 fi
8691
8692
8693 CFLAGS="$xorg_testset_save_CFLAGS"
8694
8695 eval supported=\$$cacheid
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697 $as_echo "$supported" >&6; }
8698 if test "$supported" = "yes" ; then
8699 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8700 found="yes"
8701 fi
8702 fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 xorg_testset_save_CFLAGS="$CFLAGS"
8719
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 xorg_cv_cc_flag_unknown_warning_option=yes
8733 else
8734 xorg_cv_cc_flag_unknown_warning_option=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741 CFLAGS="$xorg_testset_save_CFLAGS"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747 fi
8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756 int i;
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 xorg_cv_cc_flag_unused_command_line_argument=yes
8760 else
8761 xorg_cv_cc_flag_unused_command_line_argument=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768 CFLAGS="$xorg_testset_save_CFLAGS"
8769 fi
8770
8771 found="no"
8772
8773 if test $found = "no" ; then
8774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776 fi
8777
8778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780 fi
8781
8782 CFLAGS="$CFLAGS -Wnonnull"
8783
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8785 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8786 cacheid=xorg_cv_cc_flag__Wnonnull
8787 if eval \${$cacheid+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 int i;
8793 int
8794 main ()
8795 {
8796
8797 ;
8798 return 0;
8799 }
8800 _ACEOF
8801 if ac_fn_c_try_link "$LINENO"; then :
8802 eval $cacheid=yes
8803 else
8804 eval $cacheid=no
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8808 fi
8809
8810
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813 eval supported=\$$cacheid
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815 $as_echo "$supported" >&6; }
8816 if test "$supported" = "yes" ; then
8817 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8818 found="yes"
8819 fi
8820 fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 xorg_cv_cc_flag_unknown_warning_option=yes
8851 else
8852 xorg_cv_cc_flag_unknown_warning_option=no
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859 CFLAGS="$xorg_testset_save_CFLAGS"
8860 fi
8861
8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865 fi
8866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 int i;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 xorg_cv_cc_flag_unused_command_line_argument=yes
8878 else
8879 xorg_cv_cc_flag_unused_command_line_argument=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8887 fi
8888
8889 found="no"
8890
8891 if test $found = "no" ; then
8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 fi
8895
8896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898 fi
8899
8900 CFLAGS="$CFLAGS -Winit-self"
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8903 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8904 cacheid=xorg_cv_cc_flag__Winit_self
8905 if eval \${$cacheid+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 int i;
8911 int
8912 main ()
8913 {
8914
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"; then :
8920 eval $cacheid=yes
8921 else
8922 eval $cacheid=no
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 fi
8927
8928
8929 CFLAGS="$xorg_testset_save_CFLAGS"
8930
8931 eval supported=\$$cacheid
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933 $as_echo "$supported" >&6; }
8934 if test "$supported" = "yes" ; then
8935 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8936 found="yes"
8937 fi
8938 fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 xorg_testset_save_CFLAGS="$CFLAGS"
8955
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int i;
8966 _ACEOF
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 xorg_cv_cc_flag_unknown_warning_option=yes
8969 else
8970 xorg_cv_cc_flag_unknown_warning_option=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8978 fi
8979
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983 fi
8984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 int i;
8993 _ACEOF
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995 xorg_cv_cc_flag_unused_command_line_argument=yes
8996 else
8997 xorg_cv_cc_flag_unused_command_line_argument=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9005 fi
9006
9007 found="no"
9008
9009 if test $found = "no" ; then
9010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012 fi
9013
9014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016 fi
9017
9018 CFLAGS="$CFLAGS -Wmain"
9019
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9021 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9022 cacheid=xorg_cv_cc_flag__Wmain
9023 if eval \${$cacheid+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028 int i;
9029 int
9030 main ()
9031 {
9032
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038 eval $cacheid=yes
9039 else
9040 eval $cacheid=no
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044 fi
9045
9046
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049 eval supported=\$$cacheid
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 $as_echo "$supported" >&6; }
9052 if test "$supported" = "yes" ; then
9053 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9054 found="yes"
9055 fi
9056 fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072 xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086 xorg_cv_cc_flag_unknown_warning_option=yes
9087 else
9088 xorg_cv_cc_flag_unknown_warning_option=no
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9096 fi
9097
9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101 fi
9102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 int i;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 xorg_cv_cc_flag_unused_command_line_argument=yes
9114 else
9115 xorg_cv_cc_flag_unused_command_line_argument=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9123 fi
9124
9125 found="no"
9126
9127 if test $found = "no" ; then
9128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130 fi
9131
9132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134 fi
9135
9136 CFLAGS="$CFLAGS -Wmissing-braces"
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9139 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9140 cacheid=xorg_cv_cc_flag__Wmissing_braces
9141 if eval \${$cacheid+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 int i;
9147 int
9148 main ()
9149 {
9150
9151 ;
9152 return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156 eval $cacheid=yes
9157 else
9158 eval $cacheid=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 fi
9163
9164
9165 CFLAGS="$xorg_testset_save_CFLAGS"
9166
9167 eval supported=\$$cacheid
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169 $as_echo "$supported" >&6; }
9170 if test "$supported" = "yes" ; then
9171 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9172 found="yes"
9173 fi
9174 fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190 xorg_testset_save_CFLAGS="$CFLAGS"
9191
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int i;
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 xorg_cv_cc_flag_unknown_warning_option=yes
9205 else
9206 xorg_cv_cc_flag_unknown_warning_option=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219 fi
9220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 int i;
9229 _ACEOF
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231 xorg_cv_cc_flag_unused_command_line_argument=yes
9232 else
9233 xorg_cv_cc_flag_unused_command_line_argument=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9241 fi
9242
9243 found="no"
9244
9245 if test $found = "no" ; then
9246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248 fi
9249
9250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252 fi
9253
9254 CFLAGS="$CFLAGS -Wsequence-point"
9255
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9257 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9258 cacheid=xorg_cv_cc_flag__Wsequence_point
9259 if eval \${$cacheid+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 int i;
9265 int
9266 main ()
9267 {
9268
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 eval $cacheid=yes
9275 else
9276 eval $cacheid=no
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 fi
9281
9282
9283 CFLAGS="$xorg_testset_save_CFLAGS"
9284
9285 eval supported=\$$cacheid
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287 $as_echo "$supported" >&6; }
9288 if test "$supported" = "yes" ; then
9289 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9290 found="yes"
9291 fi
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 xorg_testset_save_CFLAGS="$CFLAGS"
9309
9310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 int i;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 xorg_cv_cc_flag_unknown_warning_option=yes
9323 else
9324 xorg_cv_cc_flag_unknown_warning_option=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9332 fi
9333
9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337 fi
9338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349 xorg_cv_cc_flag_unused_command_line_argument=yes
9350 else
9351 xorg_cv_cc_flag_unused_command_line_argument=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9359 fi
9360
9361 found="no"
9362
9363 if test $found = "no" ; then
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 fi
9367
9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370 fi
9371
9372 CFLAGS="$CFLAGS -Wreturn-type"
9373
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9375 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9376 cacheid=xorg_cv_cc_flag__Wreturn_type
9377 if eval \${$cacheid+:} false; then :
9378 $as_echo_n "(cached) " >&6
9379 else
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382 int i;
9383 int
9384 main ()
9385 {
9386
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392 eval $cacheid=yes
9393 else
9394 eval $cacheid=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 fi
9399
9400
9401 CFLAGS="$xorg_testset_save_CFLAGS"
9402
9403 eval supported=\$$cacheid
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405 $as_echo "$supported" >&6; }
9406 if test "$supported" = "yes" ; then
9407 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9408 found="yes"
9409 fi
9410 fi
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426 xorg_testset_save_CFLAGS="$CFLAGS"
9427
9428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 int i;
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 xorg_cv_cc_flag_unknown_warning_option=yes
9441 else
9442 xorg_cv_cc_flag_unknown_warning_option=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455 fi
9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 int i;
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 xorg_cv_cc_flag_unused_command_line_argument=yes
9468 else
9469 xorg_cv_cc_flag_unused_command_line_argument=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9477 fi
9478
9479 found="no"
9480
9481 if test $found = "no" ; then
9482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484 fi
9485
9486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488 fi
9489
9490 CFLAGS="$CFLAGS -Wtrigraphs"
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9493 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9494 cacheid=xorg_cv_cc_flag__Wtrigraphs
9495 if eval \${$cacheid+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 int i;
9501 int
9502 main ()
9503 {
9504
9505 ;
9506 return 0;
9507 }
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 eval $cacheid=yes
9511 else
9512 eval $cacheid=no
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 fi
9517
9518
9519 CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521 eval supported=\$$cacheid
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523 $as_echo "$supported" >&6; }
9524 if test "$supported" = "yes" ; then
9525 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9526 found="yes"
9527 fi
9528 fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int i;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558 xorg_cv_cc_flag_unknown_warning_option=yes
9559 else
9560 xorg_cv_cc_flag_unknown_warning_option=no
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567 CFLAGS="$xorg_testset_save_CFLAGS"
9568 fi
9569
9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573 fi
9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 int i;
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585 xorg_cv_cc_flag_unused_command_line_argument=yes
9586 else
9587 xorg_cv_cc_flag_unused_command_line_argument=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9595 fi
9596
9597 found="no"
9598
9599 if test $found = "no" ; then
9600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602 fi
9603
9604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606 fi
9607
9608 CFLAGS="$CFLAGS -Warray-bounds"
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9611 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9612 cacheid=xorg_cv_cc_flag__Warray_bounds
9613 if eval \${$cacheid+:} false; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 int i;
9619 int
9620 main ()
9621 {
9622
9623 ;
9624 return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628 eval $cacheid=yes
9629 else
9630 eval $cacheid=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 fi
9635
9636
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639 eval supported=\$$cacheid
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 $as_echo "$supported" >&6; }
9642 if test "$supported" = "yes" ; then
9643 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9644 found="yes"
9645 fi
9646 fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 int i;
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 xorg_cv_cc_flag_unknown_warning_option=yes
9677 else
9678 xorg_cv_cc_flag_unknown_warning_option=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9686 fi
9687
9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691 fi
9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 int i;
9701 _ACEOF
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703 xorg_cv_cc_flag_unused_command_line_argument=yes
9704 else
9705 xorg_cv_cc_flag_unused_command_line_argument=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9713 fi
9714
9715 found="no"
9716
9717 if test $found = "no" ; then
9718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720 fi
9721
9722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724 fi
9725
9726 CFLAGS="$CFLAGS -Wwrite-strings"
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9729 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9730 cacheid=xorg_cv_cc_flag__Wwrite_strings
9731 if eval \${$cacheid+:} false; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 int i;
9737 int
9738 main ()
9739 {
9740
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746 eval $cacheid=yes
9747 else
9748 eval $cacheid=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 fi
9753
9754
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9756
9757 eval supported=\$$cacheid
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759 $as_echo "$supported" >&6; }
9760 if test "$supported" = "yes" ; then
9761 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9762 found="yes"
9763 fi
9764 fi
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780 xorg_testset_save_CFLAGS="$CFLAGS"
9781
9782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int i;
9792 _ACEOF
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794 xorg_cv_cc_flag_unknown_warning_option=yes
9795 else
9796 xorg_cv_cc_flag_unknown_warning_option=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9804 fi
9805
9806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9809 fi
9810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 int i;
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821 xorg_cv_cc_flag_unused_command_line_argument=yes
9822 else
9823 xorg_cv_cc_flag_unused_command_line_argument=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9830 CFLAGS="$xorg_testset_save_CFLAGS"
9831 fi
9832
9833 found="no"
9834
9835 if test $found = "no" ; then
9836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838 fi
9839
9840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842 fi
9843
9844 CFLAGS="$CFLAGS -Waddress"
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9847 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9848 cacheid=xorg_cv_cc_flag__Waddress
9849 if eval \${$cacheid+:} false; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 int i;
9855 int
9856 main ()
9857 {
9858
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 if ac_fn_c_try_link "$LINENO"; then :
9864 eval $cacheid=yes
9865 else
9866 eval $cacheid=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 fi
9871
9872
9873 CFLAGS="$xorg_testset_save_CFLAGS"
9874
9875 eval supported=\$$cacheid
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9877 $as_echo "$supported" >&6; }
9878 if test "$supported" = "yes" ; then
9879 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9880 found="yes"
9881 fi
9882 fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898 xorg_testset_save_CFLAGS="$CFLAGS"
9899
9900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 int i;
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"; then :
9912 xorg_cv_cc_flag_unknown_warning_option=yes
9913 else
9914 xorg_cv_cc_flag_unknown_warning_option=no
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9921 CFLAGS="$xorg_testset_save_CFLAGS"
9922 fi
9923
9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9927 fi
9928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936 int i;
9937 _ACEOF
9938 if ac_fn_c_try_compile "$LINENO"; then :
9939 xorg_cv_cc_flag_unused_command_line_argument=yes
9940 else
9941 xorg_cv_cc_flag_unused_command_line_argument=no
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9948 CFLAGS="$xorg_testset_save_CFLAGS"
9949 fi
9950
9951 found="no"
9952
9953 if test $found = "no" ; then
9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956 fi
9957
9958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9960 fi
9961
9962 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9965 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9966 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9967 if eval \${$cacheid+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 int i;
9973 int
9974 main ()
9975 {
9976
9977 ;
9978 return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"; then :
9982 eval $cacheid=yes
9983 else
9984 eval $cacheid=no
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 fi
9989
9990
9991 CFLAGS="$xorg_testset_save_CFLAGS"
9992
9993 eval supported=\$$cacheid
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9995 $as_echo "$supported" >&6; }
9996 if test "$supported" = "yes" ; then
9997 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9998 found="yes"
9999 fi
10000 fi
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016 xorg_testset_save_CFLAGS="$CFLAGS"
10017
10018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int i;
10028 _ACEOF
10029 if ac_fn_c_try_compile "$LINENO"; then :
10030 xorg_cv_cc_flag_unknown_warning_option=yes
10031 else
10032 xorg_cv_cc_flag_unknown_warning_option=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 fi
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10039 CFLAGS="$xorg_testset_save_CFLAGS"
10040 fi
10041
10042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045 fi
10046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054 int i;
10055 _ACEOF
10056 if ac_fn_c_try_compile "$LINENO"; then :
10057 xorg_cv_cc_flag_unused_command_line_argument=yes
10058 else
10059 xorg_cv_cc_flag_unused_command_line_argument=no
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10066 CFLAGS="$xorg_testset_save_CFLAGS"
10067 fi
10068
10069 found="no"
10070
10071 if test $found = "no" ; then
10072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074 fi
10075
10076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10078 fi
10079
10080 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10081
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10083 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10084 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10085 if eval \${$cacheid+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 int i;
10091 int
10092 main ()
10093 {
10094
10095 ;
10096 return 0;
10097 }
10098 _ACEOF
10099 if ac_fn_c_try_link "$LINENO"; then :
10100 eval $cacheid=yes
10101 else
10102 eval $cacheid=no
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 fi
10107
10108
10109 CFLAGS="$xorg_testset_save_CFLAGS"
10110
10111 eval supported=\$$cacheid
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10113 $as_echo "$supported" >&6; }
10114 if test "$supported" = "yes" ; then
10115 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10116 found="yes"
10117 fi
10118 fi
10119
10120
10121 fi
10122
10123
10124
10125
10126
10127
10128
10129 CWARNFLAGS="$BASE_CFLAGS"
10130 if test "x$GCC" = xyes ; then
10131 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10132 fi
10133
10134
10135
10136
10137
10138
10139
10140
10141 # Check whether --enable-strict-compilation was given.
10142 if test "${enable_strict_compilation+set}" = set; then :
10143 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10144 else
10145 STRICT_COMPILE=no
10146 fi
10147
10148
10149
10150
10151
10152
10153 STRICT_CFLAGS=""
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167 xorg_testset_save_CFLAGS="$CFLAGS"
10168
10169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 int i;
10179 _ACEOF
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181 xorg_cv_cc_flag_unknown_warning_option=yes
10182 else
10183 xorg_cv_cc_flag_unknown_warning_option=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191 fi
10192
10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196 fi
10197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 int i;
10206 _ACEOF
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208 xorg_cv_cc_flag_unused_command_line_argument=yes
10209 else
10210 xorg_cv_cc_flag_unused_command_line_argument=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10217 CFLAGS="$xorg_testset_save_CFLAGS"
10218 fi
10219
10220 found="no"
10221
10222 if test $found = "no" ; then
10223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225 fi
10226
10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10229 fi
10230
10231 CFLAGS="$CFLAGS -pedantic"
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10234 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10235 cacheid=xorg_cv_cc_flag__pedantic
10236 if eval \${$cacheid+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 int i;
10242 int
10243 main ()
10244 {
10245
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 eval $cacheid=yes
10252 else
10253 eval $cacheid=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 fi
10258
10259
10260 CFLAGS="$xorg_testset_save_CFLAGS"
10261
10262 eval supported=\$$cacheid
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10264 $as_echo "$supported" >&6; }
10265 if test "$supported" = "yes" ; then
10266 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10267 found="yes"
10268 fi
10269 fi
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285 xorg_testset_save_CFLAGS="$CFLAGS"
10286
10287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10296 int i;
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 xorg_cv_cc_flag_unknown_warning_option=yes
10300 else
10301 xorg_cv_cc_flag_unknown_warning_option=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10308 CFLAGS="$xorg_testset_save_CFLAGS"
10309 fi
10310
10311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314 fi
10315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 int i;
10324 _ACEOF
10325 if ac_fn_c_try_compile "$LINENO"; then :
10326 xorg_cv_cc_flag_unused_command_line_argument=yes
10327 else
10328 xorg_cv_cc_flag_unused_command_line_argument=no
10329 fi
10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10335 CFLAGS="$xorg_testset_save_CFLAGS"
10336 fi
10337
10338 found="no"
10339
10340 if test $found = "no" ; then
10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343 fi
10344
10345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347 fi
10348
10349 CFLAGS="$CFLAGS -Werror"
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10352 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10353 cacheid=xorg_cv_cc_flag__Werror
10354 if eval \${$cacheid+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359 int i;
10360 int
10361 main ()
10362 {
10363
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 eval $cacheid=yes
10370 else
10371 eval $cacheid=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 fi
10376
10377
10378 CFLAGS="$xorg_testset_save_CFLAGS"
10379
10380 eval supported=\$$cacheid
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10382 $as_echo "$supported" >&6; }
10383 if test "$supported" = "yes" ; then
10384 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10385 found="yes"
10386 fi
10387 fi
10388
10389 if test $found = "no" ; then
10390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10392 fi
10393
10394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10396 fi
10397
10398 CFLAGS="$CFLAGS -errwarn"
10399
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10401 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10402 cacheid=xorg_cv_cc_flag__errwarn
10403 if eval \${$cacheid+:} false; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10408 int i;
10409 int
10410 main ()
10411 {
10412
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_link "$LINENO"; then :
10418 eval $cacheid=yes
10419 else
10420 eval $cacheid=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 fi
10425
10426
10427 CFLAGS="$xorg_testset_save_CFLAGS"
10428
10429 eval supported=\$$cacheid
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10431 $as_echo "$supported" >&6; }
10432 if test "$supported" = "yes" ; then
10433 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10434 found="yes"
10435 fi
10436 fi
10437
10438
10439
10440 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10441 # activate it with -Werror, so we add it here explicitly.
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455 xorg_testset_save_CFLAGS="$CFLAGS"
10456
10457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10461 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 int i;
10467 _ACEOF
10468 if ac_fn_c_try_compile "$LINENO"; then :
10469 xorg_cv_cc_flag_unknown_warning_option=yes
10470 else
10471 xorg_cv_cc_flag_unknown_warning_option=no
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10478 CFLAGS="$xorg_testset_save_CFLAGS"
10479 fi
10480
10481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10484 fi
10485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 int i;
10494 _ACEOF
10495 if ac_fn_c_try_compile "$LINENO"; then :
10496 xorg_cv_cc_flag_unused_command_line_argument=yes
10497 else
10498 xorg_cv_cc_flag_unused_command_line_argument=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10505 CFLAGS="$xorg_testset_save_CFLAGS"
10506 fi
10507
10508 found="no"
10509
10510 if test $found = "no" ; then
10511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513 fi
10514
10515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517 fi
10518
10519 CFLAGS="$CFLAGS -Werror=attributes"
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10522 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10523 cacheid=xorg_cv_cc_flag__Werror_attributes
10524 if eval \${$cacheid+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 int i;
10530 int
10531 main ()
10532 {
10533
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_link "$LINENO"; then :
10539 eval $cacheid=yes
10540 else
10541 eval $cacheid=no
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 fi
10546
10547
10548 CFLAGS="$xorg_testset_save_CFLAGS"
10549
10550 eval supported=\$$cacheid
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10552 $as_echo "$supported" >&6; }
10553 if test "$supported" = "yes" ; then
10554 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10555 found="yes"
10556 fi
10557 fi
10558
10559
10560
10561 if test "x$STRICT_COMPILE" = "xyes"; then
10562 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10563 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10564 fi
10565
10566
10567
10568
10569
10570
10571 cat >>confdefs.h <<_ACEOF
10572 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10573 _ACEOF
10574
10575 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10576 if test "x$PVM" = "x"; then
10577 PVM="0"
10578 fi
10579
10580 cat >>confdefs.h <<_ACEOF
10581 #define PACKAGE_VERSION_MINOR $PVM
10582 _ACEOF
10583
10584 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10585 if test "x$PVP" = "x"; then
10586 PVP="0"
10587 fi
10588
10589 cat >>confdefs.h <<_ACEOF
10590 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10591 _ACEOF
10592
10593
10594
10595 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10596 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10597 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10598 touch \$(top_srcdir)/ChangeLog; \
10599 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10600
10601
10602
10603
10604 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10605 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10606 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10607 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10608 touch \$(top_srcdir)/INSTALL; \
10609 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10610
10611
10612
10613
10614
10615
10616 case $host_os in
10617 solaris*)
10618 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10619 # check for a man page file found in later versions that use
10620 # traditional section numbers instead
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10622 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10623 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 test "$cross_compiling" = yes &&
10627 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10628 if test -r "/usr/share/man/man7/attributes.7"; then
10629 ac_cv_file__usr_share_man_man7_attributes_7=yes
10630 else
10631 ac_cv_file__usr_share_man_man7_attributes_7=no
10632 fi
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10635 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10636 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10637 SYSV_MAN_SECTIONS=false
10638 else
10639 SYSV_MAN_SECTIONS=true
10640 fi
10641
10642 ;;
10643 *) SYSV_MAN_SECTIONS=false ;;
10644 esac
10645
10646 if test x$APP_MAN_SUFFIX = x ; then
10647 APP_MAN_SUFFIX=1
10648 fi
10649 if test x$APP_MAN_DIR = x ; then
10650 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10651 fi
10652
10653 if test x$LIB_MAN_SUFFIX = x ; then
10654 LIB_MAN_SUFFIX=3
10655 fi
10656 if test x$LIB_MAN_DIR = x ; then
10657 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10658 fi
10659
10660 if test x$FILE_MAN_SUFFIX = x ; then
10661 case $SYSV_MAN_SECTIONS in
10662 true) FILE_MAN_SUFFIX=4 ;;
10663 *) FILE_MAN_SUFFIX=5 ;;
10664 esac
10665 fi
10666 if test x$FILE_MAN_DIR = x ; then
10667 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10668 fi
10669
10670 if test x$MISC_MAN_SUFFIX = x ; then
10671 case $SYSV_MAN_SECTIONS in
10672 true) MISC_MAN_SUFFIX=5 ;;
10673 *) MISC_MAN_SUFFIX=7 ;;
10674 esac
10675 fi
10676 if test x$MISC_MAN_DIR = x ; then
10677 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10678 fi
10679
10680 if test x$DRIVER_MAN_SUFFIX = x ; then
10681 case $SYSV_MAN_SECTIONS in
10682 true) DRIVER_MAN_SUFFIX=7 ;;
10683 *) DRIVER_MAN_SUFFIX=4 ;;
10684 esac
10685 fi
10686 if test x$DRIVER_MAN_DIR = x ; then
10687 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10688 fi
10689
10690 if test x$ADMIN_MAN_SUFFIX = x ; then
10691 case $SYSV_MAN_SECTIONS in
10692 true) ADMIN_MAN_SUFFIX=1m ;;
10693 *) ADMIN_MAN_SUFFIX=8 ;;
10694 esac
10695 fi
10696 if test x$ADMIN_MAN_DIR = x ; then
10697 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10698 fi
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714 XORG_MAN_PAGE="X Version 11"
10715
10716 MAN_SUBSTS="\
10717 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10718 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10719 -e 's|__xservername__|Xorg|g' \
10720 -e 's|__xconfigfile__|xorg.conf|g' \
10721 -e 's|__projectroot__|\$(prefix)|g' \
10722 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10723 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10724 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10725 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10726 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10727 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10728 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10729
10730
10731
10732 # Check whether --enable-silent-rules was given.
10733 if test "${enable_silent_rules+set}" = set; then :
10734 enableval=$enable_silent_rules;
10735 fi
10736
10737 case $enable_silent_rules in # (((
10738 yes) AM_DEFAULT_VERBOSITY=0;;
10739 no) AM_DEFAULT_VERBOSITY=1;;
10740 *) AM_DEFAULT_VERBOSITY=0;;
10741 esac
10742 am_make=${MAKE-make}
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10744 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10745 if ${am_cv_make_support_nested_variables+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 if $as_echo 'TRUE=$(BAR$(V))
10749 BAR0=false
10750 BAR1=true
10751 V=1
10752 am__doit:
10753 @$(TRUE)
10754 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10755 am_cv_make_support_nested_variables=yes
10756 else
10757 am_cv_make_support_nested_variables=no
10758 fi
10759 fi
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10761 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10762 if test $am_cv_make_support_nested_variables = yes; then
10763 AM_V='$(V)'
10764 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10765 else
10766 AM_V=$AM_DEFAULT_VERBOSITY
10767 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10768 fi
10769 AM_BACKSLASH='\'
10770
10771
10772
10773 # Initialize libtool
10774 # Check whether --enable-static was given.
10775 if test "${enable_static+set}" = set; then :
10776 enableval=$enable_static; p=${PACKAGE-default}
10777 case $enableval in
10778 yes) enable_static=yes ;;
10779 no) enable_static=no ;;
10780 *)
10781 enable_static=no
10782 # Look at the argument we got. We use all the common list separators.
10783 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10784 for pkg in $enableval; do
10785 IFS=$lt_save_ifs
10786 if test "X$pkg" = "X$p"; then
10787 enable_static=yes
10788 fi
10789 done
10790 IFS=$lt_save_ifs
10791 ;;
10792 esac
10793 else
10794 enable_static=no
10795 fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805 case `pwd` in
10806 *\ * | *\ *)
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10808 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10809 esac
10810
10811
10812
10813 macro_version='2.4.6'
10814 macro_revision='2.4.6'
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828 ltmain=$ac_aux_dir/ltmain.sh
10829
10830 # Backslashify metacharacters that are still active within
10831 # double-quoted strings.
10832 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10833
10834 # Same as above, but do not quote variable references.
10835 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10836
10837 # Sed substitution to delay expansion of an escaped shell variable in a
10838 # double_quote_subst'ed string.
10839 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10840
10841 # Sed substitution to delay expansion of an escaped single quote.
10842 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10843
10844 # Sed substitution to avoid accidental globbing in evaled expressions
10845 no_glob_subst='s/\*/\\\*/g'
10846
10847 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10849 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10850
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10852 $as_echo_n "checking how to print strings... " >&6; }
10853 # Test print first, because it will be a builtin if present.
10854 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10855 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10856 ECHO='print -r --'
10857 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10858 ECHO='printf %s\n'
10859 else
10860 # Use this function as a fallback that always works.
10861 func_fallback_echo ()
10862 {
10863 eval 'cat <<_LTECHO_EOF
10864 $1
10865 _LTECHO_EOF'
10866 }
10867 ECHO='func_fallback_echo'
10868 fi
10869
10870 # func_echo_all arg...
10871 # Invoke $ECHO with all args, space-separated.
10872 func_echo_all ()
10873 {
10874 $ECHO ""
10875 }
10876
10877 case $ECHO in
10878 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10879 $as_echo "printf" >&6; } ;;
10880 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10881 $as_echo "print -r" >&6; } ;;
10882 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10883 $as_echo "cat" >&6; } ;;
10884 esac
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10900 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10901 if ${ac_cv_path_SED+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10905 for ac_i in 1 2 3 4 5 6 7; do
10906 ac_script="$ac_script$as_nl$ac_script"
10907 done
10908 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10909 { ac_script=; unset ac_script;}
10910 if test -z "$SED"; then
10911 ac_path_SED_found=false
10912 # Loop through the user's path and test for each of PROGNAME-LIST
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10915 do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_prog in sed gsed; do
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10921 as_fn_executable_p "$ac_path_SED" || continue
10922 # Check for GNU ac_path_SED and select it if it is found.
10923 # Check for GNU $ac_path_SED
10924 case `"$ac_path_SED" --version 2>&1` in
10925 *GNU*)
10926 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10927 *)
10928 ac_count=0
10929 $as_echo_n 0123456789 >"conftest.in"
10930 while :
10931 do
10932 cat "conftest.in" "conftest.in" >"conftest.tmp"
10933 mv "conftest.tmp" "conftest.in"
10934 cp "conftest.in" "conftest.nl"
10935 $as_echo '' >> "conftest.nl"
10936 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10938 as_fn_arith $ac_count + 1 && ac_count=$as_val
10939 if test $ac_count -gt ${ac_path_SED_max-0}; then
10940 # Best one so far, save it but keep looking for a better one
10941 ac_cv_path_SED="$ac_path_SED"
10942 ac_path_SED_max=$ac_count
10943 fi
10944 # 10*(2^10) chars as input seems more than enough
10945 test $ac_count -gt 10 && break
10946 done
10947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10948 esac
10949
10950 $ac_path_SED_found && break 3
10951 done
10952 done
10953 done
10954 IFS=$as_save_IFS
10955 if test -z "$ac_cv_path_SED"; then
10956 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10957 fi
10958 else
10959 ac_cv_path_SED=$SED
10960 fi
10961
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10964 $as_echo "$ac_cv_path_SED" >&6; }
10965 SED="$ac_cv_path_SED"
10966 rm -f conftest.sed
10967
10968 test -z "$SED" && SED=sed
10969 Xsed="$SED -e 1s/^X//"
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10982 $as_echo_n "checking for fgrep... " >&6; }
10983 if ${ac_cv_path_FGREP+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10987 then ac_cv_path_FGREP="$GREP -F"
10988 else
10989 if test -z "$FGREP"; then
10990 ac_path_FGREP_found=false
10991 # Loop through the user's path and test for each of PROGNAME-LIST
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10994 do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_prog in fgrep; do
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11000 as_fn_executable_p "$ac_path_FGREP" || continue
11001 # Check for GNU ac_path_FGREP and select it if it is found.
11002 # Check for GNU $ac_path_FGREP
11003 case `"$ac_path_FGREP" --version 2>&1` in
11004 *GNU*)
11005 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11006 *)
11007 ac_count=0
11008 $as_echo_n 0123456789 >"conftest.in"
11009 while :
11010 do
11011 cat "conftest.in" "conftest.in" >"conftest.tmp"
11012 mv "conftest.tmp" "conftest.in"
11013 cp "conftest.in" "conftest.nl"
11014 $as_echo 'FGREP' >> "conftest.nl"
11015 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11017 as_fn_arith $ac_count + 1 && ac_count=$as_val
11018 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11019 # Best one so far, save it but keep looking for a better one
11020 ac_cv_path_FGREP="$ac_path_FGREP"
11021 ac_path_FGREP_max=$ac_count
11022 fi
11023 # 10*(2^10) chars as input seems more than enough
11024 test $ac_count -gt 10 && break
11025 done
11026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11027 esac
11028
11029 $ac_path_FGREP_found && break 3
11030 done
11031 done
11032 done
11033 IFS=$as_save_IFS
11034 if test -z "$ac_cv_path_FGREP"; then
11035 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11036 fi
11037 else
11038 ac_cv_path_FGREP=$FGREP
11039 fi
11040
11041 fi
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11044 $as_echo "$ac_cv_path_FGREP" >&6; }
11045 FGREP="$ac_cv_path_FGREP"
11046
11047
11048 test -z "$GREP" && GREP=grep
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068 # Check whether --with-gnu-ld was given.
11069 if test "${with_gnu_ld+set}" = set; then :
11070 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11071 else
11072 with_gnu_ld=no
11073 fi
11074
11075 ac_prog=ld
11076 if test yes = "$GCC"; then
11077 # Check if gcc -print-prog-name=ld gives a path.
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11079 $as_echo_n "checking for ld used by $CC... " >&6; }
11080 case $host in
11081 *-*-mingw*)
11082 # gcc leaves a trailing carriage return, which upsets mingw
11083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11084 *)
11085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11086 esac
11087 case $ac_prog in
11088 # Accept absolute paths.
11089 [\\/]* | ?:[\\/]*)
11090 re_direlt='/[^/][^/]*/\.\./'
11091 # Canonicalize the pathname of ld
11092 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11093 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11094 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11095 done
11096 test -z "$LD" && LD=$ac_prog
11097 ;;
11098 "")
11099 # If it fails, then pretend we aren't using GCC.
11100 ac_prog=ld
11101 ;;
11102 *)
11103 # If it is relative, then search for the first ld in PATH.
11104 with_gnu_ld=unknown
11105 ;;
11106 esac
11107 elif test yes = "$with_gnu_ld"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11109 $as_echo_n "checking for GNU ld... " >&6; }
11110 else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11112 $as_echo_n "checking for non-GNU ld... " >&6; }
11113 fi
11114 if ${lt_cv_path_LD+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 if test -z "$LD"; then
11118 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11119 for ac_dir in $PATH; do
11120 IFS=$lt_save_ifs
11121 test -z "$ac_dir" && ac_dir=.
11122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11123 lt_cv_path_LD=$ac_dir/$ac_prog
11124 # Check to see if the program is GNU ld. I'd rather use --version,
11125 # but apparently some variants of GNU ld only accept -v.
11126 # Break only if it was the GNU/non-GNU ld that we prefer.
11127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11128 *GNU* | *'with BFD'*)
11129 test no != "$with_gnu_ld" && break
11130 ;;
11131 *)
11132 test yes != "$with_gnu_ld" && break
11133 ;;
11134 esac
11135 fi
11136 done
11137 IFS=$lt_save_ifs
11138 else
11139 lt_cv_path_LD=$LD # Let the user override the test with a path.
11140 fi
11141 fi
11142
11143 LD=$lt_cv_path_LD
11144 if test -n "$LD"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11146 $as_echo "$LD" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11150 fi
11151 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11153 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11154 if ${lt_cv_prog_gnu_ld+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11158 case `$LD -v 2>&1 </dev/null` in
11159 *GNU* | *'with BFD'*)
11160 lt_cv_prog_gnu_ld=yes
11161 ;;
11162 *)
11163 lt_cv_prog_gnu_ld=no
11164 ;;
11165 esac
11166 fi
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11168 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11169 with_gnu_ld=$lt_cv_prog_gnu_ld
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11180 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11181 if ${lt_cv_path_NM+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 if test -n "$NM"; then
11185 # Let the user override the test.
11186 lt_cv_path_NM=$NM
11187 else
11188 lt_nm_to_check=${ac_tool_prefix}nm
11189 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11190 lt_nm_to_check="$lt_nm_to_check nm"
11191 fi
11192 for lt_tmp_nm in $lt_nm_to_check; do
11193 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11194 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11195 IFS=$lt_save_ifs
11196 test -z "$ac_dir" && ac_dir=.
11197 tmp_nm=$ac_dir/$lt_tmp_nm
11198 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11199 # Check to see if the nm accepts a BSD-compat flag.
11200 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11201 # nm: unknown option "B" ignored
11202 # Tru64's nm complains that /dev/null is an invalid object file
11203 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11204 case $build_os in
11205 mingw*) lt_bad_file=conftest.nm/nofile ;;
11206 *) lt_bad_file=/dev/null ;;
11207 esac
11208 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11209 *$lt_bad_file* | *'Invalid file or object type'*)
11210 lt_cv_path_NM="$tmp_nm -B"
11211 break 2
11212 ;;
11213 *)
11214 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11215 */dev/null*)
11216 lt_cv_path_NM="$tmp_nm -p"
11217 break 2
11218 ;;
11219 *)
11220 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11221 continue # so that we can try to find one that supports BSD flags
11222 ;;
11223 esac
11224 ;;
11225 esac
11226 fi
11227 done
11228 IFS=$lt_save_ifs
11229 done
11230 : ${lt_cv_path_NM=no}
11231 fi
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11234 $as_echo "$lt_cv_path_NM" >&6; }
11235 if test no != "$lt_cv_path_NM"; then
11236 NM=$lt_cv_path_NM
11237 else
11238 # Didn't find any BSD compatible name lister, look for dumpbin.
11239 if test -n "$DUMPBIN"; then :
11240 # Let the user override the test.
11241 else
11242 if test -n "$ac_tool_prefix"; then
11243 for ac_prog in dumpbin "link -dump"
11244 do
11245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if ${ac_cv_prog_DUMPBIN+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 if test -n "$DUMPBIN"; then
11253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266 done
11267 done
11268 IFS=$as_save_IFS
11269
11270 fi
11271 fi
11272 DUMPBIN=$ac_cv_prog_DUMPBIN
11273 if test -n "$DUMPBIN"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11275 $as_echo "$DUMPBIN" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280
11281
11282 test -n "$DUMPBIN" && break
11283 done
11284 fi
11285 if test -z "$DUMPBIN"; then
11286 ac_ct_DUMPBIN=$DUMPBIN
11287 for ac_prog in dumpbin "link -dump"
11288 do
11289 # Extract the first word of "$ac_prog", so it can be a program name with args.
11290 set dummy $ac_prog; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 if test -n "$ac_ct_DUMPBIN"; then
11297 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11309 fi
11310 done
11311 done
11312 IFS=$as_save_IFS
11313
11314 fi
11315 fi
11316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11317 if test -n "$ac_ct_DUMPBIN"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11319 $as_echo "$ac_ct_DUMPBIN" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324
11325
11326 test -n "$ac_ct_DUMPBIN" && break
11327 done
11328
11329 if test "x$ac_ct_DUMPBIN" = x; then
11330 DUMPBIN=":"
11331 else
11332 case $cross_compiling:$ac_tool_warned in
11333 yes:)
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11336 ac_tool_warned=yes ;;
11337 esac
11338 DUMPBIN=$ac_ct_DUMPBIN
11339 fi
11340 fi
11341
11342 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11343 *COFF*)
11344 DUMPBIN="$DUMPBIN -symbols -headers"
11345 ;;
11346 *)
11347 DUMPBIN=:
11348 ;;
11349 esac
11350 fi
11351
11352 if test : != "$DUMPBIN"; then
11353 NM=$DUMPBIN
11354 fi
11355 fi
11356 test -z "$NM" && NM=nm
11357
11358
11359
11360
11361
11362
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11364 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11365 if ${lt_cv_nm_interface+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 lt_cv_nm_interface="BSD nm"
11369 echo "int some_variable = 0;" > conftest.$ac_ext
11370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11371 (eval "$ac_compile" 2>conftest.err)
11372 cat conftest.err >&5
11373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11375 cat conftest.err >&5
11376 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11377 cat conftest.out >&5
11378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11379 lt_cv_nm_interface="MS dumpbin"
11380 fi
11381 rm -f conftest*
11382 fi
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11384 $as_echo "$lt_cv_nm_interface" >&6; }
11385
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11387 $as_echo_n "checking whether ln -s works... " >&6; }
11388 LN_S=$as_ln_s
11389 if test "$LN_S" = "ln -s"; then
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11391 $as_echo "yes" >&6; }
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11394 $as_echo "no, using $LN_S" >&6; }
11395 fi
11396
11397 # find the maximum length of command line arguments
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11399 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11400 if ${lt_cv_sys_max_cmd_len+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 i=0
11404 teststring=ABCD
11405
11406 case $build_os in
11407 msdosdjgpp*)
11408 # On DJGPP, this test can blow up pretty badly due to problems in libc
11409 # (any single argument exceeding 2000 bytes causes a buffer overrun
11410 # during glob expansion). Even if it were fixed, the result of this
11411 # check would be larger than it should be.
11412 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11413 ;;
11414
11415 gnu*)
11416 # Under GNU Hurd, this test is not required because there is
11417 # no limit to the length of command line arguments.
11418 # Libtool will interpret -1 as no limit whatsoever
11419 lt_cv_sys_max_cmd_len=-1;
11420 ;;
11421
11422 cygwin* | mingw* | cegcc*)
11423 # On Win9x/ME, this test blows up -- it succeeds, but takes
11424 # about 5 minutes as the teststring grows exponentially.
11425 # Worse, since 9x/ME are not pre-emptively multitasking,
11426 # you end up with a "frozen" computer, even though with patience
11427 # the test eventually succeeds (with a max line length of 256k).
11428 # Instead, let's just punt: use the minimum linelength reported by
11429 # all of the supported platforms: 8192 (on NT/2K/XP).
11430 lt_cv_sys_max_cmd_len=8192;
11431 ;;
11432
11433 mint*)
11434 # On MiNT this can take a long time and run out of memory.
11435 lt_cv_sys_max_cmd_len=8192;
11436 ;;
11437
11438 amigaos*)
11439 # On AmigaOS with pdksh, this test takes hours, literally.
11440 # So we just punt and use a minimum line length of 8192.
11441 lt_cv_sys_max_cmd_len=8192;
11442 ;;
11443
11444 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11445 # This has been around since 386BSD, at least. Likely further.
11446 if test -x /sbin/sysctl; then
11447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11448 elif test -x /usr/sbin/sysctl; then
11449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11450 else
11451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11452 fi
11453 # And add a safety zone
11454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11456 ;;
11457
11458 interix*)
11459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11460 lt_cv_sys_max_cmd_len=196608
11461 ;;
11462
11463 os2*)
11464 # The test takes a long time on OS/2.
11465 lt_cv_sys_max_cmd_len=8192
11466 ;;
11467
11468 osf*)
11469 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11470 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11471 # nice to cause kernel panics so lets avoid the loop below.
11472 # First set a reasonable default.
11473 lt_cv_sys_max_cmd_len=16384
11474 #
11475 if test -x /sbin/sysconfig; then
11476 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11477 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11478 esac
11479 fi
11480 ;;
11481 sco3.2v5*)
11482 lt_cv_sys_max_cmd_len=102400
11483 ;;
11484 sysv5* | sco5v6* | sysv4.2uw2*)
11485 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11486 if test -n "$kargmax"; then
11487 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11488 else
11489 lt_cv_sys_max_cmd_len=32768
11490 fi
11491 ;;
11492 *)
11493 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11494 if test -n "$lt_cv_sys_max_cmd_len" && \
11495 test undefined != "$lt_cv_sys_max_cmd_len"; then
11496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11498 else
11499 # Make teststring a little bigger before we do anything with it.
11500 # a 1K string should be a reasonable start.
11501 for i in 1 2 3 4 5 6 7 8; do
11502 teststring=$teststring$teststring
11503 done
11504 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11505 # If test is not a shell built-in, we'll probably end up computing a
11506 # maximum length that is only half of the actual maximum length, but
11507 # we can't tell.
11508 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11509 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11510 test 17 != "$i" # 1/2 MB should be enough
11511 do
11512 i=`expr $i + 1`
11513 teststring=$teststring$teststring
11514 done
11515 # Only check the string length outside the loop.
11516 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11517 teststring=
11518 # Add a significant safety factor because C++ compilers can tack on
11519 # massive amounts of additional arguments before passing them to the
11520 # linker. It appears as though 1/2 is a usable value.
11521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11522 fi
11523 ;;
11524 esac
11525
11526 fi
11527
11528 if test -n "$lt_cv_sys_max_cmd_len"; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11530 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11533 $as_echo "none" >&6; }
11534 fi
11535 max_cmd_len=$lt_cv_sys_max_cmd_len
11536
11537
11538
11539
11540
11541
11542 : ${CP="cp -f"}
11543 : ${MV="mv -f"}
11544 : ${RM="rm -f"}
11545
11546 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11547 lt_unset=unset
11548 else
11549 lt_unset=false
11550 fi
11551
11552
11553
11554
11555
11556 # test EBCDIC or ASCII
11557 case `echo X|tr X '\101'` in
11558 A) # ASCII based system
11559 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11560 lt_SP2NL='tr \040 \012'
11561 lt_NL2SP='tr \015\012 \040\040'
11562 ;;
11563 *) # EBCDIC based system
11564 lt_SP2NL='tr \100 \n'
11565 lt_NL2SP='tr \r\n \100\100'
11566 ;;
11567 esac
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11578 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11579 if ${lt_cv_to_host_file_cmd+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 case $host in
11583 *-*-mingw* )
11584 case $build in
11585 *-*-mingw* ) # actually msys
11586 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11587 ;;
11588 *-*-cygwin* )
11589 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11590 ;;
11591 * ) # otherwise, assume *nix
11592 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11593 ;;
11594 esac
11595 ;;
11596 *-*-cygwin* )
11597 case $build in
11598 *-*-mingw* ) # actually msys
11599 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11600 ;;
11601 *-*-cygwin* )
11602 lt_cv_to_host_file_cmd=func_convert_file_noop
11603 ;;
11604 * ) # otherwise, assume *nix
11605 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11606 ;;
11607 esac
11608 ;;
11609 * ) # unhandled hosts (and "normal" native builds)
11610 lt_cv_to_host_file_cmd=func_convert_file_noop
11611 ;;
11612 esac
11613
11614 fi
11615
11616 to_host_file_cmd=$lt_cv_to_host_file_cmd
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11618 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11619
11620
11621
11622
11623
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11625 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11626 if ${lt_cv_to_tool_file_cmd+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 #assume ordinary cross tools, or native build.
11630 lt_cv_to_tool_file_cmd=func_convert_file_noop
11631 case $host in
11632 *-*-mingw* )
11633 case $build in
11634 *-*-mingw* ) # actually msys
11635 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11636 ;;
11637 esac
11638 ;;
11639 esac
11640
11641 fi
11642
11643 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11645 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11646
11647
11648
11649
11650
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11652 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11653 if ${lt_cv_ld_reload_flag+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 lt_cv_ld_reload_flag='-r'
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11659 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11660 reload_flag=$lt_cv_ld_reload_flag
11661 case $reload_flag in
11662 "" | " "*) ;;
11663 *) reload_flag=" $reload_flag" ;;
11664 esac
11665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11666 case $host_os in
11667 cygwin* | mingw* | pw32* | cegcc*)
11668 if test yes != "$GCC"; then
11669 reload_cmds=false
11670 fi
11671 ;;
11672 darwin*)
11673 if test yes = "$GCC"; then
11674 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11675 else
11676 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11677 fi
11678 ;;
11679 esac
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689 if test -n "$ac_tool_prefix"; then
11690 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11691 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_prog_OBJDUMP+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 if test -n "$OBJDUMP"; then
11698 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11699 else
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11702 do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11707 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11710 fi
11711 done
11712 done
11713 IFS=$as_save_IFS
11714
11715 fi
11716 fi
11717 OBJDUMP=$ac_cv_prog_OBJDUMP
11718 if test -n "$OBJDUMP"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11720 $as_echo "$OBJDUMP" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 fi
11725
11726
11727 fi
11728 if test -z "$ac_cv_prog_OBJDUMP"; then
11729 ac_ct_OBJDUMP=$OBJDUMP
11730 # Extract the first word of "objdump", so it can be a program name with args.
11731 set dummy objdump; ac_word=$2
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733 $as_echo_n "checking for $ac_word... " >&6; }
11734 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 if test -n "$ac_ct_OBJDUMP"; then
11738 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11739 else
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11742 do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11750 fi
11751 done
11752 done
11753 IFS=$as_save_IFS
11754
11755 fi
11756 fi
11757 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11758 if test -n "$ac_ct_OBJDUMP"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11760 $as_echo "$ac_ct_OBJDUMP" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11764 fi
11765
11766 if test "x$ac_ct_OBJDUMP" = x; then
11767 OBJDUMP="false"
11768 else
11769 case $cross_compiling:$ac_tool_warned in
11770 yes:)
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773 ac_tool_warned=yes ;;
11774 esac
11775 OBJDUMP=$ac_ct_OBJDUMP
11776 fi
11777 else
11778 OBJDUMP="$ac_cv_prog_OBJDUMP"
11779 fi
11780
11781 test -z "$OBJDUMP" && OBJDUMP=objdump
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11792 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11793 if ${lt_cv_deplibs_check_method+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 lt_cv_file_magic_cmd='$MAGIC_CMD'
11797 lt_cv_file_magic_test_file=
11798 lt_cv_deplibs_check_method='unknown'
11799 # Need to set the preceding variable on all platforms that support
11800 # interlibrary dependencies.
11801 # 'none' -- dependencies not supported.
11802 # 'unknown' -- same as none, but documents that we really don't know.
11803 # 'pass_all' -- all dependencies passed with no checks.
11804 # 'test_compile' -- check by making test program.
11805 # 'file_magic [[regex]]' -- check by looking for files in library path
11806 # that responds to the $file_magic_cmd with a given extended regex.
11807 # If you have 'file' or equivalent on your system and you're not sure
11808 # whether 'pass_all' will *always* work, you probably want this one.
11809
11810 case $host_os in
11811 aix[4-9]*)
11812 lt_cv_deplibs_check_method=pass_all
11813 ;;
11814
11815 beos*)
11816 lt_cv_deplibs_check_method=pass_all
11817 ;;
11818
11819 bsdi[45]*)
11820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11821 lt_cv_file_magic_cmd='/usr/bin/file -L'
11822 lt_cv_file_magic_test_file=/shlib/libc.so
11823 ;;
11824
11825 cygwin*)
11826 # func_win32_libid is a shell function defined in ltmain.sh
11827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11828 lt_cv_file_magic_cmd='func_win32_libid'
11829 ;;
11830
11831 mingw* | pw32*)
11832 # Base MSYS/MinGW do not provide the 'file' command needed by
11833 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11834 # unless we find 'file', for example because we are cross-compiling.
11835 if ( file / ) >/dev/null 2>&1; then
11836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11837 lt_cv_file_magic_cmd='func_win32_libid'
11838 else
11839 # Keep this pattern in sync with the one in func_win32_libid.
11840 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11841 lt_cv_file_magic_cmd='$OBJDUMP -f'
11842 fi
11843 ;;
11844
11845 cegcc*)
11846 # use the weaker test based on 'objdump'. See mingw*.
11847 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11848 lt_cv_file_magic_cmd='$OBJDUMP -f'
11849 ;;
11850
11851 darwin* | rhapsody*)
11852 lt_cv_deplibs_check_method=pass_all
11853 ;;
11854
11855 freebsd* | dragonfly*)
11856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11857 case $host_cpu in
11858 i*86 )
11859 # Not sure whether the presence of OpenBSD here was a mistake.
11860 # Let's accept both of them until this is cleared up.
11861 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11862 lt_cv_file_magic_cmd=/usr/bin/file
11863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11864 ;;
11865 esac
11866 else
11867 lt_cv_deplibs_check_method=pass_all
11868 fi
11869 ;;
11870
11871 haiku*)
11872 lt_cv_deplibs_check_method=pass_all
11873 ;;
11874
11875 hpux10.20* | hpux11*)
11876 lt_cv_file_magic_cmd=/usr/bin/file
11877 case $host_cpu in
11878 ia64*)
11879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11880 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11881 ;;
11882 hppa*64*)
11883 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]'
11884 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11885 ;;
11886 *)
11887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11888 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11889 ;;
11890 esac
11891 ;;
11892
11893 interix[3-9]*)
11894 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11896 ;;
11897
11898 irix5* | irix6* | nonstopux*)
11899 case $LD in
11900 *-32|*"-32 ") libmagic=32-bit;;
11901 *-n32|*"-n32 ") libmagic=N32;;
11902 *-64|*"-64 ") libmagic=64-bit;;
11903 *) libmagic=never-match;;
11904 esac
11905 lt_cv_deplibs_check_method=pass_all
11906 ;;
11907
11908 # This must be glibc/ELF.
11909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11910 lt_cv_deplibs_check_method=pass_all
11911 ;;
11912
11913 netbsd*)
11914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11916 else
11917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11918 fi
11919 ;;
11920
11921 newos6*)
11922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11923 lt_cv_file_magic_cmd=/usr/bin/file
11924 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11925 ;;
11926
11927 *nto* | *qnx*)
11928 lt_cv_deplibs_check_method=pass_all
11929 ;;
11930
11931 openbsd* | bitrig*)
11932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11934 else
11935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11936 fi
11937 ;;
11938
11939 osf3* | osf4* | osf5*)
11940 lt_cv_deplibs_check_method=pass_all
11941 ;;
11942
11943 rdos*)
11944 lt_cv_deplibs_check_method=pass_all
11945 ;;
11946
11947 solaris*)
11948 lt_cv_deplibs_check_method=pass_all
11949 ;;
11950
11951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11952 lt_cv_deplibs_check_method=pass_all
11953 ;;
11954
11955 sysv4 | sysv4.3*)
11956 case $host_vendor in
11957 motorola)
11958 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]'
11959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11960 ;;
11961 ncr)
11962 lt_cv_deplibs_check_method=pass_all
11963 ;;
11964 sequent)
11965 lt_cv_file_magic_cmd='/bin/file'
11966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11967 ;;
11968 sni)
11969 lt_cv_file_magic_cmd='/bin/file'
11970 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11971 lt_cv_file_magic_test_file=/lib/libc.so
11972 ;;
11973 siemens)
11974 lt_cv_deplibs_check_method=pass_all
11975 ;;
11976 pc)
11977 lt_cv_deplibs_check_method=pass_all
11978 ;;
11979 esac
11980 ;;
11981
11982 tpf*)
11983 lt_cv_deplibs_check_method=pass_all
11984 ;;
11985 os2*)
11986 lt_cv_deplibs_check_method=pass_all
11987 ;;
11988 esac
11989
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11992 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11993
11994 file_magic_glob=
11995 want_nocaseglob=no
11996 if test "$build" = "$host"; then
11997 case $host_os in
11998 mingw* | pw32*)
11999 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12000 want_nocaseglob=yes
12001 else
12002 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12003 fi
12004 ;;
12005 esac
12006 fi
12007
12008 file_magic_cmd=$lt_cv_file_magic_cmd
12009 deplibs_check_method=$lt_cv_deplibs_check_method
12010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 if test -n "$ac_tool_prefix"; then
12034 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12035 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_prog_DLLTOOL+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test -n "$DLLTOOL"; then
12042 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12043 else
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $PATH
12046 do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055 done
12056 done
12057 IFS=$as_save_IFS
12058
12059 fi
12060 fi
12061 DLLTOOL=$ac_cv_prog_DLLTOOL
12062 if test -n "$DLLTOOL"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12064 $as_echo "$DLLTOOL" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12068 fi
12069
12070
12071 fi
12072 if test -z "$ac_cv_prog_DLLTOOL"; then
12073 ac_ct_DLLTOOL=$DLLTOOL
12074 # Extract the first word of "dlltool", so it can be a program name with args.
12075 set dummy dlltool; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 if test -n "$ac_ct_DLLTOOL"; then
12082 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12083 else
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12094 fi
12095 done
12096 done
12097 IFS=$as_save_IFS
12098
12099 fi
12100 fi
12101 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12102 if test -n "$ac_ct_DLLTOOL"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12104 $as_echo "$ac_ct_DLLTOOL" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109
12110 if test "x$ac_ct_DLLTOOL" = x; then
12111 DLLTOOL="false"
12112 else
12113 case $cross_compiling:$ac_tool_warned in
12114 yes:)
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12117 ac_tool_warned=yes ;;
12118 esac
12119 DLLTOOL=$ac_ct_DLLTOOL
12120 fi
12121 else
12122 DLLTOOL="$ac_cv_prog_DLLTOOL"
12123 fi
12124
12125 test -z "$DLLTOOL" && DLLTOOL=dlltool
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12137 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12138 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 lt_cv_sharedlib_from_linklib_cmd='unknown'
12142
12143 case $host_os in
12144 cygwin* | mingw* | pw32* | cegcc*)
12145 # two different shell functions defined in ltmain.sh;
12146 # decide which one to use based on capabilities of $DLLTOOL
12147 case `$DLLTOOL --help 2>&1` in
12148 *--identify-strict*)
12149 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12150 ;;
12151 *)
12152 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12153 ;;
12154 esac
12155 ;;
12156 *)
12157 # fallback: assume linklib IS sharedlib
12158 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12159 ;;
12160 esac
12161
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12164 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12165 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12166 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12167
12168
12169
12170
12171
12172
12173
12174 if test -n "$ac_tool_prefix"; then
12175 for ac_prog in ar
12176 do
12177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if ${ac_cv_prog_AR+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test -n "$AR"; then
12185 ac_cv_prog_AR="$AR" # Let the user override the test.
12186 else
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 fi
12203 fi
12204 AR=$ac_cv_prog_AR
12205 if test -n "$AR"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12207 $as_echo "$AR" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213
12214 test -n "$AR" && break
12215 done
12216 fi
12217 if test -z "$AR"; then
12218 ac_ct_AR=$AR
12219 for ac_prog in ar
12220 do
12221 # Extract the first word of "$ac_prog", so it can be a program name with args.
12222 set dummy $ac_prog; ac_word=$2
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224 $as_echo_n "checking for $ac_word... " >&6; }
12225 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 if test -n "$ac_ct_AR"; then
12229 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12230 else
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $PATH
12233 do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238 ac_cv_prog_ac_ct_AR="$ac_prog"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242 done
12243 done
12244 IFS=$as_save_IFS
12245
12246 fi
12247 fi
12248 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12249 if test -n "$ac_ct_AR"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12251 $as_echo "$ac_ct_AR" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256
12257
12258 test -n "$ac_ct_AR" && break
12259 done
12260
12261 if test "x$ac_ct_AR" = x; then
12262 AR="false"
12263 else
12264 case $cross_compiling:$ac_tool_warned in
12265 yes:)
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12268 ac_tool_warned=yes ;;
12269 esac
12270 AR=$ac_ct_AR
12271 fi
12272 fi
12273
12274 : ${AR=ar}
12275 : ${AR_FLAGS=cru}
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12288 $as_echo_n "checking for archiver @FILE support... " >&6; }
12289 if ${lt_cv_ar_at_file+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 lt_cv_ar_at_file=no
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295
12296 int
12297 main ()
12298 {
12299
12300 ;
12301 return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_compile "$LINENO"; then :
12305 echo conftest.$ac_objext > conftest.lst
12306 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12308 (eval $lt_ar_try) 2>&5
12309 ac_status=$?
12310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12311 test $ac_status = 0; }
12312 if test 0 -eq "$ac_status"; then
12313 # Ensure the archiver fails upon bogus file names.
12314 rm -f conftest.$ac_objext libconftest.a
12315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12316 (eval $lt_ar_try) 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12319 test $ac_status = 0; }
12320 if test 0 -ne "$ac_status"; then
12321 lt_cv_ar_at_file=@
12322 fi
12323 fi
12324 rm -f conftest.* libconftest.a
12325
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12331 $as_echo "$lt_cv_ar_at_file" >&6; }
12332
12333 if test no = "$lt_cv_ar_at_file"; then
12334 archiver_list_spec=
12335 else
12336 archiver_list_spec=$lt_cv_ar_at_file
12337 fi
12338
12339
12340
12341
12342
12343
12344
12345 if test -n "$ac_tool_prefix"; then
12346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12347 set dummy ${ac_tool_prefix}strip; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_prog_STRIP+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 if test -n "$STRIP"; then
12354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12355 else
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365 break 2
12366 fi
12367 done
12368 done
12369 IFS=$as_save_IFS
12370
12371 fi
12372 fi
12373 STRIP=$ac_cv_prog_STRIP
12374 if test -n "$STRIP"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12376 $as_echo "$STRIP" >&6; }
12377 else
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380 fi
12381
12382
12383 fi
12384 if test -z "$ac_cv_prog_STRIP"; then
12385 ac_ct_STRIP=$STRIP
12386 # Extract the first word of "strip", so it can be a program name with args.
12387 set dummy strip; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if test -n "$ac_ct_STRIP"; then
12394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403 ac_cv_prog_ac_ct_STRIP="strip"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407 done
12408 done
12409 IFS=$as_save_IFS
12410
12411 fi
12412 fi
12413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12414 if test -n "$ac_ct_STRIP"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12416 $as_echo "$ac_ct_STRIP" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421
12422 if test "x$ac_ct_STRIP" = x; then
12423 STRIP=":"
12424 else
12425 case $cross_compiling:$ac_tool_warned in
12426 yes:)
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12429 ac_tool_warned=yes ;;
12430 esac
12431 STRIP=$ac_ct_STRIP
12432 fi
12433 else
12434 STRIP="$ac_cv_prog_STRIP"
12435 fi
12436
12437 test -z "$STRIP" && STRIP=:
12438
12439
12440
12441
12442
12443
12444 if test -n "$ac_tool_prefix"; then
12445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if ${ac_cv_prog_RANLIB+:} false; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 if test -n "$RANLIB"; then
12453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 break 2
12465 fi
12466 done
12467 done
12468 IFS=$as_save_IFS
12469
12470 fi
12471 fi
12472 RANLIB=$ac_cv_prog_RANLIB
12473 if test -n "$RANLIB"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12475 $as_echo "$RANLIB" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480
12481
12482 fi
12483 if test -z "$ac_cv_prog_RANLIB"; then
12484 ac_ct_RANLIB=$RANLIB
12485 # Extract the first word of "ranlib", so it can be a program name with args.
12486 set dummy ranlib; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$ac_ct_RANLIB"; then
12493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_ac_ct_RANLIB="ranlib"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12513 if test -n "$ac_ct_RANLIB"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12515 $as_echo "$ac_ct_RANLIB" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521 if test "x$ac_ct_RANLIB" = x; then
12522 RANLIB=":"
12523 else
12524 case $cross_compiling:$ac_tool_warned in
12525 yes:)
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12528 ac_tool_warned=yes ;;
12529 esac
12530 RANLIB=$ac_ct_RANLIB
12531 fi
12532 else
12533 RANLIB="$ac_cv_prog_RANLIB"
12534 fi
12535
12536 test -z "$RANLIB" && RANLIB=:
12537
12538
12539
12540
12541
12542
12543 # Determine commands to create old-style static archives.
12544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12545 old_postinstall_cmds='chmod 644 $oldlib'
12546 old_postuninstall_cmds=
12547
12548 if test -n "$RANLIB"; then
12549 case $host_os in
12550 bitrig* | openbsd*)
12551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12552 ;;
12553 *)
12554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12555 ;;
12556 esac
12557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12558 fi
12559
12560 case $host_os in
12561 darwin*)
12562 lock_old_archive_extraction=yes ;;
12563 *)
12564 lock_old_archive_extraction=no ;;
12565 esac
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605 # If no C compiler was specified, use CC.
12606 LTCC=${LTCC-"$CC"}
12607
12608 # If no C compiler flags were specified, use CFLAGS.
12609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12610
12611 # Allow CC to be a program name with arguments.
12612 compiler=$CC
12613
12614
12615 # Check for command to grab the raw symbol name followed by C symbol from nm.
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12617 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12618 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621
12622 # These are sane defaults that work on at least a few old systems.
12623 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12624
12625 # Character class describing NM global symbol codes.
12626 symcode='[BCDEGRST]'
12627
12628 # Regexp to match symbols that can be accessed directly from C.
12629 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12630
12631 # Define system-specific variables.
12632 case $host_os in
12633 aix*)
12634 symcode='[BCDT]'
12635 ;;
12636 cygwin* | mingw* | pw32* | cegcc*)
12637 symcode='[ABCDGISTW]'
12638 ;;
12639 hpux*)
12640 if test ia64 = "$host_cpu"; then
12641 symcode='[ABCDEGRST]'
12642 fi
12643 ;;
12644 irix* | nonstopux*)
12645 symcode='[BCDEGRST]'
12646 ;;
12647 osf*)
12648 symcode='[BCDEGQRST]'
12649 ;;
12650 solaris*)
12651 symcode='[BDRT]'
12652 ;;
12653 sco3.2v5*)
12654 symcode='[DT]'
12655 ;;
12656 sysv4.2uw2*)
12657 symcode='[DT]'
12658 ;;
12659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12660 symcode='[ABDT]'
12661 ;;
12662 sysv4)
12663 symcode='[DFNSTU]'
12664 ;;
12665 esac
12666
12667 # If we're using GNU nm, then use its standard symbol codes.
12668 case `$NM -V 2>&1` in
12669 *GNU* | *'with BFD'*)
12670 symcode='[ABCDGIRSTW]' ;;
12671 esac
12672
12673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12674 # Gets list of data symbols to import.
12675 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12676 # Adjust the below global symbol transforms to fixup imported variables.
12677 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12678 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12679 lt_c_name_lib_hook="\
12680 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12681 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12682 else
12683 # Disable hooks by default.
12684 lt_cv_sys_global_symbol_to_import=
12685 lt_cdecl_hook=
12686 lt_c_name_hook=
12687 lt_c_name_lib_hook=
12688 fi
12689
12690 # Transform an extracted symbol line into a proper C declaration.
12691 # Some systems (esp. on ia64) link data and code symbols differently,
12692 # so use this general approach.
12693 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12694 $lt_cdecl_hook\
12695 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12696 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12697
12698 # Transform an extracted symbol line into symbol name and symbol address
12699 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12700 $lt_c_name_hook\
12701 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12702 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12703
12704 # Transform an extracted symbol line into symbol name with lib prefix and
12705 # symbol address.
12706 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12707 $lt_c_name_lib_hook\
12708 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12709 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12710 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12711
12712 # Handle CRLF in mingw tool chain
12713 opt_cr=
12714 case $build_os in
12715 mingw*)
12716 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12717 ;;
12718 esac
12719
12720 # Try without a prefix underscore, then with it.
12721 for ac_symprfx in "" "_"; do
12722
12723 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12724 symxfrm="\\1 $ac_symprfx\\2 \\2"
12725
12726 # Write the raw and C identifiers.
12727 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12728 # Fake it for dumpbin and say T for any non-static function,
12729 # D for any global variable and I for any imported variable.
12730 # Also find C++ and __fastcall symbols from MSVC++,
12731 # which start with @ or ?.
12732 lt_cv_sys_global_symbol_pipe="$AWK '"\
12733 " {last_section=section; section=\$ 3};"\
12734 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12735 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12736 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12737 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12738 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12739 " \$ 0!~/External *\|/{next};"\
12740 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12741 " {if(hide[section]) next};"\
12742 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12743 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12744 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12745 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12746 " ' prfx=^$ac_symprfx"
12747 else
12748 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12749 fi
12750 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12751
12752 # Check to see that the pipe works correctly.
12753 pipe_works=no
12754
12755 rm -f conftest*
12756 cat > conftest.$ac_ext <<_LT_EOF
12757 #ifdef __cplusplus
12758 extern "C" {
12759 #endif
12760 char nm_test_var;
12761 void nm_test_func(void);
12762 void nm_test_func(void){}
12763 #ifdef __cplusplus
12764 }
12765 #endif
12766 int main(){nm_test_var='a';nm_test_func();return(0);}
12767 _LT_EOF
12768
12769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773 test $ac_status = 0; }; then
12774 # Now try to grab the symbols.
12775 nlist=conftest.nm
12776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12777 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12778 ac_status=$?
12779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780 test $ac_status = 0; } && test -s "$nlist"; then
12781 # Try sorting and uniquifying the output.
12782 if sort "$nlist" | uniq > "$nlist"T; then
12783 mv -f "$nlist"T "$nlist"
12784 else
12785 rm -f "$nlist"T
12786 fi
12787
12788 # Make sure that we snagged all the symbols we need.
12789 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12790 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12791 cat <<_LT_EOF > conftest.$ac_ext
12792 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12793 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12794 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12795 relocations are performed -- see ld's documentation on pseudo-relocs. */
12796 # define LT_DLSYM_CONST
12797 #elif defined __osf__
12798 /* This system does not cope well with relocations in const data. */
12799 # define LT_DLSYM_CONST
12800 #else
12801 # define LT_DLSYM_CONST const
12802 #endif
12803
12804 #ifdef __cplusplus
12805 extern "C" {
12806 #endif
12807
12808 _LT_EOF
12809 # Now generate the symbol file.
12810 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12811
12812 cat <<_LT_EOF >> conftest.$ac_ext
12813
12814 /* The mapping between symbol names and symbols. */
12815 LT_DLSYM_CONST struct {
12816 const char *name;
12817 void *address;
12818 }
12819 lt__PROGRAM__LTX_preloaded_symbols[] =
12820 {
12821 { "@PROGRAM@", (void *) 0 },
12822 _LT_EOF
12823 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12824 cat <<\_LT_EOF >> conftest.$ac_ext
12825 {0, (void *) 0}
12826 };
12827
12828 /* This works around a problem in FreeBSD linker */
12829 #ifdef FREEBSD_WORKAROUND
12830 static const void *lt_preloaded_setup() {
12831 return lt__PROGRAM__LTX_preloaded_symbols;
12832 }
12833 #endif
12834
12835 #ifdef __cplusplus
12836 }
12837 #endif
12838 _LT_EOF
12839 # Now try linking the two files.
12840 mv conftest.$ac_objext conftstm.$ac_objext
12841 lt_globsym_save_LIBS=$LIBS
12842 lt_globsym_save_CFLAGS=$CFLAGS
12843 LIBS=conftstm.$ac_objext
12844 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12846 (eval $ac_link) 2>&5
12847 ac_status=$?
12848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12849 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12850 pipe_works=yes
12851 fi
12852 LIBS=$lt_globsym_save_LIBS
12853 CFLAGS=$lt_globsym_save_CFLAGS
12854 else
12855 echo "cannot find nm_test_func in $nlist" >&5
12856 fi
12857 else
12858 echo "cannot find nm_test_var in $nlist" >&5
12859 fi
12860 else
12861 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12862 fi
12863 else
12864 echo "$progname: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 fi
12867 rm -rf conftest* conftst*
12868
12869 # Do not use the global_symbol_pipe unless it works.
12870 if test yes = "$pipe_works"; then
12871 break
12872 else
12873 lt_cv_sys_global_symbol_pipe=
12874 fi
12875 done
12876
12877 fi
12878
12879 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12880 lt_cv_sys_global_symbol_to_cdecl=
12881 fi
12882 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12884 $as_echo "failed" >&6; }
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12887 $as_echo "ok" >&6; }
12888 fi
12889
12890 # Response file support.
12891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12892 nm_file_list_spec='@'
12893 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12894 nm_file_list_spec='@'
12895 fi
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12934 $as_echo_n "checking for sysroot... " >&6; }
12935
12936 # Check whether --with-sysroot was given.
12937 if test "${with_sysroot+set}" = set; then :
12938 withval=$with_sysroot;
12939 else
12940 with_sysroot=no
12941 fi
12942
12943
12944 lt_sysroot=
12945 case $with_sysroot in #(
12946 yes)
12947 if test yes = "$GCC"; then
12948 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12949 fi
12950 ;; #(
12951 /*)
12952 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12953 ;; #(
12954 no|'')
12955 ;; #(
12956 *)
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12958 $as_echo "$with_sysroot" >&6; }
12959 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12960 ;;
12961 esac
12962
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12964 $as_echo "${lt_sysroot:-no}" >&6; }
12965
12966
12967
12968
12969
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12971 $as_echo_n "checking for a working dd... " >&6; }
12972 if ${ac_cv_path_lt_DD+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 printf 0123456789abcdef0123456789abcdef >conftest.i
12976 cat conftest.i conftest.i >conftest2.i
12977 : ${lt_DD:=$DD}
12978 if test -z "$lt_DD"; then
12979 ac_path_lt_DD_found=false
12980 # Loop through the user's path and test for each of PROGNAME-LIST
12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982 for as_dir in $PATH
12983 do
12984 IFS=$as_save_IFS
12985 test -z "$as_dir" && as_dir=.
12986 for ac_prog in dd; do
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12989 as_fn_executable_p "$ac_path_lt_DD" || continue
12990 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12991 cmp -s conftest.i conftest.out \
12992 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12993 fi
12994 $ac_path_lt_DD_found && break 3
12995 done
12996 done
12997 done
12998 IFS=$as_save_IFS
12999 if test -z "$ac_cv_path_lt_DD"; then
13000 :
13001 fi
13002 else
13003 ac_cv_path_lt_DD=$lt_DD
13004 fi
13005
13006 rm -f conftest.i conftest2.i conftest.out
13007 fi
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13009 $as_echo "$ac_cv_path_lt_DD" >&6; }
13010
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13013 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13014 if ${lt_cv_truncate_bin+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 printf 0123456789abcdef0123456789abcdef >conftest.i
13018 cat conftest.i conftest.i >conftest2.i
13019 lt_cv_truncate_bin=
13020 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13021 cmp -s conftest.i conftest.out \
13022 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13023 fi
13024 rm -f conftest.i conftest2.i conftest.out
13025 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13028 $as_echo "$lt_cv_truncate_bin" >&6; }
13029
13030
13031
13032
13033
13034
13035
13036 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13037 func_cc_basename ()
13038 {
13039 for cc_temp in $*""; do
13040 case $cc_temp in
13041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13043 \-*) ;;
13044 *) break;;
13045 esac
13046 done
13047 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13048 }
13049
13050 # Check whether --enable-libtool-lock was given.
13051 if test "${enable_libtool_lock+set}" = set; then :
13052 enableval=$enable_libtool_lock;
13053 fi
13054
13055 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13056
13057 # Some flags need to be propagated to the compiler or linker for good
13058 # libtool support.
13059 case $host in
13060 ia64-*-hpux*)
13061 # Find out what ABI is being produced by ac_compile, and set mode
13062 # options accordingly.
13063 echo 'int i;' > conftest.$ac_ext
13064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13065 (eval $ac_compile) 2>&5
13066 ac_status=$?
13067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068 test $ac_status = 0; }; then
13069 case `/usr/bin/file conftest.$ac_objext` in
13070 *ELF-32*)
13071 HPUX_IA64_MODE=32
13072 ;;
13073 *ELF-64*)
13074 HPUX_IA64_MODE=64
13075 ;;
13076 esac
13077 fi
13078 rm -rf conftest*
13079 ;;
13080 *-*-irix6*)
13081 # Find out what ABI is being produced by ac_compile, and set linker
13082 # options accordingly.
13083 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13085 (eval $ac_compile) 2>&5
13086 ac_status=$?
13087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13088 test $ac_status = 0; }; then
13089 if test yes = "$lt_cv_prog_gnu_ld"; then
13090 case `/usr/bin/file conftest.$ac_objext` in
13091 *32-bit*)
13092 LD="${LD-ld} -melf32bsmip"
13093 ;;
13094 *N32*)
13095 LD="${LD-ld} -melf32bmipn32"
13096 ;;
13097 *64-bit*)
13098 LD="${LD-ld} -melf64bmip"
13099 ;;
13100 esac
13101 else
13102 case `/usr/bin/file conftest.$ac_objext` in
13103 *32-bit*)
13104 LD="${LD-ld} -32"
13105 ;;
13106 *N32*)
13107 LD="${LD-ld} -n32"
13108 ;;
13109 *64-bit*)
13110 LD="${LD-ld} -64"
13111 ;;
13112 esac
13113 fi
13114 fi
13115 rm -rf conftest*
13116 ;;
13117
13118 mips64*-*linux*)
13119 # Find out what ABI is being produced by ac_compile, and set linker
13120 # options accordingly.
13121 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13123 (eval $ac_compile) 2>&5
13124 ac_status=$?
13125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126 test $ac_status = 0; }; then
13127 emul=elf
13128 case `/usr/bin/file conftest.$ac_objext` in
13129 *32-bit*)
13130 emul="${emul}32"
13131 ;;
13132 *64-bit*)
13133 emul="${emul}64"
13134 ;;
13135 esac
13136 case `/usr/bin/file conftest.$ac_objext` in
13137 *MSB*)
13138 emul="${emul}btsmip"
13139 ;;
13140 *LSB*)
13141 emul="${emul}ltsmip"
13142 ;;
13143 esac
13144 case `/usr/bin/file conftest.$ac_objext` in
13145 *N32*)
13146 emul="${emul}n32"
13147 ;;
13148 esac
13149 LD="${LD-ld} -m $emul"
13150 fi
13151 rm -rf conftest*
13152 ;;
13153
13154 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13155 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13156 # Find out what ABI is being produced by ac_compile, and set linker
13157 # options accordingly. Note that the listed cases only cover the
13158 # situations where additional linker options are needed (such as when
13159 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13160 # vice versa); the common cases where no linker options are needed do
13161 # not appear in the list.
13162 echo 'int i;' > conftest.$ac_ext
13163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13164 (eval $ac_compile) 2>&5
13165 ac_status=$?
13166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167 test $ac_status = 0; }; then
13168 case `/usr/bin/file conftest.o` in
13169 *32-bit*)
13170 case $host in
13171 x86_64-*kfreebsd*-gnu)
13172 LD="${LD-ld} -m elf_i386_fbsd"
13173 ;;
13174 x86_64-*linux*)
13175 case `/usr/bin/file conftest.o` in
13176 *x86-64*)
13177 LD="${LD-ld} -m elf32_x86_64"
13178 ;;
13179 *)
13180 LD="${LD-ld} -m elf_i386"
13181 ;;
13182 esac
13183 ;;
13184 powerpc64le-*linux*)
13185 LD="${LD-ld} -m elf32lppclinux"
13186 ;;
13187 powerpc64-*linux*)
13188 LD="${LD-ld} -m elf32ppclinux"
13189 ;;
13190 s390x-*linux*)
13191 LD="${LD-ld} -m elf_s390"
13192 ;;
13193 sparc64-*linux*)
13194 LD="${LD-ld} -m elf32_sparc"
13195 ;;
13196 esac
13197 ;;
13198 *64-bit*)
13199 case $host in
13200 x86_64-*kfreebsd*-gnu)
13201 LD="${LD-ld} -m elf_x86_64_fbsd"
13202 ;;
13203 x86_64-*linux*)
13204 LD="${LD-ld} -m elf_x86_64"
13205 ;;
13206 powerpcle-*linux*)
13207 LD="${LD-ld} -m elf64lppc"
13208 ;;
13209 powerpc-*linux*)
13210 LD="${LD-ld} -m elf64ppc"
13211 ;;
13212 s390*-*linux*|s390*-*tpf*)
13213 LD="${LD-ld} -m elf64_s390"
13214 ;;
13215 sparc*-*linux*)
13216 LD="${LD-ld} -m elf64_sparc"
13217 ;;
13218 esac
13219 ;;
13220 esac
13221 fi
13222 rm -rf conftest*
13223 ;;
13224
13225 *-*-sco3.2v5*)
13226 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13227 SAVE_CFLAGS=$CFLAGS
13228 CFLAGS="$CFLAGS -belf"
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13230 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13231 if ${lt_cv_cc_needs_belf+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_ext=c
13235 ac_cpp='$CPP $CPPFLAGS'
13236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242
13243 int
13244 main ()
13245 {
13246
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 lt_cv_cc_needs_belf=yes
13253 else
13254 lt_cv_cc_needs_belf=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 ac_ext=c
13259 ac_cpp='$CPP $CPPFLAGS'
13260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13263
13264 fi
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13266 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13267 if test yes != "$lt_cv_cc_needs_belf"; then
13268 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13269 CFLAGS=$SAVE_CFLAGS
13270 fi
13271 ;;
13272 *-*solaris*)
13273 # Find out what ABI is being produced by ac_compile, and set linker
13274 # options accordingly.
13275 echo 'int i;' > conftest.$ac_ext
13276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13277 (eval $ac_compile) 2>&5
13278 ac_status=$?
13279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13280 test $ac_status = 0; }; then
13281 case `/usr/bin/file conftest.o` in
13282 *64-bit*)
13283 case $lt_cv_prog_gnu_ld in
13284 yes*)
13285 case $host in
13286 i?86-*-solaris*|x86_64-*-solaris*)
13287 LD="${LD-ld} -m elf_x86_64"
13288 ;;
13289 sparc*-*-solaris*)
13290 LD="${LD-ld} -m elf64_sparc"
13291 ;;
13292 esac
13293 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13294 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13295 LD=${LD-ld}_sol2
13296 fi
13297 ;;
13298 *)
13299 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13300 LD="${LD-ld} -64"
13301 fi
13302 ;;
13303 esac
13304 ;;
13305 esac
13306 fi
13307 rm -rf conftest*
13308 ;;
13309 esac
13310
13311 need_locks=$enable_libtool_lock
13312
13313 if test -n "$ac_tool_prefix"; then
13314 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13315 set dummy ${ac_tool_prefix}mt; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$MANIFEST_TOOL"; then
13322 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13326 do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13331 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335 done
13336 done
13337 IFS=$as_save_IFS
13338
13339 fi
13340 fi
13341 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13342 if test -n "$MANIFEST_TOOL"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13344 $as_echo "$MANIFEST_TOOL" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13348 fi
13349
13350
13351 fi
13352 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13353 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13354 # Extract the first word of "mt", so it can be a program name with args.
13355 set dummy mt; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 if test -n "$ac_ct_MANIFEST_TOOL"; then
13362 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13374 fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13382 if test -n "$ac_ct_MANIFEST_TOOL"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13384 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13391 MANIFEST_TOOL=":"
13392 else
13393 case $cross_compiling:$ac_tool_warned in
13394 yes:)
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397 ac_tool_warned=yes ;;
13398 esac
13399 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13400 fi
13401 else
13402 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13403 fi
13404
13405 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13407 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13408 if ${lt_cv_path_mainfest_tool+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 lt_cv_path_mainfest_tool=no
13412 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13413 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13414 cat conftest.err >&5
13415 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13416 lt_cv_path_mainfest_tool=yes
13417 fi
13418 rm -f conftest*
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13421 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13422 if test yes != "$lt_cv_path_mainfest_tool"; then
13423 MANIFEST_TOOL=:
13424 fi
13425
13426
13427
13428
13429
13430
13431 case $host_os in
13432 rhapsody* | darwin*)
13433 if test -n "$ac_tool_prefix"; then
13434 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13435 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437 $as_echo_n "checking for $ac_word... " >&6; }
13438 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 if test -n "$DSYMUTIL"; then
13442 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13443 else
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13446 do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455 done
13456 done
13457 IFS=$as_save_IFS
13458
13459 fi
13460 fi
13461 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13462 if test -n "$DSYMUTIL"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13464 $as_echo "$DSYMUTIL" >&6; }
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13468 fi
13469
13470
13471 fi
13472 if test -z "$ac_cv_prog_DSYMUTIL"; then
13473 ac_ct_DSYMUTIL=$DSYMUTIL
13474 # Extract the first word of "dsymutil", so it can be a program name with args.
13475 set dummy dsymutil; ac_word=$2
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477 $as_echo_n "checking for $ac_word... " >&6; }
13478 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 if test -n "$ac_ct_DSYMUTIL"; then
13482 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13483 else
13484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485 for as_dir in $PATH
13486 do
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13491 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13494 fi
13495 done
13496 done
13497 IFS=$as_save_IFS
13498
13499 fi
13500 fi
13501 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13502 if test -n "$ac_ct_DSYMUTIL"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13504 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13508 fi
13509
13510 if test "x$ac_ct_DSYMUTIL" = x; then
13511 DSYMUTIL=":"
13512 else
13513 case $cross_compiling:$ac_tool_warned in
13514 yes:)
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517 ac_tool_warned=yes ;;
13518 esac
13519 DSYMUTIL=$ac_ct_DSYMUTIL
13520 fi
13521 else
13522 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13523 fi
13524
13525 if test -n "$ac_tool_prefix"; then
13526 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13527 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529 $as_echo_n "checking for $ac_word... " >&6; }
13530 if ${ac_cv_prog_NMEDIT+:} false; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 if test -n "$NMEDIT"; then
13534 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13535 else
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13538 do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547 done
13548 done
13549 IFS=$as_save_IFS
13550
13551 fi
13552 fi
13553 NMEDIT=$ac_cv_prog_NMEDIT
13554 if test -n "$NMEDIT"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13556 $as_echo "$NMEDIT" >&6; }
13557 else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13560 fi
13561
13562
13563 fi
13564 if test -z "$ac_cv_prog_NMEDIT"; then
13565 ac_ct_NMEDIT=$NMEDIT
13566 # Extract the first word of "nmedit", so it can be a program name with args.
13567 set dummy nmedit; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 if test -n "$ac_ct_NMEDIT"; then
13574 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13575 else
13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13578 do
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13583 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 break 2
13586 fi
13587 done
13588 done
13589 IFS=$as_save_IFS
13590
13591 fi
13592 fi
13593 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13594 if test -n "$ac_ct_NMEDIT"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13596 $as_echo "$ac_ct_NMEDIT" >&6; }
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13600 fi
13601
13602 if test "x$ac_ct_NMEDIT" = x; then
13603 NMEDIT=":"
13604 else
13605 case $cross_compiling:$ac_tool_warned in
13606 yes:)
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13609 ac_tool_warned=yes ;;
13610 esac
13611 NMEDIT=$ac_ct_NMEDIT
13612 fi
13613 else
13614 NMEDIT="$ac_cv_prog_NMEDIT"
13615 fi
13616
13617 if test -n "$ac_tool_prefix"; then
13618 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13619 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if ${ac_cv_prog_LIPO+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 if test -n "$LIPO"; then
13626 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13630 do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639 done
13640 done
13641 IFS=$as_save_IFS
13642
13643 fi
13644 fi
13645 LIPO=$ac_cv_prog_LIPO
13646 if test -n "$LIPO"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13648 $as_echo "$LIPO" >&6; }
13649 else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13652 fi
13653
13654
13655 fi
13656 if test -z "$ac_cv_prog_LIPO"; then
13657 ac_ct_LIPO=$LIPO
13658 # Extract the first word of "lipo", so it can be a program name with args.
13659 set dummy lipo; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 if test -n "$ac_ct_LIPO"; then
13666 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13667 else
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13670 do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13675 ac_cv_prog_ac_ct_LIPO="lipo"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679 done
13680 done
13681 IFS=$as_save_IFS
13682
13683 fi
13684 fi
13685 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13686 if test -n "$ac_ct_LIPO"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13688 $as_echo "$ac_ct_LIPO" >&6; }
13689 else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692 fi
13693
13694 if test "x$ac_ct_LIPO" = x; then
13695 LIPO=":"
13696 else
13697 case $cross_compiling:$ac_tool_warned in
13698 yes:)
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13701 ac_tool_warned=yes ;;
13702 esac
13703 LIPO=$ac_ct_LIPO
13704 fi
13705 else
13706 LIPO="$ac_cv_prog_LIPO"
13707 fi
13708
13709 if test -n "$ac_tool_prefix"; then
13710 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13711 set dummy ${ac_tool_prefix}otool; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if ${ac_cv_prog_OTOOL+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 if test -n "$OTOOL"; then
13718 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13719 else
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13722 do
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13730 fi
13731 done
13732 done
13733 IFS=$as_save_IFS
13734
13735 fi
13736 fi
13737 OTOOL=$ac_cv_prog_OTOOL
13738 if test -n "$OTOOL"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13740 $as_echo "$OTOOL" >&6; }
13741 else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13744 fi
13745
13746
13747 fi
13748 if test -z "$ac_cv_prog_OTOOL"; then
13749 ac_ct_OTOOL=$OTOOL
13750 # Extract the first word of "otool", so it can be a program name with args.
13751 set dummy otool; ac_word=$2
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753 $as_echo_n "checking for $ac_word... " >&6; }
13754 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 if test -n "$ac_ct_OTOOL"; then
13758 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13759 else
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13762 do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13767 ac_cv_prog_ac_ct_OTOOL="otool"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771 done
13772 done
13773 IFS=$as_save_IFS
13774
13775 fi
13776 fi
13777 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13778 if test -n "$ac_ct_OTOOL"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13780 $as_echo "$ac_ct_OTOOL" >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13784 fi
13785
13786 if test "x$ac_ct_OTOOL" = x; then
13787 OTOOL=":"
13788 else
13789 case $cross_compiling:$ac_tool_warned in
13790 yes:)
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13793 ac_tool_warned=yes ;;
13794 esac
13795 OTOOL=$ac_ct_OTOOL
13796 fi
13797 else
13798 OTOOL="$ac_cv_prog_OTOOL"
13799 fi
13800
13801 if test -n "$ac_tool_prefix"; then
13802 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13803 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_prog_OTOOL64+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$OTOOL64"; then
13810 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823 done
13824 done
13825 IFS=$as_save_IFS
13826
13827 fi
13828 fi
13829 OTOOL64=$ac_cv_prog_OTOOL64
13830 if test -n "$OTOOL64"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13832 $as_echo "$OTOOL64" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13836 fi
13837
13838
13839 fi
13840 if test -z "$ac_cv_prog_OTOOL64"; then
13841 ac_ct_OTOOL64=$OTOOL64
13842 # Extract the first word of "otool64", so it can be a program name with args.
13843 set dummy otool64; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13845 $as_echo_n "checking for $ac_word... " >&6; }
13846 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 if test -n "$ac_ct_OTOOL64"; then
13850 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13851 else
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13854 do
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13859 ac_cv_prog_ac_ct_OTOOL64="otool64"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13861 break 2
13862 fi
13863 done
13864 done
13865 IFS=$as_save_IFS
13866
13867 fi
13868 fi
13869 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13870 if test -n "$ac_ct_OTOOL64"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13872 $as_echo "$ac_ct_OTOOL64" >&6; }
13873 else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13876 fi
13877
13878 if test "x$ac_ct_OTOOL64" = x; then
13879 OTOOL64=":"
13880 else
13881 case $cross_compiling:$ac_tool_warned in
13882 yes:)
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13885 ac_tool_warned=yes ;;
13886 esac
13887 OTOOL64=$ac_ct_OTOOL64
13888 fi
13889 else
13890 OTOOL64="$ac_cv_prog_OTOOL64"
13891 fi
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13920 $as_echo_n "checking for -single_module linker flag... " >&6; }
13921 if ${lt_cv_apple_cc_single_mod+:} false; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 lt_cv_apple_cc_single_mod=no
13925 if test -z "$LT_MULTI_MODULE"; then
13926 # By default we will add the -single_module flag. You can override
13927 # by either setting the environment variable LT_MULTI_MODULE
13928 # non-empty at configure time, or by adding -multi_module to the
13929 # link flags.
13930 rm -rf libconftest.dylib*
13931 echo "int foo(void){return 1;}" > conftest.c
13932 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13933 -dynamiclib -Wl,-single_module conftest.c" >&5
13934 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13935 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13936 _lt_result=$?
13937 # If there is a non-empty error log, and "single_module"
13938 # appears in it, assume the flag caused a linker warning
13939 if test -s conftest.err && $GREP single_module conftest.err; then
13940 cat conftest.err >&5
13941 # Otherwise, if the output was created with a 0 exit code from
13942 # the compiler, it worked.
13943 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13944 lt_cv_apple_cc_single_mod=yes
13945 else
13946 cat conftest.err >&5
13947 fi
13948 rm -rf libconftest.dylib*
13949 rm -f conftest.*
13950 fi
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13953 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13954
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13957 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 lt_cv_ld_exported_symbols_list=no
13961 save_LDFLAGS=$LDFLAGS
13962 echo "_main" > conftest.sym
13963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13966
13967 int
13968 main ()
13969 {
13970
13971 ;
13972 return 0;
13973 }
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 lt_cv_ld_exported_symbols_list=yes
13977 else
13978 lt_cv_ld_exported_symbols_list=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LDFLAGS=$save_LDFLAGS
13983
13984 fi
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13987
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13989 $as_echo_n "checking for -force_load linker flag... " >&6; }
13990 if ${lt_cv_ld_force_load+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 lt_cv_ld_force_load=no
13994 cat > conftest.c << _LT_EOF
13995 int forced_loaded() { return 2;}
13996 _LT_EOF
13997 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13998 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13999 echo "$AR cru libconftest.a conftest.o" >&5
14000 $AR cru libconftest.a conftest.o 2>&5
14001 echo "$RANLIB libconftest.a" >&5
14002 $RANLIB libconftest.a 2>&5
14003 cat > conftest.c << _LT_EOF
14004 int main() { return 0;}
14005 _LT_EOF
14006 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14007 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14008 _lt_result=$?
14009 if test -s conftest.err && $GREP force_load conftest.err; then
14010 cat conftest.err >&5
14011 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14012 lt_cv_ld_force_load=yes
14013 else
14014 cat conftest.err >&5
14015 fi
14016 rm -f conftest.err libconftest.a conftest conftest.c
14017 rm -rf conftest.dSYM
14018
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14021 $as_echo "$lt_cv_ld_force_load" >&6; }
14022 case $host_os in
14023 rhapsody* | darwin1.[012])
14024 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14025 darwin1.*)
14026 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14027 darwin*) # darwin 5.x on
14028 # if running on 10.5 or later, the deployment target defaults
14029 # to the OS version, if on x86, and 10.4, the deployment
14030 # target defaults to 10.4. Don't you love it?
14031 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14032 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14033 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14034 10.[012][,.]*)
14035 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14036 10.*)
14037 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14038 esac
14039 ;;
14040 esac
14041 if test yes = "$lt_cv_apple_cc_single_mod"; then
14042 _lt_dar_single_mod='$single_module'
14043 fi
14044 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14045 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14046 else
14047 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14048 fi
14049 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14050 _lt_dsymutil='~$DSYMUTIL $lib || :'
14051 else
14052 _lt_dsymutil=
14053 fi
14054 ;;
14055 esac
14056
14057 # func_munge_path_list VARIABLE PATH
14058 # -----------------------------------
14059 # VARIABLE is name of variable containing _space_ separated list of
14060 # directories to be munged by the contents of PATH, which is string
14061 # having a format:
14062 # "DIR[:DIR]:"
14063 # string "DIR[ DIR]" will be prepended to VARIABLE
14064 # ":DIR[:DIR]"
14065 # string "DIR[ DIR]" will be appended to VARIABLE
14066 # "DIRP[:DIRP]::[DIRA:]DIRA"
14067 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14068 # "DIRA[ DIRA]" will be appended to VARIABLE
14069 # "DIR[:DIR]"
14070 # VARIABLE will be replaced by "DIR[ DIR]"
14071 func_munge_path_list ()
14072 {
14073 case x$2 in
14074 x)
14075 ;;
14076 *:)
14077 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14078 ;;
14079 x:*)
14080 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14081 ;;
14082 *::*)
14083 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14084 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14085 ;;
14086 *)
14087 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14088 ;;
14089 esac
14090 }
14091
14092 for ac_header in dlfcn.h
14093 do :
14094 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14095 "
14096 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_DLFCN_H 1
14099 _ACEOF
14100
14101 fi
14102
14103 done
14104
14105
14106
14107
14108
14109 # Set options
14110
14111
14112
14113 enable_dlopen=no
14114
14115
14116 enable_win32_dll=no
14117
14118
14119 # Check whether --enable-shared was given.
14120 if test "${enable_shared+set}" = set; then :
14121 enableval=$enable_shared; p=${PACKAGE-default}
14122 case $enableval in
14123 yes) enable_shared=yes ;;
14124 no) enable_shared=no ;;
14125 *)
14126 enable_shared=no
14127 # Look at the argument we got. We use all the common list separators.
14128 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14129 for pkg in $enableval; do
14130 IFS=$lt_save_ifs
14131 if test "X$pkg" = "X$p"; then
14132 enable_shared=yes
14133 fi
14134 done
14135 IFS=$lt_save_ifs
14136 ;;
14137 esac
14138 else
14139 enable_shared=yes
14140 fi
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152 # Check whether --with-pic was given.
14153 if test "${with_pic+set}" = set; then :
14154 withval=$with_pic; lt_p=${PACKAGE-default}
14155 case $withval in
14156 yes|no) pic_mode=$withval ;;
14157 *)
14158 pic_mode=default
14159 # Look at the argument we got. We use all the common list separators.
14160 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14161 for lt_pkg in $withval; do
14162 IFS=$lt_save_ifs
14163 if test "X$lt_pkg" = "X$lt_p"; then
14164 pic_mode=yes
14165 fi
14166 done
14167 IFS=$lt_save_ifs
14168 ;;
14169 esac
14170 else
14171 pic_mode=default
14172 fi
14173
14174
14175
14176
14177
14178
14179
14180
14181 # Check whether --enable-fast-install was given.
14182 if test "${enable_fast_install+set}" = set; then :
14183 enableval=$enable_fast_install; p=${PACKAGE-default}
14184 case $enableval in
14185 yes) enable_fast_install=yes ;;
14186 no) enable_fast_install=no ;;
14187 *)
14188 enable_fast_install=no
14189 # Look at the argument we got. We use all the common list separators.
14190 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14191 for pkg in $enableval; do
14192 IFS=$lt_save_ifs
14193 if test "X$pkg" = "X$p"; then
14194 enable_fast_install=yes
14195 fi
14196 done
14197 IFS=$lt_save_ifs
14198 ;;
14199 esac
14200 else
14201 enable_fast_install=yes
14202 fi
14203
14204
14205
14206
14207
14208
14209
14210
14211 shared_archive_member_spec=
14212 case $host,$enable_shared in
14213 power*-*-aix[5-9]*,yes)
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14215 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14216
14217 # Check whether --with-aix-soname was given.
14218 if test "${with_aix_soname+set}" = set; then :
14219 withval=$with_aix_soname; case $withval in
14220 aix|svr4|both)
14221 ;;
14222 *)
14223 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14224 ;;
14225 esac
14226 lt_cv_with_aix_soname=$with_aix_soname
14227 else
14228 if ${lt_cv_with_aix_soname+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 lt_cv_with_aix_soname=aix
14232 fi
14233
14234 with_aix_soname=$lt_cv_with_aix_soname
14235 fi
14236
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14238 $as_echo "$with_aix_soname" >&6; }
14239 if test aix != "$with_aix_soname"; then
14240 # For the AIX way of multilib, we name the shared archive member
14241 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14242 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14243 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14244 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14245 if test 64 = "${OBJECT_MODE-32}"; then
14246 shared_archive_member_spec=shr_64
14247 else
14248 shared_archive_member_spec=shr
14249 fi
14250 fi
14251 ;;
14252 *)
14253 with_aix_soname=aix
14254 ;;
14255 esac
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266 # This can be used to rebuild libtool when needed
14267 LIBTOOL_DEPS=$ltmain
14268
14269 # Always use our own libtool.
14270 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301 test -z "$LN_S" && LN_S="ln -s"
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316 if test -n "${ZSH_VERSION+set}"; then
14317 setopt NO_GLOB_SUBST
14318 fi
14319
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14321 $as_echo_n "checking for objdir... " >&6; }
14322 if ${lt_cv_objdir+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 rm -f .libs 2>/dev/null
14326 mkdir .libs 2>/dev/null
14327 if test -d .libs; then
14328 lt_cv_objdir=.libs
14329 else
14330 # MS-DOS does not allow filenames that begin with a dot.
14331 lt_cv_objdir=_libs
14332 fi
14333 rmdir .libs 2>/dev/null
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14336 $as_echo "$lt_cv_objdir" >&6; }
14337 objdir=$lt_cv_objdir
14338
14339
14340
14341
14342
14343 cat >>confdefs.h <<_ACEOF
14344 #define LT_OBJDIR "$lt_cv_objdir/"
14345 _ACEOF
14346
14347
14348
14349
14350 case $host_os in
14351 aix3*)
14352 # AIX sometimes has problems with the GCC collect2 program. For some
14353 # reason, if we set the COLLECT_NAMES environment variable, the problems
14354 # vanish in a puff of smoke.
14355 if test set != "${COLLECT_NAMES+set}"; then
14356 COLLECT_NAMES=
14357 export COLLECT_NAMES
14358 fi
14359 ;;
14360 esac
14361
14362 # Global variables:
14363 ofile=libtool
14364 can_build_shared=yes
14365
14366 # All known linkers require a '.a' archive for static linking (except MSVC,
14367 # which needs '.lib').
14368 libext=a
14369
14370 with_gnu_ld=$lt_cv_prog_gnu_ld
14371
14372 old_CC=$CC
14373 old_CFLAGS=$CFLAGS
14374
14375 # Set sane defaults for various variables
14376 test -z "$CC" && CC=cc
14377 test -z "$LTCC" && LTCC=$CC
14378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14379 test -z "$LD" && LD=ld
14380 test -z "$ac_objext" && ac_objext=o
14381
14382 func_cc_basename $compiler
14383 cc_basename=$func_cc_basename_result
14384
14385
14386 # Only perform the check for file, if the check method requires it
14387 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14388 case $deplibs_check_method in
14389 file_magic*)
14390 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14392 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14393 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 case $MAGIC_CMD in
14397 [\\/*] | ?:[\\/]*)
14398 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14399 ;;
14400 *)
14401 lt_save_MAGIC_CMD=$MAGIC_CMD
14402 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14403 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14404 for ac_dir in $ac_dummy; do
14405 IFS=$lt_save_ifs
14406 test -z "$ac_dir" && ac_dir=.
14407 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14408 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14409 if test -n "$file_magic_test_file"; then
14410 case $deplibs_check_method in
14411 "file_magic "*)
14412 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14413 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14414 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14415 $EGREP "$file_magic_regex" > /dev/null; then
14416 :
14417 else
14418 cat <<_LT_EOF 1>&2
14419
14420 *** Warning: the command libtool uses to detect shared libraries,
14421 *** $file_magic_cmd, produces output that libtool cannot recognize.
14422 *** The result is that libtool may fail to recognize shared libraries
14423 *** as such. This will affect the creation of libtool libraries that
14424 *** depend on shared libraries, but programs linked with such libtool
14425 *** libraries will work regardless of this problem. Nevertheless, you
14426 *** may want to report the problem to your system manager and/or to
14427 *** bug-libtool (at] gnu.org
14428
14429 _LT_EOF
14430 fi ;;
14431 esac
14432 fi
14433 break
14434 fi
14435 done
14436 IFS=$lt_save_ifs
14437 MAGIC_CMD=$lt_save_MAGIC_CMD
14438 ;;
14439 esac
14440 fi
14441
14442 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14443 if test -n "$MAGIC_CMD"; then
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14445 $as_echo "$MAGIC_CMD" >&6; }
14446 else
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14449 fi
14450
14451
14452
14453
14454
14455 if test -z "$lt_cv_path_MAGIC_CMD"; then
14456 if test -n "$ac_tool_prefix"; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14458 $as_echo_n "checking for file... " >&6; }
14459 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 case $MAGIC_CMD in
14463 [\\/*] | ?:[\\/]*)
14464 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14465 ;;
14466 *)
14467 lt_save_MAGIC_CMD=$MAGIC_CMD
14468 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14469 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14470 for ac_dir in $ac_dummy; do
14471 IFS=$lt_save_ifs
14472 test -z "$ac_dir" && ac_dir=.
14473 if test -f "$ac_dir/file"; then
14474 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14475 if test -n "$file_magic_test_file"; then
14476 case $deplibs_check_method in
14477 "file_magic "*)
14478 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14479 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14480 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14481 $EGREP "$file_magic_regex" > /dev/null; then
14482 :
14483 else
14484 cat <<_LT_EOF 1>&2
14485
14486 *** Warning: the command libtool uses to detect shared libraries,
14487 *** $file_magic_cmd, produces output that libtool cannot recognize.
14488 *** The result is that libtool may fail to recognize shared libraries
14489 *** as such. This will affect the creation of libtool libraries that
14490 *** depend on shared libraries, but programs linked with such libtool
14491 *** libraries will work regardless of this problem. Nevertheless, you
14492 *** may want to report the problem to your system manager and/or to
14493 *** bug-libtool (at] gnu.org
14494
14495 _LT_EOF
14496 fi ;;
14497 esac
14498 fi
14499 break
14500 fi
14501 done
14502 IFS=$lt_save_ifs
14503 MAGIC_CMD=$lt_save_MAGIC_CMD
14504 ;;
14505 esac
14506 fi
14507
14508 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14509 if test -n "$MAGIC_CMD"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14511 $as_echo "$MAGIC_CMD" >&6; }
14512 else
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515 fi
14516
14517
14518 else
14519 MAGIC_CMD=:
14520 fi
14521 fi
14522
14523 fi
14524 ;;
14525 esac
14526
14527 # Use C for the default configuration in the libtool script
14528
14529 lt_save_CC=$CC
14530 ac_ext=c
14531 ac_cpp='$CPP $CPPFLAGS'
14532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14535
14536
14537 # Source file extension for C test sources.
14538 ac_ext=c
14539
14540 # Object file extension for compiled C test sources.
14541 objext=o
14542 objext=$objext
14543
14544 # Code to be used in simple compile tests
14545 lt_simple_compile_test_code="int some_variable = 0;"
14546
14547 # Code to be used in simple link tests
14548 lt_simple_link_test_code='int main(){return(0);}'
14549
14550
14551
14552
14553
14554
14555
14556 # If no C compiler was specified, use CC.
14557 LTCC=${LTCC-"$CC"}
14558
14559 # If no C compiler flags were specified, use CFLAGS.
14560 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14561
14562 # Allow CC to be a program name with arguments.
14563 compiler=$CC
14564
14565 # Save the default compiler, since it gets overwritten when the other
14566 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14567 compiler_DEFAULT=$CC
14568
14569 # save warnings/boilerplate of simple test code
14570 ac_outfile=conftest.$ac_objext
14571 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14572 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14573 _lt_compiler_boilerplate=`cat conftest.err`
14574 $RM conftest*
14575
14576 ac_outfile=conftest.$ac_objext
14577 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14578 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14579 _lt_linker_boilerplate=`cat conftest.err`
14580 $RM -r conftest*
14581
14582
14583 if test -n "$compiler"; then
14584
14585 lt_prog_compiler_no_builtin_flag=
14586
14587 if test yes = "$GCC"; then
14588 case $cc_basename in
14589 nvcc*)
14590 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14591 *)
14592 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14593 esac
14594
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14596 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14597 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 lt_cv_prog_compiler_rtti_exceptions=no
14601 ac_outfile=conftest.$ac_objext
14602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14603 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14604 # Insert the option either (1) after the last *FLAGS variable, or
14605 # (2) before a word containing "conftest.", or (3) at the end.
14606 # Note that $ac_compile itself does not contain backslashes and begins
14607 # with a dollar sign (not a hyphen), so the echo should work correctly.
14608 # The option is referenced via a variable to avoid confusing sed.
14609 lt_compile=`echo "$ac_compile" | $SED \
14610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14612 -e 's:$: $lt_compiler_flag:'`
14613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14614 (eval "$lt_compile" 2>conftest.err)
14615 ac_status=$?
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 if (exit $ac_status) && test -s "$ac_outfile"; then
14619 # The compiler can only warn and ignore the option if not recognized
14620 # So say no if there are warnings other than the usual output.
14621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14624 lt_cv_prog_compiler_rtti_exceptions=yes
14625 fi
14626 fi
14627 $RM conftest*
14628
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14631 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14632
14633 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14634 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14635 else
14636 :
14637 fi
14638
14639 fi
14640
14641
14642
14643
14644
14645
14646 lt_prog_compiler_wl=
14647 lt_prog_compiler_pic=
14648 lt_prog_compiler_static=
14649
14650
14651 if test yes = "$GCC"; then
14652 lt_prog_compiler_wl='-Wl,'
14653 lt_prog_compiler_static='-static'
14654
14655 case $host_os in
14656 aix*)
14657 # All AIX code is PIC.
14658 if test ia64 = "$host_cpu"; then
14659 # AIX 5 now supports IA64 processor
14660 lt_prog_compiler_static='-Bstatic'
14661 fi
14662 lt_prog_compiler_pic='-fPIC'
14663 ;;
14664
14665 amigaos*)
14666 case $host_cpu in
14667 powerpc)
14668 # see comment about AmigaOS4 .so support
14669 lt_prog_compiler_pic='-fPIC'
14670 ;;
14671 m68k)
14672 # FIXME: we need at least 68020 code to build shared libraries, but
14673 # adding the '-m68020' flag to GCC prevents building anything better,
14674 # like '-m68040'.
14675 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14676 ;;
14677 esac
14678 ;;
14679
14680 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14681 # PIC is the default for these OSes.
14682 ;;
14683
14684 mingw* | cygwin* | pw32* | os2* | cegcc*)
14685 # This hack is so that the source file can tell whether it is being
14686 # built for inclusion in a dll (and should export symbols for example).
14687 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14688 # (--disable-auto-import) libraries
14689 lt_prog_compiler_pic='-DDLL_EXPORT'
14690 case $host_os in
14691 os2*)
14692 lt_prog_compiler_static='$wl-static'
14693 ;;
14694 esac
14695 ;;
14696
14697 darwin* | rhapsody*)
14698 # PIC is the default on this platform
14699 # Common symbols not allowed in MH_DYLIB files
14700 lt_prog_compiler_pic='-fno-common'
14701 ;;
14702
14703 haiku*)
14704 # PIC is the default for Haiku.
14705 # The "-static" flag exists, but is broken.
14706 lt_prog_compiler_static=
14707 ;;
14708
14709 hpux*)
14710 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14711 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14712 # sets the default TLS model and affects inlining.
14713 case $host_cpu in
14714 hppa*64*)
14715 # +Z the default
14716 ;;
14717 *)
14718 lt_prog_compiler_pic='-fPIC'
14719 ;;
14720 esac
14721 ;;
14722
14723 interix[3-9]*)
14724 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14725 # Instead, we relocate shared libraries at runtime.
14726 ;;
14727
14728 msdosdjgpp*)
14729 # Just because we use GCC doesn't mean we suddenly get shared libraries
14730 # on systems that don't support them.
14731 lt_prog_compiler_can_build_shared=no
14732 enable_shared=no
14733 ;;
14734
14735 *nto* | *qnx*)
14736 # QNX uses GNU C++, but need to define -shared option too, otherwise
14737 # it will coredump.
14738 lt_prog_compiler_pic='-fPIC -shared'
14739 ;;
14740
14741 sysv4*MP*)
14742 if test -d /usr/nec; then
14743 lt_prog_compiler_pic=-Kconform_pic
14744 fi
14745 ;;
14746
14747 *)
14748 lt_prog_compiler_pic='-fPIC'
14749 ;;
14750 esac
14751
14752 case $cc_basename in
14753 nvcc*) # Cuda Compiler Driver 2.2
14754 lt_prog_compiler_wl='-Xlinker '
14755 if test -n "$lt_prog_compiler_pic"; then
14756 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14757 fi
14758 ;;
14759 esac
14760 else
14761 # PORTME Check for flag to pass linker flags through the system compiler.
14762 case $host_os in
14763 aix*)
14764 lt_prog_compiler_wl='-Wl,'
14765 if test ia64 = "$host_cpu"; then
14766 # AIX 5 now supports IA64 processor
14767 lt_prog_compiler_static='-Bstatic'
14768 else
14769 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14770 fi
14771 ;;
14772
14773 darwin* | rhapsody*)
14774 # PIC is the default on this platform
14775 # Common symbols not allowed in MH_DYLIB files
14776 lt_prog_compiler_pic='-fno-common'
14777 case $cc_basename in
14778 nagfor*)
14779 # NAG Fortran compiler
14780 lt_prog_compiler_wl='-Wl,-Wl,,'
14781 lt_prog_compiler_pic='-PIC'
14782 lt_prog_compiler_static='-Bstatic'
14783 ;;
14784 esac
14785 ;;
14786
14787 mingw* | cygwin* | pw32* | os2* | cegcc*)
14788 # This hack is so that the source file can tell whether it is being
14789 # built for inclusion in a dll (and should export symbols for example).
14790 lt_prog_compiler_pic='-DDLL_EXPORT'
14791 case $host_os in
14792 os2*)
14793 lt_prog_compiler_static='$wl-static'
14794 ;;
14795 esac
14796 ;;
14797
14798 hpux9* | hpux10* | hpux11*)
14799 lt_prog_compiler_wl='-Wl,'
14800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14801 # not for PA HP-UX.
14802 case $host_cpu in
14803 hppa*64*|ia64*)
14804 # +Z the default
14805 ;;
14806 *)
14807 lt_prog_compiler_pic='+Z'
14808 ;;
14809 esac
14810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14811 lt_prog_compiler_static='$wl-a ${wl}archive'
14812 ;;
14813
14814 irix5* | irix6* | nonstopux*)
14815 lt_prog_compiler_wl='-Wl,'
14816 # PIC (with -KPIC) is the default.
14817 lt_prog_compiler_static='-non_shared'
14818 ;;
14819
14820 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14821 case $cc_basename in
14822 # old Intel for x86_64, which still supported -KPIC.
14823 ecc*)
14824 lt_prog_compiler_wl='-Wl,'
14825 lt_prog_compiler_pic='-KPIC'
14826 lt_prog_compiler_static='-static'
14827 ;;
14828 # icc used to be incompatible with GCC.
14829 # ICC 10 doesn't accept -KPIC any more.
14830 icc* | ifort*)
14831 lt_prog_compiler_wl='-Wl,'
14832 lt_prog_compiler_pic='-fPIC'
14833 lt_prog_compiler_static='-static'
14834 ;;
14835 # Lahey Fortran 8.1.
14836 lf95*)
14837 lt_prog_compiler_wl='-Wl,'
14838 lt_prog_compiler_pic='--shared'
14839 lt_prog_compiler_static='--static'
14840 ;;
14841 nagfor*)
14842 # NAG Fortran compiler
14843 lt_prog_compiler_wl='-Wl,-Wl,,'
14844 lt_prog_compiler_pic='-PIC'
14845 lt_prog_compiler_static='-Bstatic'
14846 ;;
14847 tcc*)
14848 # Fabrice Bellard et al's Tiny C Compiler
14849 lt_prog_compiler_wl='-Wl,'
14850 lt_prog_compiler_pic='-fPIC'
14851 lt_prog_compiler_static='-static'
14852 ;;
14853 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14854 # Portland Group compilers (*not* the Pentium gcc compiler,
14855 # which looks to be a dead project)
14856 lt_prog_compiler_wl='-Wl,'
14857 lt_prog_compiler_pic='-fpic'
14858 lt_prog_compiler_static='-Bstatic'
14859 ;;
14860 ccc*)
14861 lt_prog_compiler_wl='-Wl,'
14862 # All Alpha code is PIC.
14863 lt_prog_compiler_static='-non_shared'
14864 ;;
14865 xl* | bgxl* | bgf* | mpixl*)
14866 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14867 lt_prog_compiler_wl='-Wl,'
14868 lt_prog_compiler_pic='-qpic'
14869 lt_prog_compiler_static='-qstaticlink'
14870 ;;
14871 *)
14872 case `$CC -V 2>&1 | sed 5q` in
14873 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14874 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14875 lt_prog_compiler_pic='-KPIC'
14876 lt_prog_compiler_static='-Bstatic'
14877 lt_prog_compiler_wl=''
14878 ;;
14879 *Sun\ F* | *Sun*Fortran*)
14880 lt_prog_compiler_pic='-KPIC'
14881 lt_prog_compiler_static='-Bstatic'
14882 lt_prog_compiler_wl='-Qoption ld '
14883 ;;
14884 *Sun\ C*)
14885 # Sun C 5.9
14886 lt_prog_compiler_pic='-KPIC'
14887 lt_prog_compiler_static='-Bstatic'
14888 lt_prog_compiler_wl='-Wl,'
14889 ;;
14890 *Intel*\ [CF]*Compiler*)
14891 lt_prog_compiler_wl='-Wl,'
14892 lt_prog_compiler_pic='-fPIC'
14893 lt_prog_compiler_static='-static'
14894 ;;
14895 *Portland\ Group*)
14896 lt_prog_compiler_wl='-Wl,'
14897 lt_prog_compiler_pic='-fpic'
14898 lt_prog_compiler_static='-Bstatic'
14899 ;;
14900 esac
14901 ;;
14902 esac
14903 ;;
14904
14905 newsos6)
14906 lt_prog_compiler_pic='-KPIC'
14907 lt_prog_compiler_static='-Bstatic'
14908 ;;
14909
14910 *nto* | *qnx*)
14911 # QNX uses GNU C++, but need to define -shared option too, otherwise
14912 # it will coredump.
14913 lt_prog_compiler_pic='-fPIC -shared'
14914 ;;
14915
14916 osf3* | osf4* | osf5*)
14917 lt_prog_compiler_wl='-Wl,'
14918 # All OSF/1 code is PIC.
14919 lt_prog_compiler_static='-non_shared'
14920 ;;
14921
14922 rdos*)
14923 lt_prog_compiler_static='-non_shared'
14924 ;;
14925
14926 solaris*)
14927 lt_prog_compiler_pic='-KPIC'
14928 lt_prog_compiler_static='-Bstatic'
14929 case $cc_basename in
14930 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14931 lt_prog_compiler_wl='-Qoption ld ';;
14932 *)
14933 lt_prog_compiler_wl='-Wl,';;
14934 esac
14935 ;;
14936
14937 sunos4*)
14938 lt_prog_compiler_wl='-Qoption ld '
14939 lt_prog_compiler_pic='-PIC'
14940 lt_prog_compiler_static='-Bstatic'
14941 ;;
14942
14943 sysv4 | sysv4.2uw2* | sysv4.3*)
14944 lt_prog_compiler_wl='-Wl,'
14945 lt_prog_compiler_pic='-KPIC'
14946 lt_prog_compiler_static='-Bstatic'
14947 ;;
14948
14949 sysv4*MP*)
14950 if test -d /usr/nec; then
14951 lt_prog_compiler_pic='-Kconform_pic'
14952 lt_prog_compiler_static='-Bstatic'
14953 fi
14954 ;;
14955
14956 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14957 lt_prog_compiler_wl='-Wl,'
14958 lt_prog_compiler_pic='-KPIC'
14959 lt_prog_compiler_static='-Bstatic'
14960 ;;
14961
14962 unicos*)
14963 lt_prog_compiler_wl='-Wl,'
14964 lt_prog_compiler_can_build_shared=no
14965 ;;
14966
14967 uts4*)
14968 lt_prog_compiler_pic='-pic'
14969 lt_prog_compiler_static='-Bstatic'
14970 ;;
14971
14972 *)
14973 lt_prog_compiler_can_build_shared=no
14974 ;;
14975 esac
14976 fi
14977
14978 case $host_os in
14979 # For platforms that do not support PIC, -DPIC is meaningless:
14980 *djgpp*)
14981 lt_prog_compiler_pic=
14982 ;;
14983 *)
14984 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14985 ;;
14986 esac
14987
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14989 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14990 if ${lt_cv_prog_compiler_pic+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14994 fi
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14996 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14997 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14998
14999 #
15000 # Check to make sure the PIC flag actually works.
15001 #
15002 if test -n "$lt_prog_compiler_pic"; then
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15004 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15005 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008 lt_cv_prog_compiler_pic_works=no
15009 ac_outfile=conftest.$ac_objext
15010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15012 # Insert the option either (1) after the last *FLAGS variable, or
15013 # (2) before a word containing "conftest.", or (3) at the end.
15014 # Note that $ac_compile itself does not contain backslashes and begins
15015 # with a dollar sign (not a hyphen), so the echo should work correctly.
15016 # The option is referenced via a variable to avoid confusing sed.
15017 lt_compile=`echo "$ac_compile" | $SED \
15018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15020 -e 's:$: $lt_compiler_flag:'`
15021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15022 (eval "$lt_compile" 2>conftest.err)
15023 ac_status=$?
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 if (exit $ac_status) && test -s "$ac_outfile"; then
15027 # The compiler can only warn and ignore the option if not recognized
15028 # So say no if there are warnings other than the usual output.
15029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15032 lt_cv_prog_compiler_pic_works=yes
15033 fi
15034 fi
15035 $RM conftest*
15036
15037 fi
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15039 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15040
15041 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15042 case $lt_prog_compiler_pic in
15043 "" | " "*) ;;
15044 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15045 esac
15046 else
15047 lt_prog_compiler_pic=
15048 lt_prog_compiler_can_build_shared=no
15049 fi
15050
15051 fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063 #
15064 # Check to make sure the static flag actually works.
15065 #
15066 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15068 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15069 if ${lt_cv_prog_compiler_static_works+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 lt_cv_prog_compiler_static_works=no
15073 save_LDFLAGS=$LDFLAGS
15074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15075 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15077 # The linker can only warn and ignore the option if not recognized
15078 # So say no if there are warnings
15079 if test -s conftest.err; then
15080 # Append any errors to the config.log.
15081 cat conftest.err 1>&5
15082 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15084 if diff conftest.exp conftest.er2 >/dev/null; then
15085 lt_cv_prog_compiler_static_works=yes
15086 fi
15087 else
15088 lt_cv_prog_compiler_static_works=yes
15089 fi
15090 fi
15091 $RM -r conftest*
15092 LDFLAGS=$save_LDFLAGS
15093
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15096 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15097
15098 if test yes = "$lt_cv_prog_compiler_static_works"; then
15099 :
15100 else
15101 lt_prog_compiler_static=
15102 fi
15103
15104
15105
15106
15107
15108
15109
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15111 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15112 if ${lt_cv_prog_compiler_c_o+:} false; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 lt_cv_prog_compiler_c_o=no
15116 $RM -r conftest 2>/dev/null
15117 mkdir conftest
15118 cd conftest
15119 mkdir out
15120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15121
15122 lt_compiler_flag="-o out/conftest2.$ac_objext"
15123 # Insert the option either (1) after the last *FLAGS variable, or
15124 # (2) before a word containing "conftest.", or (3) at the end.
15125 # Note that $ac_compile itself does not contain backslashes and begins
15126 # with a dollar sign (not a hyphen), so the echo should work correctly.
15127 lt_compile=`echo "$ac_compile" | $SED \
15128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15130 -e 's:$: $lt_compiler_flag:'`
15131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15132 (eval "$lt_compile" 2>out/conftest.err)
15133 ac_status=$?
15134 cat out/conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15137 then
15138 # The compiler can only warn and ignore the option if not recognized
15139 # So say no if there are warnings
15140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15143 lt_cv_prog_compiler_c_o=yes
15144 fi
15145 fi
15146 chmod u+w . 2>&5
15147 $RM conftest*
15148 # SGI C++ compiler will create directory out/ii_files/ for
15149 # template instantiation
15150 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15151 $RM out/* && rmdir out
15152 cd ..
15153 $RM -r conftest
15154 $RM conftest*
15155
15156 fi
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15158 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15159
15160
15161
15162
15163
15164
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15167 if ${lt_cv_prog_compiler_c_o+:} false; then :
15168 $as_echo_n "(cached) " >&6
15169 else
15170 lt_cv_prog_compiler_c_o=no
15171 $RM -r conftest 2>/dev/null
15172 mkdir conftest
15173 cd conftest
15174 mkdir out
15175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176
15177 lt_compiler_flag="-o out/conftest2.$ac_objext"
15178 # Insert the option either (1) after the last *FLAGS variable, or
15179 # (2) before a word containing "conftest.", or (3) at the end.
15180 # Note that $ac_compile itself does not contain backslashes and begins
15181 # with a dollar sign (not a hyphen), so the echo should work correctly.
15182 lt_compile=`echo "$ac_compile" | $SED \
15183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185 -e 's:$: $lt_compiler_flag:'`
15186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15187 (eval "$lt_compile" 2>out/conftest.err)
15188 ac_status=$?
15189 cat out/conftest.err >&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15192 then
15193 # The compiler can only warn and ignore the option if not recognized
15194 # So say no if there are warnings
15195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15198 lt_cv_prog_compiler_c_o=yes
15199 fi
15200 fi
15201 chmod u+w . 2>&5
15202 $RM conftest*
15203 # SGI C++ compiler will create directory out/ii_files/ for
15204 # template instantiation
15205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15206 $RM out/* && rmdir out
15207 cd ..
15208 $RM -r conftest
15209 $RM conftest*
15210
15211 fi
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15214
15215
15216
15217
15218 hard_links=nottested
15219 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15220 # do not overwrite the value of need_locks provided by the user
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15222 $as_echo_n "checking if we can lock with hard links... " >&6; }
15223 hard_links=yes
15224 $RM conftest*
15225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15226 touch conftest.a
15227 ln conftest.a conftest.b 2>&5 || hard_links=no
15228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15230 $as_echo "$hard_links" >&6; }
15231 if test no = "$hard_links"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15233 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15234 need_locks=warn
15235 fi
15236 else
15237 need_locks=no
15238 fi
15239
15240
15241
15242
15243
15244
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15246 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15247
15248 runpath_var=
15249 allow_undefined_flag=
15250 always_export_symbols=no
15251 archive_cmds=
15252 archive_expsym_cmds=
15253 compiler_needs_object=no
15254 enable_shared_with_static_runtimes=no
15255 export_dynamic_flag_spec=
15256 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15257 hardcode_automatic=no
15258 hardcode_direct=no
15259 hardcode_direct_absolute=no
15260 hardcode_libdir_flag_spec=
15261 hardcode_libdir_separator=
15262 hardcode_minus_L=no
15263 hardcode_shlibpath_var=unsupported
15264 inherit_rpath=no
15265 link_all_deplibs=unknown
15266 module_cmds=
15267 module_expsym_cmds=
15268 old_archive_from_new_cmds=
15269 old_archive_from_expsyms_cmds=
15270 thread_safe_flag_spec=
15271 whole_archive_flag_spec=
15272 # include_expsyms should be a list of space-separated symbols to be *always*
15273 # included in the symbol list
15274 include_expsyms=
15275 # exclude_expsyms can be an extended regexp of symbols to exclude
15276 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15277 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15278 # as well as any symbol that contains 'd'.
15279 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15281 # platforms (ab)use it in PIC code, but their linkers get confused if
15282 # the symbol is explicitly referenced. Since portable code cannot
15283 # rely on this symbol name, it's probably fine to never include it in
15284 # preloaded symbol tables.
15285 # Exclude shared library initialization/finalization symbols.
15286 extract_expsyms_cmds=
15287
15288 case $host_os in
15289 cygwin* | mingw* | pw32* | cegcc*)
15290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15291 # When not using gcc, we currently assume that we are using
15292 # Microsoft Visual C++.
15293 if test yes != "$GCC"; then
15294 with_gnu_ld=no
15295 fi
15296 ;;
15297 interix*)
15298 # we just hope/assume this is gcc and not c89 (= MSVC++)
15299 with_gnu_ld=yes
15300 ;;
15301 openbsd* | bitrig*)
15302 with_gnu_ld=no
15303 ;;
15304 esac
15305
15306 ld_shlibs=yes
15307
15308 # On some targets, GNU ld is compatible enough with the native linker
15309 # that we're better off using the native interface for both.
15310 lt_use_gnu_ld_interface=no
15311 if test yes = "$with_gnu_ld"; then
15312 case $host_os in
15313 aix*)
15314 # The AIX port of GNU ld has always aspired to compatibility
15315 # with the native linker. However, as the warning in the GNU ld
15316 # block says, versions before 2.19.5* couldn't really create working
15317 # shared libraries, regardless of the interface used.
15318 case `$LD -v 2>&1` in
15319 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15320 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15321 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15322 *)
15323 lt_use_gnu_ld_interface=yes
15324 ;;
15325 esac
15326 ;;
15327 *)
15328 lt_use_gnu_ld_interface=yes
15329 ;;
15330 esac
15331 fi
15332
15333 if test yes = "$lt_use_gnu_ld_interface"; then
15334 # If archive_cmds runs LD, not CC, wlarc should be empty
15335 wlarc='$wl'
15336
15337 # Set some defaults for GNU ld with shared library support. These
15338 # are reset later if shared libraries are not supported. Putting them
15339 # here allows them to be overridden if necessary.
15340 runpath_var=LD_RUN_PATH
15341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15342 export_dynamic_flag_spec='$wl--export-dynamic'
15343 # ancient GNU ld didn't support --whole-archive et. al.
15344 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15345 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15346 else
15347 whole_archive_flag_spec=
15348 fi
15349 supports_anon_versioning=no
15350 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15351 *GNU\ gold*) supports_anon_versioning=yes ;;
15352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15355 *\ 2.11.*) ;; # other 2.11 versions
15356 *) supports_anon_versioning=yes ;;
15357 esac
15358
15359 # See if GNU ld supports shared libraries.
15360 case $host_os in
15361 aix[3-9]*)
15362 # On AIX/PPC, the GNU linker is very broken
15363 if test ia64 != "$host_cpu"; then
15364 ld_shlibs=no
15365 cat <<_LT_EOF 1>&2
15366
15367 *** Warning: the GNU linker, at least up to release 2.19, is reported
15368 *** to be unable to reliably create shared libraries on AIX.
15369 *** Therefore, libtool is disabling shared libraries support. If you
15370 *** really care for shared libraries, you may want to install binutils
15371 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15372 *** You will then need to restart the configuration process.
15373
15374 _LT_EOF
15375 fi
15376 ;;
15377
15378 amigaos*)
15379 case $host_cpu in
15380 powerpc)
15381 # see comment about AmigaOS4 .so support
15382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15383 archive_expsym_cmds=''
15384 ;;
15385 m68k)
15386 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)'
15387 hardcode_libdir_flag_spec='-L$libdir'
15388 hardcode_minus_L=yes
15389 ;;
15390 esac
15391 ;;
15392
15393 beos*)
15394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15395 allow_undefined_flag=unsupported
15396 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15397 # support --undefined. This deserves some investigation. FIXME
15398 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15399 else
15400 ld_shlibs=no
15401 fi
15402 ;;
15403
15404 cygwin* | mingw* | pw32* | cegcc*)
15405 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15406 # as there is no search path for DLLs.
15407 hardcode_libdir_flag_spec='-L$libdir'
15408 export_dynamic_flag_spec='$wl--export-all-symbols'
15409 allow_undefined_flag=unsupported
15410 always_export_symbols=no
15411 enable_shared_with_static_runtimes=yes
15412 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'
15413 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15414
15415 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15417 # If the export-symbols file already is a .def file, use it as
15418 # is; otherwise, prepend EXPORTS...
15419 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15420 cp $export_symbols $output_objdir/$soname.def;
15421 else
15422 echo EXPORTS > $output_objdir/$soname.def;
15423 cat $export_symbols >> $output_objdir/$soname.def;
15424 fi~
15425 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15426 else
15427 ld_shlibs=no
15428 fi
15429 ;;
15430
15431 haiku*)
15432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15433 link_all_deplibs=yes
15434 ;;
15435
15436 os2*)
15437 hardcode_libdir_flag_spec='-L$libdir'
15438 hardcode_minus_L=yes
15439 allow_undefined_flag=unsupported
15440 shrext_cmds=.dll
15441 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15442 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15443 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15444 $ECHO EXPORTS >> $output_objdir/$libname.def~
15445 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15446 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15447 emximp -o $lib $output_objdir/$libname.def'
15448 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15449 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15450 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15451 $ECHO EXPORTS >> $output_objdir/$libname.def~
15452 prefix_cmds="$SED"~
15453 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15454 prefix_cmds="$prefix_cmds -e 1d";
15455 fi~
15456 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15457 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15458 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15459 emximp -o $lib $output_objdir/$libname.def'
15460 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15461 enable_shared_with_static_runtimes=yes
15462 ;;
15463
15464 interix[3-9]*)
15465 hardcode_direct=no
15466 hardcode_shlibpath_var=no
15467 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15468 export_dynamic_flag_spec='$wl-E'
15469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15470 # Instead, shared libraries are loaded at an image base (0x10000000 by
15471 # default) and relocated if they conflict, which is a slow very memory
15472 # consuming and fragmenting process. To avoid this, we pick a random,
15473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15476 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'
15477 ;;
15478
15479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15480 tmp_diet=no
15481 if test linux-dietlibc = "$host_os"; then
15482 case $cc_basename in
15483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15484 esac
15485 fi
15486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15487 && test no = "$tmp_diet"
15488 then
15489 tmp_addflag=' $pic_flag'
15490 tmp_sharedflag='-shared'
15491 case $cc_basename,$host_cpu in
15492 pgcc*) # Portland Group C compiler
15493 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'
15494 tmp_addflag=' $pic_flag'
15495 ;;
15496 pgf77* | pgf90* | pgf95* | pgfortran*)
15497 # Portland Group f77 and f90 compilers
15498 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'
15499 tmp_addflag=' $pic_flag -Mnomain' ;;
15500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15501 tmp_addflag=' -i_dynamic' ;;
15502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15503 tmp_addflag=' -i_dynamic -nofor_main' ;;
15504 ifc* | ifort*) # Intel Fortran compiler
15505 tmp_addflag=' -nofor_main' ;;
15506 lf95*) # Lahey Fortran 8.1
15507 whole_archive_flag_spec=
15508 tmp_sharedflag='--shared' ;;
15509 nagfor*) # NAGFOR 5.3
15510 tmp_sharedflag='-Wl,-shared' ;;
15511 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15512 tmp_sharedflag='-qmkshrobj'
15513 tmp_addflag= ;;
15514 nvcc*) # Cuda Compiler Driver 2.2
15515 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'
15516 compiler_needs_object=yes
15517 ;;
15518 esac
15519 case `$CC -V 2>&1 | sed 5q` in
15520 *Sun\ C*) # Sun C 5.9
15521 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'
15522 compiler_needs_object=yes
15523 tmp_sharedflag='-G' ;;
15524 *Sun\ F*) # Sun Fortran 8.3
15525 tmp_sharedflag='-G' ;;
15526 esac
15527 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15528
15529 if test yes = "$supports_anon_versioning"; then
15530 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15532 echo "local: *; };" >> $output_objdir/$libname.ver~
15533 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15534 fi
15535
15536 case $cc_basename in
15537 tcc*)
15538 export_dynamic_flag_spec='-rdynamic'
15539 ;;
15540 xlf* | bgf* | bgxlf* | mpixlf*)
15541 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15542 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15543 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15544 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15545 if test yes = "$supports_anon_versioning"; then
15546 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15547 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15548 echo "local: *; };" >> $output_objdir/$libname.ver~
15549 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15550 fi
15551 ;;
15552 esac
15553 else
15554 ld_shlibs=no
15555 fi
15556 ;;
15557
15558 netbsd*)
15559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15560 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15561 wlarc=
15562 else
15563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15564 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15565 fi
15566 ;;
15567
15568 solaris*)
15569 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15570 ld_shlibs=no
15571 cat <<_LT_EOF 1>&2
15572
15573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15574 *** create shared libraries on Solaris systems. Therefore, libtool
15575 *** is disabling shared libraries support. We urge you to upgrade GNU
15576 *** binutils to release 2.9.1 or newer. Another option is to modify
15577 *** your PATH or compiler configuration so that the native linker is
15578 *** used, and then restart.
15579
15580 _LT_EOF
15581 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15583 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15584 else
15585 ld_shlibs=no
15586 fi
15587 ;;
15588
15589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15590 case `$LD -v 2>&1` in
15591 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15592 ld_shlibs=no
15593 cat <<_LT_EOF 1>&2
15594
15595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15596 *** reliably create shared libraries on SCO systems. Therefore, libtool
15597 *** is disabling shared libraries support. We urge you to upgrade GNU
15598 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15599 *** your PATH or compiler configuration so that the native linker is
15600 *** used, and then restart.
15601
15602 _LT_EOF
15603 ;;
15604 *)
15605 # For security reasons, it is highly recommended that you always
15606 # use absolute paths for naming shared libraries, and exclude the
15607 # DT_RUNPATH tag from executables and libraries. But doing so
15608 # requires that you compile everything twice, which is a pain.
15609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15610 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15613 else
15614 ld_shlibs=no
15615 fi
15616 ;;
15617 esac
15618 ;;
15619
15620 sunos4*)
15621 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15622 wlarc=
15623 hardcode_direct=yes
15624 hardcode_shlibpath_var=no
15625 ;;
15626
15627 *)
15628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15630 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15631 else
15632 ld_shlibs=no
15633 fi
15634 ;;
15635 esac
15636
15637 if test no = "$ld_shlibs"; then
15638 runpath_var=
15639 hardcode_libdir_flag_spec=
15640 export_dynamic_flag_spec=
15641 whole_archive_flag_spec=
15642 fi
15643 else
15644 # PORTME fill in a description of your system's linker (not GNU ld)
15645 case $host_os in
15646 aix3*)
15647 allow_undefined_flag=unsupported
15648 always_export_symbols=yes
15649 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'
15650 # Note: this linker hardcodes the directories in LIBPATH if there
15651 # are no directories specified by -L.
15652 hardcode_minus_L=yes
15653 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15654 # Neither direct hardcoding nor static linking is supported with a
15655 # broken collect2.
15656 hardcode_direct=unsupported
15657 fi
15658 ;;
15659
15660 aix[4-9]*)
15661 if test ia64 = "$host_cpu"; then
15662 # On IA64, the linker does run time linking by default, so we don't
15663 # have to do anything special.
15664 aix_use_runtimelinking=no
15665 exp_sym_flag='-Bexport'
15666 no_entry_flag=
15667 else
15668 # If we're using GNU nm, then we don't want the "-C" option.
15669 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15670 # Without the "-l" option, or with the "-B" option, AIX nm treats
15671 # weak defined symbols like other global defined symbols, whereas
15672 # GNU nm marks them as "W".
15673 # While the 'weak' keyword is ignored in the Export File, we need
15674 # it in the Import File for the 'aix-soname' feature, so we have
15675 # to replace the "-B" option with "-P" for AIX nm.
15676 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15677 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'
15678 else
15679 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'
15680 fi
15681 aix_use_runtimelinking=no
15682
15683 # Test if we are trying to use run time linking or normal
15684 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15685 # have runtime linking enabled, and use it for executables.
15686 # For shared libraries, we enable/disable runtime linking
15687 # depending on the kind of the shared library created -
15688 # when "with_aix_soname,aix_use_runtimelinking" is:
15689 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15690 # "aix,yes" lib.so shared, rtl:yes, for executables
15691 # lib.a static archive
15692 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15693 # lib.a(lib.so.V) shared, rtl:no, for executables
15694 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15695 # lib.a(lib.so.V) shared, rtl:no
15696 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15697 # lib.a static archive
15698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15699 for ld_flag in $LDFLAGS; do
15700 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15701 aix_use_runtimelinking=yes
15702 break
15703 fi
15704 done
15705 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15706 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15707 # so we don't have lib.a shared libs to link our executables.
15708 # We have to force runtime linking in this case.
15709 aix_use_runtimelinking=yes
15710 LDFLAGS="$LDFLAGS -Wl,-brtl"
15711 fi
15712 ;;
15713 esac
15714
15715 exp_sym_flag='-bexport'
15716 no_entry_flag='-bnoentry'
15717 fi
15718
15719 # When large executables or shared objects are built, AIX ld can
15720 # have problems creating the table of contents. If linking a library
15721 # or program results in "error TOC overflow" add -mminimal-toc to
15722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15724
15725 archive_cmds=''
15726 hardcode_direct=yes
15727 hardcode_direct_absolute=yes
15728 hardcode_libdir_separator=':'
15729 link_all_deplibs=yes
15730 file_list_spec='$wl-f,'
15731 case $with_aix_soname,$aix_use_runtimelinking in
15732 aix,*) ;; # traditional, no import file
15733 svr4,* | *,yes) # use import file
15734 # The Import File defines what to hardcode.
15735 hardcode_direct=no
15736 hardcode_direct_absolute=no
15737 ;;
15738 esac
15739
15740 if test yes = "$GCC"; then
15741 case $host_os in aix4.[012]|aix4.[012].*)
15742 # We only want to do this on AIX 4.2 and lower, the check
15743 # below for broken collect2 doesn't work under 4.3+
15744 collect2name=`$CC -print-prog-name=collect2`
15745 if test -f "$collect2name" &&
15746 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15747 then
15748 # We have reworked collect2
15749 :
15750 else
15751 # We have old collect2
15752 hardcode_direct=unsupported
15753 # It fails to find uninstalled libraries when the uninstalled
15754 # path is not listed in the libpath. Setting hardcode_minus_L
15755 # to unsupported forces relinking
15756 hardcode_minus_L=yes
15757 hardcode_libdir_flag_spec='-L$libdir'
15758 hardcode_libdir_separator=
15759 fi
15760 ;;
15761 esac
15762 shared_flag='-shared'
15763 if test yes = "$aix_use_runtimelinking"; then
15764 shared_flag="$shared_flag "'$wl-G'
15765 fi
15766 # Need to ensure runtime linking is disabled for the traditional
15767 # shared library, or the linker may eventually find shared libraries
15768 # /with/ Import File - we do not want to mix them.
15769 shared_flag_aix='-shared'
15770 shared_flag_svr4='-shared $wl-G'
15771 else
15772 # not using gcc
15773 if test ia64 = "$host_cpu"; then
15774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15775 # chokes on -Wl,-G. The following line is correct:
15776 shared_flag='-G'
15777 else
15778 if test yes = "$aix_use_runtimelinking"; then
15779 shared_flag='$wl-G'
15780 else
15781 shared_flag='$wl-bM:SRE'
15782 fi
15783 shared_flag_aix='$wl-bM:SRE'
15784 shared_flag_svr4='$wl-G'
15785 fi
15786 fi
15787
15788 export_dynamic_flag_spec='$wl-bexpall'
15789 # It seems that -bexpall does not export symbols beginning with
15790 # underscore (_), so it is better to generate a list of symbols to export.
15791 always_export_symbols=yes
15792 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15793 # Warning - without using the other runtime loading flags (-brtl),
15794 # -berok will link without error, but may produce a broken library.
15795 allow_undefined_flag='-berok'
15796 # Determine the default libpath from the value encoded in an
15797 # empty executable.
15798 if test set = "${lt_cv_aix_libpath+set}"; then
15799 aix_libpath=$lt_cv_aix_libpath
15800 else
15801 if ${lt_cv_aix_libpath_+:} false; then :
15802 $as_echo_n "(cached) " >&6
15803 else
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806
15807 int
15808 main ()
15809 {
15810
15811 ;
15812 return 0;
15813 }
15814 _ACEOF
15815 if ac_fn_c_try_link "$LINENO"; then :
15816
15817 lt_aix_libpath_sed='
15818 /Import File Strings/,/^$/ {
15819 /^0/ {
15820 s/^0 *\([^ ]*\) *$/\1/
15821 p
15822 }
15823 }'
15824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15825 # Check for a 64-bit object if we didn't find anything.
15826 if test -z "$lt_cv_aix_libpath_"; then
15827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15828 fi
15829 fi
15830 rm -f core conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
15832 if test -z "$lt_cv_aix_libpath_"; then
15833 lt_cv_aix_libpath_=/usr/lib:/lib
15834 fi
15835
15836 fi
15837
15838 aix_libpath=$lt_cv_aix_libpath_
15839 fi
15840
15841 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15842 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
15843 else
15844 if test ia64 = "$host_cpu"; then
15845 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15846 allow_undefined_flag="-z nodefs"
15847 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"
15848 else
15849 # Determine the default libpath from the value encoded in an
15850 # empty executable.
15851 if test set = "${lt_cv_aix_libpath+set}"; then
15852 aix_libpath=$lt_cv_aix_libpath
15853 else
15854 if ${lt_cv_aix_libpath_+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859
15860 int
15861 main ()
15862 {
15863
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"; then :
15869
15870 lt_aix_libpath_sed='
15871 /Import File Strings/,/^$/ {
15872 /^0/ {
15873 s/^0 *\([^ ]*\) *$/\1/
15874 p
15875 }
15876 }'
15877 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15878 # Check for a 64-bit object if we didn't find anything.
15879 if test -z "$lt_cv_aix_libpath_"; then
15880 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15881 fi
15882 fi
15883 rm -f core conftest.err conftest.$ac_objext \
15884 conftest$ac_exeext conftest.$ac_ext
15885 if test -z "$lt_cv_aix_libpath_"; then
15886 lt_cv_aix_libpath_=/usr/lib:/lib
15887 fi
15888
15889 fi
15890
15891 aix_libpath=$lt_cv_aix_libpath_
15892 fi
15893
15894 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15895 # Warning - without using the other run time loading flags,
15896 # -berok will link without error, but may produce a broken library.
15897 no_undefined_flag=' $wl-bernotok'
15898 allow_undefined_flag=' $wl-berok'
15899 if test yes = "$with_gnu_ld"; then
15900 # We only use this code for GNU lds that support --whole-archive.
15901 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15902 else
15903 # Exported symbols can be pulled into shared objects from archives
15904 whole_archive_flag_spec='$convenience'
15905 fi
15906 archive_cmds_need_lc=yes
15907 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15908 # -brtl affects multiple linker settings, -berok does not and is overridden later
15909 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15910 if test svr4 != "$with_aix_soname"; then
15911 # This is similar to how AIX traditionally builds its shared libraries.
15912 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'
15913 fi
15914 if test aix != "$with_aix_soname"; then
15915 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'
15916 else
15917 # used by -dlpreopen to get the symbols
15918 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15919 fi
15920 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15921 fi
15922 fi
15923 ;;
15924
15925 amigaos*)
15926 case $host_cpu in
15927 powerpc)
15928 # see comment about AmigaOS4 .so support
15929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15930 archive_expsym_cmds=''
15931 ;;
15932 m68k)
15933 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)'
15934 hardcode_libdir_flag_spec='-L$libdir'
15935 hardcode_minus_L=yes
15936 ;;
15937 esac
15938 ;;
15939
15940 bsdi[45]*)
15941 export_dynamic_flag_spec=-rdynamic
15942 ;;
15943
15944 cygwin* | mingw* | pw32* | cegcc*)
15945 # When not using gcc, we currently assume that we are using
15946 # Microsoft Visual C++.
15947 # hardcode_libdir_flag_spec is actually meaningless, as there is
15948 # no search path for DLLs.
15949 case $cc_basename in
15950 cl*)
15951 # Native MSVC
15952 hardcode_libdir_flag_spec=' '
15953 allow_undefined_flag=unsupported
15954 always_export_symbols=yes
15955 file_list_spec='@'
15956 # Tell ltmain to make .lib files, not .a files.
15957 libext=lib
15958 # Tell ltmain to make .dll files, not .so files.
15959 shrext_cmds=.dll
15960 # FIXME: Setting linknames here is a bad hack.
15961 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15962 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15963 cp "$export_symbols" "$output_objdir/$soname.def";
15964 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15965 else
15966 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15967 fi~
15968 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15969 linknames='
15970 # The linker will not automatically build a static lib if we build a DLL.
15971 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15972 enable_shared_with_static_runtimes=yes
15973 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15974 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15975 # Don't use ranlib
15976 old_postinstall_cmds='chmod 644 $oldlib'
15977 postlink_cmds='lt_outputfile="@OUTPUT@"~
15978 lt_tool_outputfile="@TOOL_OUTPUT@"~
15979 case $lt_outputfile in
15980 *.exe|*.EXE) ;;
15981 *)
15982 lt_outputfile=$lt_outputfile.exe
15983 lt_tool_outputfile=$lt_tool_outputfile.exe
15984 ;;
15985 esac~
15986 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15987 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15988 $RM "$lt_outputfile.manifest";
15989 fi'
15990 ;;
15991 *)
15992 # Assume MSVC wrapper
15993 hardcode_libdir_flag_spec=' '
15994 allow_undefined_flag=unsupported
15995 # Tell ltmain to make .lib files, not .a files.
15996 libext=lib
15997 # Tell ltmain to make .dll files, not .so files.
15998 shrext_cmds=.dll
15999 # FIXME: Setting linknames here is a bad hack.
16000 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16001 # The linker will automatically build a .lib file if we build a DLL.
16002 old_archive_from_new_cmds='true'
16003 # FIXME: Should let the user specify the lib program.
16004 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16005 enable_shared_with_static_runtimes=yes
16006 ;;
16007 esac
16008 ;;
16009
16010 darwin* | rhapsody*)
16011
16012
16013 archive_cmds_need_lc=no
16014 hardcode_direct=no
16015 hardcode_automatic=yes
16016 hardcode_shlibpath_var=unsupported
16017 if test yes = "$lt_cv_ld_force_load"; then
16018 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\"`'
16019
16020 else
16021 whole_archive_flag_spec=''
16022 fi
16023 link_all_deplibs=yes
16024 allow_undefined_flag=$_lt_dar_allow_undefined
16025 case $cc_basename in
16026 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16027 *) _lt_dar_can_shared=$GCC ;;
16028 esac
16029 if test yes = "$_lt_dar_can_shared"; then
16030 output_verbose_link_cmd=func_echo_all
16031 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16032 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16033 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"
16034 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"
16035
16036 else
16037 ld_shlibs=no
16038 fi
16039
16040 ;;
16041
16042 dgux*)
16043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_libdir_flag_spec='-L$libdir'
16045 hardcode_shlibpath_var=no
16046 ;;
16047
16048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16049 # support. Future versions do this automatically, but an explicit c++rt0.o
16050 # does not break anything, and helps significantly (at the cost of a little
16051 # extra space).
16052 freebsd2.2*)
16053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16054 hardcode_libdir_flag_spec='-R$libdir'
16055 hardcode_direct=yes
16056 hardcode_shlibpath_var=no
16057 ;;
16058
16059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16060 freebsd2.*)
16061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 hardcode_direct=yes
16063 hardcode_minus_L=yes
16064 hardcode_shlibpath_var=no
16065 ;;
16066
16067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16068 freebsd* | dragonfly*)
16069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070 hardcode_libdir_flag_spec='-R$libdir'
16071 hardcode_direct=yes
16072 hardcode_shlibpath_var=no
16073 ;;
16074
16075 hpux9*)
16076 if test yes = "$GCC"; then
16077 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'
16078 else
16079 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'
16080 fi
16081 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16082 hardcode_libdir_separator=:
16083 hardcode_direct=yes
16084
16085 # hardcode_minus_L: Not really in the search PATH,
16086 # but as the default location of the library.
16087 hardcode_minus_L=yes
16088 export_dynamic_flag_spec='$wl-E'
16089 ;;
16090
16091 hpux10*)
16092 if test yes,no = "$GCC,$with_gnu_ld"; then
16093 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16094 else
16095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16096 fi
16097 if test no = "$with_gnu_ld"; then
16098 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16099 hardcode_libdir_separator=:
16100 hardcode_direct=yes
16101 hardcode_direct_absolute=yes
16102 export_dynamic_flag_spec='$wl-E'
16103 # hardcode_minus_L: Not really in the search PATH,
16104 # but as the default location of the library.
16105 hardcode_minus_L=yes
16106 fi
16107 ;;
16108
16109 hpux11*)
16110 if test yes,no = "$GCC,$with_gnu_ld"; then
16111 case $host_cpu in
16112 hppa*64*)
16113 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16114 ;;
16115 ia64*)
16116 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16117 ;;
16118 *)
16119 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16120 ;;
16121 esac
16122 else
16123 case $host_cpu in
16124 hppa*64*)
16125 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 ;;
16127 ia64*)
16128 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16129 ;;
16130 *)
16131
16132 # Older versions of the 11.00 compiler do not understand -b yet
16133 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16135 $as_echo_n "checking if $CC understands -b... " >&6; }
16136 if ${lt_cv_prog_compiler__b+:} false; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16139 lt_cv_prog_compiler__b=no
16140 save_LDFLAGS=$LDFLAGS
16141 LDFLAGS="$LDFLAGS -b"
16142 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16143 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16144 # The linker can only warn and ignore the option if not recognized
16145 # So say no if there are warnings
16146 if test -s conftest.err; then
16147 # Append any errors to the config.log.
16148 cat conftest.err 1>&5
16149 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16151 if diff conftest.exp conftest.er2 >/dev/null; then
16152 lt_cv_prog_compiler__b=yes
16153 fi
16154 else
16155 lt_cv_prog_compiler__b=yes
16156 fi
16157 fi
16158 $RM -r conftest*
16159 LDFLAGS=$save_LDFLAGS
16160
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16163 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16164
16165 if test yes = "$lt_cv_prog_compiler__b"; then
16166 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16167 else
16168 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16169 fi
16170
16171 ;;
16172 esac
16173 fi
16174 if test no = "$with_gnu_ld"; then
16175 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16176 hardcode_libdir_separator=:
16177
16178 case $host_cpu in
16179 hppa*64*|ia64*)
16180 hardcode_direct=no
16181 hardcode_shlibpath_var=no
16182 ;;
16183 *)
16184 hardcode_direct=yes
16185 hardcode_direct_absolute=yes
16186 export_dynamic_flag_spec='$wl-E'
16187
16188 # hardcode_minus_L: Not really in the search PATH,
16189 # but as the default location of the library.
16190 hardcode_minus_L=yes
16191 ;;
16192 esac
16193 fi
16194 ;;
16195
16196 irix5* | irix6* | nonstopux*)
16197 if test yes = "$GCC"; then
16198 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'
16199 # Try to use the -exported_symbol ld option, if it does not
16200 # work, assume that -exports_file does not work either and
16201 # implicitly export all symbols.
16202 # This should be the same for all languages, so no per-tag cache variable.
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16204 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16205 if ${lt_cv_irix_exported_symbol+:} false; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 save_LDFLAGS=$LDFLAGS
16209 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 int foo (void) { return 0; }
16213 _ACEOF
16214 if ac_fn_c_try_link "$LINENO"; then :
16215 lt_cv_irix_exported_symbol=yes
16216 else
16217 lt_cv_irix_exported_symbol=no
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 LDFLAGS=$save_LDFLAGS
16222 fi
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16224 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16225 if test yes = "$lt_cv_irix_exported_symbol"; then
16226 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'
16227 fi
16228 else
16229 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'
16230 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'
16231 fi
16232 archive_cmds_need_lc='no'
16233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16234 hardcode_libdir_separator=:
16235 inherit_rpath=yes
16236 link_all_deplibs=yes
16237 ;;
16238
16239 linux*)
16240 case $cc_basename in
16241 tcc*)
16242 # Fabrice Bellard et al's Tiny C Compiler
16243 ld_shlibs=yes
16244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16245 ;;
16246 esac
16247 ;;
16248
16249 netbsd*)
16250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16252 else
16253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16254 fi
16255 hardcode_libdir_flag_spec='-R$libdir'
16256 hardcode_direct=yes
16257 hardcode_shlibpath_var=no
16258 ;;
16259
16260 newsos6)
16261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16262 hardcode_direct=yes
16263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16264 hardcode_libdir_separator=:
16265 hardcode_shlibpath_var=no
16266 ;;
16267
16268 *nto* | *qnx*)
16269 ;;
16270
16271 openbsd* | bitrig*)
16272 if test -f /usr/libexec/ld.so; then
16273 hardcode_direct=yes
16274 hardcode_shlibpath_var=no
16275 hardcode_direct_absolute=yes
16276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16279 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16280 export_dynamic_flag_spec='$wl-E'
16281 else
16282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16283 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16284 fi
16285 else
16286 ld_shlibs=no
16287 fi
16288 ;;
16289
16290 os2*)
16291 hardcode_libdir_flag_spec='-L$libdir'
16292 hardcode_minus_L=yes
16293 allow_undefined_flag=unsupported
16294 shrext_cmds=.dll
16295 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16298 $ECHO EXPORTS >> $output_objdir/$libname.def~
16299 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16301 emximp -o $lib $output_objdir/$libname.def'
16302 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16305 $ECHO EXPORTS >> $output_objdir/$libname.def~
16306 prefix_cmds="$SED"~
16307 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16308 prefix_cmds="$prefix_cmds -e 1d";
16309 fi~
16310 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16311 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16313 emximp -o $lib $output_objdir/$libname.def'
16314 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16315 enable_shared_with_static_runtimes=yes
16316 ;;
16317
16318 osf3*)
16319 if test yes = "$GCC"; then
16320 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16321 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'
16322 else
16323 allow_undefined_flag=' -expect_unresolved \*'
16324 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'
16325 fi
16326 archive_cmds_need_lc='no'
16327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16328 hardcode_libdir_separator=:
16329 ;;
16330
16331 osf4* | osf5*) # as osf3* with the addition of -msym flag
16332 if test yes = "$GCC"; then
16333 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16334 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'
16335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16336 else
16337 allow_undefined_flag=' -expect_unresolved \*'
16338 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'
16339 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~
16340 $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'
16341
16342 # Both c and cxx compiler support -rpath directly
16343 hardcode_libdir_flag_spec='-rpath $libdir'
16344 fi
16345 archive_cmds_need_lc='no'
16346 hardcode_libdir_separator=:
16347 ;;
16348
16349 solaris*)
16350 no_undefined_flag=' -z defs'
16351 if test yes = "$GCC"; then
16352 wlarc='$wl'
16353 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16355 $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'
16356 else
16357 case `$CC -V 2>&1` in
16358 *"Compilers 5.0"*)
16359 wlarc=''
16360 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16362 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16363 ;;
16364 *)
16365 wlarc='$wl'
16366 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16368 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16369 ;;
16370 esac
16371 fi
16372 hardcode_libdir_flag_spec='-R$libdir'
16373 hardcode_shlibpath_var=no
16374 case $host_os in
16375 solaris2.[0-5] | solaris2.[0-5].*) ;;
16376 *)
16377 # The compiler driver will combine and reorder linker options,
16378 # but understands '-z linker_flag'. GCC discards it without '$wl',
16379 # but is careful enough not to reorder.
16380 # Supported since Solaris 2.6 (maybe 2.5.1?)
16381 if test yes = "$GCC"; then
16382 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16383 else
16384 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16385 fi
16386 ;;
16387 esac
16388 link_all_deplibs=yes
16389 ;;
16390
16391 sunos4*)
16392 if test sequent = "$host_vendor"; then
16393 # Use $CC to link under sequent, because it throws in some extra .o
16394 # files that make .init and .fini sections work.
16395 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16396 else
16397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16398 fi
16399 hardcode_libdir_flag_spec='-L$libdir'
16400 hardcode_direct=yes
16401 hardcode_minus_L=yes
16402 hardcode_shlibpath_var=no
16403 ;;
16404
16405 sysv4)
16406 case $host_vendor in
16407 sni)
16408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409 hardcode_direct=yes # is this really true???
16410 ;;
16411 siemens)
16412 ## LD is ld it makes a PLAMLIB
16413 ## CC just makes a GrossModule.
16414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16415 reload_cmds='$CC -r -o $output$reload_objs'
16416 hardcode_direct=no
16417 ;;
16418 motorola)
16419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16421 ;;
16422 esac
16423 runpath_var='LD_RUN_PATH'
16424 hardcode_shlibpath_var=no
16425 ;;
16426
16427 sysv4.3*)
16428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16429 hardcode_shlibpath_var=no
16430 export_dynamic_flag_spec='-Bexport'
16431 ;;
16432
16433 sysv4*MP*)
16434 if test -d /usr/nec; then
16435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_shlibpath_var=no
16437 runpath_var=LD_RUN_PATH
16438 hardcode_runpath_var=yes
16439 ld_shlibs=yes
16440 fi
16441 ;;
16442
16443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16444 no_undefined_flag='$wl-z,text'
16445 archive_cmds_need_lc=no
16446 hardcode_shlibpath_var=no
16447 runpath_var='LD_RUN_PATH'
16448
16449 if test yes = "$GCC"; then
16450 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16452 else
16453 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16455 fi
16456 ;;
16457
16458 sysv5* | sco3.2v5* | sco5v6*)
16459 # Note: We CANNOT use -z defs as we might desire, because we do not
16460 # link with -lc, and that would cause any symbols used from libc to
16461 # always be unresolved, which means just about no library would
16462 # ever link correctly. If we're not using GNU ld we use -z text
16463 # though, which does catch some bad symbols but isn't as heavy-handed
16464 # as -z defs.
16465 no_undefined_flag='$wl-z,text'
16466 allow_undefined_flag='$wl-z,nodefs'
16467 archive_cmds_need_lc=no
16468 hardcode_shlibpath_var=no
16469 hardcode_libdir_flag_spec='$wl-R,$libdir'
16470 hardcode_libdir_separator=':'
16471 link_all_deplibs=yes
16472 export_dynamic_flag_spec='$wl-Bexport'
16473 runpath_var='LD_RUN_PATH'
16474
16475 if test yes = "$GCC"; then
16476 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16477 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16478 else
16479 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16480 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16481 fi
16482 ;;
16483
16484 uts4*)
16485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_libdir_flag_spec='-L$libdir'
16487 hardcode_shlibpath_var=no
16488 ;;
16489
16490 *)
16491 ld_shlibs=no
16492 ;;
16493 esac
16494
16495 if test sni = "$host_vendor"; then
16496 case $host in
16497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16498 export_dynamic_flag_spec='$wl-Blargedynsym'
16499 ;;
16500 esac
16501 fi
16502 fi
16503
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16505 $as_echo "$ld_shlibs" >&6; }
16506 test no = "$ld_shlibs" && can_build_shared=no
16507
16508 with_gnu_ld=$with_gnu_ld
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524 #
16525 # Do we need to explicitly link libc?
16526 #
16527 case "x$archive_cmds_need_lc" in
16528 x|xyes)
16529 # Assume -lc should be added
16530 archive_cmds_need_lc=yes
16531
16532 if test yes,yes = "$GCC,$enable_shared"; then
16533 case $archive_cmds in
16534 *'~'*)
16535 # FIXME: we may have to deal with multi-command sequences.
16536 ;;
16537 '$CC '*)
16538 # Test whether the compiler implicitly links with -lc since on some
16539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16540 # to ld, don't add -lc before -lgcc.
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16543 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 $RM conftest*
16547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16548
16549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16550 (eval $ac_compile) 2>&5
16551 ac_status=$?
16552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16553 test $ac_status = 0; } 2>conftest.err; then
16554 soname=conftest
16555 lib=conftest
16556 libobjs=conftest.$ac_objext
16557 deplibs=
16558 wl=$lt_prog_compiler_wl
16559 pic_flag=$lt_prog_compiler_pic
16560 compiler_flags=-v
16561 linker_flags=-v
16562 verstring=
16563 output_objdir=.
16564 libname=conftest
16565 lt_save_allow_undefined_flag=$allow_undefined_flag
16566 allow_undefined_flag=
16567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16568 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16569 ac_status=$?
16570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16571 test $ac_status = 0; }
16572 then
16573 lt_cv_archive_cmds_need_lc=no
16574 else
16575 lt_cv_archive_cmds_need_lc=yes
16576 fi
16577 allow_undefined_flag=$lt_save_allow_undefined_flag
16578 else
16579 cat conftest.err 1>&5
16580 fi
16581 $RM conftest*
16582
16583 fi
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16585 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16586 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16587 ;;
16588 esac
16589 fi
16590 ;;
16591 esac
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16745 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16746
16747 if test yes = "$GCC"; then
16748 case $host_os in
16749 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16750 *) lt_awk_arg='/^libraries:/' ;;
16751 esac
16752 case $host_os in
16753 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16754 *) lt_sed_strip_eq='s|=/|/|g' ;;
16755 esac
16756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16757 case $lt_search_path_spec in
16758 *\;*)
16759 # if the path contains ";" then we assume it to be the separator
16760 # otherwise default to the standard path separator (i.e. ":") - it is
16761 # assumed that no part of a normal pathname contains ";" but that should
16762 # okay in the real world where ";" in dirpaths is itself problematic.
16763 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16764 ;;
16765 *)
16766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16767 ;;
16768 esac
16769 # Ok, now we have the path, separated by spaces, we can step through it
16770 # and add multilib dir if necessary...
16771 lt_tmp_lt_search_path_spec=
16772 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16773 # ...but if some path component already ends with the multilib dir we assume
16774 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16775 case "$lt_multi_os_dir; $lt_search_path_spec " in
16776 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16777 lt_multi_os_dir=
16778 ;;
16779 esac
16780 for lt_sys_path in $lt_search_path_spec; do
16781 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16783 elif test -n "$lt_multi_os_dir"; then
16784 test -d "$lt_sys_path" && \
16785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16786 fi
16787 done
16788 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16789 BEGIN {RS = " "; FS = "/|\n";} {
16790 lt_foo = "";
16791 lt_count = 0;
16792 for (lt_i = NF; lt_i > 0; lt_i--) {
16793 if ($lt_i != "" && $lt_i != ".") {
16794 if ($lt_i == "..") {
16795 lt_count++;
16796 } else {
16797 if (lt_count == 0) {
16798 lt_foo = "/" $lt_i lt_foo;
16799 } else {
16800 lt_count--;
16801 }
16802 }
16803 }
16804 }
16805 if (lt_foo != "") { lt_freq[lt_foo]++; }
16806 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16807 }'`
16808 # AWK program above erroneously prepends '/' to C:/dos/paths
16809 # for these hosts.
16810 case $host_os in
16811 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16812 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16813 esac
16814 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16815 else
16816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16817 fi
16818 library_names_spec=
16819 libname_spec='lib$name'
16820 soname_spec=
16821 shrext_cmds=.so
16822 postinstall_cmds=
16823 postuninstall_cmds=
16824 finish_cmds=
16825 finish_eval=
16826 shlibpath_var=
16827 shlibpath_overrides_runpath=unknown
16828 version_type=none
16829 dynamic_linker="$host_os ld.so"
16830 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16831 need_lib_prefix=unknown
16832 hardcode_into_libs=no
16833
16834 # when you set need_version to no, make sure it does not cause -set_version
16835 # flags to be left without arguments
16836 need_version=unknown
16837
16838
16839
16840 case $host_os in
16841 aix3*)
16842 version_type=linux # correct to gnu/linux during the next big refactor
16843 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16844 shlibpath_var=LIBPATH
16845
16846 # AIX 3 has no versioning support, so we append a major version to the name.
16847 soname_spec='$libname$release$shared_ext$major'
16848 ;;
16849
16850 aix[4-9]*)
16851 version_type=linux # correct to gnu/linux during the next big refactor
16852 need_lib_prefix=no
16853 need_version=no
16854 hardcode_into_libs=yes
16855 if test ia64 = "$host_cpu"; then
16856 # AIX 5 supports IA64
16857 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 else
16860 # With GCC up to 2.95.x, collect2 would create an import file
16861 # for dependence libraries. The import file would start with
16862 # the line '#! .'. This would cause the generated library to
16863 # depend on '.', always an invalid library. This was fixed in
16864 # development snapshots of GCC prior to 3.0.
16865 case $host_os in
16866 aix4 | aix4.[01] | aix4.[01].*)
16867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16868 echo ' yes '
16869 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16870 :
16871 else
16872 can_build_shared=no
16873 fi
16874 ;;
16875 esac
16876 # Using Import Files as archive members, it is possible to support
16877 # filename-based versioning of shared library archives on AIX. While
16878 # this would work for both with and without runtime linking, it will
16879 # prevent static linking of such archives. So we do filename-based
16880 # shared library versioning with .so extension only, which is used
16881 # when both runtime linking and shared linking is enabled.
16882 # Unfortunately, runtime linking may impact performance, so we do
16883 # not want this to be the default eventually. Also, we use the
16884 # versioned .so libs for executables only if there is the -brtl
16885 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16886 # To allow for filename-based versioning support, we need to create
16887 # libNAME.so.V as an archive file, containing:
16888 # *) an Import File, referring to the versioned filename of the
16889 # archive as well as the shared archive member, telling the
16890 # bitwidth (32 or 64) of that shared object, and providing the
16891 # list of exported symbols of that shared object, eventually
16892 # decorated with the 'weak' keyword
16893 # *) the shared object with the F_LOADONLY flag set, to really avoid
16894 # it being seen by the linker.
16895 # At run time we better use the real file rather than another symlink,
16896 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16897
16898 case $with_aix_soname,$aix_use_runtimelinking in
16899 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16900 # soname into executable. Probably we can add versioning support to
16901 # collect2, so additional links can be useful in future.
16902 aix,yes) # traditional libtool
16903 dynamic_linker='AIX unversionable lib.so'
16904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16905 # instead of lib<name>.a to let people know that these are not
16906 # typical AIX shared libraries.
16907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16908 ;;
16909 aix,no) # traditional AIX only
16910 dynamic_linker='AIX lib.a(lib.so.V)'
16911 # We preserve .a as extension for shared libraries through AIX4.2
16912 # and later when we are not doing run time linking.
16913 library_names_spec='$libname$release.a $libname.a'
16914 soname_spec='$libname$release$shared_ext$major'
16915 ;;
16916 svr4,*) # full svr4 only
16917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16919 # We do not specify a path in Import Files, so LIBPATH fires.
16920 shlibpath_overrides_runpath=yes
16921 ;;
16922 *,yes) # both, prefer svr4
16923 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16924 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16925 # unpreferred sharedlib libNAME.a needs extra handling
16926 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"'
16927 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"'
16928 # We do not specify a path in Import Files, so LIBPATH fires.
16929 shlibpath_overrides_runpath=yes
16930 ;;
16931 *,no) # both, prefer aix
16932 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16933 library_names_spec='$libname$release.a $libname.a'
16934 soname_spec='$libname$release$shared_ext$major'
16935 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16936 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)'
16937 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"'
16938 ;;
16939 esac
16940 shlibpath_var=LIBPATH
16941 fi
16942 ;;
16943
16944 amigaos*)
16945 case $host_cpu in
16946 powerpc)
16947 # Since July 2007 AmigaOS4 officially supports .so libraries.
16948 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16950 ;;
16951 m68k)
16952 library_names_spec='$libname.ixlibrary $libname.a'
16953 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16954 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'
16955 ;;
16956 esac
16957 ;;
16958
16959 beos*)
16960 library_names_spec='$libname$shared_ext'
16961 dynamic_linker="$host_os ld.so"
16962 shlibpath_var=LIBRARY_PATH
16963 ;;
16964
16965 bsdi[45]*)
16966 version_type=linux # correct to gnu/linux during the next big refactor
16967 need_version=no
16968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16969 soname_spec='$libname$release$shared_ext$major'
16970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16974 # the default ld.so.conf also contains /usr/contrib/lib and
16975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16976 # libtool to hard-code these into programs
16977 ;;
16978
16979 cygwin* | mingw* | pw32* | cegcc*)
16980 version_type=windows
16981 shrext_cmds=.dll
16982 need_version=no
16983 need_lib_prefix=no
16984
16985 case $GCC,$cc_basename in
16986 yes,*)
16987 # gcc
16988 library_names_spec='$libname.dll.a'
16989 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16990 postinstall_cmds='base_file=`basename \$file`~
16991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16992 dldir=$destdir/`dirname \$dlpath`~
16993 test -d \$dldir || mkdir -p \$dldir~
16994 $install_prog $dir/$dlname \$dldir/$dlname~
16995 chmod a+x \$dldir/$dlname~
16996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16998 fi'
16999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17000 dlpath=$dir/\$dldll~
17001 $RM \$dlpath'
17002 shlibpath_overrides_runpath=yes
17003
17004 case $host_os in
17005 cygwin*)
17006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17007 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17008
17009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17010 ;;
17011 mingw* | cegcc*)
17012 # MinGW DLLs use traditional 'lib' prefix
17013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17014 ;;
17015 pw32*)
17016 # pw32 DLLs use 'pw' prefix rather than 'lib'
17017 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17018 ;;
17019 esac
17020 dynamic_linker='Win32 ld.exe'
17021 ;;
17022
17023 *,cl*)
17024 # Native MSVC
17025 libname_spec='$name'
17026 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17027 library_names_spec='$libname.dll.lib'
17028
17029 case $build_os in
17030 mingw*)
17031 sys_lib_search_path_spec=
17032 lt_save_ifs=$IFS
17033 IFS=';'
17034 for lt_path in $LIB
17035 do
17036 IFS=$lt_save_ifs
17037 # Let DOS variable expansion print the short 8.3 style file name.
17038 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17039 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17040 done
17041 IFS=$lt_save_ifs
17042 # Convert to MSYS style.
17043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17044 ;;
17045 cygwin*)
17046 # Convert to unix form, then to dos form, then back to unix form
17047 # but this time dos style (no spaces!) so that the unix form looks
17048 # like /cygdrive/c/PROGRA~1:/cygdr...
17049 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17050 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17051 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17052 ;;
17053 *)
17054 sys_lib_search_path_spec=$LIB
17055 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17056 # It is most probably a Windows format PATH.
17057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17058 else
17059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17060 fi
17061 # FIXME: find the short name or the path components, as spaces are
17062 # common. (e.g. "Program Files" -> "PROGRA~1")
17063 ;;
17064 esac
17065
17066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17067 postinstall_cmds='base_file=`basename \$file`~
17068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17069 dldir=$destdir/`dirname \$dlpath`~
17070 test -d \$dldir || mkdir -p \$dldir~
17071 $install_prog $dir/$dlname \$dldir/$dlname'
17072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17073 dlpath=$dir/\$dldll~
17074 $RM \$dlpath'
17075 shlibpath_overrides_runpath=yes
17076 dynamic_linker='Win32 link.exe'
17077 ;;
17078
17079 *)
17080 # Assume MSVC wrapper
17081 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17082 dynamic_linker='Win32 ld.exe'
17083 ;;
17084 esac
17085 # FIXME: first we should search . and the directory the executable is in
17086 shlibpath_var=PATH
17087 ;;
17088
17089 darwin* | rhapsody*)
17090 dynamic_linker="$host_os dyld"
17091 version_type=darwin
17092 need_lib_prefix=no
17093 need_version=no
17094 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17095 soname_spec='$libname$release$major$shared_ext'
17096 shlibpath_overrides_runpath=yes
17097 shlibpath_var=DYLD_LIBRARY_PATH
17098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17099
17100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17102 ;;
17103
17104 dgux*)
17105 version_type=linux # correct to gnu/linux during the next big refactor
17106 need_lib_prefix=no
17107 need_version=no
17108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17109 soname_spec='$libname$release$shared_ext$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 ;;
17112
17113 freebsd* | dragonfly*)
17114 # DragonFly does not have aout. When/if they implement a new
17115 # versioning mechanism, adjust this.
17116 if test -x /usr/bin/objformat; then
17117 objformat=`/usr/bin/objformat`
17118 else
17119 case $host_os in
17120 freebsd[23].*) objformat=aout ;;
17121 *) objformat=elf ;;
17122 esac
17123 fi
17124 version_type=freebsd-$objformat
17125 case $version_type in
17126 freebsd-elf*)
17127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17128 soname_spec='$libname$release$shared_ext$major'
17129 need_version=no
17130 need_lib_prefix=no
17131 ;;
17132 freebsd-*)
17133 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17134 need_version=yes
17135 ;;
17136 esac
17137 shlibpath_var=LD_LIBRARY_PATH
17138 case $host_os in
17139 freebsd2.*)
17140 shlibpath_overrides_runpath=yes
17141 ;;
17142 freebsd3.[01]* | freebsdelf3.[01]*)
17143 shlibpath_overrides_runpath=yes
17144 hardcode_into_libs=yes
17145 ;;
17146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17148 shlibpath_overrides_runpath=no
17149 hardcode_into_libs=yes
17150 ;;
17151 *) # from 4.6 on, and DragonFly
17152 shlibpath_overrides_runpath=yes
17153 hardcode_into_libs=yes
17154 ;;
17155 esac
17156 ;;
17157
17158 haiku*)
17159 version_type=linux # correct to gnu/linux during the next big refactor
17160 need_lib_prefix=no
17161 need_version=no
17162 dynamic_linker="$host_os runtime_loader"
17163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17164 soname_spec='$libname$release$shared_ext$major'
17165 shlibpath_var=LIBRARY_PATH
17166 shlibpath_overrides_runpath=no
17167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17168 hardcode_into_libs=yes
17169 ;;
17170
17171 hpux9* | hpux10* | hpux11*)
17172 # Give a soname corresponding to the major version so that dld.sl refuses to
17173 # link against other versions.
17174 version_type=sunos
17175 need_lib_prefix=no
17176 need_version=no
17177 case $host_cpu in
17178 ia64*)
17179 shrext_cmds='.so'
17180 hardcode_into_libs=yes
17181 dynamic_linker="$host_os dld.so"
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17185 soname_spec='$libname$release$shared_ext$major'
17186 if test 32 = "$HPUX_IA64_MODE"; then
17187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17188 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17189 else
17190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17191 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17192 fi
17193 ;;
17194 hppa*64*)
17195 shrext_cmds='.sl'
17196 hardcode_into_libs=yes
17197 dynamic_linker="$host_os dld.sl"
17198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17201 soname_spec='$libname$release$shared_ext$major'
17202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17204 ;;
17205 *)
17206 shrext_cmds='.sl'
17207 dynamic_linker="$host_os dld.sl"
17208 shlibpath_var=SHLIB_PATH
17209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17211 soname_spec='$libname$release$shared_ext$major'
17212 ;;
17213 esac
17214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17215 postinstall_cmds='chmod 555 $lib'
17216 # or fails outright, so override atomically:
17217 install_override_mode=555
17218 ;;
17219
17220 interix[3-9]*)
17221 version_type=linux # correct to gnu/linux during the next big refactor
17222 need_lib_prefix=no
17223 need_version=no
17224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17225 soname_spec='$libname$release$shared_ext$major'
17226 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 shlibpath_overrides_runpath=no
17229 hardcode_into_libs=yes
17230 ;;
17231
17232 irix5* | irix6* | nonstopux*)
17233 case $host_os in
17234 nonstopux*) version_type=nonstopux ;;
17235 *)
17236 if test yes = "$lt_cv_prog_gnu_ld"; then
17237 version_type=linux # correct to gnu/linux during the next big refactor
17238 else
17239 version_type=irix
17240 fi ;;
17241 esac
17242 need_lib_prefix=no
17243 need_version=no
17244 soname_spec='$libname$release$shared_ext$major'
17245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17246 case $host_os in
17247 irix5* | nonstopux*)
17248 libsuff= shlibsuff=
17249 ;;
17250 *)
17251 case $LD in # libtool.m4 will add one of these switches to LD
17252 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17253 libsuff= shlibsuff= libmagic=32-bit;;
17254 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17255 libsuff=32 shlibsuff=N32 libmagic=N32;;
17256 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17257 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17258 *) libsuff= shlibsuff= libmagic=never-match;;
17259 esac
17260 ;;
17261 esac
17262 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17263 shlibpath_overrides_runpath=no
17264 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17265 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17266 hardcode_into_libs=yes
17267 ;;
17268
17269 # No shared lib support for Linux oldld, aout, or coff.
17270 linux*oldld* | linux*aout* | linux*coff*)
17271 dynamic_linker=no
17272 ;;
17273
17274 linux*android*)
17275 version_type=none # Android doesn't support versioned libraries.
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='$libname$release$shared_ext'
17279 soname_spec='$libname$release$shared_ext'
17280 finish_cmds=
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17283
17284 # This implies no fast_install, which is unacceptable.
17285 # Some rework will be needed to allow for fast_install
17286 # before this can be enabled.
17287 hardcode_into_libs=yes
17288
17289 dynamic_linker='Android linker'
17290 # Don't embed -rpath directories since the linker doesn't support them.
17291 hardcode_libdir_flag_spec='-L$libdir'
17292 ;;
17293
17294 # This must be glibc/ELF.
17295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17296 version_type=linux # correct to gnu/linux during the next big refactor
17297 need_lib_prefix=no
17298 need_version=no
17299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17300 soname_spec='$libname$release$shared_ext$major'
17301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 shlibpath_overrides_runpath=no
17304
17305 # Some binutils ld are patched to set DT_RUNPATH
17306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 lt_cv_shlibpath_overrides_runpath=no
17310 save_LDFLAGS=$LDFLAGS
17311 save_libdir=$libdir
17312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315 /* end confdefs.h. */
17316
17317 int
17318 main ()
17319 {
17320
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_c_try_link "$LINENO"; then :
17326 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17327 lt_cv_shlibpath_overrides_runpath=yes
17328 fi
17329 fi
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LDFLAGS=$save_LDFLAGS
17333 libdir=$save_libdir
17334
17335 fi
17336
17337 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17338
17339 # This implies no fast_install, which is unacceptable.
17340 # Some rework will be needed to allow for fast_install
17341 # before this can be enabled.
17342 hardcode_into_libs=yes
17343
17344 # Add ABI-specific directories to the system library path.
17345 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17346
17347 # Ideally, we could use ldconfig to report *all* directores which are
17348 # searched for libraries, however this is still not possible. Aside from not
17349 # being certain /sbin/ldconfig is available, command
17350 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17351 # even though it is searched at run-time. Try to do the best guess by
17352 # appending ld.so.conf contents (and includes) to the search path.
17353 if test -f /etc/ld.so.conf; then
17354 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' ' '`
17355 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17356 fi
17357
17358 # We used to test for /lib/ld.so.1 and disable shared libraries on
17359 # powerpc, because MkLinux only supported shared libraries with the
17360 # GNU dynamic linker. Since this was broken with cross compilers,
17361 # most powerpc-linux boxes support dynamic linking these days and
17362 # people can always --disable-shared, the test was removed, and we
17363 # assume the GNU/Linux dynamic linker is in use.
17364 dynamic_linker='GNU/Linux ld.so'
17365 ;;
17366
17367 netbsd*)
17368 version_type=sunos
17369 need_lib_prefix=no
17370 need_version=no
17371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17372 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17374 dynamic_linker='NetBSD (a.out) ld.so'
17375 else
17376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17377 soname_spec='$libname$release$shared_ext$major'
17378 dynamic_linker='NetBSD ld.elf_so'
17379 fi
17380 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=yes
17382 hardcode_into_libs=yes
17383 ;;
17384
17385 newsos6)
17386 version_type=linux # correct to gnu/linux during the next big refactor
17387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=yes
17390 ;;
17391
17392 *nto* | *qnx*)
17393 version_type=qnx
17394 need_lib_prefix=no
17395 need_version=no
17396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17397 soname_spec='$libname$release$shared_ext$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath=no
17400 hardcode_into_libs=yes
17401 dynamic_linker='ldqnx.so'
17402 ;;
17403
17404 openbsd* | bitrig*)
17405 version_type=sunos
17406 sys_lib_dlsearch_path_spec=/usr/lib
17407 need_lib_prefix=no
17408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17409 need_version=no
17410 else
17411 need_version=yes
17412 fi
17413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 shlibpath_overrides_runpath=yes
17417 ;;
17418
17419 os2*)
17420 libname_spec='$name'
17421 version_type=windows
17422 shrext_cmds=.dll
17423 need_version=no
17424 need_lib_prefix=no
17425 # OS/2 can only load a DLL with a base name of 8 characters or less.
17426 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17427 v=$($ECHO $release$versuffix | tr -d .-);
17428 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17429 $ECHO $n$v`$shared_ext'
17430 library_names_spec='${libname}_dll.$libext'
17431 dynamic_linker='OS/2 ld.exe'
17432 shlibpath_var=BEGINLIBPATH
17433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17435 postinstall_cmds='base_file=`basename \$file`~
17436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17437 dldir=$destdir/`dirname \$dlpath`~
17438 test -d \$dldir || mkdir -p \$dldir~
17439 $install_prog $dir/$dlname \$dldir/$dlname~
17440 chmod a+x \$dldir/$dlname~
17441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17443 fi'
17444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17445 dlpath=$dir/\$dldll~
17446 $RM \$dlpath'
17447 ;;
17448
17449 osf3* | osf4* | osf5*)
17450 version_type=osf
17451 need_lib_prefix=no
17452 need_version=no
17453 soname_spec='$libname$release$shared_ext$major'
17454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17458 ;;
17459
17460 rdos*)
17461 dynamic_linker=no
17462 ;;
17463
17464 solaris*)
17465 version_type=linux # correct to gnu/linux during the next big refactor
17466 need_lib_prefix=no
17467 need_version=no
17468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469 soname_spec='$libname$release$shared_ext$major'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 shlibpath_overrides_runpath=yes
17472 hardcode_into_libs=yes
17473 # ldd complains unless libraries are executable
17474 postinstall_cmds='chmod +x $lib'
17475 ;;
17476
17477 sunos4*)
17478 version_type=sunos
17479 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=yes
17483 if test yes = "$with_gnu_ld"; then
17484 need_lib_prefix=no
17485 fi
17486 need_version=yes
17487 ;;
17488
17489 sysv4 | sysv4.3*)
17490 version_type=linux # correct to gnu/linux during the next big refactor
17491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17492 soname_spec='$libname$release$shared_ext$major'
17493 shlibpath_var=LD_LIBRARY_PATH
17494 case $host_vendor in
17495 sni)
17496 shlibpath_overrides_runpath=no
17497 need_lib_prefix=no
17498 runpath_var=LD_RUN_PATH
17499 ;;
17500 siemens)
17501 need_lib_prefix=no
17502 ;;
17503 motorola)
17504 need_lib_prefix=no
17505 need_version=no
17506 shlibpath_overrides_runpath=no
17507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17508 ;;
17509 esac
17510 ;;
17511
17512 sysv4*MP*)
17513 if test -d /usr/nec; then
17514 version_type=linux # correct to gnu/linux during the next big refactor
17515 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17516 soname_spec='$libname$shared_ext.$major'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 fi
17519 ;;
17520
17521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17522 version_type=sco
17523 need_lib_prefix=no
17524 need_version=no
17525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17526 soname_spec='$libname$release$shared_ext$major'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 shlibpath_overrides_runpath=yes
17529 hardcode_into_libs=yes
17530 if test yes = "$with_gnu_ld"; then
17531 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17532 else
17533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17534 case $host_os in
17535 sco3.2v5*)
17536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17537 ;;
17538 esac
17539 fi
17540 sys_lib_dlsearch_path_spec='/usr/lib'
17541 ;;
17542
17543 tpf*)
17544 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17545 version_type=linux # correct to gnu/linux during the next big refactor
17546 need_lib_prefix=no
17547 need_version=no
17548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17549 shlibpath_var=LD_LIBRARY_PATH
17550 shlibpath_overrides_runpath=no
17551 hardcode_into_libs=yes
17552 ;;
17553
17554 uts4*)
17555 version_type=linux # correct to gnu/linux during the next big refactor
17556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17557 soname_spec='$libname$release$shared_ext$major'
17558 shlibpath_var=LD_LIBRARY_PATH
17559 ;;
17560
17561 *)
17562 dynamic_linker=no
17563 ;;
17564 esac
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17566 $as_echo "$dynamic_linker" >&6; }
17567 test no = "$dynamic_linker" && can_build_shared=no
17568
17569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17570 if test yes = "$GCC"; then
17571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17572 fi
17573
17574 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17575 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17576 fi
17577
17578 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17579 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17580 fi
17581
17582 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17583 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17584
17585 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17586 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17587
17588 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17589 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17688 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17689 hardcode_action=
17690 if test -n "$hardcode_libdir_flag_spec" ||
17691 test -n "$runpath_var" ||
17692 test yes = "$hardcode_automatic"; then
17693
17694 # We can hardcode non-existent directories.
17695 if test no != "$hardcode_direct" &&
17696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17697 # have to relink, otherwise we might link with an installed library
17698 # when we should be linking with a yet-to-be-installed one
17699 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17700 test no != "$hardcode_minus_L"; then
17701 # Linking always hardcodes the temporary library directory.
17702 hardcode_action=relink
17703 else
17704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17705 hardcode_action=immediate
17706 fi
17707 else
17708 # We cannot hardcode anything, or else we can only hardcode existing
17709 # directories.
17710 hardcode_action=unsupported
17711 fi
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17713 $as_echo "$hardcode_action" >&6; }
17714
17715 if test relink = "$hardcode_action" ||
17716 test yes = "$inherit_rpath"; then
17717 # Fast installation is not supported
17718 enable_fast_install=no
17719 elif test yes = "$shlibpath_overrides_runpath" ||
17720 test no = "$enable_shared"; then
17721 # Fast installation is not necessary
17722 enable_fast_install=needless
17723 fi
17724
17725
17726
17727
17728
17729
17730 if test yes != "$enable_dlopen"; then
17731 enable_dlopen=unknown
17732 enable_dlopen_self=unknown
17733 enable_dlopen_self_static=unknown
17734 else
17735 lt_cv_dlopen=no
17736 lt_cv_dlopen_libs=
17737
17738 case $host_os in
17739 beos*)
17740 lt_cv_dlopen=load_add_on
17741 lt_cv_dlopen_libs=
17742 lt_cv_dlopen_self=yes
17743 ;;
17744
17745 mingw* | pw32* | cegcc*)
17746 lt_cv_dlopen=LoadLibrary
17747 lt_cv_dlopen_libs=
17748 ;;
17749
17750 cygwin*)
17751 lt_cv_dlopen=dlopen
17752 lt_cv_dlopen_libs=
17753 ;;
17754
17755 darwin*)
17756 # if libdl is installed we need to link against it
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17758 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17759 if ${ac_cv_lib_dl_dlopen+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761 else
17762 ac_check_lib_save_LIBS=$LIBS
17763 LIBS="-ldl $LIBS"
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17766
17767 /* Override any GCC internal prototype to avoid an error.
17768 Use char because int might match the return type of a GCC
17769 builtin and then its argument prototype would still apply. */
17770 #ifdef __cplusplus
17771 extern "C"
17772 #endif
17773 char dlopen ();
17774 int
17775 main ()
17776 {
17777 return dlopen ();
17778 ;
17779 return 0;
17780 }
17781 _ACEOF
17782 if ac_fn_c_try_link "$LINENO"; then :
17783 ac_cv_lib_dl_dlopen=yes
17784 else
17785 ac_cv_lib_dl_dlopen=no
17786 fi
17787 rm -f core conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 LIBS=$ac_check_lib_save_LIBS
17790 fi
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17792 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17793 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17794 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17795 else
17796
17797 lt_cv_dlopen=dyld
17798 lt_cv_dlopen_libs=
17799 lt_cv_dlopen_self=yes
17800
17801 fi
17802
17803 ;;
17804
17805 tpf*)
17806 # Don't try to run any link tests for TPF. We know it's impossible
17807 # because TPF is a cross-compiler, and we know how we open DSOs.
17808 lt_cv_dlopen=dlopen
17809 lt_cv_dlopen_libs=
17810 lt_cv_dlopen_self=no
17811 ;;
17812
17813 *)
17814 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17815 if test "x$ac_cv_func_shl_load" = xyes; then :
17816 lt_cv_dlopen=shl_load
17817 else
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17819 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17820 if ${ac_cv_lib_dld_shl_load+:} false; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 ac_check_lib_save_LIBS=$LIBS
17824 LIBS="-ldld $LIBS"
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827
17828 /* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17831 #ifdef __cplusplus
17832 extern "C"
17833 #endif
17834 char shl_load ();
17835 int
17836 main ()
17837 {
17838 return shl_load ();
17839 ;
17840 return 0;
17841 }
17842 _ACEOF
17843 if ac_fn_c_try_link "$LINENO"; then :
17844 ac_cv_lib_dld_shl_load=yes
17845 else
17846 ac_cv_lib_dld_shl_load=no
17847 fi
17848 rm -f core conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17850 LIBS=$ac_check_lib_save_LIBS
17851 fi
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17853 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17854 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17855 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17856 else
17857 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17858 if test "x$ac_cv_func_dlopen" = xyes; then :
17859 lt_cv_dlopen=dlopen
17860 else
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17863 if ${ac_cv_lib_dl_dlopen+:} false; then :
17864 $as_echo_n "(cached) " >&6
17865 else
17866 ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-ldl $LIBS"
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char dlopen ();
17878 int
17879 main ()
17880 {
17881 return dlopen ();
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"; then :
17887 ac_cv_lib_dl_dlopen=yes
17888 else
17889 ac_cv_lib_dl_dlopen=no
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17893 LIBS=$ac_check_lib_save_LIBS
17894 fi
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17897 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17899 else
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17901 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17902 if ${ac_cv_lib_svld_dlopen+:} false; then :
17903 $as_echo_n "(cached) " >&6
17904 else
17905 ac_check_lib_save_LIBS=$LIBS
17906 LIBS="-lsvld $LIBS"
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h. */
17909
17910 /* Override any GCC internal prototype to avoid an error.
17911 Use char because int might match the return type of a GCC
17912 builtin and then its argument prototype would still apply. */
17913 #ifdef __cplusplus
17914 extern "C"
17915 #endif
17916 char dlopen ();
17917 int
17918 main ()
17919 {
17920 return dlopen ();
17921 ;
17922 return 0;
17923 }
17924 _ACEOF
17925 if ac_fn_c_try_link "$LINENO"; then :
17926 ac_cv_lib_svld_dlopen=yes
17927 else
17928 ac_cv_lib_svld_dlopen=no
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext \
17931 conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17933 fi
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17935 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17936 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17937 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17938 else
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17940 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17941 if ${ac_cv_lib_dld_dld_link+:} false; then :
17942 $as_echo_n "(cached) " >&6
17943 else
17944 ac_check_lib_save_LIBS=$LIBS
17945 LIBS="-ldld $LIBS"
17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17948
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17952 #ifdef __cplusplus
17953 extern "C"
17954 #endif
17955 char dld_link ();
17956 int
17957 main ()
17958 {
17959 return dld_link ();
17960 ;
17961 return 0;
17962 }
17963 _ACEOF
17964 if ac_fn_c_try_link "$LINENO"; then :
17965 ac_cv_lib_dld_dld_link=yes
17966 else
17967 ac_cv_lib_dld_dld_link=no
17968 fi
17969 rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17972 fi
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17974 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17975 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17976 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17977 fi
17978
17979
17980 fi
17981
17982
17983 fi
17984
17985
17986 fi
17987
17988
17989 fi
17990
17991
17992 fi
17993
17994 ;;
17995 esac
17996
17997 if test no = "$lt_cv_dlopen"; then
17998 enable_dlopen=no
17999 else
18000 enable_dlopen=yes
18001 fi
18002
18003 case $lt_cv_dlopen in
18004 dlopen)
18005 save_CPPFLAGS=$CPPFLAGS
18006 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18007
18008 save_LDFLAGS=$LDFLAGS
18009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18010
18011 save_LIBS=$LIBS
18012 LIBS="$lt_cv_dlopen_libs $LIBS"
18013
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18015 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18016 if ${lt_cv_dlopen_self+:} false; then :
18017 $as_echo_n "(cached) " >&6
18018 else
18019 if test yes = "$cross_compiling"; then :
18020 lt_cv_dlopen_self=cross
18021 else
18022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18023 lt_status=$lt_dlunknown
18024 cat > conftest.$ac_ext <<_LT_EOF
18025 #line $LINENO "configure"
18026 #include "confdefs.h"
18027
18028 #if HAVE_DLFCN_H
18029 #include <dlfcn.h>
18030 #endif
18031
18032 #include <stdio.h>
18033
18034 #ifdef RTLD_GLOBAL
18035 # define LT_DLGLOBAL RTLD_GLOBAL
18036 #else
18037 # ifdef DL_GLOBAL
18038 # define LT_DLGLOBAL DL_GLOBAL
18039 # else
18040 # define LT_DLGLOBAL 0
18041 # endif
18042 #endif
18043
18044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18045 find out it does not work in some platform. */
18046 #ifndef LT_DLLAZY_OR_NOW
18047 # ifdef RTLD_LAZY
18048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18049 # else
18050 # ifdef DL_LAZY
18051 # define LT_DLLAZY_OR_NOW DL_LAZY
18052 # else
18053 # ifdef RTLD_NOW
18054 # define LT_DLLAZY_OR_NOW RTLD_NOW
18055 # else
18056 # ifdef DL_NOW
18057 # define LT_DLLAZY_OR_NOW DL_NOW
18058 # else
18059 # define LT_DLLAZY_OR_NOW 0
18060 # endif
18061 # endif
18062 # endif
18063 # endif
18064 #endif
18065
18066 /* When -fvisibility=hidden is used, assume the code has been annotated
18067 correspondingly for the symbols needed. */
18068 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18069 int fnord () __attribute__((visibility("default")));
18070 #endif
18071
18072 int fnord () { return 42; }
18073 int main ()
18074 {
18075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18076 int status = $lt_dlunknown;
18077
18078 if (self)
18079 {
18080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18081 else
18082 {
18083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18084 else puts (dlerror ());
18085 }
18086 /* dlclose (self); */
18087 }
18088 else
18089 puts (dlerror ());
18090
18091 return status;
18092 }
18093 _LT_EOF
18094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18095 (eval $ac_link) 2>&5
18096 ac_status=$?
18097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18098 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18099 (./conftest; exit; ) >&5 2>/dev/null
18100 lt_status=$?
18101 case x$lt_status in
18102 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18103 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18104 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18105 esac
18106 else :
18107 # compilation failed
18108 lt_cv_dlopen_self=no
18109 fi
18110 fi
18111 rm -fr conftest*
18112
18113
18114 fi
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18116 $as_echo "$lt_cv_dlopen_self" >&6; }
18117
18118 if test yes = "$lt_cv_dlopen_self"; then
18119 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18121 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18122 if ${lt_cv_dlopen_self_static+:} false; then :
18123 $as_echo_n "(cached) " >&6
18124 else
18125 if test yes = "$cross_compiling"; then :
18126 lt_cv_dlopen_self_static=cross
18127 else
18128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18129 lt_status=$lt_dlunknown
18130 cat > conftest.$ac_ext <<_LT_EOF
18131 #line $LINENO "configure"
18132 #include "confdefs.h"
18133
18134 #if HAVE_DLFCN_H
18135 #include <dlfcn.h>
18136 #endif
18137
18138 #include <stdio.h>
18139
18140 #ifdef RTLD_GLOBAL
18141 # define LT_DLGLOBAL RTLD_GLOBAL
18142 #else
18143 # ifdef DL_GLOBAL
18144 # define LT_DLGLOBAL DL_GLOBAL
18145 # else
18146 # define LT_DLGLOBAL 0
18147 # endif
18148 #endif
18149
18150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18151 find out it does not work in some platform. */
18152 #ifndef LT_DLLAZY_OR_NOW
18153 # ifdef RTLD_LAZY
18154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18155 # else
18156 # ifdef DL_LAZY
18157 # define LT_DLLAZY_OR_NOW DL_LAZY
18158 # else
18159 # ifdef RTLD_NOW
18160 # define LT_DLLAZY_OR_NOW RTLD_NOW
18161 # else
18162 # ifdef DL_NOW
18163 # define LT_DLLAZY_OR_NOW DL_NOW
18164 # else
18165 # define LT_DLLAZY_OR_NOW 0
18166 # endif
18167 # endif
18168 # endif
18169 # endif
18170 #endif
18171
18172 /* When -fvisibility=hidden is used, assume the code has been annotated
18173 correspondingly for the symbols needed. */
18174 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18175 int fnord () __attribute__((visibility("default")));
18176 #endif
18177
18178 int fnord () { return 42; }
18179 int main ()
18180 {
18181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18182 int status = $lt_dlunknown;
18183
18184 if (self)
18185 {
18186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18187 else
18188 {
18189 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18190 else puts (dlerror ());
18191 }
18192 /* dlclose (self); */
18193 }
18194 else
18195 puts (dlerror ());
18196
18197 return status;
18198 }
18199 _LT_EOF
18200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18201 (eval $ac_link) 2>&5
18202 ac_status=$?
18203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18204 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18205 (./conftest; exit; ) >&5 2>/dev/null
18206 lt_status=$?
18207 case x$lt_status in
18208 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18209 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18210 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18211 esac
18212 else :
18213 # compilation failed
18214 lt_cv_dlopen_self_static=no
18215 fi
18216 fi
18217 rm -fr conftest*
18218
18219
18220 fi
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18222 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18223 fi
18224
18225 CPPFLAGS=$save_CPPFLAGS
18226 LDFLAGS=$save_LDFLAGS
18227 LIBS=$save_LIBS
18228 ;;
18229 esac
18230
18231 case $lt_cv_dlopen_self in
18232 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18233 *) enable_dlopen_self=unknown ;;
18234 esac
18235
18236 case $lt_cv_dlopen_self_static in
18237 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18238 *) enable_dlopen_self_static=unknown ;;
18239 esac
18240 fi
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258 striplib=
18259 old_striplib=
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18261 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18262 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18263 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18264 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18266 $as_echo "yes" >&6; }
18267 else
18268 # FIXME - insert some real tests, host_os isn't really good enough
18269 case $host_os in
18270 darwin*)
18271 if test -n "$STRIP"; then
18272 striplib="$STRIP -x"
18273 old_striplib="$STRIP -S"
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18275 $as_echo "yes" >&6; }
18276 else
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18278 $as_echo "no" >&6; }
18279 fi
18280 ;;
18281 *)
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283 $as_echo "no" >&6; }
18284 ;;
18285 esac
18286 fi
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299 # Report what library types will actually be built
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18301 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18303 $as_echo "$can_build_shared" >&6; }
18304
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18306 $as_echo_n "checking whether to build shared libraries... " >&6; }
18307 test no = "$can_build_shared" && enable_shared=no
18308
18309 # On AIX, shared libraries and static libraries use the same namespace, and
18310 # are all built from PIC.
18311 case $host_os in
18312 aix3*)
18313 test yes = "$enable_shared" && enable_static=no
18314 if test -n "$RANLIB"; then
18315 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18316 postinstall_cmds='$RANLIB $lib'
18317 fi
18318 ;;
18319
18320 aix[4-9]*)
18321 if test ia64 != "$host_cpu"; then
18322 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18323 yes,aix,yes) ;; # shared object as lib.so file only
18324 yes,svr4,*) ;; # shared object as lib.so archive member only
18325 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18326 esac
18327 fi
18328 ;;
18329 esac
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18331 $as_echo "$enable_shared" >&6; }
18332
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18334 $as_echo_n "checking whether to build static libraries... " >&6; }
18335 # Make sure either enable_shared or enable_static is yes.
18336 test yes = "$enable_shared" || enable_static=yes
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18338 $as_echo "$enable_static" >&6; }
18339
18340
18341
18342
18343 fi
18344 ac_ext=c
18345 ac_cpp='$CPP $CPPFLAGS'
18346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350 CC=$lt_save_CC
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366 ac_config_commands="$ac_config_commands libtool"
18367
18368
18369
18370
18371 # Only expand once:
18372
18373
18374
18375
18376
18377 # Define a configure option for an alternate module directory
18378
18379 # Check whether --with-xorg-module-dir was given.
18380 if test "${with_xorg_module_dir+set}" = set; then :
18381 withval=$with_xorg_module_dir; moduledir="$withval"
18382 else
18383 moduledir="$libdir/xorg/modules"
18384 fi
18385
18386
18387
18388 # Store the list of server defined optional extensions in REQUIRED_MODULES
18389
18390
18391 SAVE_CFLAGS="$CFLAGS"
18392 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395
18396 #include "xorg-server.h"
18397 #if !defined RANDR
18398 #error RANDR not defined
18399 #endif
18400
18401 int
18402 main ()
18403 {
18404
18405 ;
18406 return 0;
18407 }
18408 _ACEOF
18409 if ac_fn_c_try_compile "$LINENO"; then :
18410 _EXT_CHECK=yes
18411 else
18412 _EXT_CHECK=no
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415 CFLAGS="$SAVE_CFLAGS"
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18417 $as_echo_n "checking if RANDR is defined... " >&6; }
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18419 $as_echo "$_EXT_CHECK" >&6; }
18420 if test "$_EXT_CHECK" != no; then
18421 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18422 fi
18423
18424
18425
18426 SAVE_CFLAGS="$CFLAGS"
18427 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18430
18431 #include "xorg-server.h"
18432 #if !defined RENDER
18433 #error RENDER not defined
18434 #endif
18435
18436 int
18437 main ()
18438 {
18439
18440 ;
18441 return 0;
18442 }
18443 _ACEOF
18444 if ac_fn_c_try_compile "$LINENO"; then :
18445 _EXT_CHECK=yes
18446 else
18447 _EXT_CHECK=no
18448 fi
18449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450 CFLAGS="$SAVE_CFLAGS"
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18452 $as_echo_n "checking if RENDER is defined... " >&6; }
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18454 $as_echo "$_EXT_CHECK" >&6; }
18455 if test "$_EXT_CHECK" != no; then
18456 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18457 fi
18458
18459
18460
18461 SAVE_CFLAGS="$CFLAGS"
18462 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18465
18466 #include "xorg-server.h"
18467 #if !defined DPMSExtension
18468 #error DPMSExtension not defined
18469 #endif
18470
18471 int
18472 main ()
18473 {
18474
18475 ;
18476 return 0;
18477 }
18478 _ACEOF
18479 if ac_fn_c_try_compile "$LINENO"; then :
18480 _EXT_CHECK=yes
18481 else
18482 _EXT_CHECK=no
18483 fi
18484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 CFLAGS="$SAVE_CFLAGS"
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18487 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18489 $as_echo "$_EXT_CHECK" >&6; }
18490 if test "$_EXT_CHECK" != no; then
18491 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18492 fi
18493
18494
18495 # Obtain compiler/linker options for the driver dependencies
18496
18497 pkg_failed=no
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18499 $as_echo_n "checking for XORG... " >&6; }
18500
18501 if test -n "$XORG_CFLAGS"; then
18502 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18503 elif test -n "$PKG_CONFIG"; then
18504 if test -n "$PKG_CONFIG" && \
18505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18506 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18507 ac_status=$?
18508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18509 test $ac_status = 0; }; then
18510 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18511 test "x$?" != "x0" && pkg_failed=yes
18512 else
18513 pkg_failed=yes
18514 fi
18515 else
18516 pkg_failed=untried
18517 fi
18518 if test -n "$XORG_LIBS"; then
18519 pkg_cv_XORG_LIBS="$XORG_LIBS"
18520 elif test -n "$PKG_CONFIG"; then
18521 if test -n "$PKG_CONFIG" && \
18522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18523 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18524 ac_status=$?
18525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526 test $ac_status = 0; }; then
18527 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18528 test "x$?" != "x0" && pkg_failed=yes
18529 else
18530 pkg_failed=yes
18531 fi
18532 else
18533 pkg_failed=untried
18534 fi
18535
18536
18537
18538 if test $pkg_failed = yes; then
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540 $as_echo "no" >&6; }
18541
18542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18543 _pkg_short_errors_supported=yes
18544 else
18545 _pkg_short_errors_supported=no
18546 fi
18547 if test $_pkg_short_errors_supported = yes; then
18548 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18549 else
18550 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18551 fi
18552 # Put the nasty error message in config.log where it belongs
18553 echo "$XORG_PKG_ERRORS" >&5
18554
18555 as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
18556
18557 $XORG_PKG_ERRORS
18558
18559 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18560 installed software in a non-standard prefix.
18561
18562 Alternatively, you may set the environment variables XORG_CFLAGS
18563 and XORG_LIBS to avoid the need to call pkg-config.
18564 See the pkg-config man page for more details." "$LINENO" 5
18565 elif test $pkg_failed = untried; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18570 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18571 is in your PATH or set the PKG_CONFIG environment variable to the full
18572 path to pkg-config.
18573
18574 Alternatively, you may set the environment variables XORG_CFLAGS
18575 and XORG_LIBS to avoid the need to call pkg-config.
18576 See the pkg-config man page for more details.
18577
18578 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18579 See \`config.log' for more details" "$LINENO" 5; }
18580 else
18581 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18582 XORG_LIBS=$pkg_cv_XORG_LIBS
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18584 $as_echo "yes" >&6; }
18585
18586 fi
18587
18588 pkg_failed=no
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18590 $as_echo_n "checking for XEXT... " >&6; }
18591
18592 if test -n "$XEXT_CFLAGS"; then
18593 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18594 elif test -n "$PKG_CONFIG"; then
18595 if test -n "$PKG_CONFIG" && \
18596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18597 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18598 ac_status=$?
18599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18600 test $ac_status = 0; }; then
18601 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18602 test "x$?" != "x0" && pkg_failed=yes
18603 else
18604 pkg_failed=yes
18605 fi
18606 else
18607 pkg_failed=untried
18608 fi
18609 if test -n "$XEXT_LIBS"; then
18610 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18611 elif test -n "$PKG_CONFIG"; then
18612 if test -n "$PKG_CONFIG" && \
18613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18614 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18615 ac_status=$?
18616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18617 test $ac_status = 0; }; then
18618 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18619 test "x$?" != "x0" && pkg_failed=yes
18620 else
18621 pkg_failed=yes
18622 fi
18623 else
18624 pkg_failed=untried
18625 fi
18626
18627
18628
18629 if test $pkg_failed = yes; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632
18633 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18634 _pkg_short_errors_supported=yes
18635 else
18636 _pkg_short_errors_supported=no
18637 fi
18638 if test $_pkg_short_errors_supported = yes; then
18639 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18640 else
18641 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18642 fi
18643 # Put the nasty error message in config.log where it belongs
18644 echo "$XEXT_PKG_ERRORS" >&5
18645
18646 HAVE_XEXTPROTO_71="no"
18647 elif test $pkg_failed = untried; then
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18650 HAVE_XEXTPROTO_71="no"
18651 else
18652 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18653 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18655 $as_echo "yes" >&6; }
18656 HAVE_XEXTPROTO_71="yes"
18657 fi
18658
18659 if test "x$HAVE_XEXTPROTO_71" = xyes; then
18660
18661 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18662
18663 fi
18664
18665 save_CFLAGS="$CFLAGS"
18666 CFLAGS="$XORG_CFLAGS"
18667 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18668 "
18669 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18670
18671 $as_echo "#define HAVE_ISA 1" >>confdefs.h
18672
18673 fi
18674
18675 CFLAGS="$save_CFLAGS"
18676
18677 save_CFLAGS="$CFLAGS"
18678 CFLAGS="$XORG_CFLAGS"
18679 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18680 "
18681 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18682 XSERVER_LIBPCIACCESS=yes
18683 else
18684 XSERVER_LIBPCIACCESS=no
18685 fi
18686
18687 CFLAGS="$save_CFLAGS"
18688
18689 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18690
18691 pkg_failed=no
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18693 $as_echo_n "checking for PCIACCESS... " >&6; }
18694
18695 if test -n "$PCIACCESS_CFLAGS"; then
18696 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18697 elif test -n "$PKG_CONFIG"; then
18698 if test -n "$PKG_CONFIG" && \
18699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18700 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18701 ac_status=$?
18702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18703 test $ac_status = 0; }; then
18704 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18705 test "x$?" != "x0" && pkg_failed=yes
18706 else
18707 pkg_failed=yes
18708 fi
18709 else
18710 pkg_failed=untried
18711 fi
18712 if test -n "$PCIACCESS_LIBS"; then
18713 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18714 elif test -n "$PKG_CONFIG"; then
18715 if test -n "$PKG_CONFIG" && \
18716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18717 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18718 ac_status=$?
18719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18720 test $ac_status = 0; }; then
18721 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18722 test "x$?" != "x0" && pkg_failed=yes
18723 else
18724 pkg_failed=yes
18725 fi
18726 else
18727 pkg_failed=untried
18728 fi
18729
18730
18731
18732 if test $pkg_failed = yes; then
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734 $as_echo "no" >&6; }
18735
18736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18737 _pkg_short_errors_supported=yes
18738 else
18739 _pkg_short_errors_supported=no
18740 fi
18741 if test $_pkg_short_errors_supported = yes; then
18742 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18743 else
18744 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18745 fi
18746 # Put the nasty error message in config.log where it belongs
18747 echo "$PCIACCESS_PKG_ERRORS" >&5
18748
18749 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18750
18751 $PCIACCESS_PKG_ERRORS
18752
18753 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18754 installed software in a non-standard prefix.
18755
18756 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18757 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18758 See the pkg-config man page for more details." "$LINENO" 5
18759 elif test $pkg_failed = untried; then
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761 $as_echo "no" >&6; }
18762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18764 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18765 is in your PATH or set the PKG_CONFIG environment variable to the full
18766 path to pkg-config.
18767
18768 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18769 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18770 See the pkg-config man page for more details.
18771
18772 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18773 See \`config.log' for more details" "$LINENO" 5; }
18774 else
18775 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18776 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18778 $as_echo "yes" >&6; }
18779
18780 fi
18781 fi
18782
18783 # Checks for libraries.
18784
18785 DRIVER_NAME=vesa
18786
18787
18788 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18789
18790 cat >confcache <<\_ACEOF
18791 # This file is a shell script that caches the results of configure
18792 # tests run on this system so they can be shared between configure
18793 # scripts and configure runs, see configure's option --config-cache.
18794 # It is not useful on other systems. If it contains results you don't
18795 # want to keep, you may remove or edit it.
18796 #
18797 # config.status only pays attention to the cache file if you give it
18798 # the --recheck option to rerun configure.
18799 #
18800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18802 # following values.
18803
18804 _ACEOF
18805
18806 # The following way of writing the cache mishandles newlines in values,
18807 # but we know of no workaround that is simple, portable, and efficient.
18808 # So, we kill variables containing newlines.
18809 # Ultrix sh set writes to stderr and can't be redirected directly,
18810 # and sets the high bit in the cache file unless we assign to the vars.
18811 (
18812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18813 eval ac_val=\$$ac_var
18814 case $ac_val in #(
18815 *${as_nl}*)
18816 case $ac_var in #(
18817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18819 esac
18820 case $ac_var in #(
18821 _ | IFS | as_nl) ;; #(
18822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18823 *) { eval $ac_var=; unset $ac_var;} ;;
18824 esac ;;
18825 esac
18826 done
18827
18828 (set) 2>&1 |
18829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18830 *${as_nl}ac_space=\ *)
18831 # `set' does not quote correctly, so add quotes: double-quote
18832 # substitution turns \\\\ into \\, and sed turns \\ into \.
18833 sed -n \
18834 "s/'/'\\\\''/g;
18835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18836 ;; #(
18837 *)
18838 # `set' quotes correctly as required by POSIX, so do not add quotes.
18839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18840 ;;
18841 esac |
18842 sort
18843 ) |
18844 sed '
18845 /^ac_cv_env_/b end
18846 t clear
18847 :clear
18848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18849 t end
18850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18851 :end' >>confcache
18852 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18853 if test -w "$cache_file"; then
18854 if test "x$cache_file" != "x/dev/null"; then
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18856 $as_echo "$as_me: updating cache $cache_file" >&6;}
18857 if test ! -f "$cache_file" || test -h "$cache_file"; then
18858 cat confcache >"$cache_file"
18859 else
18860 case $cache_file in #(
18861 */* | ?:*)
18862 mv -f confcache "$cache_file"$$ &&
18863 mv -f "$cache_file"$$ "$cache_file" ;; #(
18864 *)
18865 mv -f confcache "$cache_file" ;;
18866 esac
18867 fi
18868 fi
18869 else
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18871 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18872 fi
18873 fi
18874 rm -f confcache
18875
18876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18877 # Let make expand exec_prefix.
18878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18879
18880 DEFS=-DHAVE_CONFIG_H
18881
18882 ac_libobjs=
18883 ac_ltlibobjs=
18884 U=
18885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18886 # 1. Remove the extension, and $U if already installed.
18887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18888 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18890 # will be set to the directory where LIBOBJS objects are built.
18891 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18892 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18893 done
18894 LIBOBJS=$ac_libobjs
18895
18896 LTLIBOBJS=$ac_ltlibobjs
18897
18898
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18900 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18901 if test -n "$am_sleep_pid"; then
18902 # Hide warnings about reused PIDs.
18903 wait $am_sleep_pid 2>/dev/null
18904 fi
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18906 $as_echo "done" >&6; }
18907 if test -n "$EXEEXT"; then
18908 am__EXEEXT_TRUE=
18909 am__EXEEXT_FALSE='#'
18910 else
18911 am__EXEEXT_TRUE='#'
18912 am__EXEEXT_FALSE=
18913 fi
18914
18915 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18916 as_fn_error $? "conditional \"AMDEP\" was never defined.
18917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18918 fi
18919 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18920 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18922 fi
18923
18924 : "${CONFIG_STATUS=./config.status}"
18925 ac_write_fail=0
18926 ac_clean_files_save=$ac_clean_files
18927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18929 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18930 as_write_fail=0
18931 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18932 #! $SHELL
18933 # Generated by $as_me.
18934 # Run this file to recreate the current configuration.
18935 # Compiler output produced by configure, useful for debugging
18936 # configure, is in config.log if it exists.
18937
18938 debug=false
18939 ac_cs_recheck=false
18940 ac_cs_silent=false
18941
18942 SHELL=\${CONFIG_SHELL-$SHELL}
18943 export SHELL
18944 _ASEOF
18945 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18946 ## -------------------- ##
18947 ## M4sh Initialization. ##
18948 ## -------------------- ##
18949
18950 # Be more Bourne compatible
18951 DUALCASE=1; export DUALCASE # for MKS sh
18952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18953 emulate sh
18954 NULLCMD=:
18955 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18956 # is contrary to our usage. Disable this feature.
18957 alias -g '${1+"$@"}'='"$@"'
18958 setopt NO_GLOB_SUBST
18959 else
18960 case `(set -o) 2>/dev/null` in #(
18961 *posix*) :
18962 set -o posix ;; #(
18963 *) :
18964 ;;
18965 esac
18966 fi
18967
18968
18969 as_nl='
18970 '
18971 export as_nl
18972 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18973 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18975 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18976 # Prefer a ksh shell builtin over an external printf program on Solaris,
18977 # but without wasting forks for bash or zsh.
18978 if test -z "$BASH_VERSION$ZSH_VERSION" \
18979 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18980 as_echo='print -r --'
18981 as_echo_n='print -rn --'
18982 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18983 as_echo='printf %s\n'
18984 as_echo_n='printf %s'
18985 else
18986 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18987 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18988 as_echo_n='/usr/ucb/echo -n'
18989 else
18990 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18991 as_echo_n_body='eval
18992 arg=$1;
18993 case $arg in #(
18994 *"$as_nl"*)
18995 expr "X$arg" : "X\\(.*\\)$as_nl";
18996 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18997 esac;
18998 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18999 '
19000 export as_echo_n_body
19001 as_echo_n='sh -c $as_echo_n_body as_echo'
19002 fi
19003 export as_echo_body
19004 as_echo='sh -c $as_echo_body as_echo'
19005 fi
19006
19007 # The user is always right.
19008 if test "${PATH_SEPARATOR+set}" != set; then
19009 PATH_SEPARATOR=:
19010 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19011 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19012 PATH_SEPARATOR=';'
19013 }
19014 fi
19015
19016
19017 # IFS
19018 # We need space, tab and new line, in precisely that order. Quoting is
19019 # there to prevent editors from complaining about space-tab.
19020 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19021 # splitting by setting IFS to empty value.)
19022 IFS=" "" $as_nl"
19023
19024 # Find who we are. Look in the path if we contain no directory separator.
19025 as_myself=
19026 case $0 in #((
19027 *[\\/]* ) as_myself=$0 ;;
19028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19029 for as_dir in $PATH
19030 do
19031 IFS=$as_save_IFS
19032 test -z "$as_dir" && as_dir=.
19033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19034 done
19035 IFS=$as_save_IFS
19036
19037 ;;
19038 esac
19039 # We did not find ourselves, most probably we were run as `sh COMMAND'
19040 # in which case we are not to be found in the path.
19041 if test "x$as_myself" = x; then
19042 as_myself=$0
19043 fi
19044 if test ! -f "$as_myself"; then
19045 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19046 exit 1
19047 fi
19048
19049 # Unset variables that we do not need and which cause bugs (e.g. in
19050 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19051 # suppresses any "Segmentation fault" message there. '((' could
19052 # trigger a bug in pdksh 5.2.14.
19053 for as_var in BASH_ENV ENV MAIL MAILPATH
19054 do eval test x\${$as_var+set} = xset \
19055 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19056 done
19057 PS1='$ '
19058 PS2='> '
19059 PS4='+ '
19060
19061 # NLS nuisances.
19062 LC_ALL=C
19063 export LC_ALL
19064 LANGUAGE=C
19065 export LANGUAGE
19066
19067 # CDPATH.
19068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19069
19070
19071 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19072 # ----------------------------------------
19073 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19074 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19075 # script with STATUS, using 1 if that was 0.
19076 as_fn_error ()
19077 {
19078 as_status=$1; test $as_status -eq 0 && as_status=1
19079 if test "$4"; then
19080 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19081 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19082 fi
19083 $as_echo "$as_me: error: $2" >&2
19084 as_fn_exit $as_status
19085 } # as_fn_error
19086
19087
19088 # as_fn_set_status STATUS
19089 # -----------------------
19090 # Set $? to STATUS, without forking.
19091 as_fn_set_status ()
19092 {
19093 return $1
19094 } # as_fn_set_status
19095
19096 # as_fn_exit STATUS
19097 # -----------------
19098 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19099 as_fn_exit ()
19100 {
19101 set +e
19102 as_fn_set_status $1
19103 exit $1
19104 } # as_fn_exit
19105
19106 # as_fn_unset VAR
19107 # ---------------
19108 # Portably unset VAR.
19109 as_fn_unset ()
19110 {
19111 { eval $1=; unset $1;}
19112 }
19113 as_unset=as_fn_unset
19114 # as_fn_append VAR VALUE
19115 # ----------------------
19116 # Append the text in VALUE to the end of the definition contained in VAR. Take
19117 # advantage of any shell optimizations that allow amortized linear growth over
19118 # repeated appends, instead of the typical quadratic growth present in naive
19119 # implementations.
19120 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19121 eval 'as_fn_append ()
19122 {
19123 eval $1+=\$2
19124 }'
19125 else
19126 as_fn_append ()
19127 {
19128 eval $1=\$$1\$2
19129 }
19130 fi # as_fn_append
19131
19132 # as_fn_arith ARG...
19133 # ------------------
19134 # Perform arithmetic evaluation on the ARGs, and store the result in the
19135 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19136 # must be portable across $(()) and expr.
19137 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19138 eval 'as_fn_arith ()
19139 {
19140 as_val=$(( $* ))
19141 }'
19142 else
19143 as_fn_arith ()
19144 {
19145 as_val=`expr "$@" || test $? -eq 1`
19146 }
19147 fi # as_fn_arith
19148
19149
19150 if expr a : '\(a\)' >/dev/null 2>&1 &&
19151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19152 as_expr=expr
19153 else
19154 as_expr=false
19155 fi
19156
19157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19158 as_basename=basename
19159 else
19160 as_basename=false
19161 fi
19162
19163 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19164 as_dirname=dirname
19165 else
19166 as_dirname=false
19167 fi
19168
19169 as_me=`$as_basename -- "$0" ||
19170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19171 X"$0" : 'X\(//\)$' \| \
19172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19173 $as_echo X/"$0" |
19174 sed '/^.*\/\([^/][^/]*\)\/*$/{
19175 s//\1/
19176 q
19177 }
19178 /^X\/\(\/\/\)$/{
19179 s//\1/
19180 q
19181 }
19182 /^X\/\(\/\).*/{
19183 s//\1/
19184 q
19185 }
19186 s/.*/./; q'`
19187
19188 # Avoid depending upon Character Ranges.
19189 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19190 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19191 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19192 as_cr_digits='0123456789'
19193 as_cr_alnum=$as_cr_Letters$as_cr_digits
19194
19195 ECHO_C= ECHO_N= ECHO_T=
19196 case `echo -n x` in #(((((
19197 -n*)
19198 case `echo 'xy\c'` in
19199 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19200 xy) ECHO_C='\c';;
19201 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19202 ECHO_T=' ';;
19203 esac;;
19204 *)
19205 ECHO_N='-n';;
19206 esac
19207
19208 rm -f conf$$ conf$$.exe conf$$.file
19209 if test -d conf$$.dir; then
19210 rm -f conf$$.dir/conf$$.file
19211 else
19212 rm -f conf$$.dir
19213 mkdir conf$$.dir 2>/dev/null
19214 fi
19215 if (echo >conf$$.file) 2>/dev/null; then
19216 if ln -s conf$$.file conf$$ 2>/dev/null; then
19217 as_ln_s='ln -s'
19218 # ... but there are two gotchas:
19219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19221 # In both cases, we have to default to `cp -pR'.
19222 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19223 as_ln_s='cp -pR'
19224 elif ln conf$$.file conf$$ 2>/dev/null; then
19225 as_ln_s=ln
19226 else
19227 as_ln_s='cp -pR'
19228 fi
19229 else
19230 as_ln_s='cp -pR'
19231 fi
19232 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19233 rmdir conf$$.dir 2>/dev/null
19234
19235
19236 # as_fn_mkdir_p
19237 # -------------
19238 # Create "$as_dir" as a directory, including parents if necessary.
19239 as_fn_mkdir_p ()
19240 {
19241
19242 case $as_dir in #(
19243 -*) as_dir=./$as_dir;;
19244 esac
19245 test -d "$as_dir" || eval $as_mkdir_p || {
19246 as_dirs=
19247 while :; do
19248 case $as_dir in #(
19249 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19250 *) as_qdir=$as_dir;;
19251 esac
19252 as_dirs="'$as_qdir' $as_dirs"
19253 as_dir=`$as_dirname -- "$as_dir" ||
19254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19255 X"$as_dir" : 'X\(//\)[^/]' \| \
19256 X"$as_dir" : 'X\(//\)$' \| \
19257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19258 $as_echo X"$as_dir" |
19259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19260 s//\1/
19261 q
19262 }
19263 /^X\(\/\/\)[^/].*/{
19264 s//\1/
19265 q
19266 }
19267 /^X\(\/\/\)$/{
19268 s//\1/
19269 q
19270 }
19271 /^X\(\/\).*/{
19272 s//\1/
19273 q
19274 }
19275 s/.*/./; q'`
19276 test -d "$as_dir" && break
19277 done
19278 test -z "$as_dirs" || eval "mkdir $as_dirs"
19279 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19280
19281
19282 } # as_fn_mkdir_p
19283 if mkdir -p . 2>/dev/null; then
19284 as_mkdir_p='mkdir -p "$as_dir"'
19285 else
19286 test -d ./-p && rmdir ./-p
19287 as_mkdir_p=false
19288 fi
19289
19290
19291 # as_fn_executable_p FILE
19292 # -----------------------
19293 # Test if FILE is an executable regular file.
19294 as_fn_executable_p ()
19295 {
19296 test -f "$1" && test -x "$1"
19297 } # as_fn_executable_p
19298 as_test_x='test -x'
19299 as_executable_p=as_fn_executable_p
19300
19301 # Sed expression to map a string onto a valid CPP name.
19302 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19303
19304 # Sed expression to map a string onto a valid variable name.
19305 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19306
19307
19308 exec 6>&1
19309 ## ----------------------------------- ##
19310 ## Main body of $CONFIG_STATUS script. ##
19311 ## ----------------------------------- ##
19312 _ASEOF
19313 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19314
19315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19316 # Save the log message, to keep $0 and so on meaningful, and to
19317 # report actual input values of CONFIG_FILES etc. instead of their
19318 # values after options handling.
19319 ac_log="
19320 This file was extended by xf86-video-vesa $as_me 2.5.0, which was
19321 generated by GNU Autoconf 2.69. Invocation command line was
19322
19323 CONFIG_FILES = $CONFIG_FILES
19324 CONFIG_HEADERS = $CONFIG_HEADERS
19325 CONFIG_LINKS = $CONFIG_LINKS
19326 CONFIG_COMMANDS = $CONFIG_COMMANDS
19327 $ $0 $@
19328
19329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19330 "
19331
19332 _ACEOF
19333
19334 case $ac_config_files in *"
19335 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19336 esac
19337
19338 case $ac_config_headers in *"
19339 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19340 esac
19341
19342
19343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19344 # Files that config.status was made for.
19345 config_files="$ac_config_files"
19346 config_headers="$ac_config_headers"
19347 config_commands="$ac_config_commands"
19348
19349 _ACEOF
19350
19351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19352 ac_cs_usage="\
19353 \`$as_me' instantiates files and other configuration actions
19354 from templates according to the current configuration. Unless the files
19355 and actions are specified as TAGs, all are instantiated by default.
19356
19357 Usage: $0 [OPTION]... [TAG]...
19358
19359 -h, --help print this help, then exit
19360 -V, --version print version number and configuration settings, then exit
19361 --config print configuration, then exit
19362 -q, --quiet, --silent
19363 do not print progress messages
19364 -d, --debug don't remove temporary files
19365 --recheck update $as_me by reconfiguring in the same conditions
19366 --file=FILE[:TEMPLATE]
19367 instantiate the configuration file FILE
19368 --header=FILE[:TEMPLATE]
19369 instantiate the configuration header FILE
19370
19371 Configuration files:
19372 $config_files
19373
19374 Configuration headers:
19375 $config_headers
19376
19377 Configuration commands:
19378 $config_commands
19379
19380 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues>."
19381
19382 _ACEOF
19383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19384 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19385 ac_cs_version="\\
19386 xf86-video-vesa config.status 2.5.0
19387 configured by $0, generated by GNU Autoconf 2.69,
19388 with options \\"\$ac_cs_config\\"
19389
19390 Copyright (C) 2012 Free Software Foundation, Inc.
19391 This config.status script is free software; the Free Software Foundation
19392 gives unlimited permission to copy, distribute and modify it."
19393
19394 ac_pwd='$ac_pwd'
19395 srcdir='$srcdir'
19396 INSTALL='$INSTALL'
19397 MKDIR_P='$MKDIR_P'
19398 AWK='$AWK'
19399 test -n "\$AWK" || AWK=awk
19400 _ACEOF
19401
19402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19403 # The default lists apply if the user does not specify any file.
19404 ac_need_defaults=:
19405 while test $# != 0
19406 do
19407 case $1 in
19408 --*=?*)
19409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19410 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19411 ac_shift=:
19412 ;;
19413 --*=)
19414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19415 ac_optarg=
19416 ac_shift=:
19417 ;;
19418 *)
19419 ac_option=$1
19420 ac_optarg=$2
19421 ac_shift=shift
19422 ;;
19423 esac
19424
19425 case $ac_option in
19426 # Handling of the options.
19427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19428 ac_cs_recheck=: ;;
19429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19430 $as_echo "$ac_cs_version"; exit ;;
19431 --config | --confi | --conf | --con | --co | --c )
19432 $as_echo "$ac_cs_config"; exit ;;
19433 --debug | --debu | --deb | --de | --d | -d )
19434 debug=: ;;
19435 --file | --fil | --fi | --f )
19436 $ac_shift
19437 case $ac_optarg in
19438 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19439 '') as_fn_error $? "missing file argument" ;;
19440 esac
19441 as_fn_append CONFIG_FILES " '$ac_optarg'"
19442 ac_need_defaults=false;;
19443 --header | --heade | --head | --hea )
19444 $ac_shift
19445 case $ac_optarg in
19446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19447 esac
19448 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19449 ac_need_defaults=false;;
19450 --he | --h)
19451 # Conflict between --help and --header
19452 as_fn_error $? "ambiguous option: \`$1'
19453 Try \`$0 --help' for more information.";;
19454 --help | --hel | -h )
19455 $as_echo "$ac_cs_usage"; exit ;;
19456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19458 ac_cs_silent=: ;;
19459
19460 # This is an error.
19461 -*) as_fn_error $? "unrecognized option: \`$1'
19462 Try \`$0 --help' for more information." ;;
19463
19464 *) as_fn_append ac_config_targets " $1"
19465 ac_need_defaults=false ;;
19466
19467 esac
19468 shift
19469 done
19470
19471 ac_configure_extra_args=
19472
19473 if $ac_cs_silent; then
19474 exec 6>/dev/null
19475 ac_configure_extra_args="$ac_configure_extra_args --silent"
19476 fi
19477
19478 _ACEOF
19479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19480 if \$ac_cs_recheck; then
19481 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19482 shift
19483 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19484 CONFIG_SHELL='$SHELL'
19485 export CONFIG_SHELL
19486 exec "\$@"
19487 fi
19488
19489 _ACEOF
19490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19491 exec 5>>config.log
19492 {
19493 echo
19494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19495 ## Running $as_me. ##
19496 _ASBOX
19497 $as_echo "$ac_log"
19498 } >&5
19499
19500 _ACEOF
19501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19502 #
19503 # INIT-COMMANDS
19504 #
19505 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19506
19507
19508 # The HP-UX ksh and POSIX shell print the target directory to stdout
19509 # if CDPATH is set.
19510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19511
19512 sed_quote_subst='$sed_quote_subst'
19513 double_quote_subst='$double_quote_subst'
19514 delay_variable_subst='$delay_variable_subst'
19515 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19516 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19517 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19518 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19519 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19520 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19521 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19522 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19523 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19524 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19525 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19526 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19527 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19528 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19529 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19530 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19531 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19532 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19533 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19534 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19535 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19536 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19537 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19538 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19539 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19540 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19541 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19542 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19543 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19544 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19545 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19546 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19547 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19548 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19549 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19550 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19551 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19552 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19553 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19554 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19555 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19556 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19557 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19558 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19559 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19560 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19561 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19562 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19563 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19564 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19565 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19566 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19567 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19568 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19569 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19570 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19571 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19572 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19573 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"`'
19574 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19575 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19576 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19577 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19578 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19579 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19580 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19581 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19582 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19583 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19584 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19585 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19586 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19587 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19588 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19589 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19590 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19591 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19592 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19593 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19594 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19595 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19596 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19597 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19598 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19599 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19600 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19601 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19602 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19603 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19604 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19605 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19606 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19607 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19608 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19609 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19610 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19611 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19612 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19613 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19614 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19615 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19616 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19617 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19618 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19619 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19620 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19621 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19622 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19623 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19624 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19625 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19626 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19627 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19628 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19629 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19630 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19631 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19632 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19633 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19634 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19635 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19636 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19637 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19638 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19639 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19640 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19641 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19642 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19643 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19644 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19645 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19646 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19647 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19648 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19649 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19650
19651 LTCC='$LTCC'
19652 LTCFLAGS='$LTCFLAGS'
19653 compiler='$compiler_DEFAULT'
19654
19655 # A function that is used when there is no print builtin or printf.
19656 func_fallback_echo ()
19657 {
19658 eval 'cat <<_LTECHO_EOF
19659 \$1
19660 _LTECHO_EOF'
19661 }
19662
19663 # Quote evaled strings.
19664 for var in SHELL \
19665 ECHO \
19666 PATH_SEPARATOR \
19667 SED \
19668 GREP \
19669 EGREP \
19670 FGREP \
19671 LD \
19672 NM \
19673 LN_S \
19674 lt_SP2NL \
19675 lt_NL2SP \
19676 reload_flag \
19677 OBJDUMP \
19678 deplibs_check_method \
19679 file_magic_cmd \
19680 file_magic_glob \
19681 want_nocaseglob \
19682 DLLTOOL \
19683 sharedlib_from_linklib_cmd \
19684 AR \
19685 AR_FLAGS \
19686 archiver_list_spec \
19687 STRIP \
19688 RANLIB \
19689 CC \
19690 CFLAGS \
19691 compiler \
19692 lt_cv_sys_global_symbol_pipe \
19693 lt_cv_sys_global_symbol_to_cdecl \
19694 lt_cv_sys_global_symbol_to_import \
19695 lt_cv_sys_global_symbol_to_c_name_address \
19696 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19697 lt_cv_nm_interface \
19698 nm_file_list_spec \
19699 lt_cv_truncate_bin \
19700 lt_prog_compiler_no_builtin_flag \
19701 lt_prog_compiler_pic \
19702 lt_prog_compiler_wl \
19703 lt_prog_compiler_static \
19704 lt_cv_prog_compiler_c_o \
19705 need_locks \
19706 MANIFEST_TOOL \
19707 DSYMUTIL \
19708 NMEDIT \
19709 LIPO \
19710 OTOOL \
19711 OTOOL64 \
19712 shrext_cmds \
19713 export_dynamic_flag_spec \
19714 whole_archive_flag_spec \
19715 compiler_needs_object \
19716 with_gnu_ld \
19717 allow_undefined_flag \
19718 no_undefined_flag \
19719 hardcode_libdir_flag_spec \
19720 hardcode_libdir_separator \
19721 exclude_expsyms \
19722 include_expsyms \
19723 file_list_spec \
19724 variables_saved_for_relink \
19725 libname_spec \
19726 library_names_spec \
19727 soname_spec \
19728 install_override_mode \
19729 finish_eval \
19730 old_striplib \
19731 striplib; do
19732 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19733 *[\\\\\\\`\\"\\\$]*)
19734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19735 ;;
19736 *)
19737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19738 ;;
19739 esac
19740 done
19741
19742 # Double-quote double-evaled strings.
19743 for var in reload_cmds \
19744 old_postinstall_cmds \
19745 old_postuninstall_cmds \
19746 old_archive_cmds \
19747 extract_expsyms_cmds \
19748 old_archive_from_new_cmds \
19749 old_archive_from_expsyms_cmds \
19750 archive_cmds \
19751 archive_expsym_cmds \
19752 module_cmds \
19753 module_expsym_cmds \
19754 export_symbols_cmds \
19755 prelink_cmds \
19756 postlink_cmds \
19757 postinstall_cmds \
19758 postuninstall_cmds \
19759 finish_cmds \
19760 sys_lib_search_path_spec \
19761 configure_time_dlsearch_path \
19762 configure_time_lt_sys_library_path; do
19763 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19764 *[\\\\\\\`\\"\\\$]*)
19765 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19766 ;;
19767 *)
19768 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19769 ;;
19770 esac
19771 done
19772
19773 ac_aux_dir='$ac_aux_dir'
19774
19775 # See if we are running on zsh, and set the options that allow our
19776 # commands through without removal of \ escapes INIT.
19777 if test -n "\${ZSH_VERSION+set}"; then
19778 setopt NO_GLOB_SUBST
19779 fi
19780
19781
19782 PACKAGE='$PACKAGE'
19783 VERSION='$VERSION'
19784 RM='$RM'
19785 ofile='$ofile'
19786
19787
19788
19789
19790 _ACEOF
19791
19792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19793
19794 # Handling of arguments.
19795 for ac_config_target in $ac_config_targets
19796 do
19797 case $ac_config_target in
19798 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19799 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19800 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19801 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19802 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19803 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19804
19805 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19806 esac
19807 done
19808
19809
19810 # If the user did not use the arguments to specify the items to instantiate,
19811 # then the envvar interface is used. Set only those that are not.
19812 # We use the long form for the default assignment because of an extremely
19813 # bizarre bug on SunOS 4.1.3.
19814 if $ac_need_defaults; then
19815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19818 fi
19819
19820 # Have a temporary directory for convenience. Make it in the build tree
19821 # simply because there is no reason against having it here, and in addition,
19822 # creating and moving files from /tmp can sometimes cause problems.
19823 # Hook for its removal unless debugging.
19824 # Note that there is a small window in which the directory will not be cleaned:
19825 # after its creation but before its name has been assigned to `$tmp'.
19826 $debug ||
19827 {
19828 tmp= ac_tmp=
19829 trap 'exit_status=$?
19830 : "${ac_tmp:=$tmp}"
19831 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19832 ' 0
19833 trap 'as_fn_exit 1' 1 2 13 15
19834 }
19835 # Create a (secure) tmp directory for tmp files.
19836
19837 {
19838 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19839 test -d "$tmp"
19840 } ||
19841 {
19842 tmp=./conf$$-$RANDOM
19843 (umask 077 && mkdir "$tmp")
19844 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19845 ac_tmp=$tmp
19846
19847 # Set up the scripts for CONFIG_FILES section.
19848 # No need to generate them if there are no CONFIG_FILES.
19849 # This happens for instance with `./config.status config.h'.
19850 if test -n "$CONFIG_FILES"; then
19851
19852
19853 ac_cr=`echo X | tr X '\015'`
19854 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19855 # But we know of no other shell where ac_cr would be empty at this
19856 # point, so we can use a bashism as a fallback.
19857 if test "x$ac_cr" = x; then
19858 eval ac_cr=\$\'\\r\'
19859 fi
19860 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19861 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19862 ac_cs_awk_cr='\\r'
19863 else
19864 ac_cs_awk_cr=$ac_cr
19865 fi
19866
19867 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19868 _ACEOF
19869
19870
19871 {
19872 echo "cat >conf$$subs.awk <<_ACEOF" &&
19873 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19874 echo "_ACEOF"
19875 } >conf$$subs.sh ||
19876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19877 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19878 ac_delim='%!_!# '
19879 for ac_last_try in false false false false false :; do
19880 . ./conf$$subs.sh ||
19881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19882
19883 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19884 if test $ac_delim_n = $ac_delim_num; then
19885 break
19886 elif $ac_last_try; then
19887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19888 else
19889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19890 fi
19891 done
19892 rm -f conf$$subs.sh
19893
19894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19896 _ACEOF
19897 sed -n '
19898 h
19899 s/^/S["/; s/!.*/"]=/
19900 p
19901 g
19902 s/^[^!]*!//
19903 :repl
19904 t repl
19905 s/'"$ac_delim"'$//
19906 t delim
19907 :nl
19908 h
19909 s/\(.\{148\}\)..*/\1/
19910 t more1
19911 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19912 p
19913 n
19914 b repl
19915 :more1
19916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19917 p
19918 g
19919 s/.\{148\}//
19920 t nl
19921 :delim
19922 h
19923 s/\(.\{148\}\)..*/\1/
19924 t more2
19925 s/["\\]/\\&/g; s/^/"/; s/$/"/
19926 p
19927 b
19928 :more2
19929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19930 p
19931 g
19932 s/.\{148\}//
19933 t delim
19934 ' <conf$$subs.awk | sed '
19935 /^[^""]/{
19936 N
19937 s/\n//
19938 }
19939 ' >>$CONFIG_STATUS || ac_write_fail=1
19940 rm -f conf$$subs.awk
19941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19942 _ACAWK
19943 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19944 for (key in S) S_is_set[key] = 1
19945 FS = ""
19946
19947 }
19948 {
19949 line = $ 0
19950 nfields = split(line, field, "@")
19951 substed = 0
19952 len = length(field[1])
19953 for (i = 2; i < nfields; i++) {
19954 key = field[i]
19955 keylen = length(key)
19956 if (S_is_set[key]) {
19957 value = S[key]
19958 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19959 len += length(value) + length(field[++i])
19960 substed = 1
19961 } else
19962 len += 1 + keylen
19963 }
19964
19965 print line
19966 }
19967
19968 _ACAWK
19969 _ACEOF
19970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19971 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19972 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19973 else
19974 cat
19975 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19976 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19977 _ACEOF
19978
19979 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19980 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19981 # trailing colons and then remove the whole line if VPATH becomes empty
19982 # (actually we leave an empty line to preserve line numbers).
19983 if test "x$srcdir" = x.; then
19984 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19985 h
19986 s///
19987 s/^/:/
19988 s/[ ]*$/:/
19989 s/:\$(srcdir):/:/g
19990 s/:\${srcdir}:/:/g
19991 s/:@srcdir@:/:/g
19992 s/^:*//
19993 s/:*$//
19994 x
19995 s/\(=[ ]*\).*/\1/
19996 G
19997 s/\n//
19998 s/^[^=]*=[ ]*$//
19999 }'
20000 fi
20001
20002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20003 fi # test -n "$CONFIG_FILES"
20004
20005 # Set up the scripts for CONFIG_HEADERS section.
20006 # No need to generate them if there are no CONFIG_HEADERS.
20007 # This happens for instance with `./config.status Makefile'.
20008 if test -n "$CONFIG_HEADERS"; then
20009 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20010 BEGIN {
20011 _ACEOF
20012
20013 # Transform confdefs.h into an awk script `defines.awk', embedded as
20014 # here-document in config.status, that substitutes the proper values into
20015 # config.h.in to produce config.h.
20016
20017 # Create a delimiter string that does not exist in confdefs.h, to ease
20018 # handling of long lines.
20019 ac_delim='%!_!# '
20020 for ac_last_try in false false :; do
20021 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20022 if test -z "$ac_tt"; then
20023 break
20024 elif $ac_last_try; then
20025 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20026 else
20027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20028 fi
20029 done
20030
20031 # For the awk script, D is an array of macro values keyed by name,
20032 # likewise P contains macro parameters if any. Preserve backslash
20033 # newline sequences.
20034
20035 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20036 sed -n '
20037 s/.\{148\}/&'"$ac_delim"'/g
20038 t rset
20039 :rset
20040 s/^[ ]*#[ ]*define[ ][ ]*/ /
20041 t def
20042 d
20043 :def
20044 s/\\$//
20045 t bsnl
20046 s/["\\]/\\&/g
20047 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20048 D["\1"]=" \3"/p
20049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20050 d
20051 :bsnl
20052 s/["\\]/\\&/g
20053 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20054 D["\1"]=" \3\\\\\\n"\\/p
20055 t cont
20056 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20057 t cont
20058 d
20059 :cont
20060 n
20061 s/.\{148\}/&'"$ac_delim"'/g
20062 t clear
20063 :clear
20064 s/\\$//
20065 t bsnlc
20066 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20067 d
20068 :bsnlc
20069 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20070 b cont
20071 ' <confdefs.h | sed '
20072 s/'"$ac_delim"'/"\\\
20073 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20074
20075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20076 for (key in D) D_is_set[key] = 1
20077 FS = ""
20078 }
20079 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20080 line = \$ 0
20081 split(line, arg, " ")
20082 if (arg[1] == "#") {
20083 defundef = arg[2]
20084 mac1 = arg[3]
20085 } else {
20086 defundef = substr(arg[1], 2)
20087 mac1 = arg[2]
20088 }
20089 split(mac1, mac2, "(") #)
20090 macro = mac2[1]
20091 prefix = substr(line, 1, index(line, defundef) - 1)
20092 if (D_is_set[macro]) {
20093 # Preserve the white space surrounding the "#".
20094 print prefix "define", macro P[macro] D[macro]
20095 next
20096 } else {
20097 # Replace #undef with comments. This is necessary, for example,
20098 # in the case of _POSIX_SOURCE, which is predefined and required
20099 # on some systems where configure will not decide to define it.
20100 if (defundef == "undef") {
20101 print "/*", prefix defundef, macro, "*/"
20102 next
20103 }
20104 }
20105 }
20106 { print }
20107 _ACAWK
20108 _ACEOF
20109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20110 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20111 fi # test -n "$CONFIG_HEADERS"
20112
20113
20114 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20115 shift
20116 for ac_tag
20117 do
20118 case $ac_tag in
20119 :[FHLC]) ac_mode=$ac_tag; continue;;
20120 esac
20121 case $ac_mode$ac_tag in
20122 :[FHL]*:*);;
20123 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20124 :[FH]-) ac_tag=-:-;;
20125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20126 esac
20127 ac_save_IFS=$IFS
20128 IFS=:
20129 set x $ac_tag
20130 IFS=$ac_save_IFS
20131 shift
20132 ac_file=$1
20133 shift
20134
20135 case $ac_mode in
20136 :L) ac_source=$1;;
20137 :[FH])
20138 ac_file_inputs=
20139 for ac_f
20140 do
20141 case $ac_f in
20142 -) ac_f="$ac_tmp/stdin";;
20143 *) # Look for the file first in the build tree, then in the source tree
20144 # (if the path is not absolute). The absolute path cannot be DOS-style,
20145 # because $ac_f cannot contain `:'.
20146 test -f "$ac_f" ||
20147 case $ac_f in
20148 [\\/$]*) false;;
20149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20150 esac ||
20151 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20152 esac
20153 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20154 as_fn_append ac_file_inputs " '$ac_f'"
20155 done
20156
20157 # Let's still pretend it is `configure' which instantiates (i.e., don't
20158 # use $as_me), people would be surprised to read:
20159 # /* config.h. Generated by config.status. */
20160 configure_input='Generated from '`
20161 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20162 `' by configure.'
20163 if test x"$ac_file" != x-; then
20164 configure_input="$ac_file. $configure_input"
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20166 $as_echo "$as_me: creating $ac_file" >&6;}
20167 fi
20168 # Neutralize special characters interpreted by sed in replacement strings.
20169 case $configure_input in #(
20170 *\&* | *\|* | *\\* )
20171 ac_sed_conf_input=`$as_echo "$configure_input" |
20172 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20173 *) ac_sed_conf_input=$configure_input;;
20174 esac
20175
20176 case $ac_tag in
20177 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20179 esac
20180 ;;
20181 esac
20182
20183 ac_dir=`$as_dirname -- "$ac_file" ||
20184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20185 X"$ac_file" : 'X\(//\)[^/]' \| \
20186 X"$ac_file" : 'X\(//\)$' \| \
20187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20188 $as_echo X"$ac_file" |
20189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20190 s//\1/
20191 q
20192 }
20193 /^X\(\/\/\)[^/].*/{
20194 s//\1/
20195 q
20196 }
20197 /^X\(\/\/\)$/{
20198 s//\1/
20199 q
20200 }
20201 /^X\(\/\).*/{
20202 s//\1/
20203 q
20204 }
20205 s/.*/./; q'`
20206 as_dir="$ac_dir"; as_fn_mkdir_p
20207 ac_builddir=.
20208
20209 case "$ac_dir" in
20210 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20211 *)
20212 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20213 # A ".." for each directory in $ac_dir_suffix.
20214 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20215 case $ac_top_builddir_sub in
20216 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20217 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20218 esac ;;
20219 esac
20220 ac_abs_top_builddir=$ac_pwd
20221 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20222 # for backward compatibility:
20223 ac_top_builddir=$ac_top_build_prefix
20224
20225 case $srcdir in
20226 .) # We are building in place.
20227 ac_srcdir=.
20228 ac_top_srcdir=$ac_top_builddir_sub
20229 ac_abs_top_srcdir=$ac_pwd ;;
20230 [\\/]* | ?:[\\/]* ) # Absolute name.
20231 ac_srcdir=$srcdir$ac_dir_suffix;
20232 ac_top_srcdir=$srcdir
20233 ac_abs_top_srcdir=$srcdir ;;
20234 *) # Relative name.
20235 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20236 ac_top_srcdir=$ac_top_build_prefix$srcdir
20237 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20238 esac
20239 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20240
20241
20242 case $ac_mode in
20243 :F)
20244 #
20245 # CONFIG_FILE
20246 #
20247
20248 case $INSTALL in
20249 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20250 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20251 esac
20252 ac_MKDIR_P=$MKDIR_P
20253 case $MKDIR_P in
20254 [\\/$]* | ?:[\\/]* ) ;;
20255 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20256 esac
20257 _ACEOF
20258
20259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20260 # If the template does not know about datarootdir, expand it.
20261 # FIXME: This hack should be removed a few years after 2.60.
20262 ac_datarootdir_hack=; ac_datarootdir_seen=
20263 ac_sed_dataroot='
20264 /datarootdir/ {
20265 p
20266 q
20267 }
20268 /@datadir@/p
20269 /@docdir@/p
20270 /@infodir@/p
20271 /@localedir@/p
20272 /@mandir@/p'
20273 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20274 *datarootdir*) ac_datarootdir_seen=yes;;
20275 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20277 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20278 _ACEOF
20279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20280 ac_datarootdir_hack='
20281 s&@datadir@&$datadir&g
20282 s&@docdir@&$docdir&g
20283 s&@infodir@&$infodir&g
20284 s&@localedir@&$localedir&g
20285 s&@mandir@&$mandir&g
20286 s&\\\${datarootdir}&$datarootdir&g' ;;
20287 esac
20288 _ACEOF
20289
20290 # Neutralize VPATH when `$srcdir' = `.'.
20291 # Shell code in configure.ac might set extrasub.
20292 # FIXME: do we really want to maintain this feature?
20293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20294 ac_sed_extra="$ac_vpsub
20295 $extrasub
20296 _ACEOF
20297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20298 :t
20299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20300 s|@configure_input@|$ac_sed_conf_input|;t t
20301 s&@top_builddir@&$ac_top_builddir_sub&;t t
20302 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20303 s&@srcdir@&$ac_srcdir&;t t
20304 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20305 s&@top_srcdir@&$ac_top_srcdir&;t t
20306 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20307 s&@builddir@&$ac_builddir&;t t
20308 s&@abs_builddir@&$ac_abs_builddir&;t t
20309 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20310 s&@INSTALL@&$ac_INSTALL&;t t
20311 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20312 $ac_datarootdir_hack
20313 "
20314 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20315 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20316
20317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20318 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20320 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20322 which seems to be undefined. Please make sure it is defined" >&5
20323 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20324 which seems to be undefined. Please make sure it is defined" >&2;}
20325
20326 rm -f "$ac_tmp/stdin"
20327 case $ac_file in
20328 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20329 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20330 esac \
20331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20332 ;;
20333 :H)
20334 #
20335 # CONFIG_HEADER
20336 #
20337 if test x"$ac_file" != x-; then
20338 {
20339 $as_echo "/* $configure_input */" \
20340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20341 } >"$ac_tmp/config.h" \
20342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20343 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20345 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20346 else
20347 rm -f "$ac_file"
20348 mv "$ac_tmp/config.h" "$ac_file" \
20349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20350 fi
20351 else
20352 $as_echo "/* $configure_input */" \
20353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20354 || as_fn_error $? "could not create -" "$LINENO" 5
20355 fi
20356 # Compute "$ac_file"'s index in $config_headers.
20357 _am_arg="$ac_file"
20358 _am_stamp_count=1
20359 for _am_header in $config_headers :; do
20360 case $_am_header in
20361 $_am_arg | $_am_arg:* )
20362 break ;;
20363 * )
20364 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20365 esac
20366 done
20367 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20368 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20369 X"$_am_arg" : 'X\(//\)[^/]' \| \
20370 X"$_am_arg" : 'X\(//\)$' \| \
20371 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20372 $as_echo X"$_am_arg" |
20373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20374 s//\1/
20375 q
20376 }
20377 /^X\(\/\/\)[^/].*/{
20378 s//\1/
20379 q
20380 }
20381 /^X\(\/\/\)$/{
20382 s//\1/
20383 q
20384 }
20385 /^X\(\/\).*/{
20386 s//\1/
20387 q
20388 }
20389 s/.*/./; q'`/stamp-h$_am_stamp_count
20390 ;;
20391
20392 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20393 $as_echo "$as_me: executing $ac_file commands" >&6;}
20394 ;;
20395 esac
20396
20397
20398 case $ac_file$ac_mode in
20399 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20400 # Older Autoconf quotes --file arguments for eval, but not when files
20401 # are listed without --file. Let's play safe and only enable the eval
20402 # if we detect the quoting.
20403 # TODO: see whether this extra hack can be removed once we start
20404 # requiring Autoconf 2.70 or later.
20405 case $CONFIG_FILES in #(
20406 *\'*) :
20407 eval set x "$CONFIG_FILES" ;; #(
20408 *) :
20409 set x $CONFIG_FILES ;; #(
20410 *) :
20411 ;;
20412 esac
20413 shift
20414 # Used to flag and report bootstrapping failures.
20415 am_rc=0
20416 for am_mf
20417 do
20418 # Strip MF so we end up with the name of the file.
20419 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20420 # Check whether this is an Automake generated Makefile which includes
20421 # dependency-tracking related rules and includes.
20422 # Grep'ing the whole file directly is not great: AIX grep has a line
20423 # limit of 2048, but all sed's we know have understand at least 4000.
20424 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20425 || continue
20426 am_dirpart=`$as_dirname -- "$am_mf" ||
20427 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20428 X"$am_mf" : 'X\(//\)[^/]' \| \
20429 X"$am_mf" : 'X\(//\)$' \| \
20430 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20431 $as_echo X"$am_mf" |
20432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20433 s//\1/
20434 q
20435 }
20436 /^X\(\/\/\)[^/].*/{
20437 s//\1/
20438 q
20439 }
20440 /^X\(\/\/\)$/{
20441 s//\1/
20442 q
20443 }
20444 /^X\(\/\).*/{
20445 s//\1/
20446 q
20447 }
20448 s/.*/./; q'`
20449 am_filepart=`$as_basename -- "$am_mf" ||
20450 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20451 X"$am_mf" : 'X\(//\)$' \| \
20452 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20453 $as_echo X/"$am_mf" |
20454 sed '/^.*\/\([^/][^/]*\)\/*$/{
20455 s//\1/
20456 q
20457 }
20458 /^X\/\(\/\/\)$/{
20459 s//\1/
20460 q
20461 }
20462 /^X\/\(\/\).*/{
20463 s//\1/
20464 q
20465 }
20466 s/.*/./; q'`
20467 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20468 && sed -e '/# am--include-marker/d' "$am_filepart" \
20469 | $MAKE -f - am--depfiles" >&5
20470 (cd "$am_dirpart" \
20471 && sed -e '/# am--include-marker/d' "$am_filepart" \
20472 | $MAKE -f - am--depfiles) >&5 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } || am_rc=$?
20476 done
20477 if test $am_rc -ne 0; then
20478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20480 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20481 for automatic dependency tracking. Try re-running configure with the
20482 '--disable-dependency-tracking' option to at least be able to build
20483 the package (albeit without support for automatic dependency tracking).
20484 See \`config.log' for more details" "$LINENO" 5; }
20485 fi
20486 { am_dirpart=; unset am_dirpart;}
20487 { am_filepart=; unset am_filepart;}
20488 { am_mf=; unset am_mf;}
20489 { am_rc=; unset am_rc;}
20490 rm -f conftest-deps.mk
20491 }
20492 ;;
20493 "libtool":C)
20494
20495 # See if we are running on zsh, and set the options that allow our
20496 # commands through without removal of \ escapes.
20497 if test -n "${ZSH_VERSION+set}"; then
20498 setopt NO_GLOB_SUBST
20499 fi
20500
20501 cfgfile=${ofile}T
20502 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20503 $RM "$cfgfile"
20504
20505 cat <<_LT_EOF >> "$cfgfile"
20506 #! $SHELL
20507 # Generated automatically by $as_me ($PACKAGE) $VERSION
20508 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20509 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20510
20511 # Provide generalized library-building support services.
20512 # Written by Gordon Matzigkeit, 1996
20513
20514 # Copyright (C) 2014 Free Software Foundation, Inc.
20515 # This is free software; see the source for copying conditions. There is NO
20516 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20517
20518 # GNU Libtool is free software; you can redistribute it and/or modify
20519 # it under the terms of the GNU General Public License as published by
20520 # the Free Software Foundation; either version 2 of of the License, or
20521 # (at your option) any later version.
20522 #
20523 # As a special exception to the GNU General Public License, if you
20524 # distribute this file as part of a program or library that is built
20525 # using GNU Libtool, you may include this file under the same
20526 # distribution terms that you use for the rest of that program.
20527 #
20528 # GNU Libtool is distributed in the hope that it will be useful, but
20529 # WITHOUT ANY WARRANTY; without even the implied warranty of
20530 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20531 # GNU General Public License for more details.
20532 #
20533 # You should have received a copy of the GNU General Public License
20534 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20535
20536
20537 # The names of the tagged configurations supported by this script.
20538 available_tags=''
20539
20540 # Configured defaults for sys_lib_dlsearch_path munging.
20541 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20542
20543 # ### BEGIN LIBTOOL CONFIG
20544
20545 # Whether or not to build static libraries.
20546 build_old_libs=$enable_static
20547
20548 # Which release of libtool.m4 was used?
20549 macro_version=$macro_version
20550 macro_revision=$macro_revision
20551
20552 # Whether or not to build shared libraries.
20553 build_libtool_libs=$enable_shared
20554
20555 # What type of objects to build.
20556 pic_mode=$pic_mode
20557
20558 # Whether or not to optimize for fast installation.
20559 fast_install=$enable_fast_install
20560
20561 # Shared archive member basename,for filename based shared library versioning on AIX.
20562 shared_archive_member_spec=$shared_archive_member_spec
20563
20564 # Shell to use when invoking shell scripts.
20565 SHELL=$lt_SHELL
20566
20567 # An echo program that protects backslashes.
20568 ECHO=$lt_ECHO
20569
20570 # The PATH separator for the build system.
20571 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20572
20573 # The host system.
20574 host_alias=$host_alias
20575 host=$host
20576 host_os=$host_os
20577
20578 # The build system.
20579 build_alias=$build_alias
20580 build=$build
20581 build_os=$build_os
20582
20583 # A sed program that does not truncate output.
20584 SED=$lt_SED
20585
20586 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20587 Xsed="\$SED -e 1s/^X//"
20588
20589 # A grep program that handles long lines.
20590 GREP=$lt_GREP
20591
20592 # An ERE matcher.
20593 EGREP=$lt_EGREP
20594
20595 # A literal string matcher.
20596 FGREP=$lt_FGREP
20597
20598 # A BSD- or MS-compatible name lister.
20599 NM=$lt_NM
20600
20601 # Whether we need soft or hard links.
20602 LN_S=$lt_LN_S
20603
20604 # What is the maximum length of a command?
20605 max_cmd_len=$max_cmd_len
20606
20607 # Object file suffix (normally "o").
20608 objext=$ac_objext
20609
20610 # Executable file suffix (normally "").
20611 exeext=$exeext
20612
20613 # whether the shell understands "unset".
20614 lt_unset=$lt_unset
20615
20616 # turn spaces into newlines.
20617 SP2NL=$lt_lt_SP2NL
20618
20619 # turn newlines into spaces.
20620 NL2SP=$lt_lt_NL2SP
20621
20622 # convert \$build file names to \$host format.
20623 to_host_file_cmd=$lt_cv_to_host_file_cmd
20624
20625 # convert \$build files to toolchain format.
20626 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20627
20628 # An object symbol dumper.
20629 OBJDUMP=$lt_OBJDUMP
20630
20631 # Method to check whether dependent libraries are shared objects.
20632 deplibs_check_method=$lt_deplibs_check_method
20633
20634 # Command to use when deplibs_check_method = "file_magic".
20635 file_magic_cmd=$lt_file_magic_cmd
20636
20637 # How to find potential files when deplibs_check_method = "file_magic".
20638 file_magic_glob=$lt_file_magic_glob
20639
20640 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20641 want_nocaseglob=$lt_want_nocaseglob
20642
20643 # DLL creation program.
20644 DLLTOOL=$lt_DLLTOOL
20645
20646 # Command to associate shared and link libraries.
20647 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20648
20649 # The archiver.
20650 AR=$lt_AR
20651
20652 # Flags to create an archive.
20653 AR_FLAGS=$lt_AR_FLAGS
20654
20655 # How to feed a file listing to the archiver.
20656 archiver_list_spec=$lt_archiver_list_spec
20657
20658 # A symbol stripping program.
20659 STRIP=$lt_STRIP
20660
20661 # Commands used to install an old-style archive.
20662 RANLIB=$lt_RANLIB
20663 old_postinstall_cmds=$lt_old_postinstall_cmds
20664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20665
20666 # Whether to use a lock for old archive extraction.
20667 lock_old_archive_extraction=$lock_old_archive_extraction
20668
20669 # A C compiler.
20670 LTCC=$lt_CC
20671
20672 # LTCC compiler flags.
20673 LTCFLAGS=$lt_CFLAGS
20674
20675 # Take the output of nm and produce a listing of raw symbols and C names.
20676 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20677
20678 # Transform the output of nm in a proper C declaration.
20679 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20680
20681 # Transform the output of nm into a list of symbols to manually relocate.
20682 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20683
20684 # Transform the output of nm in a C name address pair.
20685 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20686
20687 # Transform the output of nm in a C name address pair when lib prefix is needed.
20688 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20689
20690 # The name lister interface.
20691 nm_interface=$lt_lt_cv_nm_interface
20692
20693 # Specify filename containing input files for \$NM.
20694 nm_file_list_spec=$lt_nm_file_list_spec
20695
20696 # The root where to search for dependent libraries,and where our libraries should be installed.
20697 lt_sysroot=$lt_sysroot
20698
20699 # Command to truncate a binary pipe.
20700 lt_truncate_bin=$lt_lt_cv_truncate_bin
20701
20702 # The name of the directory that contains temporary libtool files.
20703 objdir=$objdir
20704
20705 # Used to examine libraries when file_magic_cmd begins with "file".
20706 MAGIC_CMD=$MAGIC_CMD
20707
20708 # Must we lock files when doing compilation?
20709 need_locks=$lt_need_locks
20710
20711 # Manifest tool.
20712 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20713
20714 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20715 DSYMUTIL=$lt_DSYMUTIL
20716
20717 # Tool to change global to local symbols on Mac OS X.
20718 NMEDIT=$lt_NMEDIT
20719
20720 # Tool to manipulate fat objects and archives on Mac OS X.
20721 LIPO=$lt_LIPO
20722
20723 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20724 OTOOL=$lt_OTOOL
20725
20726 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20727 OTOOL64=$lt_OTOOL64
20728
20729 # Old archive suffix (normally "a").
20730 libext=$libext
20731
20732 # Shared library suffix (normally ".so").
20733 shrext_cmds=$lt_shrext_cmds
20734
20735 # The commands to extract the exported symbol list from a shared archive.
20736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20737
20738 # Variables whose values should be saved in libtool wrapper scripts and
20739 # restored at link time.
20740 variables_saved_for_relink=$lt_variables_saved_for_relink
20741
20742 # Do we need the "lib" prefix for modules?
20743 need_lib_prefix=$need_lib_prefix
20744
20745 # Do we need a version for libraries?
20746 need_version=$need_version
20747
20748 # Library versioning type.
20749 version_type=$version_type
20750
20751 # Shared library runtime path variable.
20752 runpath_var=$runpath_var
20753
20754 # Shared library path variable.
20755 shlibpath_var=$shlibpath_var
20756
20757 # Is shlibpath searched before the hard-coded library search path?
20758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20759
20760 # Format of library name prefix.
20761 libname_spec=$lt_libname_spec
20762
20763 # List of archive names. First name is the real one, the rest are links.
20764 # The last name is the one that the linker finds with -lNAME
20765 library_names_spec=$lt_library_names_spec
20766
20767 # The coded name of the library, if different from the real name.
20768 soname_spec=$lt_soname_spec
20769
20770 # Permission mode override for installation of shared libraries.
20771 install_override_mode=$lt_install_override_mode
20772
20773 # Command to use after installation of a shared archive.
20774 postinstall_cmds=$lt_postinstall_cmds
20775
20776 # Command to use after uninstallation of a shared archive.
20777 postuninstall_cmds=$lt_postuninstall_cmds
20778
20779 # Commands used to finish a libtool library installation in a directory.
20780 finish_cmds=$lt_finish_cmds
20781
20782 # As "finish_cmds", except a single script fragment to be evaled but
20783 # not shown.
20784 finish_eval=$lt_finish_eval
20785
20786 # Whether we should hardcode library paths into libraries.
20787 hardcode_into_libs=$hardcode_into_libs
20788
20789 # Compile-time system search path for libraries.
20790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20791
20792 # Detected run-time system search path for libraries.
20793 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20794
20795 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20796 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20797
20798 # Whether dlopen is supported.
20799 dlopen_support=$enable_dlopen
20800
20801 # Whether dlopen of programs is supported.
20802 dlopen_self=$enable_dlopen_self
20803
20804 # Whether dlopen of statically linked programs is supported.
20805 dlopen_self_static=$enable_dlopen_self_static
20806
20807 # Commands to strip libraries.
20808 old_striplib=$lt_old_striplib
20809 striplib=$lt_striplib
20810
20811
20812 # The linker used to build libraries.
20813 LD=$lt_LD
20814
20815 # How to create reloadable object files.
20816 reload_flag=$lt_reload_flag
20817 reload_cmds=$lt_reload_cmds
20818
20819 # Commands used to build an old-style archive.
20820 old_archive_cmds=$lt_old_archive_cmds
20821
20822 # A language specific compiler.
20823 CC=$lt_compiler
20824
20825 # Is the compiler the GNU compiler?
20826 with_gcc=$GCC
20827
20828 # Compiler flag to turn off builtin functions.
20829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20830
20831 # Additional compiler flags for building library objects.
20832 pic_flag=$lt_lt_prog_compiler_pic
20833
20834 # How to pass a linker flag through the compiler.
20835 wl=$lt_lt_prog_compiler_wl
20836
20837 # Compiler flag to prevent dynamic linking.
20838 link_static_flag=$lt_lt_prog_compiler_static
20839
20840 # Does compiler simultaneously support -c and -o options?
20841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20842
20843 # Whether or not to add -lc for building shared libraries.
20844 build_libtool_need_lc=$archive_cmds_need_lc
20845
20846 # Whether or not to disallow shared libs when runtime libs are static.
20847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20848
20849 # Compiler flag to allow reflexive dlopens.
20850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20851
20852 # Compiler flag to generate shared objects directly from archives.
20853 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20854
20855 # Whether the compiler copes with passing no objects directly.
20856 compiler_needs_object=$lt_compiler_needs_object
20857
20858 # Create an old-style archive from a shared archive.
20859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20860
20861 # Create a temporary old-style archive to link instead of a shared archive.
20862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20863
20864 # Commands used to build a shared archive.
20865 archive_cmds=$lt_archive_cmds
20866 archive_expsym_cmds=$lt_archive_expsym_cmds
20867
20868 # Commands used to build a loadable module if different from building
20869 # a shared archive.
20870 module_cmds=$lt_module_cmds
20871 module_expsym_cmds=$lt_module_expsym_cmds
20872
20873 # Whether we are building with GNU ld or not.
20874 with_gnu_ld=$lt_with_gnu_ld
20875
20876 # Flag that allows shared libraries with undefined symbols to be built.
20877 allow_undefined_flag=$lt_allow_undefined_flag
20878
20879 # Flag that enforces no undefined symbols.
20880 no_undefined_flag=$lt_no_undefined_flag
20881
20882 # Flag to hardcode \$libdir into a binary during linking.
20883 # This must work even if \$libdir does not exist
20884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20885
20886 # Whether we need a single "-rpath" flag with a separated argument.
20887 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20888
20889 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20890 # DIR into the resulting binary.
20891 hardcode_direct=$hardcode_direct
20892
20893 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20894 # DIR into the resulting binary and the resulting library dependency is
20895 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20896 # library is relocated.
20897 hardcode_direct_absolute=$hardcode_direct_absolute
20898
20899 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20900 # into the resulting binary.
20901 hardcode_minus_L=$hardcode_minus_L
20902
20903 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20904 # into the resulting binary.
20905 hardcode_shlibpath_var=$hardcode_shlibpath_var
20906
20907 # Set to "yes" if building a shared library automatically hardcodes DIR
20908 # into the library and all subsequent libraries and executables linked
20909 # against it.
20910 hardcode_automatic=$hardcode_automatic
20911
20912 # Set to yes if linker adds runtime paths of dependent libraries
20913 # to runtime path list.
20914 inherit_rpath=$inherit_rpath
20915
20916 # Whether libtool must link a program against all its dependency libraries.
20917 link_all_deplibs=$link_all_deplibs
20918
20919 # Set to "yes" if exported symbols are required.
20920 always_export_symbols=$always_export_symbols
20921
20922 # The commands to list exported symbols.
20923 export_symbols_cmds=$lt_export_symbols_cmds
20924
20925 # Symbols that should not be listed in the preloaded symbols.
20926 exclude_expsyms=$lt_exclude_expsyms
20927
20928 # Symbols that must always be exported.
20929 include_expsyms=$lt_include_expsyms
20930
20931 # Commands necessary for linking programs (against libraries) with templates.
20932 prelink_cmds=$lt_prelink_cmds
20933
20934 # Commands necessary for finishing linking programs.
20935 postlink_cmds=$lt_postlink_cmds
20936
20937 # Specify filename containing input files.
20938 file_list_spec=$lt_file_list_spec
20939
20940 # How to hardcode a shared library path into an executable.
20941 hardcode_action=$hardcode_action
20942
20943 # ### END LIBTOOL CONFIG
20944
20945 _LT_EOF
20946
20947 cat <<'_LT_EOF' >> "$cfgfile"
20948
20949 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20950
20951 # func_munge_path_list VARIABLE PATH
20952 # -----------------------------------
20953 # VARIABLE is name of variable containing _space_ separated list of
20954 # directories to be munged by the contents of PATH, which is string
20955 # having a format:
20956 # "DIR[:DIR]:"
20957 # string "DIR[ DIR]" will be prepended to VARIABLE
20958 # ":DIR[:DIR]"
20959 # string "DIR[ DIR]" will be appended to VARIABLE
20960 # "DIRP[:DIRP]::[DIRA:]DIRA"
20961 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20962 # "DIRA[ DIRA]" will be appended to VARIABLE
20963 # "DIR[:DIR]"
20964 # VARIABLE will be replaced by "DIR[ DIR]"
20965 func_munge_path_list ()
20966 {
20967 case x$2 in
20968 x)
20969 ;;
20970 *:)
20971 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20972 ;;
20973 x:*)
20974 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20975 ;;
20976 *::*)
20977 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20978 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20979 ;;
20980 *)
20981 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20982 ;;
20983 esac
20984 }
20985
20986
20987 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20988 func_cc_basename ()
20989 {
20990 for cc_temp in $*""; do
20991 case $cc_temp in
20992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20994 \-*) ;;
20995 *) break;;
20996 esac
20997 done
20998 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20999 }
21000
21001
21002 # ### END FUNCTIONS SHARED WITH CONFIGURE
21003
21004 _LT_EOF
21005
21006 case $host_os in
21007 aix3*)
21008 cat <<\_LT_EOF >> "$cfgfile"
21009 # AIX sometimes has problems with the GCC collect2 program. For some
21010 # reason, if we set the COLLECT_NAMES environment variable, the problems
21011 # vanish in a puff of smoke.
21012 if test set != "${COLLECT_NAMES+set}"; then
21013 COLLECT_NAMES=
21014 export COLLECT_NAMES
21015 fi
21016 _LT_EOF
21017 ;;
21018 esac
21019
21020
21021 ltmain=$ac_aux_dir/ltmain.sh
21022
21023
21024 # We use sed instead of cat because bash on DJGPP gets confused if
21025 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21026 # text mode, it properly converts lines to CR/LF. This bash problem
21027 # is reportedly fixed, but why not run on old versions too?
21028 sed '$q' "$ltmain" >> "$cfgfile" \
21029 || (rm -f "$cfgfile"; exit 1)
21030
21031 mv -f "$cfgfile" "$ofile" ||
21032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21033 chmod +x "$ofile"
21034
21035 ;;
21036
21037 esac
21038 done # for ac_tag
21039
21040
21041 as_fn_exit 0
21042 _ACEOF
21043 ac_clean_files=$ac_clean_files_save
21044
21045 test $ac_write_fail = 0 ||
21046 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21047
21048
21049 # configure is writing to config.log, and then calls config.status.
21050 # config.status does its own redirection, appending to config.log.
21051 # Unfortunately, on DOS this fails, as config.log is still kept open
21052 # by configure, so config.status won't be able to write to it; its
21053 # output is simply discarded. So we exec the FD to /dev/null,
21054 # effectively closing config.log, so it can be properly (re)opened and
21055 # appended to by config.status. When coming back to configure, we
21056 # need to make the FD available again.
21057 if test "$no_create" != yes; then
21058 ac_cs_success=:
21059 ac_config_status_args=
21060 test "$silent" = yes &&
21061 ac_config_status_args="$ac_config_status_args --quiet"
21062 exec 5>/dev/null
21063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21064 exec 5>>config.log
21065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21066 # would make configure fail if this is the last instruction.
21067 $ac_cs_success || as_fn_exit 1
21068 fi
21069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21072 fi
21073
21074