configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-suncg6 1.1.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg6/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg6/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='xf86-video-suncg6'
624 PACKAGE_TARNAME='xf86-video-suncg6'
625 PACKAGE_VERSION='1.1.3'
626 PACKAGE_STRING='xf86-video-suncg6 1.1.3'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg6/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 DRIVER_NAME
668 moduledir
669 XORG_LIBS
670 XORG_CFLAGS
671 LT_SYS_LIBRARY_PATH
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 FILECMD
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 EGREP
691 GREP
692 LIBTOOL
693 MAN_SUBSTS
694 XORG_MAN_PAGE
695 ADMIN_MAN_DIR
696 DRIVER_MAN_DIR
697 MISC_MAN_DIR
698 FILE_MAN_DIR
699 LIB_MAN_DIR
700 APP_MAN_DIR
701 ADMIN_MAN_SUFFIX
702 DRIVER_MAN_SUFFIX
703 MISC_MAN_SUFFIX
704 FILE_MAN_SUFFIX
705 LIB_MAN_SUFFIX
706 APP_MAN_SUFFIX
707 SED
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 INSTALL_CMD
717 PKG_CONFIG_LIBDIR
718 PKG_CONFIG_PATH
719 PKG_CONFIG
720 CHANGELOG_CMD
721 STRICT_CFLAGS
722 CWARNFLAGS
723 BASE_CFLAGS
724 am__fastdepCC_FALSE
725 am__fastdepCC_TRUE
726 CCDEPMODE
727 am__nodep
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 MAINT
741 MAINTAINER_MODE_FALSE
742 MAINTAINER_MODE_TRUE
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 CSCOPE
748 ETAGS
749 CTAGS
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 am__quote'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_maintainer_mode
818 enable_dependency_tracking
819 enable_selective_werror
820 enable_strict_compilation
821 enable_static
822 enable_shared
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 with_xorg_module_dir
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 PKG_CONFIG
840 PKG_CONFIG_PATH
841 PKG_CONFIG_LIBDIR
842 LT_SYS_LIBRARY_PATH
843 XORG_CFLAGS
844 XORG_LIBS'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 runstatedir='${localstatedir}/run'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
905 fi
906
907 case $ac_option in
908 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *=) ac_optarg= ;;
910 *) ac_optarg=yes ;;
911 esac
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: \`$ac_useropt'"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: \`$ac_useropt'"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -runstatedir | --runstatedir | --runstatedi | --runstated \
1135 | --runstate | --runstat | --runsta | --runst | --runs \
1136 | --run | --ru | --r)
1137 ac_prev=runstatedir ;;
1138 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1139 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1140 | --run=* | --ru=* | --r=*)
1141 runstatedir=$ac_optarg ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: \`$ac_useropt'"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: \`$ac_useropt'"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir runstatedir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 printf "%s\n" X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358 else
1359 ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures xf86-video-suncg6 1.1.3 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root
1443 [DATAROOTDIR/doc/xf86-video-suncg6]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of xf86-video-suncg6 1.1.3:";;
1466 esac
1467 cat <<\_ACEOF
1468
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-silent-rules less verbose build output (undo: "make V=1")
1474 --disable-silent-rules verbose build output (undo: "make V=0")
1475 --enable-maintainer-mode
1476 enable make rules and dependencies not useful (and
1477 sometimes confusing) to the casual installer
1478 --enable-dependency-tracking
1479 do not reject slow dependency extractors
1480 --disable-dependency-tracking
1481 speeds up one-time build
1482 --disable-selective-werror
1483 Turn off selective compiler errors. (default:
1484 enabled)
1485 --enable-strict-compilation
1486 Enable all warnings from compiler and make them
1487 errors (default: disabled)
1488 --enable-static[=PKGS] build static libraries [default=no]
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-aix-soname=aix|svr4|both
1500 shared library versioning (aka "SONAME") variant to
1501 provide on AIX, [default=aix].
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1504 compiler's sysroot if not specified).
1505 --with-xorg-module-dir=DIR
1506 Default xorg module directory
1507 [[default=$libdir/xorg/modules]]
1508
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1517 PKG_CONFIG path to pkg-config utility
1518 PKG_CONFIG_PATH
1519 directories to add to pkg-config's search path
1520 PKG_CONFIG_LIBDIR
1521 path overriding pkg-config's built-in search path
1522 LT_SYS_LIBRARY_PATH
1523 User-defined run-time library search path.
1524 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1525 XORG_LIBS linker flags for XORG, overriding pkg-config
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg6/-/issues>.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 continue
1541 ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for configure.gnu first; this name is used for a wrapper for
1577 # Metaconfig's "Configure" on case-insensitive file systems.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1589 fi
1590
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593 cat <<\_ACEOF
1594 xf86-video-suncg6 configure 1.1.3
1595 generated by GNU Autoconf 2.71
1596
1597 Copyright (C) 2021 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601 exit
1602 fi
1603
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1607
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest.beam
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 printf "%s\n" "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext
1634 then :
1635 ac_retval=0
1636 else $as_nop
1637 printf "%s\n" "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_compile
1646
1647 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1648 # ------------------------------------------------------------------
1649 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1650 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1651 ac_fn_check_decl ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 as_decl_name=`echo $2|sed 's/ *(.*//'`
1655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1656 printf %s "checking whether $as_decl_name is declared... " >&6; }
1657 if eval test \${$3+y}
1658 then :
1659 printf %s "(cached) " >&6
1660 else $as_nop
1661 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1662 eval ac_save_FLAGS=\$$6
1663 as_fn_append $6 " $5"
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 $4
1667 int
1668 main (void)
1669 {
1670 #ifndef $as_decl_name
1671 #ifdef __cplusplus
1672 (void) $as_decl_use;
1673 #else
1674 (void) $as_decl_name;
1675 #endif
1676 #endif
1677
1678 ;
1679 return 0;
1680 }
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"
1683 then :
1684 eval "$3=yes"
1685 else $as_nop
1686 eval "$3=no"
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1689 eval $6=\$ac_save_FLAGS
1690
1691 fi
1692 eval ac_res=\$$3
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 printf "%s\n" "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_check_decl
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else $as_nop
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"
1718 then :
1719 eval "$3=yes"
1720 else $as_nop
1721 eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 printf "%s\n" "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_try_link LINENO
1733 # -----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_link ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 printf "%s\n" "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest$ac_exeext && {
1758 test "$cross_compiling" = yes ||
1759 test -x conftest$ac_exeext
1760 }
1761 then :
1762 ac_retval=0
1763 else $as_nop
1764 printf "%s\n" "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768 fi
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_link
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 printf %s "checking for $2... " >&6; }
1787 if eval test \${$3+y}
1788 then :
1789 printf %s "(cached) " >&6
1790 else $as_nop
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795 #define $2 innocuous_$2
1796
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $2 (); below. */
1799
1800 #include <limits.h>
1801 #undef $2
1802
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1816
1817 int
1818 main (void)
1819 {
1820 return $2 ();
1821 ;
1822 return 0;
1823 }
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"
1826 then :
1827 eval "$3=yes"
1828 else $as_nop
1829 eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1832 conftest$ac_exeext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 printf "%s\n" "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_func
1840 ac_configure_args_raw=
1841 for ac_arg
1842 do
1843 case $ac_arg in
1844 *\'*)
1845 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1846 esac
1847 as_fn_append ac_configure_args_raw " '$ac_arg'"
1848 done
1849
1850 case $ac_configure_args_raw in
1851 *$as_nl*)
1852 ac_safe_unquote= ;;
1853 *)
1854 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1855 ac_unsafe_a="$ac_unsafe_z#~"
1856 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1857 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1858 esac
1859
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1863
1864 It was created by xf86-video-suncg6 $as_me 1.1.3, which was
1865 generated by GNU Autoconf 2.71. Invocation command line was
1866
1867 $ $0$ac_configure_args_raw
1868
1869 _ACEOF
1870 exec 5>>config.log
1871 {
1872 cat <<_ASUNAME
1873 ## --------- ##
1874 ## Platform. ##
1875 ## --------- ##
1876
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1885
1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1893
1894 _ASUNAME
1895
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899 IFS=$as_save_IFS
1900 case $as_dir in #(((
1901 '') as_dir=./ ;;
1902 */) ;;
1903 *) as_dir=$as_dir/ ;;
1904 esac
1905 printf "%s\n" "PATH: $as_dir"
1906 done
1907 IFS=$as_save_IFS
1908
1909 } >&5
1910
1911 cat >&5 <<_ACEOF
1912
1913
1914 ## ----------- ##
1915 ## Core tests. ##
1916 ## ----------- ##
1917
1918 _ACEOF
1919
1920
1921 # Keep a trace of the command line.
1922 # Strip out --no-create and --no-recursion so they do not pile up.
1923 # Strip out --silent because we don't want to record it for future runs.
1924 # Also quote any args containing shell meta-characters.
1925 # Make two passes to allow for proper duplicate-argument suppression.
1926 ac_configure_args=
1927 ac_configure_args0=
1928 ac_configure_args1=
1929 ac_must_keep_next=false
1930 for ac_pass in 1 2
1931 do
1932 for ac_arg
1933 do
1934 case $ac_arg in
1935 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937 | -silent | --silent | --silen | --sile | --sil)
1938 continue ;;
1939 *\'*)
1940 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941 esac
1942 case $ac_pass in
1943 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944 2)
1945 as_fn_append ac_configure_args1 " '$ac_arg'"
1946 if test $ac_must_keep_next = true; then
1947 ac_must_keep_next=false # Got value, back to normal.
1948 else
1949 case $ac_arg in
1950 *=* | --config-cache | -C | -disable-* | --disable-* \
1951 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953 | -with-* | --with-* | -without-* | --without-* | --x)
1954 case "$ac_configure_args0 " in
1955 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956 esac
1957 ;;
1958 -* ) ac_must_keep_next=true ;;
1959 esac
1960 fi
1961 as_fn_append ac_configure_args " '$ac_arg'"
1962 ;;
1963 esac
1964 done
1965 done
1966 { ac_configure_args0=; unset ac_configure_args0;}
1967 { ac_configure_args1=; unset ac_configure_args1;}
1968
1969 # When interrupted or exit'd, cleanup temporary files, and complete
1970 # config.log. We remove comments because anyway the quotes in there
1971 # would cause problems or look ugly.
1972 # WARNING: Use '\'' to represent an apostrophe within the trap.
1973 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974 trap 'exit_status=$?
1975 # Sanitize IFS.
1976 IFS=" "" $as_nl"
1977 # Save into config.log some information that might help in debugging.
1978 {
1979 echo
1980
1981 printf "%s\n" "## ---------------- ##
1982 ## Cache variables. ##
1983 ## ---------------- ##"
1984 echo
1985 # The following way of writing the cache mishandles newlines in values,
1986 (
1987 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in #(
1990 *${as_nl}*)
1991 case $ac_var in #(
1992 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1993 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1994 esac
1995 case $ac_var in #(
1996 _ | IFS | as_nl) ;; #(
1997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1998 *) { eval $ac_var=; unset $ac_var;} ;;
1999 esac ;;
2000 esac
2001 done
2002 (set) 2>&1 |
2003 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2004 *${as_nl}ac_space=\ *)
2005 sed -n \
2006 "s/'\''/'\''\\\\'\'''\''/g;
2007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2008 ;; #(
2009 *)
2010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011 ;;
2012 esac |
2013 sort
2014 )
2015 echo
2016
2017 printf "%s\n" "## ----------------- ##
2018 ## Output variables. ##
2019 ## ----------------- ##"
2020 echo
2021 for ac_var in $ac_subst_vars
2022 do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 printf "%s\n" "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2030
2031 if test -n "$ac_subst_files"; then
2032 printf "%s\n" "## ------------------- ##
2033 ## File substitutions. ##
2034 ## ------------------- ##"
2035 echo
2036 for ac_var in $ac_subst_files
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 printf "%s\n" "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045 fi
2046
2047 if test -s confdefs.h; then
2048 printf "%s\n" "## ----------- ##
2049 ## confdefs.h. ##
2050 ## ----------- ##"
2051 echo
2052 cat confdefs.h
2053 echo
2054 fi
2055 test "$ac_signal" != 0 &&
2056 printf "%s\n" "$as_me: caught signal $ac_signal"
2057 printf "%s\n" "$as_me: exit $exit_status"
2058 } >&5
2059 rm -f core *.core core.conftest.* &&
2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061 exit $exit_status
2062 ' 0
2063 for ac_signal in 1 2 13 15; do
2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065 done
2066 ac_signal=0
2067
2068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2069 rm -f -r conftest* confdefs.h
2070
2071 printf "%s\n" "/* confdefs.h */" > confdefs.h
2072
2073 # Predefined preprocessor variables.
2074
2075 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2076
2077 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2078
2079 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2080
2081 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2082
2083 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2084
2085 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2086
2087
2088 # Let the site file select an alternate cache file if it wants to.
2089 # Prefer an explicitly selected file to automatically selected ones.
2090 if test -n "$CONFIG_SITE"; then
2091 ac_site_files="$CONFIG_SITE"
2092 elif test "x$prefix" != xNONE; then
2093 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2094 else
2095 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2096 fi
2097
2098 for ac_site_file in $ac_site_files
2099 do
2100 case $ac_site_file in #(
2101 */*) :
2102 ;; #(
2103 *) :
2104 ac_site_file=./$ac_site_file ;;
2105 esac
2106 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2108 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2109 sed 's/^/| /' "$ac_site_file" >&5
2110 . "$ac_site_file" \
2111 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2113 as_fn_error $? "failed to load site script $ac_site_file
2114 See \`config.log' for more details" "$LINENO" 5; }
2115 fi
2116 done
2117
2118 if test -r "$cache_file"; then
2119 # Some versions of bash will fail to source /dev/null (special files
2120 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2121 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2124 case $cache_file in
2125 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126 *) . "./$cache_file";;
2127 esac
2128 fi
2129 else
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2132 >$cache_file
2133 fi
2134
2135 # Test code for whether the C compiler supports C89 (global declarations)
2136 ac_c_conftest_c89_globals='
2137 /* Does the compiler advertise C89 conformance?
2138 Do not test the value of __STDC__, because some compilers set it to 0
2139 while being otherwise adequately conformant. */
2140 #if !defined __STDC__
2141 # error "Compiler does not advertise C89 conformance"
2142 #endif
2143
2144 #include <stddef.h>
2145 #include <stdarg.h>
2146 struct stat;
2147 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2148 struct buf { int x; };
2149 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2150 static char *e (p, i)
2151 char **p;
2152 int i;
2153 {
2154 return p[i];
2155 }
2156 static char *f (char * (*g) (char **, int), char **p, ...)
2157 {
2158 char *s;
2159 va_list v;
2160 va_start (v,p);
2161 s = g (p, va_arg (v,int));
2162 va_end (v);
2163 return s;
2164 }
2165
2166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2167 function prototypes and stuff, but not \xHH hex character constants.
2168 These do not provoke an error unfortunately, instead are silently treated
2169 as an "x". The following induces an error, until -std is added to get
2170 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2171 array size at least. It is necessary to write \x00 == 0 to get something
2172 that is true only with -std. */
2173 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2174
2175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2176 inside strings and character constants. */
2177 #define FOO(x) '\''x'\''
2178 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2179
2180 int test (int i, double x);
2181 struct s1 {int (*f) (int a);};
2182 struct s2 {int (*f) (double a);};
2183 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2184 int, int);'
2185
2186 # Test code for whether the C compiler supports C89 (body of main).
2187 ac_c_conftest_c89_main='
2188 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2189 '
2190
2191 # Test code for whether the C compiler supports C99 (global declarations)
2192 ac_c_conftest_c99_globals='
2193 // Does the compiler advertise C99 conformance?
2194 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2195 # error "Compiler does not advertise C99 conformance"
2196 #endif
2197
2198 #include <stdbool.h>
2199 extern int puts (const char *);
2200 extern int printf (const char *, ...);
2201 extern int dprintf (int, const char *, ...);
2202 extern void *malloc (size_t);
2203
2204 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2205 // dprintf is used instead of fprintf to avoid needing to declare
2206 // FILE and stderr.
2207 #define debug(...) dprintf (2, __VA_ARGS__)
2208 #define showlist(...) puts (#__VA_ARGS__)
2209 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2210 static void
2211 test_varargs_macros (void)
2212 {
2213 int x = 1234;
2214 int y = 5678;
2215 debug ("Flag");
2216 debug ("X = %d\n", x);
2217 showlist (The first, second, and third items.);
2218 report (x>y, "x is %d but y is %d", x, y);
2219 }
2220
2221 // Check long long types.
2222 #define BIG64 18446744073709551615ull
2223 #define BIG32 4294967295ul
2224 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2225 #if !BIG_OK
2226 #error "your preprocessor is broken"
2227 #endif
2228 #if BIG_OK
2229 #else
2230 #error "your preprocessor is broken"
2231 #endif
2232 static long long int bignum = -9223372036854775807LL;
2233 static unsigned long long int ubignum = BIG64;
2234
2235 struct incomplete_array
2236 {
2237 int datasize;
2238 double data[];
2239 };
2240
2241 struct named_init {
2242 int number;
2243 const wchar_t *name;
2244 double average;
2245 };
2246
2247 typedef const char *ccp;
2248
2249 static inline int
2250 test_restrict (ccp restrict text)
2251 {
2252 // See if C++-style comments work.
2253 // Iterate through items via the restricted pointer.
2254 // Also check for declarations in for loops.
2255 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2256 continue;
2257 return 0;
2258 }
2259
2260 // Check varargs and va_copy.
2261 static bool
2262 test_varargs (const char *format, ...)
2263 {
2264 va_list args;
2265 va_start (args, format);
2266 va_list args_copy;
2267 va_copy (args_copy, args);
2268
2269 const char *str = "";
2270 int number = 0;
2271 float fnumber = 0;
2272
2273 while (*format)
2274 {
2275 switch (*format++)
2276 {
2277 case '\''s'\'': // string
2278 str = va_arg (args_copy, const char *);
2279 break;
2280 case '\''d'\'': // int
2281 number = va_arg (args_copy, int);
2282 break;
2283 case '\''f'\'': // float
2284 fnumber = va_arg (args_copy, double);
2285 break;
2286 default:
2287 break;
2288 }
2289 }
2290 va_end (args_copy);
2291 va_end (args);
2292
2293 return *str && number && fnumber;
2294 }
2295 '
2296
2297 # Test code for whether the C compiler supports C99 (body of main).
2298 ac_c_conftest_c99_main='
2299 // Check bool.
2300 _Bool success = false;
2301 success |= (argc != 0);
2302
2303 // Check restrict.
2304 if (test_restrict ("String literal") == 0)
2305 success = true;
2306 char *restrict newvar = "Another string";
2307
2308 // Check varargs.
2309 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2310 test_varargs_macros ();
2311
2312 // Check flexible array members.
2313 struct incomplete_array *ia =
2314 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2315 ia->datasize = 10;
2316 for (int i = 0; i < ia->datasize; ++i)
2317 ia->data[i] = i * 1.234;
2318
2319 // Check named initializers.
2320 struct named_init ni = {
2321 .number = 34,
2322 .name = L"Test wide string",
2323 .average = 543.34343,
2324 };
2325
2326 ni.number = 58;
2327
2328 int dynamic_array[ni.number];
2329 dynamic_array[0] = argv[0][0];
2330 dynamic_array[ni.number - 1] = 543;
2331
2332 // work around unused variable warnings
2333 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2334 || dynamic_array[ni.number - 1] != 543);
2335 '
2336
2337 # Test code for whether the C compiler supports C11 (global declarations)
2338 ac_c_conftest_c11_globals='
2339 // Does the compiler advertise C11 conformance?
2340 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2341 # error "Compiler does not advertise C11 conformance"
2342 #endif
2343
2344 // Check _Alignas.
2345 char _Alignas (double) aligned_as_double;
2346 char _Alignas (0) no_special_alignment;
2347 extern char aligned_as_int;
2348 char _Alignas (0) _Alignas (int) aligned_as_int;
2349
2350 // Check _Alignof.
2351 enum
2352 {
2353 int_alignment = _Alignof (int),
2354 int_array_alignment = _Alignof (int[100]),
2355 char_alignment = _Alignof (char)
2356 };
2357 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2358
2359 // Check _Noreturn.
2360 int _Noreturn does_not_return (void) { for (;;) continue; }
2361
2362 // Check _Static_assert.
2363 struct test_static_assert
2364 {
2365 int x;
2366 _Static_assert (sizeof (int) <= sizeof (long int),
2367 "_Static_assert does not work in struct");
2368 long int y;
2369 };
2370
2371 // Check UTF-8 literals.
2372 #define u8 syntax error!
2373 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2374
2375 // Check duplicate typedefs.
2376 typedef long *long_ptr;
2377 typedef long int *long_ptr;
2378 typedef long_ptr long_ptr;
2379
2380 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2381 struct anonymous
2382 {
2383 union {
2384 struct { int i; int j; };
2385 struct { int k; long int l; } w;
2386 };
2387 int m;
2388 } v1;
2389 '
2390
2391 # Test code for whether the C compiler supports C11 (body of main).
2392 ac_c_conftest_c11_main='
2393 _Static_assert ((offsetof (struct anonymous, i)
2394 == offsetof (struct anonymous, w.k)),
2395 "Anonymous union alignment botch");
2396 v1.i = 2;
2397 v1.w.k = 5;
2398 ok |= v1.i != 5;
2399 '
2400
2401 # Test code for whether the C compiler supports C11 (complete).
2402 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2403 ${ac_c_conftest_c99_globals}
2404 ${ac_c_conftest_c11_globals}
2405
2406 int
2407 main (int argc, char **argv)
2408 {
2409 int ok = 0;
2410 ${ac_c_conftest_c89_main}
2411 ${ac_c_conftest_c99_main}
2412 ${ac_c_conftest_c11_main}
2413 return ok;
2414 }
2415 "
2416
2417 # Test code for whether the C compiler supports C99 (complete).
2418 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2419 ${ac_c_conftest_c99_globals}
2420
2421 int
2422 main (int argc, char **argv)
2423 {
2424 int ok = 0;
2425 ${ac_c_conftest_c89_main}
2426 ${ac_c_conftest_c99_main}
2427 return ok;
2428 }
2429 "
2430
2431 # Test code for whether the C compiler supports C89 (complete).
2432 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2433
2434 int
2435 main (int argc, char **argv)
2436 {
2437 int ok = 0;
2438 ${ac_c_conftest_c89_main}
2439 return ok;
2440 }
2441 "
2442
2443 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2444 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2445 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2446 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2447 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2448 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2449 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2450 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2451 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2452
2453 # Auxiliary files required by this configure script.
2454 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2455
2456 # Locations in which to look for auxiliary files.
2457 ac_aux_dir_candidates="${srcdir}/."
2458
2459 # Search for a directory containing all of the required auxiliary files,
2460 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2461 # If we don't find one directory that contains all the files we need,
2462 # we report the set of missing files from the *first* directory in
2463 # $ac_aux_dir_candidates and give up.
2464 ac_missing_aux_files=""
2465 ac_first_candidate=:
2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 as_found=false
2469 for as_dir in $ac_aux_dir_candidates
2470 do
2471 IFS=$as_save_IFS
2472 case $as_dir in #(((
2473 '') as_dir=./ ;;
2474 */) ;;
2475 *) as_dir=$as_dir/ ;;
2476 esac
2477 as_found=:
2478
2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2480 ac_aux_dir_found=yes
2481 ac_install_sh=
2482 for ac_aux in $ac_aux_files
2483 do
2484 # As a special case, if "install-sh" is required, that requirement
2485 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2486 # and $ac_install_sh is set appropriately for whichever one is found.
2487 if test x"$ac_aux" = x"install-sh"
2488 then
2489 if test -f "${as_dir}install-sh"; then
2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2491 ac_install_sh="${as_dir}install-sh -c"
2492 elif test -f "${as_dir}install.sh"; then
2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2494 ac_install_sh="${as_dir}install.sh -c"
2495 elif test -f "${as_dir}shtool"; then
2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2497 ac_install_sh="${as_dir}shtool install -c"
2498 else
2499 ac_aux_dir_found=no
2500 if $ac_first_candidate; then
2501 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2502 else
2503 break
2504 fi
2505 fi
2506 else
2507 if test -f "${as_dir}${ac_aux}"; then
2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2509 else
2510 ac_aux_dir_found=no
2511 if $ac_first_candidate; then
2512 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2513 else
2514 break
2515 fi
2516 fi
2517 fi
2518 done
2519 if test "$ac_aux_dir_found" = yes; then
2520 ac_aux_dir="$as_dir"
2521 break
2522 fi
2523 ac_first_candidate=false
2524
2525 as_found=false
2526 done
2527 IFS=$as_save_IFS
2528 if $as_found
2529 then :
2530
2531 else $as_nop
2532 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2533 fi
2534
2535
2536 # These three variables are undocumented and unsupported,
2537 # and are intended to be withdrawn in a future Autoconf release.
2538 # They can cause serious problems if a builder's source tree is in a directory
2539 # whose full name contains unusual characters.
2540 if test -f "${ac_aux_dir}config.guess"; then
2541 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2542 fi
2543 if test -f "${ac_aux_dir}config.sub"; then
2544 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2545 fi
2546 if test -f "$ac_aux_dir/configure"; then
2547 ac_configure="$SHELL ${ac_aux_dir}configure"
2548 fi
2549
2550 # Check that the precious variables saved in the cache have kept the same
2551 # value.
2552 ac_cache_corrupted=false
2553 for ac_var in $ac_precious_vars; do
2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555 eval ac_new_set=\$ac_env_${ac_var}_set
2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557 eval ac_new_val=\$ac_env_${ac_var}_value
2558 case $ac_old_set,$ac_new_set in
2559 set,)
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562 ac_cache_corrupted=: ;;
2563 ,set)
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,);;
2568 *)
2569 if test "x$ac_old_val" != "x$ac_new_val"; then
2570 # differences in whitespace do not lead to failure.
2571 ac_old_val_w=`echo x $ac_old_val`
2572 ac_new_val_w=`echo x $ac_new_val`
2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576 ac_cache_corrupted=:
2577 else
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580 eval $ac_var=\$ac_old_val
2581 fi
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2586 fi;;
2587 esac
2588 # Pass precious variables to config.status.
2589 if test "$ac_new_set" = set; then
2590 case $ac_new_val in
2591 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592 *) ac_arg=$ac_var=$ac_new_val ;;
2593 esac
2594 case " $ac_configure_args " in
2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597 esac
2598 fi
2599 done
2600 if $ac_cache_corrupted; then
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2605 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2606 and start over" "$LINENO" 5
2607 fi
2608 ## -------------------- ##
2609 ## Main body of script. ##
2610 ## -------------------- ##
2611
2612 ac_ext=c
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617
2618
2619
2620 ac_config_headers="$ac_config_headers config.h"
2621
2622
2623
2624 # Initialize Automake
2625 am__api_version='1.16'
2626
2627
2628
2629 # Find a good install program. We prefer a C program (faster),
2630 # so one script is as good as another. But avoid the broken or
2631 # incompatible versions:
2632 # SysV /etc/install, /usr/sbin/install
2633 # SunOS /usr/etc/install
2634 # IRIX /sbin/install
2635 # AIX /bin/install
2636 # AmigaOS /C/install, which installs bootblocks on floppy discs
2637 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2640 # OS/2's system install, which has a completely different semantic
2641 # ./install, which can be erroneously created by make from ./install.sh.
2642 # Reject install programs that cannot install multiple files.
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2644 printf %s "checking for a BSD-compatible install... " >&6; }
2645 if test -z "$INSTALL"; then
2646 if test ${ac_cv_path_install+y}
2647 then :
2648 printf %s "(cached) " >&6
2649 else $as_nop
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 case $as_dir in #(((
2655 '') as_dir=./ ;;
2656 */) ;;
2657 *) as_dir=$as_dir/ ;;
2658 esac
2659 # Account for fact that we put trailing slashes in our PATH walk.
2660 case $as_dir in #((
2661 ./ | /[cC]/* | \
2662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2663 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2664 /usr/ucb/* ) ;;
2665 *)
2666 # OSF1 and SCO ODT 3.0 have their own names for install.
2667 # Don't use installbsd from OSF since it installs stuff as root
2668 # by default.
2669 for ac_prog in ginstall scoinst install; do
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2672 if test $ac_prog = install &&
2673 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2674 # AIX install. It has an incompatible calling convention.
2675 :
2676 elif test $ac_prog = install &&
2677 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2678 # program-specific install script used by HP pwplus--don't use.
2679 :
2680 else
2681 rm -rf conftest.one conftest.two conftest.dir
2682 echo one > conftest.one
2683 echo two > conftest.two
2684 mkdir conftest.dir
2685 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2686 test -s conftest.one && test -s conftest.two &&
2687 test -s conftest.dir/conftest.one &&
2688 test -s conftest.dir/conftest.two
2689 then
2690 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2691 break 3
2692 fi
2693 fi
2694 fi
2695 done
2696 done
2697 ;;
2698 esac
2699
2700 done
2701 IFS=$as_save_IFS
2702
2703 rm -rf conftest.one conftest.two conftest.dir
2704
2705 fi
2706 if test ${ac_cv_path_install+y}; then
2707 INSTALL=$ac_cv_path_install
2708 else
2709 # As a last resort, use the slow shell script. Don't cache a
2710 # value for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the value is a relative name.
2713 INSTALL=$ac_install_sh
2714 fi
2715 fi
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2717 printf "%s\n" "$INSTALL" >&6; }
2718
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2728 printf %s "checking whether build environment is sane... " >&6; }
2729 # Reject unsafe characters in $srcdir or the absolute working directory
2730 # name. Accept space and tab only in the latter.
2731 am_lf='
2732 '
2733 case `pwd` in
2734 *[\\\"\#\$\&\'\`$am_lf]*)
2735 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2736 esac
2737 case $srcdir in
2738 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2739 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2740 esac
2741
2742 # Do 'set' in a subshell so we don't clobber the current shell's
2743 # arguments. Must try -L first in case configure is actually a
2744 # symlink; some systems play weird games with the mod time of symlinks
2745 # (eg FreeBSD returns the mod time of the symlink's containing
2746 # directory).
2747 if (
2748 am_has_slept=no
2749 for am_try in 1 2; do
2750 echo "timestamp, slept: $am_has_slept" > conftest.file
2751 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2752 if test "$*" = "X"; then
2753 # -L didn't work.
2754 set X `ls -t "$srcdir/configure" conftest.file`
2755 fi
2756 if test "$*" != "X $srcdir/configure conftest.file" \
2757 && test "$*" != "X conftest.file $srcdir/configure"; then
2758
2759 # If neither matched, then we have a broken ls. This can happen
2760 # if, for instance, CONFIG_SHELL is bash and it inherits a
2761 # broken ls alias from the environment. This has actually
2762 # happened. Such a system could not be considered "sane".
2763 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2764 alias in your environment" "$LINENO" 5
2765 fi
2766 if test "$2" = conftest.file || test $am_try -eq 2; then
2767 break
2768 fi
2769 # Just in case.
2770 sleep 1
2771 am_has_slept=yes
2772 done
2773 test "$2" = conftest.file
2774 )
2775 then
2776 # Ok.
2777 :
2778 else
2779 as_fn_error $? "newly created file is older than distributed files!
2780 Check your system clock" "$LINENO" 5
2781 fi
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783 printf "%s\n" "yes" >&6; }
2784 # If we didn't sleep, we still need to ensure time stamps of config.status and
2785 # generated files are strictly newer.
2786 am_sleep_pid=
2787 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2788 ( sleep 1 ) &
2789 am_sleep_pid=$!
2790 fi
2791
2792 rm -f conftest.file
2793
2794 test "$program_prefix" != NONE &&
2795 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2796 # Use a double $ so make ignores it.
2797 test "$program_suffix" != NONE &&
2798 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2799 # Double any \ or $.
2800 # By default was `s,x,x', remove it if useless.
2801 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2802 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2803
2804
2805 # Expand $ac_aux_dir to an absolute path.
2806 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2807
2808
2809 if test x"${MISSING+set}" != xset; then
2810 MISSING="\${SHELL} '$am_aux_dir/missing'"
2811 fi
2812 # Use eval to expand $SHELL
2813 if eval "$MISSING --is-lightweight"; then
2814 am_missing_run="$MISSING "
2815 else
2816 am_missing_run=
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2818 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2819 fi
2820
2821 if test x"${install_sh+set}" != xset; then
2822 case $am_aux_dir in
2823 *\ * | *\ *)
2824 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2825 *)
2826 install_sh="\${SHELL} $am_aux_dir/install-sh"
2827 esac
2828 fi
2829
2830 # Installed binaries are usually stripped using 'strip' when the user
2831 # run "make install-strip". However 'strip' might not be the right
2832 # tool to use in cross-compilation environments, therefore Automake
2833 # will honor the 'STRIP' environment variable to overrule this program.
2834 if test "$cross_compiling" != no; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}strip; ac_word=$2
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 printf %s "checking for $ac_word... " >&6; }
2840 if test ${ac_cv_prog_STRIP+y}
2841 then :
2842 printf %s "(cached) " >&6
2843 else $as_nop
2844 if test -n "$STRIP"; then
2845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 case $as_dir in #(((
2852 '') as_dir=./ ;;
2853 */) ;;
2854 *) as_dir=$as_dir/ ;;
2855 esac
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 STRIP=$ac_cv_prog_STRIP
2869 if test -n "$STRIP"; then
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2871 printf "%s\n" "$STRIP" >&6; }
2872 else
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 printf "%s\n" "no" >&6; }
2875 fi
2876
2877
2878 fi
2879 if test -z "$ac_cv_prog_STRIP"; then
2880 ac_ct_STRIP=$STRIP
2881 # Extract the first word of "strip", so it can be a program name with args.
2882 set dummy strip; ac_word=$2
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 printf %s "checking for $ac_word... " >&6; }
2885 if test ${ac_cv_prog_ac_ct_STRIP+y}
2886 then :
2887 printf %s "(cached) " >&6
2888 else $as_nop
2889 if test -n "$ac_ct_STRIP"; then
2890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 case $as_dir in #(((
2897 '') as_dir=./ ;;
2898 */) ;;
2899 *) as_dir=$as_dir/ ;;
2900 esac
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_STRIP="strip"
2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2914 if test -n "$ac_ct_STRIP"; then
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2916 printf "%s\n" "$ac_ct_STRIP" >&6; }
2917 else
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 printf "%s\n" "no" >&6; }
2920 fi
2921
2922 if test "x$ac_ct_STRIP" = x; then
2923 STRIP=":"
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931 STRIP=$ac_ct_STRIP
2932 fi
2933 else
2934 STRIP="$ac_cv_prog_STRIP"
2935 fi
2936
2937 fi
2938 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2939
2940
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2942 printf %s "checking for a race-free mkdir -p... " >&6; }
2943 if test -z "$MKDIR_P"; then
2944 if test ${ac_cv_path_mkdir+y}
2945 then :
2946 printf %s "(cached) " >&6
2947 else $as_nop
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2950 do
2951 IFS=$as_save_IFS
2952 case $as_dir in #(((
2953 '') as_dir=./ ;;
2954 */) ;;
2955 *) as_dir=$as_dir/ ;;
2956 esac
2957 for ac_prog in mkdir gmkdir; do
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2960 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2961 'mkdir ('*'coreutils) '* | \
2962 'BusyBox '* | \
2963 'mkdir (fileutils) '4.1*)
2964 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2965 break 3;;
2966 esac
2967 done
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973
2974 test -d ./--version && rmdir ./--version
2975 if test ${ac_cv_path_mkdir+y}; then
2976 MKDIR_P="$ac_cv_path_mkdir -p"
2977 else
2978 # As a last resort, use the slow shell script. Don't cache a
2979 # value for MKDIR_P within a source directory, because that will
2980 # break other packages using the cache if that directory is
2981 # removed, or if the value is a relative name.
2982 MKDIR_P="$ac_install_sh -d"
2983 fi
2984 fi
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2986 printf "%s\n" "$MKDIR_P" >&6; }
2987
2988 for ac_prog in gawk mawk nawk awk
2989 do
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 printf %s "checking for $ac_word... " >&6; }
2994 if test ${ac_cv_prog_AWK+y}
2995 then :
2996 printf %s "(cached) " >&6
2997 else $as_nop
2998 if test -n "$AWK"; then
2999 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 case $as_dir in #(((
3006 '') as_dir=./ ;;
3007 */) ;;
3008 *) as_dir=$as_dir/ ;;
3009 esac
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_AWK="$ac_prog"
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 AWK=$ac_cv_prog_AWK
3023 if test -n "$AWK"; then
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025 printf "%s\n" "$AWK" >&6; }
3026 else
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 printf "%s\n" "no" >&6; }
3029 fi
3030
3031
3032 test -n "$AWK" && break
3033 done
3034
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3036 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3037 set x ${MAKE-make}
3038 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3039 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3040 then :
3041 printf %s "(cached) " >&6
3042 else $as_nop
3043 cat >conftest.make <<\_ACEOF
3044 SHELL = /bin/sh
3045 all:
3046 @echo '@@@%%%=$(MAKE)=@@@%%%'
3047 _ACEOF
3048 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3049 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3050 *@@@%%%=?*=@@@%%%*)
3051 eval ac_cv_prog_make_${ac_make}_set=yes;;
3052 *)
3053 eval ac_cv_prog_make_${ac_make}_set=no;;
3054 esac
3055 rm -f conftest.make
3056 fi
3057 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 printf "%s\n" "yes" >&6; }
3060 SET_MAKE=
3061 else
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 printf "%s\n" "no" >&6; }
3064 SET_MAKE="MAKE=${MAKE-make}"
3065 fi
3066
3067 rm -rf .tst 2>/dev/null
3068 mkdir .tst 2>/dev/null
3069 if test -d .tst; then
3070 am__leading_dot=.
3071 else
3072 am__leading_dot=_
3073 fi
3074 rmdir .tst 2>/dev/null
3075
3076 # Check whether --enable-silent-rules was given.
3077 if test ${enable_silent_rules+y}
3078 then :
3079 enableval=$enable_silent_rules;
3080 fi
3081
3082 case $enable_silent_rules in # (((
3083 yes) AM_DEFAULT_VERBOSITY=0;;
3084 no) AM_DEFAULT_VERBOSITY=1;;
3085 *) AM_DEFAULT_VERBOSITY=1;;
3086 esac
3087 am_make=${MAKE-make}
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3089 printf %s "checking whether $am_make supports nested variables... " >&6; }
3090 if test ${am_cv_make_support_nested_variables+y}
3091 then :
3092 printf %s "(cached) " >&6
3093 else $as_nop
3094 if printf "%s\n" 'TRUE=$(BAR$(V))
3095 BAR0=false
3096 BAR1=true
3097 V=1
3098 am__doit:
3099 @$(TRUE)
3100 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3101 am_cv_make_support_nested_variables=yes
3102 else
3103 am_cv_make_support_nested_variables=no
3104 fi
3105 fi
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3107 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3108 if test $am_cv_make_support_nested_variables = yes; then
3109 AM_V='$(V)'
3110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3111 else
3112 AM_V=$AM_DEFAULT_VERBOSITY
3113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3114 fi
3115 AM_BACKSLASH='\'
3116
3117 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3119 # is not polluted with repeated "-I."
3120 am__isrc=' -I$(srcdir)'
3121 # test to see if srcdir already configured
3122 if test -f $srcdir/config.status; then
3123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3124 fi
3125 fi
3126
3127 # test whether we have cygpath
3128 if test -z "$CYGPATH_W"; then
3129 if (cygpath --version) >/dev/null 2>/dev/null; then
3130 CYGPATH_W='cygpath -w'
3131 else
3132 CYGPATH_W=echo
3133 fi
3134 fi
3135
3136
3137 # Define the identity of the package.
3138 PACKAGE='xf86-video-suncg6'
3139 VERSION='1.1.3'
3140
3141
3142 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3143
3144
3145 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3146
3147 # Some tools Automake needs.
3148
3149 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3150
3151
3152 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3153
3154
3155 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3156
3157
3158 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3159
3160
3161 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3162
3163 # For better backward compatibility. To be removed once Automake 1.9.x
3164 # dies out for good. For more background, see:
3165 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3166 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3167 mkdir_p='$(MKDIR_P)'
3168
3169 # We need awk for the "check" target (and possibly the TAP driver). The
3170 # system "awk" is bad on some platforms.
3171 # Always define AMTAR for backward compatibility. Yes, it's still used
3172 # in the wild :-( We should find a proper way to deprecate it ...
3173 AMTAR='$${TAR-tar}'
3174
3175
3176 # We'll loop over all known methods to create a tar archive until one works.
3177 _am_tools='gnutar pax cpio none'
3178
3179 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3180
3181
3182
3183
3184
3185 # Variables for tags utilities; see am/tags.am
3186 if test -z "$CTAGS"; then
3187 CTAGS=ctags
3188 fi
3189
3190 if test -z "$ETAGS"; then
3191 ETAGS=etags
3192 fi
3193
3194 if test -z "$CSCOPE"; then
3195 CSCOPE=cscope
3196 fi
3197
3198
3199
3200 # POSIX will say in a future version that running "rm -f" with no argument
3201 # is OK; and we want to be able to make that assumption in our Makefile
3202 # recipes. So use an aggressive probe to check that the usage we want is
3203 # actually supported "in the wild" to an acceptable degree.
3204 # See automake bug#10828.
3205 # To make any issue more visible, cause the running configure to be aborted
3206 # by default if the 'rm' program in use doesn't match our expectations; the
3207 # user can still override this though.
3208 if rm -f && rm -fr && rm -rf; then : OK; else
3209 cat >&2 <<'END'
3210 Oops!
3211
3212 Your 'rm' program seems unable to run without file operands specified
3213 on the command line, even when the '-f' option is present. This is contrary
3214 to the behaviour of most rm programs out there, and not conforming with
3215 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3216
3217 Please tell bug-automake@gnu.org about your system, including the value
3218 of your $PATH and any error possibly output before this message. This
3219 can help us improve future automake versions.
3220
3221 END
3222 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3223 echo 'Configuration will proceed anyway, since you have set the' >&2
3224 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3225 echo >&2
3226 else
3227 cat >&2 <<'END'
3228 Aborting the configuration process, to ensure you take notice of the issue.
3229
3230 You can download and install GNU coreutils to get an 'rm' implementation
3231 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3232
3233 If you want to complete the configuration process using your problematic
3234 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3235 to "yes", and re-run configure.
3236
3237 END
3238 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3239 fi
3240 fi
3241
3242
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3244 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3245 # Check whether --enable-maintainer-mode was given.
3246 if test ${enable_maintainer_mode+y}
3247 then :
3248 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3249 else $as_nop
3250 USE_MAINTAINER_MODE=no
3251 fi
3252
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3254 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3255 if test $USE_MAINTAINER_MODE = yes; then
3256 MAINTAINER_MODE_TRUE=
3257 MAINTAINER_MODE_FALSE='#'
3258 else
3259 MAINTAINER_MODE_TRUE='#'
3260 MAINTAINER_MODE_FALSE=
3261 fi
3262
3263 MAINT=$MAINTAINER_MODE_TRUE
3264
3265
3266
3267 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288 DEPDIR="${am__leading_dot}deps"
3289
3290 ac_config_commands="$ac_config_commands depfiles"
3291
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3293 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3294 cat > confinc.mk << 'END'
3295 am__doit:
3296 @echo this is the am__doit target >confinc.out
3297 .PHONY: am__doit
3298 END
3299 am__include="#"
3300 am__quote=
3301 # BSD make does it like this.
3302 echo '.include "confinc.mk" # ignored' > confmf.BSD
3303 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3304 echo 'include confinc.mk # ignored' > confmf.GNU
3305 _am_result=no
3306 for s in GNU BSD; do
3307 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3308 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3312 case $?:`cat confinc.out 2>/dev/null` in #(
3313 '0:this is the am__doit target') :
3314 case $s in #(
3315 BSD) :
3316 am__include='.include' am__quote='"' ;; #(
3317 *) :
3318 am__include='include' am__quote='' ;;
3319 esac ;; #(
3320 *) :
3321 ;;
3322 esac
3323 if test "$am__include" != "#"; then
3324 _am_result="yes ($s style)"
3325 break
3326 fi
3327 done
3328 rm -f confinc.* confmf.*
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3330 printf "%s\n" "${_am_result}" >&6; }
3331
3332 # Check whether --enable-dependency-tracking was given.
3333 if test ${enable_dependency_tracking+y}
3334 then :
3335 enableval=$enable_dependency_tracking;
3336 fi
3337
3338 if test "x$enable_dependency_tracking" != xno; then
3339 am_depcomp="$ac_aux_dir/depcomp"
3340 AMDEPBACKSLASH='\'
3341 am__nodep='_no'
3342 fi
3343 if test "x$enable_dependency_tracking" != xno; then
3344 AMDEP_TRUE=
3345 AMDEP_FALSE='#'
3346 else
3347 AMDEP_TRUE='#'
3348 AMDEP_FALSE=
3349 fi
3350
3351
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 printf %s "checking for $ac_word... " >&6; }
3362 if test ${ac_cv_prog_CC+y}
3363 then :
3364 printf %s "(cached) " >&6
3365 else $as_nop
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372 IFS=$as_save_IFS
3373 case $as_dir in #(((
3374 '') as_dir=./ ;;
3375 */) ;;
3376 *) as_dir=$as_dir/ ;;
3377 esac
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 printf "%s\n" "$CC" >&6; }
3394 else
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 printf "%s\n" "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$ac_cv_prog_CC"; then
3402 ac_ct_CC=$CC
3403 # Extract the first word of "gcc", so it can be a program name with args.
3404 set dummy gcc; ac_word=$2
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 printf %s "checking for $ac_word... " >&6; }
3407 if test ${ac_cv_prog_ac_ct_CC+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else $as_nop
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 case $as_dir in #(((
3419 '') as_dir=./ ;;
3420 */) ;;
3421 *) as_dir=$as_dir/ ;;
3422 esac
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_ac_ct_CC="gcc"
3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 printf "%s\n" "$ac_ct_CC" >&6; }
3439 else
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 printf "%s\n" "no" >&6; }
3442 fi
3443
3444 if test "x$ac_ct_CC" = x; then
3445 CC=""
3446 else
3447 case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CC=$ac_ct_CC
3454 fi
3455 else
3456 CC="$ac_cv_prog_CC"
3457 fi
3458
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cc; ac_word=$2
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 printf %s "checking for $ac_word... " >&6; }
3465 if test ${ac_cv_prog_CC+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else $as_nop
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_CC="${ac_tool_prefix}cc"
3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 printf "%s\n" "$CC" >&6; }
3497 else
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 printf "%s\n" "no" >&6; }
3500 fi
3501
3502
3503 fi
3504 fi
3505 if test -z "$CC"; then
3506 # Extract the first word of "cc", so it can be a program name with args.
3507 set dummy cc; ac_word=$2
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 printf %s "checking for $ac_word... " >&6; }
3510 if test ${ac_cv_prog_CC+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else $as_nop
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 ac_prog_rejected=no
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 case $as_dir in #(((
3523 '') as_dir=./ ;;
3524 */) ;;
3525 *) as_dir=$as_dir/ ;;
3526 esac
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3529 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3530 ac_prog_rejected=yes
3531 continue
3532 fi
3533 ac_cv_prog_CC="cc"
3534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537 done
3538 done
3539 IFS=$as_save_IFS
3540
3541 if test $ac_prog_rejected = yes; then
3542 # We found a bogon in the path, so make sure we never use it.
3543 set dummy $ac_cv_prog_CC
3544 shift
3545 if test $# != 0; then
3546 # We chose a different compiler from the bogus one.
3547 # However, it has the same basename, so the bogon will be chosen
3548 # first if we set CC to just the basename; use the full file name.
3549 shift
3550 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3551 fi
3552 fi
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 printf "%s\n" "$CC" >&6; }
3559 else
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 printf "%s\n" "no" >&6; }
3562 fi
3563
3564
3565 fi
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 for ac_prog in cl.exe
3569 do
3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 printf %s "checking for $ac_word... " >&6; }
3574 if test ${ac_cv_prog_CC+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else $as_nop
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 case $as_dir in #(((
3586 '') as_dir=./ ;;
3587 */) ;;
3588 *) as_dir=$as_dir/ ;;
3589 esac
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 printf "%s\n" "$CC" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 fi
3610
3611
3612 test -n "$CC" && break
3613 done
3614 fi
3615 if test -z "$CC"; then
3616 ac_ct_CC=$CC
3617 for ac_prog in cl.exe
3618 do
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 printf %s "checking for $ac_word... " >&6; }
3623 if test ${ac_cv_prog_ac_ct_CC+y}
3624 then :
3625 printf %s "(cached) " >&6
3626 else $as_nop
3627 if test -n "$ac_ct_CC"; then
3628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 case $as_dir in #(((
3635 '') as_dir=./ ;;
3636 */) ;;
3637 *) as_dir=$as_dir/ ;;
3638 esac
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3641 ac_cv_prog_ac_ct_CC="$ac_prog"
3642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652 if test -n "$ac_ct_CC"; then
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654 printf "%s\n" "$ac_ct_CC" >&6; }
3655 else
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf "%s\n" "no" >&6; }
3658 fi
3659
3660
3661 test -n "$ac_ct_CC" && break
3662 done
3663
3664 if test "x$ac_ct_CC" = x; then
3665 CC=""
3666 else
3667 case $cross_compiling:$ac_tool_warned in
3668 yes:)
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned=yes ;;
3672 esac
3673 CC=$ac_ct_CC
3674 fi
3675 fi
3676
3677 fi
3678 if test -z "$CC"; then
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}clang; ac_word=$2
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 printf %s "checking for $ac_word... " >&6; }
3684 if test ${ac_cv_prog_CC+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else $as_nop
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694 IFS=$as_save_IFS
3695 case $as_dir in #(((
3696 '') as_dir=./ ;;
3697 */) ;;
3698 *) as_dir=$as_dir/ ;;
3699 esac
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_CC="${ac_tool_prefix}clang"
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 printf "%s\n" "$CC" >&6; }
3716 else
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 printf "%s\n" "no" >&6; }
3719 fi
3720
3721
3722 fi
3723 if test -z "$ac_cv_prog_CC"; then
3724 ac_ct_CC=$CC
3725 # Extract the first word of "clang", so it can be a program name with args.
3726 set dummy clang; ac_word=$2
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 printf %s "checking for $ac_word... " >&6; }
3729 if test ${ac_cv_prog_ac_ct_CC+y}
3730 then :
3731 printf %s "(cached) " >&6
3732 else $as_nop
3733 if test -n "$ac_ct_CC"; then
3734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739 IFS=$as_save_IFS
3740 case $as_dir in #(((
3741 '') as_dir=./ ;;
3742 */) ;;
3743 *) as_dir=$as_dir/ ;;
3744 esac
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_ac_ct_CC="clang"
3748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 printf "%s\n" "$ac_ct_CC" >&6; }
3761 else
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3764 fi
3765
3766 if test "x$ac_ct_CC" = x; then
3767 CC=""
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 CC=$ac_ct_CC
3776 fi
3777 else
3778 CC="$ac_cv_prog_CC"
3779 fi
3780
3781 fi
3782
3783
3784 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "no acceptable C compiler found in \$PATH
3787 See \`config.log' for more details" "$LINENO" 5; }
3788
3789 # Provide some information about the compiler.
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3791 set X $ac_compile
3792 ac_compiler=$2
3793 for ac_option in --version -v -V -qversion -version; do
3794 { { ac_try="$ac_compiler $ac_option >&5"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 printf "%s\n" "$ac_try_echo"; } >&5
3801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3802 ac_status=$?
3803 if test -s conftest.err; then
3804 sed '10a\
3805 ... rest of stderr output deleted ...
3806 10q' conftest.err >conftest.er1
3807 cat conftest.er1 >&5
3808 fi
3809 rm -f conftest.er1 conftest.err
3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 done
3813
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 int
3818 main (void)
3819 {
3820
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 ac_clean_files_save=$ac_clean_files
3826 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3827 # Try to create an executable without -o first, disregard a.out.
3828 # It will help us diagnose broken compilers, and finding out an intuition
3829 # of exeext.
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3831 printf %s "checking whether the C compiler works... " >&6; }
3832 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833
3834 # The possible output files:
3835 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836
3837 ac_rmfiles=
3838 for ac_file in $ac_files
3839 do
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 esac
3844 done
3845 rm -f $ac_rmfiles
3846
3847 if { { ac_try="$ac_link_default"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 printf "%s\n" "$ac_try_echo"; } >&5
3854 (eval "$ac_link_default") 2>&5
3855 ac_status=$?
3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3863 # Autoconf.
3864 for ac_file in $ac_files ''
3865 do
3866 test -f "$ac_file" || continue
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869 ;;
3870 [ab].out )
3871 # We found the default executable, but exeext='' is most
3872 # certainly right.
3873 break;;
3874 *.* )
3875 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3876 then :; else
3877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 fi
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3883 # actually working.
3884 break;;
3885 * )
3886 break;;
3887 esac
3888 done
3889 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890
3891 else $as_nop
3892 ac_file=''
3893 fi
3894 if test -z "$ac_file"
3895 then :
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 printf "%s\n" "no" >&6; }
3898 printf "%s\n" "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3903 as_fn_error 77 "C compiler cannot create executables
3904 See \`config.log' for more details" "$LINENO" 5; }
3905 else $as_nop
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3907 printf "%s\n" "yes" >&6; }
3908 fi
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3910 printf %s "checking for C compiler default output file name... " >&6; }
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3912 printf "%s\n" "$ac_file" >&6; }
3913 ac_exeext=$ac_cv_exeext
3914
3915 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3916 ac_clean_files=$ac_clean_files_save
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3918 printf %s "checking for suffix of executables... " >&6; }
3919 if { { ac_try="$ac_link"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 printf "%s\n" "$ac_try_echo"; } >&5
3926 (eval "$ac_link") 2>&5
3927 ac_status=$?
3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }
3930 then :
3931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3933 # work properly (i.e., refer to `conftest.exe'), while it won't with
3934 # `rm'.
3935 for ac_file in conftest.exe conftest conftest.*; do
3936 test -f "$ac_file" || continue
3937 case $ac_file in
3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3940 break;;
3941 * ) break;;
3942 esac
3943 done
3944 else $as_nop
3945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 fi
3950 rm -f conftest conftest$ac_cv_exeext
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3952 printf "%s\n" "$ac_cv_exeext" >&6; }
3953
3954 rm -f conftest.$ac_ext
3955 EXEEXT=$ac_cv_exeext
3956 ac_exeext=$EXEEXT
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959 #include <stdio.h>
3960 int
3961 main (void)
3962 {
3963 FILE *f = fopen ("conftest.out", "w");
3964 return ferror (f) || fclose (f) != 0;
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 ac_clean_files="$ac_clean_files conftest.out"
3971 # Check that the compiler produces executables we can run. If not, either
3972 # the compiler is broken, or we cross compile.
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3974 printf %s "checking whether we are cross compiling... " >&6; }
3975 if test "$cross_compiling" != yes; then
3976 { { ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 printf "%s\n" "$ac_try_echo"; } >&5
3983 (eval "$ac_link") 2>&5
3984 ac_status=$?
3985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }
3987 if { ac_try='./conftest$ac_cv_exeext'
3988 { { case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 printf "%s\n" "$ac_try_echo"; } >&5
3994 (eval "$ac_try") 2>&5
3995 ac_status=$?
3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; }; then
3998 cross_compiling=no
3999 else
4000 if test "$cross_compiling" = maybe; then
4001 cross_compiling=yes
4002 else
4003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error 77 "cannot run C compiled programs.
4006 If you meant to cross compile, use \`--host'.
4007 See \`config.log' for more details" "$LINENO" 5; }
4008 fi
4009 fi
4010 fi
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4012 printf "%s\n" "$cross_compiling" >&6; }
4013
4014 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4015 ac_clean_files=$ac_clean_files_save
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4017 printf %s "checking for suffix of object files... " >&6; }
4018 if test ${ac_cv_objext+y}
4019 then :
4020 printf %s "(cached) " >&6
4021 else $as_nop
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 int
4026 main (void)
4027 {
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.o conftest.obj
4034 if { { ac_try="$ac_compile"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 printf "%s\n" "$ac_try_echo"; } >&5
4041 (eval "$ac_compile") 2>&5
4042 ac_status=$?
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }
4045 then :
4046 for ac_file in conftest.o conftest.obj conftest.*; do
4047 test -f "$ac_file" || continue;
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051 break;;
4052 esac
4053 done
4054 else $as_nop
4055 printf "%s\n" "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error $? "cannot compute suffix of object files: cannot compile
4061 See \`config.log' for more details" "$LINENO" 5; }
4062 fi
4063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 fi
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4066 printf "%s\n" "$ac_cv_objext" >&6; }
4067 OBJEXT=$ac_cv_objext
4068 ac_objext=$OBJEXT
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4070 printf %s "checking whether the compiler supports GNU C... " >&6; }
4071 if test ${ac_cv_c_compiler_gnu+y}
4072 then :
4073 printf %s "(cached) " >&6
4074 else $as_nop
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077
4078 int
4079 main (void)
4080 {
4081 #ifndef __GNUC__
4082 choke me
4083 #endif
4084
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"
4090 then :
4091 ac_compiler_gnu=yes
4092 else $as_nop
4093 ac_compiler_gnu=no
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097
4098 fi
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103 if test $ac_compiler_gnu = yes; then
4104 GCC=yes
4105 else
4106 GCC=
4107 fi
4108 ac_test_CFLAGS=${CFLAGS+y}
4109 ac_save_CFLAGS=$CFLAGS
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4111 printf %s "checking whether $CC accepts -g... " >&6; }
4112 if test ${ac_cv_prog_cc_g+y}
4113 then :
4114 printf %s "(cached) " >&6
4115 else $as_nop
4116 ac_save_c_werror_flag=$ac_c_werror_flag
4117 ac_c_werror_flag=yes
4118 ac_cv_prog_cc_g=no
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main (void)
4125 {
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"
4132 then :
4133 ac_cv_prog_cc_g=yes
4134 else $as_nop
4135 CFLAGS=""
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138
4139 int
4140 main (void)
4141 {
4142
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"
4148 then :
4149
4150 else $as_nop
4151 ac_c_werror_flag=$ac_save_c_werror_flag
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main (void)
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166 ac_cv_prog_cc_g=yes
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4174 fi
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4176 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4177 if test $ac_test_CFLAGS; then
4178 CFLAGS=$ac_save_CFLAGS
4179 elif test $ac_cv_prog_cc_g = yes; then
4180 if test "$GCC" = yes; then
4181 CFLAGS="-g -O2"
4182 else
4183 CFLAGS="-g"
4184 fi
4185 else
4186 if test "$GCC" = yes; then
4187 CFLAGS="-O2"
4188 else
4189 CFLAGS=
4190 fi
4191 fi
4192 ac_prog_cc_stdc=no
4193 if test x$ac_prog_cc_stdc = xno
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4196 printf %s "checking for $CC option to enable C11 features... " >&6; }
4197 if test ${ac_cv_prog_cc_c11+y}
4198 then :
4199 printf %s "(cached) " >&6
4200 else $as_nop
4201 ac_cv_prog_cc_c11=no
4202 ac_save_CC=$CC
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 $ac_c_conftest_c11_program
4206 _ACEOF
4207 for ac_arg in '' -std=gnu11
4208 do
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"
4211 then :
4212 ac_cv_prog_cc_c11=$ac_arg
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.beam
4215 test "x$ac_cv_prog_cc_c11" != "xno" && break
4216 done
4217 rm -f conftest.$ac_ext
4218 CC=$ac_save_CC
4219 fi
4220
4221 if test "x$ac_cv_prog_cc_c11" = xno
4222 then :
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 printf "%s\n" "unsupported" >&6; }
4225 else $as_nop
4226 if test "x$ac_cv_prog_cc_c11" = x
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 printf "%s\n" "none needed" >&6; }
4230 else $as_nop
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4232 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4233 CC="$CC $ac_cv_prog_cc_c11"
4234 fi
4235 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4236 ac_prog_cc_stdc=c11
4237 fi
4238 fi
4239 if test x$ac_prog_cc_stdc = xno
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4242 printf %s "checking for $CC option to enable C99 features... " >&6; }
4243 if test ${ac_cv_prog_cc_c99+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else $as_nop
4247 ac_cv_prog_cc_c99=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 $ac_c_conftest_c99_program
4252 _ACEOF
4253 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4254 do
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cc_c99=$ac_arg
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.beam
4261 test "x$ac_cv_prog_cc_c99" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4265 fi
4266
4267 if test "x$ac_cv_prog_cc_c99" = xno
4268 then :
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 printf "%s\n" "unsupported" >&6; }
4271 else $as_nop
4272 if test "x$ac_cv_prog_cc_c99" = x
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 printf "%s\n" "none needed" >&6; }
4276 else $as_nop
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4278 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4279 CC="$CC $ac_cv_prog_cc_c99"
4280 fi
4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4282 ac_prog_cc_stdc=c99
4283 fi
4284 fi
4285 if test x$ac_prog_cc_stdc = xno
4286 then :
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4288 printf %s "checking for $CC option to enable C89 features... " >&6; }
4289 if test ${ac_cv_prog_cc_c89+y}
4290 then :
4291 printf %s "(cached) " >&6
4292 else $as_nop
4293 ac_cv_prog_cc_c89=no
4294 ac_save_CC=$CC
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 $ac_c_conftest_c89_program
4298 _ACEOF
4299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 do
4301 CC="$ac_save_CC $ac_arg"
4302 if ac_fn_c_try_compile "$LINENO"
4303 then :
4304 ac_cv_prog_cc_c89=$ac_arg
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.beam
4307 test "x$ac_cv_prog_cc_c89" != "xno" && break
4308 done
4309 rm -f conftest.$ac_ext
4310 CC=$ac_save_CC
4311 fi
4312
4313 if test "x$ac_cv_prog_cc_c89" = xno
4314 then :
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316 printf "%s\n" "unsupported" >&6; }
4317 else $as_nop
4318 if test "x$ac_cv_prog_cc_c89" = x
4319 then :
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4321 printf "%s\n" "none needed" >&6; }
4322 else $as_nop
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4324 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 fi
4327 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4328 ac_prog_cc_stdc=c89
4329 fi
4330 fi
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4345 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4346 if test ${am_cv_prog_cc_c_o+y}
4347 then :
4348 printf %s "(cached) " >&6
4349 else $as_nop
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main (void)
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 # Make sure it works both with $CC and with simple cc.
4362 # Following AC_PROG_CC_C_O, we do the test twice because some
4363 # compilers refuse to overwrite an existing .o file with -o,
4364 # though they will create one.
4365 am_cv_prog_cc_c_o=yes
4366 for am_i in 1 2; do
4367 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4368 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } \
4372 && test -f conftest2.$ac_objext; then
4373 : OK
4374 else
4375 am_cv_prog_cc_c_o=no
4376 break
4377 fi
4378 done
4379 rm -f core conftest*
4380 unset am_i
4381 fi
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4383 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4384 if test "$am_cv_prog_cc_c_o" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC="$am_aux_dir/compile $CC"
4391 fi
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4398
4399 depcc="$CC" am_compiler_list=
4400
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4402 printf %s "checking dependency style of $depcc... " >&6; }
4403 if test ${am_cv_CC_dependencies_compiler_type+y}
4404 then :
4405 printf %s "(cached) " >&6
4406 else $as_nop
4407 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4408 # We make a subdir and do the tests there. Otherwise we can end up
4409 # making bogus files that we don't know about and never remove. For
4410 # instance it was reported that on HP-UX the gcc test will end up
4411 # making a dummy file named 'D' -- because '-MD' means "put the output
4412 # in D".
4413 rm -rf conftest.dir
4414 mkdir conftest.dir
4415 # Copy depcomp to subdir because otherwise we won't find it if we're
4416 # using a relative directory.
4417 cp "$am_depcomp" conftest.dir
4418 cd conftest.dir
4419 # We will build objects and dependencies in a subdirectory because
4420 # it helps to detect inapplicable dependency modes. For instance
4421 # both Tru64's cc and ICC support -MD to output dependencies as a
4422 # side effect of compilation, but ICC will put the dependencies in
4423 # the current directory while Tru64 will put them in the object
4424 # directory.
4425 mkdir sub
4426
4427 am_cv_CC_dependencies_compiler_type=none
4428 if test "$am_compiler_list" = ""; then
4429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4430 fi
4431 am__universal=false
4432 case " $depcc " in #(
4433 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4434 esac
4435
4436 for depmode in $am_compiler_list; do
4437 # Setup a source with many dependencies, because some compilers
4438 # like to wrap large dependency lists on column 80 (with \), and
4439 # we should not choose a depcomp mode which is confused by this.
4440 #
4441 # We need to recreate these files for each test, as the compiler may
4442 # overwrite some of them when testing with obscure command lines.
4443 # This happens at least with the AIX C compiler.
4444 : > sub/conftest.c
4445 for i in 1 2 3 4 5 6; do
4446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4447 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4448 # Solaris 10 /bin/sh.
4449 echo '/* dummy */' > sub/conftst$i.h
4450 done
4451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4452
4453 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4454 # mode. It turns out that the SunPro C++ compiler does not properly
4455 # handle '-M -o', and we need to detect this. Also, some Intel
4456 # versions had trouble with output in subdirs.
4457 am__obj=sub/conftest.${OBJEXT-o}
4458 am__minus_obj="-o $am__obj"
4459 case $depmode in
4460 gcc)
4461 # This depmode causes a compiler race in universal mode.
4462 test "$am__universal" = false || continue
4463 ;;
4464 nosideeffect)
4465 # After this tag, mechanisms are not by side-effect, so they'll
4466 # only be used when explicitly requested.
4467 if test "x$enable_dependency_tracking" = xyes; then
4468 continue
4469 else
4470 break
4471 fi
4472 ;;
4473 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4474 # This compiler won't grok '-c -o', but also, the minuso test has
4475 # not run yet. These depmodes are late enough in the game, and
4476 # so weak that their functioning should not be impacted.
4477 am__obj=conftest.${OBJEXT-o}
4478 am__minus_obj=
4479 ;;
4480 none) break ;;
4481 esac
4482 if depmode=$depmode \
4483 source=sub/conftest.c object=$am__obj \
4484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4485 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4486 >/dev/null 2>conftest.err &&
4487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4489 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4491 # icc doesn't choke on unknown options, it will just issue warnings
4492 # or remarks (even with -Werror). So we grep stderr for any message
4493 # that says an option was ignored or not supported.
4494 # When given -MP, icc 7.0 and 7.1 complain thusly:
4495 # icc: Command line warning: ignoring option '-M'; no argument required
4496 # The diagnosis changed in icc 8.0:
4497 # icc: Command line remark: option '-MP' not supported
4498 if (grep 'ignoring option' conftest.err ||
4499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4500 am_cv_CC_dependencies_compiler_type=$depmode
4501 break
4502 fi
4503 fi
4504 done
4505
4506 cd ..
4507 rm -rf conftest.dir
4508 else
4509 am_cv_CC_dependencies_compiler_type=none
4510 fi
4511
4512 fi
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4514 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4515 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4516
4517 if
4518 test "x$enable_dependency_tracking" != xno \
4519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4520 am__fastdepCC_TRUE=
4521 am__fastdepCC_FALSE='#'
4522 else
4523 am__fastdepCC_TRUE='#'
4524 am__fastdepCC_FALSE=
4525 fi
4526
4527
4528
4529
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4531 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4532 if test ${ac_cv_c_undeclared_builtin_options+y}
4533 then :
4534 printf %s "(cached) " >&6
4535 else $as_nop
4536 ac_save_CFLAGS=$CFLAGS
4537 ac_cv_c_undeclared_builtin_options='cannot detect'
4538 for ac_arg in '' -fno-builtin; do
4539 CFLAGS="$ac_save_CFLAGS $ac_arg"
4540 # This test program should *not* compile successfully.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543
4544 int
4545 main (void)
4546 {
4547 (void) strchr;
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 if ac_fn_c_try_compile "$LINENO"
4553 then :
4554
4555 else $as_nop
4556 # This test program should compile successfully.
4557 # No library function is consistently available on
4558 # freestanding implementations, so test against a dummy
4559 # declaration. Include always-available headers on the
4560 # off chance that they somehow elicit warnings.
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 #include <float.h>
4564 #include <limits.h>
4565 #include <stdarg.h>
4566 #include <stddef.h>
4567 extern void ac_decl (int, char *);
4568
4569 int
4570 main (void)
4571 {
4572 (void) ac_decl (0, (char *) 0);
4573 (void) ac_decl;
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_c_try_compile "$LINENO"
4580 then :
4581 if test x"$ac_arg" = x
4582 then :
4583 ac_cv_c_undeclared_builtin_options='none needed'
4584 else $as_nop
4585 ac_cv_c_undeclared_builtin_options=$ac_arg
4586 fi
4587 break
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4592 done
4593 CFLAGS=$ac_save_CFLAGS
4594
4595 fi
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4597 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4598 case $ac_cv_c_undeclared_builtin_options in #(
4599 'cannot detect') :
4600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4601 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4602 as_fn_error $? "cannot make $CC report undeclared builtins
4603 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4604 'none needed') :
4605 ac_c_undeclared_builtin_options='' ;; #(
4606 *) :
4607 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4608 esac
4609
4610 ac_header= ac_cache=
4611 for ac_item in $ac_header_c_list
4612 do
4613 if test $ac_cache; then
4614 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4615 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4616 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4617 fi
4618 ac_header= ac_cache=
4619 elif test $ac_header; then
4620 ac_cache=$ac_item
4621 else
4622 ac_header=$ac_item
4623 fi
4624 done
4625
4626
4627
4628
4629
4630
4631
4632
4633 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4634 then :
4635
4636 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4637
4638 fi
4639
4640
4641
4642
4643 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4644 if test "x$ac_cv_have_decl___clang__" = xyes
4645 then :
4646 CLANGCC="yes"
4647 else $as_nop
4648 CLANGCC="no"
4649 fi
4650 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4651 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4652 then :
4653 INTELCC="yes"
4654 else $as_nop
4655 INTELCC="no"
4656 fi
4657 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4658 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4659 then :
4660 SUNCC="yes"
4661 else $as_nop
4662 SUNCC="no"
4663 fi
4664
4665
4666
4667
4668
4669
4670
4671
4672 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 printf %s "checking for $ac_word... " >&6; }
4678 if test ${ac_cv_path_PKG_CONFIG+y}
4679 then :
4680 printf %s "(cached) " >&6
4681 else $as_nop
4682 case $PKG_CONFIG in
4683 [\\/]* | ?:[\\/]*)
4684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4685 ;;
4686 *)
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 case $as_dir in #(((
4692 '') as_dir=./ ;;
4693 */) ;;
4694 *) as_dir=$as_dir/ ;;
4695 esac
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4698 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 ;;
4707 esac
4708 fi
4709 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4710 if test -n "$PKG_CONFIG"; then
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4712 printf "%s\n" "$PKG_CONFIG" >&6; }
4713 else
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 printf "%s\n" "no" >&6; }
4716 fi
4717
4718
4719 fi
4720 if test -z "$ac_cv_path_PKG_CONFIG"; then
4721 ac_pt_PKG_CONFIG=$PKG_CONFIG
4722 # Extract the first word of "pkg-config", so it can be a program name with args.
4723 set dummy pkg-config; ac_word=$2
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 printf %s "checking for $ac_word... " >&6; }
4726 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4727 then :
4728 printf %s "(cached) " >&6
4729 else $as_nop
4730 case $ac_pt_PKG_CONFIG in
4731 [\\/]* | ?:[\\/]*)
4732 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4733 ;;
4734 *)
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 case $as_dir in #(((
4740 '') as_dir=./ ;;
4741 */) ;;
4742 *) as_dir=$as_dir/ ;;
4743 esac
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4746 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 ;;
4755 esac
4756 fi
4757 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4758 if test -n "$ac_pt_PKG_CONFIG"; then
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4760 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4761 else
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 printf "%s\n" "no" >&6; }
4764 fi
4765
4766 if test "x$ac_pt_PKG_CONFIG" = x; then
4767 PKG_CONFIG=""
4768 else
4769 case $cross_compiling:$ac_tool_warned in
4770 yes:)
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773 ac_tool_warned=yes ;;
4774 esac
4775 PKG_CONFIG=$ac_pt_PKG_CONFIG
4776 fi
4777 else
4778 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4779 fi
4780
4781 fi
4782 if test -n "$PKG_CONFIG"; then
4783 _pkg_min_version=0.9.0
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4785 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4786 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788 printf "%s\n" "yes" >&6; }
4789 else
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 printf "%s\n" "no" >&6; }
4792 PKG_CONFIG=""
4793 fi
4794 fi
4795
4796
4797 # Make sure we can run config.sub.
4798 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4799 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4800
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4802 printf %s "checking build system type... " >&6; }
4803 if test ${ac_cv_build+y}
4804 then :
4805 printf %s "(cached) " >&6
4806 else $as_nop
4807 ac_build_alias=$build_alias
4808 test "x$ac_build_alias" = x &&
4809 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4810 test "x$ac_build_alias" = x &&
4811 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4812 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4813 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4814
4815 fi
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4817 printf "%s\n" "$ac_cv_build" >&6; }
4818 case $ac_cv_build in
4819 *-*-*) ;;
4820 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4821 esac
4822 build=$ac_cv_build
4823 ac_save_IFS=$IFS; IFS='-'
4824 set x $ac_cv_build
4825 shift
4826 build_cpu=$1
4827 build_vendor=$2
4828 shift; shift
4829 # Remember, the first character of IFS is used to create $*,
4830 # except with old shells:
4831 build_os=$*
4832 IFS=$ac_save_IFS
4833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4834
4835
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4837 printf %s "checking host system type... " >&6; }
4838 if test ${ac_cv_host+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else $as_nop
4842 if test "x$host_alias" = x; then
4843 ac_cv_host=$ac_cv_build
4844 else
4845 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4846 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4847 fi
4848
4849 fi
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4851 printf "%s\n" "$ac_cv_host" >&6; }
4852 case $ac_cv_host in
4853 *-*-*) ;;
4854 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4855 esac
4856 host=$ac_cv_host
4857 ac_save_IFS=$IFS; IFS='-'
4858 set x $ac_cv_host
4859 shift
4860 host_cpu=$1
4861 host_vendor=$2
4862 shift; shift
4863 # Remember, the first character of IFS is used to create $*,
4864 # except with old shells:
4865 host_os=$*
4866 IFS=$ac_save_IFS
4867 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4868
4869
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4871 printf %s "checking for a sed that does not truncate output... " >&6; }
4872 if test ${ac_cv_path_SED+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else $as_nop
4876 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4877 for ac_i in 1 2 3 4 5 6 7; do
4878 ac_script="$ac_script$as_nl$ac_script"
4879 done
4880 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4881 { ac_script=; unset ac_script;}
4882 if test -z "$SED"; then
4883 ac_path_SED_found=false
4884 # Loop through the user's path and test for each of PROGNAME-LIST
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888 IFS=$as_save_IFS
4889 case $as_dir in #(((
4890 '') as_dir=./ ;;
4891 */) ;;
4892 *) as_dir=$as_dir/ ;;
4893 esac
4894 for ac_prog in sed gsed
4895 do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4898 as_fn_executable_p "$ac_path_SED" || continue
4899 # Check for GNU ac_path_SED and select it if it is found.
4900 # Check for GNU $ac_path_SED
4901 case `"$ac_path_SED" --version 2>&1` in
4902 *GNU*)
4903 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4904 *)
4905 ac_count=0
4906 printf %s 0123456789 >"conftest.in"
4907 while :
4908 do
4909 cat "conftest.in" "conftest.in" >"conftest.tmp"
4910 mv "conftest.tmp" "conftest.in"
4911 cp "conftest.in" "conftest.nl"
4912 printf "%s\n" '' >> "conftest.nl"
4913 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915 as_fn_arith $ac_count + 1 && ac_count=$as_val
4916 if test $ac_count -gt ${ac_path_SED_max-0}; then
4917 # Best one so far, save it but keep looking for a better one
4918 ac_cv_path_SED="$ac_path_SED"
4919 ac_path_SED_max=$ac_count
4920 fi
4921 # 10*(2^10) chars as input seems more than enough
4922 test $ac_count -gt 10 && break
4923 done
4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925 esac
4926
4927 $ac_path_SED_found && break 3
4928 done
4929 done
4930 done
4931 IFS=$as_save_IFS
4932 if test -z "$ac_cv_path_SED"; then
4933 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4934 fi
4935 else
4936 ac_cv_path_SED=$SED
4937 fi
4938
4939 fi
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4941 printf "%s\n" "$ac_cv_path_SED" >&6; }
4942 SED="$ac_cv_path_SED"
4943 rm -f conftest.sed
4944
4945
4946
4947
4948
4949
4950 # Check whether --enable-selective-werror was given.
4951 if test ${enable_selective_werror+y}
4952 then :
4953 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4954 else $as_nop
4955 SELECTIVE_WERROR=yes
4956 fi
4957
4958
4959
4960
4961
4962 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4963 if test "x$SUNCC" = "xyes"; then
4964 BASE_CFLAGS="-v"
4965 else
4966 BASE_CFLAGS=""
4967 fi
4968
4969 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 xorg_testset_save_CFLAGS="$CFLAGS"
4984
4985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4988 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4989 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4990 then :
4991 printf %s "(cached) " >&6
4992 else $as_nop
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 int i;
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"
4998 then :
4999 xorg_cv_cc_flag_unknown_warning_option=yes
5000 else $as_nop
5001 xorg_cv_cc_flag_unknown_warning_option=no
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5004 fi
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5006 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5008 CFLAGS="$xorg_testset_save_CFLAGS"
5009 fi
5010
5011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014 fi
5015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5017 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5018 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5019 then :
5020 printf %s "(cached) " >&6
5021 else $as_nop
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 int i;
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"
5027 then :
5028 xorg_cv_cc_flag_unused_command_line_argument=yes
5029 else $as_nop
5030 xorg_cv_cc_flag_unused_command_line_argument=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5033 fi
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5035 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5037 CFLAGS="$xorg_testset_save_CFLAGS"
5038 fi
5039
5040 found="no"
5041
5042 if test $found = "no" ; then
5043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045 fi
5046
5047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5049 fi
5050
5051 CFLAGS="$CFLAGS -Wall"
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5054 printf %s "checking if $CC supports -Wall... " >&6; }
5055 cacheid=xorg_cv_cc_flag__Wall
5056 if eval test \${$cacheid+y}
5057 then :
5058 printf %s "(cached) " >&6
5059 else $as_nop
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 int i;
5063 int
5064 main (void)
5065 {
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_link "$LINENO"
5072 then :
5073 eval $cacheid=yes
5074 else $as_nop
5075 eval $cacheid=no
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5078 conftest$ac_exeext conftest.$ac_ext
5079 fi
5080
5081
5082 CFLAGS="$xorg_testset_save_CFLAGS"
5083
5084 eval supported=\$$cacheid
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5086 printf "%s\n" "$supported" >&6; }
5087 if test "$supported" = "yes" ; then
5088 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5089 found="yes"
5090 fi
5091 fi
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 xorg_testset_save_CFLAGS="$CFLAGS"
5108
5109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5112 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5113 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5114 then :
5115 printf %s "(cached) " >&6
5116 else $as_nop
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 int i;
5120 _ACEOF
5121 if ac_fn_c_try_compile "$LINENO"
5122 then :
5123 xorg_cv_cc_flag_unknown_warning_option=yes
5124 else $as_nop
5125 xorg_cv_cc_flag_unknown_warning_option=no
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5128 fi
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5130 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5132 CFLAGS="$xorg_testset_save_CFLAGS"
5133 fi
5134
5135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138 fi
5139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5141 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5142 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5143 then :
5144 printf %s "(cached) " >&6
5145 else $as_nop
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 int i;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"
5151 then :
5152 xorg_cv_cc_flag_unused_command_line_argument=yes
5153 else $as_nop
5154 xorg_cv_cc_flag_unused_command_line_argument=no
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5157 fi
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5159 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5161 CFLAGS="$xorg_testset_save_CFLAGS"
5162 fi
5163
5164 found="no"
5165
5166 if test $found = "no" ; then
5167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169 fi
5170
5171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5173 fi
5174
5175 CFLAGS="$CFLAGS -Wpointer-arith"
5176
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5178 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5179 cacheid=xorg_cv_cc_flag__Wpointer_arith
5180 if eval test \${$cacheid+y}
5181 then :
5182 printf %s "(cached) " >&6
5183 else $as_nop
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 int i;
5187 int
5188 main (void)
5189 {
5190
5191 ;
5192 return 0;
5193 }
5194 _ACEOF
5195 if ac_fn_c_try_link "$LINENO"
5196 then :
5197 eval $cacheid=yes
5198 else $as_nop
5199 eval $cacheid=no
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5202 conftest$ac_exeext conftest.$ac_ext
5203 fi
5204
5205
5206 CFLAGS="$xorg_testset_save_CFLAGS"
5207
5208 eval supported=\$$cacheid
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5210 printf "%s\n" "$supported" >&6; }
5211 if test "$supported" = "yes" ; then
5212 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5213 found="yes"
5214 fi
5215 fi
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231 xorg_testset_save_CFLAGS="$CFLAGS"
5232
5233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5236 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5237 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else $as_nop
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 int i;
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"
5246 then :
5247 xorg_cv_cc_flag_unknown_warning_option=yes
5248 else $as_nop
5249 xorg_cv_cc_flag_unknown_warning_option=no
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5252 fi
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5254 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5256 CFLAGS="$xorg_testset_save_CFLAGS"
5257 fi
5258
5259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262 fi
5263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5265 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5266 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5267 then :
5268 printf %s "(cached) " >&6
5269 else $as_nop
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 int i;
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"
5275 then :
5276 xorg_cv_cc_flag_unused_command_line_argument=yes
5277 else $as_nop
5278 xorg_cv_cc_flag_unused_command_line_argument=no
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5281 fi
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5283 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5285 CFLAGS="$xorg_testset_save_CFLAGS"
5286 fi
5287
5288 found="no"
5289
5290 if test $found = "no" ; then
5291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5293 fi
5294
5295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5297 fi
5298
5299 CFLAGS="$CFLAGS -Wmissing-declarations"
5300
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5302 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5303 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5304 if eval test \${$cacheid+y}
5305 then :
5306 printf %s "(cached) " >&6
5307 else $as_nop
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 int i;
5311 int
5312 main (void)
5313 {
5314
5315 ;
5316 return 0;
5317 }
5318 _ACEOF
5319 if ac_fn_c_try_link "$LINENO"
5320 then :
5321 eval $cacheid=yes
5322 else $as_nop
5323 eval $cacheid=no
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5326 conftest$ac_exeext conftest.$ac_ext
5327 fi
5328
5329
5330 CFLAGS="$xorg_testset_save_CFLAGS"
5331
5332 eval supported=\$$cacheid
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5334 printf "%s\n" "$supported" >&6; }
5335 if test "$supported" = "yes" ; then
5336 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5337 found="yes"
5338 fi
5339 fi
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355 xorg_testset_save_CFLAGS="$CFLAGS"
5356
5357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5360 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5361 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5362 then :
5363 printf %s "(cached) " >&6
5364 else $as_nop
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 int i;
5368 _ACEOF
5369 if ac_fn_c_try_compile "$LINENO"
5370 then :
5371 xorg_cv_cc_flag_unknown_warning_option=yes
5372 else $as_nop
5373 xorg_cv_cc_flag_unknown_warning_option=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5376 fi
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5378 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5380 CFLAGS="$xorg_testset_save_CFLAGS"
5381 fi
5382
5383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386 fi
5387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5389 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5390 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else $as_nop
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 int i;
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"
5399 then :
5400 xorg_cv_cc_flag_unused_command_line_argument=yes
5401 else $as_nop
5402 xorg_cv_cc_flag_unused_command_line_argument=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5405 fi
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5407 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5410 fi
5411
5412 found="no"
5413
5414 if test $found = "no" ; then
5415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417 fi
5418
5419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5421 fi
5422
5423 CFLAGS="$CFLAGS -Wformat=2"
5424
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5426 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5427 cacheid=xorg_cv_cc_flag__Wformat_2
5428 if eval test \${$cacheid+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else $as_nop
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 int i;
5435 int
5436 main (void)
5437 {
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_link "$LINENO"
5444 then :
5445 eval $cacheid=yes
5446 else $as_nop
5447 eval $cacheid=no
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5450 conftest$ac_exeext conftest.$ac_ext
5451 fi
5452
5453
5454 CFLAGS="$xorg_testset_save_CFLAGS"
5455
5456 eval supported=\$$cacheid
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5458 printf "%s\n" "$supported" >&6; }
5459 if test "$supported" = "yes" ; then
5460 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5461 found="yes"
5462 fi
5463 fi
5464
5465 if test $found = "no" ; then
5466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5468 fi
5469
5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5472 fi
5473
5474 CFLAGS="$CFLAGS -Wformat"
5475
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5477 printf %s "checking if $CC supports -Wformat... " >&6; }
5478 cacheid=xorg_cv_cc_flag__Wformat
5479 if eval test \${$cacheid+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else $as_nop
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 int i;
5486 int
5487 main (void)
5488 {
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_link "$LINENO"
5495 then :
5496 eval $cacheid=yes
5497 else $as_nop
5498 eval $cacheid=no
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5501 conftest$ac_exeext conftest.$ac_ext
5502 fi
5503
5504
5505 CFLAGS="$xorg_testset_save_CFLAGS"
5506
5507 eval supported=\$$cacheid
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5509 printf "%s\n" "$supported" >&6; }
5510 if test "$supported" = "yes" ; then
5511 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5512 found="yes"
5513 fi
5514 fi
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 xorg_testset_save_CFLAGS="$CFLAGS"
5533
5534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5539 then :
5540 printf %s "(cached) " >&6
5541 else $as_nop
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 int i;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"
5547 then :
5548 xorg_cv_cc_flag_unknown_warning_option=yes
5549 else $as_nop
5550 xorg_cv_cc_flag_unknown_warning_option=no
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5553 fi
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5557 CFLAGS="$xorg_testset_save_CFLAGS"
5558 fi
5559
5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 fi
5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5568 then :
5569 printf %s "(cached) " >&6
5570 else $as_nop
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 int i;
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"
5576 then :
5577 xorg_cv_cc_flag_unused_command_line_argument=yes
5578 else $as_nop
5579 xorg_cv_cc_flag_unused_command_line_argument=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5582 fi
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5586 CFLAGS="$xorg_testset_save_CFLAGS"
5587 fi
5588
5589 found="no"
5590
5591 if test $found = "no" ; then
5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5594 fi
5595
5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5598 fi
5599
5600 CFLAGS="$CFLAGS -Wstrict-prototypes"
5601
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5603 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5604 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5605 if eval test \${$cacheid+y}
5606 then :
5607 printf %s "(cached) " >&6
5608 else $as_nop
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 int i;
5612 int
5613 main (void)
5614 {
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_link "$LINENO"
5621 then :
5622 eval $cacheid=yes
5623 else $as_nop
5624 eval $cacheid=no
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5627 conftest$ac_exeext conftest.$ac_ext
5628 fi
5629
5630
5631 CFLAGS="$xorg_testset_save_CFLAGS"
5632
5633 eval supported=\$$cacheid
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5635 printf "%s\n" "$supported" >&6; }
5636 if test "$supported" = "yes" ; then
5637 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5638 found="yes"
5639 fi
5640 fi
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 xorg_testset_save_CFLAGS="$CFLAGS"
5657
5658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5663 then :
5664 printf %s "(cached) " >&6
5665 else $as_nop
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 int i;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"
5671 then :
5672 xorg_cv_cc_flag_unknown_warning_option=yes
5673 else $as_nop
5674 xorg_cv_cc_flag_unknown_warning_option=no
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5677 fi
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5679 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5681 CFLAGS="$xorg_testset_save_CFLAGS"
5682 fi
5683
5684 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687 fi
5688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5690 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5691 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5692 then :
5693 printf %s "(cached) " >&6
5694 else $as_nop
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 int i;
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"
5700 then :
5701 xorg_cv_cc_flag_unused_command_line_argument=yes
5702 else $as_nop
5703 xorg_cv_cc_flag_unused_command_line_argument=no
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5706 fi
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5710 CFLAGS="$xorg_testset_save_CFLAGS"
5711 fi
5712
5713 found="no"
5714
5715 if test $found = "no" ; then
5716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5718 fi
5719
5720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5722 fi
5723
5724 CFLAGS="$CFLAGS -Wmissing-prototypes"
5725
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5727 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5728 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5729 if eval test \${$cacheid+y}
5730 then :
5731 printf %s "(cached) " >&6
5732 else $as_nop
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 int i;
5736 int
5737 main (void)
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_link "$LINENO"
5745 then :
5746 eval $cacheid=yes
5747 else $as_nop
5748 eval $cacheid=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5751 conftest$ac_exeext conftest.$ac_ext
5752 fi
5753
5754
5755 CFLAGS="$xorg_testset_save_CFLAGS"
5756
5757 eval supported=\$$cacheid
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5759 printf "%s\n" "$supported" >&6; }
5760 if test "$supported" = "yes" ; then
5761 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5762 found="yes"
5763 fi
5764 fi
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780 xorg_testset_save_CFLAGS="$CFLAGS"
5781
5782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5785 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5786 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5787 then :
5788 printf %s "(cached) " >&6
5789 else $as_nop
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 int i;
5793 _ACEOF
5794 if ac_fn_c_try_compile "$LINENO"
5795 then :
5796 xorg_cv_cc_flag_unknown_warning_option=yes
5797 else $as_nop
5798 xorg_cv_cc_flag_unknown_warning_option=no
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5801 fi
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5803 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5805 CFLAGS="$xorg_testset_save_CFLAGS"
5806 fi
5807
5808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811 fi
5812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5814 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5815 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5816 then :
5817 printf %s "(cached) " >&6
5818 else $as_nop
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 int i;
5822 _ACEOF
5823 if ac_fn_c_try_compile "$LINENO"
5824 then :
5825 xorg_cv_cc_flag_unused_command_line_argument=yes
5826 else $as_nop
5827 xorg_cv_cc_flag_unused_command_line_argument=no
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5830 fi
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5832 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5834 CFLAGS="$xorg_testset_save_CFLAGS"
5835 fi
5836
5837 found="no"
5838
5839 if test $found = "no" ; then
5840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5842 fi
5843
5844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5846 fi
5847
5848 CFLAGS="$CFLAGS -Wnested-externs"
5849
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5851 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5852 cacheid=xorg_cv_cc_flag__Wnested_externs
5853 if eval test \${$cacheid+y}
5854 then :
5855 printf %s "(cached) " >&6
5856 else $as_nop
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 int i;
5860 int
5861 main (void)
5862 {
5863
5864 ;
5865 return 0;
5866 }
5867 _ACEOF
5868 if ac_fn_c_try_link "$LINENO"
5869 then :
5870 eval $cacheid=yes
5871 else $as_nop
5872 eval $cacheid=no
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5875 conftest$ac_exeext conftest.$ac_ext
5876 fi
5877
5878
5879 CFLAGS="$xorg_testset_save_CFLAGS"
5880
5881 eval supported=\$$cacheid
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5883 printf "%s\n" "$supported" >&6; }
5884 if test "$supported" = "yes" ; then
5885 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5886 found="yes"
5887 fi
5888 fi
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904 xorg_testset_save_CFLAGS="$CFLAGS"
5905
5906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5909 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5910 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else $as_nop
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 int i;
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"
5919 then :
5920 xorg_cv_cc_flag_unknown_warning_option=yes
5921 else $as_nop
5922 xorg_cv_cc_flag_unknown_warning_option=no
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5925 fi
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5927 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5929 CFLAGS="$xorg_testset_save_CFLAGS"
5930 fi
5931
5932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935 fi
5936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5938 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5939 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5940 then :
5941 printf %s "(cached) " >&6
5942 else $as_nop
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 int i;
5946 _ACEOF
5947 if ac_fn_c_try_compile "$LINENO"
5948 then :
5949 xorg_cv_cc_flag_unused_command_line_argument=yes
5950 else $as_nop
5951 xorg_cv_cc_flag_unused_command_line_argument=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5954 fi
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5956 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5958 CFLAGS="$xorg_testset_save_CFLAGS"
5959 fi
5960
5961 found="no"
5962
5963 if test $found = "no" ; then
5964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966 fi
5967
5968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5970 fi
5971
5972 CFLAGS="$CFLAGS -Wbad-function-cast"
5973
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5975 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5976 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5977 if eval test \${$cacheid+y}
5978 then :
5979 printf %s "(cached) " >&6
5980 else $as_nop
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 int i;
5984 int
5985 main (void)
5986 {
5987
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 if ac_fn_c_try_link "$LINENO"
5993 then :
5994 eval $cacheid=yes
5995 else $as_nop
5996 eval $cacheid=no
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5999 conftest$ac_exeext conftest.$ac_ext
6000 fi
6001
6002
6003 CFLAGS="$xorg_testset_save_CFLAGS"
6004
6005 eval supported=\$$cacheid
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6007 printf "%s\n" "$supported" >&6; }
6008 if test "$supported" = "yes" ; then
6009 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6010 found="yes"
6011 fi
6012 fi
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028 xorg_testset_save_CFLAGS="$CFLAGS"
6029
6030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6033 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6034 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6035 then :
6036 printf %s "(cached) " >&6
6037 else $as_nop
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 int i;
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"
6043 then :
6044 xorg_cv_cc_flag_unknown_warning_option=yes
6045 else $as_nop
6046 xorg_cv_cc_flag_unknown_warning_option=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6049 fi
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6051 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6053 CFLAGS="$xorg_testset_save_CFLAGS"
6054 fi
6055
6056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059 fi
6060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6063 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6064 then :
6065 printf %s "(cached) " >&6
6066 else $as_nop
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 int i;
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"
6072 then :
6073 xorg_cv_cc_flag_unused_command_line_argument=yes
6074 else $as_nop
6075 xorg_cv_cc_flag_unused_command_line_argument=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6078 fi
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6082 CFLAGS="$xorg_testset_save_CFLAGS"
6083 fi
6084
6085 found="no"
6086
6087 if test $found = "no" ; then
6088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6090 fi
6091
6092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6094 fi
6095
6096 CFLAGS="$CFLAGS -Wold-style-definition"
6097
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6099 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6100 cacheid=xorg_cv_cc_flag__Wold_style_definition
6101 if eval test \${$cacheid+y}
6102 then :
6103 printf %s "(cached) " >&6
6104 else $as_nop
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 int i;
6108 int
6109 main (void)
6110 {
6111
6112 ;
6113 return 0;
6114 }
6115 _ACEOF
6116 if ac_fn_c_try_link "$LINENO"
6117 then :
6118 eval $cacheid=yes
6119 else $as_nop
6120 eval $cacheid=no
6121 fi
6122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6123 conftest$ac_exeext conftest.$ac_ext
6124 fi
6125
6126
6127 CFLAGS="$xorg_testset_save_CFLAGS"
6128
6129 eval supported=\$$cacheid
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6131 printf "%s\n" "$supported" >&6; }
6132 if test "$supported" = "yes" ; then
6133 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6134 found="yes"
6135 fi
6136 fi
6137
6138 if test $found = "no" ; then
6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141 fi
6142
6143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6145 fi
6146
6147 CFLAGS="$CFLAGS -fd"
6148
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6150 printf %s "checking if $CC supports -fd... " >&6; }
6151 cacheid=xorg_cv_cc_flag__fd
6152 if eval test \${$cacheid+y}
6153 then :
6154 printf %s "(cached) " >&6
6155 else $as_nop
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 int i;
6159 int
6160 main (void)
6161 {
6162
6163 ;
6164 return 0;
6165 }
6166 _ACEOF
6167 if ac_fn_c_try_link "$LINENO"
6168 then :
6169 eval $cacheid=yes
6170 else $as_nop
6171 eval $cacheid=no
6172 fi
6173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6174 conftest$ac_exeext conftest.$ac_ext
6175 fi
6176
6177
6178 CFLAGS="$xorg_testset_save_CFLAGS"
6179
6180 eval supported=\$$cacheid
6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6182 printf "%s\n" "$supported" >&6; }
6183 if test "$supported" = "yes" ; then
6184 BASE_CFLAGS="$BASE_CFLAGS -fd"
6185 found="yes"
6186 fi
6187 fi
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 xorg_testset_save_CFLAGS="$CFLAGS"
6204
6205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6209 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6210 then :
6211 printf %s "(cached) " >&6
6212 else $as_nop
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 int i;
6216 _ACEOF
6217 if ac_fn_c_try_compile "$LINENO"
6218 then :
6219 xorg_cv_cc_flag_unknown_warning_option=yes
6220 else $as_nop
6221 xorg_cv_cc_flag_unknown_warning_option=no
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6224 fi
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6226 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6228 CFLAGS="$xorg_testset_save_CFLAGS"
6229 fi
6230
6231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234 fi
6235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6237 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6238 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else $as_nop
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 int i;
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"
6247 then :
6248 xorg_cv_cc_flag_unused_command_line_argument=yes
6249 else $as_nop
6250 xorg_cv_cc_flag_unused_command_line_argument=no
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6253 fi
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6257 CFLAGS="$xorg_testset_save_CFLAGS"
6258 fi
6259
6260 found="no"
6261
6262 if test $found = "no" ; then
6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6265 fi
6266
6267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6269 fi
6270
6271 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6272
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6274 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6275 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6276 if eval test \${$cacheid+y}
6277 then :
6278 printf %s "(cached) " >&6
6279 else $as_nop
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 int i;
6283 int
6284 main (void)
6285 {
6286
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_link "$LINENO"
6292 then :
6293 eval $cacheid=yes
6294 else $as_nop
6295 eval $cacheid=no
6296 fi
6297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6298 conftest$ac_exeext conftest.$ac_ext
6299 fi
6300
6301
6302 CFLAGS="$xorg_testset_save_CFLAGS"
6303
6304 eval supported=\$$cacheid
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6306 printf "%s\n" "$supported" >&6; }
6307 if test "$supported" = "yes" ; then
6308 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6309 found="yes"
6310 fi
6311 fi
6312
6313
6314
6315
6316
6317 # This chunk adds additional warnings that could catch undesired effects.
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 xorg_testset_save_CFLAGS="$CFLAGS"
6332
6333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6337 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6338 then :
6339 printf %s "(cached) " >&6
6340 else $as_nop
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6343 int i;
6344 _ACEOF
6345 if ac_fn_c_try_compile "$LINENO"
6346 then :
6347 xorg_cv_cc_flag_unknown_warning_option=yes
6348 else $as_nop
6349 xorg_cv_cc_flag_unknown_warning_option=no
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6352 fi
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6356 CFLAGS="$xorg_testset_save_CFLAGS"
6357 fi
6358
6359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6362 fi
6363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6367 then :
6368 printf %s "(cached) " >&6
6369 else $as_nop
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 int i;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"
6375 then :
6376 xorg_cv_cc_flag_unused_command_line_argument=yes
6377 else $as_nop
6378 xorg_cv_cc_flag_unused_command_line_argument=no
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6381 fi
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6385 CFLAGS="$xorg_testset_save_CFLAGS"
6386 fi
6387
6388 found="no"
6389
6390 if test $found = "no" ; then
6391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6393 fi
6394
6395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6397 fi
6398
6399 CFLAGS="$CFLAGS -Wunused"
6400
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6402 printf %s "checking if $CC supports -Wunused... " >&6; }
6403 cacheid=xorg_cv_cc_flag__Wunused
6404 if eval test \${$cacheid+y}
6405 then :
6406 printf %s "(cached) " >&6
6407 else $as_nop
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 int i;
6411 int
6412 main (void)
6413 {
6414
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_link "$LINENO"
6420 then :
6421 eval $cacheid=yes
6422 else $as_nop
6423 eval $cacheid=no
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6426 conftest$ac_exeext conftest.$ac_ext
6427 fi
6428
6429
6430 CFLAGS="$xorg_testset_save_CFLAGS"
6431
6432 eval supported=\$$cacheid
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6434 printf "%s\n" "$supported" >&6; }
6435 if test "$supported" = "yes" ; then
6436 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6437 found="yes"
6438 fi
6439 fi
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 xorg_testset_save_CFLAGS="$CFLAGS"
6456
6457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6460 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6461 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6462 then :
6463 printf %s "(cached) " >&6
6464 else $as_nop
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 int i;
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"
6470 then :
6471 xorg_cv_cc_flag_unknown_warning_option=yes
6472 else $as_nop
6473 xorg_cv_cc_flag_unknown_warning_option=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6476 fi
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6478 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6480 CFLAGS="$xorg_testset_save_CFLAGS"
6481 fi
6482
6483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6486 fi
6487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6491 then :
6492 printf %s "(cached) " >&6
6493 else $as_nop
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 int i;
6497 _ACEOF
6498 if ac_fn_c_try_compile "$LINENO"
6499 then :
6500 xorg_cv_cc_flag_unused_command_line_argument=yes
6501 else $as_nop
6502 xorg_cv_cc_flag_unused_command_line_argument=no
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6505 fi
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6507 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6509 CFLAGS="$xorg_testset_save_CFLAGS"
6510 fi
6511
6512 found="no"
6513
6514 if test $found = "no" ; then
6515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517 fi
6518
6519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6521 fi
6522
6523 CFLAGS="$CFLAGS -Wuninitialized"
6524
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6526 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6527 cacheid=xorg_cv_cc_flag__Wuninitialized
6528 if eval test \${$cacheid+y}
6529 then :
6530 printf %s "(cached) " >&6
6531 else $as_nop
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 int i;
6535 int
6536 main (void)
6537 {
6538
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 if ac_fn_c_try_link "$LINENO"
6544 then :
6545 eval $cacheid=yes
6546 else $as_nop
6547 eval $cacheid=no
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6550 conftest$ac_exeext conftest.$ac_ext
6551 fi
6552
6553
6554 CFLAGS="$xorg_testset_save_CFLAGS"
6555
6556 eval supported=\$$cacheid
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6558 printf "%s\n" "$supported" >&6; }
6559 if test "$supported" = "yes" ; then
6560 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6561 found="yes"
6562 fi
6563 fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579 xorg_testset_save_CFLAGS="$CFLAGS"
6580
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6585 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6586 then :
6587 printf %s "(cached) " >&6
6588 else $as_nop
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 int i;
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"
6594 then :
6595 xorg_cv_cc_flag_unknown_warning_option=yes
6596 else $as_nop
6597 xorg_cv_cc_flag_unknown_warning_option=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6600 fi
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6604 CFLAGS="$xorg_testset_save_CFLAGS"
6605 fi
6606
6607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 fi
6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6615 then :
6616 printf %s "(cached) " >&6
6617 else $as_nop
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 int i;
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"
6623 then :
6624 xorg_cv_cc_flag_unused_command_line_argument=yes
6625 else $as_nop
6626 xorg_cv_cc_flag_unused_command_line_argument=no
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6629 fi
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6631 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6633 CFLAGS="$xorg_testset_save_CFLAGS"
6634 fi
6635
6636 found="no"
6637
6638 if test $found = "no" ; then
6639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641 fi
6642
6643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6645 fi
6646
6647 CFLAGS="$CFLAGS -Wshadow"
6648
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6650 printf %s "checking if $CC supports -Wshadow... " >&6; }
6651 cacheid=xorg_cv_cc_flag__Wshadow
6652 if eval test \${$cacheid+y}
6653 then :
6654 printf %s "(cached) " >&6
6655 else $as_nop
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 int i;
6659 int
6660 main (void)
6661 {
6662
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"
6668 then :
6669 eval $cacheid=yes
6670 else $as_nop
6671 eval $cacheid=no
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6674 conftest$ac_exeext conftest.$ac_ext
6675 fi
6676
6677
6678 CFLAGS="$xorg_testset_save_CFLAGS"
6679
6680 eval supported=\$$cacheid
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6682 printf "%s\n" "$supported" >&6; }
6683 if test "$supported" = "yes" ; then
6684 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6685 found="yes"
6686 fi
6687 fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 xorg_testset_save_CFLAGS="$CFLAGS"
6704
6705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6709 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6710 then :
6711 printf %s "(cached) " >&6
6712 else $as_nop
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 int i;
6716 _ACEOF
6717 if ac_fn_c_try_compile "$LINENO"
6718 then :
6719 xorg_cv_cc_flag_unknown_warning_option=yes
6720 else $as_nop
6721 xorg_cv_cc_flag_unknown_warning_option=no
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6724 fi
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6726 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6728 CFLAGS="$xorg_testset_save_CFLAGS"
6729 fi
6730
6731 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6734 fi
6735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6737 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6738 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6739 then :
6740 printf %s "(cached) " >&6
6741 else $as_nop
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 int i;
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"
6747 then :
6748 xorg_cv_cc_flag_unused_command_line_argument=yes
6749 else $as_nop
6750 xorg_cv_cc_flag_unused_command_line_argument=no
6751 fi
6752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6753 fi
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6755 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6757 CFLAGS="$xorg_testset_save_CFLAGS"
6758 fi
6759
6760 found="no"
6761
6762 if test $found = "no" ; then
6763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6765 fi
6766
6767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769 fi
6770
6771 CFLAGS="$CFLAGS -Wmissing-noreturn"
6772
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6774 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6775 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6776 if eval test \${$cacheid+y}
6777 then :
6778 printf %s "(cached) " >&6
6779 else $as_nop
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 int i;
6783 int
6784 main (void)
6785 {
6786
6787 ;
6788 return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"
6792 then :
6793 eval $cacheid=yes
6794 else $as_nop
6795 eval $cacheid=no
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6798 conftest$ac_exeext conftest.$ac_ext
6799 fi
6800
6801
6802 CFLAGS="$xorg_testset_save_CFLAGS"
6803
6804 eval supported=\$$cacheid
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6806 printf "%s\n" "$supported" >&6; }
6807 if test "$supported" = "yes" ; then
6808 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6809 found="yes"
6810 fi
6811 fi
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827 xorg_testset_save_CFLAGS="$CFLAGS"
6828
6829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6833 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6834 then :
6835 printf %s "(cached) " >&6
6836 else $as_nop
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int i;
6840 _ACEOF
6841 if ac_fn_c_try_compile "$LINENO"
6842 then :
6843 xorg_cv_cc_flag_unknown_warning_option=yes
6844 else $as_nop
6845 xorg_cv_cc_flag_unknown_warning_option=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6848 fi
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6852 CFLAGS="$xorg_testset_save_CFLAGS"
6853 fi
6854
6855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 fi
6859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6863 then :
6864 printf %s "(cached) " >&6
6865 else $as_nop
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 int i;
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"
6871 then :
6872 xorg_cv_cc_flag_unused_command_line_argument=yes
6873 else $as_nop
6874 xorg_cv_cc_flag_unused_command_line_argument=no
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6877 fi
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6881 CFLAGS="$xorg_testset_save_CFLAGS"
6882 fi
6883
6884 found="no"
6885
6886 if test $found = "no" ; then
6887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6889 fi
6890
6891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6893 fi
6894
6895 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6896
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6898 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6899 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6900 if eval test \${$cacheid+y}
6901 then :
6902 printf %s "(cached) " >&6
6903 else $as_nop
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 int i;
6907 int
6908 main (void)
6909 {
6910
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"
6916 then :
6917 eval $cacheid=yes
6918 else $as_nop
6919 eval $cacheid=no
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6922 conftest$ac_exeext conftest.$ac_ext
6923 fi
6924
6925
6926 CFLAGS="$xorg_testset_save_CFLAGS"
6927
6928 eval supported=\$$cacheid
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6930 printf "%s\n" "$supported" >&6; }
6931 if test "$supported" = "yes" ; then
6932 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6933 found="yes"
6934 fi
6935 fi
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 xorg_testset_save_CFLAGS="$CFLAGS"
6952
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6957 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6958 then :
6959 printf %s "(cached) " >&6
6960 else $as_nop
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 int i;
6964 _ACEOF
6965 if ac_fn_c_try_compile "$LINENO"
6966 then :
6967 xorg_cv_cc_flag_unknown_warning_option=yes
6968 else $as_nop
6969 xorg_cv_cc_flag_unknown_warning_option=no
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6972 fi
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6976 CFLAGS="$xorg_testset_save_CFLAGS"
6977 fi
6978
6979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982 fi
6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6987 then :
6988 printf %s "(cached) " >&6
6989 else $as_nop
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 int i;
6993 _ACEOF
6994 if ac_fn_c_try_compile "$LINENO"
6995 then :
6996 xorg_cv_cc_flag_unused_command_line_argument=yes
6997 else $as_nop
6998 xorg_cv_cc_flag_unused_command_line_argument=no
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7001 fi
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7005 CFLAGS="$xorg_testset_save_CFLAGS"
7006 fi
7007
7008 found="no"
7009
7010 if test $found = "no" ; then
7011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013 fi
7014
7015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7017 fi
7018
7019 CFLAGS="$CFLAGS -Wredundant-decls"
7020
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7022 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7023 cacheid=xorg_cv_cc_flag__Wredundant_decls
7024 if eval test \${$cacheid+y}
7025 then :
7026 printf %s "(cached) " >&6
7027 else $as_nop
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030 int i;
7031 int
7032 main (void)
7033 {
7034
7035 ;
7036 return 0;
7037 }
7038 _ACEOF
7039 if ac_fn_c_try_link "$LINENO"
7040 then :
7041 eval $cacheid=yes
7042 else $as_nop
7043 eval $cacheid=no
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7046 conftest$ac_exeext conftest.$ac_ext
7047 fi
7048
7049
7050 CFLAGS="$xorg_testset_save_CFLAGS"
7051
7052 eval supported=\$$cacheid
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7054 printf "%s\n" "$supported" >&6; }
7055 if test "$supported" = "yes" ; then
7056 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7057 found="yes"
7058 fi
7059 fi
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 xorg_testset_save_CFLAGS="$CFLAGS"
7076
7077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7081 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7082 then :
7083 printf %s "(cached) " >&6
7084 else $as_nop
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 int i;
7088 _ACEOF
7089 if ac_fn_c_try_compile "$LINENO"
7090 then :
7091 xorg_cv_cc_flag_unknown_warning_option=yes
7092 else $as_nop
7093 xorg_cv_cc_flag_unknown_warning_option=no
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7096 fi
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7100 CFLAGS="$xorg_testset_save_CFLAGS"
7101 fi
7102
7103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 fi
7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7111 then :
7112 printf %s "(cached) " >&6
7113 else $as_nop
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 int i;
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"
7119 then :
7120 xorg_cv_cc_flag_unused_command_line_argument=yes
7121 else $as_nop
7122 xorg_cv_cc_flag_unused_command_line_argument=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7125 fi
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130 fi
7131
7132 found="no"
7133
7134 if test $found = "no" ; then
7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7137 fi
7138
7139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7141 fi
7142
7143 CFLAGS="$CFLAGS -Wlogical-op"
7144
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7146 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7147 cacheid=xorg_cv_cc_flag__Wlogical_op
7148 if eval test \${$cacheid+y}
7149 then :
7150 printf %s "(cached) " >&6
7151 else $as_nop
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 int i;
7155 int
7156 main (void)
7157 {
7158
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 if ac_fn_c_try_link "$LINENO"
7164 then :
7165 eval $cacheid=yes
7166 else $as_nop
7167 eval $cacheid=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7170 conftest$ac_exeext conftest.$ac_ext
7171 fi
7172
7173
7174 CFLAGS="$xorg_testset_save_CFLAGS"
7175
7176 eval supported=\$$cacheid
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7178 printf "%s\n" "$supported" >&6; }
7179 if test "$supported" = "yes" ; then
7180 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7181 found="yes"
7182 fi
7183 fi
7184
7185
7186
7187 # These are currently disabled because they are noisy. They will be enabled
7188 # in the future once the codebase is sufficiently modernized to silence
7189 # them. For now, I don't want them to drown out the other warnings.
7190 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7191 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7192 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7193
7194 # Turn some warnings into errors, so we don't accidently get successful builds
7195 # when there are problems that should be fixed.
7196
7197 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211 xorg_testset_save_CFLAGS="$CFLAGS"
7212
7213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7217 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7218 then :
7219 printf %s "(cached) " >&6
7220 else $as_nop
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 int i;
7224 _ACEOF
7225 if ac_fn_c_try_compile "$LINENO"
7226 then :
7227 xorg_cv_cc_flag_unknown_warning_option=yes
7228 else $as_nop
7229 xorg_cv_cc_flag_unknown_warning_option=no
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7232 fi
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7236 CFLAGS="$xorg_testset_save_CFLAGS"
7237 fi
7238
7239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242 fi
7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7247 then :
7248 printf %s "(cached) " >&6
7249 else $as_nop
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 int i;
7253 _ACEOF
7254 if ac_fn_c_try_compile "$LINENO"
7255 then :
7256 xorg_cv_cc_flag_unused_command_line_argument=yes
7257 else $as_nop
7258 xorg_cv_cc_flag_unused_command_line_argument=no
7259 fi
7260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7261 fi
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7265 CFLAGS="$xorg_testset_save_CFLAGS"
7266 fi
7267
7268 found="no"
7269
7270 if test $found = "no" ; then
7271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273 fi
7274
7275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7277 fi
7278
7279 CFLAGS="$CFLAGS -Werror=implicit"
7280
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7282 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7283 cacheid=xorg_cv_cc_flag__Werror_implicit
7284 if eval test \${$cacheid+y}
7285 then :
7286 printf %s "(cached) " >&6
7287 else $as_nop
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 int i;
7291 int
7292 main (void)
7293 {
7294
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_link "$LINENO"
7300 then :
7301 eval $cacheid=yes
7302 else $as_nop
7303 eval $cacheid=no
7304 fi
7305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7306 conftest$ac_exeext conftest.$ac_ext
7307 fi
7308
7309
7310 CFLAGS="$xorg_testset_save_CFLAGS"
7311
7312 eval supported=\$$cacheid
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314 printf "%s\n" "$supported" >&6; }
7315 if test "$supported" = "yes" ; then
7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7317 found="yes"
7318 fi
7319 fi
7320
7321 if test $found = "no" ; then
7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324 fi
7325
7326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7328 fi
7329
7330 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7331
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7333 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7334 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7335 if eval test \${$cacheid+y}
7336 then :
7337 printf %s "(cached) " >&6
7338 else $as_nop
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 int i;
7342 int
7343 main (void)
7344 {
7345
7346 ;
7347 return 0;
7348 }
7349 _ACEOF
7350 if ac_fn_c_try_link "$LINENO"
7351 then :
7352 eval $cacheid=yes
7353 else $as_nop
7354 eval $cacheid=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7357 conftest$ac_exeext conftest.$ac_ext
7358 fi
7359
7360
7361 CFLAGS="$xorg_testset_save_CFLAGS"
7362
7363 eval supported=\$$cacheid
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7365 printf "%s\n" "$supported" >&6; }
7366 if test "$supported" = "yes" ; then
7367 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7368 found="yes"
7369 fi
7370 fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386 xorg_testset_save_CFLAGS="$CFLAGS"
7387
7388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7392 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7393 then :
7394 printf %s "(cached) " >&6
7395 else $as_nop
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 int i;
7399 _ACEOF
7400 if ac_fn_c_try_compile "$LINENO"
7401 then :
7402 xorg_cv_cc_flag_unknown_warning_option=yes
7403 else $as_nop
7404 xorg_cv_cc_flag_unknown_warning_option=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7407 fi
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7409 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7411 CFLAGS="$xorg_testset_save_CFLAGS"
7412 fi
7413
7414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417 fi
7418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7422 then :
7423 printf %s "(cached) " >&6
7424 else $as_nop
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 int i;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"
7430 then :
7431 xorg_cv_cc_flag_unused_command_line_argument=yes
7432 else $as_nop
7433 xorg_cv_cc_flag_unused_command_line_argument=no
7434 fi
7435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7436 fi
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7438 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7440 CFLAGS="$xorg_testset_save_CFLAGS"
7441 fi
7442
7443 found="no"
7444
7445 if test $found = "no" ; then
7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448 fi
7449
7450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7452 fi
7453
7454 CFLAGS="$CFLAGS -Werror=nonnull"
7455
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7457 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7458 cacheid=xorg_cv_cc_flag__Werror_nonnull
7459 if eval test \${$cacheid+y}
7460 then :
7461 printf %s "(cached) " >&6
7462 else $as_nop
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 int i;
7466 int
7467 main (void)
7468 {
7469
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_link "$LINENO"
7475 then :
7476 eval $cacheid=yes
7477 else $as_nop
7478 eval $cacheid=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7481 conftest$ac_exeext conftest.$ac_ext
7482 fi
7483
7484
7485 CFLAGS="$xorg_testset_save_CFLAGS"
7486
7487 eval supported=\$$cacheid
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7489 printf "%s\n" "$supported" >&6; }
7490 if test "$supported" = "yes" ; then
7491 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7492 found="yes"
7493 fi
7494 fi
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510 xorg_testset_save_CFLAGS="$CFLAGS"
7511
7512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7515 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7516 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7517 then :
7518 printf %s "(cached) " >&6
7519 else $as_nop
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 int i;
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"
7525 then :
7526 xorg_cv_cc_flag_unknown_warning_option=yes
7527 else $as_nop
7528 xorg_cv_cc_flag_unknown_warning_option=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7531 fi
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536 fi
7537
7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541 fi
7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7546 then :
7547 printf %s "(cached) " >&6
7548 else $as_nop
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 int i;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"
7554 then :
7555 xorg_cv_cc_flag_unused_command_line_argument=yes
7556 else $as_nop
7557 xorg_cv_cc_flag_unused_command_line_argument=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7560 fi
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7562 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565 fi
7566
7567 found="no"
7568
7569 if test $found = "no" ; then
7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572 fi
7573
7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7576 fi
7577
7578 CFLAGS="$CFLAGS -Werror=init-self"
7579
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7581 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7582 cacheid=xorg_cv_cc_flag__Werror_init_self
7583 if eval test \${$cacheid+y}
7584 then :
7585 printf %s "(cached) " >&6
7586 else $as_nop
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 int i;
7590 int
7591 main (void)
7592 {
7593
7594 ;
7595 return 0;
7596 }
7597 _ACEOF
7598 if ac_fn_c_try_link "$LINENO"
7599 then :
7600 eval $cacheid=yes
7601 else $as_nop
7602 eval $cacheid=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7605 conftest$ac_exeext conftest.$ac_ext
7606 fi
7607
7608
7609 CFLAGS="$xorg_testset_save_CFLAGS"
7610
7611 eval supported=\$$cacheid
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7613 printf "%s\n" "$supported" >&6; }
7614 if test "$supported" = "yes" ; then
7615 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7616 found="yes"
7617 fi
7618 fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634 xorg_testset_save_CFLAGS="$CFLAGS"
7635
7636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7639 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7640 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7641 then :
7642 printf %s "(cached) " >&6
7643 else $as_nop
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 int i;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"
7649 then :
7650 xorg_cv_cc_flag_unknown_warning_option=yes
7651 else $as_nop
7652 xorg_cv_cc_flag_unknown_warning_option=no
7653 fi
7654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7655 fi
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7657 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7659 CFLAGS="$xorg_testset_save_CFLAGS"
7660 fi
7661
7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665 fi
7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7670 then :
7671 printf %s "(cached) " >&6
7672 else $as_nop
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7675 int i;
7676 _ACEOF
7677 if ac_fn_c_try_compile "$LINENO"
7678 then :
7679 xorg_cv_cc_flag_unused_command_line_argument=yes
7680 else $as_nop
7681 xorg_cv_cc_flag_unused_command_line_argument=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7684 fi
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7688 CFLAGS="$xorg_testset_save_CFLAGS"
7689 fi
7690
7691 found="no"
7692
7693 if test $found = "no" ; then
7694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7696 fi
7697
7698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7700 fi
7701
7702 CFLAGS="$CFLAGS -Werror=main"
7703
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7705 printf %s "checking if $CC supports -Werror=main... " >&6; }
7706 cacheid=xorg_cv_cc_flag__Werror_main
7707 if eval test \${$cacheid+y}
7708 then :
7709 printf %s "(cached) " >&6
7710 else $as_nop
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 int i;
7714 int
7715 main (void)
7716 {
7717
7718 ;
7719 return 0;
7720 }
7721 _ACEOF
7722 if ac_fn_c_try_link "$LINENO"
7723 then :
7724 eval $cacheid=yes
7725 else $as_nop
7726 eval $cacheid=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7729 conftest$ac_exeext conftest.$ac_ext
7730 fi
7731
7732
7733 CFLAGS="$xorg_testset_save_CFLAGS"
7734
7735 eval supported=\$$cacheid
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7737 printf "%s\n" "$supported" >&6; }
7738 if test "$supported" = "yes" ; then
7739 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7740 found="yes"
7741 fi
7742 fi
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758 xorg_testset_save_CFLAGS="$CFLAGS"
7759
7760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7764 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7765 then :
7766 printf %s "(cached) " >&6
7767 else $as_nop
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 int i;
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"
7773 then :
7774 xorg_cv_cc_flag_unknown_warning_option=yes
7775 else $as_nop
7776 xorg_cv_cc_flag_unknown_warning_option=no
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7779 fi
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7783 CFLAGS="$xorg_testset_save_CFLAGS"
7784 fi
7785
7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789 fi
7790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7794 then :
7795 printf %s "(cached) " >&6
7796 else $as_nop
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 int i;
7800 _ACEOF
7801 if ac_fn_c_try_compile "$LINENO"
7802 then :
7803 xorg_cv_cc_flag_unused_command_line_argument=yes
7804 else $as_nop
7805 xorg_cv_cc_flag_unused_command_line_argument=no
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7808 fi
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7812 CFLAGS="$xorg_testset_save_CFLAGS"
7813 fi
7814
7815 found="no"
7816
7817 if test $found = "no" ; then
7818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7820 fi
7821
7822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7824 fi
7825
7826 CFLAGS="$CFLAGS -Werror=missing-braces"
7827
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7829 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7830 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7831 if eval test \${$cacheid+y}
7832 then :
7833 printf %s "(cached) " >&6
7834 else $as_nop
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 int i;
7838 int
7839 main (void)
7840 {
7841
7842 ;
7843 return 0;
7844 }
7845 _ACEOF
7846 if ac_fn_c_try_link "$LINENO"
7847 then :
7848 eval $cacheid=yes
7849 else $as_nop
7850 eval $cacheid=no
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7853 conftest$ac_exeext conftest.$ac_ext
7854 fi
7855
7856
7857 CFLAGS="$xorg_testset_save_CFLAGS"
7858
7859 eval supported=\$$cacheid
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7861 printf "%s\n" "$supported" >&6; }
7862 if test "$supported" = "yes" ; then
7863 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7864 found="yes"
7865 fi
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882 xorg_testset_save_CFLAGS="$CFLAGS"
7883
7884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7889 then :
7890 printf %s "(cached) " >&6
7891 else $as_nop
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 int i;
7895 _ACEOF
7896 if ac_fn_c_try_compile "$LINENO"
7897 then :
7898 xorg_cv_cc_flag_unknown_warning_option=yes
7899 else $as_nop
7900 xorg_cv_cc_flag_unknown_warning_option=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7903 fi
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7907 CFLAGS="$xorg_testset_save_CFLAGS"
7908 fi
7909
7910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913 fi
7914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7918 then :
7919 printf %s "(cached) " >&6
7920 else $as_nop
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 int i;
7924 _ACEOF
7925 if ac_fn_c_try_compile "$LINENO"
7926 then :
7927 xorg_cv_cc_flag_unused_command_line_argument=yes
7928 else $as_nop
7929 xorg_cv_cc_flag_unused_command_line_argument=no
7930 fi
7931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7932 fi
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7936 CFLAGS="$xorg_testset_save_CFLAGS"
7937 fi
7938
7939 found="no"
7940
7941 if test $found = "no" ; then
7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7944 fi
7945
7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7948 fi
7949
7950 CFLAGS="$CFLAGS -Werror=sequence-point"
7951
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7953 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7954 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7955 if eval test \${$cacheid+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else $as_nop
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 int
7963 main (void)
7964 {
7965
7966 ;
7967 return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"
7971 then :
7972 eval $cacheid=yes
7973 else $as_nop
7974 eval $cacheid=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7977 conftest$ac_exeext conftest.$ac_ext
7978 fi
7979
7980
7981 CFLAGS="$xorg_testset_save_CFLAGS"
7982
7983 eval supported=\$$cacheid
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7985 printf "%s\n" "$supported" >&6; }
7986 if test "$supported" = "yes" ; then
7987 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7988 found="yes"
7989 fi
7990 fi
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006 xorg_testset_save_CFLAGS="$CFLAGS"
8007
8008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8012 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else $as_nop
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 int i;
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"
8021 then :
8022 xorg_cv_cc_flag_unknown_warning_option=yes
8023 else $as_nop
8024 xorg_cv_cc_flag_unknown_warning_option=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8027 fi
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8029 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8031 CFLAGS="$xorg_testset_save_CFLAGS"
8032 fi
8033
8034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 fi
8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8040 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8041 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8042 then :
8043 printf %s "(cached) " >&6
8044 else $as_nop
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 int i;
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"
8050 then :
8051 xorg_cv_cc_flag_unused_command_line_argument=yes
8052 else $as_nop
8053 xorg_cv_cc_flag_unused_command_line_argument=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8056 fi
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8060 CFLAGS="$xorg_testset_save_CFLAGS"
8061 fi
8062
8063 found="no"
8064
8065 if test $found = "no" ; then
8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068 fi
8069
8070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8072 fi
8073
8074 CFLAGS="$CFLAGS -Werror=return-type"
8075
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8077 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8078 cacheid=xorg_cv_cc_flag__Werror_return_type
8079 if eval test \${$cacheid+y}
8080 then :
8081 printf %s "(cached) " >&6
8082 else $as_nop
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085 int i;
8086 int
8087 main (void)
8088 {
8089
8090 ;
8091 return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_link "$LINENO"
8095 then :
8096 eval $cacheid=yes
8097 else $as_nop
8098 eval $cacheid=no
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8101 conftest$ac_exeext conftest.$ac_ext
8102 fi
8103
8104
8105 CFLAGS="$xorg_testset_save_CFLAGS"
8106
8107 eval supported=\$$cacheid
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8109 printf "%s\n" "$supported" >&6; }
8110 if test "$supported" = "yes" ; then
8111 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8112 found="yes"
8113 fi
8114 fi
8115
8116 if test $found = "no" ; then
8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8119 fi
8120
8121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8123 fi
8124
8125 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8126
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8128 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8129 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8130 if eval test \${$cacheid+y}
8131 then :
8132 printf %s "(cached) " >&6
8133 else $as_nop
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int i;
8137 int
8138 main (void)
8139 {
8140
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_link "$LINENO"
8146 then :
8147 eval $cacheid=yes
8148 else $as_nop
8149 eval $cacheid=no
8150 fi
8151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8152 conftest$ac_exeext conftest.$ac_ext
8153 fi
8154
8155
8156 CFLAGS="$xorg_testset_save_CFLAGS"
8157
8158 eval supported=\$$cacheid
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8160 printf "%s\n" "$supported" >&6; }
8161 if test "$supported" = "yes" ; then
8162 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8163 found="yes"
8164 fi
8165 fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181 xorg_testset_save_CFLAGS="$CFLAGS"
8182
8183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8188 then :
8189 printf %s "(cached) " >&6
8190 else $as_nop
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 int i;
8194 _ACEOF
8195 if ac_fn_c_try_compile "$LINENO"
8196 then :
8197 xorg_cv_cc_flag_unknown_warning_option=yes
8198 else $as_nop
8199 xorg_cv_cc_flag_unknown_warning_option=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8202 fi
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8206 CFLAGS="$xorg_testset_save_CFLAGS"
8207 fi
8208
8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212 fi
8213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8217 then :
8218 printf %s "(cached) " >&6
8219 else $as_nop
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 int i;
8223 _ACEOF
8224 if ac_fn_c_try_compile "$LINENO"
8225 then :
8226 xorg_cv_cc_flag_unused_command_line_argument=yes
8227 else $as_nop
8228 xorg_cv_cc_flag_unused_command_line_argument=no
8229 fi
8230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8231 fi
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8235 CFLAGS="$xorg_testset_save_CFLAGS"
8236 fi
8237
8238 found="no"
8239
8240 if test $found = "no" ; then
8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243 fi
8244
8245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8247 fi
8248
8249 CFLAGS="$CFLAGS -Werror=trigraphs"
8250
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8252 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8253 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8254 if eval test \${$cacheid+y}
8255 then :
8256 printf %s "(cached) " >&6
8257 else $as_nop
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 int i;
8261 int
8262 main (void)
8263 {
8264
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 if ac_fn_c_try_link "$LINENO"
8270 then :
8271 eval $cacheid=yes
8272 else $as_nop
8273 eval $cacheid=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8276 conftest$ac_exeext conftest.$ac_ext
8277 fi
8278
8279
8280 CFLAGS="$xorg_testset_save_CFLAGS"
8281
8282 eval supported=\$$cacheid
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8284 printf "%s\n" "$supported" >&6; }
8285 if test "$supported" = "yes" ; then
8286 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8287 found="yes"
8288 fi
8289 fi
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305 xorg_testset_save_CFLAGS="$CFLAGS"
8306
8307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8311 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8312 then :
8313 printf %s "(cached) " >&6
8314 else $as_nop
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 int i;
8318 _ACEOF
8319 if ac_fn_c_try_compile "$LINENO"
8320 then :
8321 xorg_cv_cc_flag_unknown_warning_option=yes
8322 else $as_nop
8323 xorg_cv_cc_flag_unknown_warning_option=no
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8326 fi
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8330 CFLAGS="$xorg_testset_save_CFLAGS"
8331 fi
8332
8333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336 fi
8337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8341 then :
8342 printf %s "(cached) " >&6
8343 else $as_nop
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8346 int i;
8347 _ACEOF
8348 if ac_fn_c_try_compile "$LINENO"
8349 then :
8350 xorg_cv_cc_flag_unused_command_line_argument=yes
8351 else $as_nop
8352 xorg_cv_cc_flag_unused_command_line_argument=no
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8355 fi
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8357 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8359 CFLAGS="$xorg_testset_save_CFLAGS"
8360 fi
8361
8362 found="no"
8363
8364 if test $found = "no" ; then
8365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 fi
8368
8369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371 fi
8372
8373 CFLAGS="$CFLAGS -Werror=array-bounds"
8374
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8376 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8377 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8378 if eval test \${$cacheid+y}
8379 then :
8380 printf %s "(cached) " >&6
8381 else $as_nop
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 int i;
8385 int
8386 main (void)
8387 {
8388
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 if ac_fn_c_try_link "$LINENO"
8394 then :
8395 eval $cacheid=yes
8396 else $as_nop
8397 eval $cacheid=no
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8400 conftest$ac_exeext conftest.$ac_ext
8401 fi
8402
8403
8404 CFLAGS="$xorg_testset_save_CFLAGS"
8405
8406 eval supported=\$$cacheid
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8408 printf "%s\n" "$supported" >&6; }
8409 if test "$supported" = "yes" ; then
8410 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8411 found="yes"
8412 fi
8413 fi
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429 xorg_testset_save_CFLAGS="$CFLAGS"
8430
8431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8434 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8435 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8436 then :
8437 printf %s "(cached) " >&6
8438 else $as_nop
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 int i;
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"
8444 then :
8445 xorg_cv_cc_flag_unknown_warning_option=yes
8446 else $as_nop
8447 xorg_cv_cc_flag_unknown_warning_option=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8450 fi
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8452 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8454 CFLAGS="$xorg_testset_save_CFLAGS"
8455 fi
8456
8457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460 fi
8461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8463 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8464 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8465 then :
8466 printf %s "(cached) " >&6
8467 else $as_nop
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 int i;
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"
8473 then :
8474 xorg_cv_cc_flag_unused_command_line_argument=yes
8475 else $as_nop
8476 xorg_cv_cc_flag_unused_command_line_argument=no
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8479 fi
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8483 CFLAGS="$xorg_testset_save_CFLAGS"
8484 fi
8485
8486 found="no"
8487
8488 if test $found = "no" ; then
8489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8491 fi
8492
8493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8495 fi
8496
8497 CFLAGS="$CFLAGS -Werror=write-strings"
8498
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8500 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8501 cacheid=xorg_cv_cc_flag__Werror_write_strings
8502 if eval test \${$cacheid+y}
8503 then :
8504 printf %s "(cached) " >&6
8505 else $as_nop
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 int i;
8509 int
8510 main (void)
8511 {
8512
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"
8518 then :
8519 eval $cacheid=yes
8520 else $as_nop
8521 eval $cacheid=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8524 conftest$ac_exeext conftest.$ac_ext
8525 fi
8526
8527
8528 CFLAGS="$xorg_testset_save_CFLAGS"
8529
8530 eval supported=\$$cacheid
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8532 printf "%s\n" "$supported" >&6; }
8533 if test "$supported" = "yes" ; then
8534 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8535 found="yes"
8536 fi
8537 fi
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553 xorg_testset_save_CFLAGS="$CFLAGS"
8554
8555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8559 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8560 then :
8561 printf %s "(cached) " >&6
8562 else $as_nop
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 int i;
8566 _ACEOF
8567 if ac_fn_c_try_compile "$LINENO"
8568 then :
8569 xorg_cv_cc_flag_unknown_warning_option=yes
8570 else $as_nop
8571 xorg_cv_cc_flag_unknown_warning_option=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8574 fi
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8576 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8578 CFLAGS="$xorg_testset_save_CFLAGS"
8579 fi
8580
8581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8584 fi
8585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8587 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8588 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8589 then :
8590 printf %s "(cached) " >&6
8591 else $as_nop
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594 int i;
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"
8597 then :
8598 xorg_cv_cc_flag_unused_command_line_argument=yes
8599 else $as_nop
8600 xorg_cv_cc_flag_unused_command_line_argument=no
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8603 fi
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8605 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8607 CFLAGS="$xorg_testset_save_CFLAGS"
8608 fi
8609
8610 found="no"
8611
8612 if test $found = "no" ; then
8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615 fi
8616
8617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8619 fi
8620
8621 CFLAGS="$CFLAGS -Werror=address"
8622
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8624 printf %s "checking if $CC supports -Werror=address... " >&6; }
8625 cacheid=xorg_cv_cc_flag__Werror_address
8626 if eval test \${$cacheid+y}
8627 then :
8628 printf %s "(cached) " >&6
8629 else $as_nop
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 int i;
8633 int
8634 main (void)
8635 {
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_link "$LINENO"
8642 then :
8643 eval $cacheid=yes
8644 else $as_nop
8645 eval $cacheid=no
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8648 conftest$ac_exeext conftest.$ac_ext
8649 fi
8650
8651
8652 CFLAGS="$xorg_testset_save_CFLAGS"
8653
8654 eval supported=\$$cacheid
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8656 printf "%s\n" "$supported" >&6; }
8657 if test "$supported" = "yes" ; then
8658 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8659 found="yes"
8660 fi
8661 fi
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 xorg_testset_save_CFLAGS="$CFLAGS"
8678
8679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8682 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8683 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8684 then :
8685 printf %s "(cached) " >&6
8686 else $as_nop
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 int i;
8690 _ACEOF
8691 if ac_fn_c_try_compile "$LINENO"
8692 then :
8693 xorg_cv_cc_flag_unknown_warning_option=yes
8694 else $as_nop
8695 xorg_cv_cc_flag_unknown_warning_option=no
8696 fi
8697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8698 fi
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8700 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8702 CFLAGS="$xorg_testset_save_CFLAGS"
8703 fi
8704
8705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708 fi
8709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8711 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8712 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8713 then :
8714 printf %s "(cached) " >&6
8715 else $as_nop
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 int i;
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"
8721 then :
8722 xorg_cv_cc_flag_unused_command_line_argument=yes
8723 else $as_nop
8724 xorg_cv_cc_flag_unused_command_line_argument=no
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8727 fi
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8729 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8731 CFLAGS="$xorg_testset_save_CFLAGS"
8732 fi
8733
8734 found="no"
8735
8736 if test $found = "no" ; then
8737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8739 fi
8740
8741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8743 fi
8744
8745 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8746
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8748 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8749 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8750 if eval test \${$cacheid+y}
8751 then :
8752 printf %s "(cached) " >&6
8753 else $as_nop
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756 int i;
8757 int
8758 main (void)
8759 {
8760
8761 ;
8762 return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"
8766 then :
8767 eval $cacheid=yes
8768 else $as_nop
8769 eval $cacheid=no
8770 fi
8771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8772 conftest$ac_exeext conftest.$ac_ext
8773 fi
8774
8775
8776 CFLAGS="$xorg_testset_save_CFLAGS"
8777
8778 eval supported=\$$cacheid
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8780 printf "%s\n" "$supported" >&6; }
8781 if test "$supported" = "yes" ; then
8782 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8783 found="yes"
8784 fi
8785 fi
8786
8787 if test $found = "no" ; then
8788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790 fi
8791
8792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8794 fi
8795
8796 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8797
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8799 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8800 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8801 if eval test \${$cacheid+y}
8802 then :
8803 printf %s "(cached) " >&6
8804 else $as_nop
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 int i;
8808 int
8809 main (void)
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"
8817 then :
8818 eval $cacheid=yes
8819 else $as_nop
8820 eval $cacheid=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8823 conftest$ac_exeext conftest.$ac_ext
8824 fi
8825
8826
8827 CFLAGS="$xorg_testset_save_CFLAGS"
8828
8829 eval supported=\$$cacheid
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8831 printf "%s\n" "$supported" >&6; }
8832 if test "$supported" = "yes" ; then
8833 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8834 found="yes"
8835 fi
8836 fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852 xorg_testset_save_CFLAGS="$CFLAGS"
8853
8854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8857 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8858 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8859 then :
8860 printf %s "(cached) " >&6
8861 else $as_nop
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 int i;
8865 _ACEOF
8866 if ac_fn_c_try_compile "$LINENO"
8867 then :
8868 xorg_cv_cc_flag_unknown_warning_option=yes
8869 else $as_nop
8870 xorg_cv_cc_flag_unknown_warning_option=no
8871 fi
8872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8873 fi
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8877 CFLAGS="$xorg_testset_save_CFLAGS"
8878 fi
8879
8880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8883 fi
8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8888 then :
8889 printf %s "(cached) " >&6
8890 else $as_nop
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 int i;
8894 _ACEOF
8895 if ac_fn_c_try_compile "$LINENO"
8896 then :
8897 xorg_cv_cc_flag_unused_command_line_argument=yes
8898 else $as_nop
8899 xorg_cv_cc_flag_unused_command_line_argument=no
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 fi
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8904 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8906 CFLAGS="$xorg_testset_save_CFLAGS"
8907 fi
8908
8909 found="no"
8910
8911 if test $found = "no" ; then
8912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914 fi
8915
8916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918 fi
8919
8920 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8921
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8923 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8924 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8925 if eval test \${$cacheid+y}
8926 then :
8927 printf %s "(cached) " >&6
8928 else $as_nop
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 int i;
8932 int
8933 main (void)
8934 {
8935
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"
8941 then :
8942 eval $cacheid=yes
8943 else $as_nop
8944 eval $cacheid=no
8945 fi
8946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8947 conftest$ac_exeext conftest.$ac_ext
8948 fi
8949
8950
8951 CFLAGS="$xorg_testset_save_CFLAGS"
8952
8953 eval supported=\$$cacheid
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8955 printf "%s\n" "$supported" >&6; }
8956 if test "$supported" = "yes" ; then
8957 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8958 found="yes"
8959 fi
8960 fi
8961
8962 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8963 else
8964 { printf "%s\n" "$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
8965 printf "%s\n" "$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;}
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979 xorg_testset_save_CFLAGS="$CFLAGS"
8980
8981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8986 then :
8987 printf %s "(cached) " >&6
8988 else $as_nop
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 int i;
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"
8994 then :
8995 xorg_cv_cc_flag_unknown_warning_option=yes
8996 else $as_nop
8997 xorg_cv_cc_flag_unknown_warning_option=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9000 fi
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9002 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9005 fi
9006
9007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9010 fi
9011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9013 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9014 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9015 then :
9016 printf %s "(cached) " >&6
9017 else $as_nop
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 int i;
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"
9023 then :
9024 xorg_cv_cc_flag_unused_command_line_argument=yes
9025 else $as_nop
9026 xorg_cv_cc_flag_unused_command_line_argument=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9029 fi
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9031 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9033 CFLAGS="$xorg_testset_save_CFLAGS"
9034 fi
9035
9036 found="no"
9037
9038 if test $found = "no" ; then
9039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041 fi
9042
9043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9045 fi
9046
9047 CFLAGS="$CFLAGS -Wimplicit"
9048
9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9050 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9051 cacheid=xorg_cv_cc_flag__Wimplicit
9052 if eval test \${$cacheid+y}
9053 then :
9054 printf %s "(cached) " >&6
9055 else $as_nop
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 int i;
9059 int
9060 main (void)
9061 {
9062
9063 ;
9064 return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_link "$LINENO"
9068 then :
9069 eval $cacheid=yes
9070 else $as_nop
9071 eval $cacheid=no
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9074 conftest$ac_exeext conftest.$ac_ext
9075 fi
9076
9077
9078 CFLAGS="$xorg_testset_save_CFLAGS"
9079
9080 eval supported=\$$cacheid
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9082 printf "%s\n" "$supported" >&6; }
9083 if test "$supported" = "yes" ; then
9084 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9085 found="yes"
9086 fi
9087 fi
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103 xorg_testset_save_CFLAGS="$CFLAGS"
9104
9105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9109 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9110 then :
9111 printf %s "(cached) " >&6
9112 else $as_nop
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 int i;
9116 _ACEOF
9117 if ac_fn_c_try_compile "$LINENO"
9118 then :
9119 xorg_cv_cc_flag_unknown_warning_option=yes
9120 else $as_nop
9121 xorg_cv_cc_flag_unknown_warning_option=no
9122 fi
9123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9124 fi
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9126 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9128 CFLAGS="$xorg_testset_save_CFLAGS"
9129 fi
9130
9131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 fi
9135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9137 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9138 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9139 then :
9140 printf %s "(cached) " >&6
9141 else $as_nop
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int i;
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"
9147 then :
9148 xorg_cv_cc_flag_unused_command_line_argument=yes
9149 else $as_nop
9150 xorg_cv_cc_flag_unused_command_line_argument=no
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9153 fi
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9155 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9157 CFLAGS="$xorg_testset_save_CFLAGS"
9158 fi
9159
9160 found="no"
9161
9162 if test $found = "no" ; then
9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165 fi
9166
9167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9169 fi
9170
9171 CFLAGS="$CFLAGS -Wnonnull"
9172
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9174 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9175 cacheid=xorg_cv_cc_flag__Wnonnull
9176 if eval test \${$cacheid+y}
9177 then :
9178 printf %s "(cached) " >&6
9179 else $as_nop
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 int i;
9183 int
9184 main (void)
9185 {
9186
9187 ;
9188 return 0;
9189 }
9190 _ACEOF
9191 if ac_fn_c_try_link "$LINENO"
9192 then :
9193 eval $cacheid=yes
9194 else $as_nop
9195 eval $cacheid=no
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9198 conftest$ac_exeext conftest.$ac_ext
9199 fi
9200
9201
9202 CFLAGS="$xorg_testset_save_CFLAGS"
9203
9204 eval supported=\$$cacheid
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9206 printf "%s\n" "$supported" >&6; }
9207 if test "$supported" = "yes" ; then
9208 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9209 found="yes"
9210 fi
9211 fi
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227 xorg_testset_save_CFLAGS="$CFLAGS"
9228
9229 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9232 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9233 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9234 then :
9235 printf %s "(cached) " >&6
9236 else $as_nop
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9239 int i;
9240 _ACEOF
9241 if ac_fn_c_try_compile "$LINENO"
9242 then :
9243 xorg_cv_cc_flag_unknown_warning_option=yes
9244 else $as_nop
9245 xorg_cv_cc_flag_unknown_warning_option=no
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9248 fi
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9250 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9252 CFLAGS="$xorg_testset_save_CFLAGS"
9253 fi
9254
9255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258 fi
9259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9261 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9262 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9263 then :
9264 printf %s "(cached) " >&6
9265 else $as_nop
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 int i;
9269 _ACEOF
9270 if ac_fn_c_try_compile "$LINENO"
9271 then :
9272 xorg_cv_cc_flag_unused_command_line_argument=yes
9273 else $as_nop
9274 xorg_cv_cc_flag_unused_command_line_argument=no
9275 fi
9276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9277 fi
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9281 CFLAGS="$xorg_testset_save_CFLAGS"
9282 fi
9283
9284 found="no"
9285
9286 if test $found = "no" ; then
9287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9289 fi
9290
9291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9293 fi
9294
9295 CFLAGS="$CFLAGS -Winit-self"
9296
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9298 printf %s "checking if $CC supports -Winit-self... " >&6; }
9299 cacheid=xorg_cv_cc_flag__Winit_self
9300 if eval test \${$cacheid+y}
9301 then :
9302 printf %s "(cached) " >&6
9303 else $as_nop
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 int i;
9307 int
9308 main (void)
9309 {
9310
9311 ;
9312 return 0;
9313 }
9314 _ACEOF
9315 if ac_fn_c_try_link "$LINENO"
9316 then :
9317 eval $cacheid=yes
9318 else $as_nop
9319 eval $cacheid=no
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9322 conftest$ac_exeext conftest.$ac_ext
9323 fi
9324
9325
9326 CFLAGS="$xorg_testset_save_CFLAGS"
9327
9328 eval supported=\$$cacheid
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9330 printf "%s\n" "$supported" >&6; }
9331 if test "$supported" = "yes" ; then
9332 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9333 found="yes"
9334 fi
9335 fi
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351 xorg_testset_save_CFLAGS="$CFLAGS"
9352
9353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9356 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9357 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9358 then :
9359 printf %s "(cached) " >&6
9360 else $as_nop
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int i;
9364 _ACEOF
9365 if ac_fn_c_try_compile "$LINENO"
9366 then :
9367 xorg_cv_cc_flag_unknown_warning_option=yes
9368 else $as_nop
9369 xorg_cv_cc_flag_unknown_warning_option=no
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9372 fi
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9374 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9376 CFLAGS="$xorg_testset_save_CFLAGS"
9377 fi
9378
9379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382 fi
9383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9385 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9386 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9387 then :
9388 printf %s "(cached) " >&6
9389 else $as_nop
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 int i;
9393 _ACEOF
9394 if ac_fn_c_try_compile "$LINENO"
9395 then :
9396 xorg_cv_cc_flag_unused_command_line_argument=yes
9397 else $as_nop
9398 xorg_cv_cc_flag_unused_command_line_argument=no
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9401 fi
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406 fi
9407
9408 found="no"
9409
9410 if test $found = "no" ; then
9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 fi
9414
9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9417 fi
9418
9419 CFLAGS="$CFLAGS -Wmain"
9420
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9422 printf %s "checking if $CC supports -Wmain... " >&6; }
9423 cacheid=xorg_cv_cc_flag__Wmain
9424 if eval test \${$cacheid+y}
9425 then :
9426 printf %s "(cached) " >&6
9427 else $as_nop
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 int i;
9431 int
9432 main (void)
9433 {
9434
9435 ;
9436 return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"
9440 then :
9441 eval $cacheid=yes
9442 else $as_nop
9443 eval $cacheid=no
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9446 conftest$ac_exeext conftest.$ac_ext
9447 fi
9448
9449
9450 CFLAGS="$xorg_testset_save_CFLAGS"
9451
9452 eval supported=\$$cacheid
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9454 printf "%s\n" "$supported" >&6; }
9455 if test "$supported" = "yes" ; then
9456 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9457 found="yes"
9458 fi
9459 fi
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475 xorg_testset_save_CFLAGS="$CFLAGS"
9476
9477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9482 then :
9483 printf %s "(cached) " >&6
9484 else $as_nop
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487 int i;
9488 _ACEOF
9489 if ac_fn_c_try_compile "$LINENO"
9490 then :
9491 xorg_cv_cc_flag_unknown_warning_option=yes
9492 else $as_nop
9493 xorg_cv_cc_flag_unknown_warning_option=no
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9496 fi
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9500 CFLAGS="$xorg_testset_save_CFLAGS"
9501 fi
9502
9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506 fi
9507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9511 then :
9512 printf %s "(cached) " >&6
9513 else $as_nop
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 int i;
9517 _ACEOF
9518 if ac_fn_c_try_compile "$LINENO"
9519 then :
9520 xorg_cv_cc_flag_unused_command_line_argument=yes
9521 else $as_nop
9522 xorg_cv_cc_flag_unused_command_line_argument=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9525 fi
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9529 CFLAGS="$xorg_testset_save_CFLAGS"
9530 fi
9531
9532 found="no"
9533
9534 if test $found = "no" ; then
9535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9537 fi
9538
9539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9541 fi
9542
9543 CFLAGS="$CFLAGS -Wmissing-braces"
9544
9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9546 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9547 cacheid=xorg_cv_cc_flag__Wmissing_braces
9548 if eval test \${$cacheid+y}
9549 then :
9550 printf %s "(cached) " >&6
9551 else $as_nop
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 int i;
9555 int
9556 main (void)
9557 {
9558
9559 ;
9560 return 0;
9561 }
9562 _ACEOF
9563 if ac_fn_c_try_link "$LINENO"
9564 then :
9565 eval $cacheid=yes
9566 else $as_nop
9567 eval $cacheid=no
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9570 conftest$ac_exeext conftest.$ac_ext
9571 fi
9572
9573
9574 CFLAGS="$xorg_testset_save_CFLAGS"
9575
9576 eval supported=\$$cacheid
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9578 printf "%s\n" "$supported" >&6; }
9579 if test "$supported" = "yes" ; then
9580 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9581 found="yes"
9582 fi
9583 fi
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 xorg_testset_save_CFLAGS="$CFLAGS"
9600
9601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9606 then :
9607 printf %s "(cached) " >&6
9608 else $as_nop
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 int i;
9612 _ACEOF
9613 if ac_fn_c_try_compile "$LINENO"
9614 then :
9615 xorg_cv_cc_flag_unknown_warning_option=yes
9616 else $as_nop
9617 xorg_cv_cc_flag_unknown_warning_option=no
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9620 fi
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9624 CFLAGS="$xorg_testset_save_CFLAGS"
9625 fi
9626
9627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9630 fi
9631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9635 then :
9636 printf %s "(cached) " >&6
9637 else $as_nop
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640 int i;
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"
9643 then :
9644 xorg_cv_cc_flag_unused_command_line_argument=yes
9645 else $as_nop
9646 xorg_cv_cc_flag_unused_command_line_argument=no
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9649 fi
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9653 CFLAGS="$xorg_testset_save_CFLAGS"
9654 fi
9655
9656 found="no"
9657
9658 if test $found = "no" ; then
9659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9661 fi
9662
9663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9665 fi
9666
9667 CFLAGS="$CFLAGS -Wsequence-point"
9668
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9670 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9671 cacheid=xorg_cv_cc_flag__Wsequence_point
9672 if eval test \${$cacheid+y}
9673 then :
9674 printf %s "(cached) " >&6
9675 else $as_nop
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 int i;
9679 int
9680 main (void)
9681 {
9682
9683 ;
9684 return 0;
9685 }
9686 _ACEOF
9687 if ac_fn_c_try_link "$LINENO"
9688 then :
9689 eval $cacheid=yes
9690 else $as_nop
9691 eval $cacheid=no
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9694 conftest$ac_exeext conftest.$ac_ext
9695 fi
9696
9697
9698 CFLAGS="$xorg_testset_save_CFLAGS"
9699
9700 eval supported=\$$cacheid
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9702 printf "%s\n" "$supported" >&6; }
9703 if test "$supported" = "yes" ; then
9704 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9705 found="yes"
9706 fi
9707 fi
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 xorg_testset_save_CFLAGS="$CFLAGS"
9724
9725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9728 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9729 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9730 then :
9731 printf %s "(cached) " >&6
9732 else $as_nop
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 int i;
9736 _ACEOF
9737 if ac_fn_c_try_compile "$LINENO"
9738 then :
9739 xorg_cv_cc_flag_unknown_warning_option=yes
9740 else $as_nop
9741 xorg_cv_cc_flag_unknown_warning_option=no
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9744 fi
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9746 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9748 CFLAGS="$xorg_testset_save_CFLAGS"
9749 fi
9750
9751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754 fi
9755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9757 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9758 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9759 then :
9760 printf %s "(cached) " >&6
9761 else $as_nop
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 int i;
9765 _ACEOF
9766 if ac_fn_c_try_compile "$LINENO"
9767 then :
9768 xorg_cv_cc_flag_unused_command_line_argument=yes
9769 else $as_nop
9770 xorg_cv_cc_flag_unused_command_line_argument=no
9771 fi
9772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9773 fi
9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9777 CFLAGS="$xorg_testset_save_CFLAGS"
9778 fi
9779
9780 found="no"
9781
9782 if test $found = "no" ; then
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 fi
9786
9787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789 fi
9790
9791 CFLAGS="$CFLAGS -Wreturn-type"
9792
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9794 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9795 cacheid=xorg_cv_cc_flag__Wreturn_type
9796 if eval test \${$cacheid+y}
9797 then :
9798 printf %s "(cached) " >&6
9799 else $as_nop
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 int i;
9803 int
9804 main (void)
9805 {
9806
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"
9812 then :
9813 eval $cacheid=yes
9814 else $as_nop
9815 eval $cacheid=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9818 conftest$ac_exeext conftest.$ac_ext
9819 fi
9820
9821
9822 CFLAGS="$xorg_testset_save_CFLAGS"
9823
9824 eval supported=\$$cacheid
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9826 printf "%s\n" "$supported" >&6; }
9827 if test "$supported" = "yes" ; then
9828 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9829 found="yes"
9830 fi
9831 fi
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847 xorg_testset_save_CFLAGS="$CFLAGS"
9848
9849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9852 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9853 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9854 then :
9855 printf %s "(cached) " >&6
9856 else $as_nop
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9859 int i;
9860 _ACEOF
9861 if ac_fn_c_try_compile "$LINENO"
9862 then :
9863 xorg_cv_cc_flag_unknown_warning_option=yes
9864 else $as_nop
9865 xorg_cv_cc_flag_unknown_warning_option=no
9866 fi
9867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9868 fi
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9870 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9872 CFLAGS="$xorg_testset_save_CFLAGS"
9873 fi
9874
9875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878 fi
9879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9881 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9882 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9883 then :
9884 printf %s "(cached) " >&6
9885 else $as_nop
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 int i;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"
9891 then :
9892 xorg_cv_cc_flag_unused_command_line_argument=yes
9893 else $as_nop
9894 xorg_cv_cc_flag_unused_command_line_argument=no
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9897 fi
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9901 CFLAGS="$xorg_testset_save_CFLAGS"
9902 fi
9903
9904 found="no"
9905
9906 if test $found = "no" ; then
9907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 fi
9910
9911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9913 fi
9914
9915 CFLAGS="$CFLAGS -Wtrigraphs"
9916
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9918 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9919 cacheid=xorg_cv_cc_flag__Wtrigraphs
9920 if eval test \${$cacheid+y}
9921 then :
9922 printf %s "(cached) " >&6
9923 else $as_nop
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926 int i;
9927 int
9928 main (void)
9929 {
9930
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_link "$LINENO"
9936 then :
9937 eval $cacheid=yes
9938 else $as_nop
9939 eval $cacheid=no
9940 fi
9941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9942 conftest$ac_exeext conftest.$ac_ext
9943 fi
9944
9945
9946 CFLAGS="$xorg_testset_save_CFLAGS"
9947
9948 eval supported=\$$cacheid
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9950 printf "%s\n" "$supported" >&6; }
9951 if test "$supported" = "yes" ; then
9952 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9953 found="yes"
9954 fi
9955 fi
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971 xorg_testset_save_CFLAGS="$CFLAGS"
9972
9973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9976 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9977 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9978 then :
9979 printf %s "(cached) " >&6
9980 else $as_nop
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9983 int i;
9984 _ACEOF
9985 if ac_fn_c_try_compile "$LINENO"
9986 then :
9987 xorg_cv_cc_flag_unknown_warning_option=yes
9988 else $as_nop
9989 xorg_cv_cc_flag_unknown_warning_option=no
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9992 fi
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9994 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9996 CFLAGS="$xorg_testset_save_CFLAGS"
9997 fi
9998
9999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10002 fi
10003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10005 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10006 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10007 then :
10008 printf %s "(cached) " >&6
10009 else $as_nop
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10012 int i;
10013 _ACEOF
10014 if ac_fn_c_try_compile "$LINENO"
10015 then :
10016 xorg_cv_cc_flag_unused_command_line_argument=yes
10017 else $as_nop
10018 xorg_cv_cc_flag_unused_command_line_argument=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10021 fi
10022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10023 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10025 CFLAGS="$xorg_testset_save_CFLAGS"
10026 fi
10027
10028 found="no"
10029
10030 if test $found = "no" ; then
10031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10033 fi
10034
10035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10037 fi
10038
10039 CFLAGS="$CFLAGS -Warray-bounds"
10040
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10042 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10043 cacheid=xorg_cv_cc_flag__Warray_bounds
10044 if eval test \${$cacheid+y}
10045 then :
10046 printf %s "(cached) " >&6
10047 else $as_nop
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 int i;
10051 int
10052 main (void)
10053 {
10054
10055 ;
10056 return 0;
10057 }
10058 _ACEOF
10059 if ac_fn_c_try_link "$LINENO"
10060 then :
10061 eval $cacheid=yes
10062 else $as_nop
10063 eval $cacheid=no
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10066 conftest$ac_exeext conftest.$ac_ext
10067 fi
10068
10069
10070 CFLAGS="$xorg_testset_save_CFLAGS"
10071
10072 eval supported=\$$cacheid
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10074 printf "%s\n" "$supported" >&6; }
10075 if test "$supported" = "yes" ; then
10076 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10077 found="yes"
10078 fi
10079 fi
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095 xorg_testset_save_CFLAGS="$CFLAGS"
10096
10097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10100 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10101 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10102 then :
10103 printf %s "(cached) " >&6
10104 else $as_nop
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 int i;
10108 _ACEOF
10109 if ac_fn_c_try_compile "$LINENO"
10110 then :
10111 xorg_cv_cc_flag_unknown_warning_option=yes
10112 else $as_nop
10113 xorg_cv_cc_flag_unknown_warning_option=no
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10116 fi
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10118 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10120 CFLAGS="$xorg_testset_save_CFLAGS"
10121 fi
10122
10123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126 fi
10127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10131 then :
10132 printf %s "(cached) " >&6
10133 else $as_nop
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 int i;
10137 _ACEOF
10138 if ac_fn_c_try_compile "$LINENO"
10139 then :
10140 xorg_cv_cc_flag_unused_command_line_argument=yes
10141 else $as_nop
10142 xorg_cv_cc_flag_unused_command_line_argument=no
10143 fi
10144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10145 fi
10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10147 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10149 CFLAGS="$xorg_testset_save_CFLAGS"
10150 fi
10151
10152 found="no"
10153
10154 if test $found = "no" ; then
10155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10157 fi
10158
10159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10161 fi
10162
10163 CFLAGS="$CFLAGS -Wwrite-strings"
10164
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10166 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10167 cacheid=xorg_cv_cc_flag__Wwrite_strings
10168 if eval test \${$cacheid+y}
10169 then :
10170 printf %s "(cached) " >&6
10171 else $as_nop
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174 int i;
10175 int
10176 main (void)
10177 {
10178
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"
10184 then :
10185 eval $cacheid=yes
10186 else $as_nop
10187 eval $cacheid=no
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10190 conftest$ac_exeext conftest.$ac_ext
10191 fi
10192
10193
10194 CFLAGS="$xorg_testset_save_CFLAGS"
10195
10196 eval supported=\$$cacheid
10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10198 printf "%s\n" "$supported" >&6; }
10199 if test "$supported" = "yes" ; then
10200 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10201 found="yes"
10202 fi
10203 fi
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219 xorg_testset_save_CFLAGS="$CFLAGS"
10220
10221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10224 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10225 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10226 then :
10227 printf %s "(cached) " >&6
10228 else $as_nop
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231 int i;
10232 _ACEOF
10233 if ac_fn_c_try_compile "$LINENO"
10234 then :
10235 xorg_cv_cc_flag_unknown_warning_option=yes
10236 else $as_nop
10237 xorg_cv_cc_flag_unknown_warning_option=no
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10240 fi
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10242 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10244 CFLAGS="$xorg_testset_save_CFLAGS"
10245 fi
10246
10247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250 fi
10251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10253 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10254 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10255 then :
10256 printf %s "(cached) " >&6
10257 else $as_nop
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 int i;
10261 _ACEOF
10262 if ac_fn_c_try_compile "$LINENO"
10263 then :
10264 xorg_cv_cc_flag_unused_command_line_argument=yes
10265 else $as_nop
10266 xorg_cv_cc_flag_unused_command_line_argument=no
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10269 fi
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10271 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10273 CFLAGS="$xorg_testset_save_CFLAGS"
10274 fi
10275
10276 found="no"
10277
10278 if test $found = "no" ; then
10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281 fi
10282
10283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10285 fi
10286
10287 CFLAGS="$CFLAGS -Waddress"
10288
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10290 printf %s "checking if $CC supports -Waddress... " >&6; }
10291 cacheid=xorg_cv_cc_flag__Waddress
10292 if eval test \${$cacheid+y}
10293 then :
10294 printf %s "(cached) " >&6
10295 else $as_nop
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 int i;
10299 int
10300 main (void)
10301 {
10302
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"
10308 then :
10309 eval $cacheid=yes
10310 else $as_nop
10311 eval $cacheid=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10314 conftest$ac_exeext conftest.$ac_ext
10315 fi
10316
10317
10318 CFLAGS="$xorg_testset_save_CFLAGS"
10319
10320 eval supported=\$$cacheid
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10322 printf "%s\n" "$supported" >&6; }
10323 if test "$supported" = "yes" ; then
10324 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10325 found="yes"
10326 fi
10327 fi
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343 xorg_testset_save_CFLAGS="$CFLAGS"
10344
10345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10349 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10350 then :
10351 printf %s "(cached) " >&6
10352 else $as_nop
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 int i;
10356 _ACEOF
10357 if ac_fn_c_try_compile "$LINENO"
10358 then :
10359 xorg_cv_cc_flag_unknown_warning_option=yes
10360 else $as_nop
10361 xorg_cv_cc_flag_unknown_warning_option=no
10362 fi
10363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10364 fi
10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10366 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10368 CFLAGS="$xorg_testset_save_CFLAGS"
10369 fi
10370
10371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374 fi
10375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10377 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10378 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10379 then :
10380 printf %s "(cached) " >&6
10381 else $as_nop
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 int i;
10385 _ACEOF
10386 if ac_fn_c_try_compile "$LINENO"
10387 then :
10388 xorg_cv_cc_flag_unused_command_line_argument=yes
10389 else $as_nop
10390 xorg_cv_cc_flag_unused_command_line_argument=no
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10393 fi
10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10395 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10397 CFLAGS="$xorg_testset_save_CFLAGS"
10398 fi
10399
10400 found="no"
10401
10402 if test $found = "no" ; then
10403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10405 fi
10406
10407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10409 fi
10410
10411 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10412
10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10414 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10415 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10416 if eval test \${$cacheid+y}
10417 then :
10418 printf %s "(cached) " >&6
10419 else $as_nop
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 int i;
10423 int
10424 main (void)
10425 {
10426
10427 ;
10428 return 0;
10429 }
10430 _ACEOF
10431 if ac_fn_c_try_link "$LINENO"
10432 then :
10433 eval $cacheid=yes
10434 else $as_nop
10435 eval $cacheid=no
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10438 conftest$ac_exeext conftest.$ac_ext
10439 fi
10440
10441
10442 CFLAGS="$xorg_testset_save_CFLAGS"
10443
10444 eval supported=\$$cacheid
10445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10446 printf "%s\n" "$supported" >&6; }
10447 if test "$supported" = "yes" ; then
10448 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10449 found="yes"
10450 fi
10451 fi
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467 xorg_testset_save_CFLAGS="$CFLAGS"
10468
10469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10472 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10473 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10474 then :
10475 printf %s "(cached) " >&6
10476 else $as_nop
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 int i;
10480 _ACEOF
10481 if ac_fn_c_try_compile "$LINENO"
10482 then :
10483 xorg_cv_cc_flag_unknown_warning_option=yes
10484 else $as_nop
10485 xorg_cv_cc_flag_unknown_warning_option=no
10486 fi
10487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10488 fi
10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10492 CFLAGS="$xorg_testset_save_CFLAGS"
10493 fi
10494
10495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498 fi
10499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10503 then :
10504 printf %s "(cached) " >&6
10505 else $as_nop
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 int i;
10509 _ACEOF
10510 if ac_fn_c_try_compile "$LINENO"
10511 then :
10512 xorg_cv_cc_flag_unused_command_line_argument=yes
10513 else $as_nop
10514 xorg_cv_cc_flag_unused_command_line_argument=no
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10517 fi
10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10519 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10521 CFLAGS="$xorg_testset_save_CFLAGS"
10522 fi
10523
10524 found="no"
10525
10526 if test $found = "no" ; then
10527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10529 fi
10530
10531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10533 fi
10534
10535 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10536
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10538 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10539 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10540 if eval test \${$cacheid+y}
10541 then :
10542 printf %s "(cached) " >&6
10543 else $as_nop
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 int i;
10547 int
10548 main (void)
10549 {
10550
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_link "$LINENO"
10556 then :
10557 eval $cacheid=yes
10558 else $as_nop
10559 eval $cacheid=no
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10562 conftest$ac_exeext conftest.$ac_ext
10563 fi
10564
10565
10566 CFLAGS="$xorg_testset_save_CFLAGS"
10567
10568 eval supported=\$$cacheid
10569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10570 printf "%s\n" "$supported" >&6; }
10571 if test "$supported" = "yes" ; then
10572 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10573 found="yes"
10574 fi
10575 fi
10576
10577
10578 fi
10579
10580
10581
10582
10583
10584
10585
10586 CWARNFLAGS="$BASE_CFLAGS"
10587 if test "x$GCC" = xyes ; then
10588 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10589 fi
10590
10591
10592
10593
10594
10595
10596
10597
10598 # Check whether --enable-strict-compilation was given.
10599 if test ${enable_strict_compilation+y}
10600 then :
10601 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10602 else $as_nop
10603 STRICT_COMPILE=no
10604 fi
10605
10606
10607
10608
10609
10610
10611 STRICT_CFLAGS=""
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625 xorg_testset_save_CFLAGS="$CFLAGS"
10626
10627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10632 then :
10633 printf %s "(cached) " >&6
10634 else $as_nop
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 int i;
10638 _ACEOF
10639 if ac_fn_c_try_compile "$LINENO"
10640 then :
10641 xorg_cv_cc_flag_unknown_warning_option=yes
10642 else $as_nop
10643 xorg_cv_cc_flag_unknown_warning_option=no
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10646 fi
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10650 CFLAGS="$xorg_testset_save_CFLAGS"
10651 fi
10652
10653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656 fi
10657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10661 then :
10662 printf %s "(cached) " >&6
10663 else $as_nop
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 int i;
10667 _ACEOF
10668 if ac_fn_c_try_compile "$LINENO"
10669 then :
10670 xorg_cv_cc_flag_unused_command_line_argument=yes
10671 else $as_nop
10672 xorg_cv_cc_flag_unused_command_line_argument=no
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10675 fi
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10679 CFLAGS="$xorg_testset_save_CFLAGS"
10680 fi
10681
10682 found="no"
10683
10684 if test $found = "no" ; then
10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10687 fi
10688
10689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10691 fi
10692
10693 CFLAGS="$CFLAGS -pedantic"
10694
10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10696 printf %s "checking if $CC supports -pedantic... " >&6; }
10697 cacheid=xorg_cv_cc_flag__pedantic
10698 if eval test \${$cacheid+y}
10699 then :
10700 printf %s "(cached) " >&6
10701 else $as_nop
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 int i;
10705 int
10706 main (void)
10707 {
10708
10709 ;
10710 return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_link "$LINENO"
10714 then :
10715 eval $cacheid=yes
10716 else $as_nop
10717 eval $cacheid=no
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10720 conftest$ac_exeext conftest.$ac_ext
10721 fi
10722
10723
10724 CFLAGS="$xorg_testset_save_CFLAGS"
10725
10726 eval supported=\$$cacheid
10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10728 printf "%s\n" "$supported" >&6; }
10729 if test "$supported" = "yes" ; then
10730 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10731 found="yes"
10732 fi
10733 fi
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749 xorg_testset_save_CFLAGS="$CFLAGS"
10750
10751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10755 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10756 then :
10757 printf %s "(cached) " >&6
10758 else $as_nop
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 int i;
10762 _ACEOF
10763 if ac_fn_c_try_compile "$LINENO"
10764 then :
10765 xorg_cv_cc_flag_unknown_warning_option=yes
10766 else $as_nop
10767 xorg_cv_cc_flag_unknown_warning_option=no
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10770 fi
10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10774 CFLAGS="$xorg_testset_save_CFLAGS"
10775 fi
10776
10777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10780 fi
10781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10785 then :
10786 printf %s "(cached) " >&6
10787 else $as_nop
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790 int i;
10791 _ACEOF
10792 if ac_fn_c_try_compile "$LINENO"
10793 then :
10794 xorg_cv_cc_flag_unused_command_line_argument=yes
10795 else $as_nop
10796 xorg_cv_cc_flag_unused_command_line_argument=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10799 fi
10800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10803 CFLAGS="$xorg_testset_save_CFLAGS"
10804 fi
10805
10806 found="no"
10807
10808 if test $found = "no" ; then
10809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10811 fi
10812
10813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10815 fi
10816
10817 CFLAGS="$CFLAGS -Werror"
10818
10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10820 printf %s "checking if $CC supports -Werror... " >&6; }
10821 cacheid=xorg_cv_cc_flag__Werror
10822 if eval test \${$cacheid+y}
10823 then :
10824 printf %s "(cached) " >&6
10825 else $as_nop
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 int i;
10829 int
10830 main (void)
10831 {
10832
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 if ac_fn_c_try_link "$LINENO"
10838 then :
10839 eval $cacheid=yes
10840 else $as_nop
10841 eval $cacheid=no
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10844 conftest$ac_exeext conftest.$ac_ext
10845 fi
10846
10847
10848 CFLAGS="$xorg_testset_save_CFLAGS"
10849
10850 eval supported=\$$cacheid
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10852 printf "%s\n" "$supported" >&6; }
10853 if test "$supported" = "yes" ; then
10854 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10855 found="yes"
10856 fi
10857 fi
10858
10859 if test $found = "no" ; then
10860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10862 fi
10863
10864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10866 fi
10867
10868 CFLAGS="$CFLAGS -errwarn"
10869
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10871 printf %s "checking if $CC supports -errwarn... " >&6; }
10872 cacheid=xorg_cv_cc_flag__errwarn
10873 if eval test \${$cacheid+y}
10874 then :
10875 printf %s "(cached) " >&6
10876 else $as_nop
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879 int i;
10880 int
10881 main (void)
10882 {
10883
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"
10889 then :
10890 eval $cacheid=yes
10891 else $as_nop
10892 eval $cacheid=no
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10895 conftest$ac_exeext conftest.$ac_ext
10896 fi
10897
10898
10899 CFLAGS="$xorg_testset_save_CFLAGS"
10900
10901 eval supported=\$$cacheid
10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10903 printf "%s\n" "$supported" >&6; }
10904 if test "$supported" = "yes" ; then
10905 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10906 found="yes"
10907 fi
10908 fi
10909
10910
10911
10912 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10913 # activate it with -Werror, so we add it here explicitly.
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927 xorg_testset_save_CFLAGS="$CFLAGS"
10928
10929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10932 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10933 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10934 then :
10935 printf %s "(cached) " >&6
10936 else $as_nop
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10939 int i;
10940 _ACEOF
10941 if ac_fn_c_try_compile "$LINENO"
10942 then :
10943 xorg_cv_cc_flag_unknown_warning_option=yes
10944 else $as_nop
10945 xorg_cv_cc_flag_unknown_warning_option=no
10946 fi
10947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10948 fi
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10950 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10952 CFLAGS="$xorg_testset_save_CFLAGS"
10953 fi
10954
10955 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10958 fi
10959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10961 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10962 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10963 then :
10964 printf %s "(cached) " >&6
10965 else $as_nop
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968 int i;
10969 _ACEOF
10970 if ac_fn_c_try_compile "$LINENO"
10971 then :
10972 xorg_cv_cc_flag_unused_command_line_argument=yes
10973 else $as_nop
10974 xorg_cv_cc_flag_unused_command_line_argument=no
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10977 fi
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10979 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10981 CFLAGS="$xorg_testset_save_CFLAGS"
10982 fi
10983
10984 found="no"
10985
10986 if test $found = "no" ; then
10987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10989 fi
10990
10991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10993 fi
10994
10995 CFLAGS="$CFLAGS -Werror=attributes"
10996
10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10998 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10999 cacheid=xorg_cv_cc_flag__Werror_attributes
11000 if eval test \${$cacheid+y}
11001 then :
11002 printf %s "(cached) " >&6
11003 else $as_nop
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 int i;
11007 int
11008 main (void)
11009 {
11010
11011 ;
11012 return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"
11016 then :
11017 eval $cacheid=yes
11018 else $as_nop
11019 eval $cacheid=no
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11022 conftest$ac_exeext conftest.$ac_ext
11023 fi
11024
11025
11026 CFLAGS="$xorg_testset_save_CFLAGS"
11027
11028 eval supported=\$$cacheid
11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11030 printf "%s\n" "$supported" >&6; }
11031 if test "$supported" = "yes" ; then
11032 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11033 found="yes"
11034 fi
11035 fi
11036
11037
11038
11039 if test "x$STRICT_COMPILE" = "xyes"; then
11040 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11041 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11042 fi
11043
11044
11045
11046
11047
11048
11049 cat >>confdefs.h <<_ACEOF
11050 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11051 _ACEOF
11052
11053 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11054 if test "x$PVM" = "x"; then
11055 PVM="0"
11056 fi
11057
11058 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11059
11060 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11061 if test "x$PVP" = "x"; then
11062 PVP="0"
11063 fi
11064
11065 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11066
11067
11068
11069 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11070 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11071 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11072 touch \$(top_srcdir)/ChangeLog; \
11073 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11074
11075
11076
11077
11078 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11079 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11080 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11081 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11082 touch \$(top_srcdir)/INSTALL; \
11083 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11084
11085
11086
11087
11088
11089
11090 case $host_os in
11091 solaris*)
11092 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11093 # check for a man page file found in later versions that use
11094 # traditional section numbers instead
11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11096 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11097 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11098 then :
11099 printf %s "(cached) " >&6
11100 else $as_nop
11101 test "$cross_compiling" = yes &&
11102 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11103 if test -r "/usr/share/man/man7/attributes.7"; then
11104 ac_cv_file__usr_share_man_man7_attributes_7=yes
11105 else
11106 ac_cv_file__usr_share_man_man7_attributes_7=no
11107 fi
11108 fi
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11110 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11111 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11112 then :
11113 SYSV_MAN_SECTIONS=false
11114 else $as_nop
11115 SYSV_MAN_SECTIONS=true
11116 fi
11117
11118 ;;
11119 *) SYSV_MAN_SECTIONS=false ;;
11120 esac
11121
11122 if test x$APP_MAN_SUFFIX = x ; then
11123 APP_MAN_SUFFIX=1
11124 fi
11125 if test x$APP_MAN_DIR = x ; then
11126 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11127 fi
11128
11129 if test x$LIB_MAN_SUFFIX = x ; then
11130 LIB_MAN_SUFFIX=3
11131 fi
11132 if test x$LIB_MAN_DIR = x ; then
11133 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11134 fi
11135
11136 if test x$FILE_MAN_SUFFIX = x ; then
11137 case $SYSV_MAN_SECTIONS in
11138 true) FILE_MAN_SUFFIX=4 ;;
11139 *) FILE_MAN_SUFFIX=5 ;;
11140 esac
11141 fi
11142 if test x$FILE_MAN_DIR = x ; then
11143 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11144 fi
11145
11146 if test x$MISC_MAN_SUFFIX = x ; then
11147 case $SYSV_MAN_SECTIONS in
11148 true) MISC_MAN_SUFFIX=5 ;;
11149 *) MISC_MAN_SUFFIX=7 ;;
11150 esac
11151 fi
11152 if test x$MISC_MAN_DIR = x ; then
11153 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11154 fi
11155
11156 if test x$DRIVER_MAN_SUFFIX = x ; then
11157 case $SYSV_MAN_SECTIONS in
11158 true) DRIVER_MAN_SUFFIX=7 ;;
11159 *) DRIVER_MAN_SUFFIX=4 ;;
11160 esac
11161 fi
11162 if test x$DRIVER_MAN_DIR = x ; then
11163 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11164 fi
11165
11166 if test x$ADMIN_MAN_SUFFIX = x ; then
11167 case $SYSV_MAN_SECTIONS in
11168 true) ADMIN_MAN_SUFFIX=1m ;;
11169 *) ADMIN_MAN_SUFFIX=8 ;;
11170 esac
11171 fi
11172 if test x$ADMIN_MAN_DIR = x ; then
11173 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11174 fi
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190 XORG_MAN_PAGE="X Version 11"
11191
11192 MAN_SUBSTS="\
11193 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11194 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11195 -e 's|__xservername__|Xorg|g' \
11196 -e 's|__xconfigfile__|xorg.conf|g' \
11197 -e 's|__projectroot__|\$(prefix)|g' \
11198 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11199 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11200 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11201 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11202 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11203 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11204 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11205
11206
11207
11208 # Check whether --enable-silent-rules was given.
11209 if test ${enable_silent_rules+y}
11210 then :
11211 enableval=$enable_silent_rules;
11212 fi
11213
11214 case $enable_silent_rules in # (((
11215 yes) AM_DEFAULT_VERBOSITY=0;;
11216 no) AM_DEFAULT_VERBOSITY=1;;
11217 *) AM_DEFAULT_VERBOSITY=0;;
11218 esac
11219 am_make=${MAKE-make}
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11221 printf %s "checking whether $am_make supports nested variables... " >&6; }
11222 if test ${am_cv_make_support_nested_variables+y}
11223 then :
11224 printf %s "(cached) " >&6
11225 else $as_nop
11226 if printf "%s\n" 'TRUE=$(BAR$(V))
11227 BAR0=false
11228 BAR1=true
11229 V=1
11230 am__doit:
11231 @$(TRUE)
11232 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11233 am_cv_make_support_nested_variables=yes
11234 else
11235 am_cv_make_support_nested_variables=no
11236 fi
11237 fi
11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11239 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11240 if test $am_cv_make_support_nested_variables = yes; then
11241 AM_V='$(V)'
11242 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11243 else
11244 AM_V=$AM_DEFAULT_VERBOSITY
11245 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11246 fi
11247 AM_BACKSLASH='\'
11248
11249
11250
11251 # Initialize libtool
11252 # Check whether --enable-static was given.
11253 if test ${enable_static+y}
11254 then :
11255 enableval=$enable_static; p=${PACKAGE-default}
11256 case $enableval in
11257 yes) enable_static=yes ;;
11258 no) enable_static=no ;;
11259 *)
11260 enable_static=no
11261 # Look at the argument we got. We use all the common list separators.
11262 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11263 for pkg in $enableval; do
11264 IFS=$lt_save_ifs
11265 if test "X$pkg" = "X$p"; then
11266 enable_static=yes
11267 fi
11268 done
11269 IFS=$lt_save_ifs
11270 ;;
11271 esac
11272 else $as_nop
11273 enable_static=no
11274 fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284 case `pwd` in
11285 *\ * | *\ *)
11286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11287 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11288 esac
11289
11290
11291
11292 macro_version='2.4.7'
11293 macro_revision='2.4.7'
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308 ltmain=$ac_aux_dir/ltmain.sh
11309
11310 # Backslashify metacharacters that are still active within
11311 # double-quoted strings.
11312 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11313
11314 # Same as above, but do not quote variable references.
11315 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11316
11317 # Sed substitution to delay expansion of an escaped shell variable in a
11318 # double_quote_subst'ed string.
11319 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11320
11321 # Sed substitution to delay expansion of an escaped single quote.
11322 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11323
11324 # Sed substitution to avoid accidental globbing in evaled expressions
11325 no_glob_subst='s/\*/\\\*/g'
11326
11327 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11328 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11329 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11330
11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11332 printf %s "checking how to print strings... " >&6; }
11333 # Test print first, because it will be a builtin if present.
11334 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11335 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11336 ECHO='print -r --'
11337 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11338 ECHO='printf %s\n'
11339 else
11340 # Use this function as a fallback that always works.
11341 func_fallback_echo ()
11342 {
11343 eval 'cat <<_LTECHO_EOF
11344 $1
11345 _LTECHO_EOF'
11346 }
11347 ECHO='func_fallback_echo'
11348 fi
11349
11350 # func_echo_all arg...
11351 # Invoke $ECHO with all args, space-separated.
11352 func_echo_all ()
11353 {
11354 $ECHO ""
11355 }
11356
11357 case $ECHO in
11358 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11359 printf "%s\n" "printf" >&6; } ;;
11360 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11361 printf "%s\n" "print -r" >&6; } ;;
11362 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11363 printf "%s\n" "cat" >&6; } ;;
11364 esac
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11380 printf %s "checking for a sed that does not truncate output... " >&6; }
11381 if test ${ac_cv_path_SED+y}
11382 then :
11383 printf %s "(cached) " >&6
11384 else $as_nop
11385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11386 for ac_i in 1 2 3 4 5 6 7; do
11387 ac_script="$ac_script$as_nl$ac_script"
11388 done
11389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11390 { ac_script=; unset ac_script;}
11391 if test -z "$SED"; then
11392 ac_path_SED_found=false
11393 # Loop through the user's path and test for each of PROGNAME-LIST
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11396 do
11397 IFS=$as_save_IFS
11398 case $as_dir in #(((
11399 '') as_dir=./ ;;
11400 */) ;;
11401 *) as_dir=$as_dir/ ;;
11402 esac
11403 for ac_prog in sed gsed
11404 do
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11407 as_fn_executable_p "$ac_path_SED" || continue
11408 # Check for GNU ac_path_SED and select it if it is found.
11409 # Check for GNU $ac_path_SED
11410 case `"$ac_path_SED" --version 2>&1` in
11411 *GNU*)
11412 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11413 *)
11414 ac_count=0
11415 printf %s 0123456789 >"conftest.in"
11416 while :
11417 do
11418 cat "conftest.in" "conftest.in" >"conftest.tmp"
11419 mv "conftest.tmp" "conftest.in"
11420 cp "conftest.in" "conftest.nl"
11421 printf "%s\n" '' >> "conftest.nl"
11422 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11424 as_fn_arith $ac_count + 1 && ac_count=$as_val
11425 if test $ac_count -gt ${ac_path_SED_max-0}; then
11426 # Best one so far, save it but keep looking for a better one
11427 ac_cv_path_SED="$ac_path_SED"
11428 ac_path_SED_max=$ac_count
11429 fi
11430 # 10*(2^10) chars as input seems more than enough
11431 test $ac_count -gt 10 && break
11432 done
11433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11434 esac
11435
11436 $ac_path_SED_found && break 3
11437 done
11438 done
11439 done
11440 IFS=$as_save_IFS
11441 if test -z "$ac_cv_path_SED"; then
11442 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11443 fi
11444 else
11445 ac_cv_path_SED=$SED
11446 fi
11447
11448 fi
11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11450 printf "%s\n" "$ac_cv_path_SED" >&6; }
11451 SED="$ac_cv_path_SED"
11452 rm -f conftest.sed
11453
11454 test -z "$SED" && SED=sed
11455 Xsed="$SED -e 1s/^X//"
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11468 printf %s "checking for grep that handles long lines and -e... " >&6; }
11469 if test ${ac_cv_path_GREP+y}
11470 then :
11471 printf %s "(cached) " >&6
11472 else $as_nop
11473 if test -z "$GREP"; then
11474 ac_path_GREP_found=false
11475 # Loop through the user's path and test for each of PROGNAME-LIST
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11478 do
11479 IFS=$as_save_IFS
11480 case $as_dir in #(((
11481 '') as_dir=./ ;;
11482 */) ;;
11483 *) as_dir=$as_dir/ ;;
11484 esac
11485 for ac_prog in grep ggrep
11486 do
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11489 as_fn_executable_p "$ac_path_GREP" || continue
11490 # Check for GNU ac_path_GREP and select it if it is found.
11491 # Check for GNU $ac_path_GREP
11492 case `"$ac_path_GREP" --version 2>&1` in
11493 *GNU*)
11494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11495 *)
11496 ac_count=0
11497 printf %s 0123456789 >"conftest.in"
11498 while :
11499 do
11500 cat "conftest.in" "conftest.in" >"conftest.tmp"
11501 mv "conftest.tmp" "conftest.in"
11502 cp "conftest.in" "conftest.nl"
11503 printf "%s\n" 'GREP' >> "conftest.nl"
11504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11506 as_fn_arith $ac_count + 1 && ac_count=$as_val
11507 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11508 # Best one so far, save it but keep looking for a better one
11509 ac_cv_path_GREP="$ac_path_GREP"
11510 ac_path_GREP_max=$ac_count
11511 fi
11512 # 10*(2^10) chars as input seems more than enough
11513 test $ac_count -gt 10 && break
11514 done
11515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11516 esac
11517
11518 $ac_path_GREP_found && break 3
11519 done
11520 done
11521 done
11522 IFS=$as_save_IFS
11523 if test -z "$ac_cv_path_GREP"; then
11524 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11525 fi
11526 else
11527 ac_cv_path_GREP=$GREP
11528 fi
11529
11530 fi
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11532 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11533 GREP="$ac_cv_path_GREP"
11534
11535
11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11537 printf %s "checking for egrep... " >&6; }
11538 if test ${ac_cv_path_EGREP+y}
11539 then :
11540 printf %s "(cached) " >&6
11541 else $as_nop
11542 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11543 then ac_cv_path_EGREP="$GREP -E"
11544 else
11545 if test -z "$EGREP"; then
11546 ac_path_EGREP_found=false
11547 # Loop through the user's path and test for each of PROGNAME-LIST
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11550 do
11551 IFS=$as_save_IFS
11552 case $as_dir in #(((
11553 '') as_dir=./ ;;
11554 */) ;;
11555 *) as_dir=$as_dir/ ;;
11556 esac
11557 for ac_prog in egrep
11558 do
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11561 as_fn_executable_p "$ac_path_EGREP" || continue
11562 # Check for GNU ac_path_EGREP and select it if it is found.
11563 # Check for GNU $ac_path_EGREP
11564 case `"$ac_path_EGREP" --version 2>&1` in
11565 *GNU*)
11566 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11567 *)
11568 ac_count=0
11569 printf %s 0123456789 >"conftest.in"
11570 while :
11571 do
11572 cat "conftest.in" "conftest.in" >"conftest.tmp"
11573 mv "conftest.tmp" "conftest.in"
11574 cp "conftest.in" "conftest.nl"
11575 printf "%s\n" 'EGREP' >> "conftest.nl"
11576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11578 as_fn_arith $ac_count + 1 && ac_count=$as_val
11579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11580 # Best one so far, save it but keep looking for a better one
11581 ac_cv_path_EGREP="$ac_path_EGREP"
11582 ac_path_EGREP_max=$ac_count
11583 fi
11584 # 10*(2^10) chars as input seems more than enough
11585 test $ac_count -gt 10 && break
11586 done
11587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11588 esac
11589
11590 $ac_path_EGREP_found && break 3
11591 done
11592 done
11593 done
11594 IFS=$as_save_IFS
11595 if test -z "$ac_cv_path_EGREP"; then
11596 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11597 fi
11598 else
11599 ac_cv_path_EGREP=$EGREP
11600 fi
11601
11602 fi
11603 fi
11604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11605 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11606 EGREP="$ac_cv_path_EGREP"
11607
11608
11609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11610 printf %s "checking for fgrep... " >&6; }
11611 if test ${ac_cv_path_FGREP+y}
11612 then :
11613 printf %s "(cached) " >&6
11614 else $as_nop
11615 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11616 then ac_cv_path_FGREP="$GREP -F"
11617 else
11618 if test -z "$FGREP"; then
11619 ac_path_FGREP_found=false
11620 # Loop through the user's path and test for each of PROGNAME-LIST
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11623 do
11624 IFS=$as_save_IFS
11625 case $as_dir in #(((
11626 '') as_dir=./ ;;
11627 */) ;;
11628 *) as_dir=$as_dir/ ;;
11629 esac
11630 for ac_prog in fgrep
11631 do
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11634 as_fn_executable_p "$ac_path_FGREP" || continue
11635 # Check for GNU ac_path_FGREP and select it if it is found.
11636 # Check for GNU $ac_path_FGREP
11637 case `"$ac_path_FGREP" --version 2>&1` in
11638 *GNU*)
11639 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11640 *)
11641 ac_count=0
11642 printf %s 0123456789 >"conftest.in"
11643 while :
11644 do
11645 cat "conftest.in" "conftest.in" >"conftest.tmp"
11646 mv "conftest.tmp" "conftest.in"
11647 cp "conftest.in" "conftest.nl"
11648 printf "%s\n" 'FGREP' >> "conftest.nl"
11649 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11651 as_fn_arith $ac_count + 1 && ac_count=$as_val
11652 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11653 # Best one so far, save it but keep looking for a better one
11654 ac_cv_path_FGREP="$ac_path_FGREP"
11655 ac_path_FGREP_max=$ac_count
11656 fi
11657 # 10*(2^10) chars as input seems more than enough
11658 test $ac_count -gt 10 && break
11659 done
11660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11661 esac
11662
11663 $ac_path_FGREP_found && break 3
11664 done
11665 done
11666 done
11667 IFS=$as_save_IFS
11668 if test -z "$ac_cv_path_FGREP"; then
11669 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11670 fi
11671 else
11672 ac_cv_path_FGREP=$FGREP
11673 fi
11674
11675 fi
11676 fi
11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11678 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11679 FGREP="$ac_cv_path_FGREP"
11680
11681
11682 test -z "$GREP" && GREP=grep
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702 # Check whether --with-gnu-ld was given.
11703 if test ${with_gnu_ld+y}
11704 then :
11705 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11706 else $as_nop
11707 with_gnu_ld=no
11708 fi
11709
11710 ac_prog=ld
11711 if test yes = "$GCC"; then
11712 # Check if gcc -print-prog-name=ld gives a path.
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11714 printf %s "checking for ld used by $CC... " >&6; }
11715 case $host in
11716 *-*-mingw*)
11717 # gcc leaves a trailing carriage return, which upsets mingw
11718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11719 *)
11720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11721 esac
11722 case $ac_prog in
11723 # Accept absolute paths.
11724 [\\/]* | ?:[\\/]*)
11725 re_direlt='/[^/][^/]*/\.\./'
11726 # Canonicalize the pathname of ld
11727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11730 done
11731 test -z "$LD" && LD=$ac_prog
11732 ;;
11733 "")
11734 # If it fails, then pretend we aren't using GCC.
11735 ac_prog=ld
11736 ;;
11737 *)
11738 # If it is relative, then search for the first ld in PATH.
11739 with_gnu_ld=unknown
11740 ;;
11741 esac
11742 elif test yes = "$with_gnu_ld"; then
11743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11744 printf %s "checking for GNU ld... " >&6; }
11745 else
11746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11747 printf %s "checking for non-GNU ld... " >&6; }
11748 fi
11749 if test ${lt_cv_path_LD+y}
11750 then :
11751 printf %s "(cached) " >&6
11752 else $as_nop
11753 if test -z "$LD"; then
11754 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11755 for ac_dir in $PATH; do
11756 IFS=$lt_save_ifs
11757 test -z "$ac_dir" && ac_dir=.
11758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11759 lt_cv_path_LD=$ac_dir/$ac_prog
11760 # Check to see if the program is GNU ld. I'd rather use --version,
11761 # but apparently some variants of GNU ld only accept -v.
11762 # Break only if it was the GNU/non-GNU ld that we prefer.
11763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11764 *GNU* | *'with BFD'*)
11765 test no != "$with_gnu_ld" && break
11766 ;;
11767 *)
11768 test yes != "$with_gnu_ld" && break
11769 ;;
11770 esac
11771 fi
11772 done
11773 IFS=$lt_save_ifs
11774 else
11775 lt_cv_path_LD=$LD # Let the user override the test with a path.
11776 fi
11777 fi
11778
11779 LD=$lt_cv_path_LD
11780 if test -n "$LD"; then
11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11782 printf "%s\n" "$LD" >&6; }
11783 else
11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 printf "%s\n" "no" >&6; }
11786 fi
11787 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11789 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11790 if test ${lt_cv_prog_gnu_ld+y}
11791 then :
11792 printf %s "(cached) " >&6
11793 else $as_nop
11794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11795 case `$LD -v 2>&1 </dev/null` in
11796 *GNU* | *'with BFD'*)
11797 lt_cv_prog_gnu_ld=yes
11798 ;;
11799 *)
11800 lt_cv_prog_gnu_ld=no
11801 ;;
11802 esac
11803 fi
11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11805 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11806 with_gnu_ld=$lt_cv_prog_gnu_ld
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11817 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11818 if test ${lt_cv_path_NM+y}
11819 then :
11820 printf %s "(cached) " >&6
11821 else $as_nop
11822 if test -n "$NM"; then
11823 # Let the user override the test.
11824 lt_cv_path_NM=$NM
11825 else
11826 lt_nm_to_check=${ac_tool_prefix}nm
11827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11828 lt_nm_to_check="$lt_nm_to_check nm"
11829 fi
11830 for lt_tmp_nm in $lt_nm_to_check; do
11831 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11833 IFS=$lt_save_ifs
11834 test -z "$ac_dir" && ac_dir=.
11835 tmp_nm=$ac_dir/$lt_tmp_nm
11836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11837 # Check to see if the nm accepts a BSD-compat flag.
11838 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11839 # nm: unknown option "B" ignored
11840 # Tru64's nm complains that /dev/null is an invalid object file
11841 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11842 case $build_os in
11843 mingw*) lt_bad_file=conftest.nm/nofile ;;
11844 *) lt_bad_file=/dev/null ;;
11845 esac
11846 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11847 *$lt_bad_file* | *'Invalid file or object type'*)
11848 lt_cv_path_NM="$tmp_nm -B"
11849 break 2
11850 ;;
11851 *)
11852 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11853 */dev/null*)
11854 lt_cv_path_NM="$tmp_nm -p"
11855 break 2
11856 ;;
11857 *)
11858 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11859 continue # so that we can try to find one that supports BSD flags
11860 ;;
11861 esac
11862 ;;
11863 esac
11864 fi
11865 done
11866 IFS=$lt_save_ifs
11867 done
11868 : ${lt_cv_path_NM=no}
11869 fi
11870 fi
11871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11872 printf "%s\n" "$lt_cv_path_NM" >&6; }
11873 if test no != "$lt_cv_path_NM"; then
11874 NM=$lt_cv_path_NM
11875 else
11876 # Didn't find any BSD compatible name lister, look for dumpbin.
11877 if test -n "$DUMPBIN"; then :
11878 # Let the user override the test.
11879 else
11880 if test -n "$ac_tool_prefix"; then
11881 for ac_prog in dumpbin "link -dump"
11882 do
11883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 printf %s "checking for $ac_word... " >&6; }
11887 if test ${ac_cv_prog_DUMPBIN+y}
11888 then :
11889 printf %s "(cached) " >&6
11890 else $as_nop
11891 if test -n "$DUMPBIN"; then
11892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11893 else
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11896 do
11897 IFS=$as_save_IFS
11898 case $as_dir in #(((
11899 '') as_dir=./ ;;
11900 */) ;;
11901 *) as_dir=$as_dir/ ;;
11902 esac
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11907 break 2
11908 fi
11909 done
11910 done
11911 IFS=$as_save_IFS
11912
11913 fi
11914 fi
11915 DUMPBIN=$ac_cv_prog_DUMPBIN
11916 if test -n "$DUMPBIN"; then
11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11918 printf "%s\n" "$DUMPBIN" >&6; }
11919 else
11920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 printf "%s\n" "no" >&6; }
11922 fi
11923
11924
11925 test -n "$DUMPBIN" && break
11926 done
11927 fi
11928 if test -z "$DUMPBIN"; then
11929 ac_ct_DUMPBIN=$DUMPBIN
11930 for ac_prog in dumpbin "link -dump"
11931 do
11932 # Extract the first word of "$ac_prog", so it can be a program name with args.
11933 set dummy $ac_prog; ac_word=$2
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 printf %s "checking for $ac_word... " >&6; }
11936 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11937 then :
11938 printf %s "(cached) " >&6
11939 else $as_nop
11940 if test -n "$ac_ct_DUMPBIN"; then
11941 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11942 else
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11945 do
11946 IFS=$as_save_IFS
11947 case $as_dir in #(((
11948 '') as_dir=./ ;;
11949 */) ;;
11950 *) as_dir=$as_dir/ ;;
11951 esac
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11956 break 2
11957 fi
11958 done
11959 done
11960 IFS=$as_save_IFS
11961
11962 fi
11963 fi
11964 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11965 if test -n "$ac_ct_DUMPBIN"; then
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11967 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11968 else
11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 printf "%s\n" "no" >&6; }
11971 fi
11972
11973
11974 test -n "$ac_ct_DUMPBIN" && break
11975 done
11976
11977 if test "x$ac_ct_DUMPBIN" = x; then
11978 DUMPBIN=":"
11979 else
11980 case $cross_compiling:$ac_tool_warned in
11981 yes:)
11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11984 ac_tool_warned=yes ;;
11985 esac
11986 DUMPBIN=$ac_ct_DUMPBIN
11987 fi
11988 fi
11989
11990 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11991 *COFF*)
11992 DUMPBIN="$DUMPBIN -symbols -headers"
11993 ;;
11994 *)
11995 DUMPBIN=:
11996 ;;
11997 esac
11998 fi
11999
12000 if test : != "$DUMPBIN"; then
12001 NM=$DUMPBIN
12002 fi
12003 fi
12004 test -z "$NM" && NM=nm
12005
12006
12007
12008
12009
12010
12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12012 printf %s "checking the name lister ($NM) interface... " >&6; }
12013 if test ${lt_cv_nm_interface+y}
12014 then :
12015 printf %s "(cached) " >&6
12016 else $as_nop
12017 lt_cv_nm_interface="BSD nm"
12018 echo "int some_variable = 0;" > conftest.$ac_ext
12019 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12020 (eval "$ac_compile" 2>conftest.err)
12021 cat conftest.err >&5
12022 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12023 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12024 cat conftest.err >&5
12025 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12026 cat conftest.out >&5
12027 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12028 lt_cv_nm_interface="MS dumpbin"
12029 fi
12030 rm -f conftest*
12031 fi
12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12033 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12034
12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12036 printf %s "checking whether ln -s works... " >&6; }
12037 LN_S=$as_ln_s
12038 if test "$LN_S" = "ln -s"; then
12039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 printf "%s\n" "yes" >&6; }
12041 else
12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12043 printf "%s\n" "no, using $LN_S" >&6; }
12044 fi
12045
12046 # find the maximum length of command line arguments
12047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12048 printf %s "checking the maximum length of command line arguments... " >&6; }
12049 if test ${lt_cv_sys_max_cmd_len+y}
12050 then :
12051 printf %s "(cached) " >&6
12052 else $as_nop
12053 i=0
12054 teststring=ABCD
12055
12056 case $build_os in
12057 msdosdjgpp*)
12058 # On DJGPP, this test can blow up pretty badly due to problems in libc
12059 # (any single argument exceeding 2000 bytes causes a buffer overrun
12060 # during glob expansion). Even if it were fixed, the result of this
12061 # check would be larger than it should be.
12062 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12063 ;;
12064
12065 gnu*)
12066 # Under GNU Hurd, this test is not required because there is
12067 # no limit to the length of command line arguments.
12068 # Libtool will interpret -1 as no limit whatsoever
12069 lt_cv_sys_max_cmd_len=-1;
12070 ;;
12071
12072 cygwin* | mingw* | cegcc*)
12073 # On Win9x/ME, this test blows up -- it succeeds, but takes
12074 # about 5 minutes as the teststring grows exponentially.
12075 # Worse, since 9x/ME are not pre-emptively multitasking,
12076 # you end up with a "frozen" computer, even though with patience
12077 # the test eventually succeeds (with a max line length of 256k).
12078 # Instead, let's just punt: use the minimum linelength reported by
12079 # all of the supported platforms: 8192 (on NT/2K/XP).
12080 lt_cv_sys_max_cmd_len=8192;
12081 ;;
12082
12083 mint*)
12084 # On MiNT this can take a long time and run out of memory.
12085 lt_cv_sys_max_cmd_len=8192;
12086 ;;
12087
12088 amigaos*)
12089 # On AmigaOS with pdksh, this test takes hours, literally.
12090 # So we just punt and use a minimum line length of 8192.
12091 lt_cv_sys_max_cmd_len=8192;
12092 ;;
12093
12094 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12095 # This has been around since 386BSD, at least. Likely further.
12096 if test -x /sbin/sysctl; then
12097 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12098 elif test -x /usr/sbin/sysctl; then
12099 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12100 else
12101 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12102 fi
12103 # And add a safety zone
12104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12106 ;;
12107
12108 interix*)
12109 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12110 lt_cv_sys_max_cmd_len=196608
12111 ;;
12112
12113 os2*)
12114 # The test takes a long time on OS/2.
12115 lt_cv_sys_max_cmd_len=8192
12116 ;;
12117
12118 osf*)
12119 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12120 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12121 # nice to cause kernel panics so lets avoid the loop below.
12122 # First set a reasonable default.
12123 lt_cv_sys_max_cmd_len=16384
12124 #
12125 if test -x /sbin/sysconfig; then
12126 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12127 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12128 esac
12129 fi
12130 ;;
12131 sco3.2v5*)
12132 lt_cv_sys_max_cmd_len=102400
12133 ;;
12134 sysv5* | sco5v6* | sysv4.2uw2*)
12135 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12136 if test -n "$kargmax"; then
12137 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12138 else
12139 lt_cv_sys_max_cmd_len=32768
12140 fi
12141 ;;
12142 *)
12143 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12144 if test -n "$lt_cv_sys_max_cmd_len" && \
12145 test undefined != "$lt_cv_sys_max_cmd_len"; then
12146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12148 else
12149 # Make teststring a little bigger before we do anything with it.
12150 # a 1K string should be a reasonable start.
12151 for i in 1 2 3 4 5 6 7 8; do
12152 teststring=$teststring$teststring
12153 done
12154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12155 # If test is not a shell built-in, we'll probably end up computing a
12156 # maximum length that is only half of the actual maximum length, but
12157 # we can't tell.
12158 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12159 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12160 test 17 != "$i" # 1/2 MB should be enough
12161 do
12162 i=`expr $i + 1`
12163 teststring=$teststring$teststring
12164 done
12165 # Only check the string length outside the loop.
12166 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12167 teststring=
12168 # Add a significant safety factor because C++ compilers can tack on
12169 # massive amounts of additional arguments before passing them to the
12170 # linker. It appears as though 1/2 is a usable value.
12171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12172 fi
12173 ;;
12174 esac
12175
12176 fi
12177
12178 if test -n "$lt_cv_sys_max_cmd_len"; then
12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12180 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12181 else
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12183 printf "%s\n" "none" >&6; }
12184 fi
12185 max_cmd_len=$lt_cv_sys_max_cmd_len
12186
12187
12188
12189
12190
12191
12192 : ${CP="cp -f"}
12193 : ${MV="mv -f"}
12194 : ${RM="rm -f"}
12195
12196 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12197 lt_unset=unset
12198 else
12199 lt_unset=false
12200 fi
12201
12202
12203
12204
12205
12206 # test EBCDIC or ASCII
12207 case `echo X|tr X '\101'` in
12208 A) # ASCII based system
12209 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12210 lt_SP2NL='tr \040 \012'
12211 lt_NL2SP='tr \015\012 \040\040'
12212 ;;
12213 *) # EBCDIC based system
12214 lt_SP2NL='tr \100 \n'
12215 lt_NL2SP='tr \r\n \100\100'
12216 ;;
12217 esac
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12228 printf %s "checking how to convert $build file names to $host format... " >&6; }
12229 if test ${lt_cv_to_host_file_cmd+y}
12230 then :
12231 printf %s "(cached) " >&6
12232 else $as_nop
12233 case $host in
12234 *-*-mingw* )
12235 case $build in
12236 *-*-mingw* ) # actually msys
12237 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12238 ;;
12239 *-*-cygwin* )
12240 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12241 ;;
12242 * ) # otherwise, assume *nix
12243 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12244 ;;
12245 esac
12246 ;;
12247 *-*-cygwin* )
12248 case $build in
12249 *-*-mingw* ) # actually msys
12250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12251 ;;
12252 *-*-cygwin* )
12253 lt_cv_to_host_file_cmd=func_convert_file_noop
12254 ;;
12255 * ) # otherwise, assume *nix
12256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12257 ;;
12258 esac
12259 ;;
12260 * ) # unhandled hosts (and "normal" native builds)
12261 lt_cv_to_host_file_cmd=func_convert_file_noop
12262 ;;
12263 esac
12264
12265 fi
12266
12267 to_host_file_cmd=$lt_cv_to_host_file_cmd
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12269 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12270
12271
12272
12273
12274
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12276 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12277 if test ${lt_cv_to_tool_file_cmd+y}
12278 then :
12279 printf %s "(cached) " >&6
12280 else $as_nop
12281 #assume ordinary cross tools, or native build.
12282 lt_cv_to_tool_file_cmd=func_convert_file_noop
12283 case $host in
12284 *-*-mingw* )
12285 case $build in
12286 *-*-mingw* ) # actually msys
12287 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12288 ;;
12289 esac
12290 ;;
12291 esac
12292
12293 fi
12294
12295 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12297 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12298
12299
12300
12301
12302
12303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12304 printf %s "checking for $LD option to reload object files... " >&6; }
12305 if test ${lt_cv_ld_reload_flag+y}
12306 then :
12307 printf %s "(cached) " >&6
12308 else $as_nop
12309 lt_cv_ld_reload_flag='-r'
12310 fi
12311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12312 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12313 reload_flag=$lt_cv_ld_reload_flag
12314 case $reload_flag in
12315 "" | " "*) ;;
12316 *) reload_flag=" $reload_flag" ;;
12317 esac
12318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12319 case $host_os in
12320 cygwin* | mingw* | pw32* | cegcc*)
12321 if test yes != "$GCC"; then
12322 reload_cmds=false
12323 fi
12324 ;;
12325 darwin*)
12326 if test yes = "$GCC"; then
12327 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12328 else
12329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12330 fi
12331 ;;
12332 esac
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342 if test -n "$ac_tool_prefix"; then
12343 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12344 set dummy ${ac_tool_prefix}file; ac_word=$2
12345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 printf %s "checking for $ac_word... " >&6; }
12347 if test ${ac_cv_prog_FILECMD+y}
12348 then :
12349 printf %s "(cached) " >&6
12350 else $as_nop
12351 if test -n "$FILECMD"; then
12352 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12353 else
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12356 do
12357 IFS=$as_save_IFS
12358 case $as_dir in #(((
12359 '') as_dir=./ ;;
12360 */) ;;
12361 *) as_dir=$as_dir/ ;;
12362 esac
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12365 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12367 break 2
12368 fi
12369 done
12370 done
12371 IFS=$as_save_IFS
12372
12373 fi
12374 fi
12375 FILECMD=$ac_cv_prog_FILECMD
12376 if test -n "$FILECMD"; then
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12378 printf "%s\n" "$FILECMD" >&6; }
12379 else
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 printf "%s\n" "no" >&6; }
12382 fi
12383
12384
12385 fi
12386 if test -z "$ac_cv_prog_FILECMD"; then
12387 ac_ct_FILECMD=$FILECMD
12388 # Extract the first word of "file", so it can be a program name with args.
12389 set dummy file; ac_word=$2
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 printf %s "checking for $ac_word... " >&6; }
12392 if test ${ac_cv_prog_ac_ct_FILECMD+y}
12393 then :
12394 printf %s "(cached) " >&6
12395 else $as_nop
12396 if test -n "$ac_ct_FILECMD"; then
12397 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402 IFS=$as_save_IFS
12403 case $as_dir in #(((
12404 '') as_dir=./ ;;
12405 */) ;;
12406 *) as_dir=$as_dir/ ;;
12407 esac
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12410 ac_cv_prog_ac_ct_FILECMD="file"
12411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12412 break 2
12413 fi
12414 done
12415 done
12416 IFS=$as_save_IFS
12417
12418 fi
12419 fi
12420 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12421 if test -n "$ac_ct_FILECMD"; then
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12423 printf "%s\n" "$ac_ct_FILECMD" >&6; }
12424 else
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 printf "%s\n" "no" >&6; }
12427 fi
12428
12429 if test "x$ac_ct_FILECMD" = x; then
12430 FILECMD=":"
12431 else
12432 case $cross_compiling:$ac_tool_warned in
12433 yes:)
12434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12435 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12436 ac_tool_warned=yes ;;
12437 esac
12438 FILECMD=$ac_ct_FILECMD
12439 fi
12440 else
12441 FILECMD="$ac_cv_prog_FILECMD"
12442 fi
12443
12444
12445
12446
12447
12448
12449
12450 if test -n "$ac_tool_prefix"; then
12451 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12452 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454 printf %s "checking for $ac_word... " >&6; }
12455 if test ${ac_cv_prog_OBJDUMP+y}
12456 then :
12457 printf %s "(cached) " >&6
12458 else $as_nop
12459 if test -n "$OBJDUMP"; then
12460 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12461 else
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465 IFS=$as_save_IFS
12466 case $as_dir in #(((
12467 '') as_dir=./ ;;
12468 */) ;;
12469 *) as_dir=$as_dir/ ;;
12470 esac
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12473 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477 done
12478 done
12479 IFS=$as_save_IFS
12480
12481 fi
12482 fi
12483 OBJDUMP=$ac_cv_prog_OBJDUMP
12484 if test -n "$OBJDUMP"; then
12485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12486 printf "%s\n" "$OBJDUMP" >&6; }
12487 else
12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 printf "%s\n" "no" >&6; }
12490 fi
12491
12492
12493 fi
12494 if test -z "$ac_cv_prog_OBJDUMP"; then
12495 ac_ct_OBJDUMP=$OBJDUMP
12496 # Extract the first word of "objdump", so it can be a program name with args.
12497 set dummy objdump; ac_word=$2
12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 printf %s "checking for $ac_word... " >&6; }
12500 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12501 then :
12502 printf %s "(cached) " >&6
12503 else $as_nop
12504 if test -n "$ac_ct_OBJDUMP"; then
12505 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12506 else
12507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508 for as_dir in $PATH
12509 do
12510 IFS=$as_save_IFS
12511 case $as_dir in #(((
12512 '') as_dir=./ ;;
12513 */) ;;
12514 *) as_dir=$as_dir/ ;;
12515 esac
12516 for ac_exec_ext in '' $ac_executable_extensions; do
12517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12518 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12520 break 2
12521 fi
12522 done
12523 done
12524 IFS=$as_save_IFS
12525
12526 fi
12527 fi
12528 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12529 if test -n "$ac_ct_OBJDUMP"; then
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12531 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12532 else
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 printf "%s\n" "no" >&6; }
12535 fi
12536
12537 if test "x$ac_ct_OBJDUMP" = x; then
12538 OBJDUMP="false"
12539 else
12540 case $cross_compiling:$ac_tool_warned in
12541 yes:)
12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12543 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12544 ac_tool_warned=yes ;;
12545 esac
12546 OBJDUMP=$ac_ct_OBJDUMP
12547 fi
12548 else
12549 OBJDUMP="$ac_cv_prog_OBJDUMP"
12550 fi
12551
12552 test -z "$OBJDUMP" && OBJDUMP=objdump
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12563 printf %s "checking how to recognize dependent libraries... " >&6; }
12564 if test ${lt_cv_deplibs_check_method+y}
12565 then :
12566 printf %s "(cached) " >&6
12567 else $as_nop
12568 lt_cv_file_magic_cmd='$MAGIC_CMD'
12569 lt_cv_file_magic_test_file=
12570 lt_cv_deplibs_check_method='unknown'
12571 # Need to set the preceding variable on all platforms that support
12572 # interlibrary dependencies.
12573 # 'none' -- dependencies not supported.
12574 # 'unknown' -- same as none, but documents that we really don't know.
12575 # 'pass_all' -- all dependencies passed with no checks.
12576 # 'test_compile' -- check by making test program.
12577 # 'file_magic [[regex]]' -- check by looking for files in library path
12578 # that responds to the $file_magic_cmd with a given extended regex.
12579 # If you have 'file' or equivalent on your system and you're not sure
12580 # whether 'pass_all' will *always* work, you probably want this one.
12581
12582 case $host_os in
12583 aix[4-9]*)
12584 lt_cv_deplibs_check_method=pass_all
12585 ;;
12586
12587 beos*)
12588 lt_cv_deplibs_check_method=pass_all
12589 ;;
12590
12591 bsdi[45]*)
12592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12593 lt_cv_file_magic_cmd='$FILECMD -L'
12594 lt_cv_file_magic_test_file=/shlib/libc.so
12595 ;;
12596
12597 cygwin*)
12598 # func_win32_libid is a shell function defined in ltmain.sh
12599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12600 lt_cv_file_magic_cmd='func_win32_libid'
12601 ;;
12602
12603 mingw* | pw32*)
12604 # Base MSYS/MinGW do not provide the 'file' command needed by
12605 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12606 # unless we find 'file', for example because we are cross-compiling.
12607 if ( file / ) >/dev/null 2>&1; then
12608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12609 lt_cv_file_magic_cmd='func_win32_libid'
12610 else
12611 # Keep this pattern in sync with the one in func_win32_libid.
12612 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12613 lt_cv_file_magic_cmd='$OBJDUMP -f'
12614 fi
12615 ;;
12616
12617 cegcc*)
12618 # use the weaker test based on 'objdump'. See mingw*.
12619 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12620 lt_cv_file_magic_cmd='$OBJDUMP -f'
12621 ;;
12622
12623 darwin* | rhapsody*)
12624 lt_cv_deplibs_check_method=pass_all
12625 ;;
12626
12627 freebsd* | dragonfly* | midnightbsd*)
12628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12629 case $host_cpu in
12630 i*86 )
12631 # Not sure whether the presence of OpenBSD here was a mistake.
12632 # Let's accept both of them until this is cleared up.
12633 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12634 lt_cv_file_magic_cmd=$FILECMD
12635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12636 ;;
12637 esac
12638 else
12639 lt_cv_deplibs_check_method=pass_all
12640 fi
12641 ;;
12642
12643 haiku*)
12644 lt_cv_deplibs_check_method=pass_all
12645 ;;
12646
12647 hpux10.20* | hpux11*)
12648 lt_cv_file_magic_cmd=$FILECMD
12649 case $host_cpu in
12650 ia64*)
12651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12652 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12653 ;;
12654 hppa*64*)
12655 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]'
12656 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12657 ;;
12658 *)
12659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12660 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12661 ;;
12662 esac
12663 ;;
12664
12665 interix[3-9]*)
12666 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12668 ;;
12669
12670 irix5* | irix6* | nonstopux*)
12671 case $LD in
12672 *-32|*"-32 ") libmagic=32-bit;;
12673 *-n32|*"-n32 ") libmagic=N32;;
12674 *-64|*"-64 ") libmagic=64-bit;;
12675 *) libmagic=never-match;;
12676 esac
12677 lt_cv_deplibs_check_method=pass_all
12678 ;;
12679
12680 # This must be glibc/ELF.
12681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12682 lt_cv_deplibs_check_method=pass_all
12683 ;;
12684
12685 netbsd*)
12686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12688 else
12689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12690 fi
12691 ;;
12692
12693 newos6*)
12694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12695 lt_cv_file_magic_cmd=$FILECMD
12696 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12697 ;;
12698
12699 *nto* | *qnx*)
12700 lt_cv_deplibs_check_method=pass_all
12701 ;;
12702
12703 openbsd* | bitrig*)
12704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12706 else
12707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12708 fi
12709 ;;
12710
12711 osf3* | osf4* | osf5*)
12712 lt_cv_deplibs_check_method=pass_all
12713 ;;
12714
12715 rdos*)
12716 lt_cv_deplibs_check_method=pass_all
12717 ;;
12718
12719 solaris*)
12720 lt_cv_deplibs_check_method=pass_all
12721 ;;
12722
12723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12724 lt_cv_deplibs_check_method=pass_all
12725 ;;
12726
12727 sysv4 | sysv4.3*)
12728 case $host_vendor in
12729 motorola)
12730 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]'
12731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12732 ;;
12733 ncr)
12734 lt_cv_deplibs_check_method=pass_all
12735 ;;
12736 sequent)
12737 lt_cv_file_magic_cmd='/bin/file'
12738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12739 ;;
12740 sni)
12741 lt_cv_file_magic_cmd='/bin/file'
12742 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12743 lt_cv_file_magic_test_file=/lib/libc.so
12744 ;;
12745 siemens)
12746 lt_cv_deplibs_check_method=pass_all
12747 ;;
12748 pc)
12749 lt_cv_deplibs_check_method=pass_all
12750 ;;
12751 esac
12752 ;;
12753
12754 tpf*)
12755 lt_cv_deplibs_check_method=pass_all
12756 ;;
12757 os2*)
12758 lt_cv_deplibs_check_method=pass_all
12759 ;;
12760 esac
12761
12762 fi
12763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12764 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12765
12766 file_magic_glob=
12767 want_nocaseglob=no
12768 if test "$build" = "$host"; then
12769 case $host_os in
12770 mingw* | pw32*)
12771 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12772 want_nocaseglob=yes
12773 else
12774 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12775 fi
12776 ;;
12777 esac
12778 fi
12779
12780 file_magic_cmd=$lt_cv_file_magic_cmd
12781 deplibs_check_method=$lt_cv_deplibs_check_method
12782 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805 if test -n "$ac_tool_prefix"; then
12806 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12807 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 printf %s "checking for $ac_word... " >&6; }
12810 if test ${ac_cv_prog_DLLTOOL+y}
12811 then :
12812 printf %s "(cached) " >&6
12813 else $as_nop
12814 if test -n "$DLLTOOL"; then
12815 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12816 else
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820 IFS=$as_save_IFS
12821 case $as_dir in #(((
12822 '') as_dir=./ ;;
12823 */) ;;
12824 *) as_dir=$as_dir/ ;;
12825 esac
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12828 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832 done
12833 done
12834 IFS=$as_save_IFS
12835
12836 fi
12837 fi
12838 DLLTOOL=$ac_cv_prog_DLLTOOL
12839 if test -n "$DLLTOOL"; then
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12841 printf "%s\n" "$DLLTOOL" >&6; }
12842 else
12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 printf "%s\n" "no" >&6; }
12845 fi
12846
12847
12848 fi
12849 if test -z "$ac_cv_prog_DLLTOOL"; then
12850 ac_ct_DLLTOOL=$DLLTOOL
12851 # Extract the first word of "dlltool", so it can be a program name with args.
12852 set dummy dlltool; ac_word=$2
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 printf %s "checking for $ac_word... " >&6; }
12855 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12856 then :
12857 printf %s "(cached) " >&6
12858 else $as_nop
12859 if test -n "$ac_ct_DLLTOOL"; then
12860 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12861 else
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12864 do
12865 IFS=$as_save_IFS
12866 case $as_dir in #(((
12867 '') as_dir=./ ;;
12868 */) ;;
12869 *) as_dir=$as_dir/ ;;
12870 esac
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12873 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12875 break 2
12876 fi
12877 done
12878 done
12879 IFS=$as_save_IFS
12880
12881 fi
12882 fi
12883 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12884 if test -n "$ac_ct_DLLTOOL"; then
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12886 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12887 else
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 printf "%s\n" "no" >&6; }
12890 fi
12891
12892 if test "x$ac_ct_DLLTOOL" = x; then
12893 DLLTOOL="false"
12894 else
12895 case $cross_compiling:$ac_tool_warned in
12896 yes:)
12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12899 ac_tool_warned=yes ;;
12900 esac
12901 DLLTOOL=$ac_ct_DLLTOOL
12902 fi
12903 else
12904 DLLTOOL="$ac_cv_prog_DLLTOOL"
12905 fi
12906
12907 test -z "$DLLTOOL" && DLLTOOL=dlltool
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12919 printf %s "checking how to associate runtime and link libraries... " >&6; }
12920 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12921 then :
12922 printf %s "(cached) " >&6
12923 else $as_nop
12924 lt_cv_sharedlib_from_linklib_cmd='unknown'
12925
12926 case $host_os in
12927 cygwin* | mingw* | pw32* | cegcc*)
12928 # two different shell functions defined in ltmain.sh;
12929 # decide which one to use based on capabilities of $DLLTOOL
12930 case `$DLLTOOL --help 2>&1` in
12931 *--identify-strict*)
12932 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12933 ;;
12934 *)
12935 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12936 ;;
12937 esac
12938 ;;
12939 *)
12940 # fallback: assume linklib IS sharedlib
12941 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12942 ;;
12943 esac
12944
12945 fi
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12947 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12948 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12949 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12950
12951
12952
12953
12954
12955
12956
12957 if test -n "$ac_tool_prefix"; then
12958 for ac_prog in ar
12959 do
12960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963 printf %s "checking for $ac_word... " >&6; }
12964 if test ${ac_cv_prog_AR+y}
12965 then :
12966 printf %s "(cached) " >&6
12967 else $as_nop
12968 if test -n "$AR"; then
12969 ac_cv_prog_AR="$AR" # Let the user override the test.
12970 else
12971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12973 do
12974 IFS=$as_save_IFS
12975 case $as_dir in #(((
12976 '') as_dir=./ ;;
12977 */) ;;
12978 *) as_dir=$as_dir/ ;;
12979 esac
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12982 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12984 break 2
12985 fi
12986 done
12987 done
12988 IFS=$as_save_IFS
12989
12990 fi
12991 fi
12992 AR=$ac_cv_prog_AR
12993 if test -n "$AR"; then
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12995 printf "%s\n" "$AR" >&6; }
12996 else
12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 printf "%s\n" "no" >&6; }
12999 fi
13000
13001
13002 test -n "$AR" && break
13003 done
13004 fi
13005 if test -z "$AR"; then
13006 ac_ct_AR=$AR
13007 for ac_prog in ar
13008 do
13009 # Extract the first word of "$ac_prog", so it can be a program name with args.
13010 set dummy $ac_prog; ac_word=$2
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 printf %s "checking for $ac_word... " >&6; }
13013 if test ${ac_cv_prog_ac_ct_AR+y}
13014 then :
13015 printf %s "(cached) " >&6
13016 else $as_nop
13017 if test -n "$ac_ct_AR"; then
13018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13022 do
13023 IFS=$as_save_IFS
13024 case $as_dir in #(((
13025 '') as_dir=./ ;;
13026 */) ;;
13027 *) as_dir=$as_dir/ ;;
13028 esac
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13031 ac_cv_prog_ac_ct_AR="$ac_prog"
13032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13033 break 2
13034 fi
13035 done
13036 done
13037 IFS=$as_save_IFS
13038
13039 fi
13040 fi
13041 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13042 if test -n "$ac_ct_AR"; then
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13044 printf "%s\n" "$ac_ct_AR" >&6; }
13045 else
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 printf "%s\n" "no" >&6; }
13048 fi
13049
13050
13051 test -n "$ac_ct_AR" && break
13052 done
13053
13054 if test "x$ac_ct_AR" = x; then
13055 AR="false"
13056 else
13057 case $cross_compiling:$ac_tool_warned in
13058 yes:)
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13061 ac_tool_warned=yes ;;
13062 esac
13063 AR=$ac_ct_AR
13064 fi
13065 fi
13066
13067 : ${AR=ar}
13068
13069
13070
13071
13072
13073
13074 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13075 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13076 # higher priority because thats what people were doing historically (setting
13077 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13078 # variable obsoleted/removed.
13079
13080 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13081 lt_ar_flags=$AR_FLAGS
13082
13083
13084
13085
13086
13087
13088 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13089 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13090
13091
13092
13093
13094
13095
13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13097 printf %s "checking for archiver @FILE support... " >&6; }
13098 if test ${lt_cv_ar_at_file+y}
13099 then :
13100 printf %s "(cached) " >&6
13101 else $as_nop
13102 lt_cv_ar_at_file=no
13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104 /* end confdefs.h. */
13105
13106 int
13107 main (void)
13108 {
13109
13110 ;
13111 return 0;
13112 }
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"
13115 then :
13116 echo conftest.$ac_objext > conftest.lst
13117 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13119 (eval $lt_ar_try) 2>&5
13120 ac_status=$?
13121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13122 test $ac_status = 0; }
13123 if test 0 -eq "$ac_status"; then
13124 # Ensure the archiver fails upon bogus file names.
13125 rm -f conftest.$ac_objext libconftest.a
13126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13127 (eval $lt_ar_try) 2>&5
13128 ac_status=$?
13129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13130 test $ac_status = 0; }
13131 if test 0 -ne "$ac_status"; then
13132 lt_cv_ar_at_file=@
13133 fi
13134 fi
13135 rm -f conftest.* libconftest.a
13136
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13139
13140 fi
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13142 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13143
13144 if test no = "$lt_cv_ar_at_file"; then
13145 archiver_list_spec=
13146 else
13147 archiver_list_spec=$lt_cv_ar_at_file
13148 fi
13149
13150
13151
13152
13153
13154
13155
13156 if test -n "$ac_tool_prefix"; then
13157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13158 set dummy ${ac_tool_prefix}strip; ac_word=$2
13159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 printf %s "checking for $ac_word... " >&6; }
13161 if test ${ac_cv_prog_STRIP+y}
13162 then :
13163 printf %s "(cached) " >&6
13164 else $as_nop
13165 if test -n "$STRIP"; then
13166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13167 else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13170 do
13171 IFS=$as_save_IFS
13172 case $as_dir in #(((
13173 '') as_dir=./ ;;
13174 */) ;;
13175 *) as_dir=$as_dir/ ;;
13176 esac
13177 for ac_exec_ext in '' $ac_executable_extensions; do
13178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13179 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13181 break 2
13182 fi
13183 done
13184 done
13185 IFS=$as_save_IFS
13186
13187 fi
13188 fi
13189 STRIP=$ac_cv_prog_STRIP
13190 if test -n "$STRIP"; then
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13192 printf "%s\n" "$STRIP" >&6; }
13193 else
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 printf "%s\n" "no" >&6; }
13196 fi
13197
13198
13199 fi
13200 if test -z "$ac_cv_prog_STRIP"; then
13201 ac_ct_STRIP=$STRIP
13202 # Extract the first word of "strip", so it can be a program name with args.
13203 set dummy strip; ac_word=$2
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 printf %s "checking for $ac_word... " >&6; }
13206 if test ${ac_cv_prog_ac_ct_STRIP+y}
13207 then :
13208 printf %s "(cached) " >&6
13209 else $as_nop
13210 if test -n "$ac_ct_STRIP"; then
13211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13212 else
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13215 do
13216 IFS=$as_save_IFS
13217 case $as_dir in #(((
13218 '') as_dir=./ ;;
13219 */) ;;
13220 *) as_dir=$as_dir/ ;;
13221 esac
13222 for ac_exec_ext in '' $ac_executable_extensions; do
13223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13224 ac_cv_prog_ac_ct_STRIP="strip"
13225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13226 break 2
13227 fi
13228 done
13229 done
13230 IFS=$as_save_IFS
13231
13232 fi
13233 fi
13234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13235 if test -n "$ac_ct_STRIP"; then
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13237 printf "%s\n" "$ac_ct_STRIP" >&6; }
13238 else
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 printf "%s\n" "no" >&6; }
13241 fi
13242
13243 if test "x$ac_ct_STRIP" = x; then
13244 STRIP=":"
13245 else
13246 case $cross_compiling:$ac_tool_warned in
13247 yes:)
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13250 ac_tool_warned=yes ;;
13251 esac
13252 STRIP=$ac_ct_STRIP
13253 fi
13254 else
13255 STRIP="$ac_cv_prog_STRIP"
13256 fi
13257
13258 test -z "$STRIP" && STRIP=:
13259
13260
13261
13262
13263
13264
13265 if test -n "$ac_tool_prefix"; then
13266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 printf %s "checking for $ac_word... " >&6; }
13270 if test ${ac_cv_prog_RANLIB+y}
13271 then :
13272 printf %s "(cached) " >&6
13273 else $as_nop
13274 if test -n "$RANLIB"; then
13275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13276 else
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13279 do
13280 IFS=$as_save_IFS
13281 case $as_dir in #(((
13282 '') as_dir=./ ;;
13283 */) ;;
13284 *) as_dir=$as_dir/ ;;
13285 esac
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13290 break 2
13291 fi
13292 done
13293 done
13294 IFS=$as_save_IFS
13295
13296 fi
13297 fi
13298 RANLIB=$ac_cv_prog_RANLIB
13299 if test -n "$RANLIB"; then
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13301 printf "%s\n" "$RANLIB" >&6; }
13302 else
13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 printf "%s\n" "no" >&6; }
13305 fi
13306
13307
13308 fi
13309 if test -z "$ac_cv_prog_RANLIB"; then
13310 ac_ct_RANLIB=$RANLIB
13311 # Extract the first word of "ranlib", so it can be a program name with args.
13312 set dummy ranlib; ac_word=$2
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13314 printf %s "checking for $ac_word... " >&6; }
13315 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13316 then :
13317 printf %s "(cached) " >&6
13318 else $as_nop
13319 if test -n "$ac_ct_RANLIB"; then
13320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13321 else
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13324 do
13325 IFS=$as_save_IFS
13326 case $as_dir in #(((
13327 '') as_dir=./ ;;
13328 */) ;;
13329 *) as_dir=$as_dir/ ;;
13330 esac
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13333 ac_cv_prog_ac_ct_RANLIB="ranlib"
13334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13335 break 2
13336 fi
13337 done
13338 done
13339 IFS=$as_save_IFS
13340
13341 fi
13342 fi
13343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13344 if test -n "$ac_ct_RANLIB"; then
13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13346 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13347 else
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 printf "%s\n" "no" >&6; }
13350 fi
13351
13352 if test "x$ac_ct_RANLIB" = x; then
13353 RANLIB=":"
13354 else
13355 case $cross_compiling:$ac_tool_warned in
13356 yes:)
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13359 ac_tool_warned=yes ;;
13360 esac
13361 RANLIB=$ac_ct_RANLIB
13362 fi
13363 else
13364 RANLIB="$ac_cv_prog_RANLIB"
13365 fi
13366
13367 test -z "$RANLIB" && RANLIB=:
13368
13369
13370
13371
13372
13373
13374 # Determine commands to create old-style static archives.
13375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13376 old_postinstall_cmds='chmod 644 $oldlib'
13377 old_postuninstall_cmds=
13378
13379 if test -n "$RANLIB"; then
13380 case $host_os in
13381 bitrig* | openbsd*)
13382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13383 ;;
13384 *)
13385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13386 ;;
13387 esac
13388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13389 fi
13390
13391 case $host_os in
13392 darwin*)
13393 lock_old_archive_extraction=yes ;;
13394 *)
13395 lock_old_archive_extraction=no ;;
13396 esac
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436 # If no C compiler was specified, use CC.
13437 LTCC=${LTCC-"$CC"}
13438
13439 # If no C compiler flags were specified, use CFLAGS.
13440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13441
13442 # Allow CC to be a program name with arguments.
13443 compiler=$CC
13444
13445
13446 # Check for command to grab the raw symbol name followed by C symbol from nm.
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13448 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13449 if test ${lt_cv_sys_global_symbol_pipe+y}
13450 then :
13451 printf %s "(cached) " >&6
13452 else $as_nop
13453
13454 # These are sane defaults that work on at least a few old systems.
13455 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13456
13457 # Character class describing NM global symbol codes.
13458 symcode='[BCDEGRST]'
13459
13460 # Regexp to match symbols that can be accessed directly from C.
13461 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13462
13463 # Define system-specific variables.
13464 case $host_os in
13465 aix*)
13466 symcode='[BCDT]'
13467 ;;
13468 cygwin* | mingw* | pw32* | cegcc*)
13469 symcode='[ABCDGISTW]'
13470 ;;
13471 hpux*)
13472 if test ia64 = "$host_cpu"; then
13473 symcode='[ABCDEGRST]'
13474 fi
13475 ;;
13476 irix* | nonstopux*)
13477 symcode='[BCDEGRST]'
13478 ;;
13479 osf*)
13480 symcode='[BCDEGQRST]'
13481 ;;
13482 solaris*)
13483 symcode='[BDRT]'
13484 ;;
13485 sco3.2v5*)
13486 symcode='[DT]'
13487 ;;
13488 sysv4.2uw2*)
13489 symcode='[DT]'
13490 ;;
13491 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13492 symcode='[ABDT]'
13493 ;;
13494 sysv4)
13495 symcode='[DFNSTU]'
13496 ;;
13497 esac
13498
13499 # If we're using GNU nm, then use its standard symbol codes.
13500 case `$NM -V 2>&1` in
13501 *GNU* | *'with BFD'*)
13502 symcode='[ABCDGIRSTW]' ;;
13503 esac
13504
13505 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13506 # Gets list of data symbols to import.
13507 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13508 # Adjust the below global symbol transforms to fixup imported variables.
13509 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13510 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13511 lt_c_name_lib_hook="\
13512 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13513 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13514 else
13515 # Disable hooks by default.
13516 lt_cv_sys_global_symbol_to_import=
13517 lt_cdecl_hook=
13518 lt_c_name_hook=
13519 lt_c_name_lib_hook=
13520 fi
13521
13522 # Transform an extracted symbol line into a proper C declaration.
13523 # Some systems (esp. on ia64) link data and code symbols differently,
13524 # so use this general approach.
13525 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13526 $lt_cdecl_hook\
13527 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13528 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13529
13530 # Transform an extracted symbol line into symbol name and symbol address
13531 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13532 $lt_c_name_hook\
13533 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13534 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13535
13536 # Transform an extracted symbol line into symbol name with lib prefix and
13537 # symbol address.
13538 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13539 $lt_c_name_lib_hook\
13540 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13541 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13542 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13543
13544 # Handle CRLF in mingw tool chain
13545 opt_cr=
13546 case $build_os in
13547 mingw*)
13548 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13549 ;;
13550 esac
13551
13552 # Try without a prefix underscore, then with it.
13553 for ac_symprfx in "" "_"; do
13554
13555 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13556 symxfrm="\\1 $ac_symprfx\\2 \\2"
13557
13558 # Write the raw and C identifiers.
13559 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13560 # Fake it for dumpbin and say T for any non-static function,
13561 # D for any global variable and I for any imported variable.
13562 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13563 # which start with @ or ?.
13564 lt_cv_sys_global_symbol_pipe="$AWK '"\
13565 " {last_section=section; section=\$ 3};"\
13566 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13567 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13568 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13569 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13570 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13571 " \$ 0!~/External *\|/{next};"\
13572 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13573 " {if(hide[section]) next};"\
13574 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13575 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13576 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13577 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13578 " ' prfx=^$ac_symprfx"
13579 else
13580 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13581 fi
13582 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13583
13584 # Check to see that the pipe works correctly.
13585 pipe_works=no
13586
13587 rm -f conftest*
13588 cat > conftest.$ac_ext <<_LT_EOF
13589 #ifdef __cplusplus
13590 extern "C" {
13591 #endif
13592 char nm_test_var;
13593 void nm_test_func(void);
13594 void nm_test_func(void){}
13595 #ifdef __cplusplus
13596 }
13597 #endif
13598 int main(){nm_test_var='a';nm_test_func();return(0);}
13599 _LT_EOF
13600
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13602 (eval $ac_compile) 2>&5
13603 ac_status=$?
13604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; }; then
13606 # Now try to grab the symbols.
13607 nlist=conftest.nm
13608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13609 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13610 ac_status=$?
13611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13612 test $ac_status = 0; } && test -s "$nlist"; then
13613 # Try sorting and uniquifying the output.
13614 if sort "$nlist" | uniq > "$nlist"T; then
13615 mv -f "$nlist"T "$nlist"
13616 else
13617 rm -f "$nlist"T
13618 fi
13619
13620 # Make sure that we snagged all the symbols we need.
13621 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13622 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13623 cat <<_LT_EOF > conftest.$ac_ext
13624 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13625 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13626 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13627 relocations are performed -- see ld's documentation on pseudo-relocs. */
13628 # define LT_DLSYM_CONST
13629 #elif defined __osf__
13630 /* This system does not cope well with relocations in const data. */
13631 # define LT_DLSYM_CONST
13632 #else
13633 # define LT_DLSYM_CONST const
13634 #endif
13635
13636 #ifdef __cplusplus
13637 extern "C" {
13638 #endif
13639
13640 _LT_EOF
13641 # Now generate the symbol file.
13642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13643
13644 cat <<_LT_EOF >> conftest.$ac_ext
13645
13646 /* The mapping between symbol names and symbols. */
13647 LT_DLSYM_CONST struct {
13648 const char *name;
13649 void *address;
13650 }
13651 lt__PROGRAM__LTX_preloaded_symbols[] =
13652 {
13653 { "@PROGRAM@", (void *) 0 },
13654 _LT_EOF
13655 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13656 cat <<\_LT_EOF >> conftest.$ac_ext
13657 {0, (void *) 0}
13658 };
13659
13660 /* This works around a problem in FreeBSD linker */
13661 #ifdef FREEBSD_WORKAROUND
13662 static const void *lt_preloaded_setup() {
13663 return lt__PROGRAM__LTX_preloaded_symbols;
13664 }
13665 #endif
13666
13667 #ifdef __cplusplus
13668 }
13669 #endif
13670 _LT_EOF
13671 # Now try linking the two files.
13672 mv conftest.$ac_objext conftstm.$ac_objext
13673 lt_globsym_save_LIBS=$LIBS
13674 lt_globsym_save_CFLAGS=$CFLAGS
13675 LIBS=conftstm.$ac_objext
13676 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13678 (eval $ac_link) 2>&5
13679 ac_status=$?
13680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13681 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13682 pipe_works=yes
13683 fi
13684 LIBS=$lt_globsym_save_LIBS
13685 CFLAGS=$lt_globsym_save_CFLAGS
13686 else
13687 echo "cannot find nm_test_func in $nlist" >&5
13688 fi
13689 else
13690 echo "cannot find nm_test_var in $nlist" >&5
13691 fi
13692 else
13693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13694 fi
13695 else
13696 echo "$progname: failed program was:" >&5
13697 cat conftest.$ac_ext >&5
13698 fi
13699 rm -rf conftest* conftst*
13700
13701 # Do not use the global_symbol_pipe unless it works.
13702 if test yes = "$pipe_works"; then
13703 break
13704 else
13705 lt_cv_sys_global_symbol_pipe=
13706 fi
13707 done
13708
13709 fi
13710
13711 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13712 lt_cv_sys_global_symbol_to_cdecl=
13713 fi
13714 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13716 printf "%s\n" "failed" >&6; }
13717 else
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13719 printf "%s\n" "ok" >&6; }
13720 fi
13721
13722 # Response file support.
13723 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13724 nm_file_list_spec='@'
13725 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13726 nm_file_list_spec='@'
13727 fi
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13766 printf %s "checking for sysroot... " >&6; }
13767
13768 # Check whether --with-sysroot was given.
13769 if test ${with_sysroot+y}
13770 then :
13771 withval=$with_sysroot;
13772 else $as_nop
13773 with_sysroot=no
13774 fi
13775
13776
13777 lt_sysroot=
13778 case $with_sysroot in #(
13779 yes)
13780 if test yes = "$GCC"; then
13781 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13782 fi
13783 ;; #(
13784 /*)
13785 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13786 ;; #(
13787 no|'')
13788 ;; #(
13789 *)
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13791 printf "%s\n" "$with_sysroot" >&6; }
13792 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13793 ;;
13794 esac
13795
13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13797 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13798
13799
13800
13801
13802
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13804 printf %s "checking for a working dd... " >&6; }
13805 if test ${ac_cv_path_lt_DD+y}
13806 then :
13807 printf %s "(cached) " >&6
13808 else $as_nop
13809 printf 0123456789abcdef0123456789abcdef >conftest.i
13810 cat conftest.i conftest.i >conftest2.i
13811 : ${lt_DD:=$DD}
13812 if test -z "$lt_DD"; then
13813 ac_path_lt_DD_found=false
13814 # Loop through the user's path and test for each of PROGNAME-LIST
13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $PATH
13817 do
13818 IFS=$as_save_IFS
13819 case $as_dir in #(((
13820 '') as_dir=./ ;;
13821 */) ;;
13822 *) as_dir=$as_dir/ ;;
13823 esac
13824 for ac_prog in dd
13825 do
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13828 as_fn_executable_p "$ac_path_lt_DD" || continue
13829 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13830 cmp -s conftest.i conftest.out \
13831 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13832 fi
13833 $ac_path_lt_DD_found && break 3
13834 done
13835 done
13836 done
13837 IFS=$as_save_IFS
13838 if test -z "$ac_cv_path_lt_DD"; then
13839 :
13840 fi
13841 else
13842 ac_cv_path_lt_DD=$lt_DD
13843 fi
13844
13845 rm -f conftest.i conftest2.i conftest.out
13846 fi
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13848 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13849
13850
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13852 printf %s "checking how to truncate binary pipes... " >&6; }
13853 if test ${lt_cv_truncate_bin+y}
13854 then :
13855 printf %s "(cached) " >&6
13856 else $as_nop
13857 printf 0123456789abcdef0123456789abcdef >conftest.i
13858 cat conftest.i conftest.i >conftest2.i
13859 lt_cv_truncate_bin=
13860 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13861 cmp -s conftest.i conftest.out \
13862 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13863 fi
13864 rm -f conftest.i conftest2.i conftest.out
13865 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13866 fi
13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13868 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13869
13870
13871
13872
13873
13874
13875
13876 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13877 func_cc_basename ()
13878 {
13879 for cc_temp in $*""; do
13880 case $cc_temp in
13881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13883 \-*) ;;
13884 *) break;;
13885 esac
13886 done
13887 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13888 }
13889
13890 # Check whether --enable-libtool-lock was given.
13891 if test ${enable_libtool_lock+y}
13892 then :
13893 enableval=$enable_libtool_lock;
13894 fi
13895
13896 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13897
13898 # Some flags need to be propagated to the compiler or linker for good
13899 # libtool support.
13900 case $host in
13901 ia64-*-hpux*)
13902 # Find out what ABI is being produced by ac_compile, and set mode
13903 # options accordingly.
13904 echo 'int i;' > conftest.$ac_ext
13905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13906 (eval $ac_compile) 2>&5
13907 ac_status=$?
13908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13909 test $ac_status = 0; }; then
13910 case `$FILECMD conftest.$ac_objext` in
13911 *ELF-32*)
13912 HPUX_IA64_MODE=32
13913 ;;
13914 *ELF-64*)
13915 HPUX_IA64_MODE=64
13916 ;;
13917 esac
13918 fi
13919 rm -rf conftest*
13920 ;;
13921 *-*-irix6*)
13922 # Find out what ABI is being produced by ac_compile, and set linker
13923 # options accordingly.
13924 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13926 (eval $ac_compile) 2>&5
13927 ac_status=$?
13928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13929 test $ac_status = 0; }; then
13930 if test yes = "$lt_cv_prog_gnu_ld"; then
13931 case `$FILECMD conftest.$ac_objext` in
13932 *32-bit*)
13933 LD="${LD-ld} -melf32bsmip"
13934 ;;
13935 *N32*)
13936 LD="${LD-ld} -melf32bmipn32"
13937 ;;
13938 *64-bit*)
13939 LD="${LD-ld} -melf64bmip"
13940 ;;
13941 esac
13942 else
13943 case `$FILECMD conftest.$ac_objext` in
13944 *32-bit*)
13945 LD="${LD-ld} -32"
13946 ;;
13947 *N32*)
13948 LD="${LD-ld} -n32"
13949 ;;
13950 *64-bit*)
13951 LD="${LD-ld} -64"
13952 ;;
13953 esac
13954 fi
13955 fi
13956 rm -rf conftest*
13957 ;;
13958
13959 mips64*-*linux*)
13960 # Find out what ABI is being produced by ac_compile, and set linker
13961 # options accordingly.
13962 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964 (eval $ac_compile) 2>&5
13965 ac_status=$?
13966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967 test $ac_status = 0; }; then
13968 emul=elf
13969 case `$FILECMD conftest.$ac_objext` in
13970 *32-bit*)
13971 emul="${emul}32"
13972 ;;
13973 *64-bit*)
13974 emul="${emul}64"
13975 ;;
13976 esac
13977 case `$FILECMD conftest.$ac_objext` in
13978 *MSB*)
13979 emul="${emul}btsmip"
13980 ;;
13981 *LSB*)
13982 emul="${emul}ltsmip"
13983 ;;
13984 esac
13985 case `$FILECMD conftest.$ac_objext` in
13986 *N32*)
13987 emul="${emul}n32"
13988 ;;
13989 esac
13990 LD="${LD-ld} -m $emul"
13991 fi
13992 rm -rf conftest*
13993 ;;
13994
13995 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13996 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13997 # Find out what ABI is being produced by ac_compile, and set linker
13998 # options accordingly. Note that the listed cases only cover the
13999 # situations where additional linker options are needed (such as when
14000 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14001 # vice versa); the common cases where no linker options are needed do
14002 # not appear in the list.
14003 echo 'int i;' > conftest.$ac_ext
14004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14005 (eval $ac_compile) 2>&5
14006 ac_status=$?
14007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; }; then
14009 case `$FILECMD conftest.o` in
14010 *32-bit*)
14011 case $host in
14012 x86_64-*kfreebsd*-gnu)
14013 LD="${LD-ld} -m elf_i386_fbsd"
14014 ;;
14015 x86_64-*linux*)
14016 case `$FILECMD conftest.o` in
14017 *x86-64*)
14018 LD="${LD-ld} -m elf32_x86_64"
14019 ;;
14020 *)
14021 LD="${LD-ld} -m elf_i386"
14022 ;;
14023 esac
14024 ;;
14025 powerpc64le-*linux*)
14026 LD="${LD-ld} -m elf32lppclinux"
14027 ;;
14028 powerpc64-*linux*)
14029 LD="${LD-ld} -m elf32ppclinux"
14030 ;;
14031 s390x-*linux*)
14032 LD="${LD-ld} -m elf_s390"
14033 ;;
14034 sparc64-*linux*)
14035 LD="${LD-ld} -m elf32_sparc"
14036 ;;
14037 esac
14038 ;;
14039 *64-bit*)
14040 case $host in
14041 x86_64-*kfreebsd*-gnu)
14042 LD="${LD-ld} -m elf_x86_64_fbsd"
14043 ;;
14044 x86_64-*linux*)
14045 LD="${LD-ld} -m elf_x86_64"
14046 ;;
14047 powerpcle-*linux*)
14048 LD="${LD-ld} -m elf64lppc"
14049 ;;
14050 powerpc-*linux*)
14051 LD="${LD-ld} -m elf64ppc"
14052 ;;
14053 s390*-*linux*|s390*-*tpf*)
14054 LD="${LD-ld} -m elf64_s390"
14055 ;;
14056 sparc*-*linux*)
14057 LD="${LD-ld} -m elf64_sparc"
14058 ;;
14059 esac
14060 ;;
14061 esac
14062 fi
14063 rm -rf conftest*
14064 ;;
14065
14066 *-*-sco3.2v5*)
14067 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14068 SAVE_CFLAGS=$CFLAGS
14069 CFLAGS="$CFLAGS -belf"
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14071 printf %s "checking whether the C compiler needs -belf... " >&6; }
14072 if test ${lt_cv_cc_needs_belf+y}
14073 then :
14074 printf %s "(cached) " >&6
14075 else $as_nop
14076 ac_ext=c
14077 ac_cpp='$CPP $CPPFLAGS'
14078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14081
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084
14085 int
14086 main (void)
14087 {
14088
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_link "$LINENO"
14094 then :
14095 lt_cv_cc_needs_belf=yes
14096 else $as_nop
14097 lt_cv_cc_needs_belf=no
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14100 conftest$ac_exeext conftest.$ac_ext
14101 ac_ext=c
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
14107 fi
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14109 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14110 if test yes != "$lt_cv_cc_needs_belf"; then
14111 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14112 CFLAGS=$SAVE_CFLAGS
14113 fi
14114 ;;
14115 *-*solaris*)
14116 # Find out what ABI is being produced by ac_compile, and set linker
14117 # options accordingly.
14118 echo 'int i;' > conftest.$ac_ext
14119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14120 (eval $ac_compile) 2>&5
14121 ac_status=$?
14122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14123 test $ac_status = 0; }; then
14124 case `$FILECMD conftest.o` in
14125 *64-bit*)
14126 case $lt_cv_prog_gnu_ld in
14127 yes*)
14128 case $host in
14129 i?86-*-solaris*|x86_64-*-solaris*)
14130 LD="${LD-ld} -m elf_x86_64"
14131 ;;
14132 sparc*-*-solaris*)
14133 LD="${LD-ld} -m elf64_sparc"
14134 ;;
14135 esac
14136 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14137 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14138 LD=${LD-ld}_sol2
14139 fi
14140 ;;
14141 *)
14142 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14143 LD="${LD-ld} -64"
14144 fi
14145 ;;
14146 esac
14147 ;;
14148 esac
14149 fi
14150 rm -rf conftest*
14151 ;;
14152 esac
14153
14154 need_locks=$enable_libtool_lock
14155
14156 if test -n "$ac_tool_prefix"; then
14157 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14158 set dummy ${ac_tool_prefix}mt; ac_word=$2
14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14160 printf %s "checking for $ac_word... " >&6; }
14161 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14162 then :
14163 printf %s "(cached) " >&6
14164 else $as_nop
14165 if test -n "$MANIFEST_TOOL"; then
14166 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14167 else
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14170 do
14171 IFS=$as_save_IFS
14172 case $as_dir in #(((
14173 '') as_dir=./ ;;
14174 */) ;;
14175 *) as_dir=$as_dir/ ;;
14176 esac
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14179 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14181 break 2
14182 fi
14183 done
14184 done
14185 IFS=$as_save_IFS
14186
14187 fi
14188 fi
14189 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14190 if test -n "$MANIFEST_TOOL"; then
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14192 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14193 else
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 printf "%s\n" "no" >&6; }
14196 fi
14197
14198
14199 fi
14200 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14201 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14202 # Extract the first word of "mt", so it can be a program name with args.
14203 set dummy mt; ac_word=$2
14204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14205 printf %s "checking for $ac_word... " >&6; }
14206 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14207 then :
14208 printf %s "(cached) " >&6
14209 else $as_nop
14210 if test -n "$ac_ct_MANIFEST_TOOL"; then
14211 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14212 else
14213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214 for as_dir in $PATH
14215 do
14216 IFS=$as_save_IFS
14217 case $as_dir in #(((
14218 '') as_dir=./ ;;
14219 */) ;;
14220 *) as_dir=$as_dir/ ;;
14221 esac
14222 for ac_exec_ext in '' $ac_executable_extensions; do
14223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14224 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14226 break 2
14227 fi
14228 done
14229 done
14230 IFS=$as_save_IFS
14231
14232 fi
14233 fi
14234 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14235 if test -n "$ac_ct_MANIFEST_TOOL"; then
14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14237 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14238 else
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240 printf "%s\n" "no" >&6; }
14241 fi
14242
14243 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14244 MANIFEST_TOOL=":"
14245 else
14246 case $cross_compiling:$ac_tool_warned in
14247 yes:)
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14250 ac_tool_warned=yes ;;
14251 esac
14252 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14253 fi
14254 else
14255 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14256 fi
14257
14258 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14260 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14261 if test ${lt_cv_path_mainfest_tool+y}
14262 then :
14263 printf %s "(cached) " >&6
14264 else $as_nop
14265 lt_cv_path_mainfest_tool=no
14266 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14267 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14268 cat conftest.err >&5
14269 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14270 lt_cv_path_mainfest_tool=yes
14271 fi
14272 rm -f conftest*
14273 fi
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14275 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14276 if test yes != "$lt_cv_path_mainfest_tool"; then
14277 MANIFEST_TOOL=:
14278 fi
14279
14280
14281
14282
14283
14284
14285 case $host_os in
14286 rhapsody* | darwin*)
14287 if test -n "$ac_tool_prefix"; then
14288 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14289 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14291 printf %s "checking for $ac_word... " >&6; }
14292 if test ${ac_cv_prog_DSYMUTIL+y}
14293 then :
14294 printf %s "(cached) " >&6
14295 else $as_nop
14296 if test -n "$DSYMUTIL"; then
14297 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14298 else
14299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300 for as_dir in $PATH
14301 do
14302 IFS=$as_save_IFS
14303 case $as_dir in #(((
14304 '') as_dir=./ ;;
14305 */) ;;
14306 *) as_dir=$as_dir/ ;;
14307 esac
14308 for ac_exec_ext in '' $ac_executable_extensions; do
14309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14310 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14312 break 2
14313 fi
14314 done
14315 done
14316 IFS=$as_save_IFS
14317
14318 fi
14319 fi
14320 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14321 if test -n "$DSYMUTIL"; then
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14323 printf "%s\n" "$DSYMUTIL" >&6; }
14324 else
14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14326 printf "%s\n" "no" >&6; }
14327 fi
14328
14329
14330 fi
14331 if test -z "$ac_cv_prog_DSYMUTIL"; then
14332 ac_ct_DSYMUTIL=$DSYMUTIL
14333 # Extract the first word of "dsymutil", so it can be a program name with args.
14334 set dummy dsymutil; ac_word=$2
14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14336 printf %s "checking for $ac_word... " >&6; }
14337 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14338 then :
14339 printf %s "(cached) " >&6
14340 else $as_nop
14341 if test -n "$ac_ct_DSYMUTIL"; then
14342 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14343 else
14344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345 for as_dir in $PATH
14346 do
14347 IFS=$as_save_IFS
14348 case $as_dir in #(((
14349 '') as_dir=./ ;;
14350 */) ;;
14351 *) as_dir=$as_dir/ ;;
14352 esac
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14355 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359 done
14360 done
14361 IFS=$as_save_IFS
14362
14363 fi
14364 fi
14365 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14366 if test -n "$ac_ct_DSYMUTIL"; then
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14368 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14369 else
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 printf "%s\n" "no" >&6; }
14372 fi
14373
14374 if test "x$ac_ct_DSYMUTIL" = x; then
14375 DSYMUTIL=":"
14376 else
14377 case $cross_compiling:$ac_tool_warned in
14378 yes:)
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14381 ac_tool_warned=yes ;;
14382 esac
14383 DSYMUTIL=$ac_ct_DSYMUTIL
14384 fi
14385 else
14386 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14387 fi
14388
14389 if test -n "$ac_tool_prefix"; then
14390 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14391 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14393 printf %s "checking for $ac_word... " >&6; }
14394 if test ${ac_cv_prog_NMEDIT+y}
14395 then :
14396 printf %s "(cached) " >&6
14397 else $as_nop
14398 if test -n "$NMEDIT"; then
14399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14400 else
14401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14403 do
14404 IFS=$as_save_IFS
14405 case $as_dir in #(((
14406 '') as_dir=./ ;;
14407 */) ;;
14408 *) as_dir=$as_dir/ ;;
14409 esac
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14412 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416 done
14417 done
14418 IFS=$as_save_IFS
14419
14420 fi
14421 fi
14422 NMEDIT=$ac_cv_prog_NMEDIT
14423 if test -n "$NMEDIT"; then
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14425 printf "%s\n" "$NMEDIT" >&6; }
14426 else
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428 printf "%s\n" "no" >&6; }
14429 fi
14430
14431
14432 fi
14433 if test -z "$ac_cv_prog_NMEDIT"; then
14434 ac_ct_NMEDIT=$NMEDIT
14435 # Extract the first word of "nmedit", so it can be a program name with args.
14436 set dummy nmedit; ac_word=$2
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14438 printf %s "checking for $ac_word... " >&6; }
14439 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14440 then :
14441 printf %s "(cached) " >&6
14442 else $as_nop
14443 if test -n "$ac_ct_NMEDIT"; then
14444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14445 else
14446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447 for as_dir in $PATH
14448 do
14449 IFS=$as_save_IFS
14450 case $as_dir in #(((
14451 '') as_dir=./ ;;
14452 */) ;;
14453 *) as_dir=$as_dir/ ;;
14454 esac
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14457 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14459 break 2
14460 fi
14461 done
14462 done
14463 IFS=$as_save_IFS
14464
14465 fi
14466 fi
14467 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14468 if test -n "$ac_ct_NMEDIT"; then
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14470 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14471 else
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 printf "%s\n" "no" >&6; }
14474 fi
14475
14476 if test "x$ac_ct_NMEDIT" = x; then
14477 NMEDIT=":"
14478 else
14479 case $cross_compiling:$ac_tool_warned in
14480 yes:)
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14483 ac_tool_warned=yes ;;
14484 esac
14485 NMEDIT=$ac_ct_NMEDIT
14486 fi
14487 else
14488 NMEDIT="$ac_cv_prog_NMEDIT"
14489 fi
14490
14491 if test -n "$ac_tool_prefix"; then
14492 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14493 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14495 printf %s "checking for $ac_word... " >&6; }
14496 if test ${ac_cv_prog_LIPO+y}
14497 then :
14498 printf %s "(cached) " >&6
14499 else $as_nop
14500 if test -n "$LIPO"; then
14501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14502 else
14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14505 do
14506 IFS=$as_save_IFS
14507 case $as_dir in #(((
14508 '') as_dir=./ ;;
14509 */) ;;
14510 *) as_dir=$as_dir/ ;;
14511 esac
14512 for ac_exec_ext in '' $ac_executable_extensions; do
14513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14516 break 2
14517 fi
14518 done
14519 done
14520 IFS=$as_save_IFS
14521
14522 fi
14523 fi
14524 LIPO=$ac_cv_prog_LIPO
14525 if test -n "$LIPO"; then
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14527 printf "%s\n" "$LIPO" >&6; }
14528 else
14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530 printf "%s\n" "no" >&6; }
14531 fi
14532
14533
14534 fi
14535 if test -z "$ac_cv_prog_LIPO"; then
14536 ac_ct_LIPO=$LIPO
14537 # Extract the first word of "lipo", so it can be a program name with args.
14538 set dummy lipo; ac_word=$2
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540 printf %s "checking for $ac_word... " >&6; }
14541 if test ${ac_cv_prog_ac_ct_LIPO+y}
14542 then :
14543 printf %s "(cached) " >&6
14544 else $as_nop
14545 if test -n "$ac_ct_LIPO"; then
14546 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14547 else
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14550 do
14551 IFS=$as_save_IFS
14552 case $as_dir in #(((
14553 '') as_dir=./ ;;
14554 */) ;;
14555 *) as_dir=$as_dir/ ;;
14556 esac
14557 for ac_exec_ext in '' $ac_executable_extensions; do
14558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14559 ac_cv_prog_ac_ct_LIPO="lipo"
14560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14561 break 2
14562 fi
14563 done
14564 done
14565 IFS=$as_save_IFS
14566
14567 fi
14568 fi
14569 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14570 if test -n "$ac_ct_LIPO"; then
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14572 printf "%s\n" "$ac_ct_LIPO" >&6; }
14573 else
14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575 printf "%s\n" "no" >&6; }
14576 fi
14577
14578 if test "x$ac_ct_LIPO" = x; then
14579 LIPO=":"
14580 else
14581 case $cross_compiling:$ac_tool_warned in
14582 yes:)
14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14585 ac_tool_warned=yes ;;
14586 esac
14587 LIPO=$ac_ct_LIPO
14588 fi
14589 else
14590 LIPO="$ac_cv_prog_LIPO"
14591 fi
14592
14593 if test -n "$ac_tool_prefix"; then
14594 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14595 set dummy ${ac_tool_prefix}otool; ac_word=$2
14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 printf %s "checking for $ac_word... " >&6; }
14598 if test ${ac_cv_prog_OTOOL+y}
14599 then :
14600 printf %s "(cached) " >&6
14601 else $as_nop
14602 if test -n "$OTOOL"; then
14603 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14604 else
14605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14606 for as_dir in $PATH
14607 do
14608 IFS=$as_save_IFS
14609 case $as_dir in #(((
14610 '') as_dir=./ ;;
14611 */) ;;
14612 *) as_dir=$as_dir/ ;;
14613 esac
14614 for ac_exec_ext in '' $ac_executable_extensions; do
14615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14616 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14618 break 2
14619 fi
14620 done
14621 done
14622 IFS=$as_save_IFS
14623
14624 fi
14625 fi
14626 OTOOL=$ac_cv_prog_OTOOL
14627 if test -n "$OTOOL"; then
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14629 printf "%s\n" "$OTOOL" >&6; }
14630 else
14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14632 printf "%s\n" "no" >&6; }
14633 fi
14634
14635
14636 fi
14637 if test -z "$ac_cv_prog_OTOOL"; then
14638 ac_ct_OTOOL=$OTOOL
14639 # Extract the first word of "otool", so it can be a program name with args.
14640 set dummy otool; ac_word=$2
14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14642 printf %s "checking for $ac_word... " >&6; }
14643 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14644 then :
14645 printf %s "(cached) " >&6
14646 else $as_nop
14647 if test -n "$ac_ct_OTOOL"; then
14648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14649 else
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14652 do
14653 IFS=$as_save_IFS
14654 case $as_dir in #(((
14655 '') as_dir=./ ;;
14656 */) ;;
14657 *) as_dir=$as_dir/ ;;
14658 esac
14659 for ac_exec_ext in '' $ac_executable_extensions; do
14660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14661 ac_cv_prog_ac_ct_OTOOL="otool"
14662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14663 break 2
14664 fi
14665 done
14666 done
14667 IFS=$as_save_IFS
14668
14669 fi
14670 fi
14671 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14672 if test -n "$ac_ct_OTOOL"; then
14673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14674 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14675 else
14676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14677 printf "%s\n" "no" >&6; }
14678 fi
14679
14680 if test "x$ac_ct_OTOOL" = x; then
14681 OTOOL=":"
14682 else
14683 case $cross_compiling:$ac_tool_warned in
14684 yes:)
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14687 ac_tool_warned=yes ;;
14688 esac
14689 OTOOL=$ac_ct_OTOOL
14690 fi
14691 else
14692 OTOOL="$ac_cv_prog_OTOOL"
14693 fi
14694
14695 if test -n "$ac_tool_prefix"; then
14696 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14697 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14699 printf %s "checking for $ac_word... " >&6; }
14700 if test ${ac_cv_prog_OTOOL64+y}
14701 then :
14702 printf %s "(cached) " >&6
14703 else $as_nop
14704 if test -n "$OTOOL64"; then
14705 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14706 else
14707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14709 do
14710 IFS=$as_save_IFS
14711 case $as_dir in #(((
14712 '') as_dir=./ ;;
14713 */) ;;
14714 *) as_dir=$as_dir/ ;;
14715 esac
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14720 break 2
14721 fi
14722 done
14723 done
14724 IFS=$as_save_IFS
14725
14726 fi
14727 fi
14728 OTOOL64=$ac_cv_prog_OTOOL64
14729 if test -n "$OTOOL64"; then
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14731 printf "%s\n" "$OTOOL64" >&6; }
14732 else
14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 printf "%s\n" "no" >&6; }
14735 fi
14736
14737
14738 fi
14739 if test -z "$ac_cv_prog_OTOOL64"; then
14740 ac_ct_OTOOL64=$OTOOL64
14741 # Extract the first word of "otool64", so it can be a program name with args.
14742 set dummy otool64; ac_word=$2
14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14744 printf %s "checking for $ac_word... " >&6; }
14745 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14746 then :
14747 printf %s "(cached) " >&6
14748 else $as_nop
14749 if test -n "$ac_ct_OTOOL64"; then
14750 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14751 else
14752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14753 for as_dir in $PATH
14754 do
14755 IFS=$as_save_IFS
14756 case $as_dir in #(((
14757 '') as_dir=./ ;;
14758 */) ;;
14759 *) as_dir=$as_dir/ ;;
14760 esac
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14763 ac_cv_prog_ac_ct_OTOOL64="otool64"
14764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14765 break 2
14766 fi
14767 done
14768 done
14769 IFS=$as_save_IFS
14770
14771 fi
14772 fi
14773 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14774 if test -n "$ac_ct_OTOOL64"; then
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14776 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14777 else
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 printf "%s\n" "no" >&6; }
14780 fi
14781
14782 if test "x$ac_ct_OTOOL64" = x; then
14783 OTOOL64=":"
14784 else
14785 case $cross_compiling:$ac_tool_warned in
14786 yes:)
14787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14788 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14789 ac_tool_warned=yes ;;
14790 esac
14791 OTOOL64=$ac_ct_OTOOL64
14792 fi
14793 else
14794 OTOOL64="$ac_cv_prog_OTOOL64"
14795 fi
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14824 printf %s "checking for -single_module linker flag... " >&6; }
14825 if test ${lt_cv_apple_cc_single_mod+y}
14826 then :
14827 printf %s "(cached) " >&6
14828 else $as_nop
14829 lt_cv_apple_cc_single_mod=no
14830 if test -z "$LT_MULTI_MODULE"; then
14831 # By default we will add the -single_module flag. You can override
14832 # by either setting the environment variable LT_MULTI_MODULE
14833 # non-empty at configure time, or by adding -multi_module to the
14834 # link flags.
14835 rm -rf libconftest.dylib*
14836 echo "int foo(void){return 1;}" > conftest.c
14837 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14838 -dynamiclib -Wl,-single_module conftest.c" >&5
14839 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14840 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14841 _lt_result=$?
14842 # If there is a non-empty error log, and "single_module"
14843 # appears in it, assume the flag caused a linker warning
14844 if test -s conftest.err && $GREP single_module conftest.err; then
14845 cat conftest.err >&5
14846 # Otherwise, if the output was created with a 0 exit code from
14847 # the compiler, it worked.
14848 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14849 lt_cv_apple_cc_single_mod=yes
14850 else
14851 cat conftest.err >&5
14852 fi
14853 rm -rf libconftest.dylib*
14854 rm -f conftest.*
14855 fi
14856 fi
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14858 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14859
14860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14861 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14862 if test ${lt_cv_ld_exported_symbols_list+y}
14863 then :
14864 printf %s "(cached) " >&6
14865 else $as_nop
14866 lt_cv_ld_exported_symbols_list=no
14867 save_LDFLAGS=$LDFLAGS
14868 echo "_main" > conftest.sym
14869 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14872
14873 int
14874 main (void)
14875 {
14876
14877 ;
14878 return 0;
14879 }
14880 _ACEOF
14881 if ac_fn_c_try_link "$LINENO"
14882 then :
14883 lt_cv_ld_exported_symbols_list=yes
14884 else $as_nop
14885 lt_cv_ld_exported_symbols_list=no
14886 fi
14887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14888 conftest$ac_exeext conftest.$ac_ext
14889 LDFLAGS=$save_LDFLAGS
14890
14891 fi
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14893 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14894
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14896 printf %s "checking for -force_load linker flag... " >&6; }
14897 if test ${lt_cv_ld_force_load+y}
14898 then :
14899 printf %s "(cached) " >&6
14900 else $as_nop
14901 lt_cv_ld_force_load=no
14902 cat > conftest.c << _LT_EOF
14903 int forced_loaded() { return 2;}
14904 _LT_EOF
14905 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14906 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14907 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14908 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14909 echo "$RANLIB libconftest.a" >&5
14910 $RANLIB libconftest.a 2>&5
14911 cat > conftest.c << _LT_EOF
14912 int main() { return 0;}
14913 _LT_EOF
14914 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14915 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14916 _lt_result=$?
14917 if test -s conftest.err && $GREP force_load conftest.err; then
14918 cat conftest.err >&5
14919 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14920 lt_cv_ld_force_load=yes
14921 else
14922 cat conftest.err >&5
14923 fi
14924 rm -f conftest.err libconftest.a conftest conftest.c
14925 rm -rf conftest.dSYM
14926
14927 fi
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14929 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14930 case $host_os in
14931 rhapsody* | darwin1.[012])
14932 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14933 darwin1.*)
14934 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14935 darwin*)
14936 case $MACOSX_DEPLOYMENT_TARGET,$host in
14937 10.[012],*|,*powerpc*-darwin[5-8]*)
14938 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14939 *)
14940 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14941 esac
14942 ;;
14943 esac
14944 if test yes = "$lt_cv_apple_cc_single_mod"; then
14945 _lt_dar_single_mod='$single_module'
14946 fi
14947 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14948 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14949 else
14950 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14951 fi
14952 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14953 _lt_dsymutil='~$DSYMUTIL $lib || :'
14954 else
14955 _lt_dsymutil=
14956 fi
14957 ;;
14958 esac
14959
14960 # func_munge_path_list VARIABLE PATH
14961 # -----------------------------------
14962 # VARIABLE is name of variable containing _space_ separated list of
14963 # directories to be munged by the contents of PATH, which is string
14964 # having a format:
14965 # "DIR[:DIR]:"
14966 # string "DIR[ DIR]" will be prepended to VARIABLE
14967 # ":DIR[:DIR]"
14968 # string "DIR[ DIR]" will be appended to VARIABLE
14969 # "DIRP[:DIRP]::[DIRA:]DIRA"
14970 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14971 # "DIRA[ DIRA]" will be appended to VARIABLE
14972 # "DIR[:DIR]"
14973 # VARIABLE will be replaced by "DIR[ DIR]"
14974 func_munge_path_list ()
14975 {
14976 case x$2 in
14977 x)
14978 ;;
14979 *:)
14980 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14981 ;;
14982 x:*)
14983 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14984 ;;
14985 *::*)
14986 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14987 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14988 ;;
14989 *)
14990 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14991 ;;
14992 esac
14993 }
14994
14995 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14996 "
14997 if test "x$ac_cv_header_dlfcn_h" = xyes
14998 then :
14999 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15000
15001 fi
15002
15003
15004
15005
15006
15007 # Set options
15008
15009
15010
15011 enable_dlopen=no
15012
15013
15014 enable_win32_dll=no
15015
15016
15017 # Check whether --enable-shared was given.
15018 if test ${enable_shared+y}
15019 then :
15020 enableval=$enable_shared; p=${PACKAGE-default}
15021 case $enableval in
15022 yes) enable_shared=yes ;;
15023 no) enable_shared=no ;;
15024 *)
15025 enable_shared=no
15026 # Look at the argument we got. We use all the common list separators.
15027 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15028 for pkg in $enableval; do
15029 IFS=$lt_save_ifs
15030 if test "X$pkg" = "X$p"; then
15031 enable_shared=yes
15032 fi
15033 done
15034 IFS=$lt_save_ifs
15035 ;;
15036 esac
15037 else $as_nop
15038 enable_shared=yes
15039 fi
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051 # Check whether --with-pic was given.
15052 if test ${with_pic+y}
15053 then :
15054 withval=$with_pic; lt_p=${PACKAGE-default}
15055 case $withval in
15056 yes|no) pic_mode=$withval ;;
15057 *)
15058 pic_mode=default
15059 # Look at the argument we got. We use all the common list separators.
15060 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15061 for lt_pkg in $withval; do
15062 IFS=$lt_save_ifs
15063 if test "X$lt_pkg" = "X$lt_p"; then
15064 pic_mode=yes
15065 fi
15066 done
15067 IFS=$lt_save_ifs
15068 ;;
15069 esac
15070 else $as_nop
15071 pic_mode=default
15072 fi
15073
15074
15075
15076
15077
15078
15079
15080
15081 # Check whether --enable-fast-install was given.
15082 if test ${enable_fast_install+y}
15083 then :
15084 enableval=$enable_fast_install; p=${PACKAGE-default}
15085 case $enableval in
15086 yes) enable_fast_install=yes ;;
15087 no) enable_fast_install=no ;;
15088 *)
15089 enable_fast_install=no
15090 # Look at the argument we got. We use all the common list separators.
15091 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15092 for pkg in $enableval; do
15093 IFS=$lt_save_ifs
15094 if test "X$pkg" = "X$p"; then
15095 enable_fast_install=yes
15096 fi
15097 done
15098 IFS=$lt_save_ifs
15099 ;;
15100 esac
15101 else $as_nop
15102 enable_fast_install=yes
15103 fi
15104
15105
15106
15107
15108
15109
15110
15111
15112 shared_archive_member_spec=
15113 case $host,$enable_shared in
15114 power*-*-aix[5-9]*,yes)
15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15116 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15117
15118 # Check whether --with-aix-soname was given.
15119 if test ${with_aix_soname+y}
15120 then :
15121 withval=$with_aix_soname; case $withval in
15122 aix|svr4|both)
15123 ;;
15124 *)
15125 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15126 ;;
15127 esac
15128 lt_cv_with_aix_soname=$with_aix_soname
15129 else $as_nop
15130 if test ${lt_cv_with_aix_soname+y}
15131 then :
15132 printf %s "(cached) " >&6
15133 else $as_nop
15134 lt_cv_with_aix_soname=aix
15135 fi
15136
15137 with_aix_soname=$lt_cv_with_aix_soname
15138 fi
15139
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15141 printf "%s\n" "$with_aix_soname" >&6; }
15142 if test aix != "$with_aix_soname"; then
15143 # For the AIX way of multilib, we name the shared archive member
15144 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15145 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15146 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15147 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15148 if test 64 = "${OBJECT_MODE-32}"; then
15149 shared_archive_member_spec=shr_64
15150 else
15151 shared_archive_member_spec=shr
15152 fi
15153 fi
15154 ;;
15155 *)
15156 with_aix_soname=aix
15157 ;;
15158 esac
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169 # This can be used to rebuild libtool when needed
15170 LIBTOOL_DEPS=$ltmain
15171
15172 # Always use our own libtool.
15173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204 test -z "$LN_S" && LN_S="ln -s"
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219 if test -n "${ZSH_VERSION+set}"; then
15220 setopt NO_GLOB_SUBST
15221 fi
15222
15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15224 printf %s "checking for objdir... " >&6; }
15225 if test ${lt_cv_objdir+y}
15226 then :
15227 printf %s "(cached) " >&6
15228 else $as_nop
15229 rm -f .libs 2>/dev/null
15230 mkdir .libs 2>/dev/null
15231 if test -d .libs; then
15232 lt_cv_objdir=.libs
15233 else
15234 # MS-DOS does not allow filenames that begin with a dot.
15235 lt_cv_objdir=_libs
15236 fi
15237 rmdir .libs 2>/dev/null
15238 fi
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15240 printf "%s\n" "$lt_cv_objdir" >&6; }
15241 objdir=$lt_cv_objdir
15242
15243
15244
15245
15246
15247 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15248
15249
15250
15251
15252 case $host_os in
15253 aix3*)
15254 # AIX sometimes has problems with the GCC collect2 program. For some
15255 # reason, if we set the COLLECT_NAMES environment variable, the problems
15256 # vanish in a puff of smoke.
15257 if test set != "${COLLECT_NAMES+set}"; then
15258 COLLECT_NAMES=
15259 export COLLECT_NAMES
15260 fi
15261 ;;
15262 esac
15263
15264 # Global variables:
15265 ofile=libtool
15266 can_build_shared=yes
15267
15268 # All known linkers require a '.a' archive for static linking (except MSVC and
15269 # ICC, which need '.lib').
15270 libext=a
15271
15272 with_gnu_ld=$lt_cv_prog_gnu_ld
15273
15274 old_CC=$CC
15275 old_CFLAGS=$CFLAGS
15276
15277 # Set sane defaults for various variables
15278 test -z "$CC" && CC=cc
15279 test -z "$LTCC" && LTCC=$CC
15280 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15281 test -z "$LD" && LD=ld
15282 test -z "$ac_objext" && ac_objext=o
15283
15284 func_cc_basename $compiler
15285 cc_basename=$func_cc_basename_result
15286
15287
15288 # Only perform the check for file, if the check method requires it
15289 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15290 case $deplibs_check_method in
15291 file_magic*)
15292 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15294 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15295 if test ${lt_cv_path_MAGIC_CMD+y}
15296 then :
15297 printf %s "(cached) " >&6
15298 else $as_nop
15299 case $MAGIC_CMD in
15300 [\\/*] | ?:[\\/]*)
15301 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15302 ;;
15303 *)
15304 lt_save_MAGIC_CMD=$MAGIC_CMD
15305 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15307 for ac_dir in $ac_dummy; do
15308 IFS=$lt_save_ifs
15309 test -z "$ac_dir" && ac_dir=.
15310 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15311 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15312 if test -n "$file_magic_test_file"; then
15313 case $deplibs_check_method in
15314 "file_magic "*)
15315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15316 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15318 $EGREP "$file_magic_regex" > /dev/null; then
15319 :
15320 else
15321 cat <<_LT_EOF 1>&2
15322
15323 *** Warning: the command libtool uses to detect shared libraries,
15324 *** $file_magic_cmd, produces output that libtool cannot recognize.
15325 *** The result is that libtool may fail to recognize shared libraries
15326 *** as such. This will affect the creation of libtool libraries that
15327 *** depend on shared libraries, but programs linked with such libtool
15328 *** libraries will work regardless of this problem. Nevertheless, you
15329 *** may want to report the problem to your system manager and/or to
15330 *** bug-libtool@gnu.org
15331
15332 _LT_EOF
15333 fi ;;
15334 esac
15335 fi
15336 break
15337 fi
15338 done
15339 IFS=$lt_save_ifs
15340 MAGIC_CMD=$lt_save_MAGIC_CMD
15341 ;;
15342 esac
15343 fi
15344
15345 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15346 if test -n "$MAGIC_CMD"; then
15347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15348 printf "%s\n" "$MAGIC_CMD" >&6; }
15349 else
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351 printf "%s\n" "no" >&6; }
15352 fi
15353
15354
15355
15356
15357
15358 if test -z "$lt_cv_path_MAGIC_CMD"; then
15359 if test -n "$ac_tool_prefix"; then
15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15361 printf %s "checking for file... " >&6; }
15362 if test ${lt_cv_path_MAGIC_CMD+y}
15363 then :
15364 printf %s "(cached) " >&6
15365 else $as_nop
15366 case $MAGIC_CMD in
15367 [\\/*] | ?:[\\/]*)
15368 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15369 ;;
15370 *)
15371 lt_save_MAGIC_CMD=$MAGIC_CMD
15372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15374 for ac_dir in $ac_dummy; do
15375 IFS=$lt_save_ifs
15376 test -z "$ac_dir" && ac_dir=.
15377 if test -f "$ac_dir/file"; then
15378 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15379 if test -n "$file_magic_test_file"; then
15380 case $deplibs_check_method in
15381 "file_magic "*)
15382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15383 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15385 $EGREP "$file_magic_regex" > /dev/null; then
15386 :
15387 else
15388 cat <<_LT_EOF 1>&2
15389
15390 *** Warning: the command libtool uses to detect shared libraries,
15391 *** $file_magic_cmd, produces output that libtool cannot recognize.
15392 *** The result is that libtool may fail to recognize shared libraries
15393 *** as such. This will affect the creation of libtool libraries that
15394 *** depend on shared libraries, but programs linked with such libtool
15395 *** libraries will work regardless of this problem. Nevertheless, you
15396 *** may want to report the problem to your system manager and/or to
15397 *** bug-libtool@gnu.org
15398
15399 _LT_EOF
15400 fi ;;
15401 esac
15402 fi
15403 break
15404 fi
15405 done
15406 IFS=$lt_save_ifs
15407 MAGIC_CMD=$lt_save_MAGIC_CMD
15408 ;;
15409 esac
15410 fi
15411
15412 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15413 if test -n "$MAGIC_CMD"; then
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15415 printf "%s\n" "$MAGIC_CMD" >&6; }
15416 else
15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 printf "%s\n" "no" >&6; }
15419 fi
15420
15421
15422 else
15423 MAGIC_CMD=:
15424 fi
15425 fi
15426
15427 fi
15428 ;;
15429 esac
15430
15431 # Use C for the default configuration in the libtool script
15432
15433 lt_save_CC=$CC
15434 ac_ext=c
15435 ac_cpp='$CPP $CPPFLAGS'
15436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15439
15440
15441 # Source file extension for C test sources.
15442 ac_ext=c
15443
15444 # Object file extension for compiled C test sources.
15445 objext=o
15446 objext=$objext
15447
15448 # Code to be used in simple compile tests
15449 lt_simple_compile_test_code="int some_variable = 0;"
15450
15451 # Code to be used in simple link tests
15452 lt_simple_link_test_code='int main(){return(0);}'
15453
15454
15455
15456
15457
15458
15459
15460 # If no C compiler was specified, use CC.
15461 LTCC=${LTCC-"$CC"}
15462
15463 # If no C compiler flags were specified, use CFLAGS.
15464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15465
15466 # Allow CC to be a program name with arguments.
15467 compiler=$CC
15468
15469 # Save the default compiler, since it gets overwritten when the other
15470 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15471 compiler_DEFAULT=$CC
15472
15473 # save warnings/boilerplate of simple test code
15474 ac_outfile=conftest.$ac_objext
15475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15477 _lt_compiler_boilerplate=`cat conftest.err`
15478 $RM conftest*
15479
15480 ac_outfile=conftest.$ac_objext
15481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15483 _lt_linker_boilerplate=`cat conftest.err`
15484 $RM -r conftest*
15485
15486
15487 if test -n "$compiler"; then
15488
15489 lt_prog_compiler_no_builtin_flag=
15490
15491 if test yes = "$GCC"; then
15492 case $cc_basename in
15493 nvcc*)
15494 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15495 *)
15496 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15497 esac
15498
15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15500 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15501 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15502 then :
15503 printf %s "(cached) " >&6
15504 else $as_nop
15505 lt_cv_prog_compiler_rtti_exceptions=no
15506 ac_outfile=conftest.$ac_objext
15507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15508 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15509 # Insert the option either (1) after the last *FLAGS variable, or
15510 # (2) before a word containing "conftest.", or (3) at the end.
15511 # Note that $ac_compile itself does not contain backslashes and begins
15512 # with a dollar sign (not a hyphen), so the echo should work correctly.
15513 # The option is referenced via a variable to avoid confusing sed.
15514 lt_compile=`echo "$ac_compile" | $SED \
15515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15517 -e 's:$: $lt_compiler_flag:'`
15518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15519 (eval "$lt_compile" 2>conftest.err)
15520 ac_status=$?
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 if (exit $ac_status) && test -s "$ac_outfile"; then
15524 # The compiler can only warn and ignore the option if not recognized
15525 # So say no if there are warnings other than the usual output.
15526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15529 lt_cv_prog_compiler_rtti_exceptions=yes
15530 fi
15531 fi
15532 $RM conftest*
15533
15534 fi
15535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15536 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15537
15538 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15539 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15540 else
15541 :
15542 fi
15543
15544 fi
15545
15546
15547
15548
15549
15550
15551 lt_prog_compiler_wl=
15552 lt_prog_compiler_pic=
15553 lt_prog_compiler_static=
15554
15555
15556 if test yes = "$GCC"; then
15557 lt_prog_compiler_wl='-Wl,'
15558 lt_prog_compiler_static='-static'
15559
15560 case $host_os in
15561 aix*)
15562 # All AIX code is PIC.
15563 if test ia64 = "$host_cpu"; then
15564 # AIX 5 now supports IA64 processor
15565 lt_prog_compiler_static='-Bstatic'
15566 fi
15567 lt_prog_compiler_pic='-fPIC'
15568 ;;
15569
15570 amigaos*)
15571 case $host_cpu in
15572 powerpc)
15573 # see comment about AmigaOS4 .so support
15574 lt_prog_compiler_pic='-fPIC'
15575 ;;
15576 m68k)
15577 # FIXME: we need at least 68020 code to build shared libraries, but
15578 # adding the '-m68020' flag to GCC prevents building anything better,
15579 # like '-m68040'.
15580 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15581 ;;
15582 esac
15583 ;;
15584
15585 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15586 # PIC is the default for these OSes.
15587 ;;
15588
15589 mingw* | cygwin* | pw32* | os2* | cegcc*)
15590 # This hack is so that the source file can tell whether it is being
15591 # built for inclusion in a dll (and should export symbols for example).
15592 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15593 # (--disable-auto-import) libraries
15594 lt_prog_compiler_pic='-DDLL_EXPORT'
15595 case $host_os in
15596 os2*)
15597 lt_prog_compiler_static='$wl-static'
15598 ;;
15599 esac
15600 ;;
15601
15602 darwin* | rhapsody*)
15603 # PIC is the default on this platform
15604 # Common symbols not allowed in MH_DYLIB files
15605 lt_prog_compiler_pic='-fno-common'
15606 ;;
15607
15608 haiku*)
15609 # PIC is the default for Haiku.
15610 # The "-static" flag exists, but is broken.
15611 lt_prog_compiler_static=
15612 ;;
15613
15614 hpux*)
15615 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15616 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15617 # sets the default TLS model and affects inlining.
15618 case $host_cpu in
15619 hppa*64*)
15620 # +Z the default
15621 ;;
15622 *)
15623 lt_prog_compiler_pic='-fPIC'
15624 ;;
15625 esac
15626 ;;
15627
15628 interix[3-9]*)
15629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15630 # Instead, we relocate shared libraries at runtime.
15631 ;;
15632
15633 msdosdjgpp*)
15634 # Just because we use GCC doesn't mean we suddenly get shared libraries
15635 # on systems that don't support them.
15636 lt_prog_compiler_can_build_shared=no
15637 enable_shared=no
15638 ;;
15639
15640 *nto* | *qnx*)
15641 # QNX uses GNU C++, but need to define -shared option too, otherwise
15642 # it will coredump.
15643 lt_prog_compiler_pic='-fPIC -shared'
15644 ;;
15645
15646 sysv4*MP*)
15647 if test -d /usr/nec; then
15648 lt_prog_compiler_pic=-Kconform_pic
15649 fi
15650 ;;
15651
15652 *)
15653 lt_prog_compiler_pic='-fPIC'
15654 ;;
15655 esac
15656
15657 case $cc_basename in
15658 nvcc*) # Cuda Compiler Driver 2.2
15659 lt_prog_compiler_wl='-Xlinker '
15660 if test -n "$lt_prog_compiler_pic"; then
15661 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15662 fi
15663 ;;
15664 esac
15665 else
15666 # PORTME Check for flag to pass linker flags through the system compiler.
15667 case $host_os in
15668 aix*)
15669 lt_prog_compiler_wl='-Wl,'
15670 if test ia64 = "$host_cpu"; then
15671 # AIX 5 now supports IA64 processor
15672 lt_prog_compiler_static='-Bstatic'
15673 else
15674 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15675 fi
15676 ;;
15677
15678 darwin* | rhapsody*)
15679 # PIC is the default on this platform
15680 # Common symbols not allowed in MH_DYLIB files
15681 lt_prog_compiler_pic='-fno-common'
15682 case $cc_basename in
15683 nagfor*)
15684 # NAG Fortran compiler
15685 lt_prog_compiler_wl='-Wl,-Wl,,'
15686 lt_prog_compiler_pic='-PIC'
15687 lt_prog_compiler_static='-Bstatic'
15688 ;;
15689 esac
15690 ;;
15691
15692 mingw* | cygwin* | pw32* | os2* | cegcc*)
15693 # This hack is so that the source file can tell whether it is being
15694 # built for inclusion in a dll (and should export symbols for example).
15695 lt_prog_compiler_pic='-DDLL_EXPORT'
15696 case $host_os in
15697 os2*)
15698 lt_prog_compiler_static='$wl-static'
15699 ;;
15700 esac
15701 ;;
15702
15703 hpux9* | hpux10* | hpux11*)
15704 lt_prog_compiler_wl='-Wl,'
15705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15706 # not for PA HP-UX.
15707 case $host_cpu in
15708 hppa*64*|ia64*)
15709 # +Z the default
15710 ;;
15711 *)
15712 lt_prog_compiler_pic='+Z'
15713 ;;
15714 esac
15715 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15716 lt_prog_compiler_static='$wl-a ${wl}archive'
15717 ;;
15718
15719 irix5* | irix6* | nonstopux*)
15720 lt_prog_compiler_wl='-Wl,'
15721 # PIC (with -KPIC) is the default.
15722 lt_prog_compiler_static='-non_shared'
15723 ;;
15724
15725 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15726 case $cc_basename in
15727 # old Intel for x86_64, which still supported -KPIC.
15728 ecc*)
15729 lt_prog_compiler_wl='-Wl,'
15730 lt_prog_compiler_pic='-KPIC'
15731 lt_prog_compiler_static='-static'
15732 ;;
15733 # icc used to be incompatible with GCC.
15734 # ICC 10 doesn't accept -KPIC any more.
15735 icc* | ifort*)
15736 lt_prog_compiler_wl='-Wl,'
15737 lt_prog_compiler_pic='-fPIC'
15738 lt_prog_compiler_static='-static'
15739 ;;
15740 # Lahey Fortran 8.1.
15741 lf95*)
15742 lt_prog_compiler_wl='-Wl,'
15743 lt_prog_compiler_pic='--shared'
15744 lt_prog_compiler_static='--static'
15745 ;;
15746 nagfor*)
15747 # NAG Fortran compiler
15748 lt_prog_compiler_wl='-Wl,-Wl,,'
15749 lt_prog_compiler_pic='-PIC'
15750 lt_prog_compiler_static='-Bstatic'
15751 ;;
15752 tcc*)
15753 # Fabrice Bellard et al's Tiny C Compiler
15754 lt_prog_compiler_wl='-Wl,'
15755 lt_prog_compiler_pic='-fPIC'
15756 lt_prog_compiler_static='-static'
15757 ;;
15758 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15759 # Portland Group compilers (*not* the Pentium gcc compiler,
15760 # which looks to be a dead project)
15761 lt_prog_compiler_wl='-Wl,'
15762 lt_prog_compiler_pic='-fpic'
15763 lt_prog_compiler_static='-Bstatic'
15764 ;;
15765 ccc*)
15766 lt_prog_compiler_wl='-Wl,'
15767 # All Alpha code is PIC.
15768 lt_prog_compiler_static='-non_shared'
15769 ;;
15770 xl* | bgxl* | bgf* | mpixl*)
15771 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15772 lt_prog_compiler_wl='-Wl,'
15773 lt_prog_compiler_pic='-qpic'
15774 lt_prog_compiler_static='-qstaticlink'
15775 ;;
15776 *)
15777 case `$CC -V 2>&1 | $SED 5q` in
15778 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15779 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15780 lt_prog_compiler_pic='-KPIC'
15781 lt_prog_compiler_static='-Bstatic'
15782 lt_prog_compiler_wl=''
15783 ;;
15784 *Sun\ F* | *Sun*Fortran*)
15785 lt_prog_compiler_pic='-KPIC'
15786 lt_prog_compiler_static='-Bstatic'
15787 lt_prog_compiler_wl='-Qoption ld '
15788 ;;
15789 *Sun\ C*)
15790 # Sun C 5.9
15791 lt_prog_compiler_pic='-KPIC'
15792 lt_prog_compiler_static='-Bstatic'
15793 lt_prog_compiler_wl='-Wl,'
15794 ;;
15795 *Intel*\ [CF]*Compiler*)
15796 lt_prog_compiler_wl='-Wl,'
15797 lt_prog_compiler_pic='-fPIC'
15798 lt_prog_compiler_static='-static'
15799 ;;
15800 *Portland\ Group*)
15801 lt_prog_compiler_wl='-Wl,'
15802 lt_prog_compiler_pic='-fpic'
15803 lt_prog_compiler_static='-Bstatic'
15804 ;;
15805 esac
15806 ;;
15807 esac
15808 ;;
15809
15810 newsos6)
15811 lt_prog_compiler_pic='-KPIC'
15812 lt_prog_compiler_static='-Bstatic'
15813 ;;
15814
15815 *nto* | *qnx*)
15816 # QNX uses GNU C++, but need to define -shared option too, otherwise
15817 # it will coredump.
15818 lt_prog_compiler_pic='-fPIC -shared'
15819 ;;
15820
15821 osf3* | osf4* | osf5*)
15822 lt_prog_compiler_wl='-Wl,'
15823 # All OSF/1 code is PIC.
15824 lt_prog_compiler_static='-non_shared'
15825 ;;
15826
15827 rdos*)
15828 lt_prog_compiler_static='-non_shared'
15829 ;;
15830
15831 solaris*)
15832 lt_prog_compiler_pic='-KPIC'
15833 lt_prog_compiler_static='-Bstatic'
15834 case $cc_basename in
15835 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15836 lt_prog_compiler_wl='-Qoption ld ';;
15837 *)
15838 lt_prog_compiler_wl='-Wl,';;
15839 esac
15840 ;;
15841
15842 sunos4*)
15843 lt_prog_compiler_wl='-Qoption ld '
15844 lt_prog_compiler_pic='-PIC'
15845 lt_prog_compiler_static='-Bstatic'
15846 ;;
15847
15848 sysv4 | sysv4.2uw2* | sysv4.3*)
15849 lt_prog_compiler_wl='-Wl,'
15850 lt_prog_compiler_pic='-KPIC'
15851 lt_prog_compiler_static='-Bstatic'
15852 ;;
15853
15854 sysv4*MP*)
15855 if test -d /usr/nec; then
15856 lt_prog_compiler_pic='-Kconform_pic'
15857 lt_prog_compiler_static='-Bstatic'
15858 fi
15859 ;;
15860
15861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15862 lt_prog_compiler_wl='-Wl,'
15863 lt_prog_compiler_pic='-KPIC'
15864 lt_prog_compiler_static='-Bstatic'
15865 ;;
15866
15867 unicos*)
15868 lt_prog_compiler_wl='-Wl,'
15869 lt_prog_compiler_can_build_shared=no
15870 ;;
15871
15872 uts4*)
15873 lt_prog_compiler_pic='-pic'
15874 lt_prog_compiler_static='-Bstatic'
15875 ;;
15876
15877 *)
15878 lt_prog_compiler_can_build_shared=no
15879 ;;
15880 esac
15881 fi
15882
15883 case $host_os in
15884 # For platforms that do not support PIC, -DPIC is meaningless:
15885 *djgpp*)
15886 lt_prog_compiler_pic=
15887 ;;
15888 *)
15889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15890 ;;
15891 esac
15892
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15894 printf %s "checking for $compiler option to produce PIC... " >&6; }
15895 if test ${lt_cv_prog_compiler_pic+y}
15896 then :
15897 printf %s "(cached) " >&6
15898 else $as_nop
15899 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15900 fi
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15902 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15903 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15904
15905 #
15906 # Check to make sure the PIC flag actually works.
15907 #
15908 if test -n "$lt_prog_compiler_pic"; then
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15910 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15911 if test ${lt_cv_prog_compiler_pic_works+y}
15912 then :
15913 printf %s "(cached) " >&6
15914 else $as_nop
15915 lt_cv_prog_compiler_pic_works=no
15916 ac_outfile=conftest.$ac_objext
15917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15918 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15919 # Insert the option either (1) after the last *FLAGS variable, or
15920 # (2) before a word containing "conftest.", or (3) at the end.
15921 # Note that $ac_compile itself does not contain backslashes and begins
15922 # with a dollar sign (not a hyphen), so the echo should work correctly.
15923 # The option is referenced via a variable to avoid confusing sed.
15924 lt_compile=`echo "$ac_compile" | $SED \
15925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15927 -e 's:$: $lt_compiler_flag:'`
15928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15929 (eval "$lt_compile" 2>conftest.err)
15930 ac_status=$?
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 if (exit $ac_status) && test -s "$ac_outfile"; then
15934 # The compiler can only warn and ignore the option if not recognized
15935 # So say no if there are warnings other than the usual output.
15936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15939 lt_cv_prog_compiler_pic_works=yes
15940 fi
15941 fi
15942 $RM conftest*
15943
15944 fi
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15946 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15947
15948 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15949 case $lt_prog_compiler_pic in
15950 "" | " "*) ;;
15951 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15952 esac
15953 else
15954 lt_prog_compiler_pic=
15955 lt_prog_compiler_can_build_shared=no
15956 fi
15957
15958 fi
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970 #
15971 # Check to make sure the static flag actually works.
15972 #
15973 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15975 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15976 if test ${lt_cv_prog_compiler_static_works+y}
15977 then :
15978 printf %s "(cached) " >&6
15979 else $as_nop
15980 lt_cv_prog_compiler_static_works=no
15981 save_LDFLAGS=$LDFLAGS
15982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15983 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15985 # The linker can only warn and ignore the option if not recognized
15986 # So say no if there are warnings
15987 if test -s conftest.err; then
15988 # Append any errors to the config.log.
15989 cat conftest.err 1>&5
15990 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15992 if diff conftest.exp conftest.er2 >/dev/null; then
15993 lt_cv_prog_compiler_static_works=yes
15994 fi
15995 else
15996 lt_cv_prog_compiler_static_works=yes
15997 fi
15998 fi
15999 $RM -r conftest*
16000 LDFLAGS=$save_LDFLAGS
16001
16002 fi
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16004 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16005
16006 if test yes = "$lt_cv_prog_compiler_static_works"; then
16007 :
16008 else
16009 lt_prog_compiler_static=
16010 fi
16011
16012
16013
16014
16015
16016
16017
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16019 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16020 if test ${lt_cv_prog_compiler_c_o+y}
16021 then :
16022 printf %s "(cached) " >&6
16023 else $as_nop
16024 lt_cv_prog_compiler_c_o=no
16025 $RM -r conftest 2>/dev/null
16026 mkdir conftest
16027 cd conftest
16028 mkdir out
16029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16030
16031 lt_compiler_flag="-o out/conftest2.$ac_objext"
16032 # Insert the option either (1) after the last *FLAGS variable, or
16033 # (2) before a word containing "conftest.", or (3) at the end.
16034 # Note that $ac_compile itself does not contain backslashes and begins
16035 # with a dollar sign (not a hyphen), so the echo should work correctly.
16036 lt_compile=`echo "$ac_compile" | $SED \
16037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16039 -e 's:$: $lt_compiler_flag:'`
16040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16041 (eval "$lt_compile" 2>out/conftest.err)
16042 ac_status=$?
16043 cat out/conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16046 then
16047 # The compiler can only warn and ignore the option if not recognized
16048 # So say no if there are warnings
16049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16052 lt_cv_prog_compiler_c_o=yes
16053 fi
16054 fi
16055 chmod u+w . 2>&5
16056 $RM conftest*
16057 # SGI C++ compiler will create directory out/ii_files/ for
16058 # template instantiation
16059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16060 $RM out/* && rmdir out
16061 cd ..
16062 $RM -r conftest
16063 $RM conftest*
16064
16065 fi
16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16067 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16068
16069
16070
16071
16072
16073
16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16075 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16076 if test ${lt_cv_prog_compiler_c_o+y}
16077 then :
16078 printf %s "(cached) " >&6
16079 else $as_nop
16080 lt_cv_prog_compiler_c_o=no
16081 $RM -r conftest 2>/dev/null
16082 mkdir conftest
16083 cd conftest
16084 mkdir out
16085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16086
16087 lt_compiler_flag="-o out/conftest2.$ac_objext"
16088 # Insert the option either (1) after the last *FLAGS variable, or
16089 # (2) before a word containing "conftest.", or (3) at the end.
16090 # Note that $ac_compile itself does not contain backslashes and begins
16091 # with a dollar sign (not a hyphen), so the echo should work correctly.
16092 lt_compile=`echo "$ac_compile" | $SED \
16093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16095 -e 's:$: $lt_compiler_flag:'`
16096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16097 (eval "$lt_compile" 2>out/conftest.err)
16098 ac_status=$?
16099 cat out/conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16102 then
16103 # The compiler can only warn and ignore the option if not recognized
16104 # So say no if there are warnings
16105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16108 lt_cv_prog_compiler_c_o=yes
16109 fi
16110 fi
16111 chmod u+w . 2>&5
16112 $RM conftest*
16113 # SGI C++ compiler will create directory out/ii_files/ for
16114 # template instantiation
16115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16116 $RM out/* && rmdir out
16117 cd ..
16118 $RM -r conftest
16119 $RM conftest*
16120
16121 fi
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16123 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16124
16125
16126
16127
16128 hard_links=nottested
16129 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16130 # do not overwrite the value of need_locks provided by the user
16131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16132 printf %s "checking if we can lock with hard links... " >&6; }
16133 hard_links=yes
16134 $RM conftest*
16135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16136 touch conftest.a
16137 ln conftest.a conftest.b 2>&5 || hard_links=no
16138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16140 printf "%s\n" "$hard_links" >&6; }
16141 if test no = "$hard_links"; then
16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16143 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16144 need_locks=warn
16145 fi
16146 else
16147 need_locks=no
16148 fi
16149
16150
16151
16152
16153
16154
16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16156 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16157
16158 runpath_var=
16159 allow_undefined_flag=
16160 always_export_symbols=no
16161 archive_cmds=
16162 archive_expsym_cmds=
16163 compiler_needs_object=no
16164 enable_shared_with_static_runtimes=no
16165 export_dynamic_flag_spec=
16166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16167 hardcode_automatic=no
16168 hardcode_direct=no
16169 hardcode_direct_absolute=no
16170 hardcode_libdir_flag_spec=
16171 hardcode_libdir_separator=
16172 hardcode_minus_L=no
16173 hardcode_shlibpath_var=unsupported
16174 inherit_rpath=no
16175 link_all_deplibs=unknown
16176 module_cmds=
16177 module_expsym_cmds=
16178 old_archive_from_new_cmds=
16179 old_archive_from_expsyms_cmds=
16180 thread_safe_flag_spec=
16181 whole_archive_flag_spec=
16182 # include_expsyms should be a list of space-separated symbols to be *always*
16183 # included in the symbol list
16184 include_expsyms=
16185 # exclude_expsyms can be an extended regexp of symbols to exclude
16186 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16187 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16188 # as well as any symbol that contains 'd'.
16189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16191 # platforms (ab)use it in PIC code, but their linkers get confused if
16192 # the symbol is explicitly referenced. Since portable code cannot
16193 # rely on this symbol name, it's probably fine to never include it in
16194 # preloaded symbol tables.
16195 # Exclude shared library initialization/finalization symbols.
16196 extract_expsyms_cmds=
16197
16198 case $host_os in
16199 cygwin* | mingw* | pw32* | cegcc*)
16200 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16201 # When not using gcc, we currently assume that we are using
16202 # Microsoft Visual C++ or Intel C++ Compiler.
16203 if test yes != "$GCC"; then
16204 with_gnu_ld=no
16205 fi
16206 ;;
16207 interix*)
16208 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16209 with_gnu_ld=yes
16210 ;;
16211 openbsd* | bitrig*)
16212 with_gnu_ld=no
16213 ;;
16214 esac
16215
16216 ld_shlibs=yes
16217
16218 # On some targets, GNU ld is compatible enough with the native linker
16219 # that we're better off using the native interface for both.
16220 lt_use_gnu_ld_interface=no
16221 if test yes = "$with_gnu_ld"; then
16222 case $host_os in
16223 aix*)
16224 # The AIX port of GNU ld has always aspired to compatibility
16225 # with the native linker. However, as the warning in the GNU ld
16226 # block says, versions before 2.19.5* couldn't really create working
16227 # shared libraries, regardless of the interface used.
16228 case `$LD -v 2>&1` in
16229 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16230 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16231 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16232 *)
16233 lt_use_gnu_ld_interface=yes
16234 ;;
16235 esac
16236 ;;
16237 *)
16238 lt_use_gnu_ld_interface=yes
16239 ;;
16240 esac
16241 fi
16242
16243 if test yes = "$lt_use_gnu_ld_interface"; then
16244 # If archive_cmds runs LD, not CC, wlarc should be empty
16245 wlarc='$wl'
16246
16247 # Set some defaults for GNU ld with shared library support. These
16248 # are reset later if shared libraries are not supported. Putting them
16249 # here allows them to be overridden if necessary.
16250 runpath_var=LD_RUN_PATH
16251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16252 export_dynamic_flag_spec='$wl--export-dynamic'
16253 # ancient GNU ld didn't support --whole-archive et. al.
16254 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16255 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16256 else
16257 whole_archive_flag_spec=
16258 fi
16259 supports_anon_versioning=no
16260 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16261 *GNU\ gold*) supports_anon_versioning=yes ;;
16262 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16265 *\ 2.11.*) ;; # other 2.11 versions
16266 *) supports_anon_versioning=yes ;;
16267 esac
16268
16269 # See if GNU ld supports shared libraries.
16270 case $host_os in
16271 aix[3-9]*)
16272 # On AIX/PPC, the GNU linker is very broken
16273 if test ia64 != "$host_cpu"; then
16274 ld_shlibs=no
16275 cat <<_LT_EOF 1>&2
16276
16277 *** Warning: the GNU linker, at least up to release 2.19, is reported
16278 *** to be unable to reliably create shared libraries on AIX.
16279 *** Therefore, libtool is disabling shared libraries support. If you
16280 *** really care for shared libraries, you may want to install binutils
16281 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16282 *** You will then need to restart the configuration process.
16283
16284 _LT_EOF
16285 fi
16286 ;;
16287
16288 amigaos*)
16289 case $host_cpu in
16290 powerpc)
16291 # see comment about AmigaOS4 .so support
16292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16293 archive_expsym_cmds=''
16294 ;;
16295 m68k)
16296 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)'
16297 hardcode_libdir_flag_spec='-L$libdir'
16298 hardcode_minus_L=yes
16299 ;;
16300 esac
16301 ;;
16302
16303 beos*)
16304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16305 allow_undefined_flag=unsupported
16306 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16307 # support --undefined. This deserves some investigation. FIXME
16308 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16309 else
16310 ld_shlibs=no
16311 fi
16312 ;;
16313
16314 cygwin* | mingw* | pw32* | cegcc*)
16315 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16316 # as there is no search path for DLLs.
16317 hardcode_libdir_flag_spec='-L$libdir'
16318 export_dynamic_flag_spec='$wl--export-all-symbols'
16319 allow_undefined_flag=unsupported
16320 always_export_symbols=no
16321 enable_shared_with_static_runtimes=yes
16322 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'
16323 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16324
16325 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16327 # If the export-symbols file already is a .def file, use it as
16328 # is; otherwise, prepend EXPORTS...
16329 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16330 cp $export_symbols $output_objdir/$soname.def;
16331 else
16332 echo EXPORTS > $output_objdir/$soname.def;
16333 cat $export_symbols >> $output_objdir/$soname.def;
16334 fi~
16335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16336 else
16337 ld_shlibs=no
16338 fi
16339 ;;
16340
16341 haiku*)
16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16343 link_all_deplibs=yes
16344 ;;
16345
16346 os2*)
16347 hardcode_libdir_flag_spec='-L$libdir'
16348 hardcode_minus_L=yes
16349 allow_undefined_flag=unsupported
16350 shrext_cmds=.dll
16351 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16352 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16353 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16354 $ECHO EXPORTS >> $output_objdir/$libname.def~
16355 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16357 emximp -o $lib $output_objdir/$libname.def'
16358 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16361 $ECHO EXPORTS >> $output_objdir/$libname.def~
16362 prefix_cmds="$SED"~
16363 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16364 prefix_cmds="$prefix_cmds -e 1d";
16365 fi~
16366 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16367 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16368 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16369 emximp -o $lib $output_objdir/$libname.def'
16370 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16371 enable_shared_with_static_runtimes=yes
16372 file_list_spec='@'
16373 ;;
16374
16375 interix[3-9]*)
16376 hardcode_direct=no
16377 hardcode_shlibpath_var=no
16378 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16379 export_dynamic_flag_spec='$wl-E'
16380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16381 # Instead, shared libraries are loaded at an image base (0x10000000 by
16382 # default) and relocated if they conflict, which is a slow very memory
16383 # consuming and fragmenting process. To avoid this, we pick a random,
16384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16385 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16387 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'
16388 ;;
16389
16390 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16391 tmp_diet=no
16392 if test linux-dietlibc = "$host_os"; then
16393 case $cc_basename in
16394 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16395 esac
16396 fi
16397 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16398 && test no = "$tmp_diet"
16399 then
16400 tmp_addflag=' $pic_flag'
16401 tmp_sharedflag='-shared'
16402 case $cc_basename,$host_cpu in
16403 pgcc*) # Portland Group C compiler
16404 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'
16405 tmp_addflag=' $pic_flag'
16406 ;;
16407 pgf77* | pgf90* | pgf95* | pgfortran*)
16408 # Portland Group f77 and f90 compilers
16409 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'
16410 tmp_addflag=' $pic_flag -Mnomain' ;;
16411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16412 tmp_addflag=' -i_dynamic' ;;
16413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16414 tmp_addflag=' -i_dynamic -nofor_main' ;;
16415 ifc* | ifort*) # Intel Fortran compiler
16416 tmp_addflag=' -nofor_main' ;;
16417 lf95*) # Lahey Fortran 8.1
16418 whole_archive_flag_spec=
16419 tmp_sharedflag='--shared' ;;
16420 nagfor*) # NAGFOR 5.3
16421 tmp_sharedflag='-Wl,-shared' ;;
16422 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16423 tmp_sharedflag='-qmkshrobj'
16424 tmp_addflag= ;;
16425 nvcc*) # Cuda Compiler Driver 2.2
16426 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'
16427 compiler_needs_object=yes
16428 ;;
16429 esac
16430 case `$CC -V 2>&1 | $SED 5q` in
16431 *Sun\ C*) # Sun C 5.9
16432 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'
16433 compiler_needs_object=yes
16434 tmp_sharedflag='-G' ;;
16435 *Sun\ F*) # Sun Fortran 8.3
16436 tmp_sharedflag='-G' ;;
16437 esac
16438 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16439
16440 if test yes = "$supports_anon_versioning"; then
16441 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16442 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16443 echo "local: *; };" >> $output_objdir/$libname.ver~
16444 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16445 fi
16446
16447 case $cc_basename in
16448 tcc*)
16449 export_dynamic_flag_spec='-rdynamic'
16450 ;;
16451 xlf* | bgf* | bgxlf* | mpixlf*)
16452 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16453 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16455 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16456 if test yes = "$supports_anon_versioning"; then
16457 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16458 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16459 echo "local: *; };" >> $output_objdir/$libname.ver~
16460 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16461 fi
16462 ;;
16463 esac
16464 else
16465 ld_shlibs=no
16466 fi
16467 ;;
16468
16469 netbsd*)
16470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16471 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16472 wlarc=
16473 else
16474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16476 fi
16477 ;;
16478
16479 solaris*)
16480 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16481 ld_shlibs=no
16482 cat <<_LT_EOF 1>&2
16483
16484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16485 *** create shared libraries on Solaris systems. Therefore, libtool
16486 *** is disabling shared libraries support. We urge you to upgrade GNU
16487 *** binutils to release 2.9.1 or newer. Another option is to modify
16488 *** your PATH or compiler configuration so that the native linker is
16489 *** used, and then restart.
16490
16491 _LT_EOF
16492 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16494 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16495 else
16496 ld_shlibs=no
16497 fi
16498 ;;
16499
16500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16501 case `$LD -v 2>&1` in
16502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16503 ld_shlibs=no
16504 cat <<_LT_EOF 1>&2
16505
16506 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16507 *** reliably create shared libraries on SCO systems. Therefore, libtool
16508 *** is disabling shared libraries support. We urge you to upgrade GNU
16509 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16510 *** your PATH or compiler configuration so that the native linker is
16511 *** used, and then restart.
16512
16513 _LT_EOF
16514 ;;
16515 *)
16516 # For security reasons, it is highly recommended that you always
16517 # use absolute paths for naming shared libraries, and exclude the
16518 # DT_RUNPATH tag from executables and libraries. But doing so
16519 # requires that you compile everything twice, which is a pain.
16520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16521 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16524 else
16525 ld_shlibs=no
16526 fi
16527 ;;
16528 esac
16529 ;;
16530
16531 sunos4*)
16532 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16533 wlarc=
16534 hardcode_direct=yes
16535 hardcode_shlibpath_var=no
16536 ;;
16537
16538 *)
16539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16542 else
16543 ld_shlibs=no
16544 fi
16545 ;;
16546 esac
16547
16548 if test no = "$ld_shlibs"; then
16549 runpath_var=
16550 hardcode_libdir_flag_spec=
16551 export_dynamic_flag_spec=
16552 whole_archive_flag_spec=
16553 fi
16554 else
16555 # PORTME fill in a description of your system's linker (not GNU ld)
16556 case $host_os in
16557 aix3*)
16558 allow_undefined_flag=unsupported
16559 always_export_symbols=yes
16560 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'
16561 # Note: this linker hardcodes the directories in LIBPATH if there
16562 # are no directories specified by -L.
16563 hardcode_minus_L=yes
16564 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16565 # Neither direct hardcoding nor static linking is supported with a
16566 # broken collect2.
16567 hardcode_direct=unsupported
16568 fi
16569 ;;
16570
16571 aix[4-9]*)
16572 if test ia64 = "$host_cpu"; then
16573 # On IA64, the linker does run time linking by default, so we don't
16574 # have to do anything special.
16575 aix_use_runtimelinking=no
16576 exp_sym_flag='-Bexport'
16577 no_entry_flag=
16578 else
16579 # If we're using GNU nm, then we don't want the "-C" option.
16580 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16581 # Without the "-l" option, or with the "-B" option, AIX nm treats
16582 # weak defined symbols like other global defined symbols, whereas
16583 # GNU nm marks them as "W".
16584 # While the 'weak' keyword is ignored in the Export File, we need
16585 # it in the Import File for the 'aix-soname' feature, so we have
16586 # to replace the "-B" option with "-P" for AIX nm.
16587 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16588 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'
16589 else
16590 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 == "L") || (\$ 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'
16591 fi
16592 aix_use_runtimelinking=no
16593
16594 # Test if we are trying to use run time linking or normal
16595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16596 # have runtime linking enabled, and use it for executables.
16597 # For shared libraries, we enable/disable runtime linking
16598 # depending on the kind of the shared library created -
16599 # when "with_aix_soname,aix_use_runtimelinking" is:
16600 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16601 # "aix,yes" lib.so shared, rtl:yes, for executables
16602 # lib.a static archive
16603 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16604 # lib.a(lib.so.V) shared, rtl:no, for executables
16605 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16606 # lib.a(lib.so.V) shared, rtl:no
16607 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16608 # lib.a static archive
16609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16610 for ld_flag in $LDFLAGS; do
16611 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16612 aix_use_runtimelinking=yes
16613 break
16614 fi
16615 done
16616 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16617 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16618 # so we don't have lib.a shared libs to link our executables.
16619 # We have to force runtime linking in this case.
16620 aix_use_runtimelinking=yes
16621 LDFLAGS="$LDFLAGS -Wl,-brtl"
16622 fi
16623 ;;
16624 esac
16625
16626 exp_sym_flag='-bexport'
16627 no_entry_flag='-bnoentry'
16628 fi
16629
16630 # When large executables or shared objects are built, AIX ld can
16631 # have problems creating the table of contents. If linking a library
16632 # or program results in "error TOC overflow" add -mminimal-toc to
16633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16635
16636 archive_cmds=''
16637 hardcode_direct=yes
16638 hardcode_direct_absolute=yes
16639 hardcode_libdir_separator=':'
16640 link_all_deplibs=yes
16641 file_list_spec='$wl-f,'
16642 case $with_aix_soname,$aix_use_runtimelinking in
16643 aix,*) ;; # traditional, no import file
16644 svr4,* | *,yes) # use import file
16645 # The Import File defines what to hardcode.
16646 hardcode_direct=no
16647 hardcode_direct_absolute=no
16648 ;;
16649 esac
16650
16651 if test yes = "$GCC"; then
16652 case $host_os in aix4.[012]|aix4.[012].*)
16653 # We only want to do this on AIX 4.2 and lower, the check
16654 # below for broken collect2 doesn't work under 4.3+
16655 collect2name=`$CC -print-prog-name=collect2`
16656 if test -f "$collect2name" &&
16657 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16658 then
16659 # We have reworked collect2
16660 :
16661 else
16662 # We have old collect2
16663 hardcode_direct=unsupported
16664 # It fails to find uninstalled libraries when the uninstalled
16665 # path is not listed in the libpath. Setting hardcode_minus_L
16666 # to unsupported forces relinking
16667 hardcode_minus_L=yes
16668 hardcode_libdir_flag_spec='-L$libdir'
16669 hardcode_libdir_separator=
16670 fi
16671 ;;
16672 esac
16673 shared_flag='-shared'
16674 if test yes = "$aix_use_runtimelinking"; then
16675 shared_flag="$shared_flag "'$wl-G'
16676 fi
16677 # Need to ensure runtime linking is disabled for the traditional
16678 # shared library, or the linker may eventually find shared libraries
16679 # /with/ Import File - we do not want to mix them.
16680 shared_flag_aix='-shared'
16681 shared_flag_svr4='-shared $wl-G'
16682 else
16683 # not using gcc
16684 if test ia64 = "$host_cpu"; then
16685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16686 # chokes on -Wl,-G. The following line is correct:
16687 shared_flag='-G'
16688 else
16689 if test yes = "$aix_use_runtimelinking"; then
16690 shared_flag='$wl-G'
16691 else
16692 shared_flag='$wl-bM:SRE'
16693 fi
16694 shared_flag_aix='$wl-bM:SRE'
16695 shared_flag_svr4='$wl-G'
16696 fi
16697 fi
16698
16699 export_dynamic_flag_spec='$wl-bexpall'
16700 # It seems that -bexpall does not export symbols beginning with
16701 # underscore (_), so it is better to generate a list of symbols to export.
16702 always_export_symbols=yes
16703 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16704 # Warning - without using the other runtime loading flags (-brtl),
16705 # -berok will link without error, but may produce a broken library.
16706 allow_undefined_flag='-berok'
16707 # Determine the default libpath from the value encoded in an
16708 # empty executable.
16709 if test set = "${lt_cv_aix_libpath+set}"; then
16710 aix_libpath=$lt_cv_aix_libpath
16711 else
16712 if test ${lt_cv_aix_libpath_+y}
16713 then :
16714 printf %s "(cached) " >&6
16715 else $as_nop
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16718
16719 int
16720 main (void)
16721 {
16722
16723 ;
16724 return 0;
16725 }
16726 _ACEOF
16727 if ac_fn_c_try_link "$LINENO"
16728 then :
16729
16730 lt_aix_libpath_sed='
16731 /Import File Strings/,/^$/ {
16732 /^0/ {
16733 s/^0 *\([^ ]*\) *$/\1/
16734 p
16735 }
16736 }'
16737 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16738 # Check for a 64-bit object if we didn't find anything.
16739 if test -z "$lt_cv_aix_libpath_"; then
16740 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16741 fi
16742 fi
16743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16744 conftest$ac_exeext conftest.$ac_ext
16745 if test -z "$lt_cv_aix_libpath_"; then
16746 lt_cv_aix_libpath_=/usr/lib:/lib
16747 fi
16748
16749 fi
16750
16751 aix_libpath=$lt_cv_aix_libpath_
16752 fi
16753
16754 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16755 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
16756 else
16757 if test ia64 = "$host_cpu"; then
16758 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16759 allow_undefined_flag="-z nodefs"
16760 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"
16761 else
16762 # Determine the default libpath from the value encoded in an
16763 # empty executable.
16764 if test set = "${lt_cv_aix_libpath+set}"; then
16765 aix_libpath=$lt_cv_aix_libpath
16766 else
16767 if test ${lt_cv_aix_libpath_+y}
16768 then :
16769 printf %s "(cached) " >&6
16770 else $as_nop
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773
16774 int
16775 main (void)
16776 {
16777
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 if ac_fn_c_try_link "$LINENO"
16783 then :
16784
16785 lt_aix_libpath_sed='
16786 /Import File Strings/,/^$/ {
16787 /^0/ {
16788 s/^0 *\([^ ]*\) *$/\1/
16789 p
16790 }
16791 }'
16792 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16793 # Check for a 64-bit object if we didn't find anything.
16794 if test -z "$lt_cv_aix_libpath_"; then
16795 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16796 fi
16797 fi
16798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16799 conftest$ac_exeext conftest.$ac_ext
16800 if test -z "$lt_cv_aix_libpath_"; then
16801 lt_cv_aix_libpath_=/usr/lib:/lib
16802 fi
16803
16804 fi
16805
16806 aix_libpath=$lt_cv_aix_libpath_
16807 fi
16808
16809 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16810 # Warning - without using the other run time loading flags,
16811 # -berok will link without error, but may produce a broken library.
16812 no_undefined_flag=' $wl-bernotok'
16813 allow_undefined_flag=' $wl-berok'
16814 if test yes = "$with_gnu_ld"; then
16815 # We only use this code for GNU lds that support --whole-archive.
16816 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16817 else
16818 # Exported symbols can be pulled into shared objects from archives
16819 whole_archive_flag_spec='$convenience'
16820 fi
16821 archive_cmds_need_lc=yes
16822 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16823 # -brtl affects multiple linker settings, -berok does not and is overridden later
16824 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16825 if test svr4 != "$with_aix_soname"; then
16826 # This is similar to how AIX traditionally builds its shared libraries.
16827 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'
16828 fi
16829 if test aix != "$with_aix_soname"; then
16830 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'
16831 else
16832 # used by -dlpreopen to get the symbols
16833 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16834 fi
16835 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16836 fi
16837 fi
16838 ;;
16839
16840 amigaos*)
16841 case $host_cpu in
16842 powerpc)
16843 # see comment about AmigaOS4 .so support
16844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16845 archive_expsym_cmds=''
16846 ;;
16847 m68k)
16848 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)'
16849 hardcode_libdir_flag_spec='-L$libdir'
16850 hardcode_minus_L=yes
16851 ;;
16852 esac
16853 ;;
16854
16855 bsdi[45]*)
16856 export_dynamic_flag_spec=-rdynamic
16857 ;;
16858
16859 cygwin* | mingw* | pw32* | cegcc*)
16860 # When not using gcc, we currently assume that we are using
16861 # Microsoft Visual C++ or Intel C++ Compiler.
16862 # hardcode_libdir_flag_spec is actually meaningless, as there is
16863 # no search path for DLLs.
16864 case $cc_basename in
16865 cl* | icl*)
16866 # Native MSVC or ICC
16867 hardcode_libdir_flag_spec=' '
16868 allow_undefined_flag=unsupported
16869 always_export_symbols=yes
16870 file_list_spec='@'
16871 # Tell ltmain to make .lib files, not .a files.
16872 libext=lib
16873 # Tell ltmain to make .dll files, not .so files.
16874 shrext_cmds=.dll
16875 # FIXME: Setting linknames here is a bad hack.
16876 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16877 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16878 cp "$export_symbols" "$output_objdir/$soname.def";
16879 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16880 else
16881 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16882 fi~
16883 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16884 linknames='
16885 # The linker will not automatically build a static lib if we build a DLL.
16886 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16887 enable_shared_with_static_runtimes=yes
16888 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16890 # Don't use ranlib
16891 old_postinstall_cmds='chmod 644 $oldlib'
16892 postlink_cmds='lt_outputfile="@OUTPUT@"~
16893 lt_tool_outputfile="@TOOL_OUTPUT@"~
16894 case $lt_outputfile in
16895 *.exe|*.EXE) ;;
16896 *)
16897 lt_outputfile=$lt_outputfile.exe
16898 lt_tool_outputfile=$lt_tool_outputfile.exe
16899 ;;
16900 esac~
16901 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16902 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16903 $RM "$lt_outputfile.manifest";
16904 fi'
16905 ;;
16906 *)
16907 # Assume MSVC and ICC wrapper
16908 hardcode_libdir_flag_spec=' '
16909 allow_undefined_flag=unsupported
16910 # Tell ltmain to make .lib files, not .a files.
16911 libext=lib
16912 # Tell ltmain to make .dll files, not .so files.
16913 shrext_cmds=.dll
16914 # FIXME: Setting linknames here is a bad hack.
16915 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16916 # The linker will automatically build a .lib file if we build a DLL.
16917 old_archive_from_new_cmds='true'
16918 # FIXME: Should let the user specify the lib program.
16919 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16920 enable_shared_with_static_runtimes=yes
16921 ;;
16922 esac
16923 ;;
16924
16925 darwin* | rhapsody*)
16926
16927
16928 archive_cmds_need_lc=no
16929 hardcode_direct=no
16930 hardcode_automatic=yes
16931 hardcode_shlibpath_var=unsupported
16932 if test yes = "$lt_cv_ld_force_load"; then
16933 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\"`'
16934
16935 else
16936 whole_archive_flag_spec=''
16937 fi
16938 link_all_deplibs=yes
16939 allow_undefined_flag=$_lt_dar_allow_undefined
16940 case $cc_basename in
16941 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16942 *) _lt_dar_can_shared=$GCC ;;
16943 esac
16944 if test yes = "$_lt_dar_can_shared"; then
16945 output_verbose_link_cmd=func_echo_all
16946 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16947 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16948 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"
16949 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"
16950
16951 else
16952 ld_shlibs=no
16953 fi
16954
16955 ;;
16956
16957 dgux*)
16958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16959 hardcode_libdir_flag_spec='-L$libdir'
16960 hardcode_shlibpath_var=no
16961 ;;
16962
16963 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16964 # support. Future versions do this automatically, but an explicit c++rt0.o
16965 # does not break anything, and helps significantly (at the cost of a little
16966 # extra space).
16967 freebsd2.2*)
16968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16969 hardcode_libdir_flag_spec='-R$libdir'
16970 hardcode_direct=yes
16971 hardcode_shlibpath_var=no
16972 ;;
16973
16974 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16975 freebsd2.*)
16976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16977 hardcode_direct=yes
16978 hardcode_minus_L=yes
16979 hardcode_shlibpath_var=no
16980 ;;
16981
16982 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16983 freebsd* | dragonfly* | midnightbsd*)
16984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16985 hardcode_libdir_flag_spec='-R$libdir'
16986 hardcode_direct=yes
16987 hardcode_shlibpath_var=no
16988 ;;
16989
16990 hpux9*)
16991 if test yes = "$GCC"; then
16992 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'
16993 else
16994 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'
16995 fi
16996 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16997 hardcode_libdir_separator=:
16998 hardcode_direct=yes
16999
17000 # hardcode_minus_L: Not really in the search PATH,
17001 # but as the default location of the library.
17002 hardcode_minus_L=yes
17003 export_dynamic_flag_spec='$wl-E'
17004 ;;
17005
17006 hpux10*)
17007 if test yes,no = "$GCC,$with_gnu_ld"; then
17008 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17009 else
17010 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17011 fi
17012 if test no = "$with_gnu_ld"; then
17013 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17014 hardcode_libdir_separator=:
17015 hardcode_direct=yes
17016 hardcode_direct_absolute=yes
17017 export_dynamic_flag_spec='$wl-E'
17018 # hardcode_minus_L: Not really in the search PATH,
17019 # but as the default location of the library.
17020 hardcode_minus_L=yes
17021 fi
17022 ;;
17023
17024 hpux11*)
17025 if test yes,no = "$GCC,$with_gnu_ld"; then
17026 case $host_cpu in
17027 hppa*64*)
17028 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17029 ;;
17030 ia64*)
17031 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17032 ;;
17033 *)
17034 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17035 ;;
17036 esac
17037 else
17038 case $host_cpu in
17039 hppa*64*)
17040 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 ;;
17042 ia64*)
17043 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17044 ;;
17045 *)
17046
17047 # Older versions of the 11.00 compiler do not understand -b yet
17048 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17050 printf %s "checking if $CC understands -b... " >&6; }
17051 if test ${lt_cv_prog_compiler__b+y}
17052 then :
17053 printf %s "(cached) " >&6
17054 else $as_nop
17055 lt_cv_prog_compiler__b=no
17056 save_LDFLAGS=$LDFLAGS
17057 LDFLAGS="$LDFLAGS -b"
17058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17060 # The linker can only warn and ignore the option if not recognized
17061 # So say no if there are warnings
17062 if test -s conftest.err; then
17063 # Append any errors to the config.log.
17064 cat conftest.err 1>&5
17065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067 if diff conftest.exp conftest.er2 >/dev/null; then
17068 lt_cv_prog_compiler__b=yes
17069 fi
17070 else
17071 lt_cv_prog_compiler__b=yes
17072 fi
17073 fi
17074 $RM -r conftest*
17075 LDFLAGS=$save_LDFLAGS
17076
17077 fi
17078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17079 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17080
17081 if test yes = "$lt_cv_prog_compiler__b"; then
17082 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17083 else
17084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17085 fi
17086
17087 ;;
17088 esac
17089 fi
17090 if test no = "$with_gnu_ld"; then
17091 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17092 hardcode_libdir_separator=:
17093
17094 case $host_cpu in
17095 hppa*64*|ia64*)
17096 hardcode_direct=no
17097 hardcode_shlibpath_var=no
17098 ;;
17099 *)
17100 hardcode_direct=yes
17101 hardcode_direct_absolute=yes
17102 export_dynamic_flag_spec='$wl-E'
17103
17104 # hardcode_minus_L: Not really in the search PATH,
17105 # but as the default location of the library.
17106 hardcode_minus_L=yes
17107 ;;
17108 esac
17109 fi
17110 ;;
17111
17112 irix5* | irix6* | nonstopux*)
17113 if test yes = "$GCC"; then
17114 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'
17115 # Try to use the -exported_symbol ld option, if it does not
17116 # work, assume that -exports_file does not work either and
17117 # implicitly export all symbols.
17118 # This should be the same for all languages, so no per-tag cache variable.
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17120 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17121 if test ${lt_cv_irix_exported_symbol+y}
17122 then :
17123 printf %s "(cached) " >&6
17124 else $as_nop
17125 save_LDFLAGS=$LDFLAGS
17126 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 int foo (void) { return 0; }
17130 _ACEOF
17131 if ac_fn_c_try_link "$LINENO"
17132 then :
17133 lt_cv_irix_exported_symbol=yes
17134 else $as_nop
17135 lt_cv_irix_exported_symbol=no
17136 fi
17137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17138 conftest$ac_exeext conftest.$ac_ext
17139 LDFLAGS=$save_LDFLAGS
17140 fi
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17142 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17143 if test yes = "$lt_cv_irix_exported_symbol"; then
17144 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'
17145 fi
17146 else
17147 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'
17148 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'
17149 fi
17150 archive_cmds_need_lc='no'
17151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17152 hardcode_libdir_separator=:
17153 inherit_rpath=yes
17154 link_all_deplibs=yes
17155 ;;
17156
17157 linux*)
17158 case $cc_basename in
17159 tcc*)
17160 # Fabrice Bellard et al's Tiny C Compiler
17161 ld_shlibs=yes
17162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17163 ;;
17164 esac
17165 ;;
17166
17167 netbsd*)
17168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17170 else
17171 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17172 fi
17173 hardcode_libdir_flag_spec='-R$libdir'
17174 hardcode_direct=yes
17175 hardcode_shlibpath_var=no
17176 ;;
17177
17178 newsos6)
17179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17180 hardcode_direct=yes
17181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17182 hardcode_libdir_separator=:
17183 hardcode_shlibpath_var=no
17184 ;;
17185
17186 *nto* | *qnx*)
17187 ;;
17188
17189 openbsd* | bitrig*)
17190 if test -f /usr/libexec/ld.so; then
17191 hardcode_direct=yes
17192 hardcode_shlibpath_var=no
17193 hardcode_direct_absolute=yes
17194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17197 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17198 export_dynamic_flag_spec='$wl-E'
17199 else
17200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17201 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17202 fi
17203 else
17204 ld_shlibs=no
17205 fi
17206 ;;
17207
17208 os2*)
17209 hardcode_libdir_flag_spec='-L$libdir'
17210 hardcode_minus_L=yes
17211 allow_undefined_flag=unsupported
17212 shrext_cmds=.dll
17213 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17214 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17215 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17216 $ECHO EXPORTS >> $output_objdir/$libname.def~
17217 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17219 emximp -o $lib $output_objdir/$libname.def'
17220 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17221 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17222 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17223 $ECHO EXPORTS >> $output_objdir/$libname.def~
17224 prefix_cmds="$SED"~
17225 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17226 prefix_cmds="$prefix_cmds -e 1d";
17227 fi~
17228 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17229 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17230 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17231 emximp -o $lib $output_objdir/$libname.def'
17232 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17233 enable_shared_with_static_runtimes=yes
17234 file_list_spec='@'
17235 ;;
17236
17237 osf3*)
17238 if test yes = "$GCC"; then
17239 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17240 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'
17241 else
17242 allow_undefined_flag=' -expect_unresolved \*'
17243 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'
17244 fi
17245 archive_cmds_need_lc='no'
17246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17247 hardcode_libdir_separator=:
17248 ;;
17249
17250 osf4* | osf5*) # as osf3* with the addition of -msym flag
17251 if test yes = "$GCC"; then
17252 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17253 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'
17254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17255 else
17256 allow_undefined_flag=' -expect_unresolved \*'
17257 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'
17258 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~
17259 $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'
17260
17261 # Both c and cxx compiler support -rpath directly
17262 hardcode_libdir_flag_spec='-rpath $libdir'
17263 fi
17264 archive_cmds_need_lc='no'
17265 hardcode_libdir_separator=:
17266 ;;
17267
17268 solaris*)
17269 no_undefined_flag=' -z defs'
17270 if test yes = "$GCC"; then
17271 wlarc='$wl'
17272 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17274 $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'
17275 else
17276 case `$CC -V 2>&1` in
17277 *"Compilers 5.0"*)
17278 wlarc=''
17279 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17281 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17282 ;;
17283 *)
17284 wlarc='$wl'
17285 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17287 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17288 ;;
17289 esac
17290 fi
17291 hardcode_libdir_flag_spec='-R$libdir'
17292 hardcode_shlibpath_var=no
17293 case $host_os in
17294 solaris2.[0-5] | solaris2.[0-5].*) ;;
17295 *)
17296 # The compiler driver will combine and reorder linker options,
17297 # but understands '-z linker_flag'. GCC discards it without '$wl',
17298 # but is careful enough not to reorder.
17299 # Supported since Solaris 2.6 (maybe 2.5.1?)
17300 if test yes = "$GCC"; then
17301 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17302 else
17303 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17304 fi
17305 ;;
17306 esac
17307 link_all_deplibs=yes
17308 ;;
17309
17310 sunos4*)
17311 if test sequent = "$host_vendor"; then
17312 # Use $CC to link under sequent, because it throws in some extra .o
17313 # files that make .init and .fini sections work.
17314 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17315 else
17316 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17317 fi
17318 hardcode_libdir_flag_spec='-L$libdir'
17319 hardcode_direct=yes
17320 hardcode_minus_L=yes
17321 hardcode_shlibpath_var=no
17322 ;;
17323
17324 sysv4)
17325 case $host_vendor in
17326 sni)
17327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17328 hardcode_direct=yes # is this really true???
17329 ;;
17330 siemens)
17331 ## LD is ld it makes a PLAMLIB
17332 ## CC just makes a GrossModule.
17333 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17334 reload_cmds='$CC -r -o $output$reload_objs'
17335 hardcode_direct=no
17336 ;;
17337 motorola)
17338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17340 ;;
17341 esac
17342 runpath_var='LD_RUN_PATH'
17343 hardcode_shlibpath_var=no
17344 ;;
17345
17346 sysv4.3*)
17347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17348 hardcode_shlibpath_var=no
17349 export_dynamic_flag_spec='-Bexport'
17350 ;;
17351
17352 sysv4*MP*)
17353 if test -d /usr/nec; then
17354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17355 hardcode_shlibpath_var=no
17356 runpath_var=LD_RUN_PATH
17357 hardcode_runpath_var=yes
17358 ld_shlibs=yes
17359 fi
17360 ;;
17361
17362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17363 no_undefined_flag='$wl-z,text'
17364 archive_cmds_need_lc=no
17365 hardcode_shlibpath_var=no
17366 runpath_var='LD_RUN_PATH'
17367
17368 if test yes = "$GCC"; then
17369 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17370 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17371 else
17372 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17373 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17374 fi
17375 ;;
17376
17377 sysv5* | sco3.2v5* | sco5v6*)
17378 # Note: We CANNOT use -z defs as we might desire, because we do not
17379 # link with -lc, and that would cause any symbols used from libc to
17380 # always be unresolved, which means just about no library would
17381 # ever link correctly. If we're not using GNU ld we use -z text
17382 # though, which does catch some bad symbols but isn't as heavy-handed
17383 # as -z defs.
17384 no_undefined_flag='$wl-z,text'
17385 allow_undefined_flag='$wl-z,nodefs'
17386 archive_cmds_need_lc=no
17387 hardcode_shlibpath_var=no
17388 hardcode_libdir_flag_spec='$wl-R,$libdir'
17389 hardcode_libdir_separator=':'
17390 link_all_deplibs=yes
17391 export_dynamic_flag_spec='$wl-Bexport'
17392 runpath_var='LD_RUN_PATH'
17393
17394 if test yes = "$GCC"; then
17395 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17396 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17397 else
17398 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17399 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17400 fi
17401 ;;
17402
17403 uts4*)
17404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17405 hardcode_libdir_flag_spec='-L$libdir'
17406 hardcode_shlibpath_var=no
17407 ;;
17408
17409 *)
17410 ld_shlibs=no
17411 ;;
17412 esac
17413
17414 if test sni = "$host_vendor"; then
17415 case $host in
17416 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17417 export_dynamic_flag_spec='$wl-Blargedynsym'
17418 ;;
17419 esac
17420 fi
17421 fi
17422
17423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17424 printf "%s\n" "$ld_shlibs" >&6; }
17425 test no = "$ld_shlibs" && can_build_shared=no
17426
17427 with_gnu_ld=$with_gnu_ld
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443 #
17444 # Do we need to explicitly link libc?
17445 #
17446 case "x$archive_cmds_need_lc" in
17447 x|xyes)
17448 # Assume -lc should be added
17449 archive_cmds_need_lc=yes
17450
17451 if test yes,yes = "$GCC,$enable_shared"; then
17452 case $archive_cmds in
17453 *'~'*)
17454 # FIXME: we may have to deal with multi-command sequences.
17455 ;;
17456 '$CC '*)
17457 # Test whether the compiler implicitly links with -lc since on some
17458 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17459 # to ld, don't add -lc before -lgcc.
17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17461 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17462 if test ${lt_cv_archive_cmds_need_lc+y}
17463 then :
17464 printf %s "(cached) " >&6
17465 else $as_nop
17466 $RM conftest*
17467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17468
17469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17470 (eval $ac_compile) 2>&5
17471 ac_status=$?
17472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17473 test $ac_status = 0; } 2>conftest.err; then
17474 soname=conftest
17475 lib=conftest
17476 libobjs=conftest.$ac_objext
17477 deplibs=
17478 wl=$lt_prog_compiler_wl
17479 pic_flag=$lt_prog_compiler_pic
17480 compiler_flags=-v
17481 linker_flags=-v
17482 verstring=
17483 output_objdir=.
17484 libname=conftest
17485 lt_save_allow_undefined_flag=$allow_undefined_flag
17486 allow_undefined_flag=
17487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17488 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17489 ac_status=$?
17490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17491 test $ac_status = 0; }
17492 then
17493 lt_cv_archive_cmds_need_lc=no
17494 else
17495 lt_cv_archive_cmds_need_lc=yes
17496 fi
17497 allow_undefined_flag=$lt_save_allow_undefined_flag
17498 else
17499 cat conftest.err 1>&5
17500 fi
17501 $RM conftest*
17502
17503 fi
17504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17505 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17506 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17507 ;;
17508 esac
17509 fi
17510 ;;
17511 esac
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17665 printf %s "checking dynamic linker characteristics... " >&6; }
17666
17667 if test yes = "$GCC"; then
17668 case $host_os in
17669 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17670 *) lt_awk_arg='/^libraries:/' ;;
17671 esac
17672 case $host_os in
17673 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17674 *) lt_sed_strip_eq='s|=/|/|g' ;;
17675 esac
17676 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17677 case $lt_search_path_spec in
17678 *\;*)
17679 # if the path contains ";" then we assume it to be the separator
17680 # otherwise default to the standard path separator (i.e. ":") - it is
17681 # assumed that no part of a normal pathname contains ";" but that should
17682 # okay in the real world where ";" in dirpaths is itself problematic.
17683 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17684 ;;
17685 *)
17686 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17687 ;;
17688 esac
17689 # Ok, now we have the path, separated by spaces, we can step through it
17690 # and add multilib dir if necessary...
17691 lt_tmp_lt_search_path_spec=
17692 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17693 # ...but if some path component already ends with the multilib dir we assume
17694 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17695 case "$lt_multi_os_dir; $lt_search_path_spec " in
17696 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17697 lt_multi_os_dir=
17698 ;;
17699 esac
17700 for lt_sys_path in $lt_search_path_spec; do
17701 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17703 elif test -n "$lt_multi_os_dir"; then
17704 test -d "$lt_sys_path" && \
17705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17706 fi
17707 done
17708 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17709 BEGIN {RS = " "; FS = "/|\n";} {
17710 lt_foo = "";
17711 lt_count = 0;
17712 for (lt_i = NF; lt_i > 0; lt_i--) {
17713 if ($lt_i != "" && $lt_i != ".") {
17714 if ($lt_i == "..") {
17715 lt_count++;
17716 } else {
17717 if (lt_count == 0) {
17718 lt_foo = "/" $lt_i lt_foo;
17719 } else {
17720 lt_count--;
17721 }
17722 }
17723 }
17724 }
17725 if (lt_foo != "") { lt_freq[lt_foo]++; }
17726 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17727 }'`
17728 # AWK program above erroneously prepends '/' to C:/dos/paths
17729 # for these hosts.
17730 case $host_os in
17731 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17732 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17733 esac
17734 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17735 else
17736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17737 fi
17738 library_names_spec=
17739 libname_spec='lib$name'
17740 soname_spec=
17741 shrext_cmds=.so
17742 postinstall_cmds=
17743 postuninstall_cmds=
17744 finish_cmds=
17745 finish_eval=
17746 shlibpath_var=
17747 shlibpath_overrides_runpath=unknown
17748 version_type=none
17749 dynamic_linker="$host_os ld.so"
17750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17751 need_lib_prefix=unknown
17752 hardcode_into_libs=no
17753
17754 # when you set need_version to no, make sure it does not cause -set_version
17755 # flags to be left without arguments
17756 need_version=unknown
17757
17758
17759
17760 case $host_os in
17761 aix3*)
17762 version_type=linux # correct to gnu/linux during the next big refactor
17763 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17764 shlibpath_var=LIBPATH
17765
17766 # AIX 3 has no versioning support, so we append a major version to the name.
17767 soname_spec='$libname$release$shared_ext$major'
17768 ;;
17769
17770 aix[4-9]*)
17771 version_type=linux # correct to gnu/linux during the next big refactor
17772 need_lib_prefix=no
17773 need_version=no
17774 hardcode_into_libs=yes
17775 if test ia64 = "$host_cpu"; then
17776 # AIX 5 supports IA64
17777 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17778 shlibpath_var=LD_LIBRARY_PATH
17779 else
17780 # With GCC up to 2.95.x, collect2 would create an import file
17781 # for dependence libraries. The import file would start with
17782 # the line '#! .'. This would cause the generated library to
17783 # depend on '.', always an invalid library. This was fixed in
17784 # development snapshots of GCC prior to 3.0.
17785 case $host_os in
17786 aix4 | aix4.[01] | aix4.[01].*)
17787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17788 echo ' yes '
17789 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17790 :
17791 else
17792 can_build_shared=no
17793 fi
17794 ;;
17795 esac
17796 # Using Import Files as archive members, it is possible to support
17797 # filename-based versioning of shared library archives on AIX. While
17798 # this would work for both with and without runtime linking, it will
17799 # prevent static linking of such archives. So we do filename-based
17800 # shared library versioning with .so extension only, which is used
17801 # when both runtime linking and shared linking is enabled.
17802 # Unfortunately, runtime linking may impact performance, so we do
17803 # not want this to be the default eventually. Also, we use the
17804 # versioned .so libs for executables only if there is the -brtl
17805 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17806 # To allow for filename-based versioning support, we need to create
17807 # libNAME.so.V as an archive file, containing:
17808 # *) an Import File, referring to the versioned filename of the
17809 # archive as well as the shared archive member, telling the
17810 # bitwidth (32 or 64) of that shared object, and providing the
17811 # list of exported symbols of that shared object, eventually
17812 # decorated with the 'weak' keyword
17813 # *) the shared object with the F_LOADONLY flag set, to really avoid
17814 # it being seen by the linker.
17815 # At run time we better use the real file rather than another symlink,
17816 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17817
17818 case $with_aix_soname,$aix_use_runtimelinking in
17819 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17820 # soname into executable. Probably we can add versioning support to
17821 # collect2, so additional links can be useful in future.
17822 aix,yes) # traditional libtool
17823 dynamic_linker='AIX unversionable lib.so'
17824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17825 # instead of lib<name>.a to let people know that these are not
17826 # typical AIX shared libraries.
17827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17828 ;;
17829 aix,no) # traditional AIX only
17830 dynamic_linker='AIX lib.a(lib.so.V)'
17831 # We preserve .a as extension for shared libraries through AIX4.2
17832 # and later when we are not doing run time linking.
17833 library_names_spec='$libname$release.a $libname.a'
17834 soname_spec='$libname$release$shared_ext$major'
17835 ;;
17836 svr4,*) # full svr4 only
17837 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17838 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17839 # We do not specify a path in Import Files, so LIBPATH fires.
17840 shlibpath_overrides_runpath=yes
17841 ;;
17842 *,yes) # both, prefer svr4
17843 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17844 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17845 # unpreferred sharedlib libNAME.a needs extra handling
17846 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"'
17847 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"'
17848 # We do not specify a path in Import Files, so LIBPATH fires.
17849 shlibpath_overrides_runpath=yes
17850 ;;
17851 *,no) # both, prefer aix
17852 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17853 library_names_spec='$libname$release.a $libname.a'
17854 soname_spec='$libname$release$shared_ext$major'
17855 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17856 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)'
17857 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"'
17858 ;;
17859 esac
17860 shlibpath_var=LIBPATH
17861 fi
17862 ;;
17863
17864 amigaos*)
17865 case $host_cpu in
17866 powerpc)
17867 # Since July 2007 AmigaOS4 officially supports .so libraries.
17868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17870 ;;
17871 m68k)
17872 library_names_spec='$libname.ixlibrary $libname.a'
17873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17874 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'
17875 ;;
17876 esac
17877 ;;
17878
17879 beos*)
17880 library_names_spec='$libname$shared_ext'
17881 dynamic_linker="$host_os ld.so"
17882 shlibpath_var=LIBRARY_PATH
17883 ;;
17884
17885 bsdi[45]*)
17886 version_type=linux # correct to gnu/linux during the next big refactor
17887 need_version=no
17888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17889 soname_spec='$libname$release$shared_ext$major'
17890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17894 # the default ld.so.conf also contains /usr/contrib/lib and
17895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17896 # libtool to hard-code these into programs
17897 ;;
17898
17899 cygwin* | mingw* | pw32* | cegcc*)
17900 version_type=windows
17901 shrext_cmds=.dll
17902 need_version=no
17903 need_lib_prefix=no
17904
17905 case $GCC,$cc_basename in
17906 yes,*)
17907 # gcc
17908 library_names_spec='$libname.dll.a'
17909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17910 postinstall_cmds='base_file=`basename \$file`~
17911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17912 dldir=$destdir/`dirname \$dlpath`~
17913 test -d \$dldir || mkdir -p \$dldir~
17914 $install_prog $dir/$dlname \$dldir/$dlname~
17915 chmod a+x \$dldir/$dlname~
17916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17918 fi'
17919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17920 dlpath=$dir/\$dldll~
17921 $RM \$dlpath'
17922 shlibpath_overrides_runpath=yes
17923
17924 case $host_os in
17925 cygwin*)
17926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17927 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17928
17929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17930 ;;
17931 mingw* | cegcc*)
17932 # MinGW DLLs use traditional 'lib' prefix
17933 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17934 ;;
17935 pw32*)
17936 # pw32 DLLs use 'pw' prefix rather than 'lib'
17937 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17938 ;;
17939 esac
17940 dynamic_linker='Win32 ld.exe'
17941 ;;
17942
17943 *,cl* | *,icl*)
17944 # Native MSVC or ICC
17945 libname_spec='$name'
17946 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17947 library_names_spec='$libname.dll.lib'
17948
17949 case $build_os in
17950 mingw*)
17951 sys_lib_search_path_spec=
17952 lt_save_ifs=$IFS
17953 IFS=';'
17954 for lt_path in $LIB
17955 do
17956 IFS=$lt_save_ifs
17957 # Let DOS variable expansion print the short 8.3 style file name.
17958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17960 done
17961 IFS=$lt_save_ifs
17962 # Convert to MSYS style.
17963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17964 ;;
17965 cygwin*)
17966 # Convert to unix form, then to dos form, then back to unix form
17967 # but this time dos style (no spaces!) so that the unix form looks
17968 # like /cygdrive/c/PROGRA~1:/cygdr...
17969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17972 ;;
17973 *)
17974 sys_lib_search_path_spec=$LIB
17975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17976 # It is most probably a Windows format PATH.
17977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17978 else
17979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17980 fi
17981 # FIXME: find the short name or the path components, as spaces are
17982 # common. (e.g. "Program Files" -> "PROGRA~1")
17983 ;;
17984 esac
17985
17986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17987 postinstall_cmds='base_file=`basename \$file`~
17988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17989 dldir=$destdir/`dirname \$dlpath`~
17990 test -d \$dldir || mkdir -p \$dldir~
17991 $install_prog $dir/$dlname \$dldir/$dlname'
17992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17993 dlpath=$dir/\$dldll~
17994 $RM \$dlpath'
17995 shlibpath_overrides_runpath=yes
17996 dynamic_linker='Win32 link.exe'
17997 ;;
17998
17999 *)
18000 # Assume MSVC and ICC wrapper
18001 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18002 dynamic_linker='Win32 ld.exe'
18003 ;;
18004 esac
18005 # FIXME: first we should search . and the directory the executable is in
18006 shlibpath_var=PATH
18007 ;;
18008
18009 darwin* | rhapsody*)
18010 dynamic_linker="$host_os dyld"
18011 version_type=darwin
18012 need_lib_prefix=no
18013 need_version=no
18014 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18015 soname_spec='$libname$release$major$shared_ext'
18016 shlibpath_overrides_runpath=yes
18017 shlibpath_var=DYLD_LIBRARY_PATH
18018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18019
18020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18022 ;;
18023
18024 dgux*)
18025 version_type=linux # correct to gnu/linux during the next big refactor
18026 need_lib_prefix=no
18027 need_version=no
18028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18029 soname_spec='$libname$release$shared_ext$major'
18030 shlibpath_var=LD_LIBRARY_PATH
18031 ;;
18032
18033 freebsd* | dragonfly* | midnightbsd*)
18034 # DragonFly does not have aout. When/if they implement a new
18035 # versioning mechanism, adjust this.
18036 if test -x /usr/bin/objformat; then
18037 objformat=`/usr/bin/objformat`
18038 else
18039 case $host_os in
18040 freebsd[23].*) objformat=aout ;;
18041 *) objformat=elf ;;
18042 esac
18043 fi
18044 version_type=freebsd-$objformat
18045 case $version_type in
18046 freebsd-elf*)
18047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18048 soname_spec='$libname$release$shared_ext$major'
18049 need_version=no
18050 need_lib_prefix=no
18051 ;;
18052 freebsd-*)
18053 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18054 need_version=yes
18055 ;;
18056 esac
18057 shlibpath_var=LD_LIBRARY_PATH
18058 case $host_os in
18059 freebsd2.*)
18060 shlibpath_overrides_runpath=yes
18061 ;;
18062 freebsd3.[01]* | freebsdelf3.[01]*)
18063 shlibpath_overrides_runpath=yes
18064 hardcode_into_libs=yes
18065 ;;
18066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18068 shlibpath_overrides_runpath=no
18069 hardcode_into_libs=yes
18070 ;;
18071 *) # from 4.6 on, and DragonFly
18072 shlibpath_overrides_runpath=yes
18073 hardcode_into_libs=yes
18074 ;;
18075 esac
18076 ;;
18077
18078 haiku*)
18079 version_type=linux # correct to gnu/linux during the next big refactor
18080 need_lib_prefix=no
18081 need_version=no
18082 dynamic_linker="$host_os runtime_loader"
18083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18084 soname_spec='$libname$release$shared_ext$major'
18085 shlibpath_var=LIBRARY_PATH
18086 shlibpath_overrides_runpath=no
18087 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18088 hardcode_into_libs=yes
18089 ;;
18090
18091 hpux9* | hpux10* | hpux11*)
18092 # Give a soname corresponding to the major version so that dld.sl refuses to
18093 # link against other versions.
18094 version_type=sunos
18095 need_lib_prefix=no
18096 need_version=no
18097 case $host_cpu in
18098 ia64*)
18099 shrext_cmds='.so'
18100 hardcode_into_libs=yes
18101 dynamic_linker="$host_os dld.so"
18102 shlibpath_var=LD_LIBRARY_PATH
18103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18105 soname_spec='$libname$release$shared_ext$major'
18106 if test 32 = "$HPUX_IA64_MODE"; then
18107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18108 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18109 else
18110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18111 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18112 fi
18113 ;;
18114 hppa*64*)
18115 shrext_cmds='.sl'
18116 hardcode_into_libs=yes
18117 dynamic_linker="$host_os dld.sl"
18118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18121 soname_spec='$libname$release$shared_ext$major'
18122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18124 ;;
18125 *)
18126 shrext_cmds='.sl'
18127 dynamic_linker="$host_os dld.sl"
18128 shlibpath_var=SHLIB_PATH
18129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18131 soname_spec='$libname$release$shared_ext$major'
18132 ;;
18133 esac
18134 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18135 postinstall_cmds='chmod 555 $lib'
18136 # or fails outright, so override atomically:
18137 install_override_mode=555
18138 ;;
18139
18140 interix[3-9]*)
18141 version_type=linux # correct to gnu/linux during the next big refactor
18142 need_lib_prefix=no
18143 need_version=no
18144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18145 soname_spec='$libname$release$shared_ext$major'
18146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18147 shlibpath_var=LD_LIBRARY_PATH
18148 shlibpath_overrides_runpath=no
18149 hardcode_into_libs=yes
18150 ;;
18151
18152 irix5* | irix6* | nonstopux*)
18153 case $host_os in
18154 nonstopux*) version_type=nonstopux ;;
18155 *)
18156 if test yes = "$lt_cv_prog_gnu_ld"; then
18157 version_type=linux # correct to gnu/linux during the next big refactor
18158 else
18159 version_type=irix
18160 fi ;;
18161 esac
18162 need_lib_prefix=no
18163 need_version=no
18164 soname_spec='$libname$release$shared_ext$major'
18165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18166 case $host_os in
18167 irix5* | nonstopux*)
18168 libsuff= shlibsuff=
18169 ;;
18170 *)
18171 case $LD in # libtool.m4 will add one of these switches to LD
18172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18173 libsuff= shlibsuff= libmagic=32-bit;;
18174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18175 libsuff=32 shlibsuff=N32 libmagic=N32;;
18176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18178 *) libsuff= shlibsuff= libmagic=never-match;;
18179 esac
18180 ;;
18181 esac
18182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18183 shlibpath_overrides_runpath=no
18184 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18185 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18186 hardcode_into_libs=yes
18187 ;;
18188
18189 # No shared lib support for Linux oldld, aout, or coff.
18190 linux*oldld* | linux*aout* | linux*coff*)
18191 dynamic_linker=no
18192 ;;
18193
18194 linux*android*)
18195 version_type=none # Android doesn't support versioned libraries.
18196 need_lib_prefix=no
18197 need_version=no
18198 library_names_spec='$libname$release$shared_ext'
18199 soname_spec='$libname$release$shared_ext'
18200 finish_cmds=
18201 shlibpath_var=LD_LIBRARY_PATH
18202 shlibpath_overrides_runpath=yes
18203
18204 # This implies no fast_install, which is unacceptable.
18205 # Some rework will be needed to allow for fast_install
18206 # before this can be enabled.
18207 hardcode_into_libs=yes
18208
18209 dynamic_linker='Android linker'
18210 # Don't embed -rpath directories since the linker doesn't support them.
18211 hardcode_libdir_flag_spec='-L$libdir'
18212 ;;
18213
18214 # This must be glibc/ELF.
18215 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18216 version_type=linux # correct to gnu/linux during the next big refactor
18217 need_lib_prefix=no
18218 need_version=no
18219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18220 soname_spec='$libname$release$shared_ext$major'
18221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18222 shlibpath_var=LD_LIBRARY_PATH
18223 shlibpath_overrides_runpath=no
18224
18225 # Some binutils ld are patched to set DT_RUNPATH
18226 if test ${lt_cv_shlibpath_overrides_runpath+y}
18227 then :
18228 printf %s "(cached) " >&6
18229 else $as_nop
18230 lt_cv_shlibpath_overrides_runpath=no
18231 save_LDFLAGS=$LDFLAGS
18232 save_libdir=$libdir
18233 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18234 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18237
18238 int
18239 main (void)
18240 {
18241
18242 ;
18243 return 0;
18244 }
18245 _ACEOF
18246 if ac_fn_c_try_link "$LINENO"
18247 then :
18248 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18249 then :
18250 lt_cv_shlibpath_overrides_runpath=yes
18251 fi
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18254 conftest$ac_exeext conftest.$ac_ext
18255 LDFLAGS=$save_LDFLAGS
18256 libdir=$save_libdir
18257
18258 fi
18259
18260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18261
18262 # This implies no fast_install, which is unacceptable.
18263 # Some rework will be needed to allow for fast_install
18264 # before this can be enabled.
18265 hardcode_into_libs=yes
18266
18267 # Ideally, we could use ldconfig to report *all* directores which are
18268 # searched for libraries, however this is still not possible. Aside from not
18269 # being certain /sbin/ldconfig is available, command
18270 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18271 # even though it is searched at run-time. Try to do the best guess by
18272 # appending ld.so.conf contents (and includes) to the search path.
18273 if test -f /etc/ld.so.conf; then
18274 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' ' '`
18275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18276 fi
18277
18278 # We used to test for /lib/ld.so.1 and disable shared libraries on
18279 # powerpc, because MkLinux only supported shared libraries with the
18280 # GNU dynamic linker. Since this was broken with cross compilers,
18281 # most powerpc-linux boxes support dynamic linking these days and
18282 # people can always --disable-shared, the test was removed, and we
18283 # assume the GNU/Linux dynamic linker is in use.
18284 dynamic_linker='GNU/Linux ld.so'
18285 ;;
18286
18287 netbsd*)
18288 version_type=sunos
18289 need_lib_prefix=no
18290 need_version=no
18291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18292 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18294 dynamic_linker='NetBSD (a.out) ld.so'
18295 else
18296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18297 soname_spec='$libname$release$shared_ext$major'
18298 dynamic_linker='NetBSD ld.elf_so'
18299 fi
18300 shlibpath_var=LD_LIBRARY_PATH
18301 shlibpath_overrides_runpath=yes
18302 hardcode_into_libs=yes
18303 ;;
18304
18305 newsos6)
18306 version_type=linux # correct to gnu/linux during the next big refactor
18307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 shlibpath_overrides_runpath=yes
18310 ;;
18311
18312 *nto* | *qnx*)
18313 version_type=qnx
18314 need_lib_prefix=no
18315 need_version=no
18316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18317 soname_spec='$libname$release$shared_ext$major'
18318 shlibpath_var=LD_LIBRARY_PATH
18319 shlibpath_overrides_runpath=no
18320 hardcode_into_libs=yes
18321 dynamic_linker='ldqnx.so'
18322 ;;
18323
18324 openbsd* | bitrig*)
18325 version_type=sunos
18326 sys_lib_dlsearch_path_spec=/usr/lib
18327 need_lib_prefix=no
18328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18329 need_version=no
18330 else
18331 need_version=yes
18332 fi
18333 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18335 shlibpath_var=LD_LIBRARY_PATH
18336 shlibpath_overrides_runpath=yes
18337 ;;
18338
18339 os2*)
18340 libname_spec='$name'
18341 version_type=windows
18342 shrext_cmds=.dll
18343 need_version=no
18344 need_lib_prefix=no
18345 # OS/2 can only load a DLL with a base name of 8 characters or less.
18346 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18347 v=$($ECHO $release$versuffix | tr -d .-);
18348 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18349 $ECHO $n$v`$shared_ext'
18350 library_names_spec='${libname}_dll.$libext'
18351 dynamic_linker='OS/2 ld.exe'
18352 shlibpath_var=BEGINLIBPATH
18353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18355 postinstall_cmds='base_file=`basename \$file`~
18356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18357 dldir=$destdir/`dirname \$dlpath`~
18358 test -d \$dldir || mkdir -p \$dldir~
18359 $install_prog $dir/$dlname \$dldir/$dlname~
18360 chmod a+x \$dldir/$dlname~
18361 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18362 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18363 fi'
18364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18365 dlpath=$dir/\$dldll~
18366 $RM \$dlpath'
18367 ;;
18368
18369 osf3* | osf4* | osf5*)
18370 version_type=osf
18371 need_lib_prefix=no
18372 need_version=no
18373 soname_spec='$libname$release$shared_ext$major'
18374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18375 shlibpath_var=LD_LIBRARY_PATH
18376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18378 ;;
18379
18380 rdos*)
18381 dynamic_linker=no
18382 ;;
18383
18384 solaris*)
18385 version_type=linux # correct to gnu/linux during the next big refactor
18386 need_lib_prefix=no
18387 need_version=no
18388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18389 soname_spec='$libname$release$shared_ext$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 shlibpath_overrides_runpath=yes
18392 hardcode_into_libs=yes
18393 # ldd complains unless libraries are executable
18394 postinstall_cmds='chmod +x $lib'
18395 ;;
18396
18397 sunos4*)
18398 version_type=sunos
18399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 shlibpath_overrides_runpath=yes
18403 if test yes = "$with_gnu_ld"; then
18404 need_lib_prefix=no
18405 fi
18406 need_version=yes
18407 ;;
18408
18409 sysv4 | sysv4.3*)
18410 version_type=linux # correct to gnu/linux during the next big refactor
18411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18412 soname_spec='$libname$release$shared_ext$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 case $host_vendor in
18415 sni)
18416 shlibpath_overrides_runpath=no
18417 need_lib_prefix=no
18418 runpath_var=LD_RUN_PATH
18419 ;;
18420 siemens)
18421 need_lib_prefix=no
18422 ;;
18423 motorola)
18424 need_lib_prefix=no
18425 need_version=no
18426 shlibpath_overrides_runpath=no
18427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18428 ;;
18429 esac
18430 ;;
18431
18432 sysv4*MP*)
18433 if test -d /usr/nec; then
18434 version_type=linux # correct to gnu/linux during the next big refactor
18435 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18436 soname_spec='$libname$shared_ext.$major'
18437 shlibpath_var=LD_LIBRARY_PATH
18438 fi
18439 ;;
18440
18441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18442 version_type=sco
18443 need_lib_prefix=no
18444 need_version=no
18445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18446 soname_spec='$libname$release$shared_ext$major'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=yes
18449 hardcode_into_libs=yes
18450 if test yes = "$with_gnu_ld"; then
18451 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18452 else
18453 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18454 case $host_os in
18455 sco3.2v5*)
18456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18457 ;;
18458 esac
18459 fi
18460 sys_lib_dlsearch_path_spec='/usr/lib'
18461 ;;
18462
18463 tpf*)
18464 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18465 version_type=linux # correct to gnu/linux during the next big refactor
18466 need_lib_prefix=no
18467 need_version=no
18468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 shlibpath_overrides_runpath=no
18471 hardcode_into_libs=yes
18472 ;;
18473
18474 uts4*)
18475 version_type=linux # correct to gnu/linux during the next big refactor
18476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18477 soname_spec='$libname$release$shared_ext$major'
18478 shlibpath_var=LD_LIBRARY_PATH
18479 ;;
18480
18481 *)
18482 dynamic_linker=no
18483 ;;
18484 esac
18485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18486 printf "%s\n" "$dynamic_linker" >&6; }
18487 test no = "$dynamic_linker" && can_build_shared=no
18488
18489 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18490 if test yes = "$GCC"; then
18491 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18492 fi
18493
18494 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18495 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18496 fi
18497
18498 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18499 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18500 fi
18501
18502 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18503 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18504
18505 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18506 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18507
18508 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18509 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18608 printf %s "checking how to hardcode library paths into programs... " >&6; }
18609 hardcode_action=
18610 if test -n "$hardcode_libdir_flag_spec" ||
18611 test -n "$runpath_var" ||
18612 test yes = "$hardcode_automatic"; then
18613
18614 # We can hardcode non-existent directories.
18615 if test no != "$hardcode_direct" &&
18616 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18617 # have to relink, otherwise we might link with an installed library
18618 # when we should be linking with a yet-to-be-installed one
18619 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18620 test no != "$hardcode_minus_L"; then
18621 # Linking always hardcodes the temporary library directory.
18622 hardcode_action=relink
18623 else
18624 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18625 hardcode_action=immediate
18626 fi
18627 else
18628 # We cannot hardcode anything, or else we can only hardcode existing
18629 # directories.
18630 hardcode_action=unsupported
18631 fi
18632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18633 printf "%s\n" "$hardcode_action" >&6; }
18634
18635 if test relink = "$hardcode_action" ||
18636 test yes = "$inherit_rpath"; then
18637 # Fast installation is not supported
18638 enable_fast_install=no
18639 elif test yes = "$shlibpath_overrides_runpath" ||
18640 test no = "$enable_shared"; then
18641 # Fast installation is not necessary
18642 enable_fast_install=needless
18643 fi
18644
18645
18646
18647
18648
18649
18650 if test yes != "$enable_dlopen"; then
18651 enable_dlopen=unknown
18652 enable_dlopen_self=unknown
18653 enable_dlopen_self_static=unknown
18654 else
18655 lt_cv_dlopen=no
18656 lt_cv_dlopen_libs=
18657
18658 case $host_os in
18659 beos*)
18660 lt_cv_dlopen=load_add_on
18661 lt_cv_dlopen_libs=
18662 lt_cv_dlopen_self=yes
18663 ;;
18664
18665 mingw* | pw32* | cegcc*)
18666 lt_cv_dlopen=LoadLibrary
18667 lt_cv_dlopen_libs=
18668 ;;
18669
18670 cygwin*)
18671 lt_cv_dlopen=dlopen
18672 lt_cv_dlopen_libs=
18673 ;;
18674
18675 darwin*)
18676 # if libdl is installed we need to link against it
18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18678 printf %s "checking for dlopen in -ldl... " >&6; }
18679 if test ${ac_cv_lib_dl_dlopen+y}
18680 then :
18681 printf %s "(cached) " >&6
18682 else $as_nop
18683 ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-ldl $LIBS"
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18687
18688 /* Override any GCC internal prototype to avoid an error.
18689 Use char because int might match the return type of a GCC
18690 builtin and then its argument prototype would still apply. */
18691 char dlopen ();
18692 int
18693 main (void)
18694 {
18695 return dlopen ();
18696 ;
18697 return 0;
18698 }
18699 _ACEOF
18700 if ac_fn_c_try_link "$LINENO"
18701 then :
18702 ac_cv_lib_dl_dlopen=yes
18703 else $as_nop
18704 ac_cv_lib_dl_dlopen=no
18705 fi
18706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18707 conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18709 fi
18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18711 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18712 if test "x$ac_cv_lib_dl_dlopen" = xyes
18713 then :
18714 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18715 else $as_nop
18716
18717 lt_cv_dlopen=dyld
18718 lt_cv_dlopen_libs=
18719 lt_cv_dlopen_self=yes
18720
18721 fi
18722
18723 ;;
18724
18725 tpf*)
18726 # Don't try to run any link tests for TPF. We know it's impossible
18727 # because TPF is a cross-compiler, and we know how we open DSOs.
18728 lt_cv_dlopen=dlopen
18729 lt_cv_dlopen_libs=
18730 lt_cv_dlopen_self=no
18731 ;;
18732
18733 *)
18734 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18735 if test "x$ac_cv_func_shl_load" = xyes
18736 then :
18737 lt_cv_dlopen=shl_load
18738 else $as_nop
18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18740 printf %s "checking for shl_load in -ldld... " >&6; }
18741 if test ${ac_cv_lib_dld_shl_load+y}
18742 then :
18743 printf %s "(cached) " >&6
18744 else $as_nop
18745 ac_check_lib_save_LIBS=$LIBS
18746 LIBS="-ldld $LIBS"
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18749
18750 /* Override any GCC internal prototype to avoid an error.
18751 Use char because int might match the return type of a GCC
18752 builtin and then its argument prototype would still apply. */
18753 char shl_load ();
18754 int
18755 main (void)
18756 {
18757 return shl_load ();
18758 ;
18759 return 0;
18760 }
18761 _ACEOF
18762 if ac_fn_c_try_link "$LINENO"
18763 then :
18764 ac_cv_lib_dld_shl_load=yes
18765 else $as_nop
18766 ac_cv_lib_dld_shl_load=no
18767 fi
18768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18769 conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18771 fi
18772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18773 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18774 if test "x$ac_cv_lib_dld_shl_load" = xyes
18775 then :
18776 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18777 else $as_nop
18778 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18779 if test "x$ac_cv_func_dlopen" = xyes
18780 then :
18781 lt_cv_dlopen=dlopen
18782 else $as_nop
18783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18784 printf %s "checking for dlopen in -ldl... " >&6; }
18785 if test ${ac_cv_lib_dl_dlopen+y}
18786 then :
18787 printf %s "(cached) " >&6
18788 else $as_nop
18789 ac_check_lib_save_LIBS=$LIBS
18790 LIBS="-ldl $LIBS"
18791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18793
18794 /* Override any GCC internal prototype to avoid an error.
18795 Use char because int might match the return type of a GCC
18796 builtin and then its argument prototype would still apply. */
18797 char dlopen ();
18798 int
18799 main (void)
18800 {
18801 return dlopen ();
18802 ;
18803 return 0;
18804 }
18805 _ACEOF
18806 if ac_fn_c_try_link "$LINENO"
18807 then :
18808 ac_cv_lib_dl_dlopen=yes
18809 else $as_nop
18810 ac_cv_lib_dl_dlopen=no
18811 fi
18812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18813 conftest$ac_exeext conftest.$ac_ext
18814 LIBS=$ac_check_lib_save_LIBS
18815 fi
18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18817 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18818 if test "x$ac_cv_lib_dl_dlopen" = xyes
18819 then :
18820 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18821 else $as_nop
18822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18823 printf %s "checking for dlopen in -lsvld... " >&6; }
18824 if test ${ac_cv_lib_svld_dlopen+y}
18825 then :
18826 printf %s "(cached) " >&6
18827 else $as_nop
18828 ac_check_lib_save_LIBS=$LIBS
18829 LIBS="-lsvld $LIBS"
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18836 char dlopen ();
18837 int
18838 main (void)
18839 {
18840 return dlopen ();
18841 ;
18842 return 0;
18843 }
18844 _ACEOF
18845 if ac_fn_c_try_link "$LINENO"
18846 then :
18847 ac_cv_lib_svld_dlopen=yes
18848 else $as_nop
18849 ac_cv_lib_svld_dlopen=no
18850 fi
18851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18852 conftest$ac_exeext conftest.$ac_ext
18853 LIBS=$ac_check_lib_save_LIBS
18854 fi
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18856 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18857 if test "x$ac_cv_lib_svld_dlopen" = xyes
18858 then :
18859 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18860 else $as_nop
18861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18862 printf %s "checking for dld_link in -ldld... " >&6; }
18863 if test ${ac_cv_lib_dld_dld_link+y}
18864 then :
18865 printf %s "(cached) " >&6
18866 else $as_nop
18867 ac_check_lib_save_LIBS=$LIBS
18868 LIBS="-ldld $LIBS"
18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18871
18872 /* Override any GCC internal prototype to avoid an error.
18873 Use char because int might match the return type of a GCC
18874 builtin and then its argument prototype would still apply. */
18875 char dld_link ();
18876 int
18877 main (void)
18878 {
18879 return dld_link ();
18880 ;
18881 return 0;
18882 }
18883 _ACEOF
18884 if ac_fn_c_try_link "$LINENO"
18885 then :
18886 ac_cv_lib_dld_dld_link=yes
18887 else $as_nop
18888 ac_cv_lib_dld_dld_link=no
18889 fi
18890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18891 conftest$ac_exeext conftest.$ac_ext
18892 LIBS=$ac_check_lib_save_LIBS
18893 fi
18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18895 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18896 if test "x$ac_cv_lib_dld_dld_link" = xyes
18897 then :
18898 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18899 fi
18900
18901
18902 fi
18903
18904
18905 fi
18906
18907
18908 fi
18909
18910
18911 fi
18912
18913
18914 fi
18915
18916 ;;
18917 esac
18918
18919 if test no = "$lt_cv_dlopen"; then
18920 enable_dlopen=no
18921 else
18922 enable_dlopen=yes
18923 fi
18924
18925 case $lt_cv_dlopen in
18926 dlopen)
18927 save_CPPFLAGS=$CPPFLAGS
18928 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18929
18930 save_LDFLAGS=$LDFLAGS
18931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18932
18933 save_LIBS=$LIBS
18934 LIBS="$lt_cv_dlopen_libs $LIBS"
18935
18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18937 printf %s "checking whether a program can dlopen itself... " >&6; }
18938 if test ${lt_cv_dlopen_self+y}
18939 then :
18940 printf %s "(cached) " >&6
18941 else $as_nop
18942 if test yes = "$cross_compiling"; then :
18943 lt_cv_dlopen_self=cross
18944 else
18945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18946 lt_status=$lt_dlunknown
18947 cat > conftest.$ac_ext <<_LT_EOF
18948 #line $LINENO "configure"
18949 #include "confdefs.h"
18950
18951 #if HAVE_DLFCN_H
18952 #include <dlfcn.h>
18953 #endif
18954
18955 #include <stdio.h>
18956
18957 #ifdef RTLD_GLOBAL
18958 # define LT_DLGLOBAL RTLD_GLOBAL
18959 #else
18960 # ifdef DL_GLOBAL
18961 # define LT_DLGLOBAL DL_GLOBAL
18962 # else
18963 # define LT_DLGLOBAL 0
18964 # endif
18965 #endif
18966
18967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18968 find out it does not work in some platform. */
18969 #ifndef LT_DLLAZY_OR_NOW
18970 # ifdef RTLD_LAZY
18971 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18972 # else
18973 # ifdef DL_LAZY
18974 # define LT_DLLAZY_OR_NOW DL_LAZY
18975 # else
18976 # ifdef RTLD_NOW
18977 # define LT_DLLAZY_OR_NOW RTLD_NOW
18978 # else
18979 # ifdef DL_NOW
18980 # define LT_DLLAZY_OR_NOW DL_NOW
18981 # else
18982 # define LT_DLLAZY_OR_NOW 0
18983 # endif
18984 # endif
18985 # endif
18986 # endif
18987 #endif
18988
18989 /* When -fvisibility=hidden is used, assume the code has been annotated
18990 correspondingly for the symbols needed. */
18991 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18992 int fnord () __attribute__((visibility("default")));
18993 #endif
18994
18995 int fnord () { return 42; }
18996 int main ()
18997 {
18998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18999 int status = $lt_dlunknown;
19000
19001 if (self)
19002 {
19003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19004 else
19005 {
19006 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19007 else puts (dlerror ());
19008 }
19009 /* dlclose (self); */
19010 }
19011 else
19012 puts (dlerror ());
19013
19014 return status;
19015 }
19016 _LT_EOF
19017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19018 (eval $ac_link) 2>&5
19019 ac_status=$?
19020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19021 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19022 (./conftest; exit; ) >&5 2>/dev/null
19023 lt_status=$?
19024 case x$lt_status in
19025 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19026 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19027 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19028 esac
19029 else :
19030 # compilation failed
19031 lt_cv_dlopen_self=no
19032 fi
19033 fi
19034 rm -fr conftest*
19035
19036
19037 fi
19038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19039 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19040
19041 if test yes = "$lt_cv_dlopen_self"; then
19042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19044 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19045 if test ${lt_cv_dlopen_self_static+y}
19046 then :
19047 printf %s "(cached) " >&6
19048 else $as_nop
19049 if test yes = "$cross_compiling"; then :
19050 lt_cv_dlopen_self_static=cross
19051 else
19052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19053 lt_status=$lt_dlunknown
19054 cat > conftest.$ac_ext <<_LT_EOF
19055 #line $LINENO "configure"
19056 #include "confdefs.h"
19057
19058 #if HAVE_DLFCN_H
19059 #include <dlfcn.h>
19060 #endif
19061
19062 #include <stdio.h>
19063
19064 #ifdef RTLD_GLOBAL
19065 # define LT_DLGLOBAL RTLD_GLOBAL
19066 #else
19067 # ifdef DL_GLOBAL
19068 # define LT_DLGLOBAL DL_GLOBAL
19069 # else
19070 # define LT_DLGLOBAL 0
19071 # endif
19072 #endif
19073
19074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19075 find out it does not work in some platform. */
19076 #ifndef LT_DLLAZY_OR_NOW
19077 # ifdef RTLD_LAZY
19078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19079 # else
19080 # ifdef DL_LAZY
19081 # define LT_DLLAZY_OR_NOW DL_LAZY
19082 # else
19083 # ifdef RTLD_NOW
19084 # define LT_DLLAZY_OR_NOW RTLD_NOW
19085 # else
19086 # ifdef DL_NOW
19087 # define LT_DLLAZY_OR_NOW DL_NOW
19088 # else
19089 # define LT_DLLAZY_OR_NOW 0
19090 # endif
19091 # endif
19092 # endif
19093 # endif
19094 #endif
19095
19096 /* When -fvisibility=hidden is used, assume the code has been annotated
19097 correspondingly for the symbols needed. */
19098 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19099 int fnord () __attribute__((visibility("default")));
19100 #endif
19101
19102 int fnord () { return 42; }
19103 int main ()
19104 {
19105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19106 int status = $lt_dlunknown;
19107
19108 if (self)
19109 {
19110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19111 else
19112 {
19113 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19114 else puts (dlerror ());
19115 }
19116 /* dlclose (self); */
19117 }
19118 else
19119 puts (dlerror ());
19120
19121 return status;
19122 }
19123 _LT_EOF
19124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19125 (eval $ac_link) 2>&5
19126 ac_status=$?
19127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19128 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19129 (./conftest; exit; ) >&5 2>/dev/null
19130 lt_status=$?
19131 case x$lt_status in
19132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19134 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19135 esac
19136 else :
19137 # compilation failed
19138 lt_cv_dlopen_self_static=no
19139 fi
19140 fi
19141 rm -fr conftest*
19142
19143
19144 fi
19145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19146 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19147 fi
19148
19149 CPPFLAGS=$save_CPPFLAGS
19150 LDFLAGS=$save_LDFLAGS
19151 LIBS=$save_LIBS
19152 ;;
19153 esac
19154
19155 case $lt_cv_dlopen_self in
19156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19157 *) enable_dlopen_self=unknown ;;
19158 esac
19159
19160 case $lt_cv_dlopen_self_static in
19161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19162 *) enable_dlopen_self_static=unknown ;;
19163 esac
19164 fi
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182 striplib=
19183 old_striplib=
19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19185 printf %s "checking whether stripping libraries is possible... " >&6; }
19186 if test -z "$STRIP"; then
19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 printf "%s\n" "no" >&6; }
19189 else
19190 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19191 old_striplib="$STRIP --strip-debug"
19192 striplib="$STRIP --strip-unneeded"
19193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19194 printf "%s\n" "yes" >&6; }
19195 else
19196 case $host_os in
19197 darwin*)
19198 # FIXME - insert some real tests, host_os isn't really good enough
19199 striplib="$STRIP -x"
19200 old_striplib="$STRIP -S"
19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19202 printf "%s\n" "yes" >&6; }
19203 ;;
19204 freebsd*)
19205 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19206 old_striplib="$STRIP --strip-debug"
19207 striplib="$STRIP --strip-unneeded"
19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19209 printf "%s\n" "yes" >&6; }
19210 else
19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 printf "%s\n" "no" >&6; }
19213 fi
19214 ;;
19215 *)
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 printf "%s\n" "no" >&6; }
19218 ;;
19219 esac
19220 fi
19221 fi
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234 # Report what library types will actually be built
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19236 printf %s "checking if libtool supports shared libraries... " >&6; }
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19238 printf "%s\n" "$can_build_shared" >&6; }
19239
19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19241 printf %s "checking whether to build shared libraries... " >&6; }
19242 test no = "$can_build_shared" && enable_shared=no
19243
19244 # On AIX, shared libraries and static libraries use the same namespace, and
19245 # are all built from PIC.
19246 case $host_os in
19247 aix3*)
19248 test yes = "$enable_shared" && enable_static=no
19249 if test -n "$RANLIB"; then
19250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19251 postinstall_cmds='$RANLIB $lib'
19252 fi
19253 ;;
19254
19255 aix[4-9]*)
19256 if test ia64 != "$host_cpu"; then
19257 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19258 yes,aix,yes) ;; # shared object as lib.so file only
19259 yes,svr4,*) ;; # shared object as lib.so archive member only
19260 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19261 esac
19262 fi
19263 ;;
19264 esac
19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19266 printf "%s\n" "$enable_shared" >&6; }
19267
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19269 printf %s "checking whether to build static libraries... " >&6; }
19270 # Make sure either enable_shared or enable_static is yes.
19271 test yes = "$enable_shared" || enable_static=yes
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19273 printf "%s\n" "$enable_static" >&6; }
19274
19275
19276
19277
19278 fi
19279 ac_ext=c
19280 ac_cpp='$CPP $CPPFLAGS'
19281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19284
19285 CC=$lt_save_CC
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301 ac_config_commands="$ac_config_commands libtool"
19302
19303
19304
19305
19306 # Only expand once:
19307
19308
19309
19310
19311
19312 # Define a configure option for an alternate module directory
19313
19314 # Check whether --with-xorg-module-dir was given.
19315 if test ${with_xorg_module_dir+y}
19316 then :
19317 withval=$with_xorg_module_dir; moduledir="$withval"
19318 else $as_nop
19319 moduledir="$libdir/xorg/modules"
19320 fi
19321
19322
19323 # Store the list of server defined optional extensions in REQUIRED_MODULES
19324
19325
19326 SAVE_CFLAGS="$CFLAGS"
19327 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330
19331 #include "xorg-server.h"
19332 #if !defined RANDR
19333 #error RANDR not defined
19334 #endif
19335
19336 int
19337 main (void)
19338 {
19339
19340 ;
19341 return 0;
19342 }
19343 _ACEOF
19344 if ac_fn_c_try_compile "$LINENO"
19345 then :
19346 _EXT_CHECK=yes
19347 else $as_nop
19348 _EXT_CHECK=no
19349 fi
19350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19351 CFLAGS="$SAVE_CFLAGS"
19352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19353 printf %s "checking if RANDR is defined... " >&6; }
19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19355 printf "%s\n" "$_EXT_CHECK" >&6; }
19356 if test "$_EXT_CHECK" != no; then
19357 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19358 fi
19359
19360
19361
19362 SAVE_CFLAGS="$CFLAGS"
19363 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19366
19367 #include "xorg-server.h"
19368 #if !defined RENDER
19369 #error RENDER not defined
19370 #endif
19371
19372 int
19373 main (void)
19374 {
19375
19376 ;
19377 return 0;
19378 }
19379 _ACEOF
19380 if ac_fn_c_try_compile "$LINENO"
19381 then :
19382 _EXT_CHECK=yes
19383 else $as_nop
19384 _EXT_CHECK=no
19385 fi
19386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19387 CFLAGS="$SAVE_CFLAGS"
19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19389 printf %s "checking if RENDER is defined... " >&6; }
19390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19391 printf "%s\n" "$_EXT_CHECK" >&6; }
19392 if test "$_EXT_CHECK" != no; then
19393 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19394 fi
19395
19396
19397 # Obtain compiler/linker options for the driver dependencies
19398
19399 pkg_failed=no
19400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19401 printf %s "checking for XORG... " >&6; }
19402
19403 if test -n "$XORG_CFLAGS"; then
19404 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19405 elif test -n "$PKG_CONFIG"; then
19406 if test -n "$PKG_CONFIG" && \
19407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19408 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19409 ac_status=$?
19410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19411 test $ac_status = 0; }; then
19412 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19413 test "x$?" != "x0" && pkg_failed=yes
19414 else
19415 pkg_failed=yes
19416 fi
19417 else
19418 pkg_failed=untried
19419 fi
19420 if test -n "$XORG_LIBS"; then
19421 pkg_cv_XORG_LIBS="$XORG_LIBS"
19422 elif test -n "$PKG_CONFIG"; then
19423 if test -n "$PKG_CONFIG" && \
19424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19425 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19426 ac_status=$?
19427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19428 test $ac_status = 0; }; then
19429 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19430 test "x$?" != "x0" && pkg_failed=yes
19431 else
19432 pkg_failed=yes
19433 fi
19434 else
19435 pkg_failed=untried
19436 fi
19437
19438
19439
19440 if test $pkg_failed = yes; then
19441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19442 printf "%s\n" "no" >&6; }
19443
19444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19445 _pkg_short_errors_supported=yes
19446 else
19447 _pkg_short_errors_supported=no
19448 fi
19449 if test $_pkg_short_errors_supported = yes; then
19450 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19451 else
19452 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19453 fi
19454 # Put the nasty error message in config.log where it belongs
19455 echo "$XORG_PKG_ERRORS" >&5
19456
19457 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19458
19459 $XORG_PKG_ERRORS
19460
19461 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19462 installed software in a non-standard prefix.
19463
19464 Alternatively, you may set the environment variables XORG_CFLAGS
19465 and XORG_LIBS to avoid the need to call pkg-config.
19466 See the pkg-config man page for more details." "$LINENO" 5
19467 elif test $pkg_failed = untried; then
19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19469 printf "%s\n" "no" >&6; }
19470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19472 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19473 is in your PATH or set the PKG_CONFIG environment variable to the full
19474 path to pkg-config.
19475
19476 Alternatively, you may set the environment variables XORG_CFLAGS
19477 and XORG_LIBS to avoid the need to call pkg-config.
19478 See the pkg-config man page for more details.
19479
19480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19481 See \`config.log' for more details" "$LINENO" 5; }
19482 else
19483 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19484 XORG_LIBS=$pkg_cv_XORG_LIBS
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19486 printf "%s\n" "yes" >&6; }
19487
19488 fi
19489
19490 # Checks for libraries.
19491
19492
19493
19494 DRIVER_NAME=suncg6
19495
19496
19497 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19498
19499 cat >confcache <<\_ACEOF
19500 # This file is a shell script that caches the results of configure
19501 # tests run on this system so they can be shared between configure
19502 # scripts and configure runs, see configure's option --config-cache.
19503 # It is not useful on other systems. If it contains results you don't
19504 # want to keep, you may remove or edit it.
19505 #
19506 # config.status only pays attention to the cache file if you give it
19507 # the --recheck option to rerun configure.
19508 #
19509 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19510 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19511 # following values.
19512
19513 _ACEOF
19514
19515 # The following way of writing the cache mishandles newlines in values,
19516 # but we know of no workaround that is simple, portable, and efficient.
19517 # So, we kill variables containing newlines.
19518 # Ultrix sh set writes to stderr and can't be redirected directly,
19519 # and sets the high bit in the cache file unless we assign to the vars.
19520 (
19521 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19522 eval ac_val=\$$ac_var
19523 case $ac_val in #(
19524 *${as_nl}*)
19525 case $ac_var in #(
19526 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19527 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19528 esac
19529 case $ac_var in #(
19530 _ | IFS | as_nl) ;; #(
19531 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19532 *) { eval $ac_var=; unset $ac_var;} ;;
19533 esac ;;
19534 esac
19535 done
19536
19537 (set) 2>&1 |
19538 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19539 *${as_nl}ac_space=\ *)
19540 # `set' does not quote correctly, so add quotes: double-quote
19541 # substitution turns \\\\ into \\, and sed turns \\ into \.
19542 sed -n \
19543 "s/'/'\\\\''/g;
19544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19545 ;; #(
19546 *)
19547 # `set' quotes correctly as required by POSIX, so do not add quotes.
19548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19549 ;;
19550 esac |
19551 sort
19552 ) |
19553 sed '
19554 /^ac_cv_env_/b end
19555 t clear
19556 :clear
19557 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19558 t end
19559 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19560 :end' >>confcache
19561 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19562 if test -w "$cache_file"; then
19563 if test "x$cache_file" != "x/dev/null"; then
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19565 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19566 if test ! -f "$cache_file" || test -h "$cache_file"; then
19567 cat confcache >"$cache_file"
19568 else
19569 case $cache_file in #(
19570 */* | ?:*)
19571 mv -f confcache "$cache_file"$$ &&
19572 mv -f "$cache_file"$$ "$cache_file" ;; #(
19573 *)
19574 mv -f confcache "$cache_file" ;;
19575 esac
19576 fi
19577 fi
19578 else
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19580 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19581 fi
19582 fi
19583 rm -f confcache
19584
19585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19586 # Let make expand exec_prefix.
19587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19588
19589 DEFS=-DHAVE_CONFIG_H
19590
19591 ac_libobjs=
19592 ac_ltlibobjs=
19593 U=
19594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19595 # 1. Remove the extension, and $U if already installed.
19596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19597 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19599 # will be set to the directory where LIBOBJS objects are built.
19600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19602 done
19603 LIBOBJS=$ac_libobjs
19604
19605 LTLIBOBJS=$ac_ltlibobjs
19606
19607
19608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19609 printf %s "checking that generated files are newer than configure... " >&6; }
19610 if test -n "$am_sleep_pid"; then
19611 # Hide warnings about reused PIDs.
19612 wait $am_sleep_pid 2>/dev/null
19613 fi
19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19615 printf "%s\n" "done" >&6; }
19616 if test -n "$EXEEXT"; then
19617 am__EXEEXT_TRUE=
19618 am__EXEEXT_FALSE='#'
19619 else
19620 am__EXEEXT_TRUE='#'
19621 am__EXEEXT_FALSE=
19622 fi
19623
19624 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19625 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19627 fi
19628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19629 as_fn_error $? "conditional \"AMDEP\" was never defined.
19630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19631 fi
19632 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19633 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19635 fi
19636
19637 : "${CONFIG_STATUS=./config.status}"
19638 ac_write_fail=0
19639 ac_clean_files_save=$ac_clean_files
19640 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19642 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19643 as_write_fail=0
19644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19645 #! $SHELL
19646 # Generated by $as_me.
19647 # Run this file to recreate the current configuration.
19648 # Compiler output produced by configure, useful for debugging
19649 # configure, is in config.log if it exists.
19650
19651 debug=false
19652 ac_cs_recheck=false
19653 ac_cs_silent=false
19654
19655 SHELL=\${CONFIG_SHELL-$SHELL}
19656 export SHELL
19657 _ASEOF
19658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19659 ## -------------------- ##
19660 ## M4sh Initialization. ##
19661 ## -------------------- ##
19662
19663 # Be more Bourne compatible
19664 DUALCASE=1; export DUALCASE # for MKS sh
19665 as_nop=:
19666 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19667 then :
19668 emulate sh
19669 NULLCMD=:
19670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19671 # is contrary to our usage. Disable this feature.
19672 alias -g '${1+"$@"}'='"$@"'
19673 setopt NO_GLOB_SUBST
19674 else $as_nop
19675 case `(set -o) 2>/dev/null` in #(
19676 *posix*) :
19677 set -o posix ;; #(
19678 *) :
19679 ;;
19680 esac
19681 fi
19682
19683
19684
19685 # Reset variables that may have inherited troublesome values from
19686 # the environment.
19687
19688 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19689 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19690 # side effect of setting IFS to empty, thus disabling word splitting.)
19691 # Quoting is to prevent editors from complaining about space-tab.
19692 as_nl='
19693 '
19694 export as_nl
19695 IFS=" "" $as_nl"
19696
19697 PS1='$ '
19698 PS2='> '
19699 PS4='+ '
19700
19701 # Ensure predictable behavior from utilities with locale-dependent output.
19702 LC_ALL=C
19703 export LC_ALL
19704 LANGUAGE=C
19705 export LANGUAGE
19706
19707 # We cannot yet rely on "unset" to work, but we need these variables
19708 # to be unset--not just set to an empty or harmless value--now, to
19709 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19710 # also avoids known problems related to "unset" and subshell syntax
19711 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19712 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19713 do eval test \${$as_var+y} \
19714 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19715 done
19716
19717 # Ensure that fds 0, 1, and 2 are open.
19718 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19719 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19720 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19721
19722 # The user is always right.
19723 if ${PATH_SEPARATOR+false} :; then
19724 PATH_SEPARATOR=:
19725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19727 PATH_SEPARATOR=';'
19728 }
19729 fi
19730
19731
19732 # Find who we are. Look in the path if we contain no directory separator.
19733 as_myself=
19734 case $0 in #((
19735 *[\\/]* ) as_myself=$0 ;;
19736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19737 for as_dir in $PATH
19738 do
19739 IFS=$as_save_IFS
19740 case $as_dir in #(((
19741 '') as_dir=./ ;;
19742 */) ;;
19743 *) as_dir=$as_dir/ ;;
19744 esac
19745 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19746 done
19747 IFS=$as_save_IFS
19748
19749 ;;
19750 esac
19751 # We did not find ourselves, most probably we were run as `sh COMMAND'
19752 # in which case we are not to be found in the path.
19753 if test "x$as_myself" = x; then
19754 as_myself=$0
19755 fi
19756 if test ! -f "$as_myself"; then
19757 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19758 exit 1
19759 fi
19760
19761
19762
19763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19764 # ----------------------------------------
19765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19767 # script with STATUS, using 1 if that was 0.
19768 as_fn_error ()
19769 {
19770 as_status=$1; test $as_status -eq 0 && as_status=1
19771 if test "$4"; then
19772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19774 fi
19775 printf "%s\n" "$as_me: error: $2" >&2
19776 as_fn_exit $as_status
19777 } # as_fn_error
19778
19779
19780
19781 # as_fn_set_status STATUS
19782 # -----------------------
19783 # Set $? to STATUS, without forking.
19784 as_fn_set_status ()
19785 {
19786 return $1
19787 } # as_fn_set_status
19788
19789 # as_fn_exit STATUS
19790 # -----------------
19791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19792 as_fn_exit ()
19793 {
19794 set +e
19795 as_fn_set_status $1
19796 exit $1
19797 } # as_fn_exit
19798
19799 # as_fn_unset VAR
19800 # ---------------
19801 # Portably unset VAR.
19802 as_fn_unset ()
19803 {
19804 { eval $1=; unset $1;}
19805 }
19806 as_unset=as_fn_unset
19807
19808 # as_fn_append VAR VALUE
19809 # ----------------------
19810 # Append the text in VALUE to the end of the definition contained in VAR. Take
19811 # advantage of any shell optimizations that allow amortized linear growth over
19812 # repeated appends, instead of the typical quadratic growth present in naive
19813 # implementations.
19814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19815 then :
19816 eval 'as_fn_append ()
19817 {
19818 eval $1+=\$2
19819 }'
19820 else $as_nop
19821 as_fn_append ()
19822 {
19823 eval $1=\$$1\$2
19824 }
19825 fi # as_fn_append
19826
19827 # as_fn_arith ARG...
19828 # ------------------
19829 # Perform arithmetic evaluation on the ARGs, and store the result in the
19830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19831 # must be portable across $(()) and expr.
19832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19833 then :
19834 eval 'as_fn_arith ()
19835 {
19836 as_val=$(( $* ))
19837 }'
19838 else $as_nop
19839 as_fn_arith ()
19840 {
19841 as_val=`expr "$@" || test $? -eq 1`
19842 }
19843 fi # as_fn_arith
19844
19845
19846 if expr a : '\(a\)' >/dev/null 2>&1 &&
19847 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19848 as_expr=expr
19849 else
19850 as_expr=false
19851 fi
19852
19853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19854 as_basename=basename
19855 else
19856 as_basename=false
19857 fi
19858
19859 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19860 as_dirname=dirname
19861 else
19862 as_dirname=false
19863 fi
19864
19865 as_me=`$as_basename -- "$0" ||
19866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19867 X"$0" : 'X\(//\)$' \| \
19868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19869 printf "%s\n" X/"$0" |
19870 sed '/^.*\/\([^/][^/]*\)\/*$/{
19871 s//\1/
19872 q
19873 }
19874 /^X\/\(\/\/\)$/{
19875 s//\1/
19876 q
19877 }
19878 /^X\/\(\/\).*/{
19879 s//\1/
19880 q
19881 }
19882 s/.*/./; q'`
19883
19884 # Avoid depending upon Character Ranges.
19885 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19886 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19887 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19888 as_cr_digits='0123456789'
19889 as_cr_alnum=$as_cr_Letters$as_cr_digits
19890
19891
19892 # Determine whether it's possible to make 'echo' print without a newline.
19893 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19894 # for compatibility with existing Makefiles.
19895 ECHO_C= ECHO_N= ECHO_T=
19896 case `echo -n x` in #(((((
19897 -n*)
19898 case `echo 'xy\c'` in
19899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19900 xy) ECHO_C='\c';;
19901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19902 ECHO_T=' ';;
19903 esac;;
19904 *)
19905 ECHO_N='-n';;
19906 esac
19907
19908 # For backward compatibility with old third-party macros, we provide
19909 # the shell variables $as_echo and $as_echo_n. New code should use
19910 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19911 as_echo='printf %s\n'
19912 as_echo_n='printf %s'
19913
19914 rm -f conf$$ conf$$.exe conf$$.file
19915 if test -d conf$$.dir; then
19916 rm -f conf$$.dir/conf$$.file
19917 else
19918 rm -f conf$$.dir
19919 mkdir conf$$.dir 2>/dev/null
19920 fi
19921 if (echo >conf$$.file) 2>/dev/null; then
19922 if ln -s conf$$.file conf$$ 2>/dev/null; then
19923 as_ln_s='ln -s'
19924 # ... but there are two gotchas:
19925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19927 # In both cases, we have to default to `cp -pR'.
19928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19929 as_ln_s='cp -pR'
19930 elif ln conf$$.file conf$$ 2>/dev/null; then
19931 as_ln_s=ln
19932 else
19933 as_ln_s='cp -pR'
19934 fi
19935 else
19936 as_ln_s='cp -pR'
19937 fi
19938 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19939 rmdir conf$$.dir 2>/dev/null
19940
19941
19942 # as_fn_mkdir_p
19943 # -------------
19944 # Create "$as_dir" as a directory, including parents if necessary.
19945 as_fn_mkdir_p ()
19946 {
19947
19948 case $as_dir in #(
19949 -*) as_dir=./$as_dir;;
19950 esac
19951 test -d "$as_dir" || eval $as_mkdir_p || {
19952 as_dirs=
19953 while :; do
19954 case $as_dir in #(
19955 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19956 *) as_qdir=$as_dir;;
19957 esac
19958 as_dirs="'$as_qdir' $as_dirs"
19959 as_dir=`$as_dirname -- "$as_dir" ||
19960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19961 X"$as_dir" : 'X\(//\)[^/]' \| \
19962 X"$as_dir" : 'X\(//\)$' \| \
19963 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19964 printf "%s\n" X"$as_dir" |
19965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19966 s//\1/
19967 q
19968 }
19969 /^X\(\/\/\)[^/].*/{
19970 s//\1/
19971 q
19972 }
19973 /^X\(\/\/\)$/{
19974 s//\1/
19975 q
19976 }
19977 /^X\(\/\).*/{
19978 s//\1/
19979 q
19980 }
19981 s/.*/./; q'`
19982 test -d "$as_dir" && break
19983 done
19984 test -z "$as_dirs" || eval "mkdir $as_dirs"
19985 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19986
19987
19988 } # as_fn_mkdir_p
19989 if mkdir -p . 2>/dev/null; then
19990 as_mkdir_p='mkdir -p "$as_dir"'
19991 else
19992 test -d ./-p && rmdir ./-p
19993 as_mkdir_p=false
19994 fi
19995
19996
19997 # as_fn_executable_p FILE
19998 # -----------------------
19999 # Test if FILE is an executable regular file.
20000 as_fn_executable_p ()
20001 {
20002 test -f "$1" && test -x "$1"
20003 } # as_fn_executable_p
20004 as_test_x='test -x'
20005 as_executable_p=as_fn_executable_p
20006
20007 # Sed expression to map a string onto a valid CPP name.
20008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20009
20010 # Sed expression to map a string onto a valid variable name.
20011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20012
20013
20014 exec 6>&1
20015 ## ----------------------------------- ##
20016 ## Main body of $CONFIG_STATUS script. ##
20017 ## ----------------------------------- ##
20018 _ASEOF
20019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20020
20021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20022 # Save the log message, to keep $0 and so on meaningful, and to
20023 # report actual input values of CONFIG_FILES etc. instead of their
20024 # values after options handling.
20025 ac_log="
20026 This file was extended by xf86-video-suncg6 $as_me 1.1.3, which was
20027 generated by GNU Autoconf 2.71. Invocation command line was
20028
20029 CONFIG_FILES = $CONFIG_FILES
20030 CONFIG_HEADERS = $CONFIG_HEADERS
20031 CONFIG_LINKS = $CONFIG_LINKS
20032 CONFIG_COMMANDS = $CONFIG_COMMANDS
20033 $ $0 $@
20034
20035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20036 "
20037
20038 _ACEOF
20039
20040 case $ac_config_files in *"
20041 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20042 esac
20043
20044 case $ac_config_headers in *"
20045 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20046 esac
20047
20048
20049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20050 # Files that config.status was made for.
20051 config_files="$ac_config_files"
20052 config_headers="$ac_config_headers"
20053 config_commands="$ac_config_commands"
20054
20055 _ACEOF
20056
20057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20058 ac_cs_usage="\
20059 \`$as_me' instantiates files and other configuration actions
20060 from templates according to the current configuration. Unless the files
20061 and actions are specified as TAGs, all are instantiated by default.
20062
20063 Usage: $0 [OPTION]... [TAG]...
20064
20065 -h, --help print this help, then exit
20066 -V, --version print version number and configuration settings, then exit
20067 --config print configuration, then exit
20068 -q, --quiet, --silent
20069 do not print progress messages
20070 -d, --debug don't remove temporary files
20071 --recheck update $as_me by reconfiguring in the same conditions
20072 --file=FILE[:TEMPLATE]
20073 instantiate the configuration file FILE
20074 --header=FILE[:TEMPLATE]
20075 instantiate the configuration header FILE
20076
20077 Configuration files:
20078 $config_files
20079
20080 Configuration headers:
20081 $config_headers
20082
20083 Configuration commands:
20084 $config_commands
20085
20086 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg6/-/issues>."
20087
20088 _ACEOF
20089 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20090 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20092 ac_cs_config='$ac_cs_config_escaped'
20093 ac_cs_version="\\
20094 xf86-video-suncg6 config.status 1.1.3
20095 configured by $0, generated by GNU Autoconf 2.71,
20096 with options \\"\$ac_cs_config\\"
20097
20098 Copyright (C) 2021 Free Software Foundation, Inc.
20099 This config.status script is free software; the Free Software Foundation
20100 gives unlimited permission to copy, distribute and modify it."
20101
20102 ac_pwd='$ac_pwd'
20103 srcdir='$srcdir'
20104 INSTALL='$INSTALL'
20105 MKDIR_P='$MKDIR_P'
20106 AWK='$AWK'
20107 test -n "\$AWK" || AWK=awk
20108 _ACEOF
20109
20110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20111 # The default lists apply if the user does not specify any file.
20112 ac_need_defaults=:
20113 while test $# != 0
20114 do
20115 case $1 in
20116 --*=?*)
20117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20119 ac_shift=:
20120 ;;
20121 --*=)
20122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20123 ac_optarg=
20124 ac_shift=:
20125 ;;
20126 *)
20127 ac_option=$1
20128 ac_optarg=$2
20129 ac_shift=shift
20130 ;;
20131 esac
20132
20133 case $ac_option in
20134 # Handling of the options.
20135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20136 ac_cs_recheck=: ;;
20137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20138 printf "%s\n" "$ac_cs_version"; exit ;;
20139 --config | --confi | --conf | --con | --co | --c )
20140 printf "%s\n" "$ac_cs_config"; exit ;;
20141 --debug | --debu | --deb | --de | --d | -d )
20142 debug=: ;;
20143 --file | --fil | --fi | --f )
20144 $ac_shift
20145 case $ac_optarg in
20146 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20147 '') as_fn_error $? "missing file argument" ;;
20148 esac
20149 as_fn_append CONFIG_FILES " '$ac_optarg'"
20150 ac_need_defaults=false;;
20151 --header | --heade | --head | --hea )
20152 $ac_shift
20153 case $ac_optarg in
20154 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20155 esac
20156 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20157 ac_need_defaults=false;;
20158 --he | --h)
20159 # Conflict between --help and --header
20160 as_fn_error $? "ambiguous option: \`$1'
20161 Try \`$0 --help' for more information.";;
20162 --help | --hel | -h )
20163 printf "%s\n" "$ac_cs_usage"; exit ;;
20164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20165 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20166 ac_cs_silent=: ;;
20167
20168 # This is an error.
20169 -*) as_fn_error $? "unrecognized option: \`$1'
20170 Try \`$0 --help' for more information." ;;
20171
20172 *) as_fn_append ac_config_targets " $1"
20173 ac_need_defaults=false ;;
20174
20175 esac
20176 shift
20177 done
20178
20179 ac_configure_extra_args=
20180
20181 if $ac_cs_silent; then
20182 exec 6>/dev/null
20183 ac_configure_extra_args="$ac_configure_extra_args --silent"
20184 fi
20185
20186 _ACEOF
20187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20188 if \$ac_cs_recheck; then
20189 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20190 shift
20191 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20192 CONFIG_SHELL='$SHELL'
20193 export CONFIG_SHELL
20194 exec "\$@"
20195 fi
20196
20197 _ACEOF
20198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20199 exec 5>>config.log
20200 {
20201 echo
20202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20203 ## Running $as_me. ##
20204 _ASBOX
20205 printf "%s\n" "$ac_log"
20206 } >&5
20207
20208 _ACEOF
20209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20210 #
20211 # INIT-COMMANDS
20212 #
20213 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20214
20215
20216 # The HP-UX ksh and POSIX shell print the target directory to stdout
20217 # if CDPATH is set.
20218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20219
20220 sed_quote_subst='$sed_quote_subst'
20221 double_quote_subst='$double_quote_subst'
20222 delay_variable_subst='$delay_variable_subst'
20223 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20224 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20225 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20226 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20227 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20228 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20229 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20230 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20231 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20232 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20233 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20234 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20235 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20236 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20237 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20238 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20239 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20240 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20241 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20242 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20243 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20244 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20245 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20246 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20247 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20248 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20249 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20250 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20251 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20252 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20253 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20254 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20255 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20256 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20257 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20258 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20259 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20260 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20261 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20262 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20263 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20264 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20265 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20266 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20267 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20268 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20269 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20270 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20271 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20272 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20273 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20274 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20275 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20276 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20277 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20278 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20279 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20280 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20281 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20282 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20283 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"`'
20284 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20285 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20286 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20287 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20288 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20289 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20290 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20291 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20292 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20293 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20294 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20295 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20296 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20297 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20298 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20299 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20300 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20301 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20302 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20303 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20304 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20305 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20306 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20307 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20308 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20309 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20310 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20311 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20312 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20313 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20314 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20315 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20316 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20317 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20318 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20319 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20320 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20321 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20322 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20323 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20324 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20325 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20326 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20327 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20333 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20334 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20335 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20336 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20337 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20338 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20339 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20340 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20341 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20342 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20343 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20344 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20345 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20346 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20347 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20348 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20349 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20350 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20351 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20352 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20353 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20354 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20355 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20356 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20357 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20358 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20359 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20360
20361 LTCC='$LTCC'
20362 LTCFLAGS='$LTCFLAGS'
20363 compiler='$compiler_DEFAULT'
20364
20365 # A function that is used when there is no print builtin or printf.
20366 func_fallback_echo ()
20367 {
20368 eval 'cat <<_LTECHO_EOF
20369 \$1
20370 _LTECHO_EOF'
20371 }
20372
20373 # Quote evaled strings.
20374 for var in SHELL \
20375 ECHO \
20376 PATH_SEPARATOR \
20377 SED \
20378 GREP \
20379 EGREP \
20380 FGREP \
20381 LD \
20382 NM \
20383 LN_S \
20384 lt_SP2NL \
20385 lt_NL2SP \
20386 reload_flag \
20387 FILECMD \
20388 OBJDUMP \
20389 deplibs_check_method \
20390 file_magic_cmd \
20391 file_magic_glob \
20392 want_nocaseglob \
20393 DLLTOOL \
20394 sharedlib_from_linklib_cmd \
20395 AR \
20396 archiver_list_spec \
20397 STRIP \
20398 RANLIB \
20399 CC \
20400 CFLAGS \
20401 compiler \
20402 lt_cv_sys_global_symbol_pipe \
20403 lt_cv_sys_global_symbol_to_cdecl \
20404 lt_cv_sys_global_symbol_to_import \
20405 lt_cv_sys_global_symbol_to_c_name_address \
20406 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20407 lt_cv_nm_interface \
20408 nm_file_list_spec \
20409 lt_cv_truncate_bin \
20410 lt_prog_compiler_no_builtin_flag \
20411 lt_prog_compiler_pic \
20412 lt_prog_compiler_wl \
20413 lt_prog_compiler_static \
20414 lt_cv_prog_compiler_c_o \
20415 need_locks \
20416 MANIFEST_TOOL \
20417 DSYMUTIL \
20418 NMEDIT \
20419 LIPO \
20420 OTOOL \
20421 OTOOL64 \
20422 shrext_cmds \
20423 export_dynamic_flag_spec \
20424 whole_archive_flag_spec \
20425 compiler_needs_object \
20426 with_gnu_ld \
20427 allow_undefined_flag \
20428 no_undefined_flag \
20429 hardcode_libdir_flag_spec \
20430 hardcode_libdir_separator \
20431 exclude_expsyms \
20432 include_expsyms \
20433 file_list_spec \
20434 variables_saved_for_relink \
20435 libname_spec \
20436 library_names_spec \
20437 soname_spec \
20438 install_override_mode \
20439 finish_eval \
20440 old_striplib \
20441 striplib; do
20442 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20443 *[\\\\\\\`\\"\\\$]*)
20444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20445 ;;
20446 *)
20447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20448 ;;
20449 esac
20450 done
20451
20452 # Double-quote double-evaled strings.
20453 for var in reload_cmds \
20454 old_postinstall_cmds \
20455 old_postuninstall_cmds \
20456 old_archive_cmds \
20457 extract_expsyms_cmds \
20458 old_archive_from_new_cmds \
20459 old_archive_from_expsyms_cmds \
20460 archive_cmds \
20461 archive_expsym_cmds \
20462 module_cmds \
20463 module_expsym_cmds \
20464 export_symbols_cmds \
20465 prelink_cmds \
20466 postlink_cmds \
20467 postinstall_cmds \
20468 postuninstall_cmds \
20469 finish_cmds \
20470 sys_lib_search_path_spec \
20471 configure_time_dlsearch_path \
20472 configure_time_lt_sys_library_path; do
20473 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20474 *[\\\\\\\`\\"\\\$]*)
20475 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20476 ;;
20477 *)
20478 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20479 ;;
20480 esac
20481 done
20482
20483 ac_aux_dir='$ac_aux_dir'
20484
20485 # See if we are running on zsh, and set the options that allow our
20486 # commands through without removal of \ escapes INIT.
20487 if test -n "\${ZSH_VERSION+set}"; then
20488 setopt NO_GLOB_SUBST
20489 fi
20490
20491
20492 PACKAGE='$PACKAGE'
20493 VERSION='$VERSION'
20494 RM='$RM'
20495 ofile='$ofile'
20496
20497
20498
20499
20500 _ACEOF
20501
20502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20503
20504 # Handling of arguments.
20505 for ac_config_target in $ac_config_targets
20506 do
20507 case $ac_config_target in
20508 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20509 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20510 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20512 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20513 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20514
20515 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20516 esac
20517 done
20518
20519
20520 # If the user did not use the arguments to specify the items to instantiate,
20521 # then the envvar interface is used. Set only those that are not.
20522 # We use the long form for the default assignment because of an extremely
20523 # bizarre bug on SunOS 4.1.3.
20524 if $ac_need_defaults; then
20525 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20526 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20527 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20528 fi
20529
20530 # Have a temporary directory for convenience. Make it in the build tree
20531 # simply because there is no reason against having it here, and in addition,
20532 # creating and moving files from /tmp can sometimes cause problems.
20533 # Hook for its removal unless debugging.
20534 # Note that there is a small window in which the directory will not be cleaned:
20535 # after its creation but before its name has been assigned to `$tmp'.
20536 $debug ||
20537 {
20538 tmp= ac_tmp=
20539 trap 'exit_status=$?
20540 : "${ac_tmp:=$tmp}"
20541 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20542 ' 0
20543 trap 'as_fn_exit 1' 1 2 13 15
20544 }
20545 # Create a (secure) tmp directory for tmp files.
20546
20547 {
20548 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20549 test -d "$tmp"
20550 } ||
20551 {
20552 tmp=./conf$$-$RANDOM
20553 (umask 077 && mkdir "$tmp")
20554 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20555 ac_tmp=$tmp
20556
20557 # Set up the scripts for CONFIG_FILES section.
20558 # No need to generate them if there are no CONFIG_FILES.
20559 # This happens for instance with `./config.status config.h'.
20560 if test -n "$CONFIG_FILES"; then
20561
20562
20563 ac_cr=`echo X | tr X '\015'`
20564 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20565 # But we know of no other shell where ac_cr would be empty at this
20566 # point, so we can use a bashism as a fallback.
20567 if test "x$ac_cr" = x; then
20568 eval ac_cr=\$\'\\r\'
20569 fi
20570 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20571 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20572 ac_cs_awk_cr='\\r'
20573 else
20574 ac_cs_awk_cr=$ac_cr
20575 fi
20576
20577 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20578 _ACEOF
20579
20580
20581 {
20582 echo "cat >conf$$subs.awk <<_ACEOF" &&
20583 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20584 echo "_ACEOF"
20585 } >conf$$subs.sh ||
20586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20587 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20588 ac_delim='%!_!# '
20589 for ac_last_try in false false false false false :; do
20590 . ./conf$$subs.sh ||
20591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20592
20593 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20594 if test $ac_delim_n = $ac_delim_num; then
20595 break
20596 elif $ac_last_try; then
20597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20598 else
20599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20600 fi
20601 done
20602 rm -f conf$$subs.sh
20603
20604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20605 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20606 _ACEOF
20607 sed -n '
20608 h
20609 s/^/S["/; s/!.*/"]=/
20610 p
20611 g
20612 s/^[^!]*!//
20613 :repl
20614 t repl
20615 s/'"$ac_delim"'$//
20616 t delim
20617 :nl
20618 h
20619 s/\(.\{148\}\)..*/\1/
20620 t more1
20621 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20622 p
20623 n
20624 b repl
20625 :more1
20626 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20627 p
20628 g
20629 s/.\{148\}//
20630 t nl
20631 :delim
20632 h
20633 s/\(.\{148\}\)..*/\1/
20634 t more2
20635 s/["\\]/\\&/g; s/^/"/; s/$/"/
20636 p
20637 b
20638 :more2
20639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20640 p
20641 g
20642 s/.\{148\}//
20643 t delim
20644 ' <conf$$subs.awk | sed '
20645 /^[^""]/{
20646 N
20647 s/\n//
20648 }
20649 ' >>$CONFIG_STATUS || ac_write_fail=1
20650 rm -f conf$$subs.awk
20651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20652 _ACAWK
20653 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20654 for (key in S) S_is_set[key] = 1
20655 FS = ""
20656
20657 }
20658 {
20659 line = $ 0
20660 nfields = split(line, field, "@")
20661 substed = 0
20662 len = length(field[1])
20663 for (i = 2; i < nfields; i++) {
20664 key = field[i]
20665 keylen = length(key)
20666 if (S_is_set[key]) {
20667 value = S[key]
20668 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20669 len += length(value) + length(field[++i])
20670 substed = 1
20671 } else
20672 len += 1 + keylen
20673 }
20674
20675 print line
20676 }
20677
20678 _ACAWK
20679 _ACEOF
20680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20681 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20682 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20683 else
20684 cat
20685 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20686 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20687 _ACEOF
20688
20689 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20690 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20691 # trailing colons and then remove the whole line if VPATH becomes empty
20692 # (actually we leave an empty line to preserve line numbers).
20693 if test "x$srcdir" = x.; then
20694 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20695 h
20696 s///
20697 s/^/:/
20698 s/[ ]*$/:/
20699 s/:\$(srcdir):/:/g
20700 s/:\${srcdir}:/:/g
20701 s/:@srcdir@:/:/g
20702 s/^:*//
20703 s/:*$//
20704 x
20705 s/\(=[ ]*\).*/\1/
20706 G
20707 s/\n//
20708 s/^[^=]*=[ ]*$//
20709 }'
20710 fi
20711
20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20713 fi # test -n "$CONFIG_FILES"
20714
20715 # Set up the scripts for CONFIG_HEADERS section.
20716 # No need to generate them if there are no CONFIG_HEADERS.
20717 # This happens for instance with `./config.status Makefile'.
20718 if test -n "$CONFIG_HEADERS"; then
20719 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20720 BEGIN {
20721 _ACEOF
20722
20723 # Transform confdefs.h into an awk script `defines.awk', embedded as
20724 # here-document in config.status, that substitutes the proper values into
20725 # config.h.in to produce config.h.
20726
20727 # Create a delimiter string that does not exist in confdefs.h, to ease
20728 # handling of long lines.
20729 ac_delim='%!_!# '
20730 for ac_last_try in false false :; do
20731 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20732 if test -z "$ac_tt"; then
20733 break
20734 elif $ac_last_try; then
20735 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20736 else
20737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20738 fi
20739 done
20740
20741 # For the awk script, D is an array of macro values keyed by name,
20742 # likewise P contains macro parameters if any. Preserve backslash
20743 # newline sequences.
20744
20745 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20746 sed -n '
20747 s/.\{148\}/&'"$ac_delim"'/g
20748 t rset
20749 :rset
20750 s/^[ ]*#[ ]*define[ ][ ]*/ /
20751 t def
20752 d
20753 :def
20754 s/\\$//
20755 t bsnl
20756 s/["\\]/\\&/g
20757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20758 D["\1"]=" \3"/p
20759 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20760 d
20761 :bsnl
20762 s/["\\]/\\&/g
20763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20764 D["\1"]=" \3\\\\\\n"\\/p
20765 t cont
20766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20767 t cont
20768 d
20769 :cont
20770 n
20771 s/.\{148\}/&'"$ac_delim"'/g
20772 t clear
20773 :clear
20774 s/\\$//
20775 t bsnlc
20776 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20777 d
20778 :bsnlc
20779 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20780 b cont
20781 ' <confdefs.h | sed '
20782 s/'"$ac_delim"'/"\\\
20783 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20784
20785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20786 for (key in D) D_is_set[key] = 1
20787 FS = ""
20788 }
20789 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20790 line = \$ 0
20791 split(line, arg, " ")
20792 if (arg[1] == "#") {
20793 defundef = arg[2]
20794 mac1 = arg[3]
20795 } else {
20796 defundef = substr(arg[1], 2)
20797 mac1 = arg[2]
20798 }
20799 split(mac1, mac2, "(") #)
20800 macro = mac2[1]
20801 prefix = substr(line, 1, index(line, defundef) - 1)
20802 if (D_is_set[macro]) {
20803 # Preserve the white space surrounding the "#".
20804 print prefix "define", macro P[macro] D[macro]
20805 next
20806 } else {
20807 # Replace #undef with comments. This is necessary, for example,
20808 # in the case of _POSIX_SOURCE, which is predefined and required
20809 # on some systems where configure will not decide to define it.
20810 if (defundef == "undef") {
20811 print "/*", prefix defundef, macro, "*/"
20812 next
20813 }
20814 }
20815 }
20816 { print }
20817 _ACAWK
20818 _ACEOF
20819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20820 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20821 fi # test -n "$CONFIG_HEADERS"
20822
20823
20824 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20825 shift
20826 for ac_tag
20827 do
20828 case $ac_tag in
20829 :[FHLC]) ac_mode=$ac_tag; continue;;
20830 esac
20831 case $ac_mode$ac_tag in
20832 :[FHL]*:*);;
20833 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20834 :[FH]-) ac_tag=-:-;;
20835 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20836 esac
20837 ac_save_IFS=$IFS
20838 IFS=:
20839 set x $ac_tag
20840 IFS=$ac_save_IFS
20841 shift
20842 ac_file=$1
20843 shift
20844
20845 case $ac_mode in
20846 :L) ac_source=$1;;
20847 :[FH])
20848 ac_file_inputs=
20849 for ac_f
20850 do
20851 case $ac_f in
20852 -) ac_f="$ac_tmp/stdin";;
20853 *) # Look for the file first in the build tree, then in the source tree
20854 # (if the path is not absolute). The absolute path cannot be DOS-style,
20855 # because $ac_f cannot contain `:'.
20856 test -f "$ac_f" ||
20857 case $ac_f in
20858 [\\/$]*) false;;
20859 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20860 esac ||
20861 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20862 esac
20863 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20864 as_fn_append ac_file_inputs " '$ac_f'"
20865 done
20866
20867 # Let's still pretend it is `configure' which instantiates (i.e., don't
20868 # use $as_me), people would be surprised to read:
20869 # /* config.h. Generated by config.status. */
20870 configure_input='Generated from '`
20871 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20872 `' by configure.'
20873 if test x"$ac_file" != x-; then
20874 configure_input="$ac_file. $configure_input"
20875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20876 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20877 fi
20878 # Neutralize special characters interpreted by sed in replacement strings.
20879 case $configure_input in #(
20880 *\&* | *\|* | *\\* )
20881 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20882 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20883 *) ac_sed_conf_input=$configure_input;;
20884 esac
20885
20886 case $ac_tag in
20887 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20889 esac
20890 ;;
20891 esac
20892
20893 ac_dir=`$as_dirname -- "$ac_file" ||
20894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20895 X"$ac_file" : 'X\(//\)[^/]' \| \
20896 X"$ac_file" : 'X\(//\)$' \| \
20897 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20898 printf "%s\n" X"$ac_file" |
20899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20900 s//\1/
20901 q
20902 }
20903 /^X\(\/\/\)[^/].*/{
20904 s//\1/
20905 q
20906 }
20907 /^X\(\/\/\)$/{
20908 s//\1/
20909 q
20910 }
20911 /^X\(\/\).*/{
20912 s//\1/
20913 q
20914 }
20915 s/.*/./; q'`
20916 as_dir="$ac_dir"; as_fn_mkdir_p
20917 ac_builddir=.
20918
20919 case "$ac_dir" in
20920 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20921 *)
20922 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20923 # A ".." for each directory in $ac_dir_suffix.
20924 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20925 case $ac_top_builddir_sub in
20926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20928 esac ;;
20929 esac
20930 ac_abs_top_builddir=$ac_pwd
20931 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20932 # for backward compatibility:
20933 ac_top_builddir=$ac_top_build_prefix
20934
20935 case $srcdir in
20936 .) # We are building in place.
20937 ac_srcdir=.
20938 ac_top_srcdir=$ac_top_builddir_sub
20939 ac_abs_top_srcdir=$ac_pwd ;;
20940 [\\/]* | ?:[\\/]* ) # Absolute name.
20941 ac_srcdir=$srcdir$ac_dir_suffix;
20942 ac_top_srcdir=$srcdir
20943 ac_abs_top_srcdir=$srcdir ;;
20944 *) # Relative name.
20945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20946 ac_top_srcdir=$ac_top_build_prefix$srcdir
20947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20948 esac
20949 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20950
20951
20952 case $ac_mode in
20953 :F)
20954 #
20955 # CONFIG_FILE
20956 #
20957
20958 case $INSTALL in
20959 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20960 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20961 esac
20962 ac_MKDIR_P=$MKDIR_P
20963 case $MKDIR_P in
20964 [\\/$]* | ?:[\\/]* ) ;;
20965 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20966 esac
20967 _ACEOF
20968
20969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20970 # If the template does not know about datarootdir, expand it.
20971 # FIXME: This hack should be removed a few years after 2.60.
20972 ac_datarootdir_hack=; ac_datarootdir_seen=
20973 ac_sed_dataroot='
20974 /datarootdir/ {
20975 p
20976 q
20977 }
20978 /@datadir@/p
20979 /@docdir@/p
20980 /@infodir@/p
20981 /@localedir@/p
20982 /@mandir@/p'
20983 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20984 *datarootdir*) ac_datarootdir_seen=yes;;
20985 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20987 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20988 _ACEOF
20989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20990 ac_datarootdir_hack='
20991 s&@datadir@&$datadir&g
20992 s&@docdir@&$docdir&g
20993 s&@infodir@&$infodir&g
20994 s&@localedir@&$localedir&g
20995 s&@mandir@&$mandir&g
20996 s&\\\${datarootdir}&$datarootdir&g' ;;
20997 esac
20998 _ACEOF
20999
21000 # Neutralize VPATH when `$srcdir' = `.'.
21001 # Shell code in configure.ac might set extrasub.
21002 # FIXME: do we really want to maintain this feature?
21003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21004 ac_sed_extra="$ac_vpsub
21005 $extrasub
21006 _ACEOF
21007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21008 :t
21009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21010 s|@configure_input@|$ac_sed_conf_input|;t t
21011 s&@top_builddir@&$ac_top_builddir_sub&;t t
21012 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21013 s&@srcdir@&$ac_srcdir&;t t
21014 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21015 s&@top_srcdir@&$ac_top_srcdir&;t t
21016 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21017 s&@builddir@&$ac_builddir&;t t
21018 s&@abs_builddir@&$ac_abs_builddir&;t t
21019 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21020 s&@INSTALL@&$ac_INSTALL&;t t
21021 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21022 $ac_datarootdir_hack
21023 "
21024 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21025 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21026
21027 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21028 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21029 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21030 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21032 which seems to be undefined. Please make sure it is defined" >&5
21033 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21034 which seems to be undefined. Please make sure it is defined" >&2;}
21035
21036 rm -f "$ac_tmp/stdin"
21037 case $ac_file in
21038 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21039 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21040 esac \
21041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21042 ;;
21043 :H)
21044 #
21045 # CONFIG_HEADER
21046 #
21047 if test x"$ac_file" != x-; then
21048 {
21049 printf "%s\n" "/* $configure_input */" >&1 \
21050 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21051 } >"$ac_tmp/config.h" \
21052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21053 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21055 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21056 else
21057 rm -f "$ac_file"
21058 mv "$ac_tmp/config.h" "$ac_file" \
21059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21060 fi
21061 else
21062 printf "%s\n" "/* $configure_input */" >&1 \
21063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21064 || as_fn_error $? "could not create -" "$LINENO" 5
21065 fi
21066 # Compute "$ac_file"'s index in $config_headers.
21067 _am_arg="$ac_file"
21068 _am_stamp_count=1
21069 for _am_header in $config_headers :; do
21070 case $_am_header in
21071 $_am_arg | $_am_arg:* )
21072 break ;;
21073 * )
21074 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21075 esac
21076 done
21077 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21078 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21079 X"$_am_arg" : 'X\(//\)[^/]' \| \
21080 X"$_am_arg" : 'X\(//\)$' \| \
21081 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21082 printf "%s\n" X"$_am_arg" |
21083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21084 s//\1/
21085 q
21086 }
21087 /^X\(\/\/\)[^/].*/{
21088 s//\1/
21089 q
21090 }
21091 /^X\(\/\/\)$/{
21092 s//\1/
21093 q
21094 }
21095 /^X\(\/\).*/{
21096 s//\1/
21097 q
21098 }
21099 s/.*/./; q'`/stamp-h$_am_stamp_count
21100 ;;
21101
21102 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21103 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21104 ;;
21105 esac
21106
21107
21108 case $ac_file$ac_mode in
21109 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21110 # Older Autoconf quotes --file arguments for eval, but not when files
21111 # are listed without --file. Let's play safe and only enable the eval
21112 # if we detect the quoting.
21113 # TODO: see whether this extra hack can be removed once we start
21114 # requiring Autoconf 2.70 or later.
21115 case $CONFIG_FILES in #(
21116 *\'*) :
21117 eval set x "$CONFIG_FILES" ;; #(
21118 *) :
21119 set x $CONFIG_FILES ;; #(
21120 *) :
21121 ;;
21122 esac
21123 shift
21124 # Used to flag and report bootstrapping failures.
21125 am_rc=0
21126 for am_mf
21127 do
21128 # Strip MF so we end up with the name of the file.
21129 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21130 # Check whether this is an Automake generated Makefile which includes
21131 # dependency-tracking related rules and includes.
21132 # Grep'ing the whole file directly is not great: AIX grep has a line
21133 # limit of 2048, but all sed's we know have understand at least 4000.
21134 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21135 || continue
21136 am_dirpart=`$as_dirname -- "$am_mf" ||
21137 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138 X"$am_mf" : 'X\(//\)[^/]' \| \
21139 X"$am_mf" : 'X\(//\)$' \| \
21140 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21141 printf "%s\n" X"$am_mf" |
21142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21143 s//\1/
21144 q
21145 }
21146 /^X\(\/\/\)[^/].*/{
21147 s//\1/
21148 q
21149 }
21150 /^X\(\/\/\)$/{
21151 s//\1/
21152 q
21153 }
21154 /^X\(\/\).*/{
21155 s//\1/
21156 q
21157 }
21158 s/.*/./; q'`
21159 am_filepart=`$as_basename -- "$am_mf" ||
21160 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21161 X"$am_mf" : 'X\(//\)$' \| \
21162 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21163 printf "%s\n" X/"$am_mf" |
21164 sed '/^.*\/\([^/][^/]*\)\/*$/{
21165 s//\1/
21166 q
21167 }
21168 /^X\/\(\/\/\)$/{
21169 s//\1/
21170 q
21171 }
21172 /^X\/\(\/\).*/{
21173 s//\1/
21174 q
21175 }
21176 s/.*/./; q'`
21177 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21178 && sed -e '/# am--include-marker/d' "$am_filepart" \
21179 | $MAKE -f - am--depfiles" >&5
21180 (cd "$am_dirpart" \
21181 && sed -e '/# am--include-marker/d' "$am_filepart" \
21182 | $MAKE -f - am--depfiles) >&5 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } || am_rc=$?
21186 done
21187 if test $am_rc -ne 0; then
21188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21189 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21190 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21191 for automatic dependency tracking. If GNU make was not used, consider
21192 re-running the configure script with MAKE=\"gmake\" (or whatever is
21193 necessary). You can also try re-running configure with the
21194 '--disable-dependency-tracking' option to at least be able to build
21195 the package (albeit without support for automatic dependency tracking).
21196 See \`config.log' for more details" "$LINENO" 5; }
21197 fi
21198 { am_dirpart=; unset am_dirpart;}
21199 { am_filepart=; unset am_filepart;}
21200 { am_mf=; unset am_mf;}
21201 { am_rc=; unset am_rc;}
21202 rm -f conftest-deps.mk
21203 }
21204 ;;
21205 "libtool":C)
21206
21207 # See if we are running on zsh, and set the options that allow our
21208 # commands through without removal of \ escapes.
21209 if test -n "${ZSH_VERSION+set}"; then
21210 setopt NO_GLOB_SUBST
21211 fi
21212
21213 cfgfile=${ofile}T
21214 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21215 $RM "$cfgfile"
21216
21217 cat <<_LT_EOF >> "$cfgfile"
21218 #! $SHELL
21219 # Generated automatically by $as_me ($PACKAGE) $VERSION
21220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21221 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21222
21223 # Provide generalized library-building support services.
21224 # Written by Gordon Matzigkeit, 1996
21225
21226 # Copyright (C) 2014 Free Software Foundation, Inc.
21227 # This is free software; see the source for copying conditions. There is NO
21228 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21229
21230 # GNU Libtool is free software; you can redistribute it and/or modify
21231 # it under the terms of the GNU General Public License as published by
21232 # the Free Software Foundation; either version 2 of of the License, or
21233 # (at your option) any later version.
21234 #
21235 # As a special exception to the GNU General Public License, if you
21236 # distribute this file as part of a program or library that is built
21237 # using GNU Libtool, you may include this file under the same
21238 # distribution terms that you use for the rest of that program.
21239 #
21240 # GNU Libtool is distributed in the hope that it will be useful, but
21241 # WITHOUT ANY WARRANTY; without even the implied warranty of
21242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21243 # GNU General Public License for more details.
21244 #
21245 # You should have received a copy of the GNU General Public License
21246 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21247
21248
21249 # The names of the tagged configurations supported by this script.
21250 available_tags=''
21251
21252 # Configured defaults for sys_lib_dlsearch_path munging.
21253 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21254
21255 # ### BEGIN LIBTOOL CONFIG
21256
21257 # Whether or not to build static libraries.
21258 build_old_libs=$enable_static
21259
21260 # Which release of libtool.m4 was used?
21261 macro_version=$macro_version
21262 macro_revision=$macro_revision
21263
21264 # Whether or not to build shared libraries.
21265 build_libtool_libs=$enable_shared
21266
21267 # What type of objects to build.
21268 pic_mode=$pic_mode
21269
21270 # Whether or not to optimize for fast installation.
21271 fast_install=$enable_fast_install
21272
21273 # Shared archive member basename,for filename based shared library versioning on AIX.
21274 shared_archive_member_spec=$shared_archive_member_spec
21275
21276 # Shell to use when invoking shell scripts.
21277 SHELL=$lt_SHELL
21278
21279 # An echo program that protects backslashes.
21280 ECHO=$lt_ECHO
21281
21282 # The PATH separator for the build system.
21283 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21284
21285 # The host system.
21286 host_alias=$host_alias
21287 host=$host
21288 host_os=$host_os
21289
21290 # The build system.
21291 build_alias=$build_alias
21292 build=$build
21293 build_os=$build_os
21294
21295 # A sed program that does not truncate output.
21296 SED=$lt_SED
21297
21298 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21299 Xsed="\$SED -e 1s/^X//"
21300
21301 # A grep program that handles long lines.
21302 GREP=$lt_GREP
21303
21304 # An ERE matcher.
21305 EGREP=$lt_EGREP
21306
21307 # A literal string matcher.
21308 FGREP=$lt_FGREP
21309
21310 # A BSD- or MS-compatible name lister.
21311 NM=$lt_NM
21312
21313 # Whether we need soft or hard links.
21314 LN_S=$lt_LN_S
21315
21316 # What is the maximum length of a command?
21317 max_cmd_len=$max_cmd_len
21318
21319 # Object file suffix (normally "o").
21320 objext=$ac_objext
21321
21322 # Executable file suffix (normally "").
21323 exeext=$exeext
21324
21325 # whether the shell understands "unset".
21326 lt_unset=$lt_unset
21327
21328 # turn spaces into newlines.
21329 SP2NL=$lt_lt_SP2NL
21330
21331 # turn newlines into spaces.
21332 NL2SP=$lt_lt_NL2SP
21333
21334 # convert \$build file names to \$host format.
21335 to_host_file_cmd=$lt_cv_to_host_file_cmd
21336
21337 # convert \$build files to toolchain format.
21338 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21339
21340 # A file(cmd) program that detects file types.
21341 FILECMD=$lt_FILECMD
21342
21343 # An object symbol dumper.
21344 OBJDUMP=$lt_OBJDUMP
21345
21346 # Method to check whether dependent libraries are shared objects.
21347 deplibs_check_method=$lt_deplibs_check_method
21348
21349 # Command to use when deplibs_check_method = "file_magic".
21350 file_magic_cmd=$lt_file_magic_cmd
21351
21352 # How to find potential files when deplibs_check_method = "file_magic".
21353 file_magic_glob=$lt_file_magic_glob
21354
21355 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21356 want_nocaseglob=$lt_want_nocaseglob
21357
21358 # DLL creation program.
21359 DLLTOOL=$lt_DLLTOOL
21360
21361 # Command to associate shared and link libraries.
21362 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21363
21364 # The archiver.
21365 AR=$lt_AR
21366
21367 # Flags to create an archive (by configure).
21368 lt_ar_flags=$lt_ar_flags
21369
21370 # Flags to create an archive.
21371 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21372
21373 # How to feed a file listing to the archiver.
21374 archiver_list_spec=$lt_archiver_list_spec
21375
21376 # A symbol stripping program.
21377 STRIP=$lt_STRIP
21378
21379 # Commands used to install an old-style archive.
21380 RANLIB=$lt_RANLIB
21381 old_postinstall_cmds=$lt_old_postinstall_cmds
21382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21383
21384 # Whether to use a lock for old archive extraction.
21385 lock_old_archive_extraction=$lock_old_archive_extraction
21386
21387 # A C compiler.
21388 LTCC=$lt_CC
21389
21390 # LTCC compiler flags.
21391 LTCFLAGS=$lt_CFLAGS
21392
21393 # Take the output of nm and produce a listing of raw symbols and C names.
21394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21395
21396 # Transform the output of nm in a proper C declaration.
21397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21398
21399 # Transform the output of nm into a list of symbols to manually relocate.
21400 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21401
21402 # Transform the output of nm in a C name address pair.
21403 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21404
21405 # Transform the output of nm in a C name address pair when lib prefix is needed.
21406 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21407
21408 # The name lister interface.
21409 nm_interface=$lt_lt_cv_nm_interface
21410
21411 # Specify filename containing input files for \$NM.
21412 nm_file_list_spec=$lt_nm_file_list_spec
21413
21414 # The root where to search for dependent libraries,and where our libraries should be installed.
21415 lt_sysroot=$lt_sysroot
21416
21417 # Command to truncate a binary pipe.
21418 lt_truncate_bin=$lt_lt_cv_truncate_bin
21419
21420 # The name of the directory that contains temporary libtool files.
21421 objdir=$objdir
21422
21423 # Used to examine libraries when file_magic_cmd begins with "file".
21424 MAGIC_CMD=$MAGIC_CMD
21425
21426 # Must we lock files when doing compilation?
21427 need_locks=$lt_need_locks
21428
21429 # Manifest tool.
21430 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21431
21432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21433 DSYMUTIL=$lt_DSYMUTIL
21434
21435 # Tool to change global to local symbols on Mac OS X.
21436 NMEDIT=$lt_NMEDIT
21437
21438 # Tool to manipulate fat objects and archives on Mac OS X.
21439 LIPO=$lt_LIPO
21440
21441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21442 OTOOL=$lt_OTOOL
21443
21444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21445 OTOOL64=$lt_OTOOL64
21446
21447 # Old archive suffix (normally "a").
21448 libext=$libext
21449
21450 # Shared library suffix (normally ".so").
21451 shrext_cmds=$lt_shrext_cmds
21452
21453 # The commands to extract the exported symbol list from a shared archive.
21454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21455
21456 # Variables whose values should be saved in libtool wrapper scripts and
21457 # restored at link time.
21458 variables_saved_for_relink=$lt_variables_saved_for_relink
21459
21460 # Do we need the "lib" prefix for modules?
21461 need_lib_prefix=$need_lib_prefix
21462
21463 # Do we need a version for libraries?
21464 need_version=$need_version
21465
21466 # Library versioning type.
21467 version_type=$version_type
21468
21469 # Shared library runtime path variable.
21470 runpath_var=$runpath_var
21471
21472 # Shared library path variable.
21473 shlibpath_var=$shlibpath_var
21474
21475 # Is shlibpath searched before the hard-coded library search path?
21476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21477
21478 # Format of library name prefix.
21479 libname_spec=$lt_libname_spec
21480
21481 # List of archive names. First name is the real one, the rest are links.
21482 # The last name is the one that the linker finds with -lNAME
21483 library_names_spec=$lt_library_names_spec
21484
21485 # The coded name of the library, if different from the real name.
21486 soname_spec=$lt_soname_spec
21487
21488 # Permission mode override for installation of shared libraries.
21489 install_override_mode=$lt_install_override_mode
21490
21491 # Command to use after installation of a shared archive.
21492 postinstall_cmds=$lt_postinstall_cmds
21493
21494 # Command to use after uninstallation of a shared archive.
21495 postuninstall_cmds=$lt_postuninstall_cmds
21496
21497 # Commands used to finish a libtool library installation in a directory.
21498 finish_cmds=$lt_finish_cmds
21499
21500 # As "finish_cmds", except a single script fragment to be evaled but
21501 # not shown.
21502 finish_eval=$lt_finish_eval
21503
21504 # Whether we should hardcode library paths into libraries.
21505 hardcode_into_libs=$hardcode_into_libs
21506
21507 # Compile-time system search path for libraries.
21508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21509
21510 # Detected run-time system search path for libraries.
21511 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21512
21513 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21514 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21515
21516 # Whether dlopen is supported.
21517 dlopen_support=$enable_dlopen
21518
21519 # Whether dlopen of programs is supported.
21520 dlopen_self=$enable_dlopen_self
21521
21522 # Whether dlopen of statically linked programs is supported.
21523 dlopen_self_static=$enable_dlopen_self_static
21524
21525 # Commands to strip libraries.
21526 old_striplib=$lt_old_striplib
21527 striplib=$lt_striplib
21528
21529
21530 # The linker used to build libraries.
21531 LD=$lt_LD
21532
21533 # How to create reloadable object files.
21534 reload_flag=$lt_reload_flag
21535 reload_cmds=$lt_reload_cmds
21536
21537 # Commands used to build an old-style archive.
21538 old_archive_cmds=$lt_old_archive_cmds
21539
21540 # A language specific compiler.
21541 CC=$lt_compiler
21542
21543 # Is the compiler the GNU compiler?
21544 with_gcc=$GCC
21545
21546 # Compiler flag to turn off builtin functions.
21547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21548
21549 # Additional compiler flags for building library objects.
21550 pic_flag=$lt_lt_prog_compiler_pic
21551
21552 # How to pass a linker flag through the compiler.
21553 wl=$lt_lt_prog_compiler_wl
21554
21555 # Compiler flag to prevent dynamic linking.
21556 link_static_flag=$lt_lt_prog_compiler_static
21557
21558 # Does compiler simultaneously support -c and -o options?
21559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21560
21561 # Whether or not to add -lc for building shared libraries.
21562 build_libtool_need_lc=$archive_cmds_need_lc
21563
21564 # Whether or not to disallow shared libs when runtime libs are static.
21565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21566
21567 # Compiler flag to allow reflexive dlopens.
21568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21569
21570 # Compiler flag to generate shared objects directly from archives.
21571 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21572
21573 # Whether the compiler copes with passing no objects directly.
21574 compiler_needs_object=$lt_compiler_needs_object
21575
21576 # Create an old-style archive from a shared archive.
21577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21578
21579 # Create a temporary old-style archive to link instead of a shared archive.
21580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21581
21582 # Commands used to build a shared archive.
21583 archive_cmds=$lt_archive_cmds
21584 archive_expsym_cmds=$lt_archive_expsym_cmds
21585
21586 # Commands used to build a loadable module if different from building
21587 # a shared archive.
21588 module_cmds=$lt_module_cmds
21589 module_expsym_cmds=$lt_module_expsym_cmds
21590
21591 # Whether we are building with GNU ld or not.
21592 with_gnu_ld=$lt_with_gnu_ld
21593
21594 # Flag that allows shared libraries with undefined symbols to be built.
21595 allow_undefined_flag=$lt_allow_undefined_flag
21596
21597 # Flag that enforces no undefined symbols.
21598 no_undefined_flag=$lt_no_undefined_flag
21599
21600 # Flag to hardcode \$libdir into a binary during linking.
21601 # This must work even if \$libdir does not exist
21602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21603
21604 # Whether we need a single "-rpath" flag with a separated argument.
21605 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21606
21607 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21608 # DIR into the resulting binary.
21609 hardcode_direct=$hardcode_direct
21610
21611 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21612 # DIR into the resulting binary and the resulting library dependency is
21613 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21614 # library is relocated.
21615 hardcode_direct_absolute=$hardcode_direct_absolute
21616
21617 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21618 # into the resulting binary.
21619 hardcode_minus_L=$hardcode_minus_L
21620
21621 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21622 # into the resulting binary.
21623 hardcode_shlibpath_var=$hardcode_shlibpath_var
21624
21625 # Set to "yes" if building a shared library automatically hardcodes DIR
21626 # into the library and all subsequent libraries and executables linked
21627 # against it.
21628 hardcode_automatic=$hardcode_automatic
21629
21630 # Set to yes if linker adds runtime paths of dependent libraries
21631 # to runtime path list.
21632 inherit_rpath=$inherit_rpath
21633
21634 # Whether libtool must link a program against all its dependency libraries.
21635 link_all_deplibs=$link_all_deplibs
21636
21637 # Set to "yes" if exported symbols are required.
21638 always_export_symbols=$always_export_symbols
21639
21640 # The commands to list exported symbols.
21641 export_symbols_cmds=$lt_export_symbols_cmds
21642
21643 # Symbols that should not be listed in the preloaded symbols.
21644 exclude_expsyms=$lt_exclude_expsyms
21645
21646 # Symbols that must always be exported.
21647 include_expsyms=$lt_include_expsyms
21648
21649 # Commands necessary for linking programs (against libraries) with templates.
21650 prelink_cmds=$lt_prelink_cmds
21651
21652 # Commands necessary for finishing linking programs.
21653 postlink_cmds=$lt_postlink_cmds
21654
21655 # Specify filename containing input files.
21656 file_list_spec=$lt_file_list_spec
21657
21658 # How to hardcode a shared library path into an executable.
21659 hardcode_action=$hardcode_action
21660
21661 # ### END LIBTOOL CONFIG
21662
21663 _LT_EOF
21664
21665 cat <<'_LT_EOF' >> "$cfgfile"
21666
21667 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21668
21669 # func_munge_path_list VARIABLE PATH
21670 # -----------------------------------
21671 # VARIABLE is name of variable containing _space_ separated list of
21672 # directories to be munged by the contents of PATH, which is string
21673 # having a format:
21674 # "DIR[:DIR]:"
21675 # string "DIR[ DIR]" will be prepended to VARIABLE
21676 # ":DIR[:DIR]"
21677 # string "DIR[ DIR]" will be appended to VARIABLE
21678 # "DIRP[:DIRP]::[DIRA:]DIRA"
21679 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21680 # "DIRA[ DIRA]" will be appended to VARIABLE
21681 # "DIR[:DIR]"
21682 # VARIABLE will be replaced by "DIR[ DIR]"
21683 func_munge_path_list ()
21684 {
21685 case x$2 in
21686 x)
21687 ;;
21688 *:)
21689 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21690 ;;
21691 x:*)
21692 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21693 ;;
21694 *::*)
21695 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21696 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21697 ;;
21698 *)
21699 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21700 ;;
21701 esac
21702 }
21703
21704
21705 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21706 func_cc_basename ()
21707 {
21708 for cc_temp in $*""; do
21709 case $cc_temp in
21710 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21711 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21712 \-*) ;;
21713 *) break;;
21714 esac
21715 done
21716 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21717 }
21718
21719
21720 # ### END FUNCTIONS SHARED WITH CONFIGURE
21721
21722 _LT_EOF
21723
21724 case $host_os in
21725 aix3*)
21726 cat <<\_LT_EOF >> "$cfgfile"
21727 # AIX sometimes has problems with the GCC collect2 program. For some
21728 # reason, if we set the COLLECT_NAMES environment variable, the problems
21729 # vanish in a puff of smoke.
21730 if test set != "${COLLECT_NAMES+set}"; then
21731 COLLECT_NAMES=
21732 export COLLECT_NAMES
21733 fi
21734 _LT_EOF
21735 ;;
21736 esac
21737
21738
21739
21740 ltmain=$ac_aux_dir/ltmain.sh
21741
21742
21743 # We use sed instead of cat because bash on DJGPP gets confused if
21744 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21745 # text mode, it properly converts lines to CR/LF. This bash problem
21746 # is reportedly fixed, but why not run on old versions too?
21747 $SED '$q' "$ltmain" >> "$cfgfile" \
21748 || (rm -f "$cfgfile"; exit 1)
21749
21750 mv -f "$cfgfile" "$ofile" ||
21751 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21752 chmod +x "$ofile"
21753
21754 ;;
21755
21756 esac
21757 done # for ac_tag
21758
21759
21760 as_fn_exit 0
21761 _ACEOF
21762 ac_clean_files=$ac_clean_files_save
21763
21764 test $ac_write_fail = 0 ||
21765 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21766
21767
21768 # configure is writing to config.log, and then calls config.status.
21769 # config.status does its own redirection, appending to config.log.
21770 # Unfortunately, on DOS this fails, as config.log is still kept open
21771 # by configure, so config.status won't be able to write to it; its
21772 # output is simply discarded. So we exec the FD to /dev/null,
21773 # effectively closing config.log, so it can be properly (re)opened and
21774 # appended to by config.status. When coming back to configure, we
21775 # need to make the FD available again.
21776 if test "$no_create" != yes; then
21777 ac_cs_success=:
21778 ac_config_status_args=
21779 test "$silent" = yes &&
21780 ac_config_status_args="$ac_config_status_args --quiet"
21781 exec 5>/dev/null
21782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21783 exec 5>>config.log
21784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21785 # would make configure fail if this is the last instruction.
21786 $ac_cs_success || as_fn_exit 1
21787 fi
21788 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21790 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21791 fi
21792
21793
21794