configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-amdgpu 23.0.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/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-amdgpu/-/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-amdgpu'
624 PACKAGE_TARNAME='xf86-video-amdgpu'
625 PACKAGE_VERSION='23.0.0'
626 PACKAGE_STRING='xf86-video-amdgpu 23.0.0'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/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 GLAMOR_FALSE
670 GLAMOR_TRUE
671 LIBGLAMOR_EGL_LIBS
672 LIBGLAMOR_EGL_CFLAGS
673 LIBGLAMOR_LIBS
674 LIBGLAMOR_CFLAGS
675 LIBGL_LIBS
676 LIBGL_CFLAGS
677 LIBUDEV_FALSE
678 LIBUDEV_TRUE
679 LIBUDEV_LIBS
680 LIBUDEV_CFLAGS
681 configdir
682 HAS_XORG_CONF_DIR_FALSE
683 HAS_XORG_CONF_DIR_TRUE
684 HAVE_XEXTPROTO_71_FALSE
685 HAVE_XEXTPROTO_71_TRUE
686 XEXT_LIBS
687 XEXT_CFLAGS
688 XORG_LIBS
689 XORG_CFLAGS
690 GBM_LIBS
691 GBM_CFLAGS
692 LIBDRM_AMDGPU_LIBS
693 LIBDRM_AMDGPU_CFLAGS
694 LIBDRM_LIBS
695 LIBDRM_CFLAGS
696 LT_SYS_LIBRARY_PATH
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 ac_ct_AR
705 AR
706 DLLTOOL
707 OBJDUMP
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 LIBTOOL
717 MAN_SUBSTS
718 XORG_MAN_PAGE
719 ADMIN_MAN_DIR
720 DRIVER_MAN_DIR
721 MISC_MAN_DIR
722 FILE_MAN_DIR
723 LIB_MAN_DIR
724 APP_MAN_DIR
725 ADMIN_MAN_SUFFIX
726 DRIVER_MAN_SUFFIX
727 MISC_MAN_SUFFIX
728 FILE_MAN_SUFFIX
729 LIB_MAN_SUFFIX
730 APP_MAN_SUFFIX
731 SED
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 INSTALL_CMD
741 PKG_CONFIG_LIBDIR
742 PKG_CONFIG_PATH
743 PKG_CONFIG
744 CHANGELOG_CMD
745 STRICT_CFLAGS
746 CWARNFLAGS
747 BASE_CFLAGS
748 am__fastdepCC_FALSE
749 am__fastdepCC_TRUE
750 CCDEPMODE
751 am__nodep
752 AMDEPBACKSLASH
753 AMDEP_FALSE
754 AMDEP_TRUE
755 am__include
756 DEPDIR
757 OBJEXT
758 EXEEXT
759 ac_ct_CC
760 CPPFLAGS
761 LDFLAGS
762 CFLAGS
763 CC
764 AM_BACKSLASH
765 AM_DEFAULT_VERBOSITY
766 AM_DEFAULT_V
767 AM_V
768 CSCOPE
769 ETAGS
770 CTAGS
771 am__untar
772 am__tar
773 AMTAR
774 am__leading_dot
775 SET_MAKE
776 AWK
777 mkdir_p
778 MKDIR_P
779 INSTALL_STRIP_PROGRAM
780 STRIP
781 install_sh
782 MAKEINFO
783 AUTOHEADER
784 AUTOMAKE
785 AUTOCONF
786 ACLOCAL
787 VERSION
788 PACKAGE
789 CYGPATH_W
790 am__isrc
791 INSTALL_DATA
792 INSTALL_SCRIPT
793 INSTALL_PROGRAM
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 runstatedir
814 localstatedir
815 sharedstatedir
816 sysconfdir
817 datadir
818 datarootdir
819 libexecdir
820 sbindir
821 bindir
822 program_transform_name
823 prefix
824 exec_prefix
825 PACKAGE_URL
826 PACKAGE_BUGREPORT
827 PACKAGE_STRING
828 PACKAGE_VERSION
829 PACKAGE_TARNAME
830 PACKAGE_NAME
831 PATH_SEPARATOR
832 SHELL
833 am__quote'
834 ac_subst_files=''
835 ac_user_opts='
836 enable_option_checking
837 enable_silent_rules
838 enable_largefile
839 enable_dependency_tracking
840 enable_selective_werror
841 enable_strict_compilation
842 enable_static
843 enable_shared
844 with_pic
845 enable_fast_install
846 with_aix_soname
847 with_gnu_ld
848 with_sysroot
849 enable_libtool_lock
850 with_xorg_module_dir
851 with_xorg_conf_dir
852 enable_udev
853 enable_glamor
854 '
855 ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 CC
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
863 PKG_CONFIG
864 PKG_CONFIG_PATH
865 PKG_CONFIG_LIBDIR
866 LT_SYS_LIBRARY_PATH
867 LIBDRM_CFLAGS
868 LIBDRM_LIBS
869 LIBDRM_AMDGPU_CFLAGS
870 LIBDRM_AMDGPU_LIBS
871 GBM_CFLAGS
872 GBM_LIBS
873 XORG_CFLAGS
874 XORG_LIBS
875 XEXT_CFLAGS
876 XEXT_LIBS
877 LIBUDEV_CFLAGS
878 LIBUDEV_LIBS
879 LIBGL_CFLAGS
880 LIBGL_LIBS
881 LIBGLAMOR_CFLAGS
882 LIBGLAMOR_LIBS
883 LIBGLAMOR_EGL_CFLAGS
884 LIBGLAMOR_EGL_LIBS'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 runstatedir='${localstatedir}/run'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
935
936 ac_prev=
937 ac_dashdash=
938 for ac_option
939 do
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
945 fi
946
947 case $ac_option in
948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *=) ac_optarg= ;;
950 *) ac_optarg=yes ;;
951 esac
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: \`$ac_useropt'"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -runstatedir | --runstatedir | --runstatedi | --runstated \
1175 | --runstate | --runstat | --runsta | --runst | --runs \
1176 | --run | --ru | --r)
1177 ac_prev=runstatedir ;;
1178 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1179 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1180 | --run=* | --ru=* | --r=*)
1181 runstatedir=$ac_optarg ;;
1182
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1188
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1199
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1204
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1209
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1216
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1221
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1224
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1227
1228 -with-* | --with-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: \`$ac_useropt'"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=\$ac_optarg ;;
1243
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: \`$ac_useropt'"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
1259
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1263
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1270
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1277
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1280 ;;
1281
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1291
1292 *)
1293 # FIXME: should be removed in autoconf 3.0.
1294 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298 ;;
1299
1300 esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir runstatedir
1321 do
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 as_fn_error $? "working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 as_fn_error $? "pwd does not report name of working directory"
1365
1366
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 printf "%s\n" X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\).*/{
1390 s//\1/
1391 q
1392 }
1393 s/.*/./; q'`
1394 srcdir=$ac_confdir
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 srcdir=..
1397 fi
1398 else
1399 ac_srcdir_defaulted=no
1400 fi
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 fi
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1425
1426 #
1427 # Report the --help message.
1428 #
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures xf86-video-amdgpu 23.0.0 to adapt to many kinds of systems.
1434
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1439
1440 Defaults for the options are specified in brackets.
1441
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking ...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1458
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1463
1464 For better control, use the options below.
1465
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root
1483 [DATAROOTDIR/doc/xf86-video-amdgpu]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1489
1490 cat <<\_ACEOF
1491
1492 Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of xf86-video-amdgpu 23.0.0:";;
1506 esac
1507 cat <<\_ACEOF
1508
1509 Optional Features:
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --enable-silent-rules less verbose build output (undo: "make V=1")
1514 --disable-silent-rules verbose build output (undo: "make V=0")
1515 --disable-largefile omit support for large files
1516 --enable-dependency-tracking
1517 do not reject slow dependency extractors
1518 --disable-dependency-tracking
1519 speeds up one-time build
1520 --disable-selective-werror
1521 Turn off selective compiler errors. (default:
1522 enabled)
1523 --enable-strict-compilation
1524 Enable all warnings from compiler and make them
1525 errors (default: disabled)
1526 --enable-static[=PKGS] build static libraries [default=no]
1527 --enable-shared[=PKGS] build shared libraries [default=yes]
1528 --enable-fast-install[=PKGS]
1529 optimize for fast installation [default=yes]
1530 --disable-libtool-lock avoid locking (might break parallel builds)
1531 --disable-udev Disable libudev support [default=auto]
1532 --disable-glamor Disable glamor, a new GL-based acceleration
1533 [default=enabled]
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1539 both]
1540 --with-aix-soname=aix|svr4|both
1541 shared library versioning (aka "SONAME") variant to
1542 provide on AIX, [default=aix].
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1544 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1545 compiler's sysroot if not specified).
1546 --with-xorg-module-dir=DIR
1547 Default xorg module directory
1548 [[default=$libdir/xorg/modules]]
1549 --with-xorg-conf-dir=DIR
1550 Default xorg.conf.d directory
1551 [[default=${prefix}/share/X11/xorg.conf.d]]
1552
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 PKG_CONFIG path to pkg-config utility
1562 PKG_CONFIG_PATH
1563 directories to add to pkg-config's search path
1564 PKG_CONFIG_LIBDIR
1565 path overriding pkg-config's built-in search path
1566 LT_SYS_LIBRARY_PATH
1567 User-defined run-time library search path.
1568 LIBDRM_CFLAGS
1569 C compiler flags for LIBDRM, overriding pkg-config
1570 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1571 LIBDRM_AMDGPU_CFLAGS
1572 C compiler flags for LIBDRM_AMDGPU, overriding pkg-config
1573 LIBDRM_AMDGPU_LIBS
1574 linker flags for LIBDRM_AMDGPU, overriding pkg-config
1575 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config
1576 GBM_LIBS linker flags for GBM, overriding pkg-config
1577 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1578 XORG_LIBS linker flags for XORG, overriding pkg-config
1579 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1580 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1581 LIBUDEV_CFLAGS
1582 C compiler flags for LIBUDEV, overriding pkg-config
1583 LIBUDEV_LIBS
1584 linker flags for LIBUDEV, overriding pkg-config
1585 LIBGL_CFLAGS
1586 C compiler flags for LIBGL, overriding pkg-config
1587 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1588 LIBGLAMOR_CFLAGS
1589 C compiler flags for LIBGLAMOR, overriding pkg-config
1590 LIBGLAMOR_LIBS
1591 linker flags for LIBGLAMOR, overriding pkg-config
1592 LIBGLAMOR_EGL_CFLAGS
1593 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1594 LIBGLAMOR_EGL_LIBS
1595 linker flags for LIBGLAMOR_EGL, overriding pkg-config
1596
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1599
1600 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues>.
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for configure.gnu first; this name is used for a wrapper for
1647 # Metaconfig's "Configure" on case-insensitive file systems.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 xf86-video-amdgpu configure 23.0.0
1665 generated by GNU Autoconf 2.71
1666
1667 Copyright (C) 2021 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest.beam
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 printf "%s\n" "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext
1704 then :
1705 ac_retval=0
1706 else $as_nop
1707 printf "%s\n" "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_compile
1716
1717 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1718 # ------------------------------------------------------------------
1719 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1720 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1721 ac_fn_check_decl ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 as_decl_name=`echo $2|sed 's/ *(.*//'`
1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1726 printf %s "checking whether $as_decl_name is declared... " >&6; }
1727 if eval test \${$3+y}
1728 then :
1729 printf %s "(cached) " >&6
1730 else $as_nop
1731 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1732 eval ac_save_FLAGS=\$$6
1733 as_fn_append $6 " $5"
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 $4
1737 int
1738 main (void)
1739 {
1740 #ifndef $as_decl_name
1741 #ifdef __cplusplus
1742 (void) $as_decl_use;
1743 #else
1744 (void) $as_decl_name;
1745 #endif
1746 #endif
1747
1748 ;
1749 return 0;
1750 }
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"
1753 then :
1754 eval "$3=yes"
1755 else $as_nop
1756 eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1759 eval $6=\$ac_save_FLAGS
1760
1761 fi
1762 eval ac_res=\$$3
1763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 printf "%s\n" "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_check_decl
1768
1769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists and can be compiled using the include files in
1772 # INCLUDES, setting the cache variable VAR accordingly.
1773 ac_fn_c_check_header_compile ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 printf %s "checking for $2... " >&6; }
1778 if eval test \${$3+y}
1779 then :
1780 printf %s "(cached) " >&6
1781 else $as_nop
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"
1788 then :
1789 eval "$3=yes"
1790 else $as_nop
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 printf "%s\n" "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_header_compile
1801
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_link ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 printf "%s\n" "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 test -x conftest$ac_exeext
1830 }
1831 then :
1832 ac_retval=0
1833 else $as_nop
1834 printf "%s\n" "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838 fi
1839 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1840 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1841 # interfere with the next link command; also delete a directory that is
1842 # left behind by Apple's compiler. We do this before executing the actions.
1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status $ac_retval
1846
1847 } # ac_fn_c_try_link
1848
1849 # ac_fn_c_check_func LINENO FUNC VAR
1850 # ----------------------------------
1851 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1852 ac_fn_c_check_func ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 printf %s "checking for $2... " >&6; }
1857 if eval test \${$3+y}
1858 then :
1859 printf %s "(cached) " >&6
1860 else $as_nop
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1865 #define $2 innocuous_$2
1866
1867 /* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char $2 (); below. */
1869
1870 #include <limits.h>
1871 #undef $2
1872
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1876 #ifdef __cplusplus
1877 extern "C"
1878 #endif
1879 char $2 ();
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1884 choke me
1885 #endif
1886
1887 int
1888 main (void)
1889 {
1890 return $2 ();
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_link "$LINENO"
1896 then :
1897 eval "$3=yes"
1898 else $as_nop
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1902 conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 printf "%s\n" "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_func
1910 ac_configure_args_raw=
1911 for ac_arg
1912 do
1913 case $ac_arg in
1914 *\'*)
1915 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 esac
1917 as_fn_append ac_configure_args_raw " '$ac_arg'"
1918 done
1919
1920 case $ac_configure_args_raw in
1921 *$as_nl*)
1922 ac_safe_unquote= ;;
1923 *)
1924 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1925 ac_unsafe_a="$ac_unsafe_z#~"
1926 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1927 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1928 esac
1929
1930 cat >config.log <<_ACEOF
1931 This file contains any messages produced by compilers while
1932 running configure, to aid debugging if configure makes a mistake.
1933
1934 It was created by xf86-video-amdgpu $as_me 23.0.0, which was
1935 generated by GNU Autoconf 2.71. Invocation command line was
1936
1937 $ $0$ac_configure_args_raw
1938
1939 _ACEOF
1940 exec 5>>config.log
1941 {
1942 cat <<_ASUNAME
1943 ## --------- ##
1944 ## Platform. ##
1945 ## --------- ##
1946
1947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1952
1953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1955
1956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1959 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1963
1964 _ASUNAME
1965
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969 IFS=$as_save_IFS
1970 case $as_dir in #(((
1971 '') as_dir=./ ;;
1972 */) ;;
1973 *) as_dir=$as_dir/ ;;
1974 esac
1975 printf "%s\n" "PATH: $as_dir"
1976 done
1977 IFS=$as_save_IFS
1978
1979 } >&5
1980
1981 cat >&5 <<_ACEOF
1982
1983
1984 ## ----------- ##
1985 ## Core tests. ##
1986 ## ----------- ##
1987
1988 _ACEOF
1989
1990
1991 # Keep a trace of the command line.
1992 # Strip out --no-create and --no-recursion so they do not pile up.
1993 # Strip out --silent because we don't want to record it for future runs.
1994 # Also quote any args containing shell meta-characters.
1995 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_configure_args=
1997 ac_configure_args0=
1998 ac_configure_args1=
1999 ac_must_keep_next=false
2000 for ac_pass in 1 2
2001 do
2002 for ac_arg
2003 do
2004 case $ac_arg in
2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007 | -silent | --silent | --silen | --sile | --sil)
2008 continue ;;
2009 *\'*)
2010 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 case $ac_pass in
2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014 2)
2015 as_fn_append ac_configure_args1 " '$ac_arg'"
2016 if test $ac_must_keep_next = true; then
2017 ac_must_keep_next=false # Got value, back to normal.
2018 else
2019 case $ac_arg in
2020 *=* | --config-cache | -C | -disable-* | --disable-* \
2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023 | -with-* | --with-* | -without-* | --without-* | --x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026 esac
2027 ;;
2028 -* ) ac_must_keep_next=true ;;
2029 esac
2030 fi
2031 as_fn_append ac_configure_args " '$ac_arg'"
2032 ;;
2033 esac
2034 done
2035 done
2036 { ac_configure_args0=; unset ac_configure_args0;}
2037 { ac_configure_args1=; unset ac_configure_args1;}
2038
2039 # When interrupted or exit'd, cleanup temporary files, and complete
2040 # config.log. We remove comments because anyway the quotes in there
2041 # would cause problems or look ugly.
2042 # WARNING: Use '\'' to represent an apostrophe within the trap.
2043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044 trap 'exit_status=$?
2045 # Sanitize IFS.
2046 IFS=" "" $as_nl"
2047 # Save into config.log some information that might help in debugging.
2048 {
2049 echo
2050
2051 printf "%s\n" "## ---------------- ##
2052 ## Cache variables. ##
2053 ## ---------------- ##"
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
2056 (
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
2072 (set) 2>&1 |
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
2075 sed -n \
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
2079 *)
2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2081 ;;
2082 esac |
2083 sort
2084 )
2085 echo
2086
2087 printf "%s\n" "## ----------------- ##
2088 ## Output variables. ##
2089 ## ----------------- ##"
2090 echo
2091 for ac_var in $ac_subst_vars
2092 do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 printf "%s\n" "$ac_var='\''$ac_val'\''"
2098 done | sort
2099 echo
2100
2101 if test -n "$ac_subst_files"; then
2102 printf "%s\n" "## ------------------- ##
2103 ## File substitutions. ##
2104 ## ------------------- ##"
2105 echo
2106 for ac_var in $ac_subst_files
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 printf "%s\n" "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115 fi
2116
2117 if test -s confdefs.h; then
2118 printf "%s\n" "## ----------- ##
2119 ## confdefs.h. ##
2120 ## ----------- ##"
2121 echo
2122 cat confdefs.h
2123 echo
2124 fi
2125 test "$ac_signal" != 0 &&
2126 printf "%s\n" "$as_me: caught signal $ac_signal"
2127 printf "%s\n" "$as_me: exit $exit_status"
2128 } >&5
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2131 exit $exit_status
2132 ' 0
2133 for ac_signal in 1 2 13 15; do
2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2135 done
2136 ac_signal=0
2137
2138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2139 rm -f -r conftest* confdefs.h
2140
2141 printf "%s\n" "/* confdefs.h */" > confdefs.h
2142
2143 # Predefined preprocessor variables.
2144
2145 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2146
2147 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2148
2149 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2150
2151 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2152
2153 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2154
2155 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2156
2157
2158 # Let the site file select an alternate cache file if it wants to.
2159 # Prefer an explicitly selected file to automatically selected ones.
2160 if test -n "$CONFIG_SITE"; then
2161 ac_site_files="$CONFIG_SITE"
2162 elif test "x$prefix" != xNONE; then
2163 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2164 else
2165 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2166 fi
2167
2168 for ac_site_file in $ac_site_files
2169 do
2170 case $ac_site_file in #(
2171 */*) :
2172 ;; #(
2173 *) :
2174 ac_site_file=./$ac_site_file ;;
2175 esac
2176 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2179 sed 's/^/| /' "$ac_site_file" >&5
2180 . "$ac_site_file" \
2181 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2183 as_fn_error $? "failed to load site script $ac_site_file
2184 See \`config.log' for more details" "$LINENO" 5; }
2185 fi
2186 done
2187
2188 if test -r "$cache_file"; then
2189 # Some versions of bash will fail to source /dev/null (special files
2190 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2191 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2193 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2194 case $cache_file in
2195 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2196 *) . "./$cache_file";;
2197 esac
2198 fi
2199 else
2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2201 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2202 >$cache_file
2203 fi
2204
2205 # Test code for whether the C compiler supports C89 (global declarations)
2206 ac_c_conftest_c89_globals='
2207 /* Does the compiler advertise C89 conformance?
2208 Do not test the value of __STDC__, because some compilers set it to 0
2209 while being otherwise adequately conformant. */
2210 #if !defined __STDC__
2211 # error "Compiler does not advertise C89 conformance"
2212 #endif
2213
2214 #include <stddef.h>
2215 #include <stdarg.h>
2216 struct stat;
2217 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2218 struct buf { int x; };
2219 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2221 char **p;
2222 int i;
2223 {
2224 return p[i];
2225 }
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2227 {
2228 char *s;
2229 va_list v;
2230 va_start (v,p);
2231 s = g (p, va_arg (v,int));
2232 va_end (v);
2233 return s;
2234 }
2235
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2237 function prototypes and stuff, but not \xHH hex character constants.
2238 These do not provoke an error unfortunately, instead are silently treated
2239 as an "x". The following induces an error, until -std is added to get
2240 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2241 array size at least. It is necessary to write \x00 == 0 to get something
2242 that is true only with -std. */
2243 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2244
2245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2246 inside strings and character constants. */
2247 #define FOO(x) '\''x'\''
2248 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2249
2250 int test (int i, double x);
2251 struct s1 {int (*f) (int a);};
2252 struct s2 {int (*f) (double a);};
2253 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2254 int, int);'
2255
2256 # Test code for whether the C compiler supports C89 (body of main).
2257 ac_c_conftest_c89_main='
2258 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2259 '
2260
2261 # Test code for whether the C compiler supports C99 (global declarations)
2262 ac_c_conftest_c99_globals='
2263 // Does the compiler advertise C99 conformance?
2264 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2265 # error "Compiler does not advertise C99 conformance"
2266 #endif
2267
2268 #include <stdbool.h>
2269 extern int puts (const char *);
2270 extern int printf (const char *, ...);
2271 extern int dprintf (int, const char *, ...);
2272 extern void *malloc (size_t);
2273
2274 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2275 // dprintf is used instead of fprintf to avoid needing to declare
2276 // FILE and stderr.
2277 #define debug(...) dprintf (2, __VA_ARGS__)
2278 #define showlist(...) puts (#__VA_ARGS__)
2279 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2280 static void
2281 test_varargs_macros (void)
2282 {
2283 int x = 1234;
2284 int y = 5678;
2285 debug ("Flag");
2286 debug ("X = %d\n", x);
2287 showlist (The first, second, and third items.);
2288 report (x>y, "x is %d but y is %d", x, y);
2289 }
2290
2291 // Check long long types.
2292 #define BIG64 18446744073709551615ull
2293 #define BIG32 4294967295ul
2294 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2295 #if !BIG_OK
2296 #error "your preprocessor is broken"
2297 #endif
2298 #if BIG_OK
2299 #else
2300 #error "your preprocessor is broken"
2301 #endif
2302 static long long int bignum = -9223372036854775807LL;
2303 static unsigned long long int ubignum = BIG64;
2304
2305 struct incomplete_array
2306 {
2307 int datasize;
2308 double data[];
2309 };
2310
2311 struct named_init {
2312 int number;
2313 const wchar_t *name;
2314 double average;
2315 };
2316
2317 typedef const char *ccp;
2318
2319 static inline int
2320 test_restrict (ccp restrict text)
2321 {
2322 // See if C++-style comments work.
2323 // Iterate through items via the restricted pointer.
2324 // Also check for declarations in for loops.
2325 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2326 continue;
2327 return 0;
2328 }
2329
2330 // Check varargs and va_copy.
2331 static bool
2332 test_varargs (const char *format, ...)
2333 {
2334 va_list args;
2335 va_start (args, format);
2336 va_list args_copy;
2337 va_copy (args_copy, args);
2338
2339 const char *str = "";
2340 int number = 0;
2341 float fnumber = 0;
2342
2343 while (*format)
2344 {
2345 switch (*format++)
2346 {
2347 case '\''s'\'': // string
2348 str = va_arg (args_copy, const char *);
2349 break;
2350 case '\''d'\'': // int
2351 number = va_arg (args_copy, int);
2352 break;
2353 case '\''f'\'': // float
2354 fnumber = va_arg (args_copy, double);
2355 break;
2356 default:
2357 break;
2358 }
2359 }
2360 va_end (args_copy);
2361 va_end (args);
2362
2363 return *str && number && fnumber;
2364 }
2365 '
2366
2367 # Test code for whether the C compiler supports C99 (body of main).
2368 ac_c_conftest_c99_main='
2369 // Check bool.
2370 _Bool success = false;
2371 success |= (argc != 0);
2372
2373 // Check restrict.
2374 if (test_restrict ("String literal") == 0)
2375 success = true;
2376 char *restrict newvar = "Another string";
2377
2378 // Check varargs.
2379 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2380 test_varargs_macros ();
2381
2382 // Check flexible array members.
2383 struct incomplete_array *ia =
2384 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2385 ia->datasize = 10;
2386 for (int i = 0; i < ia->datasize; ++i)
2387 ia->data[i] = i * 1.234;
2388
2389 // Check named initializers.
2390 struct named_init ni = {
2391 .number = 34,
2392 .name = L"Test wide string",
2393 .average = 543.34343,
2394 };
2395
2396 ni.number = 58;
2397
2398 int dynamic_array[ni.number];
2399 dynamic_array[0] = argv[0][0];
2400 dynamic_array[ni.number - 1] = 543;
2401
2402 // work around unused variable warnings
2403 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2404 || dynamic_array[ni.number - 1] != 543);
2405 '
2406
2407 # Test code for whether the C compiler supports C11 (global declarations)
2408 ac_c_conftest_c11_globals='
2409 // Does the compiler advertise C11 conformance?
2410 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2411 # error "Compiler does not advertise C11 conformance"
2412 #endif
2413
2414 // Check _Alignas.
2415 char _Alignas (double) aligned_as_double;
2416 char _Alignas (0) no_special_alignment;
2417 extern char aligned_as_int;
2418 char _Alignas (0) _Alignas (int) aligned_as_int;
2419
2420 // Check _Alignof.
2421 enum
2422 {
2423 int_alignment = _Alignof (int),
2424 int_array_alignment = _Alignof (int[100]),
2425 char_alignment = _Alignof (char)
2426 };
2427 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2428
2429 // Check _Noreturn.
2430 int _Noreturn does_not_return (void) { for (;;) continue; }
2431
2432 // Check _Static_assert.
2433 struct test_static_assert
2434 {
2435 int x;
2436 _Static_assert (sizeof (int) <= sizeof (long int),
2437 "_Static_assert does not work in struct");
2438 long int y;
2439 };
2440
2441 // Check UTF-8 literals.
2442 #define u8 syntax error!
2443 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2444
2445 // Check duplicate typedefs.
2446 typedef long *long_ptr;
2447 typedef long int *long_ptr;
2448 typedef long_ptr long_ptr;
2449
2450 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2451 struct anonymous
2452 {
2453 union {
2454 struct { int i; int j; };
2455 struct { int k; long int l; } w;
2456 };
2457 int m;
2458 } v1;
2459 '
2460
2461 # Test code for whether the C compiler supports C11 (body of main).
2462 ac_c_conftest_c11_main='
2463 _Static_assert ((offsetof (struct anonymous, i)
2464 == offsetof (struct anonymous, w.k)),
2465 "Anonymous union alignment botch");
2466 v1.i = 2;
2467 v1.w.k = 5;
2468 ok |= v1.i != 5;
2469 '
2470
2471 # Test code for whether the C compiler supports C11 (complete).
2472 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2473 ${ac_c_conftest_c99_globals}
2474 ${ac_c_conftest_c11_globals}
2475
2476 int
2477 main (int argc, char **argv)
2478 {
2479 int ok = 0;
2480 ${ac_c_conftest_c89_main}
2481 ${ac_c_conftest_c99_main}
2482 ${ac_c_conftest_c11_main}
2483 return ok;
2484 }
2485 "
2486
2487 # Test code for whether the C compiler supports C99 (complete).
2488 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2489 ${ac_c_conftest_c99_globals}
2490
2491 int
2492 main (int argc, char **argv)
2493 {
2494 int ok = 0;
2495 ${ac_c_conftest_c89_main}
2496 ${ac_c_conftest_c99_main}
2497 return ok;
2498 }
2499 "
2500
2501 # Test code for whether the C compiler supports C89 (complete).
2502 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2503
2504 int
2505 main (int argc, char **argv)
2506 {
2507 int ok = 0;
2508 ${ac_c_conftest_c89_main}
2509 return ok;
2510 }
2511 "
2512
2513 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2514 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2515 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2516 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2517 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2518 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2519 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2520 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2521 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2522
2523 # Auxiliary files required by this configure script.
2524 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2525
2526 # Locations in which to look for auxiliary files.
2527 ac_aux_dir_candidates="${srcdir}/."
2528
2529 # Search for a directory containing all of the required auxiliary files,
2530 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2531 # If we don't find one directory that contains all the files we need,
2532 # we report the set of missing files from the *first* directory in
2533 # $ac_aux_dir_candidates and give up.
2534 ac_missing_aux_files=""
2535 ac_first_candidate=:
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 as_found=false
2539 for as_dir in $ac_aux_dir_candidates
2540 do
2541 IFS=$as_save_IFS
2542 case $as_dir in #(((
2543 '') as_dir=./ ;;
2544 */) ;;
2545 *) as_dir=$as_dir/ ;;
2546 esac
2547 as_found=:
2548
2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2550 ac_aux_dir_found=yes
2551 ac_install_sh=
2552 for ac_aux in $ac_aux_files
2553 do
2554 # As a special case, if "install-sh" is required, that requirement
2555 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2556 # and $ac_install_sh is set appropriately for whichever one is found.
2557 if test x"$ac_aux" = x"install-sh"
2558 then
2559 if test -f "${as_dir}install-sh"; then
2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2561 ac_install_sh="${as_dir}install-sh -c"
2562 elif test -f "${as_dir}install.sh"; then
2563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2564 ac_install_sh="${as_dir}install.sh -c"
2565 elif test -f "${as_dir}shtool"; then
2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2567 ac_install_sh="${as_dir}shtool install -c"
2568 else
2569 ac_aux_dir_found=no
2570 if $ac_first_candidate; then
2571 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2572 else
2573 break
2574 fi
2575 fi
2576 else
2577 if test -f "${as_dir}${ac_aux}"; then
2578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2579 else
2580 ac_aux_dir_found=no
2581 if $ac_first_candidate; then
2582 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2583 else
2584 break
2585 fi
2586 fi
2587 fi
2588 done
2589 if test "$ac_aux_dir_found" = yes; then
2590 ac_aux_dir="$as_dir"
2591 break
2592 fi
2593 ac_first_candidate=false
2594
2595 as_found=false
2596 done
2597 IFS=$as_save_IFS
2598 if $as_found
2599 then :
2600
2601 else $as_nop
2602 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2603 fi
2604
2605
2606 # These three variables are undocumented and unsupported,
2607 # and are intended to be withdrawn in a future Autoconf release.
2608 # They can cause serious problems if a builder's source tree is in a directory
2609 # whose full name contains unusual characters.
2610 if test -f "${ac_aux_dir}config.guess"; then
2611 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2612 fi
2613 if test -f "${ac_aux_dir}config.sub"; then
2614 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2615 fi
2616 if test -f "$ac_aux_dir/configure"; then
2617 ac_configure="$SHELL ${ac_aux_dir}configure"
2618 fi
2619
2620 # Check that the precious variables saved in the cache have kept the same
2621 # value.
2622 ac_cache_corrupted=false
2623 for ac_var in $ac_precious_vars; do
2624 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2625 eval ac_new_set=\$ac_env_${ac_var}_set
2626 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2627 eval ac_new_val=\$ac_env_${ac_var}_value
2628 case $ac_old_set,$ac_new_set in
2629 set,)
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2631 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2633 ,set)
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2635 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,);;
2638 *)
2639 if test "x$ac_old_val" != "x$ac_new_val"; then
2640 # differences in whitespace do not lead to failure.
2641 ac_old_val_w=`echo x $ac_old_val`
2642 ac_new_val_w=`echo x $ac_new_val`
2643 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2645 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2646 ac_cache_corrupted=:
2647 else
2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2649 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2650 eval $ac_var=\$ac_old_val
2651 fi
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2653 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2655 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2656 fi;;
2657 esac
2658 # Pass precious variables to config.status.
2659 if test "$ac_new_set" = set; then
2660 case $ac_new_val in
2661 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2662 *) ac_arg=$ac_var=$ac_new_val ;;
2663 esac
2664 case " $ac_configure_args " in
2665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2666 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2667 esac
2668 fi
2669 done
2670 if $ac_cache_corrupted; then
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2674 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2675 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2676 and start over" "$LINENO" 5
2677 fi
2678 ## -------------------- ##
2679 ## Main body of script. ##
2680 ## -------------------- ##
2681
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688
2689
2690
2691 ac_config_headers="$ac_config_headers config.h"
2692
2693
2694
2695
2696
2697 # Initialize Automake
2698 am__api_version='1.16'
2699
2700
2701
2702 # Find a good install program. We prefer a C program (faster),
2703 # so one script is as good as another. But avoid the broken or
2704 # incompatible versions:
2705 # SysV /etc/install, /usr/sbin/install
2706 # SunOS /usr/etc/install
2707 # IRIX /sbin/install
2708 # AIX /bin/install
2709 # AmigaOS /C/install, which installs bootblocks on floppy discs
2710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2713 # OS/2's system install, which has a completely different semantic
2714 # ./install, which can be erroneously created by make from ./install.sh.
2715 # Reject install programs that cannot install multiple files.
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2717 printf %s "checking for a BSD-compatible install... " >&6; }
2718 if test -z "$INSTALL"; then
2719 if test ${ac_cv_path_install+y}
2720 then :
2721 printf %s "(cached) " >&6
2722 else $as_nop
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 case $as_dir in #(((
2728 '') as_dir=./ ;;
2729 */) ;;
2730 *) as_dir=$as_dir/ ;;
2731 esac
2732 # Account for fact that we put trailing slashes in our PATH walk.
2733 case $as_dir in #((
2734 ./ | /[cC]/* | \
2735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2736 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2737 /usr/ucb/* ) ;;
2738 *)
2739 # OSF1 and SCO ODT 3.0 have their own names for install.
2740 # Don't use installbsd from OSF since it installs stuff as root
2741 # by default.
2742 for ac_prog in ginstall scoinst install; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2745 if test $ac_prog = install &&
2746 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2747 # AIX install. It has an incompatible calling convention.
2748 :
2749 elif test $ac_prog = install &&
2750 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2751 # program-specific install script used by HP pwplus--don't use.
2752 :
2753 else
2754 rm -rf conftest.one conftest.two conftest.dir
2755 echo one > conftest.one
2756 echo two > conftest.two
2757 mkdir conftest.dir
2758 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2759 test -s conftest.one && test -s conftest.two &&
2760 test -s conftest.dir/conftest.one &&
2761 test -s conftest.dir/conftest.two
2762 then
2763 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2764 break 3
2765 fi
2766 fi
2767 fi
2768 done
2769 done
2770 ;;
2771 esac
2772
2773 done
2774 IFS=$as_save_IFS
2775
2776 rm -rf conftest.one conftest.two conftest.dir
2777
2778 fi
2779 if test ${ac_cv_path_install+y}; then
2780 INSTALL=$ac_cv_path_install
2781 else
2782 # As a last resort, use the slow shell script. Don't cache a
2783 # value for INSTALL within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the value is a relative name.
2786 INSTALL=$ac_install_sh
2787 fi
2788 fi
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2790 printf "%s\n" "$INSTALL" >&6; }
2791
2792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2793 # It thinks the first close brace ends the variable substitution.
2794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2795
2796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2797
2798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2799
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2801 printf %s "checking whether build environment is sane... " >&6; }
2802 # Reject unsafe characters in $srcdir or the absolute working directory
2803 # name. Accept space and tab only in the latter.
2804 am_lf='
2805 '
2806 case `pwd` in
2807 *[\\\"\#\$\&\'\`$am_lf]*)
2808 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2809 esac
2810 case $srcdir in
2811 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2812 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2813 esac
2814
2815 # Do 'set' in a subshell so we don't clobber the current shell's
2816 # arguments. Must try -L first in case configure is actually a
2817 # symlink; some systems play weird games with the mod time of symlinks
2818 # (eg FreeBSD returns the mod time of the symlink's containing
2819 # directory).
2820 if (
2821 am_has_slept=no
2822 for am_try in 1 2; do
2823 echo "timestamp, slept: $am_has_slept" > conftest.file
2824 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2825 if test "$*" = "X"; then
2826 # -L didn't work.
2827 set X `ls -t "$srcdir/configure" conftest.file`
2828 fi
2829 if test "$*" != "X $srcdir/configure conftest.file" \
2830 && test "$*" != "X conftest.file $srcdir/configure"; then
2831
2832 # If neither matched, then we have a broken ls. This can happen
2833 # if, for instance, CONFIG_SHELL is bash and it inherits a
2834 # broken ls alias from the environment. This has actually
2835 # happened. Such a system could not be considered "sane".
2836 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2837 alias in your environment" "$LINENO" 5
2838 fi
2839 if test "$2" = conftest.file || test $am_try -eq 2; then
2840 break
2841 fi
2842 # Just in case.
2843 sleep 1
2844 am_has_slept=yes
2845 done
2846 test "$2" = conftest.file
2847 )
2848 then
2849 # Ok.
2850 :
2851 else
2852 as_fn_error $? "newly created file is older than distributed files!
2853 Check your system clock" "$LINENO" 5
2854 fi
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 printf "%s\n" "yes" >&6; }
2857 # If we didn't sleep, we still need to ensure time stamps of config.status and
2858 # generated files are strictly newer.
2859 am_sleep_pid=
2860 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2861 ( sleep 1 ) &
2862 am_sleep_pid=$!
2863 fi
2864
2865 rm -f conftest.file
2866
2867 test "$program_prefix" != NONE &&
2868 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2869 # Use a double $ so make ignores it.
2870 test "$program_suffix" != NONE &&
2871 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2872 # Double any \ or $.
2873 # By default was `s,x,x', remove it if useless.
2874 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2875 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2876
2877
2878 # Expand $ac_aux_dir to an absolute path.
2879 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2880
2881
2882 if test x"${MISSING+set}" != xset; then
2883 MISSING="\${SHELL} '$am_aux_dir/missing'"
2884 fi
2885 # Use eval to expand $SHELL
2886 if eval "$MISSING --is-lightweight"; then
2887 am_missing_run="$MISSING "
2888 else
2889 am_missing_run=
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2891 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2892 fi
2893
2894 if test x"${install_sh+set}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2898 *)
2899 install_sh="\${SHELL} $am_aux_dir/install-sh"
2900 esac
2901 fi
2902
2903 # Installed binaries are usually stripped using 'strip' when the user
2904 # run "make install-strip". However 'strip' might not be the right
2905 # tool to use in cross-compilation environments, therefore Automake
2906 # will honor the 'STRIP' environment variable to overrule this program.
2907 if test "$cross_compiling" != no; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}strip; ac_word=$2
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 printf %s "checking for $ac_word... " >&6; }
2913 if test ${ac_cv_prog_STRIP+y}
2914 then :
2915 printf %s "(cached) " >&6
2916 else $as_nop
2917 if test -n "$STRIP"; then
2918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 case $as_dir in #(((
2925 '') as_dir=./ ;;
2926 */) ;;
2927 *) as_dir=$as_dir/ ;;
2928 esac
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 STRIP=$ac_cv_prog_STRIP
2942 if test -n "$STRIP"; then
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2944 printf "%s\n" "$STRIP" >&6; }
2945 else
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 printf "%s\n" "no" >&6; }
2948 fi
2949
2950
2951 fi
2952 if test -z "$ac_cv_prog_STRIP"; then
2953 ac_ct_STRIP=$STRIP
2954 # Extract the first word of "strip", so it can be a program name with args.
2955 set dummy strip; ac_word=$2
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 printf %s "checking for $ac_word... " >&6; }
2958 if test ${ac_cv_prog_ac_ct_STRIP+y}
2959 then :
2960 printf %s "(cached) " >&6
2961 else $as_nop
2962 if test -n "$ac_ct_STRIP"; then
2963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 case $as_dir in #(((
2970 '') as_dir=./ ;;
2971 */) ;;
2972 *) as_dir=$as_dir/ ;;
2973 esac
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_STRIP="strip"
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2987 if test -n "$ac_ct_STRIP"; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2989 printf "%s\n" "$ac_ct_STRIP" >&6; }
2990 else
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 printf "%s\n" "no" >&6; }
2993 fi
2994
2995 if test "x$ac_ct_STRIP" = x; then
2996 STRIP=":"
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 STRIP=$ac_ct_STRIP
3005 fi
3006 else
3007 STRIP="$ac_cv_prog_STRIP"
3008 fi
3009
3010 fi
3011 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3012
3013
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3015 printf %s "checking for a race-free mkdir -p... " >&6; }
3016 if test -z "$MKDIR_P"; then
3017 if test ${ac_cv_path_mkdir+y}
3018 then :
3019 printf %s "(cached) " >&6
3020 else $as_nop
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3023 do
3024 IFS=$as_save_IFS
3025 case $as_dir in #(((
3026 '') as_dir=./ ;;
3027 */) ;;
3028 *) as_dir=$as_dir/ ;;
3029 esac
3030 for ac_prog in mkdir gmkdir; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3033 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3034 'mkdir ('*'coreutils) '* | \
3035 'BusyBox '* | \
3036 'mkdir (fileutils) '4.1*)
3037 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3038 break 3;;
3039 esac
3040 done
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046
3047 test -d ./--version && rmdir ./--version
3048 if test ${ac_cv_path_mkdir+y}; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
3050 else
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
3055 MKDIR_P="$ac_install_sh -d"
3056 fi
3057 fi
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3059 printf "%s\n" "$MKDIR_P" >&6; }
3060
3061 for ac_prog in gawk mawk nawk awk
3062 do
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 printf %s "checking for $ac_word... " >&6; }
3067 if test ${ac_cv_prog_AWK+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else $as_nop
3071 if test -n "$AWK"; then
3072 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 case $as_dir in #(((
3079 '') as_dir=./ ;;
3080 */) ;;
3081 *) as_dir=$as_dir/ ;;
3082 esac
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_AWK="$ac_prog"
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 AWK=$ac_cv_prog_AWK
3096 if test -n "$AWK"; then
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3098 printf "%s\n" "$AWK" >&6; }
3099 else
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 printf "%s\n" "no" >&6; }
3102 fi
3103
3104
3105 test -n "$AWK" && break
3106 done
3107
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3109 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3110 set x ${MAKE-make}
3111 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3112 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3113 then :
3114 printf %s "(cached) " >&6
3115 else $as_nop
3116 cat >conftest.make <<\_ACEOF
3117 SHELL = /bin/sh
3118 all:
3119 @echo '@@@%%%=$(MAKE)=@@@%%%'
3120 _ACEOF
3121 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3122 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3123 *@@@%%%=?*=@@@%%%*)
3124 eval ac_cv_prog_make_${ac_make}_set=yes;;
3125 *)
3126 eval ac_cv_prog_make_${ac_make}_set=no;;
3127 esac
3128 rm -f conftest.make
3129 fi
3130 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 printf "%s\n" "yes" >&6; }
3133 SET_MAKE=
3134 else
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 printf "%s\n" "no" >&6; }
3137 SET_MAKE="MAKE=${MAKE-make}"
3138 fi
3139
3140 rm -rf .tst 2>/dev/null
3141 mkdir .tst 2>/dev/null
3142 if test -d .tst; then
3143 am__leading_dot=.
3144 else
3145 am__leading_dot=_
3146 fi
3147 rmdir .tst 2>/dev/null
3148
3149 # Check whether --enable-silent-rules was given.
3150 if test ${enable_silent_rules+y}
3151 then :
3152 enableval=$enable_silent_rules;
3153 fi
3154
3155 case $enable_silent_rules in # (((
3156 yes) AM_DEFAULT_VERBOSITY=0;;
3157 no) AM_DEFAULT_VERBOSITY=1;;
3158 *) AM_DEFAULT_VERBOSITY=1;;
3159 esac
3160 am_make=${MAKE-make}
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3162 printf %s "checking whether $am_make supports nested variables... " >&6; }
3163 if test ${am_cv_make_support_nested_variables+y}
3164 then :
3165 printf %s "(cached) " >&6
3166 else $as_nop
3167 if printf "%s\n" 'TRUE=$(BAR$(V))
3168 BAR0=false
3169 BAR1=true
3170 V=1
3171 am__doit:
3172 @$(TRUE)
3173 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3174 am_cv_make_support_nested_variables=yes
3175 else
3176 am_cv_make_support_nested_variables=no
3177 fi
3178 fi
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3180 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3181 if test $am_cv_make_support_nested_variables = yes; then
3182 AM_V='$(V)'
3183 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3184 else
3185 AM_V=$AM_DEFAULT_VERBOSITY
3186 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3187 fi
3188 AM_BACKSLASH='\'
3189
3190 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3191 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3192 # is not polluted with repeated "-I."
3193 am__isrc=' -I$(srcdir)'
3194 # test to see if srcdir already configured
3195 if test -f $srcdir/config.status; then
3196 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197 fi
3198 fi
3199
3200 # test whether we have cygpath
3201 if test -z "$CYGPATH_W"; then
3202 if (cygpath --version) >/dev/null 2>/dev/null; then
3203 CYGPATH_W='cygpath -w'
3204 else
3205 CYGPATH_W=echo
3206 fi
3207 fi
3208
3209
3210 # Define the identity of the package.
3211 PACKAGE='xf86-video-amdgpu'
3212 VERSION='23.0.0'
3213
3214
3215 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3216
3217
3218 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3219
3220 # Some tools Automake needs.
3221
3222 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3223
3224
3225 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3226
3227
3228 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3229
3230
3231 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3232
3233
3234 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3235
3236 # For better backward compatibility. To be removed once Automake 1.9.x
3237 # dies out for good. For more background, see:
3238 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3239 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3240 mkdir_p='$(MKDIR_P)'
3241
3242 # We need awk for the "check" target (and possibly the TAP driver). The
3243 # system "awk" is bad on some platforms.
3244 # Always define AMTAR for backward compatibility. Yes, it's still used
3245 # in the wild :-( We should find a proper way to deprecate it ...
3246 AMTAR='$${TAR-tar}'
3247
3248
3249 # We'll loop over all known methods to create a tar archive until one works.
3250 _am_tools='gnutar pax cpio none'
3251
3252 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3253
3254
3255
3256
3257
3258 # Variables for tags utilities; see am/tags.am
3259 if test -z "$CTAGS"; then
3260 CTAGS=ctags
3261 fi
3262
3263 if test -z "$ETAGS"; then
3264 ETAGS=etags
3265 fi
3266
3267 if test -z "$CSCOPE"; then
3268 CSCOPE=cscope
3269 fi
3270
3271
3272
3273 # POSIX will say in a future version that running "rm -f" with no argument
3274 # is OK; and we want to be able to make that assumption in our Makefile
3275 # recipes. So use an aggressive probe to check that the usage we want is
3276 # actually supported "in the wild" to an acceptable degree.
3277 # See automake bug#10828.
3278 # To make any issue more visible, cause the running configure to be aborted
3279 # by default if the 'rm' program in use doesn't match our expectations; the
3280 # user can still override this though.
3281 if rm -f && rm -fr && rm -rf; then : OK; else
3282 cat >&2 <<'END'
3283 Oops!
3284
3285 Your 'rm' program seems unable to run without file operands specified
3286 on the command line, even when the '-f' option is present. This is contrary
3287 to the behaviour of most rm programs out there, and not conforming with
3288 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3289
3290 Please tell bug-automake@gnu.org about your system, including the value
3291 of your $PATH and any error possibly output before this message. This
3292 can help us improve future automake versions.
3293
3294 END
3295 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3296 echo 'Configuration will proceed anyway, since you have set the' >&2
3297 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3298 echo >&2
3299 else
3300 cat >&2 <<'END'
3301 Aborting the configuration process, to ensure you take notice of the issue.
3302
3303 You can download and install GNU coreutils to get an 'rm' implementation
3304 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3305
3306 If you want to complete the configuration process using your problematic
3307 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3308 to "yes", and re-run configure.
3309
3310 END
3311 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3312 fi
3313 fi
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324 DEPDIR="${am__leading_dot}deps"
3325
3326 ac_config_commands="$ac_config_commands depfiles"
3327
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3329 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3330 cat > confinc.mk << 'END'
3331 am__doit:
3332 @echo this is the am__doit target >confinc.out
3333 .PHONY: am__doit
3334 END
3335 am__include="#"
3336 am__quote=
3337 # BSD make does it like this.
3338 echo '.include "confinc.mk" # ignored' > confmf.BSD
3339 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3340 echo 'include confinc.mk # ignored' > confmf.GNU
3341 _am_result=no
3342 for s in GNU BSD; do
3343 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3344 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348 case $?:`cat confinc.out 2>/dev/null` in #(
3349 '0:this is the am__doit target') :
3350 case $s in #(
3351 BSD) :
3352 am__include='.include' am__quote='"' ;; #(
3353 *) :
3354 am__include='include' am__quote='' ;;
3355 esac ;; #(
3356 *) :
3357 ;;
3358 esac
3359 if test "$am__include" != "#"; then
3360 _am_result="yes ($s style)"
3361 break
3362 fi
3363 done
3364 rm -f confinc.* confmf.*
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3366 printf "%s\n" "${_am_result}" >&6; }
3367
3368 # Check whether --enable-dependency-tracking was given.
3369 if test ${enable_dependency_tracking+y}
3370 then :
3371 enableval=$enable_dependency_tracking;
3372 fi
3373
3374 if test "x$enable_dependency_tracking" != xno; then
3375 am_depcomp="$ac_aux_dir/depcomp"
3376 AMDEPBACKSLASH='\'
3377 am__nodep='_no'
3378 fi
3379 if test "x$enable_dependency_tracking" != xno; then
3380 AMDEP_TRUE=
3381 AMDEP_FALSE='#'
3382 else
3383 AMDEP_TRUE='#'
3384 AMDEP_FALSE=
3385 fi
3386
3387
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 printf %s "checking for $ac_word... " >&6; }
3398 if test ${ac_cv_prog_CC+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else $as_nop
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 case $as_dir in #(((
3410 '') as_dir=./ ;;
3411 */) ;;
3412 *) as_dir=$as_dir/ ;;
3413 esac
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 CC=$ac_cv_prog_CC
3427 if test -n "$CC"; then
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429 printf "%s\n" "$CC" >&6; }
3430 else
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 printf "%s\n" "no" >&6; }
3433 fi
3434
3435
3436 fi
3437 if test -z "$ac_cv_prog_CC"; then
3438 ac_ct_CC=$CC
3439 # Extract the first word of "gcc", so it can be a program name with args.
3440 set dummy gcc; ac_word=$2
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 printf %s "checking for $ac_word... " >&6; }
3443 if test ${ac_cv_prog_ac_ct_CC+y}
3444 then :
3445 printf %s "(cached) " >&6
3446 else $as_nop
3447 if test -n "$ac_ct_CC"; then
3448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453 IFS=$as_save_IFS
3454 case $as_dir in #(((
3455 '') as_dir=./ ;;
3456 */) ;;
3457 *) as_dir=$as_dir/ ;;
3458 esac
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_ac_ct_CC="gcc"
3462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465 done
3466 done
3467 IFS=$as_save_IFS
3468
3469 fi
3470 fi
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3474 printf "%s\n" "$ac_ct_CC" >&6; }
3475 else
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 printf "%s\n" "no" >&6; }
3478 fi
3479
3480 if test "x$ac_ct_CC" = x; then
3481 CC=""
3482 else
3483 case $cross_compiling:$ac_tool_warned in
3484 yes:)
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3486 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3487 ac_tool_warned=yes ;;
3488 esac
3489 CC=$ac_ct_CC
3490 fi
3491 else
3492 CC="$ac_cv_prog_CC"
3493 fi
3494
3495 if test -z "$CC"; then
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}cc; ac_word=$2
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 printf %s "checking for $ac_word... " >&6; }
3501 if test ${ac_cv_prog_CC+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else $as_nop
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511 IFS=$as_save_IFS
3512 case $as_dir in #(((
3513 '') as_dir=./ ;;
3514 */) ;;
3515 *) as_dir=$as_dir/ ;;
3516 esac
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_CC="${ac_tool_prefix}cc"
3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 printf "%s\n" "$CC" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 fi
3541 if test -z "$CC"; then
3542 # Extract the first word of "cc", so it can be a program name with args.
3543 set dummy cc; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_CC+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else $as_nop
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 ac_prog_rejected=no
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 case $as_dir in #(((
3559 '') as_dir=./ ;;
3560 */) ;;
3561 *) as_dir=$as_dir/ ;;
3562 esac
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3566 ac_prog_rejected=yes
3567 continue
3568 fi
3569 ac_cv_prog_CC="cc"
3570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573 done
3574 done
3575 IFS=$as_save_IFS
3576
3577 if test $ac_prog_rejected = yes; then
3578 # We found a bogon in the path, so make sure we never use it.
3579 set dummy $ac_cv_prog_CC
3580 shift
3581 if test $# != 0; then
3582 # We chose a different compiler from the bogus one.
3583 # However, it has the same basename, so the bogon will be chosen
3584 # first if we set CC to just the basename; use the full file name.
3585 shift
3586 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3587 fi
3588 fi
3589 fi
3590 fi
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594 printf "%s\n" "$CC" >&6; }
3595 else
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 printf "%s\n" "no" >&6; }
3598 fi
3599
3600
3601 fi
3602 if test -z "$CC"; then
3603 if test -n "$ac_tool_prefix"; then
3604 for ac_prog in cl.exe
3605 do
3606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 printf %s "checking for $ac_word... " >&6; }
3610 if test ${ac_cv_prog_CC+y}
3611 then :
3612 printf %s "(cached) " >&6
3613 else $as_nop
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 case $as_dir in #(((
3622 '') as_dir=./ ;;
3623 */) ;;
3624 *) as_dir=$as_dir/ ;;
3625 esac
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 printf "%s\n" "$CC" >&6; }
3642 else
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 printf "%s\n" "no" >&6; }
3645 fi
3646
3647
3648 test -n "$CC" && break
3649 done
3650 fi
3651 if test -z "$CC"; then
3652 ac_ct_CC=$CC
3653 for ac_prog in cl.exe
3654 do
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656 set dummy $ac_prog; ac_word=$2
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 printf %s "checking for $ac_word... " >&6; }
3659 if test ${ac_cv_prog_ac_ct_CC+y}
3660 then :
3661 printf %s "(cached) " >&6
3662 else $as_nop
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 case $as_dir in #(((
3671 '') as_dir=./ ;;
3672 */) ;;
3673 *) as_dir=$as_dir/ ;;
3674 esac
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_CC="$ac_prog"
3678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688 if test -n "$ac_ct_CC"; then
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3690 printf "%s\n" "$ac_ct_CC" >&6; }
3691 else
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf "%s\n" "no" >&6; }
3694 fi
3695
3696
3697 test -n "$ac_ct_CC" && break
3698 done
3699
3700 if test "x$ac_ct_CC" = x; then
3701 CC=""
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707 ac_tool_warned=yes ;;
3708 esac
3709 CC=$ac_ct_CC
3710 fi
3711 fi
3712
3713 fi
3714 if test -z "$CC"; then
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}clang; ac_word=$2
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 printf %s "checking for $ac_word... " >&6; }
3720 if test ${ac_cv_prog_CC+y}
3721 then :
3722 printf %s "(cached) " >&6
3723 else $as_nop
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 case $as_dir in #(((
3732 '') as_dir=./ ;;
3733 */) ;;
3734 *) as_dir=$as_dir/ ;;
3735 esac
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="${ac_tool_prefix}clang"
3739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi
3747 fi
3748 CC=$ac_cv_prog_CC
3749 if test -n "$CC"; then
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3751 printf "%s\n" "$CC" >&6; }
3752 else
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 printf "%s\n" "no" >&6; }
3755 fi
3756
3757
3758 fi
3759 if test -z "$ac_cv_prog_CC"; then
3760 ac_ct_CC=$CC
3761 # Extract the first word of "clang", so it can be a program name with args.
3762 set dummy clang; ac_word=$2
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 printf %s "checking for $ac_word... " >&6; }
3765 if test ${ac_cv_prog_ac_ct_CC+y}
3766 then :
3767 printf %s "(cached) " >&6
3768 else $as_nop
3769 if test -n "$ac_ct_CC"; then
3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 case $as_dir in #(((
3777 '') as_dir=./ ;;
3778 */) ;;
3779 *) as_dir=$as_dir/ ;;
3780 esac
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_CC="clang"
3784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3794 if test -n "$ac_ct_CC"; then
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3796 printf "%s\n" "$ac_ct_CC" >&6; }
3797 else
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 printf "%s\n" "no" >&6; }
3800 fi
3801
3802 if test "x$ac_ct_CC" = x; then
3803 CC=""
3804 else
3805 case $cross_compiling:$ac_tool_warned in
3806 yes:)
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3808 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3809 ac_tool_warned=yes ;;
3810 esac
3811 CC=$ac_ct_CC
3812 fi
3813 else
3814 CC="$ac_cv_prog_CC"
3815 fi
3816
3817 fi
3818
3819
3820 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "no acceptable C compiler found in \$PATH
3823 See \`config.log' for more details" "$LINENO" 5; }
3824
3825 # Provide some information about the compiler.
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3827 set X $ac_compile
3828 ac_compiler=$2
3829 for ac_option in --version -v -V -qversion -version; do
3830 { { ac_try="$ac_compiler $ac_option >&5"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 printf "%s\n" "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3838 ac_status=$?
3839 if test -s conftest.err; then
3840 sed '10a\
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3844 fi
3845 rm -f conftest.er1 conftest.err
3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3848 done
3849
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852
3853 int
3854 main (void)
3855 {
3856
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 ac_clean_files_save=$ac_clean_files
3862 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3863 # Try to create an executable without -o first, disregard a.out.
3864 # It will help us diagnose broken compilers, and finding out an intuition
3865 # of exeext.
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3867 printf %s "checking whether the C compiler works... " >&6; }
3868 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3869
3870 # The possible output files:
3871 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3872
3873 ac_rmfiles=
3874 for ac_file in $ac_files
3875 do
3876 case $ac_file in
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3879 esac
3880 done
3881 rm -f $ac_rmfiles
3882
3883 if { { ac_try="$ac_link_default"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 printf "%s\n" "$ac_try_echo"; } >&5
3890 (eval "$ac_link_default") 2>&5
3891 ac_status=$?
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 then :
3895 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3896 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3897 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3898 # so that the user can short-circuit this test for compilers unknown to
3899 # Autoconf.
3900 for ac_file in $ac_files ''
3901 do
3902 test -f "$ac_file" || continue
3903 case $ac_file in
3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3905 ;;
3906 [ab].out )
3907 # We found the default executable, but exeext='' is most
3908 # certainly right.
3909 break;;
3910 *.* )
3911 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3912 then :; else
3913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 fi
3915 # We set ac_cv_exeext here because the later test for it is not
3916 # safe: cross compilers may not add the suffix if given an `-o'
3917 # argument, so we may need to know it at that point already.
3918 # Even if this section looks crufty: it has the advantage of
3919 # actually working.
3920 break;;
3921 * )
3922 break;;
3923 esac
3924 done
3925 test "$ac_cv_exeext" = no && ac_cv_exeext=
3926
3927 else $as_nop
3928 ac_file=''
3929 fi
3930 if test -z "$ac_file"
3931 then :
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 printf "%s\n" "no" >&6; }
3934 printf "%s\n" "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3936
3937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error 77 "C compiler cannot create executables
3940 See \`config.log' for more details" "$LINENO" 5; }
3941 else $as_nop
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 printf "%s\n" "yes" >&6; }
3944 fi
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3946 printf %s "checking for C compiler default output file name... " >&6; }
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3948 printf "%s\n" "$ac_file" >&6; }
3949 ac_exeext=$ac_cv_exeext
3950
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3952 ac_clean_files=$ac_clean_files_save
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954 printf %s "checking for suffix of executables... " >&6; }
3955 if { { ac_try="$ac_link"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 printf "%s\n" "$ac_try_echo"; } >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }
3966 then :
3967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3969 # work properly (i.e., refer to `conftest.exe'), while it won't with
3970 # `rm'.
3971 for ac_file in conftest.exe conftest conftest.*; do
3972 test -f "$ac_file" || continue
3973 case $ac_file in
3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3976 break;;
3977 * ) break;;
3978 esac
3979 done
3980 else $as_nop
3981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3984 See \`config.log' for more details" "$LINENO" 5; }
3985 fi
3986 rm -f conftest conftest$ac_cv_exeext
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3988 printf "%s\n" "$ac_cv_exeext" >&6; }
3989
3990 rm -f conftest.$ac_ext
3991 EXEEXT=$ac_cv_exeext
3992 ac_exeext=$EXEEXT
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <stdio.h>
3996 int
3997 main (void)
3998 {
3999 FILE *f = fopen ("conftest.out", "w");
4000 return ferror (f) || fclose (f) != 0;
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 ac_clean_files="$ac_clean_files conftest.out"
4007 # Check that the compiler produces executables we can run. If not, either
4008 # the compiler is broken, or we cross compile.
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4010 printf %s "checking whether we are cross compiling... " >&6; }
4011 if test "$cross_compiling" != yes; then
4012 { { ac_try="$ac_link"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 printf "%s\n" "$ac_try_echo"; } >&5
4019 (eval "$ac_link") 2>&5
4020 ac_status=$?
4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
4023 if { ac_try='./conftest$ac_cv_exeext'
4024 { { case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 printf "%s\n" "$ac_try_echo"; } >&5
4030 (eval "$ac_try") 2>&5
4031 ac_status=$?
4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }; }; then
4034 cross_compiling=no
4035 else
4036 if test "$cross_compiling" = maybe; then
4037 cross_compiling=yes
4038 else
4039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error 77 "cannot run C compiled programs.
4042 If you meant to cross compile, use \`--host'.
4043 See \`config.log' for more details" "$LINENO" 5; }
4044 fi
4045 fi
4046 fi
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4048 printf "%s\n" "$cross_compiling" >&6; }
4049
4050 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4051 ac_clean_files=$ac_clean_files_save
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4053 printf %s "checking for suffix of object files... " >&6; }
4054 if test ${ac_cv_objext+y}
4055 then :
4056 printf %s "(cached) " >&6
4057 else $as_nop
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060
4061 int
4062 main (void)
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.o conftest.obj
4070 if { { ac_try="$ac_compile"
4071 case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074 esac
4075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4076 printf "%s\n" "$ac_try_echo"; } >&5
4077 (eval "$ac_compile") 2>&5
4078 ac_status=$?
4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080 test $ac_status = 0; }
4081 then :
4082 for ac_file in conftest.o conftest.obj conftest.*; do
4083 test -f "$ac_file" || continue;
4084 case $ac_file in
4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4087 break;;
4088 esac
4089 done
4090 else $as_nop
4091 printf "%s\n" "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4095 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4096 as_fn_error $? "cannot compute suffix of object files: cannot compile
4097 See \`config.log' for more details" "$LINENO" 5; }
4098 fi
4099 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4100 fi
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4102 printf "%s\n" "$ac_cv_objext" >&6; }
4103 OBJEXT=$ac_cv_objext
4104 ac_objext=$OBJEXT
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4106 printf %s "checking whether the compiler supports GNU C... " >&6; }
4107 if test ${ac_cv_c_compiler_gnu+y}
4108 then :
4109 printf %s "(cached) " >&6
4110 else $as_nop
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main (void)
4116 {
4117 #ifndef __GNUC__
4118 choke me
4119 #endif
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"
4126 then :
4127 ac_compiler_gnu=yes
4128 else $as_nop
4129 ac_compiler_gnu=no
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4133
4134 fi
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139 if test $ac_compiler_gnu = yes; then
4140 GCC=yes
4141 else
4142 GCC=
4143 fi
4144 ac_test_CFLAGS=${CFLAGS+y}
4145 ac_save_CFLAGS=$CFLAGS
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4147 printf %s "checking whether $CC accepts -g... " >&6; }
4148 if test ${ac_cv_prog_cc_g+y}
4149 then :
4150 printf %s "(cached) " >&6
4151 else $as_nop
4152 ac_save_c_werror_flag=$ac_c_werror_flag
4153 ac_c_werror_flag=yes
4154 ac_cv_prog_cc_g=no
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158
4159 int
4160 main (void)
4161 {
4162
4163 ;
4164 return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"
4168 then :
4169 ac_cv_prog_cc_g=yes
4170 else $as_nop
4171 CFLAGS=""
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174
4175 int
4176 main (void)
4177 {
4178
4179 ;
4180 return 0;
4181 }
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"
4184 then :
4185
4186 else $as_nop
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="-g"
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191
4192 int
4193 main (void)
4194 {
4195
4196 ;
4197 return 0;
4198 }
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"
4201 then :
4202 ac_cv_prog_cc_g=yes
4203 fi
4204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4210 fi
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4212 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4213 if test $ac_test_CFLAGS; then
4214 CFLAGS=$ac_save_CFLAGS
4215 elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4217 CFLAGS="-g -O2"
4218 else
4219 CFLAGS="-g"
4220 fi
4221 else
4222 if test "$GCC" = yes; then
4223 CFLAGS="-O2"
4224 else
4225 CFLAGS=
4226 fi
4227 fi
4228 ac_prog_cc_stdc=no
4229 if test x$ac_prog_cc_stdc = xno
4230 then :
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4232 printf %s "checking for $CC option to enable C11 features... " >&6; }
4233 if test ${ac_cv_prog_cc_c11+y}
4234 then :
4235 printf %s "(cached) " >&6
4236 else $as_nop
4237 ac_cv_prog_cc_c11=no
4238 ac_save_CC=$CC
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 $ac_c_conftest_c11_program
4242 _ACEOF
4243 for ac_arg in '' -std=gnu11
4244 do
4245 CC="$ac_save_CC $ac_arg"
4246 if ac_fn_c_try_compile "$LINENO"
4247 then :
4248 ac_cv_prog_cc_c11=$ac_arg
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam
4251 test "x$ac_cv_prog_cc_c11" != "xno" && break
4252 done
4253 rm -f conftest.$ac_ext
4254 CC=$ac_save_CC
4255 fi
4256
4257 if test "x$ac_cv_prog_cc_c11" = xno
4258 then :
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 printf "%s\n" "unsupported" >&6; }
4261 else $as_nop
4262 if test "x$ac_cv_prog_cc_c11" = x
4263 then :
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265 printf "%s\n" "none needed" >&6; }
4266 else $as_nop
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4268 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4269 CC="$CC $ac_cv_prog_cc_c11"
4270 fi
4271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4272 ac_prog_cc_stdc=c11
4273 fi
4274 fi
4275 if test x$ac_prog_cc_stdc = xno
4276 then :
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4278 printf %s "checking for $CC option to enable C99 features... " >&6; }
4279 if test ${ac_cv_prog_cc_c99+y}
4280 then :
4281 printf %s "(cached) " >&6
4282 else $as_nop
4283 ac_cv_prog_cc_c99=no
4284 ac_save_CC=$CC
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 $ac_c_conftest_c99_program
4288 _ACEOF
4289 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4290 do
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"
4293 then :
4294 ac_cv_prog_cc_c99=$ac_arg
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.beam
4297 test "x$ac_cv_prog_cc_c99" != "xno" && break
4298 done
4299 rm -f conftest.$ac_ext
4300 CC=$ac_save_CC
4301 fi
4302
4303 if test "x$ac_cv_prog_cc_c99" = xno
4304 then :
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 printf "%s\n" "unsupported" >&6; }
4307 else $as_nop
4308 if test "x$ac_cv_prog_cc_c99" = x
4309 then :
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 printf "%s\n" "none needed" >&6; }
4312 else $as_nop
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4314 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4315 CC="$CC $ac_cv_prog_cc_c99"
4316 fi
4317 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4318 ac_prog_cc_stdc=c99
4319 fi
4320 fi
4321 if test x$ac_prog_cc_stdc = xno
4322 then :
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4324 printf %s "checking for $CC option to enable C89 features... " >&6; }
4325 if test ${ac_cv_prog_cc_c89+y}
4326 then :
4327 printf %s "(cached) " >&6
4328 else $as_nop
4329 ac_cv_prog_cc_c89=no
4330 ac_save_CC=$CC
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 $ac_c_conftest_c89_program
4334 _ACEOF
4335 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4336 do
4337 CC="$ac_save_CC $ac_arg"
4338 if ac_fn_c_try_compile "$LINENO"
4339 then :
4340 ac_cv_prog_cc_c89=$ac_arg
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.beam
4343 test "x$ac_cv_prog_cc_c89" != "xno" && break
4344 done
4345 rm -f conftest.$ac_ext
4346 CC=$ac_save_CC
4347 fi
4348
4349 if test "x$ac_cv_prog_cc_c89" = xno
4350 then :
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4352 printf "%s\n" "unsupported" >&6; }
4353 else $as_nop
4354 if test "x$ac_cv_prog_cc_c89" = x
4355 then :
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357 printf "%s\n" "none needed" >&6; }
4358 else $as_nop
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4361 CC="$CC $ac_cv_prog_cc_c89"
4362 fi
4363 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4364 ac_prog_cc_stdc=c89
4365 fi
4366 fi
4367
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4381 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4382 if test ${am_cv_prog_cc_c_o+y}
4383 then :
4384 printf %s "(cached) " >&6
4385 else $as_nop
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388
4389 int
4390 main (void)
4391 {
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 # Make sure it works both with $CC and with simple cc.
4398 # Following AC_PROG_CC_C_O, we do the test twice because some
4399 # compilers refuse to overwrite an existing .o file with -o,
4400 # though they will create one.
4401 am_cv_prog_cc_c_o=yes
4402 for am_i in 1 2; do
4403 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4404 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } \
4408 && test -f conftest2.$ac_objext; then
4409 : OK
4410 else
4411 am_cv_prog_cc_c_o=no
4412 break
4413 fi
4414 done
4415 rm -f core conftest*
4416 unset am_i
4417 fi
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4419 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4420 if test "$am_cv_prog_cc_c_o" != yes; then
4421 # Losing compiler, so override with the script.
4422 # FIXME: It is wrong to rewrite CC.
4423 # But if we don't then we get into trouble of one sort or another.
4424 # A longer-term fix would be to have automake use am__CC in this case,
4425 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4426 CC="$am_aux_dir/compile $CC"
4427 fi
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433
4434
4435 depcc="$CC" am_compiler_list=
4436
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4438 printf %s "checking dependency style of $depcc... " >&6; }
4439 if test ${am_cv_CC_dependencies_compiler_type+y}
4440 then :
4441 printf %s "(cached) " >&6
4442 else $as_nop
4443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4444 # We make a subdir and do the tests there. Otherwise we can end up
4445 # making bogus files that we don't know about and never remove. For
4446 # instance it was reported that on HP-UX the gcc test will end up
4447 # making a dummy file named 'D' -- because '-MD' means "put the output
4448 # in D".
4449 rm -rf conftest.dir
4450 mkdir conftest.dir
4451 # Copy depcomp to subdir because otherwise we won't find it if we're
4452 # using a relative directory.
4453 cp "$am_depcomp" conftest.dir
4454 cd conftest.dir
4455 # We will build objects and dependencies in a subdirectory because
4456 # it helps to detect inapplicable dependency modes. For instance
4457 # both Tru64's cc and ICC support -MD to output dependencies as a
4458 # side effect of compilation, but ICC will put the dependencies in
4459 # the current directory while Tru64 will put them in the object
4460 # directory.
4461 mkdir sub
4462
4463 am_cv_CC_dependencies_compiler_type=none
4464 if test "$am_compiler_list" = ""; then
4465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4466 fi
4467 am__universal=false
4468 case " $depcc " in #(
4469 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4470 esac
4471
4472 for depmode in $am_compiler_list; do
4473 # Setup a source with many dependencies, because some compilers
4474 # like to wrap large dependency lists on column 80 (with \), and
4475 # we should not choose a depcomp mode which is confused by this.
4476 #
4477 # We need to recreate these files for each test, as the compiler may
4478 # overwrite some of them when testing with obscure command lines.
4479 # This happens at least with the AIX C compiler.
4480 : > sub/conftest.c
4481 for i in 1 2 3 4 5 6; do
4482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4483 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4484 # Solaris 10 /bin/sh.
4485 echo '/* dummy */' > sub/conftst$i.h
4486 done
4487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4488
4489 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4490 # mode. It turns out that the SunPro C++ compiler does not properly
4491 # handle '-M -o', and we need to detect this. Also, some Intel
4492 # versions had trouble with output in subdirs.
4493 am__obj=sub/conftest.${OBJEXT-o}
4494 am__minus_obj="-o $am__obj"
4495 case $depmode in
4496 gcc)
4497 # This depmode causes a compiler race in universal mode.
4498 test "$am__universal" = false || continue
4499 ;;
4500 nosideeffect)
4501 # After this tag, mechanisms are not by side-effect, so they'll
4502 # only be used when explicitly requested.
4503 if test "x$enable_dependency_tracking" = xyes; then
4504 continue
4505 else
4506 break
4507 fi
4508 ;;
4509 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4510 # This compiler won't grok '-c -o', but also, the minuso test has
4511 # not run yet. These depmodes are late enough in the game, and
4512 # so weak that their functioning should not be impacted.
4513 am__obj=conftest.${OBJEXT-o}
4514 am__minus_obj=
4515 ;;
4516 none) break ;;
4517 esac
4518 if depmode=$depmode \
4519 source=sub/conftest.c object=$am__obj \
4520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4521 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4522 >/dev/null 2>conftest.err &&
4523 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4525 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4527 # icc doesn't choke on unknown options, it will just issue warnings
4528 # or remarks (even with -Werror). So we grep stderr for any message
4529 # that says an option was ignored or not supported.
4530 # When given -MP, icc 7.0 and 7.1 complain thusly:
4531 # icc: Command line warning: ignoring option '-M'; no argument required
4532 # The diagnosis changed in icc 8.0:
4533 # icc: Command line remark: option '-MP' not supported
4534 if (grep 'ignoring option' conftest.err ||
4535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4536 am_cv_CC_dependencies_compiler_type=$depmode
4537 break
4538 fi
4539 fi
4540 done
4541
4542 cd ..
4543 rm -rf conftest.dir
4544 else
4545 am_cv_CC_dependencies_compiler_type=none
4546 fi
4547
4548 fi
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4550 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4551 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4552
4553 if
4554 test "x$enable_dependency_tracking" != xno \
4555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4556 am__fastdepCC_TRUE=
4557 am__fastdepCC_FALSE='#'
4558 else
4559 am__fastdepCC_TRUE='#'
4560 am__fastdepCC_FALSE=
4561 fi
4562
4563
4564
4565 # Check whether --enable-largefile was given.
4566 if test ${enable_largefile+y}
4567 then :
4568 enableval=$enable_largefile;
4569 fi
4570
4571 if test "$enable_largefile" != no; then
4572
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4574 printf %s "checking for special C compiler options needed for large files... " >&6; }
4575 if test ${ac_cv_sys_largefile_CC+y}
4576 then :
4577 printf %s "(cached) " >&6
4578 else $as_nop
4579 ac_cv_sys_largefile_CC=no
4580 if test "$GCC" != yes; then
4581 ac_save_CC=$CC
4582 while :; do
4583 # IRIX 6.2 and later do not support large files by default,
4584 # so use the C compiler's -n32 option if that helps.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <sys/types.h>
4588 /* Check that off_t can represent 2**63 - 1 correctly.
4589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4590 since some C++ compilers masquerading as C compilers
4591 incorrectly reject 9223372036854775807. */
4592 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4594 && LARGE_OFF_T % 2147483647 == 1)
4595 ? 1 : -1];
4596 int
4597 main (void)
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"
4605 then :
4606 break
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.beam
4609 CC="$CC -n32"
4610 if ac_fn_c_try_compile "$LINENO"
4611 then :
4612 ac_cv_sys_largefile_CC=' -n32'; break
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.beam
4615 break
4616 done
4617 CC=$ac_save_CC
4618 rm -f conftest.$ac_ext
4619 fi
4620 fi
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4622 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4623 if test "$ac_cv_sys_largefile_CC" != no; then
4624 CC=$CC$ac_cv_sys_largefile_CC
4625 fi
4626
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4628 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4629 if test ${ac_cv_sys_file_offset_bits+y}
4630 then :
4631 printf %s "(cached) " >&6
4632 else $as_nop
4633 while :; do
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <sys/types.h>
4637 /* Check that off_t can represent 2**63 - 1 correctly.
4638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4639 since some C++ compilers masquerading as C compilers
4640 incorrectly reject 9223372036854775807. */
4641 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4643 && LARGE_OFF_T % 2147483647 == 1)
4644 ? 1 : -1];
4645 int
4646 main (void)
4647 {
4648
4649 ;
4650 return 0;
4651 }
4652 _ACEOF
4653 if ac_fn_c_try_compile "$LINENO"
4654 then :
4655 ac_cv_sys_file_offset_bits=no; break
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #define _FILE_OFFSET_BITS 64
4661 #include <sys/types.h>
4662 /* Check that off_t can represent 2**63 - 1 correctly.
4663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4664 since some C++ compilers masquerading as C compilers
4665 incorrectly reject 9223372036854775807. */
4666 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4668 && LARGE_OFF_T % 2147483647 == 1)
4669 ? 1 : -1];
4670 int
4671 main (void)
4672 {
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"
4679 then :
4680 ac_cv_sys_file_offset_bits=64; break
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 ac_cv_sys_file_offset_bits=unknown
4684 break
4685 done
4686 fi
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4688 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4689 case $ac_cv_sys_file_offset_bits in #(
4690 no | unknown) ;;
4691 *)
4692 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4693 ;;
4694 esac
4695 rm -rf conftest*
4696 if test $ac_cv_sys_file_offset_bits = unknown; then
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4698 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4699 if test ${ac_cv_sys_large_files+y}
4700 then :
4701 printf %s "(cached) " >&6
4702 else $as_nop
4703 while :; do
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706 #include <sys/types.h>
4707 /* Check that off_t can represent 2**63 - 1 correctly.
4708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4709 since some C++ compilers masquerading as C compilers
4710 incorrectly reject 9223372036854775807. */
4711 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4713 && LARGE_OFF_T % 2147483647 == 1)
4714 ? 1 : -1];
4715 int
4716 main (void)
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"
4724 then :
4725 ac_cv_sys_large_files=no; break
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 #define _LARGE_FILES 1
4731 #include <sys/types.h>
4732 /* Check that off_t can represent 2**63 - 1 correctly.
4733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4734 since some C++ compilers masquerading as C compilers
4735 incorrectly reject 9223372036854775807. */
4736 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4738 && LARGE_OFF_T % 2147483647 == 1)
4739 ? 1 : -1];
4740 int
4741 main (void)
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"
4749 then :
4750 ac_cv_sys_large_files=1; break
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4753 ac_cv_sys_large_files=unknown
4754 break
4755 done
4756 fi
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4758 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4759 case $ac_cv_sys_large_files in #(
4760 no | unknown) ;;
4761 *)
4762 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4763 ;;
4764 esac
4765 rm -rf conftest*
4766 fi
4767 fi
4768
4769
4770 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4784 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4785 if test ${ac_cv_c_undeclared_builtin_options+y}
4786 then :
4787 printf %s "(cached) " >&6
4788 else $as_nop
4789 ac_save_CFLAGS=$CFLAGS
4790 ac_cv_c_undeclared_builtin_options='cannot detect'
4791 for ac_arg in '' -fno-builtin; do
4792 CFLAGS="$ac_save_CFLAGS $ac_arg"
4793 # This test program should *not* compile successfully.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796
4797 int
4798 main (void)
4799 {
4800 (void) strchr;
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"
4806 then :
4807
4808 else $as_nop
4809 # This test program should compile successfully.
4810 # No library function is consistently available on
4811 # freestanding implementations, so test against a dummy
4812 # declaration. Include always-available headers on the
4813 # off chance that they somehow elicit warnings.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 #include <float.h>
4817 #include <limits.h>
4818 #include <stdarg.h>
4819 #include <stddef.h>
4820 extern void ac_decl (int, char *);
4821
4822 int
4823 main (void)
4824 {
4825 (void) ac_decl (0, (char *) 0);
4826 (void) ac_decl;
4827
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"
4833 then :
4834 if test x"$ac_arg" = x
4835 then :
4836 ac_cv_c_undeclared_builtin_options='none needed'
4837 else $as_nop
4838 ac_cv_c_undeclared_builtin_options=$ac_arg
4839 fi
4840 break
4841 fi
4842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4845 done
4846 CFLAGS=$ac_save_CFLAGS
4847
4848 fi
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4850 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4851 case $ac_cv_c_undeclared_builtin_options in #(
4852 'cannot detect') :
4853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error $? "cannot make $CC report undeclared builtins
4856 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4857 'none needed') :
4858 ac_c_undeclared_builtin_options='' ;; #(
4859 *) :
4860 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4861 esac
4862
4863 ac_header= ac_cache=
4864 for ac_item in $ac_header_c_list
4865 do
4866 if test $ac_cache; then
4867 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4868 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4869 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4870 fi
4871 ac_header= ac_cache=
4872 elif test $ac_header; then
4873 ac_cache=$ac_item
4874 else
4875 ac_header=$ac_item
4876 fi
4877 done
4878
4879
4880
4881
4882
4883
4884
4885
4886 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4887 then :
4888
4889 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4890
4891 fi
4892
4893
4894
4895
4896 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4897 if test "x$ac_cv_have_decl___clang__" = xyes
4898 then :
4899 CLANGCC="yes"
4900 else $as_nop
4901 CLANGCC="no"
4902 fi
4903 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4904 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4905 then :
4906 INTELCC="yes"
4907 else $as_nop
4908 INTELCC="no"
4909 fi
4910 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4911 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4912 then :
4913 SUNCC="yes"
4914 else $as_nop
4915 SUNCC="no"
4916 fi
4917
4918
4919
4920
4921
4922
4923
4924
4925 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4926 if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 printf %s "checking for $ac_word... " >&6; }
4931 if test ${ac_cv_path_PKG_CONFIG+y}
4932 then :
4933 printf %s "(cached) " >&6
4934 else $as_nop
4935 case $PKG_CONFIG in
4936 [\\/]* | ?:[\\/]*)
4937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4938 ;;
4939 *)
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943 IFS=$as_save_IFS
4944 case $as_dir in #(((
4945 '') as_dir=./ ;;
4946 */) ;;
4947 *) as_dir=$as_dir/ ;;
4948 esac
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4951 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959 ;;
4960 esac
4961 fi
4962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4963 if test -n "$PKG_CONFIG"; then
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4965 printf "%s\n" "$PKG_CONFIG" >&6; }
4966 else
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 printf "%s\n" "no" >&6; }
4969 fi
4970
4971
4972 fi
4973 if test -z "$ac_cv_path_PKG_CONFIG"; then
4974 ac_pt_PKG_CONFIG=$PKG_CONFIG
4975 # Extract the first word of "pkg-config", so it can be a program name with args.
4976 set dummy pkg-config; ac_word=$2
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 printf %s "checking for $ac_word... " >&6; }
4979 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4980 then :
4981 printf %s "(cached) " >&6
4982 else $as_nop
4983 case $ac_pt_PKG_CONFIG in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4986 ;;
4987 *)
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 case $as_dir in #(((
4993 '') as_dir=./ ;;
4994 */) ;;
4995 *) as_dir=$as_dir/ ;;
4996 esac
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4999 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 ;;
5008 esac
5009 fi
5010 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5011 if test -n "$ac_pt_PKG_CONFIG"; then
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5013 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5014 else
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 printf "%s\n" "no" >&6; }
5017 fi
5018
5019 if test "x$ac_pt_PKG_CONFIG" = x; then
5020 PKG_CONFIG=""
5021 else
5022 case $cross_compiling:$ac_tool_warned in
5023 yes:)
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026 ac_tool_warned=yes ;;
5027 esac
5028 PKG_CONFIG=$ac_pt_PKG_CONFIG
5029 fi
5030 else
5031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5032 fi
5033
5034 fi
5035 if test -n "$PKG_CONFIG"; then
5036 _pkg_min_version=0.9.0
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5038 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5039 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041 printf "%s\n" "yes" >&6; }
5042 else
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 printf "%s\n" "no" >&6; }
5045 PKG_CONFIG=""
5046 fi
5047 fi
5048
5049
5050 # Make sure we can run config.sub.
5051 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5052 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5053
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5055 printf %s "checking build system type... " >&6; }
5056 if test ${ac_cv_build+y}
5057 then :
5058 printf %s "(cached) " >&6
5059 else $as_nop
5060 ac_build_alias=$build_alias
5061 test "x$ac_build_alias" = x &&
5062 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5063 test "x$ac_build_alias" = x &&
5064 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5065 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5066 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5067
5068 fi
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5070 printf "%s\n" "$ac_cv_build" >&6; }
5071 case $ac_cv_build in
5072 *-*-*) ;;
5073 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5074 esac
5075 build=$ac_cv_build
5076 ac_save_IFS=$IFS; IFS='-'
5077 set x $ac_cv_build
5078 shift
5079 build_cpu=$1
5080 build_vendor=$2
5081 shift; shift
5082 # Remember, the first character of IFS is used to create $*,
5083 # except with old shells:
5084 build_os=$*
5085 IFS=$ac_save_IFS
5086 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5087
5088
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5090 printf %s "checking host system type... " >&6; }
5091 if test ${ac_cv_host+y}
5092 then :
5093 printf %s "(cached) " >&6
5094 else $as_nop
5095 if test "x$host_alias" = x; then
5096 ac_cv_host=$ac_cv_build
5097 else
5098 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5099 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5100 fi
5101
5102 fi
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5104 printf "%s\n" "$ac_cv_host" >&6; }
5105 case $ac_cv_host in
5106 *-*-*) ;;
5107 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5108 esac
5109 host=$ac_cv_host
5110 ac_save_IFS=$IFS; IFS='-'
5111 set x $ac_cv_host
5112 shift
5113 host_cpu=$1
5114 host_vendor=$2
5115 shift; shift
5116 # Remember, the first character of IFS is used to create $*,
5117 # except with old shells:
5118 host_os=$*
5119 IFS=$ac_save_IFS
5120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5121
5122
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5124 printf %s "checking for a sed that does not truncate output... " >&6; }
5125 if test ${ac_cv_path_SED+y}
5126 then :
5127 printf %s "(cached) " >&6
5128 else $as_nop
5129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5130 for ac_i in 1 2 3 4 5 6 7; do
5131 ac_script="$ac_script$as_nl$ac_script"
5132 done
5133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5134 { ac_script=; unset ac_script;}
5135 if test -z "$SED"; then
5136 ac_path_SED_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 case $as_dir in #(((
5143 '') as_dir=./ ;;
5144 */) ;;
5145 *) as_dir=$as_dir/ ;;
5146 esac
5147 for ac_prog in sed gsed
5148 do
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5151 as_fn_executable_p "$ac_path_SED" || continue
5152 # Check for GNU ac_path_SED and select it if it is found.
5153 # Check for GNU $ac_path_SED
5154 case `"$ac_path_SED" --version 2>&1` in
5155 *GNU*)
5156 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5157 *)
5158 ac_count=0
5159 printf %s 0123456789 >"conftest.in"
5160 while :
5161 do
5162 cat "conftest.in" "conftest.in" >"conftest.tmp"
5163 mv "conftest.tmp" "conftest.in"
5164 cp "conftest.in" "conftest.nl"
5165 printf "%s\n" '' >> "conftest.nl"
5166 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168 as_fn_arith $ac_count + 1 && ac_count=$as_val
5169 if test $ac_count -gt ${ac_path_SED_max-0}; then
5170 # Best one so far, save it but keep looking for a better one
5171 ac_cv_path_SED="$ac_path_SED"
5172 ac_path_SED_max=$ac_count
5173 fi
5174 # 10*(2^10) chars as input seems more than enough
5175 test $ac_count -gt 10 && break
5176 done
5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5178 esac
5179
5180 $ac_path_SED_found && break 3
5181 done
5182 done
5183 done
5184 IFS=$as_save_IFS
5185 if test -z "$ac_cv_path_SED"; then
5186 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5187 fi
5188 else
5189 ac_cv_path_SED=$SED
5190 fi
5191
5192 fi
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5194 printf "%s\n" "$ac_cv_path_SED" >&6; }
5195 SED="$ac_cv_path_SED"
5196 rm -f conftest.sed
5197
5198
5199
5200
5201
5202
5203 # Check whether --enable-selective-werror was given.
5204 if test ${enable_selective_werror+y}
5205 then :
5206 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5207 else $as_nop
5208 SELECTIVE_WERROR=yes
5209 fi
5210
5211
5212
5213
5214
5215 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5216 if test "x$SUNCC" = "xyes"; then
5217 BASE_CFLAGS="-v"
5218 else
5219 BASE_CFLAGS=""
5220 fi
5221
5222 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236 xorg_testset_save_CFLAGS="$CFLAGS"
5237
5238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5242 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5243 then :
5244 printf %s "(cached) " >&6
5245 else $as_nop
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 int i;
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"
5251 then :
5252 xorg_cv_cc_flag_unknown_warning_option=yes
5253 else $as_nop
5254 xorg_cv_cc_flag_unknown_warning_option=no
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5257 fi
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5261 CFLAGS="$xorg_testset_save_CFLAGS"
5262 fi
5263
5264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267 fi
5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5272 then :
5273 printf %s "(cached) " >&6
5274 else $as_nop
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 int i;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"
5280 then :
5281 xorg_cv_cc_flag_unused_command_line_argument=yes
5282 else $as_nop
5283 xorg_cv_cc_flag_unused_command_line_argument=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5286 fi
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5288 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291 fi
5292
5293 found="no"
5294
5295 if test $found = "no" ; then
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 fi
5299
5300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302 fi
5303
5304 CFLAGS="$CFLAGS -Wall"
5305
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5307 printf %s "checking if $CC supports -Wall... " >&6; }
5308 cacheid=xorg_cv_cc_flag__Wall
5309 if eval test \${$cacheid+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else $as_nop
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 int i;
5316 int
5317 main (void)
5318 {
5319
5320 ;
5321 return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_link "$LINENO"
5325 then :
5326 eval $cacheid=yes
5327 else $as_nop
5328 eval $cacheid=no
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5331 conftest$ac_exeext conftest.$ac_ext
5332 fi
5333
5334
5335 CFLAGS="$xorg_testset_save_CFLAGS"
5336
5337 eval supported=\$$cacheid
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5339 printf "%s\n" "$supported" >&6; }
5340 if test "$supported" = "yes" ; then
5341 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5342 found="yes"
5343 fi
5344 fi
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360 xorg_testset_save_CFLAGS="$CFLAGS"
5361
5362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5365 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5366 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5367 then :
5368 printf %s "(cached) " >&6
5369 else $as_nop
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 int i;
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"
5375 then :
5376 xorg_cv_cc_flag_unknown_warning_option=yes
5377 else $as_nop
5378 xorg_cv_cc_flag_unknown_warning_option=no
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5381 fi
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5383 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5385 CFLAGS="$xorg_testset_save_CFLAGS"
5386 fi
5387
5388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391 fi
5392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5394 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5395 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5396 then :
5397 printf %s "(cached) " >&6
5398 else $as_nop
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 int i;
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"
5404 then :
5405 xorg_cv_cc_flag_unused_command_line_argument=yes
5406 else $as_nop
5407 xorg_cv_cc_flag_unused_command_line_argument=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5410 fi
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5412 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5414 CFLAGS="$xorg_testset_save_CFLAGS"
5415 fi
5416
5417 found="no"
5418
5419 if test $found = "no" ; then
5420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 fi
5423
5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426 fi
5427
5428 CFLAGS="$CFLAGS -Wpointer-arith"
5429
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5431 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5432 cacheid=xorg_cv_cc_flag__Wpointer_arith
5433 if eval test \${$cacheid+y}
5434 then :
5435 printf %s "(cached) " >&6
5436 else $as_nop
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 int i;
5440 int
5441 main (void)
5442 {
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"
5449 then :
5450 eval $cacheid=yes
5451 else $as_nop
5452 eval $cacheid=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5455 conftest$ac_exeext conftest.$ac_ext
5456 fi
5457
5458
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461 eval supported=\$$cacheid
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463 printf "%s\n" "$supported" >&6; }
5464 if test "$supported" = "yes" ; then
5465 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5466 found="yes"
5467 fi
5468 fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 xorg_testset_save_CFLAGS="$CFLAGS"
5485
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else $as_nop
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 int i;
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"
5499 then :
5500 xorg_cv_cc_flag_unknown_warning_option=yes
5501 else $as_nop
5502 xorg_cv_cc_flag_unknown_warning_option=no
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5505 fi
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5509 CFLAGS="$xorg_testset_save_CFLAGS"
5510 fi
5511
5512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515 fi
5516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5520 then :
5521 printf %s "(cached) " >&6
5522 else $as_nop
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 int i;
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"
5528 then :
5529 xorg_cv_cc_flag_unused_command_line_argument=yes
5530 else $as_nop
5531 xorg_cv_cc_flag_unused_command_line_argument=no
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5534 fi
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5536 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5538 CFLAGS="$xorg_testset_save_CFLAGS"
5539 fi
5540
5541 found="no"
5542
5543 if test $found = "no" ; then
5544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546 fi
5547
5548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550 fi
5551
5552 CFLAGS="$CFLAGS -Wmissing-declarations"
5553
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5555 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5556 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5557 if eval test \${$cacheid+y}
5558 then :
5559 printf %s "(cached) " >&6
5560 else $as_nop
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 int i;
5564 int
5565 main (void)
5566 {
5567
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 if ac_fn_c_try_link "$LINENO"
5573 then :
5574 eval $cacheid=yes
5575 else $as_nop
5576 eval $cacheid=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5579 conftest$ac_exeext conftest.$ac_ext
5580 fi
5581
5582
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584
5585 eval supported=\$$cacheid
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5587 printf "%s\n" "$supported" >&6; }
5588 if test "$supported" = "yes" ; then
5589 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5590 found="yes"
5591 fi
5592 fi
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608 xorg_testset_save_CFLAGS="$CFLAGS"
5609
5610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5614 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else $as_nop
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 int i;
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"
5623 then :
5624 xorg_cv_cc_flag_unknown_warning_option=yes
5625 else $as_nop
5626 xorg_cv_cc_flag_unknown_warning_option=no
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5629 fi
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5631 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5633 CFLAGS="$xorg_testset_save_CFLAGS"
5634 fi
5635
5636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5639 fi
5640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5642 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5643 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5644 then :
5645 printf %s "(cached) " >&6
5646 else $as_nop
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 int i;
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"
5652 then :
5653 xorg_cv_cc_flag_unused_command_line_argument=yes
5654 else $as_nop
5655 xorg_cv_cc_flag_unused_command_line_argument=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5658 fi
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5662 CFLAGS="$xorg_testset_save_CFLAGS"
5663 fi
5664
5665 found="no"
5666
5667 if test $found = "no" ; then
5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670 fi
5671
5672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5674 fi
5675
5676 CFLAGS="$CFLAGS -Wformat=2"
5677
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5679 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5680 cacheid=xorg_cv_cc_flag__Wformat_2
5681 if eval test \${$cacheid+y}
5682 then :
5683 printf %s "(cached) " >&6
5684 else $as_nop
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 int i;
5688 int
5689 main (void)
5690 {
5691
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_link "$LINENO"
5697 then :
5698 eval $cacheid=yes
5699 else $as_nop
5700 eval $cacheid=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5703 conftest$ac_exeext conftest.$ac_ext
5704 fi
5705
5706
5707 CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709 eval supported=\$$cacheid
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711 printf "%s\n" "$supported" >&6; }
5712 if test "$supported" = "yes" ; then
5713 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5714 found="yes"
5715 fi
5716 fi
5717
5718 if test $found = "no" ; then
5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5721 fi
5722
5723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5725 fi
5726
5727 CFLAGS="$CFLAGS -Wformat"
5728
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5730 printf %s "checking if $CC supports -Wformat... " >&6; }
5731 cacheid=xorg_cv_cc_flag__Wformat
5732 if eval test \${$cacheid+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else $as_nop
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 int
5740 main (void)
5741 {
5742
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_c_try_link "$LINENO"
5748 then :
5749 eval $cacheid=yes
5750 else $as_nop
5751 eval $cacheid=no
5752 fi
5753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5754 conftest$ac_exeext conftest.$ac_ext
5755 fi
5756
5757
5758 CFLAGS="$xorg_testset_save_CFLAGS"
5759
5760 eval supported=\$$cacheid
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5762 printf "%s\n" "$supported" >&6; }
5763 if test "$supported" = "yes" ; then
5764 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5765 found="yes"
5766 fi
5767 fi
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 xorg_testset_save_CFLAGS="$CFLAGS"
5786
5787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5791 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else $as_nop
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 int i;
5798 _ACEOF
5799 if ac_fn_c_try_compile "$LINENO"
5800 then :
5801 xorg_cv_cc_flag_unknown_warning_option=yes
5802 else $as_nop
5803 xorg_cv_cc_flag_unknown_warning_option=no
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5806 fi
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5808 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5810 CFLAGS="$xorg_testset_save_CFLAGS"
5811 fi
5812
5813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816 fi
5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5819 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5820 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5821 then :
5822 printf %s "(cached) " >&6
5823 else $as_nop
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 int i;
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"
5829 then :
5830 xorg_cv_cc_flag_unused_command_line_argument=yes
5831 else $as_nop
5832 xorg_cv_cc_flag_unused_command_line_argument=no
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5835 fi
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5837 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5839 CFLAGS="$xorg_testset_save_CFLAGS"
5840 fi
5841
5842 found="no"
5843
5844 if test $found = "no" ; then
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 fi
5848
5849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5851 fi
5852
5853 CFLAGS="$CFLAGS -Wstrict-prototypes"
5854
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5856 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5857 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5858 if eval test \${$cacheid+y}
5859 then :
5860 printf %s "(cached) " >&6
5861 else $as_nop
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 int i;
5865 int
5866 main (void)
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_link "$LINENO"
5874 then :
5875 eval $cacheid=yes
5876 else $as_nop
5877 eval $cacheid=no
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5880 conftest$ac_exeext conftest.$ac_ext
5881 fi
5882
5883
5884 CFLAGS="$xorg_testset_save_CFLAGS"
5885
5886 eval supported=\$$cacheid
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5888 printf "%s\n" "$supported" >&6; }
5889 if test "$supported" = "yes" ; then
5890 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5891 found="yes"
5892 fi
5893 fi
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 xorg_testset_save_CFLAGS="$CFLAGS"
5910
5911 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5914 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5915 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5916 then :
5917 printf %s "(cached) " >&6
5918 else $as_nop
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 int i;
5922 _ACEOF
5923 if ac_fn_c_try_compile "$LINENO"
5924 then :
5925 xorg_cv_cc_flag_unknown_warning_option=yes
5926 else $as_nop
5927 xorg_cv_cc_flag_unknown_warning_option=no
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5930 fi
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5932 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5934 CFLAGS="$xorg_testset_save_CFLAGS"
5935 fi
5936
5937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940 fi
5941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5943 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5944 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5945 then :
5946 printf %s "(cached) " >&6
5947 else $as_nop
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 int i;
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"
5953 then :
5954 xorg_cv_cc_flag_unused_command_line_argument=yes
5955 else $as_nop
5956 xorg_cv_cc_flag_unused_command_line_argument=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5959 fi
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5961 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964 fi
5965
5966 found="no"
5967
5968 if test $found = "no" ; then
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 fi
5972
5973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5975 fi
5976
5977 CFLAGS="$CFLAGS -Wmissing-prototypes"
5978
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5980 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5981 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5982 if eval test \${$cacheid+y}
5983 then :
5984 printf %s "(cached) " >&6
5985 else $as_nop
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 int i;
5989 int
5990 main (void)
5991 {
5992
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"
5998 then :
5999 eval $cacheid=yes
6000 else $as_nop
6001 eval $cacheid=no
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6004 conftest$ac_exeext conftest.$ac_ext
6005 fi
6006
6007
6008 CFLAGS="$xorg_testset_save_CFLAGS"
6009
6010 eval supported=\$$cacheid
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6012 printf "%s\n" "$supported" >&6; }
6013 if test "$supported" = "yes" ; then
6014 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6015 found="yes"
6016 fi
6017 fi
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033 xorg_testset_save_CFLAGS="$CFLAGS"
6034
6035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6039 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6040 then :
6041 printf %s "(cached) " >&6
6042 else $as_nop
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 int i;
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"
6048 then :
6049 xorg_cv_cc_flag_unknown_warning_option=yes
6050 else $as_nop
6051 xorg_cv_cc_flag_unknown_warning_option=no
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6054 fi
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6058 CFLAGS="$xorg_testset_save_CFLAGS"
6059 fi
6060
6061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064 fi
6065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6069 then :
6070 printf %s "(cached) " >&6
6071 else $as_nop
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 int i;
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"
6077 then :
6078 xorg_cv_cc_flag_unused_command_line_argument=yes
6079 else $as_nop
6080 xorg_cv_cc_flag_unused_command_line_argument=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6083 fi
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6085 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6087 CFLAGS="$xorg_testset_save_CFLAGS"
6088 fi
6089
6090 found="no"
6091
6092 if test $found = "no" ; then
6093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095 fi
6096
6097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099 fi
6100
6101 CFLAGS="$CFLAGS -Wnested-externs"
6102
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6104 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6105 cacheid=xorg_cv_cc_flag__Wnested_externs
6106 if eval test \${$cacheid+y}
6107 then :
6108 printf %s "(cached) " >&6
6109 else $as_nop
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int i;
6113 int
6114 main (void)
6115 {
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_link "$LINENO"
6122 then :
6123 eval $cacheid=yes
6124 else $as_nop
6125 eval $cacheid=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6128 conftest$ac_exeext conftest.$ac_ext
6129 fi
6130
6131
6132 CFLAGS="$xorg_testset_save_CFLAGS"
6133
6134 eval supported=\$$cacheid
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6136 printf "%s\n" "$supported" >&6; }
6137 if test "$supported" = "yes" ; then
6138 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6139 found="yes"
6140 fi
6141 fi
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 xorg_testset_save_CFLAGS="$CFLAGS"
6158
6159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else $as_nop
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"
6172 then :
6173 xorg_cv_cc_flag_unknown_warning_option=yes
6174 else $as_nop
6175 xorg_cv_cc_flag_unknown_warning_option=no
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6178 fi
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6180 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6182 CFLAGS="$xorg_testset_save_CFLAGS"
6183 fi
6184
6185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6188 fi
6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6191 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6192 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 int i;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"
6201 then :
6202 xorg_cv_cc_flag_unused_command_line_argument=yes
6203 else $as_nop
6204 xorg_cv_cc_flag_unused_command_line_argument=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6207 fi
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212 fi
6213
6214 found="no"
6215
6216 if test $found = "no" ; then
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 fi
6220
6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223 fi
6224
6225 CFLAGS="$CFLAGS -Wbad-function-cast"
6226
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6228 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6229 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6230 if eval test \${$cacheid+y}
6231 then :
6232 printf %s "(cached) " >&6
6233 else $as_nop
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 int
6238 main (void)
6239 {
6240
6241 ;
6242 return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_link "$LINENO"
6246 then :
6247 eval $cacheid=yes
6248 else $as_nop
6249 eval $cacheid=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6252 conftest$ac_exeext conftest.$ac_ext
6253 fi
6254
6255
6256 CFLAGS="$xorg_testset_save_CFLAGS"
6257
6258 eval supported=\$$cacheid
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6260 printf "%s\n" "$supported" >&6; }
6261 if test "$supported" = "yes" ; then
6262 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6263 found="yes"
6264 fi
6265 fi
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 xorg_testset_save_CFLAGS="$CFLAGS"
6282
6283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6286 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6287 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else $as_nop
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 _ACEOF
6295 if ac_fn_c_try_compile "$LINENO"
6296 then :
6297 xorg_cv_cc_flag_unknown_warning_option=yes
6298 else $as_nop
6299 xorg_cv_cc_flag_unknown_warning_option=no
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6302 fi
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6304 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6306 CFLAGS="$xorg_testset_save_CFLAGS"
6307 fi
6308
6309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 fi
6313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6315 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6316 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6317 then :
6318 printf %s "(cached) " >&6
6319 else $as_nop
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322 int i;
6323 _ACEOF
6324 if ac_fn_c_try_compile "$LINENO"
6325 then :
6326 xorg_cv_cc_flag_unused_command_line_argument=yes
6327 else $as_nop
6328 xorg_cv_cc_flag_unused_command_line_argument=no
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6331 fi
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6333 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6335 CFLAGS="$xorg_testset_save_CFLAGS"
6336 fi
6337
6338 found="no"
6339
6340 if test $found = "no" ; then
6341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343 fi
6344
6345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347 fi
6348
6349 CFLAGS="$CFLAGS -Wold-style-definition"
6350
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6352 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6353 cacheid=xorg_cv_cc_flag__Wold_style_definition
6354 if eval test \${$cacheid+y}
6355 then :
6356 printf %s "(cached) " >&6
6357 else $as_nop
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 int i;
6361 int
6362 main (void)
6363 {
6364
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_link "$LINENO"
6370 then :
6371 eval $cacheid=yes
6372 else $as_nop
6373 eval $cacheid=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6376 conftest$ac_exeext conftest.$ac_ext
6377 fi
6378
6379
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6381
6382 eval supported=\$$cacheid
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6384 printf "%s\n" "$supported" >&6; }
6385 if test "$supported" = "yes" ; then
6386 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6387 found="yes"
6388 fi
6389 fi
6390
6391 if test $found = "no" ; then
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 fi
6395
6396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398 fi
6399
6400 CFLAGS="$CFLAGS -fd"
6401
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6403 printf %s "checking if $CC supports -fd... " >&6; }
6404 cacheid=xorg_cv_cc_flag__fd
6405 if eval test \${$cacheid+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else $as_nop
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 int i;
6412 int
6413 main (void)
6414 {
6415
6416 ;
6417 return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_c_try_link "$LINENO"
6421 then :
6422 eval $cacheid=yes
6423 else $as_nop
6424 eval $cacheid=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6427 conftest$ac_exeext conftest.$ac_ext
6428 fi
6429
6430
6431 CFLAGS="$xorg_testset_save_CFLAGS"
6432
6433 eval supported=\$$cacheid
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6435 printf "%s\n" "$supported" >&6; }
6436 if test "$supported" = "yes" ; then
6437 BASE_CFLAGS="$BASE_CFLAGS -fd"
6438 found="yes"
6439 fi
6440 fi
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 xorg_testset_save_CFLAGS="$CFLAGS"
6457
6458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6462 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6463 then :
6464 printf %s "(cached) " >&6
6465 else $as_nop
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"
6471 then :
6472 xorg_cv_cc_flag_unknown_warning_option=yes
6473 else $as_nop
6474 xorg_cv_cc_flag_unknown_warning_option=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6477 fi
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482 fi
6483
6484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487 fi
6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6492 then :
6493 printf %s "(cached) " >&6
6494 else $as_nop
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 int i;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"
6500 then :
6501 xorg_cv_cc_flag_unused_command_line_argument=yes
6502 else $as_nop
6503 xorg_cv_cc_flag_unused_command_line_argument=no
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6506 fi
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6508 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6510 CFLAGS="$xorg_testset_save_CFLAGS"
6511 fi
6512
6513 found="no"
6514
6515 if test $found = "no" ; then
6516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518 fi
6519
6520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522 fi
6523
6524 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6525
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6527 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6528 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6529 if eval test \${$cacheid+y}
6530 then :
6531 printf %s "(cached) " >&6
6532 else $as_nop
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 int i;
6536 int
6537 main (void)
6538 {
6539
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_link "$LINENO"
6545 then :
6546 eval $cacheid=yes
6547 else $as_nop
6548 eval $cacheid=no
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6551 conftest$ac_exeext conftest.$ac_ext
6552 fi
6553
6554
6555 CFLAGS="$xorg_testset_save_CFLAGS"
6556
6557 eval supported=\$$cacheid
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6559 printf "%s\n" "$supported" >&6; }
6560 if test "$supported" = "yes" ; then
6561 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6562 found="yes"
6563 fi
6564 fi
6565
6566
6567
6568
6569
6570 # This chunk adds additional warnings that could catch undesired effects.
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584 xorg_testset_save_CFLAGS="$CFLAGS"
6585
6586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6590 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6591 then :
6592 printf %s "(cached) " >&6
6593 else $as_nop
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 int i;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"
6599 then :
6600 xorg_cv_cc_flag_unknown_warning_option=yes
6601 else $as_nop
6602 xorg_cv_cc_flag_unknown_warning_option=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6605 fi
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6607 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6609 CFLAGS="$xorg_testset_save_CFLAGS"
6610 fi
6611
6612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615 fi
6616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6618 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6619 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6620 then :
6621 printf %s "(cached) " >&6
6622 else $as_nop
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 int i;
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"
6628 then :
6629 xorg_cv_cc_flag_unused_command_line_argument=yes
6630 else $as_nop
6631 xorg_cv_cc_flag_unused_command_line_argument=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6634 fi
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6636 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6638 CFLAGS="$xorg_testset_save_CFLAGS"
6639 fi
6640
6641 found="no"
6642
6643 if test $found = "no" ; then
6644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646 fi
6647
6648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6650 fi
6651
6652 CFLAGS="$CFLAGS -Wunused"
6653
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6655 printf %s "checking if $CC supports -Wunused... " >&6; }
6656 cacheid=xorg_cv_cc_flag__Wunused
6657 if eval test \${$cacheid+y}
6658 then :
6659 printf %s "(cached) " >&6
6660 else $as_nop
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 int i;
6664 int
6665 main (void)
6666 {
6667
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_c_try_link "$LINENO"
6673 then :
6674 eval $cacheid=yes
6675 else $as_nop
6676 eval $cacheid=no
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6679 conftest$ac_exeext conftest.$ac_ext
6680 fi
6681
6682
6683 CFLAGS="$xorg_testset_save_CFLAGS"
6684
6685 eval supported=\$$cacheid
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6687 printf "%s\n" "$supported" >&6; }
6688 if test "$supported" = "yes" ; then
6689 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6690 found="yes"
6691 fi
6692 fi
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 xorg_testset_save_CFLAGS="$CFLAGS"
6709
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6713 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6714 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6715 then :
6716 printf %s "(cached) " >&6
6717 else $as_nop
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 int i;
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"
6723 then :
6724 xorg_cv_cc_flag_unknown_warning_option=yes
6725 else $as_nop
6726 xorg_cv_cc_flag_unknown_warning_option=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6729 fi
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6731 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6733 CFLAGS="$xorg_testset_save_CFLAGS"
6734 fi
6735
6736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739 fi
6740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6742 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6743 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6744 then :
6745 printf %s "(cached) " >&6
6746 else $as_nop
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"
6752 then :
6753 xorg_cv_cc_flag_unused_command_line_argument=yes
6754 else $as_nop
6755 xorg_cv_cc_flag_unused_command_line_argument=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6758 fi
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6760 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6763 fi
6764
6765 found="no"
6766
6767 if test $found = "no" ; then
6768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770 fi
6771
6772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774 fi
6775
6776 CFLAGS="$CFLAGS -Wuninitialized"
6777
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6779 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6780 cacheid=xorg_cv_cc_flag__Wuninitialized
6781 if eval test \${$cacheid+y}
6782 then :
6783 printf %s "(cached) " >&6
6784 else $as_nop
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 int i;
6788 int
6789 main (void)
6790 {
6791
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_link "$LINENO"
6797 then :
6798 eval $cacheid=yes
6799 else $as_nop
6800 eval $cacheid=no
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6803 conftest$ac_exeext conftest.$ac_ext
6804 fi
6805
6806
6807 CFLAGS="$xorg_testset_save_CFLAGS"
6808
6809 eval supported=\$$cacheid
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6811 printf "%s\n" "$supported" >&6; }
6812 if test "$supported" = "yes" ; then
6813 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6814 found="yes"
6815 fi
6816 fi
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832 xorg_testset_save_CFLAGS="$CFLAGS"
6833
6834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6837 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6838 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6839 then :
6840 printf %s "(cached) " >&6
6841 else $as_nop
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 int i;
6845 _ACEOF
6846 if ac_fn_c_try_compile "$LINENO"
6847 then :
6848 xorg_cv_cc_flag_unknown_warning_option=yes
6849 else $as_nop
6850 xorg_cv_cc_flag_unknown_warning_option=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6853 fi
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6857 CFLAGS="$xorg_testset_save_CFLAGS"
6858 fi
6859
6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863 fi
6864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6868 then :
6869 printf %s "(cached) " >&6
6870 else $as_nop
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 int i;
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"
6876 then :
6877 xorg_cv_cc_flag_unused_command_line_argument=yes
6878 else $as_nop
6879 xorg_cv_cc_flag_unused_command_line_argument=no
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6882 fi
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6884 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6886 CFLAGS="$xorg_testset_save_CFLAGS"
6887 fi
6888
6889 found="no"
6890
6891 if test $found = "no" ; then
6892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894 fi
6895
6896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6898 fi
6899
6900 CFLAGS="$CFLAGS -Wshadow"
6901
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6903 printf %s "checking if $CC supports -Wshadow... " >&6; }
6904 cacheid=xorg_cv_cc_flag__Wshadow
6905 if eval test \${$cacheid+y}
6906 then :
6907 printf %s "(cached) " >&6
6908 else $as_nop
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 int i;
6912 int
6913 main (void)
6914 {
6915
6916 ;
6917 return 0;
6918 }
6919 _ACEOF
6920 if ac_fn_c_try_link "$LINENO"
6921 then :
6922 eval $cacheid=yes
6923 else $as_nop
6924 eval $cacheid=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6927 conftest$ac_exeext conftest.$ac_ext
6928 fi
6929
6930
6931 CFLAGS="$xorg_testset_save_CFLAGS"
6932
6933 eval supported=\$$cacheid
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6935 printf "%s\n" "$supported" >&6; }
6936 if test "$supported" = "yes" ; then
6937 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6938 found="yes"
6939 fi
6940 fi
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 xorg_testset_save_CFLAGS="$CFLAGS"
6957
6958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6962 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6963 then :
6964 printf %s "(cached) " >&6
6965 else $as_nop
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968 int i;
6969 _ACEOF
6970 if ac_fn_c_try_compile "$LINENO"
6971 then :
6972 xorg_cv_cc_flag_unknown_warning_option=yes
6973 else $as_nop
6974 xorg_cv_cc_flag_unknown_warning_option=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6977 fi
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6981 CFLAGS="$xorg_testset_save_CFLAGS"
6982 fi
6983
6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987 fi
6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else $as_nop
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"
7000 then :
7001 xorg_cv_cc_flag_unused_command_line_argument=yes
7002 else $as_nop
7003 xorg_cv_cc_flag_unused_command_line_argument=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7006 fi
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011 fi
7012
7013 found="no"
7014
7015 if test $found = "no" ; then
7016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 fi
7019
7020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7022 fi
7023
7024 CFLAGS="$CFLAGS -Wmissing-noreturn"
7025
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7027 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7028 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7029 if eval test \${$cacheid+y}
7030 then :
7031 printf %s "(cached) " >&6
7032 else $as_nop
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035 int i;
7036 int
7037 main (void)
7038 {
7039
7040 ;
7041 return 0;
7042 }
7043 _ACEOF
7044 if ac_fn_c_try_link "$LINENO"
7045 then :
7046 eval $cacheid=yes
7047 else $as_nop
7048 eval $cacheid=no
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7051 conftest$ac_exeext conftest.$ac_ext
7052 fi
7053
7054
7055 CFLAGS="$xorg_testset_save_CFLAGS"
7056
7057 eval supported=\$$cacheid
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7059 printf "%s\n" "$supported" >&6; }
7060 if test "$supported" = "yes" ; then
7061 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7062 found="yes"
7063 fi
7064 fi
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 xorg_testset_save_CFLAGS="$CFLAGS"
7081
7082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7085 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7086 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7087 then :
7088 printf %s "(cached) " >&6
7089 else $as_nop
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 int i;
7093 _ACEOF
7094 if ac_fn_c_try_compile "$LINENO"
7095 then :
7096 xorg_cv_cc_flag_unknown_warning_option=yes
7097 else $as_nop
7098 xorg_cv_cc_flag_unknown_warning_option=no
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7101 fi
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7103 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7105 CFLAGS="$xorg_testset_save_CFLAGS"
7106 fi
7107
7108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7111 fi
7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7114 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7115 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7116 then :
7117 printf %s "(cached) " >&6
7118 else $as_nop
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 int i;
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"
7124 then :
7125 xorg_cv_cc_flag_unused_command_line_argument=yes
7126 else $as_nop
7127 xorg_cv_cc_flag_unused_command_line_argument=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7130 fi
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7132 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135 fi
7136
7137 found="no"
7138
7139 if test $found = "no" ; then
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 fi
7143
7144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146 fi
7147
7148 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7149
7150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7151 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7152 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7153 if eval test \${$cacheid+y}
7154 then :
7155 printf %s "(cached) " >&6
7156 else $as_nop
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 int i;
7160 int
7161 main (void)
7162 {
7163
7164 ;
7165 return 0;
7166 }
7167 _ACEOF
7168 if ac_fn_c_try_link "$LINENO"
7169 then :
7170 eval $cacheid=yes
7171 else $as_nop
7172 eval $cacheid=no
7173 fi
7174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7175 conftest$ac_exeext conftest.$ac_ext
7176 fi
7177
7178
7179 CFLAGS="$xorg_testset_save_CFLAGS"
7180
7181 eval supported=\$$cacheid
7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7183 printf "%s\n" "$supported" >&6; }
7184 if test "$supported" = "yes" ; then
7185 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7186 found="yes"
7187 fi
7188 fi
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 xorg_testset_save_CFLAGS="$CFLAGS"
7205
7206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7209 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7210 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7211 then :
7212 printf %s "(cached) " >&6
7213 else $as_nop
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 int i;
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"
7219 then :
7220 xorg_cv_cc_flag_unknown_warning_option=yes
7221 else $as_nop
7222 xorg_cv_cc_flag_unknown_warning_option=no
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7225 fi
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7227 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7229 CFLAGS="$xorg_testset_save_CFLAGS"
7230 fi
7231
7232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7235 fi
7236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7240 then :
7241 printf %s "(cached) " >&6
7242 else $as_nop
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 int i;
7246 _ACEOF
7247 if ac_fn_c_try_compile "$LINENO"
7248 then :
7249 xorg_cv_cc_flag_unused_command_line_argument=yes
7250 else $as_nop
7251 xorg_cv_cc_flag_unused_command_line_argument=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7254 fi
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7256 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7259 fi
7260
7261 found="no"
7262
7263 if test $found = "no" ; then
7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266 fi
7267
7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270 fi
7271
7272 CFLAGS="$CFLAGS -Wredundant-decls"
7273
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7275 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7276 cacheid=xorg_cv_cc_flag__Wredundant_decls
7277 if eval test \${$cacheid+y}
7278 then :
7279 printf %s "(cached) " >&6
7280 else $as_nop
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 int i;
7284 int
7285 main (void)
7286 {
7287
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_c_try_link "$LINENO"
7293 then :
7294 eval $cacheid=yes
7295 else $as_nop
7296 eval $cacheid=no
7297 fi
7298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7299 conftest$ac_exeext conftest.$ac_ext
7300 fi
7301
7302
7303 CFLAGS="$xorg_testset_save_CFLAGS"
7304
7305 eval supported=\$$cacheid
7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7307 printf "%s\n" "$supported" >&6; }
7308 if test "$supported" = "yes" ; then
7309 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7310 found="yes"
7311 fi
7312 fi
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 xorg_testset_save_CFLAGS="$CFLAGS"
7329
7330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7333 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7334 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7335 then :
7336 printf %s "(cached) " >&6
7337 else $as_nop
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340 int i;
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"
7343 then :
7344 xorg_cv_cc_flag_unknown_warning_option=yes
7345 else $as_nop
7346 xorg_cv_cc_flag_unknown_warning_option=no
7347 fi
7348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7349 fi
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7351 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7353 CFLAGS="$xorg_testset_save_CFLAGS"
7354 fi
7355
7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7359 fi
7360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7362 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7363 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7364 then :
7365 printf %s "(cached) " >&6
7366 else $as_nop
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369 int i;
7370 _ACEOF
7371 if ac_fn_c_try_compile "$LINENO"
7372 then :
7373 xorg_cv_cc_flag_unused_command_line_argument=yes
7374 else $as_nop
7375 xorg_cv_cc_flag_unused_command_line_argument=no
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7378 fi
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7380 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7382 CFLAGS="$xorg_testset_save_CFLAGS"
7383 fi
7384
7385 found="no"
7386
7387 if test $found = "no" ; then
7388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390 fi
7391
7392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7394 fi
7395
7396 CFLAGS="$CFLAGS -Wlogical-op"
7397
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7399 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7400 cacheid=xorg_cv_cc_flag__Wlogical_op
7401 if eval test \${$cacheid+y}
7402 then :
7403 printf %s "(cached) " >&6
7404 else $as_nop
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7407 int i;
7408 int
7409 main (void)
7410 {
7411
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 if ac_fn_c_try_link "$LINENO"
7417 then :
7418 eval $cacheid=yes
7419 else $as_nop
7420 eval $cacheid=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7423 conftest$ac_exeext conftest.$ac_ext
7424 fi
7425
7426
7427 CFLAGS="$xorg_testset_save_CFLAGS"
7428
7429 eval supported=\$$cacheid
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7431 printf "%s\n" "$supported" >&6; }
7432 if test "$supported" = "yes" ; then
7433 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7434 found="yes"
7435 fi
7436 fi
7437
7438
7439
7440 # These are currently disabled because they are noisy. They will be enabled
7441 # in the future once the codebase is sufficiently modernized to silence
7442 # them. For now, I don't want them to drown out the other warnings.
7443 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7444 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7445 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7446
7447 # Turn some warnings into errors, so we don't accidently get successful builds
7448 # when there are problems that should be fixed.
7449
7450 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 xorg_testset_save_CFLAGS="$CFLAGS"
7465
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7470 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else $as_nop
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"
7479 then :
7480 xorg_cv_cc_flag_unknown_warning_option=yes
7481 else $as_nop
7482 xorg_cv_cc_flag_unknown_warning_option=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7485 fi
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490 fi
7491
7492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7500 then :
7501 printf %s "(cached) " >&6
7502 else $as_nop
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 int i;
7506 _ACEOF
7507 if ac_fn_c_try_compile "$LINENO"
7508 then :
7509 xorg_cv_cc_flag_unused_command_line_argument=yes
7510 else $as_nop
7511 xorg_cv_cc_flag_unused_command_line_argument=no
7512 fi
7513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7514 fi
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7518 CFLAGS="$xorg_testset_save_CFLAGS"
7519 fi
7520
7521 found="no"
7522
7523 if test $found = "no" ; then
7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526 fi
7527
7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530 fi
7531
7532 CFLAGS="$CFLAGS -Werror=implicit"
7533
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7535 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7536 cacheid=xorg_cv_cc_flag__Werror_implicit
7537 if eval test \${$cacheid+y}
7538 then :
7539 printf %s "(cached) " >&6
7540 else $as_nop
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 int i;
7544 int
7545 main (void)
7546 {
7547
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"
7553 then :
7554 eval $cacheid=yes
7555 else $as_nop
7556 eval $cacheid=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7559 conftest$ac_exeext conftest.$ac_ext
7560 fi
7561
7562
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564
7565 eval supported=\$$cacheid
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7567 printf "%s\n" "$supported" >&6; }
7568 if test "$supported" = "yes" ; then
7569 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7570 found="yes"
7571 fi
7572 fi
7573
7574 if test $found = "no" ; then
7575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7577 fi
7578
7579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7581 fi
7582
7583 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7584
7585 { 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
7586 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7587 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7588 if eval test \${$cacheid+y}
7589 then :
7590 printf %s "(cached) " >&6
7591 else $as_nop
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 int i;
7595 int
7596 main (void)
7597 {
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 if ac_fn_c_try_link "$LINENO"
7604 then :
7605 eval $cacheid=yes
7606 else $as_nop
7607 eval $cacheid=no
7608 fi
7609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7610 conftest$ac_exeext conftest.$ac_ext
7611 fi
7612
7613
7614 CFLAGS="$xorg_testset_save_CFLAGS"
7615
7616 eval supported=\$$cacheid
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7618 printf "%s\n" "$supported" >&6; }
7619 if test "$supported" = "yes" ; then
7620 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7621 found="yes"
7622 fi
7623 fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639 xorg_testset_save_CFLAGS="$CFLAGS"
7640
7641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7645 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7646 then :
7647 printf %s "(cached) " >&6
7648 else $as_nop
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651 int i;
7652 _ACEOF
7653 if ac_fn_c_try_compile "$LINENO"
7654 then :
7655 xorg_cv_cc_flag_unknown_warning_option=yes
7656 else $as_nop
7657 xorg_cv_cc_flag_unknown_warning_option=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7660 fi
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7662 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7664 CFLAGS="$xorg_testset_save_CFLAGS"
7665 fi
7666
7667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7670 fi
7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7673 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7674 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7675 then :
7676 printf %s "(cached) " >&6
7677 else $as_nop
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 int i;
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"
7683 then :
7684 xorg_cv_cc_flag_unused_command_line_argument=yes
7685 else $as_nop
7686 xorg_cv_cc_flag_unused_command_line_argument=no
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7689 fi
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7691 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7693 CFLAGS="$xorg_testset_save_CFLAGS"
7694 fi
7695
7696 found="no"
7697
7698 if test $found = "no" ; then
7699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701 fi
7702
7703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7705 fi
7706
7707 CFLAGS="$CFLAGS -Werror=nonnull"
7708
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7710 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7711 cacheid=xorg_cv_cc_flag__Werror_nonnull
7712 if eval test \${$cacheid+y}
7713 then :
7714 printf %s "(cached) " >&6
7715 else $as_nop
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 int i;
7719 int
7720 main (void)
7721 {
7722
7723 ;
7724 return 0;
7725 }
7726 _ACEOF
7727 if ac_fn_c_try_link "$LINENO"
7728 then :
7729 eval $cacheid=yes
7730 else $as_nop
7731 eval $cacheid=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7734 conftest$ac_exeext conftest.$ac_ext
7735 fi
7736
7737
7738 CFLAGS="$xorg_testset_save_CFLAGS"
7739
7740 eval supported=\$$cacheid
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7742 printf "%s\n" "$supported" >&6; }
7743 if test "$supported" = "yes" ; then
7744 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7745 found="yes"
7746 fi
7747 fi
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763 xorg_testset_save_CFLAGS="$CFLAGS"
7764
7765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7768 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7769 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 int i;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"
7778 then :
7779 xorg_cv_cc_flag_unknown_warning_option=yes
7780 else $as_nop
7781 xorg_cv_cc_flag_unknown_warning_option=no
7782 fi
7783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7784 fi
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7786 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7789 fi
7790
7791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794 fi
7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7797 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7798 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7799 then :
7800 printf %s "(cached) " >&6
7801 else $as_nop
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 int i;
7805 _ACEOF
7806 if ac_fn_c_try_compile "$LINENO"
7807 then :
7808 xorg_cv_cc_flag_unused_command_line_argument=yes
7809 else $as_nop
7810 xorg_cv_cc_flag_unused_command_line_argument=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7813 fi
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7815 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818 fi
7819
7820 found="no"
7821
7822 if test $found = "no" ; then
7823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825 fi
7826
7827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829 fi
7830
7831 CFLAGS="$CFLAGS -Werror=init-self"
7832
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7834 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7835 cacheid=xorg_cv_cc_flag__Werror_init_self
7836 if eval test \${$cacheid+y}
7837 then :
7838 printf %s "(cached) " >&6
7839 else $as_nop
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842 int i;
7843 int
7844 main (void)
7845 {
7846
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"
7852 then :
7853 eval $cacheid=yes
7854 else $as_nop
7855 eval $cacheid=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7858 conftest$ac_exeext conftest.$ac_ext
7859 fi
7860
7861
7862 CFLAGS="$xorg_testset_save_CFLAGS"
7863
7864 eval supported=\$$cacheid
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7866 printf "%s\n" "$supported" >&6; }
7867 if test "$supported" = "yes" ; then
7868 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7869 found="yes"
7870 fi
7871 fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 xorg_testset_save_CFLAGS="$CFLAGS"
7888
7889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7892 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7893 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7894 then :
7895 printf %s "(cached) " >&6
7896 else $as_nop
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 int i;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"
7902 then :
7903 xorg_cv_cc_flag_unknown_warning_option=yes
7904 else $as_nop
7905 xorg_cv_cc_flag_unknown_warning_option=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7908 fi
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7912 CFLAGS="$xorg_testset_save_CFLAGS"
7913 fi
7914
7915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918 fi
7919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7923 then :
7924 printf %s "(cached) " >&6
7925 else $as_nop
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 int i;
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"
7931 then :
7932 xorg_cv_cc_flag_unused_command_line_argument=yes
7933 else $as_nop
7934 xorg_cv_cc_flag_unused_command_line_argument=no
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7937 fi
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7941 CFLAGS="$xorg_testset_save_CFLAGS"
7942 fi
7943
7944 found="no"
7945
7946 if test $found = "no" ; then
7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949 fi
7950
7951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7953 fi
7954
7955 CFLAGS="$CFLAGS -Werror=main"
7956
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7958 printf %s "checking if $CC supports -Werror=main... " >&6; }
7959 cacheid=xorg_cv_cc_flag__Werror_main
7960 if eval test \${$cacheid+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 int i;
7967 int
7968 main (void)
7969 {
7970
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_link "$LINENO"
7976 then :
7977 eval $cacheid=yes
7978 else $as_nop
7979 eval $cacheid=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7982 conftest$ac_exeext conftest.$ac_ext
7983 fi
7984
7985
7986 CFLAGS="$xorg_testset_save_CFLAGS"
7987
7988 eval supported=\$$cacheid
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7990 printf "%s\n" "$supported" >&6; }
7991 if test "$supported" = "yes" ; then
7992 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7993 found="yes"
7994 fi
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011 xorg_testset_save_CFLAGS="$CFLAGS"
8012
8013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8017 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8018 then :
8019 printf %s "(cached) " >&6
8020 else $as_nop
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 int i;
8024 _ACEOF
8025 if ac_fn_c_try_compile "$LINENO"
8026 then :
8027 xorg_cv_cc_flag_unknown_warning_option=yes
8028 else $as_nop
8029 xorg_cv_cc_flag_unknown_warning_option=no
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8032 fi
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8034 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8036 CFLAGS="$xorg_testset_save_CFLAGS"
8037 fi
8038
8039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 fi
8043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8045 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8046 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8047 then :
8048 printf %s "(cached) " >&6
8049 else $as_nop
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 int i;
8053 _ACEOF
8054 if ac_fn_c_try_compile "$LINENO"
8055 then :
8056 xorg_cv_cc_flag_unused_command_line_argument=yes
8057 else $as_nop
8058 xorg_cv_cc_flag_unused_command_line_argument=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8061 fi
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8063 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8065 CFLAGS="$xorg_testset_save_CFLAGS"
8066 fi
8067
8068 found="no"
8069
8070 if test $found = "no" ; then
8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 fi
8074
8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8077 fi
8078
8079 CFLAGS="$CFLAGS -Werror=missing-braces"
8080
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8082 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8083 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8084 if eval test \${$cacheid+y}
8085 then :
8086 printf %s "(cached) " >&6
8087 else $as_nop
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 int i;
8091 int
8092 main (void)
8093 {
8094
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"
8100 then :
8101 eval $cacheid=yes
8102 else $as_nop
8103 eval $cacheid=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8106 conftest$ac_exeext conftest.$ac_ext
8107 fi
8108
8109
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111
8112 eval supported=\$$cacheid
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8114 printf "%s\n" "$supported" >&6; }
8115 if test "$supported" = "yes" ; then
8116 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8117 found="yes"
8118 fi
8119 fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 xorg_testset_save_CFLAGS="$CFLAGS"
8136
8137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8141 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8142 then :
8143 printf %s "(cached) " >&6
8144 else $as_nop
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 int i;
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"
8150 then :
8151 xorg_cv_cc_flag_unknown_warning_option=yes
8152 else $as_nop
8153 xorg_cv_cc_flag_unknown_warning_option=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8156 fi
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8158 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8161 fi
8162
8163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166 fi
8167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8169 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8170 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else $as_nop
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 int i;
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"
8179 then :
8180 xorg_cv_cc_flag_unused_command_line_argument=yes
8181 else $as_nop
8182 xorg_cv_cc_flag_unused_command_line_argument=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8185 fi
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8189 CFLAGS="$xorg_testset_save_CFLAGS"
8190 fi
8191
8192 found="no"
8193
8194 if test $found = "no" ; then
8195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197 fi
8198
8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8201 fi
8202
8203 CFLAGS="$CFLAGS -Werror=sequence-point"
8204
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8206 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8207 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8208 if eval test \${$cacheid+y}
8209 then :
8210 printf %s "(cached) " >&6
8211 else $as_nop
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 int i;
8215 int
8216 main (void)
8217 {
8218
8219 ;
8220 return 0;
8221 }
8222 _ACEOF
8223 if ac_fn_c_try_link "$LINENO"
8224 then :
8225 eval $cacheid=yes
8226 else $as_nop
8227 eval $cacheid=no
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8230 conftest$ac_exeext conftest.$ac_ext
8231 fi
8232
8233
8234 CFLAGS="$xorg_testset_save_CFLAGS"
8235
8236 eval supported=\$$cacheid
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8238 printf "%s\n" "$supported" >&6; }
8239 if test "$supported" = "yes" ; then
8240 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8241 found="yes"
8242 fi
8243 fi
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 xorg_testset_save_CFLAGS="$CFLAGS"
8260
8261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8264 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8265 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else $as_nop
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int i;
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"
8274 then :
8275 xorg_cv_cc_flag_unknown_warning_option=yes
8276 else $as_nop
8277 xorg_cv_cc_flag_unknown_warning_option=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 fi
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8282 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8284 CFLAGS="$xorg_testset_save_CFLAGS"
8285 fi
8286
8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 fi
8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8293 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8294 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8295 then :
8296 printf %s "(cached) " >&6
8297 else $as_nop
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 int i;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"
8303 then :
8304 xorg_cv_cc_flag_unused_command_line_argument=yes
8305 else $as_nop
8306 xorg_cv_cc_flag_unused_command_line_argument=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8309 fi
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 found="no"
8317
8318 if test $found = "no" ; then
8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321 fi
8322
8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325 fi
8326
8327 CFLAGS="$CFLAGS -Werror=return-type"
8328
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8330 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8331 cacheid=xorg_cv_cc_flag__Werror_return_type
8332 if eval test \${$cacheid+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else $as_nop
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 int
8340 main (void)
8341 {
8342
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"
8348 then :
8349 eval $cacheid=yes
8350 else $as_nop
8351 eval $cacheid=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8354 conftest$ac_exeext conftest.$ac_ext
8355 fi
8356
8357
8358 CFLAGS="$xorg_testset_save_CFLAGS"
8359
8360 eval supported=\$$cacheid
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8362 printf "%s\n" "$supported" >&6; }
8363 if test "$supported" = "yes" ; then
8364 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8365 found="yes"
8366 fi
8367 fi
8368
8369 if test $found = "no" ; then
8370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372 fi
8373
8374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376 fi
8377
8378 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8379
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8381 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8382 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8383 if eval test \${$cacheid+y}
8384 then :
8385 printf %s "(cached) " >&6
8386 else $as_nop
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 int i;
8390 int
8391 main (void)
8392 {
8393
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_link "$LINENO"
8399 then :
8400 eval $cacheid=yes
8401 else $as_nop
8402 eval $cacheid=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8405 conftest$ac_exeext conftest.$ac_ext
8406 fi
8407
8408
8409 CFLAGS="$xorg_testset_save_CFLAGS"
8410
8411 eval supported=\$$cacheid
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8413 printf "%s\n" "$supported" >&6; }
8414 if test "$supported" = "yes" ; then
8415 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8416 found="yes"
8417 fi
8418 fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434 xorg_testset_save_CFLAGS="$CFLAGS"
8435
8436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8439 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8440 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8441 then :
8442 printf %s "(cached) " >&6
8443 else $as_nop
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 int i;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"
8449 then :
8450 xorg_cv_cc_flag_unknown_warning_option=yes
8451 else $as_nop
8452 xorg_cv_cc_flag_unknown_warning_option=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8455 fi
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8457 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8459 CFLAGS="$xorg_testset_save_CFLAGS"
8460 fi
8461
8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465 fi
8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8470 then :
8471 printf %s "(cached) " >&6
8472 else $as_nop
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 int i;
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"
8478 then :
8479 xorg_cv_cc_flag_unused_command_line_argument=yes
8480 else $as_nop
8481 xorg_cv_cc_flag_unused_command_line_argument=no
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8484 fi
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8486 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8488 CFLAGS="$xorg_testset_save_CFLAGS"
8489 fi
8490
8491 found="no"
8492
8493 if test $found = "no" ; then
8494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8496 fi
8497
8498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8500 fi
8501
8502 CFLAGS="$CFLAGS -Werror=trigraphs"
8503
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8505 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8506 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8507 if eval test \${$cacheid+y}
8508 then :
8509 printf %s "(cached) " >&6
8510 else $as_nop
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 int i;
8514 int
8515 main (void)
8516 {
8517
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_link "$LINENO"
8523 then :
8524 eval $cacheid=yes
8525 else $as_nop
8526 eval $cacheid=no
8527 fi
8528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8529 conftest$ac_exeext conftest.$ac_ext
8530 fi
8531
8532
8533 CFLAGS="$xorg_testset_save_CFLAGS"
8534
8535 eval supported=\$$cacheid
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8537 printf "%s\n" "$supported" >&6; }
8538 if test "$supported" = "yes" ; then
8539 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8540 found="yes"
8541 fi
8542 fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 xorg_testset_save_CFLAGS="$CFLAGS"
8559
8560 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8563 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8564 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8565 then :
8566 printf %s "(cached) " >&6
8567 else $as_nop
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 int i;
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"
8573 then :
8574 xorg_cv_cc_flag_unknown_warning_option=yes
8575 else $as_nop
8576 xorg_cv_cc_flag_unknown_warning_option=no
8577 fi
8578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8579 fi
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8581 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8583 CFLAGS="$xorg_testset_save_CFLAGS"
8584 fi
8585
8586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589 fi
8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8592 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8593 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8594 then :
8595 printf %s "(cached) " >&6
8596 else $as_nop
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 int i;
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"
8602 then :
8603 xorg_cv_cc_flag_unused_command_line_argument=yes
8604 else $as_nop
8605 xorg_cv_cc_flag_unused_command_line_argument=no
8606 fi
8607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8608 fi
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8610 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8612 CFLAGS="$xorg_testset_save_CFLAGS"
8613 fi
8614
8615 found="no"
8616
8617 if test $found = "no" ; then
8618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620 fi
8621
8622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8624 fi
8625
8626 CFLAGS="$CFLAGS -Werror=array-bounds"
8627
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8629 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8630 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8631 if eval test \${$cacheid+y}
8632 then :
8633 printf %s "(cached) " >&6
8634 else $as_nop
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 int i;
8638 int
8639 main (void)
8640 {
8641
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_link "$LINENO"
8647 then :
8648 eval $cacheid=yes
8649 else $as_nop
8650 eval $cacheid=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8653 conftest$ac_exeext conftest.$ac_ext
8654 fi
8655
8656
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658
8659 eval supported=\$$cacheid
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8661 printf "%s\n" "$supported" >&6; }
8662 if test "$supported" = "yes" ; then
8663 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8664 found="yes"
8665 fi
8666 fi
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682 xorg_testset_save_CFLAGS="$CFLAGS"
8683
8684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8688 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8689 then :
8690 printf %s "(cached) " >&6
8691 else $as_nop
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 int i;
8695 _ACEOF
8696 if ac_fn_c_try_compile "$LINENO"
8697 then :
8698 xorg_cv_cc_flag_unknown_warning_option=yes
8699 else $as_nop
8700 xorg_cv_cc_flag_unknown_warning_option=no
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8703 fi
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8705 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8707 CFLAGS="$xorg_testset_save_CFLAGS"
8708 fi
8709
8710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8713 fi
8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8718 then :
8719 printf %s "(cached) " >&6
8720 else $as_nop
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 int i;
8724 _ACEOF
8725 if ac_fn_c_try_compile "$LINENO"
8726 then :
8727 xorg_cv_cc_flag_unused_command_line_argument=yes
8728 else $as_nop
8729 xorg_cv_cc_flag_unused_command_line_argument=no
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8732 fi
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8734 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8736 CFLAGS="$xorg_testset_save_CFLAGS"
8737 fi
8738
8739 found="no"
8740
8741 if test $found = "no" ; then
8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744 fi
8745
8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748 fi
8749
8750 CFLAGS="$CFLAGS -Werror=write-strings"
8751
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8753 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8754 cacheid=xorg_cv_cc_flag__Werror_write_strings
8755 if eval test \${$cacheid+y}
8756 then :
8757 printf %s "(cached) " >&6
8758 else $as_nop
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 int i;
8762 int
8763 main (void)
8764 {
8765
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_c_try_link "$LINENO"
8771 then :
8772 eval $cacheid=yes
8773 else $as_nop
8774 eval $cacheid=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8777 conftest$ac_exeext conftest.$ac_ext
8778 fi
8779
8780
8781 CFLAGS="$xorg_testset_save_CFLAGS"
8782
8783 eval supported=\$$cacheid
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8785 printf "%s\n" "$supported" >&6; }
8786 if test "$supported" = "yes" ; then
8787 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8788 found="yes"
8789 fi
8790 fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 xorg_testset_save_CFLAGS="$CFLAGS"
8807
8808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8812 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8813 then :
8814 printf %s "(cached) " >&6
8815 else $as_nop
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int i;
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"
8821 then :
8822 xorg_cv_cc_flag_unknown_warning_option=yes
8823 else $as_nop
8824 xorg_cv_cc_flag_unknown_warning_option=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8827 fi
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8829 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8831 CFLAGS="$xorg_testset_save_CFLAGS"
8832 fi
8833
8834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837 fi
8838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8842 then :
8843 printf %s "(cached) " >&6
8844 else $as_nop
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"
8850 then :
8851 xorg_cv_cc_flag_unused_command_line_argument=yes
8852 else $as_nop
8853 xorg_cv_cc_flag_unused_command_line_argument=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8856 fi
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8858 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8860 CFLAGS="$xorg_testset_save_CFLAGS"
8861 fi
8862
8863 found="no"
8864
8865 if test $found = "no" ; then
8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868 fi
8869
8870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872 fi
8873
8874 CFLAGS="$CFLAGS -Werror=address"
8875
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8877 printf %s "checking if $CC supports -Werror=address... " >&6; }
8878 cacheid=xorg_cv_cc_flag__Werror_address
8879 if eval test \${$cacheid+y}
8880 then :
8881 printf %s "(cached) " >&6
8882 else $as_nop
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 int i;
8886 int
8887 main (void)
8888 {
8889
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"
8895 then :
8896 eval $cacheid=yes
8897 else $as_nop
8898 eval $cacheid=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8901 conftest$ac_exeext conftest.$ac_ext
8902 fi
8903
8904
8905 CFLAGS="$xorg_testset_save_CFLAGS"
8906
8907 eval supported=\$$cacheid
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8909 printf "%s\n" "$supported" >&6; }
8910 if test "$supported" = "yes" ; then
8911 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8912 found="yes"
8913 fi
8914 fi
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930 xorg_testset_save_CFLAGS="$CFLAGS"
8931
8932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else $as_nop
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 int i;
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"
8945 then :
8946 xorg_cv_cc_flag_unknown_warning_option=yes
8947 else $as_nop
8948 xorg_cv_cc_flag_unknown_warning_option=no
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8951 fi
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8955 CFLAGS="$xorg_testset_save_CFLAGS"
8956 fi
8957
8958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 fi
8962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8966 then :
8967 printf %s "(cached) " >&6
8968 else $as_nop
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int i;
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"
8974 then :
8975 xorg_cv_cc_flag_unused_command_line_argument=yes
8976 else $as_nop
8977 xorg_cv_cc_flag_unused_command_line_argument=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8980 fi
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 found="no"
8988
8989 if test $found = "no" ; then
8990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992 fi
8993
8994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996 fi
8997
8998 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8999
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9001 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9002 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9003 if eval test \${$cacheid+y}
9004 then :
9005 printf %s "(cached) " >&6
9006 else $as_nop
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 int i;
9010 int
9011 main (void)
9012 {
9013
9014 ;
9015 return 0;
9016 }
9017 _ACEOF
9018 if ac_fn_c_try_link "$LINENO"
9019 then :
9020 eval $cacheid=yes
9021 else $as_nop
9022 eval $cacheid=no
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9025 conftest$ac_exeext conftest.$ac_ext
9026 fi
9027
9028
9029 CFLAGS="$xorg_testset_save_CFLAGS"
9030
9031 eval supported=\$$cacheid
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9033 printf "%s\n" "$supported" >&6; }
9034 if test "$supported" = "yes" ; then
9035 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9036 found="yes"
9037 fi
9038 fi
9039
9040 if test $found = "no" ; then
9041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9043 fi
9044
9045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9047 fi
9048
9049 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9050
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9052 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9053 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9054 if eval test \${$cacheid+y}
9055 then :
9056 printf %s "(cached) " >&6
9057 else $as_nop
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 int i;
9061 int
9062 main (void)
9063 {
9064
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"
9070 then :
9071 eval $cacheid=yes
9072 else $as_nop
9073 eval $cacheid=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9076 conftest$ac_exeext conftest.$ac_ext
9077 fi
9078
9079
9080 CFLAGS="$xorg_testset_save_CFLAGS"
9081
9082 eval supported=\$$cacheid
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9084 printf "%s\n" "$supported" >&6; }
9085 if test "$supported" = "yes" ; then
9086 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9087 found="yes"
9088 fi
9089 fi
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105 xorg_testset_save_CFLAGS="$CFLAGS"
9106
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9111 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9112 then :
9113 printf %s "(cached) " >&6
9114 else $as_nop
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"
9120 then :
9121 xorg_cv_cc_flag_unknown_warning_option=yes
9122 else $as_nop
9123 xorg_cv_cc_flag_unknown_warning_option=no
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9126 fi
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9130 CFLAGS="$xorg_testset_save_CFLAGS"
9131 fi
9132
9133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9136 fi
9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9141 then :
9142 printf %s "(cached) " >&6
9143 else $as_nop
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 int i;
9147 _ACEOF
9148 if ac_fn_c_try_compile "$LINENO"
9149 then :
9150 xorg_cv_cc_flag_unused_command_line_argument=yes
9151 else $as_nop
9152 xorg_cv_cc_flag_unused_command_line_argument=no
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9155 fi
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9157 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9159 CFLAGS="$xorg_testset_save_CFLAGS"
9160 fi
9161
9162 found="no"
9163
9164 if test $found = "no" ; then
9165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9167 fi
9168
9169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9171 fi
9172
9173 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9174
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9176 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9177 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9178 if eval test \${$cacheid+y}
9179 then :
9180 printf %s "(cached) " >&6
9181 else $as_nop
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 int i;
9185 int
9186 main (void)
9187 {
9188
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 if ac_fn_c_try_link "$LINENO"
9194 then :
9195 eval $cacheid=yes
9196 else $as_nop
9197 eval $cacheid=no
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9200 conftest$ac_exeext conftest.$ac_ext
9201 fi
9202
9203
9204 CFLAGS="$xorg_testset_save_CFLAGS"
9205
9206 eval supported=\$$cacheid
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9208 printf "%s\n" "$supported" >&6; }
9209 if test "$supported" = "yes" ; then
9210 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9211 found="yes"
9212 fi
9213 fi
9214
9215 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9216 else
9217 { 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
9218 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;}
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232 xorg_testset_save_CFLAGS="$CFLAGS"
9233
9234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9237 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9238 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9239 then :
9240 printf %s "(cached) " >&6
9241 else $as_nop
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 int i;
9245 _ACEOF
9246 if ac_fn_c_try_compile "$LINENO"
9247 then :
9248 xorg_cv_cc_flag_unknown_warning_option=yes
9249 else $as_nop
9250 xorg_cv_cc_flag_unknown_warning_option=no
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9253 fi
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9255 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9257 CFLAGS="$xorg_testset_save_CFLAGS"
9258 fi
9259
9260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263 fi
9264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9266 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9267 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else $as_nop
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 int i;
9274 _ACEOF
9275 if ac_fn_c_try_compile "$LINENO"
9276 then :
9277 xorg_cv_cc_flag_unused_command_line_argument=yes
9278 else $as_nop
9279 xorg_cv_cc_flag_unused_command_line_argument=no
9280 fi
9281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9282 fi
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9284 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9286 CFLAGS="$xorg_testset_save_CFLAGS"
9287 fi
9288
9289 found="no"
9290
9291 if test $found = "no" ; then
9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294 fi
9295
9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9298 fi
9299
9300 CFLAGS="$CFLAGS -Wimplicit"
9301
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9303 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9304 cacheid=xorg_cv_cc_flag__Wimplicit
9305 if eval test \${$cacheid+y}
9306 then :
9307 printf %s "(cached) " >&6
9308 else $as_nop
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 int i;
9312 int
9313 main (void)
9314 {
9315
9316 ;
9317 return 0;
9318 }
9319 _ACEOF
9320 if ac_fn_c_try_link "$LINENO"
9321 then :
9322 eval $cacheid=yes
9323 else $as_nop
9324 eval $cacheid=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9327 conftest$ac_exeext conftest.$ac_ext
9328 fi
9329
9330
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9332
9333 eval supported=\$$cacheid
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9335 printf "%s\n" "$supported" >&6; }
9336 if test "$supported" = "yes" ; then
9337 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9338 found="yes"
9339 fi
9340 fi
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 xorg_testset_save_CFLAGS="$CFLAGS"
9357
9358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9362 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9363 then :
9364 printf %s "(cached) " >&6
9365 else $as_nop
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 int i;
9369 _ACEOF
9370 if ac_fn_c_try_compile "$LINENO"
9371 then :
9372 xorg_cv_cc_flag_unknown_warning_option=yes
9373 else $as_nop
9374 xorg_cv_cc_flag_unknown_warning_option=no
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9377 fi
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9379 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9381 CFLAGS="$xorg_testset_save_CFLAGS"
9382 fi
9383
9384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387 fi
9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9390 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9391 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9392 then :
9393 printf %s "(cached) " >&6
9394 else $as_nop
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 int i;
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"
9400 then :
9401 xorg_cv_cc_flag_unused_command_line_argument=yes
9402 else $as_nop
9403 xorg_cv_cc_flag_unused_command_line_argument=no
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9406 fi
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9410 CFLAGS="$xorg_testset_save_CFLAGS"
9411 fi
9412
9413 found="no"
9414
9415 if test $found = "no" ; then
9416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418 fi
9419
9420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9422 fi
9423
9424 CFLAGS="$CFLAGS -Wnonnull"
9425
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9427 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9428 cacheid=xorg_cv_cc_flag__Wnonnull
9429 if eval test \${$cacheid+y}
9430 then :
9431 printf %s "(cached) " >&6
9432 else $as_nop
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435 int i;
9436 int
9437 main (void)
9438 {
9439
9440 ;
9441 return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"
9445 then :
9446 eval $cacheid=yes
9447 else $as_nop
9448 eval $cacheid=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9451 conftest$ac_exeext conftest.$ac_ext
9452 fi
9453
9454
9455 CFLAGS="$xorg_testset_save_CFLAGS"
9456
9457 eval supported=\$$cacheid
9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9459 printf "%s\n" "$supported" >&6; }
9460 if test "$supported" = "yes" ; then
9461 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9462 found="yes"
9463 fi
9464 fi
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480 xorg_testset_save_CFLAGS="$CFLAGS"
9481
9482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9485 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9486 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9487 then :
9488 printf %s "(cached) " >&6
9489 else $as_nop
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 int i;
9493 _ACEOF
9494 if ac_fn_c_try_compile "$LINENO"
9495 then :
9496 xorg_cv_cc_flag_unknown_warning_option=yes
9497 else $as_nop
9498 xorg_cv_cc_flag_unknown_warning_option=no
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9501 fi
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9503 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9505 CFLAGS="$xorg_testset_save_CFLAGS"
9506 fi
9507
9508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511 fi
9512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9514 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9515 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9516 then :
9517 printf %s "(cached) " >&6
9518 else $as_nop
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 int i;
9522 _ACEOF
9523 if ac_fn_c_try_compile "$LINENO"
9524 then :
9525 xorg_cv_cc_flag_unused_command_line_argument=yes
9526 else $as_nop
9527 xorg_cv_cc_flag_unused_command_line_argument=no
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9530 fi
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9532 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9534 CFLAGS="$xorg_testset_save_CFLAGS"
9535 fi
9536
9537 found="no"
9538
9539 if test $found = "no" ; then
9540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542 fi
9543
9544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9546 fi
9547
9548 CFLAGS="$CFLAGS -Winit-self"
9549
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9551 printf %s "checking if $CC supports -Winit-self... " >&6; }
9552 cacheid=xorg_cv_cc_flag__Winit_self
9553 if eval test \${$cacheid+y}
9554 then :
9555 printf %s "(cached) " >&6
9556 else $as_nop
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 int i;
9560 int
9561 main (void)
9562 {
9563
9564 ;
9565 return 0;
9566 }
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"
9569 then :
9570 eval $cacheid=yes
9571 else $as_nop
9572 eval $cacheid=no
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9575 conftest$ac_exeext conftest.$ac_ext
9576 fi
9577
9578
9579 CFLAGS="$xorg_testset_save_CFLAGS"
9580
9581 eval supported=\$$cacheid
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9583 printf "%s\n" "$supported" >&6; }
9584 if test "$supported" = "yes" ; then
9585 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9586 found="yes"
9587 fi
9588 fi
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604 xorg_testset_save_CFLAGS="$CFLAGS"
9605
9606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9610 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9611 then :
9612 printf %s "(cached) " >&6
9613 else $as_nop
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 int i;
9617 _ACEOF
9618 if ac_fn_c_try_compile "$LINENO"
9619 then :
9620 xorg_cv_cc_flag_unknown_warning_option=yes
9621 else $as_nop
9622 xorg_cv_cc_flag_unknown_warning_option=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9625 fi
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9627 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9629 CFLAGS="$xorg_testset_save_CFLAGS"
9630 fi
9631
9632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635 fi
9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9640 then :
9641 printf %s "(cached) " >&6
9642 else $as_nop
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 int i;
9646 _ACEOF
9647 if ac_fn_c_try_compile "$LINENO"
9648 then :
9649 xorg_cv_cc_flag_unused_command_line_argument=yes
9650 else $as_nop
9651 xorg_cv_cc_flag_unused_command_line_argument=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9654 fi
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9658 CFLAGS="$xorg_testset_save_CFLAGS"
9659 fi
9660
9661 found="no"
9662
9663 if test $found = "no" ; then
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 fi
9667
9668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9670 fi
9671
9672 CFLAGS="$CFLAGS -Wmain"
9673
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9675 printf %s "checking if $CC supports -Wmain... " >&6; }
9676 cacheid=xorg_cv_cc_flag__Wmain
9677 if eval test \${$cacheid+y}
9678 then :
9679 printf %s "(cached) " >&6
9680 else $as_nop
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 int i;
9684 int
9685 main (void)
9686 {
9687
9688 ;
9689 return 0;
9690 }
9691 _ACEOF
9692 if ac_fn_c_try_link "$LINENO"
9693 then :
9694 eval $cacheid=yes
9695 else $as_nop
9696 eval $cacheid=no
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9699 conftest$ac_exeext conftest.$ac_ext
9700 fi
9701
9702
9703 CFLAGS="$xorg_testset_save_CFLAGS"
9704
9705 eval supported=\$$cacheid
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9707 printf "%s\n" "$supported" >&6; }
9708 if test "$supported" = "yes" ; then
9709 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9710 found="yes"
9711 fi
9712 fi
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728 xorg_testset_save_CFLAGS="$CFLAGS"
9729
9730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9733 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9734 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9735 then :
9736 printf %s "(cached) " >&6
9737 else $as_nop
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"
9743 then :
9744 xorg_cv_cc_flag_unknown_warning_option=yes
9745 else $as_nop
9746 xorg_cv_cc_flag_unknown_warning_option=no
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9749 fi
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753 CFLAGS="$xorg_testset_save_CFLAGS"
9754 fi
9755
9756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759 fi
9760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9764 then :
9765 printf %s "(cached) " >&6
9766 else $as_nop
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 int i;
9770 _ACEOF
9771 if ac_fn_c_try_compile "$LINENO"
9772 then :
9773 xorg_cv_cc_flag_unused_command_line_argument=yes
9774 else $as_nop
9775 xorg_cv_cc_flag_unused_command_line_argument=no
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9778 fi
9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9780 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783 fi
9784
9785 found="no"
9786
9787 if test $found = "no" ; then
9788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790 fi
9791
9792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9794 fi
9795
9796 CFLAGS="$CFLAGS -Wmissing-braces"
9797
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9799 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9800 cacheid=xorg_cv_cc_flag__Wmissing_braces
9801 if eval test \${$cacheid+y}
9802 then :
9803 printf %s "(cached) " >&6
9804 else $as_nop
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 int i;
9808 int
9809 main (void)
9810 {
9811
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"
9817 then :
9818 eval $cacheid=yes
9819 else $as_nop
9820 eval $cacheid=no
9821 fi
9822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9823 conftest$ac_exeext conftest.$ac_ext
9824 fi
9825
9826
9827 CFLAGS="$xorg_testset_save_CFLAGS"
9828
9829 eval supported=\$$cacheid
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9831 printf "%s\n" "$supported" >&6; }
9832 if test "$supported" = "yes" ; then
9833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9834 found="yes"
9835 fi
9836 fi
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852 xorg_testset_save_CFLAGS="$CFLAGS"
9853
9854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9857 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9858 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9859 then :
9860 printf %s "(cached) " >&6
9861 else $as_nop
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9864 int i;
9865 _ACEOF
9866 if ac_fn_c_try_compile "$LINENO"
9867 then :
9868 xorg_cv_cc_flag_unknown_warning_option=yes
9869 else $as_nop
9870 xorg_cv_cc_flag_unknown_warning_option=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9873 fi
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9877 CFLAGS="$xorg_testset_save_CFLAGS"
9878 fi
9879
9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883 fi
9884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9888 then :
9889 printf %s "(cached) " >&6
9890 else $as_nop
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 int i;
9894 _ACEOF
9895 if ac_fn_c_try_compile "$LINENO"
9896 then :
9897 xorg_cv_cc_flag_unused_command_line_argument=yes
9898 else $as_nop
9899 xorg_cv_cc_flag_unused_command_line_argument=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9902 fi
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9904 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9907 fi
9908
9909 found="no"
9910
9911 if test $found = "no" ; then
9912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914 fi
9915
9916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9918 fi
9919
9920 CFLAGS="$CFLAGS -Wsequence-point"
9921
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9923 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9924 cacheid=xorg_cv_cc_flag__Wsequence_point
9925 if eval test \${$cacheid+y}
9926 then :
9927 printf %s "(cached) " >&6
9928 else $as_nop
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9931 int i;
9932 int
9933 main (void)
9934 {
9935
9936 ;
9937 return 0;
9938 }
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"
9941 then :
9942 eval $cacheid=yes
9943 else $as_nop
9944 eval $cacheid=no
9945 fi
9946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9947 conftest$ac_exeext conftest.$ac_ext
9948 fi
9949
9950
9951 CFLAGS="$xorg_testset_save_CFLAGS"
9952
9953 eval supported=\$$cacheid
9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9955 printf "%s\n" "$supported" >&6; }
9956 if test "$supported" = "yes" ; then
9957 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9958 found="yes"
9959 fi
9960 fi
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976 xorg_testset_save_CFLAGS="$CFLAGS"
9977
9978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9981 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9982 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9983 then :
9984 printf %s "(cached) " >&6
9985 else $as_nop
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 int i;
9989 _ACEOF
9990 if ac_fn_c_try_compile "$LINENO"
9991 then :
9992 xorg_cv_cc_flag_unknown_warning_option=yes
9993 else $as_nop
9994 xorg_cv_cc_flag_unknown_warning_option=no
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9997 fi
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9999 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10001 CFLAGS="$xorg_testset_save_CFLAGS"
10002 fi
10003
10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007 fi
10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10012 then :
10013 printf %s "(cached) " >&6
10014 else $as_nop
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 int i;
10018 _ACEOF
10019 if ac_fn_c_try_compile "$LINENO"
10020 then :
10021 xorg_cv_cc_flag_unused_command_line_argument=yes
10022 else $as_nop
10023 xorg_cv_cc_flag_unused_command_line_argument=no
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10026 fi
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10028 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10030 CFLAGS="$xorg_testset_save_CFLAGS"
10031 fi
10032
10033 found="no"
10034
10035 if test $found = "no" ; then
10036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038 fi
10039
10040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10042 fi
10043
10044 CFLAGS="$CFLAGS -Wreturn-type"
10045
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10047 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10048 cacheid=xorg_cv_cc_flag__Wreturn_type
10049 if eval test \${$cacheid+y}
10050 then :
10051 printf %s "(cached) " >&6
10052 else $as_nop
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 int
10057 main (void)
10058 {
10059
10060 ;
10061 return 0;
10062 }
10063 _ACEOF
10064 if ac_fn_c_try_link "$LINENO"
10065 then :
10066 eval $cacheid=yes
10067 else $as_nop
10068 eval $cacheid=no
10069 fi
10070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10071 conftest$ac_exeext conftest.$ac_ext
10072 fi
10073
10074
10075 CFLAGS="$xorg_testset_save_CFLAGS"
10076
10077 eval supported=\$$cacheid
10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10079 printf "%s\n" "$supported" >&6; }
10080 if test "$supported" = "yes" ; then
10081 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10082 found="yes"
10083 fi
10084 fi
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100 xorg_testset_save_CFLAGS="$CFLAGS"
10101
10102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10105 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10106 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10107 then :
10108 printf %s "(cached) " >&6
10109 else $as_nop
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112 int i;
10113 _ACEOF
10114 if ac_fn_c_try_compile "$LINENO"
10115 then :
10116 xorg_cv_cc_flag_unknown_warning_option=yes
10117 else $as_nop
10118 xorg_cv_cc_flag_unknown_warning_option=no
10119 fi
10120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10121 fi
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10123 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10125 CFLAGS="$xorg_testset_save_CFLAGS"
10126 fi
10127
10128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131 fi
10132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10136 then :
10137 printf %s "(cached) " >&6
10138 else $as_nop
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141 int i;
10142 _ACEOF
10143 if ac_fn_c_try_compile "$LINENO"
10144 then :
10145 xorg_cv_cc_flag_unused_command_line_argument=yes
10146 else $as_nop
10147 xorg_cv_cc_flag_unused_command_line_argument=no
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10150 fi
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10152 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10154 CFLAGS="$xorg_testset_save_CFLAGS"
10155 fi
10156
10157 found="no"
10158
10159 if test $found = "no" ; then
10160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10162 fi
10163
10164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10166 fi
10167
10168 CFLAGS="$CFLAGS -Wtrigraphs"
10169
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10171 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10172 cacheid=xorg_cv_cc_flag__Wtrigraphs
10173 if eval test \${$cacheid+y}
10174 then :
10175 printf %s "(cached) " >&6
10176 else $as_nop
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 int i;
10180 int
10181 main (void)
10182 {
10183
10184 ;
10185 return 0;
10186 }
10187 _ACEOF
10188 if ac_fn_c_try_link "$LINENO"
10189 then :
10190 eval $cacheid=yes
10191 else $as_nop
10192 eval $cacheid=no
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10195 conftest$ac_exeext conftest.$ac_ext
10196 fi
10197
10198
10199 CFLAGS="$xorg_testset_save_CFLAGS"
10200
10201 eval supported=\$$cacheid
10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10203 printf "%s\n" "$supported" >&6; }
10204 if test "$supported" = "yes" ; then
10205 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10206 found="yes"
10207 fi
10208 fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224 xorg_testset_save_CFLAGS="$CFLAGS"
10225
10226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10229 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10230 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10231 then :
10232 printf %s "(cached) " >&6
10233 else $as_nop
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 int i;
10237 _ACEOF
10238 if ac_fn_c_try_compile "$LINENO"
10239 then :
10240 xorg_cv_cc_flag_unknown_warning_option=yes
10241 else $as_nop
10242 xorg_cv_cc_flag_unknown_warning_option=no
10243 fi
10244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10245 fi
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10247 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10249 CFLAGS="$xorg_testset_save_CFLAGS"
10250 fi
10251
10252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255 fi
10256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10258 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10259 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10260 then :
10261 printf %s "(cached) " >&6
10262 else $as_nop
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 int i;
10266 _ACEOF
10267 if ac_fn_c_try_compile "$LINENO"
10268 then :
10269 xorg_cv_cc_flag_unused_command_line_argument=yes
10270 else $as_nop
10271 xorg_cv_cc_flag_unused_command_line_argument=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10274 fi
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10276 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10278 CFLAGS="$xorg_testset_save_CFLAGS"
10279 fi
10280
10281 found="no"
10282
10283 if test $found = "no" ; then
10284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286 fi
10287
10288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290 fi
10291
10292 CFLAGS="$CFLAGS -Warray-bounds"
10293
10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10295 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10296 cacheid=xorg_cv_cc_flag__Warray_bounds
10297 if eval test \${$cacheid+y}
10298 then :
10299 printf %s "(cached) " >&6
10300 else $as_nop
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 int i;
10304 int
10305 main (void)
10306 {
10307
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"
10313 then :
10314 eval $cacheid=yes
10315 else $as_nop
10316 eval $cacheid=no
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10319 conftest$ac_exeext conftest.$ac_ext
10320 fi
10321
10322
10323 CFLAGS="$xorg_testset_save_CFLAGS"
10324
10325 eval supported=\$$cacheid
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10327 printf "%s\n" "$supported" >&6; }
10328 if test "$supported" = "yes" ; then
10329 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10330 found="yes"
10331 fi
10332 fi
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 xorg_testset_save_CFLAGS="$CFLAGS"
10349
10350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10353 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10354 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10355 then :
10356 printf %s "(cached) " >&6
10357 else $as_nop
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360 int i;
10361 _ACEOF
10362 if ac_fn_c_try_compile "$LINENO"
10363 then :
10364 xorg_cv_cc_flag_unknown_warning_option=yes
10365 else $as_nop
10366 xorg_cv_cc_flag_unknown_warning_option=no
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10369 fi
10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10371 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10373 CFLAGS="$xorg_testset_save_CFLAGS"
10374 fi
10375
10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379 fi
10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10382 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10383 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10384 then :
10385 printf %s "(cached) " >&6
10386 else $as_nop
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10389 int i;
10390 _ACEOF
10391 if ac_fn_c_try_compile "$LINENO"
10392 then :
10393 xorg_cv_cc_flag_unused_command_line_argument=yes
10394 else $as_nop
10395 xorg_cv_cc_flag_unused_command_line_argument=no
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10398 fi
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10402 CFLAGS="$xorg_testset_save_CFLAGS"
10403 fi
10404
10405 found="no"
10406
10407 if test $found = "no" ; then
10408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10410 fi
10411
10412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10414 fi
10415
10416 CFLAGS="$CFLAGS -Wwrite-strings"
10417
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10419 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10420 cacheid=xorg_cv_cc_flag__Wwrite_strings
10421 if eval test \${$cacheid+y}
10422 then :
10423 printf %s "(cached) " >&6
10424 else $as_nop
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 int i;
10428 int
10429 main (void)
10430 {
10431
10432 ;
10433 return 0;
10434 }
10435 _ACEOF
10436 if ac_fn_c_try_link "$LINENO"
10437 then :
10438 eval $cacheid=yes
10439 else $as_nop
10440 eval $cacheid=no
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10443 conftest$ac_exeext conftest.$ac_ext
10444 fi
10445
10446
10447 CFLAGS="$xorg_testset_save_CFLAGS"
10448
10449 eval supported=\$$cacheid
10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10451 printf "%s\n" "$supported" >&6; }
10452 if test "$supported" = "yes" ; then
10453 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10454 found="yes"
10455 fi
10456 fi
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 xorg_testset_save_CFLAGS="$CFLAGS"
10473
10474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10477 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10478 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10479 then :
10480 printf %s "(cached) " >&6
10481 else $as_nop
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 int i;
10485 _ACEOF
10486 if ac_fn_c_try_compile "$LINENO"
10487 then :
10488 xorg_cv_cc_flag_unknown_warning_option=yes
10489 else $as_nop
10490 xorg_cv_cc_flag_unknown_warning_option=no
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10493 fi
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10495 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10497 CFLAGS="$xorg_testset_save_CFLAGS"
10498 fi
10499
10500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10503 fi
10504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10506 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10507 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10508 then :
10509 printf %s "(cached) " >&6
10510 else $as_nop
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513 int i;
10514 _ACEOF
10515 if ac_fn_c_try_compile "$LINENO"
10516 then :
10517 xorg_cv_cc_flag_unused_command_line_argument=yes
10518 else $as_nop
10519 xorg_cv_cc_flag_unused_command_line_argument=no
10520 fi
10521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10522 fi
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10524 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10526 CFLAGS="$xorg_testset_save_CFLAGS"
10527 fi
10528
10529 found="no"
10530
10531 if test $found = "no" ; then
10532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10534 fi
10535
10536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10538 fi
10539
10540 CFLAGS="$CFLAGS -Waddress"
10541
10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10543 printf %s "checking if $CC supports -Waddress... " >&6; }
10544 cacheid=xorg_cv_cc_flag__Waddress
10545 if eval test \${$cacheid+y}
10546 then :
10547 printf %s "(cached) " >&6
10548 else $as_nop
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551 int i;
10552 int
10553 main (void)
10554 {
10555
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_link "$LINENO"
10561 then :
10562 eval $cacheid=yes
10563 else $as_nop
10564 eval $cacheid=no
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10567 conftest$ac_exeext conftest.$ac_ext
10568 fi
10569
10570
10571 CFLAGS="$xorg_testset_save_CFLAGS"
10572
10573 eval supported=\$$cacheid
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10575 printf "%s\n" "$supported" >&6; }
10576 if test "$supported" = "yes" ; then
10577 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10578 found="yes"
10579 fi
10580 fi
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596 xorg_testset_save_CFLAGS="$CFLAGS"
10597
10598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10601 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10602 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10603 then :
10604 printf %s "(cached) " >&6
10605 else $as_nop
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 int i;
10609 _ACEOF
10610 if ac_fn_c_try_compile "$LINENO"
10611 then :
10612 xorg_cv_cc_flag_unknown_warning_option=yes
10613 else $as_nop
10614 xorg_cv_cc_flag_unknown_warning_option=no
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10617 fi
10618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10619 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10621 CFLAGS="$xorg_testset_save_CFLAGS"
10622 fi
10623
10624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10627 fi
10628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10630 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10631 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
10642 else $as_nop
10643 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
10648 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10650 CFLAGS="$xorg_testset_save_CFLAGS"
10651 fi
10652
10653 found="no"
10654
10655 if test $found = "no" ; then
10656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10658 fi
10659
10660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10662 fi
10663
10664 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10665
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10667 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10668 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10669 if eval test \${$cacheid+y}
10670 then :
10671 printf %s "(cached) " >&6
10672 else $as_nop
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675 int i;
10676 int
10677 main (void)
10678 {
10679
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"
10685 then :
10686 eval $cacheid=yes
10687 else $as_nop
10688 eval $cacheid=no
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10691 conftest$ac_exeext conftest.$ac_ext
10692 fi
10693
10694
10695 CFLAGS="$xorg_testset_save_CFLAGS"
10696
10697 eval supported=\$$cacheid
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10699 printf "%s\n" "$supported" >&6; }
10700 if test "$supported" = "yes" ; then
10701 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10702 found="yes"
10703 fi
10704 fi
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720 xorg_testset_save_CFLAGS="$CFLAGS"
10721
10722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10725 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10726 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10727 then :
10728 printf %s "(cached) " >&6
10729 else $as_nop
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 int i;
10733 _ACEOF
10734 if ac_fn_c_try_compile "$LINENO"
10735 then :
10736 xorg_cv_cc_flag_unknown_warning_option=yes
10737 else $as_nop
10738 xorg_cv_cc_flag_unknown_warning_option=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10741 fi
10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10743 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10745 CFLAGS="$xorg_testset_save_CFLAGS"
10746 fi
10747
10748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10751 fi
10752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10755 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
10766 else $as_nop
10767 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
10772 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10774 CFLAGS="$xorg_testset_save_CFLAGS"
10775 fi
10776
10777 found="no"
10778
10779 if test $found = "no" ; then
10780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10782 fi
10783
10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10786 fi
10787
10788 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10789
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10791 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10792 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10793 if eval test \${$cacheid+y}
10794 then :
10795 printf %s "(cached) " >&6
10796 else $as_nop
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 int i;
10800 int
10801 main (void)
10802 {
10803
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_link "$LINENO"
10809 then :
10810 eval $cacheid=yes
10811 else $as_nop
10812 eval $cacheid=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10815 conftest$ac_exeext conftest.$ac_ext
10816 fi
10817
10818
10819 CFLAGS="$xorg_testset_save_CFLAGS"
10820
10821 eval supported=\$$cacheid
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10823 printf "%s\n" "$supported" >&6; }
10824 if test "$supported" = "yes" ; then
10825 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10826 found="yes"
10827 fi
10828 fi
10829
10830
10831 fi
10832
10833
10834
10835
10836
10837
10838
10839 CWARNFLAGS="$BASE_CFLAGS"
10840 if test "x$GCC" = xyes ; then
10841 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10842 fi
10843
10844
10845
10846
10847
10848
10849
10850
10851 # Check whether --enable-strict-compilation was given.
10852 if test ${enable_strict_compilation+y}
10853 then :
10854 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10855 else $as_nop
10856 STRICT_COMPILE=no
10857 fi
10858
10859
10860
10861
10862
10863
10864 STRICT_CFLAGS=""
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878 xorg_testset_save_CFLAGS="$CFLAGS"
10879
10880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10885 then :
10886 printf %s "(cached) " >&6
10887 else $as_nop
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890 int i;
10891 _ACEOF
10892 if ac_fn_c_try_compile "$LINENO"
10893 then :
10894 xorg_cv_cc_flag_unknown_warning_option=yes
10895 else $as_nop
10896 xorg_cv_cc_flag_unknown_warning_option=no
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10899 fi
10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10903 CFLAGS="$xorg_testset_save_CFLAGS"
10904 fi
10905
10906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10909 fi
10910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10914 then :
10915 printf %s "(cached) " >&6
10916 else $as_nop
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 int i;
10920 _ACEOF
10921 if ac_fn_c_try_compile "$LINENO"
10922 then :
10923 xorg_cv_cc_flag_unused_command_line_argument=yes
10924 else $as_nop
10925 xorg_cv_cc_flag_unused_command_line_argument=no
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10928 fi
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10930 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10932 CFLAGS="$xorg_testset_save_CFLAGS"
10933 fi
10934
10935 found="no"
10936
10937 if test $found = "no" ; then
10938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10940 fi
10941
10942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10944 fi
10945
10946 CFLAGS="$CFLAGS -pedantic"
10947
10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10949 printf %s "checking if $CC supports -pedantic... " >&6; }
10950 cacheid=xorg_cv_cc_flag__pedantic
10951 if eval test \${$cacheid+y}
10952 then :
10953 printf %s "(cached) " >&6
10954 else $as_nop
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 int i;
10958 int
10959 main (void)
10960 {
10961
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"
10967 then :
10968 eval $cacheid=yes
10969 else $as_nop
10970 eval $cacheid=no
10971 fi
10972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10973 conftest$ac_exeext conftest.$ac_ext
10974 fi
10975
10976
10977 CFLAGS="$xorg_testset_save_CFLAGS"
10978
10979 eval supported=\$$cacheid
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10981 printf "%s\n" "$supported" >&6; }
10982 if test "$supported" = "yes" ; then
10983 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10984 found="yes"
10985 fi
10986 fi
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002 xorg_testset_save_CFLAGS="$CFLAGS"
11003
11004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11007 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11008 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11009 then :
11010 printf %s "(cached) " >&6
11011 else $as_nop
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11014 int i;
11015 _ACEOF
11016 if ac_fn_c_try_compile "$LINENO"
11017 then :
11018 xorg_cv_cc_flag_unknown_warning_option=yes
11019 else $as_nop
11020 xorg_cv_cc_flag_unknown_warning_option=no
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11023 fi
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11025 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11027 CFLAGS="$xorg_testset_save_CFLAGS"
11028 fi
11029
11030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11033 fi
11034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11036 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11037 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11038 then :
11039 printf %s "(cached) " >&6
11040 else $as_nop
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043 int i;
11044 _ACEOF
11045 if ac_fn_c_try_compile "$LINENO"
11046 then :
11047 xorg_cv_cc_flag_unused_command_line_argument=yes
11048 else $as_nop
11049 xorg_cv_cc_flag_unused_command_line_argument=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11052 fi
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11054 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11056 CFLAGS="$xorg_testset_save_CFLAGS"
11057 fi
11058
11059 found="no"
11060
11061 if test $found = "no" ; then
11062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11064 fi
11065
11066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11068 fi
11069
11070 CFLAGS="$CFLAGS -Werror"
11071
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11073 printf %s "checking if $CC supports -Werror... " >&6; }
11074 cacheid=xorg_cv_cc_flag__Werror
11075 if eval test \${$cacheid+y}
11076 then :
11077 printf %s "(cached) " >&6
11078 else $as_nop
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 int i;
11082 int
11083 main (void)
11084 {
11085
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"
11091 then :
11092 eval $cacheid=yes
11093 else $as_nop
11094 eval $cacheid=no
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11097 conftest$ac_exeext conftest.$ac_ext
11098 fi
11099
11100
11101 CFLAGS="$xorg_testset_save_CFLAGS"
11102
11103 eval supported=\$$cacheid
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11105 printf "%s\n" "$supported" >&6; }
11106 if test "$supported" = "yes" ; then
11107 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11108 found="yes"
11109 fi
11110 fi
11111
11112 if test $found = "no" ; then
11113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11115 fi
11116
11117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11119 fi
11120
11121 CFLAGS="$CFLAGS -errwarn"
11122
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11124 printf %s "checking if $CC supports -errwarn... " >&6; }
11125 cacheid=xorg_cv_cc_flag__errwarn
11126 if eval test \${$cacheid+y}
11127 then :
11128 printf %s "(cached) " >&6
11129 else $as_nop
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132 int i;
11133 int
11134 main (void)
11135 {
11136
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"
11142 then :
11143 eval $cacheid=yes
11144 else $as_nop
11145 eval $cacheid=no
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11148 conftest$ac_exeext conftest.$ac_ext
11149 fi
11150
11151
11152 CFLAGS="$xorg_testset_save_CFLAGS"
11153
11154 eval supported=\$$cacheid
11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11156 printf "%s\n" "$supported" >&6; }
11157 if test "$supported" = "yes" ; then
11158 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11159 found="yes"
11160 fi
11161 fi
11162
11163
11164
11165 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11166 # activate it with -Werror, so we add it here explicitly.
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180 xorg_testset_save_CFLAGS="$CFLAGS"
11181
11182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11187 then :
11188 printf %s "(cached) " >&6
11189 else $as_nop
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11192 int i;
11193 _ACEOF
11194 if ac_fn_c_try_compile "$LINENO"
11195 then :
11196 xorg_cv_cc_flag_unknown_warning_option=yes
11197 else $as_nop
11198 xorg_cv_cc_flag_unknown_warning_option=no
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11201 fi
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11203 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11205 CFLAGS="$xorg_testset_save_CFLAGS"
11206 fi
11207
11208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11211 fi
11212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11216 then :
11217 printf %s "(cached) " >&6
11218 else $as_nop
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 int i;
11222 _ACEOF
11223 if ac_fn_c_try_compile "$LINENO"
11224 then :
11225 xorg_cv_cc_flag_unused_command_line_argument=yes
11226 else $as_nop
11227 xorg_cv_cc_flag_unused_command_line_argument=no
11228 fi
11229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11230 fi
11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11232 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11234 CFLAGS="$xorg_testset_save_CFLAGS"
11235 fi
11236
11237 found="no"
11238
11239 if test $found = "no" ; then
11240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11242 fi
11243
11244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11246 fi
11247
11248 CFLAGS="$CFLAGS -Werror=attributes"
11249
11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11251 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11252 cacheid=xorg_cv_cc_flag__Werror_attributes
11253 if eval test \${$cacheid+y}
11254 then :
11255 printf %s "(cached) " >&6
11256 else $as_nop
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11259 int i;
11260 int
11261 main (void)
11262 {
11263
11264 ;
11265 return 0;
11266 }
11267 _ACEOF
11268 if ac_fn_c_try_link "$LINENO"
11269 then :
11270 eval $cacheid=yes
11271 else $as_nop
11272 eval $cacheid=no
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11275 conftest$ac_exeext conftest.$ac_ext
11276 fi
11277
11278
11279 CFLAGS="$xorg_testset_save_CFLAGS"
11280
11281 eval supported=\$$cacheid
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11283 printf "%s\n" "$supported" >&6; }
11284 if test "$supported" = "yes" ; then
11285 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11286 found="yes"
11287 fi
11288 fi
11289
11290
11291
11292 if test "x$STRICT_COMPILE" = "xyes"; then
11293 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11294 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11295 fi
11296
11297
11298
11299
11300
11301
11302 cat >>confdefs.h <<_ACEOF
11303 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11304 _ACEOF
11305
11306 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11307 if test "x$PVM" = "x"; then
11308 PVM="0"
11309 fi
11310
11311 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11312
11313 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11314 if test "x$PVP" = "x"; then
11315 PVP="0"
11316 fi
11317
11318 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11319
11320
11321
11322 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11323 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11324 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11325 touch \$(top_srcdir)/ChangeLog; \
11326 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11327
11328
11329
11330
11331 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11332 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11333 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11334 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11335 touch \$(top_srcdir)/INSTALL; \
11336 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11337
11338
11339
11340
11341
11342
11343 case $host_os in
11344 solaris*)
11345 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11346 # check for a man page file found in later versions that use
11347 # traditional section numbers instead
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11349 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11350 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11351 then :
11352 printf %s "(cached) " >&6
11353 else $as_nop
11354 test "$cross_compiling" = yes &&
11355 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11356 if test -r "/usr/share/man/man7/attributes.7"; then
11357 ac_cv_file__usr_share_man_man7_attributes_7=yes
11358 else
11359 ac_cv_file__usr_share_man_man7_attributes_7=no
11360 fi
11361 fi
11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11363 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11364 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11365 then :
11366 SYSV_MAN_SECTIONS=false
11367 else $as_nop
11368 SYSV_MAN_SECTIONS=true
11369 fi
11370
11371 ;;
11372 *) SYSV_MAN_SECTIONS=false ;;
11373 esac
11374
11375 if test x$APP_MAN_SUFFIX = x ; then
11376 APP_MAN_SUFFIX=1
11377 fi
11378 if test x$APP_MAN_DIR = x ; then
11379 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11380 fi
11381
11382 if test x$LIB_MAN_SUFFIX = x ; then
11383 LIB_MAN_SUFFIX=3
11384 fi
11385 if test x$LIB_MAN_DIR = x ; then
11386 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11387 fi
11388
11389 if test x$FILE_MAN_SUFFIX = x ; then
11390 case $SYSV_MAN_SECTIONS in
11391 true) FILE_MAN_SUFFIX=4 ;;
11392 *) FILE_MAN_SUFFIX=5 ;;
11393 esac
11394 fi
11395 if test x$FILE_MAN_DIR = x ; then
11396 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11397 fi
11398
11399 if test x$MISC_MAN_SUFFIX = x ; then
11400 case $SYSV_MAN_SECTIONS in
11401 true) MISC_MAN_SUFFIX=5 ;;
11402 *) MISC_MAN_SUFFIX=7 ;;
11403 esac
11404 fi
11405 if test x$MISC_MAN_DIR = x ; then
11406 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11407 fi
11408
11409 if test x$DRIVER_MAN_SUFFIX = x ; then
11410 case $SYSV_MAN_SECTIONS in
11411 true) DRIVER_MAN_SUFFIX=7 ;;
11412 *) DRIVER_MAN_SUFFIX=4 ;;
11413 esac
11414 fi
11415 if test x$DRIVER_MAN_DIR = x ; then
11416 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11417 fi
11418
11419 if test x$ADMIN_MAN_SUFFIX = x ; then
11420 case $SYSV_MAN_SECTIONS in
11421 true) ADMIN_MAN_SUFFIX=1m ;;
11422 *) ADMIN_MAN_SUFFIX=8 ;;
11423 esac
11424 fi
11425 if test x$ADMIN_MAN_DIR = x ; then
11426 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11427 fi
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443 XORG_MAN_PAGE="X Version 11"
11444
11445 MAN_SUBSTS="\
11446 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11447 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11448 -e 's|__xservername__|Xorg|g' \
11449 -e 's|__xconfigfile__|xorg.conf|g' \
11450 -e 's|__projectroot__|\$(prefix)|g' \
11451 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11452 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11453 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11454 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11455 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11456 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11457 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11458
11459
11460
11461 # Check whether --enable-silent-rules was given.
11462 if test ${enable_silent_rules+y}
11463 then :
11464 enableval=$enable_silent_rules;
11465 fi
11466
11467 case $enable_silent_rules in # (((
11468 yes) AM_DEFAULT_VERBOSITY=0;;
11469 no) AM_DEFAULT_VERBOSITY=1;;
11470 *) AM_DEFAULT_VERBOSITY=0;;
11471 esac
11472 am_make=${MAKE-make}
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11474 printf %s "checking whether $am_make supports nested variables... " >&6; }
11475 if test ${am_cv_make_support_nested_variables+y}
11476 then :
11477 printf %s "(cached) " >&6
11478 else $as_nop
11479 if printf "%s\n" 'TRUE=$(BAR$(V))
11480 BAR0=false
11481 BAR1=true
11482 V=1
11483 am__doit:
11484 @$(TRUE)
11485 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11486 am_cv_make_support_nested_variables=yes
11487 else
11488 am_cv_make_support_nested_variables=no
11489 fi
11490 fi
11491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11492 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11493 if test $am_cv_make_support_nested_variables = yes; then
11494 AM_V='$(V)'
11495 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11496 else
11497 AM_V=$AM_DEFAULT_VERBOSITY
11498 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11499 fi
11500 AM_BACKSLASH='\'
11501
11502
11503
11504 # Initialize libtool
11505 # Check whether --enable-static was given.
11506 if test ${enable_static+y}
11507 then :
11508 enableval=$enable_static; p=${PACKAGE-default}
11509 case $enableval in
11510 yes) enable_static=yes ;;
11511 no) enable_static=no ;;
11512 *)
11513 enable_static=no
11514 # Look at the argument we got. We use all the common list separators.
11515 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11516 for pkg in $enableval; do
11517 IFS=$lt_save_ifs
11518 if test "X$pkg" = "X$p"; then
11519 enable_static=yes
11520 fi
11521 done
11522 IFS=$lt_save_ifs
11523 ;;
11524 esac
11525 else $as_nop
11526 enable_static=no
11527 fi
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537 case `pwd` in
11538 *\ * | *\ *)
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11540 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11541 esac
11542
11543
11544
11545 macro_version='2.4.6'
11546 macro_revision='2.4.6'
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561 ltmain=$ac_aux_dir/ltmain.sh
11562
11563 # Backslashify metacharacters that are still active within
11564 # double-quoted strings.
11565 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11566
11567 # Same as above, but do not quote variable references.
11568 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11569
11570 # Sed substitution to delay expansion of an escaped shell variable in a
11571 # double_quote_subst'ed string.
11572 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11573
11574 # Sed substitution to delay expansion of an escaped single quote.
11575 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11576
11577 # Sed substitution to avoid accidental globbing in evaled expressions
11578 no_glob_subst='s/\*/\\\*/g'
11579
11580 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11581 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11582 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11583
11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11585 printf %s "checking how to print strings... " >&6; }
11586 # Test print first, because it will be a builtin if present.
11587 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11588 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11589 ECHO='print -r --'
11590 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11591 ECHO='printf %s\n'
11592 else
11593 # Use this function as a fallback that always works.
11594 func_fallback_echo ()
11595 {
11596 eval 'cat <<_LTECHO_EOF
11597 $1
11598 _LTECHO_EOF'
11599 }
11600 ECHO='func_fallback_echo'
11601 fi
11602
11603 # func_echo_all arg...
11604 # Invoke $ECHO with all args, space-separated.
11605 func_echo_all ()
11606 {
11607 $ECHO ""
11608 }
11609
11610 case $ECHO in
11611 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11612 printf "%s\n" "printf" >&6; } ;;
11613 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11614 printf "%s\n" "print -r" >&6; } ;;
11615 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11616 printf "%s\n" "cat" >&6; } ;;
11617 esac
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11633 printf %s "checking for a sed that does not truncate output... " >&6; }
11634 if test ${ac_cv_path_SED+y}
11635 then :
11636 printf %s "(cached) " >&6
11637 else $as_nop
11638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11639 for ac_i in 1 2 3 4 5 6 7; do
11640 ac_script="$ac_script$as_nl$ac_script"
11641 done
11642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11643 { ac_script=; unset ac_script;}
11644 if test -z "$SED"; then
11645 ac_path_SED_found=false
11646 # Loop through the user's path and test for each of PROGNAME-LIST
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650 IFS=$as_save_IFS
11651 case $as_dir in #(((
11652 '') as_dir=./ ;;
11653 */) ;;
11654 *) as_dir=$as_dir/ ;;
11655 esac
11656 for ac_prog in sed gsed
11657 do
11658 for ac_exec_ext in '' $ac_executable_extensions; do
11659 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11660 as_fn_executable_p "$ac_path_SED" || continue
11661 # Check for GNU ac_path_SED and select it if it is found.
11662 # Check for GNU $ac_path_SED
11663 case `"$ac_path_SED" --version 2>&1` in
11664 *GNU*)
11665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11666 *)
11667 ac_count=0
11668 printf %s 0123456789 >"conftest.in"
11669 while :
11670 do
11671 cat "conftest.in" "conftest.in" >"conftest.tmp"
11672 mv "conftest.tmp" "conftest.in"
11673 cp "conftest.in" "conftest.nl"
11674 printf "%s\n" '' >> "conftest.nl"
11675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11677 as_fn_arith $ac_count + 1 && ac_count=$as_val
11678 if test $ac_count -gt ${ac_path_SED_max-0}; then
11679 # Best one so far, save it but keep looking for a better one
11680 ac_cv_path_SED="$ac_path_SED"
11681 ac_path_SED_max=$ac_count
11682 fi
11683 # 10*(2^10) chars as input seems more than enough
11684 test $ac_count -gt 10 && break
11685 done
11686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11687 esac
11688
11689 $ac_path_SED_found && break 3
11690 done
11691 done
11692 done
11693 IFS=$as_save_IFS
11694 if test -z "$ac_cv_path_SED"; then
11695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11696 fi
11697 else
11698 ac_cv_path_SED=$SED
11699 fi
11700
11701 fi
11702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11703 printf "%s\n" "$ac_cv_path_SED" >&6; }
11704 SED="$ac_cv_path_SED"
11705 rm -f conftest.sed
11706
11707 test -z "$SED" && SED=sed
11708 Xsed="$SED -e 1s/^X//"
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11721 printf %s "checking for grep that handles long lines and -e... " >&6; }
11722 if test ${ac_cv_path_GREP+y}
11723 then :
11724 printf %s "(cached) " >&6
11725 else $as_nop
11726 if test -z "$GREP"; then
11727 ac_path_GREP_found=false
11728 # Loop through the user's path and test for each of PROGNAME-LIST
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11731 do
11732 IFS=$as_save_IFS
11733 case $as_dir in #(((
11734 '') as_dir=./ ;;
11735 */) ;;
11736 *) as_dir=$as_dir/ ;;
11737 esac
11738 for ac_prog in grep ggrep
11739 do
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11742 as_fn_executable_p "$ac_path_GREP" || continue
11743 # Check for GNU ac_path_GREP and select it if it is found.
11744 # Check for GNU $ac_path_GREP
11745 case `"$ac_path_GREP" --version 2>&1` in
11746 *GNU*)
11747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11748 *)
11749 ac_count=0
11750 printf %s 0123456789 >"conftest.in"
11751 while :
11752 do
11753 cat "conftest.in" "conftest.in" >"conftest.tmp"
11754 mv "conftest.tmp" "conftest.in"
11755 cp "conftest.in" "conftest.nl"
11756 printf "%s\n" 'GREP' >> "conftest.nl"
11757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11759 as_fn_arith $ac_count + 1 && ac_count=$as_val
11760 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11761 # Best one so far, save it but keep looking for a better one
11762 ac_cv_path_GREP="$ac_path_GREP"
11763 ac_path_GREP_max=$ac_count
11764 fi
11765 # 10*(2^10) chars as input seems more than enough
11766 test $ac_count -gt 10 && break
11767 done
11768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11769 esac
11770
11771 $ac_path_GREP_found && break 3
11772 done
11773 done
11774 done
11775 IFS=$as_save_IFS
11776 if test -z "$ac_cv_path_GREP"; then
11777 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11778 fi
11779 else
11780 ac_cv_path_GREP=$GREP
11781 fi
11782
11783 fi
11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11785 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11786 GREP="$ac_cv_path_GREP"
11787
11788
11789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11790 printf %s "checking for egrep... " >&6; }
11791 if test ${ac_cv_path_EGREP+y}
11792 then :
11793 printf %s "(cached) " >&6
11794 else $as_nop
11795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11796 then ac_cv_path_EGREP="$GREP -E"
11797 else
11798 if test -z "$EGREP"; then
11799 ac_path_EGREP_found=false
11800 # Loop through the user's path and test for each of PROGNAME-LIST
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11803 do
11804 IFS=$as_save_IFS
11805 case $as_dir in #(((
11806 '') as_dir=./ ;;
11807 */) ;;
11808 *) as_dir=$as_dir/ ;;
11809 esac
11810 for ac_prog in egrep
11811 do
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11814 as_fn_executable_p "$ac_path_EGREP" || continue
11815 # Check for GNU ac_path_EGREP and select it if it is found.
11816 # Check for GNU $ac_path_EGREP
11817 case `"$ac_path_EGREP" --version 2>&1` in
11818 *GNU*)
11819 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11820 *)
11821 ac_count=0
11822 printf %s 0123456789 >"conftest.in"
11823 while :
11824 do
11825 cat "conftest.in" "conftest.in" >"conftest.tmp"
11826 mv "conftest.tmp" "conftest.in"
11827 cp "conftest.in" "conftest.nl"
11828 printf "%s\n" 'EGREP' >> "conftest.nl"
11829 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11831 as_fn_arith $ac_count + 1 && ac_count=$as_val
11832 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11833 # Best one so far, save it but keep looking for a better one
11834 ac_cv_path_EGREP="$ac_path_EGREP"
11835 ac_path_EGREP_max=$ac_count
11836 fi
11837 # 10*(2^10) chars as input seems more than enough
11838 test $ac_count -gt 10 && break
11839 done
11840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11841 esac
11842
11843 $ac_path_EGREP_found && break 3
11844 done
11845 done
11846 done
11847 IFS=$as_save_IFS
11848 if test -z "$ac_cv_path_EGREP"; then
11849 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11850 fi
11851 else
11852 ac_cv_path_EGREP=$EGREP
11853 fi
11854
11855 fi
11856 fi
11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11858 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11859 EGREP="$ac_cv_path_EGREP"
11860
11861
11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11863 printf %s "checking for fgrep... " >&6; }
11864 if test ${ac_cv_path_FGREP+y}
11865 then :
11866 printf %s "(cached) " >&6
11867 else $as_nop
11868 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11869 then ac_cv_path_FGREP="$GREP -F"
11870 else
11871 if test -z "$FGREP"; then
11872 ac_path_FGREP_found=false
11873 # Loop through the user's path and test for each of PROGNAME-LIST
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11876 do
11877 IFS=$as_save_IFS
11878 case $as_dir in #(((
11879 '') as_dir=./ ;;
11880 */) ;;
11881 *) as_dir=$as_dir/ ;;
11882 esac
11883 for ac_prog in fgrep
11884 do
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11887 as_fn_executable_p "$ac_path_FGREP" || continue
11888 # Check for GNU ac_path_FGREP and select it if it is found.
11889 # Check for GNU $ac_path_FGREP
11890 case `"$ac_path_FGREP" --version 2>&1` in
11891 *GNU*)
11892 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11893 *)
11894 ac_count=0
11895 printf %s 0123456789 >"conftest.in"
11896 while :
11897 do
11898 cat "conftest.in" "conftest.in" >"conftest.tmp"
11899 mv "conftest.tmp" "conftest.in"
11900 cp "conftest.in" "conftest.nl"
11901 printf "%s\n" 'FGREP' >> "conftest.nl"
11902 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11904 as_fn_arith $ac_count + 1 && ac_count=$as_val
11905 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11906 # Best one so far, save it but keep looking for a better one
11907 ac_cv_path_FGREP="$ac_path_FGREP"
11908 ac_path_FGREP_max=$ac_count
11909 fi
11910 # 10*(2^10) chars as input seems more than enough
11911 test $ac_count -gt 10 && break
11912 done
11913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11914 esac
11915
11916 $ac_path_FGREP_found && break 3
11917 done
11918 done
11919 done
11920 IFS=$as_save_IFS
11921 if test -z "$ac_cv_path_FGREP"; then
11922 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11923 fi
11924 else
11925 ac_cv_path_FGREP=$FGREP
11926 fi
11927
11928 fi
11929 fi
11930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11931 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11932 FGREP="$ac_cv_path_FGREP"
11933
11934
11935 test -z "$GREP" && GREP=grep
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955 # Check whether --with-gnu-ld was given.
11956 if test ${with_gnu_ld+y}
11957 then :
11958 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11959 else $as_nop
11960 with_gnu_ld=no
11961 fi
11962
11963 ac_prog=ld
11964 if test yes = "$GCC"; then
11965 # Check if gcc -print-prog-name=ld gives a path.
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11967 printf %s "checking for ld used by $CC... " >&6; }
11968 case $host in
11969 *-*-mingw*)
11970 # gcc leaves a trailing carriage return, which upsets mingw
11971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11972 *)
11973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11974 esac
11975 case $ac_prog in
11976 # Accept absolute paths.
11977 [\\/]* | ?:[\\/]*)
11978 re_direlt='/[^/][^/]*/\.\./'
11979 # Canonicalize the pathname of ld
11980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11983 done
11984 test -z "$LD" && LD=$ac_prog
11985 ;;
11986 "")
11987 # If it fails, then pretend we aren't using GCC.
11988 ac_prog=ld
11989 ;;
11990 *)
11991 # If it is relative, then search for the first ld in PATH.
11992 with_gnu_ld=unknown
11993 ;;
11994 esac
11995 elif test yes = "$with_gnu_ld"; then
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11997 printf %s "checking for GNU ld... " >&6; }
11998 else
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12000 printf %s "checking for non-GNU ld... " >&6; }
12001 fi
12002 if test ${lt_cv_path_LD+y}
12003 then :
12004 printf %s "(cached) " >&6
12005 else $as_nop
12006 if test -z "$LD"; then
12007 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12008 for ac_dir in $PATH; do
12009 IFS=$lt_save_ifs
12010 test -z "$ac_dir" && ac_dir=.
12011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12012 lt_cv_path_LD=$ac_dir/$ac_prog
12013 # Check to see if the program is GNU ld. I'd rather use --version,
12014 # but apparently some variants of GNU ld only accept -v.
12015 # Break only if it was the GNU/non-GNU ld that we prefer.
12016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12017 *GNU* | *'with BFD'*)
12018 test no != "$with_gnu_ld" && break
12019 ;;
12020 *)
12021 test yes != "$with_gnu_ld" && break
12022 ;;
12023 esac
12024 fi
12025 done
12026 IFS=$lt_save_ifs
12027 else
12028 lt_cv_path_LD=$LD # Let the user override the test with a path.
12029 fi
12030 fi
12031
12032 LD=$lt_cv_path_LD
12033 if test -n "$LD"; then
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12035 printf "%s\n" "$LD" >&6; }
12036 else
12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 printf "%s\n" "no" >&6; }
12039 fi
12040 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12042 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12043 if test ${lt_cv_prog_gnu_ld+y}
12044 then :
12045 printf %s "(cached) " >&6
12046 else $as_nop
12047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12048 case `$LD -v 2>&1 </dev/null` in
12049 *GNU* | *'with BFD'*)
12050 lt_cv_prog_gnu_ld=yes
12051 ;;
12052 *)
12053 lt_cv_prog_gnu_ld=no
12054 ;;
12055 esac
12056 fi
12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12058 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12059 with_gnu_ld=$lt_cv_prog_gnu_ld
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12070 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12071 if test ${lt_cv_path_NM+y}
12072 then :
12073 printf %s "(cached) " >&6
12074 else $as_nop
12075 if test -n "$NM"; then
12076 # Let the user override the test.
12077 lt_cv_path_NM=$NM
12078 else
12079 lt_nm_to_check=${ac_tool_prefix}nm
12080 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12081 lt_nm_to_check="$lt_nm_to_check nm"
12082 fi
12083 for lt_tmp_nm in $lt_nm_to_check; do
12084 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12085 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12086 IFS=$lt_save_ifs
12087 test -z "$ac_dir" && ac_dir=.
12088 tmp_nm=$ac_dir/$lt_tmp_nm
12089 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12090 # Check to see if the nm accepts a BSD-compat flag.
12091 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12092 # nm: unknown option "B" ignored
12093 # Tru64's nm complains that /dev/null is an invalid object file
12094 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12095 case $build_os in
12096 mingw*) lt_bad_file=conftest.nm/nofile ;;
12097 *) lt_bad_file=/dev/null ;;
12098 esac
12099 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
12100 *$lt_bad_file* | *'Invalid file or object type'*)
12101 lt_cv_path_NM="$tmp_nm -B"
12102 break 2
12103 ;;
12104 *)
12105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12106 */dev/null*)
12107 lt_cv_path_NM="$tmp_nm -p"
12108 break 2
12109 ;;
12110 *)
12111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12112 continue # so that we can try to find one that supports BSD flags
12113 ;;
12114 esac
12115 ;;
12116 esac
12117 fi
12118 done
12119 IFS=$lt_save_ifs
12120 done
12121 : ${lt_cv_path_NM=no}
12122 fi
12123 fi
12124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12125 printf "%s\n" "$lt_cv_path_NM" >&6; }
12126 if test no != "$lt_cv_path_NM"; then
12127 NM=$lt_cv_path_NM
12128 else
12129 # Didn't find any BSD compatible name lister, look for dumpbin.
12130 if test -n "$DUMPBIN"; then :
12131 # Let the user override the test.
12132 else
12133 if test -n "$ac_tool_prefix"; then
12134 for ac_prog in dumpbin "link -dump"
12135 do
12136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 printf %s "checking for $ac_word... " >&6; }
12140 if test ${ac_cv_prog_DUMPBIN+y}
12141 then :
12142 printf %s "(cached) " >&6
12143 else $as_nop
12144 if test -n "$DUMPBIN"; then
12145 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150 IFS=$as_save_IFS
12151 case $as_dir in #(((
12152 '') as_dir=./ ;;
12153 */) ;;
12154 *) as_dir=$as_dir/ ;;
12155 esac
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12158 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12160 break 2
12161 fi
12162 done
12163 done
12164 IFS=$as_save_IFS
12165
12166 fi
12167 fi
12168 DUMPBIN=$ac_cv_prog_DUMPBIN
12169 if test -n "$DUMPBIN"; then
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12171 printf "%s\n" "$DUMPBIN" >&6; }
12172 else
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 printf "%s\n" "no" >&6; }
12175 fi
12176
12177
12178 test -n "$DUMPBIN" && break
12179 done
12180 fi
12181 if test -z "$DUMPBIN"; then
12182 ac_ct_DUMPBIN=$DUMPBIN
12183 for ac_prog in dumpbin "link -dump"
12184 do
12185 # Extract the first word of "$ac_prog", so it can be a program name with args.
12186 set dummy $ac_prog; ac_word=$2
12187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 printf %s "checking for $ac_word... " >&6; }
12189 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12190 then :
12191 printf %s "(cached) " >&6
12192 else $as_nop
12193 if test -n "$ac_ct_DUMPBIN"; then
12194 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12195 else
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12198 do
12199 IFS=$as_save_IFS
12200 case $as_dir in #(((
12201 '') as_dir=./ ;;
12202 */) ;;
12203 *) as_dir=$as_dir/ ;;
12204 esac
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12207 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12209 break 2
12210 fi
12211 done
12212 done
12213 IFS=$as_save_IFS
12214
12215 fi
12216 fi
12217 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12218 if test -n "$ac_ct_DUMPBIN"; then
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12220 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12221 else
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 printf "%s\n" "no" >&6; }
12224 fi
12225
12226
12227 test -n "$ac_ct_DUMPBIN" && break
12228 done
12229
12230 if test "x$ac_ct_DUMPBIN" = x; then
12231 DUMPBIN=":"
12232 else
12233 case $cross_compiling:$ac_tool_warned in
12234 yes:)
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12236 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12237 ac_tool_warned=yes ;;
12238 esac
12239 DUMPBIN=$ac_ct_DUMPBIN
12240 fi
12241 fi
12242
12243 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
12244 *COFF*)
12245 DUMPBIN="$DUMPBIN -symbols -headers"
12246 ;;
12247 *)
12248 DUMPBIN=:
12249 ;;
12250 esac
12251 fi
12252
12253 if test : != "$DUMPBIN"; then
12254 NM=$DUMPBIN
12255 fi
12256 fi
12257 test -z "$NM" && NM=nm
12258
12259
12260
12261
12262
12263
12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12265 printf %s "checking the name lister ($NM) interface... " >&6; }
12266 if test ${lt_cv_nm_interface+y}
12267 then :
12268 printf %s "(cached) " >&6
12269 else $as_nop
12270 lt_cv_nm_interface="BSD nm"
12271 echo "int some_variable = 0;" > conftest.$ac_ext
12272 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12273 (eval "$ac_compile" 2>conftest.err)
12274 cat conftest.err >&5
12275 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12276 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12277 cat conftest.err >&5
12278 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12279 cat conftest.out >&5
12280 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12281 lt_cv_nm_interface="MS dumpbin"
12282 fi
12283 rm -f conftest*
12284 fi
12285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12286 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12287
12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12289 printf %s "checking whether ln -s works... " >&6; }
12290 LN_S=$as_ln_s
12291 if test "$LN_S" = "ln -s"; then
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 printf "%s\n" "yes" >&6; }
12294 else
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12296 printf "%s\n" "no, using $LN_S" >&6; }
12297 fi
12298
12299 # find the maximum length of command line arguments
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12301 printf %s "checking the maximum length of command line arguments... " >&6; }
12302 if test ${lt_cv_sys_max_cmd_len+y}
12303 then :
12304 printf %s "(cached) " >&6
12305 else $as_nop
12306 i=0
12307 teststring=ABCD
12308
12309 case $build_os in
12310 msdosdjgpp*)
12311 # On DJGPP, this test can blow up pretty badly due to problems in libc
12312 # (any single argument exceeding 2000 bytes causes a buffer overrun
12313 # during glob expansion). Even if it were fixed, the result of this
12314 # check would be larger than it should be.
12315 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12316 ;;
12317
12318 gnu*)
12319 # Under GNU Hurd, this test is not required because there is
12320 # no limit to the length of command line arguments.
12321 # Libtool will interpret -1 as no limit whatsoever
12322 lt_cv_sys_max_cmd_len=-1;
12323 ;;
12324
12325 cygwin* | mingw* | cegcc*)
12326 # On Win9x/ME, this test blows up -- it succeeds, but takes
12327 # about 5 minutes as the teststring grows exponentially.
12328 # Worse, since 9x/ME are not pre-emptively multitasking,
12329 # you end up with a "frozen" computer, even though with patience
12330 # the test eventually succeeds (with a max line length of 256k).
12331 # Instead, let's just punt: use the minimum linelength reported by
12332 # all of the supported platforms: 8192 (on NT/2K/XP).
12333 lt_cv_sys_max_cmd_len=8192;
12334 ;;
12335
12336 mint*)
12337 # On MiNT this can take a long time and run out of memory.
12338 lt_cv_sys_max_cmd_len=8192;
12339 ;;
12340
12341 amigaos*)
12342 # On AmigaOS with pdksh, this test takes hours, literally.
12343 # So we just punt and use a minimum line length of 8192.
12344 lt_cv_sys_max_cmd_len=8192;
12345 ;;
12346
12347 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
12348 # This has been around since 386BSD, at least. Likely further.
12349 if test -x /sbin/sysctl; then
12350 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12351 elif test -x /usr/sbin/sysctl; then
12352 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12353 else
12354 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12355 fi
12356 # And add a safety zone
12357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12359 ;;
12360
12361 interix*)
12362 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12363 lt_cv_sys_max_cmd_len=196608
12364 ;;
12365
12366 os2*)
12367 # The test takes a long time on OS/2.
12368 lt_cv_sys_max_cmd_len=8192
12369 ;;
12370
12371 osf*)
12372 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12373 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12374 # nice to cause kernel panics so lets avoid the loop below.
12375 # First set a reasonable default.
12376 lt_cv_sys_max_cmd_len=16384
12377 #
12378 if test -x /sbin/sysconfig; then
12379 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12380 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12381 esac
12382 fi
12383 ;;
12384 sco3.2v5*)
12385 lt_cv_sys_max_cmd_len=102400
12386 ;;
12387 sysv5* | sco5v6* | sysv4.2uw2*)
12388 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12389 if test -n "$kargmax"; then
12390 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12391 else
12392 lt_cv_sys_max_cmd_len=32768
12393 fi
12394 ;;
12395 *)
12396 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12397 if test -n "$lt_cv_sys_max_cmd_len" && \
12398 test undefined != "$lt_cv_sys_max_cmd_len"; then
12399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12401 else
12402 # Make teststring a little bigger before we do anything with it.
12403 # a 1K string should be a reasonable start.
12404 for i in 1 2 3 4 5 6 7 8; do
12405 teststring=$teststring$teststring
12406 done
12407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12408 # If test is not a shell built-in, we'll probably end up computing a
12409 # maximum length that is only half of the actual maximum length, but
12410 # we can't tell.
12411 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12412 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12413 test 17 != "$i" # 1/2 MB should be enough
12414 do
12415 i=`expr $i + 1`
12416 teststring=$teststring$teststring
12417 done
12418 # Only check the string length outside the loop.
12419 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12420 teststring=
12421 # Add a significant safety factor because C++ compilers can tack on
12422 # massive amounts of additional arguments before passing them to the
12423 # linker. It appears as though 1/2 is a usable value.
12424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12425 fi
12426 ;;
12427 esac
12428
12429 fi
12430
12431 if test -n "$lt_cv_sys_max_cmd_len"; then
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12433 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12434 else
12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12436 printf "%s\n" "none" >&6; }
12437 fi
12438 max_cmd_len=$lt_cv_sys_max_cmd_len
12439
12440
12441
12442
12443
12444
12445 : ${CP="cp -f"}
12446 : ${MV="mv -f"}
12447 : ${RM="rm -f"}
12448
12449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12450 lt_unset=unset
12451 else
12452 lt_unset=false
12453 fi
12454
12455
12456
12457
12458
12459 # test EBCDIC or ASCII
12460 case `echo X|tr X '\101'` in
12461 A) # ASCII based system
12462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12463 lt_SP2NL='tr \040 \012'
12464 lt_NL2SP='tr \015\012 \040\040'
12465 ;;
12466 *) # EBCDIC based system
12467 lt_SP2NL='tr \100 \n'
12468 lt_NL2SP='tr \r\n \100\100'
12469 ;;
12470 esac
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12481 printf %s "checking how to convert $build file names to $host format... " >&6; }
12482 if test ${lt_cv_to_host_file_cmd+y}
12483 then :
12484 printf %s "(cached) " >&6
12485 else $as_nop
12486 case $host in
12487 *-*-mingw* )
12488 case $build in
12489 *-*-mingw* ) # actually msys
12490 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12491 ;;
12492 *-*-cygwin* )
12493 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12494 ;;
12495 * ) # otherwise, assume *nix
12496 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12497 ;;
12498 esac
12499 ;;
12500 *-*-cygwin* )
12501 case $build in
12502 *-*-mingw* ) # actually msys
12503 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12504 ;;
12505 *-*-cygwin* )
12506 lt_cv_to_host_file_cmd=func_convert_file_noop
12507 ;;
12508 * ) # otherwise, assume *nix
12509 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12510 ;;
12511 esac
12512 ;;
12513 * ) # unhandled hosts (and "normal" native builds)
12514 lt_cv_to_host_file_cmd=func_convert_file_noop
12515 ;;
12516 esac
12517
12518 fi
12519
12520 to_host_file_cmd=$lt_cv_to_host_file_cmd
12521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12522 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12523
12524
12525
12526
12527
12528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12529 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12530 if test ${lt_cv_to_tool_file_cmd+y}
12531 then :
12532 printf %s "(cached) " >&6
12533 else $as_nop
12534 #assume ordinary cross tools, or native build.
12535 lt_cv_to_tool_file_cmd=func_convert_file_noop
12536 case $host in
12537 *-*-mingw* )
12538 case $build in
12539 *-*-mingw* ) # actually msys
12540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12541 ;;
12542 esac
12543 ;;
12544 esac
12545
12546 fi
12547
12548 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12550 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12551
12552
12553
12554
12555
12556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12557 printf %s "checking for $LD option to reload object files... " >&6; }
12558 if test ${lt_cv_ld_reload_flag+y}
12559 then :
12560 printf %s "(cached) " >&6
12561 else $as_nop
12562 lt_cv_ld_reload_flag='-r'
12563 fi
12564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12565 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12566 reload_flag=$lt_cv_ld_reload_flag
12567 case $reload_flag in
12568 "" | " "*) ;;
12569 *) reload_flag=" $reload_flag" ;;
12570 esac
12571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12572 case $host_os in
12573 cygwin* | mingw* | pw32* | cegcc*)
12574 if test yes != "$GCC"; then
12575 reload_cmds=false
12576 fi
12577 ;;
12578 darwin*)
12579 if test yes = "$GCC"; then
12580 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12581 else
12582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12583 fi
12584 ;;
12585 esac
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595 if test -n "$ac_tool_prefix"; then
12596 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 printf %s "checking for $ac_word... " >&6; }
12600 if test ${ac_cv_prog_OBJDUMP+y}
12601 then :
12602 printf %s "(cached) " >&6
12603 else $as_nop
12604 if test -n "$OBJDUMP"; then
12605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12606 else
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12609 do
12610 IFS=$as_save_IFS
12611 case $as_dir in #(((
12612 '') as_dir=./ ;;
12613 */) ;;
12614 *) as_dir=$as_dir/ ;;
12615 esac
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12618 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12620 break 2
12621 fi
12622 done
12623 done
12624 IFS=$as_save_IFS
12625
12626 fi
12627 fi
12628 OBJDUMP=$ac_cv_prog_OBJDUMP
12629 if test -n "$OBJDUMP"; then
12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12631 printf "%s\n" "$OBJDUMP" >&6; }
12632 else
12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 printf "%s\n" "no" >&6; }
12635 fi
12636
12637
12638 fi
12639 if test -z "$ac_cv_prog_OBJDUMP"; then
12640 ac_ct_OBJDUMP=$OBJDUMP
12641 # Extract the first word of "objdump", so it can be a program name with args.
12642 set dummy objdump; ac_word=$2
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 printf %s "checking for $ac_word... " >&6; }
12645 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12646 then :
12647 printf %s "(cached) " >&6
12648 else $as_nop
12649 if test -n "$ac_ct_OBJDUMP"; then
12650 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12651 else
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12654 do
12655 IFS=$as_save_IFS
12656 case $as_dir in #(((
12657 '') as_dir=./ ;;
12658 */) ;;
12659 *) as_dir=$as_dir/ ;;
12660 esac
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12663 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12665 break 2
12666 fi
12667 done
12668 done
12669 IFS=$as_save_IFS
12670
12671 fi
12672 fi
12673 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12674 if test -n "$ac_ct_OBJDUMP"; then
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12676 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12677 else
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 printf "%s\n" "no" >&6; }
12680 fi
12681
12682 if test "x$ac_ct_OBJDUMP" = x; then
12683 OBJDUMP="false"
12684 else
12685 case $cross_compiling:$ac_tool_warned in
12686 yes:)
12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689 ac_tool_warned=yes ;;
12690 esac
12691 OBJDUMP=$ac_ct_OBJDUMP
12692 fi
12693 else
12694 OBJDUMP="$ac_cv_prog_OBJDUMP"
12695 fi
12696
12697 test -z "$OBJDUMP" && OBJDUMP=objdump
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12708 printf %s "checking how to recognize dependent libraries... " >&6; }
12709 if test ${lt_cv_deplibs_check_method+y}
12710 then :
12711 printf %s "(cached) " >&6
12712 else $as_nop
12713 lt_cv_file_magic_cmd='$MAGIC_CMD'
12714 lt_cv_file_magic_test_file=
12715 lt_cv_deplibs_check_method='unknown'
12716 # Need to set the preceding variable on all platforms that support
12717 # interlibrary dependencies.
12718 # 'none' -- dependencies not supported.
12719 # 'unknown' -- same as none, but documents that we really don't know.
12720 # 'pass_all' -- all dependencies passed with no checks.
12721 # 'test_compile' -- check by making test program.
12722 # 'file_magic [[regex]]' -- check by looking for files in library path
12723 # that responds to the $file_magic_cmd with a given extended regex.
12724 # If you have 'file' or equivalent on your system and you're not sure
12725 # whether 'pass_all' will *always* work, you probably want this one.
12726
12727 case $host_os in
12728 aix[4-9]*)
12729 lt_cv_deplibs_check_method=pass_all
12730 ;;
12731
12732 beos*)
12733 lt_cv_deplibs_check_method=pass_all
12734 ;;
12735
12736 bsdi[45]*)
12737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12738 lt_cv_file_magic_cmd='/usr/bin/file -L'
12739 lt_cv_file_magic_test_file=/shlib/libc.so
12740 ;;
12741
12742 cygwin*)
12743 # func_win32_libid is a shell function defined in ltmain.sh
12744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12745 lt_cv_file_magic_cmd='func_win32_libid'
12746 ;;
12747
12748 mingw* | pw32*)
12749 # Base MSYS/MinGW do not provide the 'file' command needed by
12750 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12751 # unless we find 'file', for example because we are cross-compiling.
12752 if ( file / ) >/dev/null 2>&1; then
12753 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12754 lt_cv_file_magic_cmd='func_win32_libid'
12755 else
12756 # Keep this pattern in sync with the one in func_win32_libid.
12757 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12758 lt_cv_file_magic_cmd='$OBJDUMP -f'
12759 fi
12760 ;;
12761
12762 cegcc*)
12763 # use the weaker test based on 'objdump'. See mingw*.
12764 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12765 lt_cv_file_magic_cmd='$OBJDUMP -f'
12766 ;;
12767
12768 darwin* | rhapsody*)
12769 lt_cv_deplibs_check_method=pass_all
12770 ;;
12771
12772 freebsd* | dragonfly*)
12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12774 case $host_cpu in
12775 i*86 )
12776 # Not sure whether the presence of OpenBSD here was a mistake.
12777 # Let's accept both of them until this is cleared up.
12778 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12779 lt_cv_file_magic_cmd=/usr/bin/file
12780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12781 ;;
12782 esac
12783 else
12784 lt_cv_deplibs_check_method=pass_all
12785 fi
12786 ;;
12787
12788 haiku*)
12789 lt_cv_deplibs_check_method=pass_all
12790 ;;
12791
12792 hpux10.20* | hpux11*)
12793 lt_cv_file_magic_cmd=/usr/bin/file
12794 case $host_cpu in
12795 ia64*)
12796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12797 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12798 ;;
12799 hppa*64*)
12800 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]'
12801 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12802 ;;
12803 *)
12804 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12805 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12806 ;;
12807 esac
12808 ;;
12809
12810 interix[3-9]*)
12811 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12813 ;;
12814
12815 irix5* | irix6* | nonstopux*)
12816 case $LD in
12817 *-32|*"-32 ") libmagic=32-bit;;
12818 *-n32|*"-n32 ") libmagic=N32;;
12819 *-64|*"-64 ") libmagic=64-bit;;
12820 *) libmagic=never-match;;
12821 esac
12822 lt_cv_deplibs_check_method=pass_all
12823 ;;
12824
12825 # This must be glibc/ELF.
12826 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12827 lt_cv_deplibs_check_method=pass_all
12828 ;;
12829
12830 netbsd* | netbsdelf*-gnu)
12831 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12833 else
12834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12835 fi
12836 ;;
12837
12838 newos6*)
12839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12840 lt_cv_file_magic_cmd=/usr/bin/file
12841 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12842 ;;
12843
12844 *nto* | *qnx*)
12845 lt_cv_deplibs_check_method=pass_all
12846 ;;
12847
12848 openbsd* | bitrig*)
12849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12851 else
12852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12853 fi
12854 ;;
12855
12856 osf3* | osf4* | osf5*)
12857 lt_cv_deplibs_check_method=pass_all
12858 ;;
12859
12860 rdos*)
12861 lt_cv_deplibs_check_method=pass_all
12862 ;;
12863
12864 solaris*)
12865 lt_cv_deplibs_check_method=pass_all
12866 ;;
12867
12868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12869 lt_cv_deplibs_check_method=pass_all
12870 ;;
12871
12872 sysv4 | sysv4.3*)
12873 case $host_vendor in
12874 motorola)
12875 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]'
12876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12877 ;;
12878 ncr)
12879 lt_cv_deplibs_check_method=pass_all
12880 ;;
12881 sequent)
12882 lt_cv_file_magic_cmd='/bin/file'
12883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12884 ;;
12885 sni)
12886 lt_cv_file_magic_cmd='/bin/file'
12887 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12888 lt_cv_file_magic_test_file=/lib/libc.so
12889 ;;
12890 siemens)
12891 lt_cv_deplibs_check_method=pass_all
12892 ;;
12893 pc)
12894 lt_cv_deplibs_check_method=pass_all
12895 ;;
12896 esac
12897 ;;
12898
12899 tpf*)
12900 lt_cv_deplibs_check_method=pass_all
12901 ;;
12902 os2*)
12903 lt_cv_deplibs_check_method=pass_all
12904 ;;
12905 esac
12906
12907 fi
12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12909 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12910
12911 file_magic_glob=
12912 want_nocaseglob=no
12913 if test "$build" = "$host"; then
12914 case $host_os in
12915 mingw* | pw32*)
12916 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12917 want_nocaseglob=yes
12918 else
12919 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12920 fi
12921 ;;
12922 esac
12923 fi
12924
12925 file_magic_cmd=$lt_cv_file_magic_cmd
12926 deplibs_check_method=$lt_cv_deplibs_check_method
12927 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950 if test -n "$ac_tool_prefix"; then
12951 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12952 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954 printf %s "checking for $ac_word... " >&6; }
12955 if test ${ac_cv_prog_DLLTOOL+y}
12956 then :
12957 printf %s "(cached) " >&6
12958 else $as_nop
12959 if test -n "$DLLTOOL"; then
12960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12964 do
12965 IFS=$as_save_IFS
12966 case $as_dir in #(((
12967 '') as_dir=./ ;;
12968 */) ;;
12969 *) as_dir=$as_dir/ ;;
12970 esac
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12973 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12975 break 2
12976 fi
12977 done
12978 done
12979 IFS=$as_save_IFS
12980
12981 fi
12982 fi
12983 DLLTOOL=$ac_cv_prog_DLLTOOL
12984 if test -n "$DLLTOOL"; then
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12986 printf "%s\n" "$DLLTOOL" >&6; }
12987 else
12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 printf "%s\n" "no" >&6; }
12990 fi
12991
12992
12993 fi
12994 if test -z "$ac_cv_prog_DLLTOOL"; then
12995 ac_ct_DLLTOOL=$DLLTOOL
12996 # Extract the first word of "dlltool", so it can be a program name with args.
12997 set dummy dlltool; ac_word=$2
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12999 printf %s "checking for $ac_word... " >&6; }
13000 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13001 then :
13002 printf %s "(cached) " >&6
13003 else $as_nop
13004 if test -n "$ac_ct_DLLTOOL"; then
13005 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010 IFS=$as_save_IFS
13011 case $as_dir in #(((
13012 '') as_dir=./ ;;
13013 */) ;;
13014 *) as_dir=$as_dir/ ;;
13015 esac
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13018 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13020 break 2
13021 fi
13022 done
13023 done
13024 IFS=$as_save_IFS
13025
13026 fi
13027 fi
13028 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13029 if test -n "$ac_ct_DLLTOOL"; then
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13031 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13032 else
13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 printf "%s\n" "no" >&6; }
13035 fi
13036
13037 if test "x$ac_ct_DLLTOOL" = x; then
13038 DLLTOOL="false"
13039 else
13040 case $cross_compiling:$ac_tool_warned in
13041 yes:)
13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13044 ac_tool_warned=yes ;;
13045 esac
13046 DLLTOOL=$ac_ct_DLLTOOL
13047 fi
13048 else
13049 DLLTOOL="$ac_cv_prog_DLLTOOL"
13050 fi
13051
13052 test -z "$DLLTOOL" && DLLTOOL=dlltool
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13064 printf %s "checking how to associate runtime and link libraries... " >&6; }
13065 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13066 then :
13067 printf %s "(cached) " >&6
13068 else $as_nop
13069 lt_cv_sharedlib_from_linklib_cmd='unknown'
13070
13071 case $host_os in
13072 cygwin* | mingw* | pw32* | cegcc*)
13073 # two different shell functions defined in ltmain.sh;
13074 # decide which one to use based on capabilities of $DLLTOOL
13075 case `$DLLTOOL --help 2>&1` in
13076 *--identify-strict*)
13077 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13078 ;;
13079 *)
13080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13081 ;;
13082 esac
13083 ;;
13084 *)
13085 # fallback: assume linklib IS sharedlib
13086 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13087 ;;
13088 esac
13089
13090 fi
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13092 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13093 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13094 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13095
13096
13097
13098
13099
13100
13101
13102 if test -n "$ac_tool_prefix"; then
13103 for ac_prog in ar
13104 do
13105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108 printf %s "checking for $ac_word... " >&6; }
13109 if test ${ac_cv_prog_AR+y}
13110 then :
13111 printf %s "(cached) " >&6
13112 else $as_nop
13113 if test -n "$AR"; then
13114 ac_cv_prog_AR="$AR" # Let the user override the test.
13115 else
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13118 do
13119 IFS=$as_save_IFS
13120 case $as_dir in #(((
13121 '') as_dir=./ ;;
13122 */) ;;
13123 *) as_dir=$as_dir/ ;;
13124 esac
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13127 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13129 break 2
13130 fi
13131 done
13132 done
13133 IFS=$as_save_IFS
13134
13135 fi
13136 fi
13137 AR=$ac_cv_prog_AR
13138 if test -n "$AR"; then
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13140 printf "%s\n" "$AR" >&6; }
13141 else
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 printf "%s\n" "no" >&6; }
13144 fi
13145
13146
13147 test -n "$AR" && break
13148 done
13149 fi
13150 if test -z "$AR"; then
13151 ac_ct_AR=$AR
13152 for ac_prog in ar
13153 do
13154 # Extract the first word of "$ac_prog", so it can be a program name with args.
13155 set dummy $ac_prog; ac_word=$2
13156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 printf %s "checking for $ac_word... " >&6; }
13158 if test ${ac_cv_prog_ac_ct_AR+y}
13159 then :
13160 printf %s "(cached) " >&6
13161 else $as_nop
13162 if test -n "$ac_ct_AR"; then
13163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13167 do
13168 IFS=$as_save_IFS
13169 case $as_dir in #(((
13170 '') as_dir=./ ;;
13171 */) ;;
13172 *) as_dir=$as_dir/ ;;
13173 esac
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13176 ac_cv_prog_ac_ct_AR="$ac_prog"
13177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13178 break 2
13179 fi
13180 done
13181 done
13182 IFS=$as_save_IFS
13183
13184 fi
13185 fi
13186 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13187 if test -n "$ac_ct_AR"; then
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13189 printf "%s\n" "$ac_ct_AR" >&6; }
13190 else
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 printf "%s\n" "no" >&6; }
13193 fi
13194
13195
13196 test -n "$ac_ct_AR" && break
13197 done
13198
13199 if test "x$ac_ct_AR" = x; then
13200 AR="false"
13201 else
13202 case $cross_compiling:$ac_tool_warned in
13203 yes:)
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13206 ac_tool_warned=yes ;;
13207 esac
13208 AR=$ac_ct_AR
13209 fi
13210 fi
13211
13212 : ${AR=ar}
13213 : ${AR_FLAGS=cr}
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13226 printf %s "checking for archiver @FILE support... " >&6; }
13227 if test ${lt_cv_ar_at_file+y}
13228 then :
13229 printf %s "(cached) " >&6
13230 else $as_nop
13231 lt_cv_ar_at_file=no
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 int
13236 main (void)
13237 {
13238
13239 ;
13240 return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_compile "$LINENO"
13244 then :
13245 echo conftest.$ac_objext > conftest.lst
13246 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13248 (eval $lt_ar_try) 2>&5
13249 ac_status=$?
13250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; }
13252 if test 0 -eq "$ac_status"; then
13253 # Ensure the archiver fails upon bogus file names.
13254 rm -f conftest.$ac_objext libconftest.a
13255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13256 (eval $lt_ar_try) 2>&5
13257 ac_status=$?
13258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13259 test $ac_status = 0; }
13260 if test 0 -ne "$ac_status"; then
13261 lt_cv_ar_at_file=@
13262 fi
13263 fi
13264 rm -f conftest.* libconftest.a
13265
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13268
13269 fi
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13271 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13272
13273 if test no = "$lt_cv_ar_at_file"; then
13274 archiver_list_spec=
13275 else
13276 archiver_list_spec=$lt_cv_ar_at_file
13277 fi
13278
13279
13280
13281
13282
13283
13284
13285 if test -n "$ac_tool_prefix"; then
13286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13287 set dummy ${ac_tool_prefix}strip; ac_word=$2
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 printf %s "checking for $ac_word... " >&6; }
13290 if test ${ac_cv_prog_STRIP+y}
13291 then :
13292 printf %s "(cached) " >&6
13293 else $as_nop
13294 if test -n "$STRIP"; then
13295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13296 else
13297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298 for as_dir in $PATH
13299 do
13300 IFS=$as_save_IFS
13301 case $as_dir in #(((
13302 '') as_dir=./ ;;
13303 */) ;;
13304 *) as_dir=$as_dir/ ;;
13305 esac
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13310 break 2
13311 fi
13312 done
13313 done
13314 IFS=$as_save_IFS
13315
13316 fi
13317 fi
13318 STRIP=$ac_cv_prog_STRIP
13319 if test -n "$STRIP"; then
13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13321 printf "%s\n" "$STRIP" >&6; }
13322 else
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 printf "%s\n" "no" >&6; }
13325 fi
13326
13327
13328 fi
13329 if test -z "$ac_cv_prog_STRIP"; then
13330 ac_ct_STRIP=$STRIP
13331 # Extract the first word of "strip", so it can be a program name with args.
13332 set dummy strip; ac_word=$2
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 printf %s "checking for $ac_word... " >&6; }
13335 if test ${ac_cv_prog_ac_ct_STRIP+y}
13336 then :
13337 printf %s "(cached) " >&6
13338 else $as_nop
13339 if test -n "$ac_ct_STRIP"; then
13340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13341 else
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345 IFS=$as_save_IFS
13346 case $as_dir in #(((
13347 '') as_dir=./ ;;
13348 */) ;;
13349 *) as_dir=$as_dir/ ;;
13350 esac
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13353 ac_cv_prog_ac_ct_STRIP="strip"
13354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13355 break 2
13356 fi
13357 done
13358 done
13359 IFS=$as_save_IFS
13360
13361 fi
13362 fi
13363 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13364 if test -n "$ac_ct_STRIP"; then
13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13366 printf "%s\n" "$ac_ct_STRIP" >&6; }
13367 else
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 printf "%s\n" "no" >&6; }
13370 fi
13371
13372 if test "x$ac_ct_STRIP" = x; then
13373 STRIP=":"
13374 else
13375 case $cross_compiling:$ac_tool_warned in
13376 yes:)
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13379 ac_tool_warned=yes ;;
13380 esac
13381 STRIP=$ac_ct_STRIP
13382 fi
13383 else
13384 STRIP="$ac_cv_prog_STRIP"
13385 fi
13386
13387 test -z "$STRIP" && STRIP=:
13388
13389
13390
13391
13392
13393
13394 if test -n "$ac_tool_prefix"; then
13395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13396 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 printf %s "checking for $ac_word... " >&6; }
13399 if test ${ac_cv_prog_RANLIB+y}
13400 then :
13401 printf %s "(cached) " >&6
13402 else $as_nop
13403 if test -n "$RANLIB"; then
13404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13405 else
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409 IFS=$as_save_IFS
13410 case $as_dir in #(((
13411 '') as_dir=./ ;;
13412 */) ;;
13413 *) as_dir=$as_dir/ ;;
13414 esac
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13419 break 2
13420 fi
13421 done
13422 done
13423 IFS=$as_save_IFS
13424
13425 fi
13426 fi
13427 RANLIB=$ac_cv_prog_RANLIB
13428 if test -n "$RANLIB"; then
13429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13430 printf "%s\n" "$RANLIB" >&6; }
13431 else
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 printf "%s\n" "no" >&6; }
13434 fi
13435
13436
13437 fi
13438 if test -z "$ac_cv_prog_RANLIB"; then
13439 ac_ct_RANLIB=$RANLIB
13440 # Extract the first word of "ranlib", so it can be a program name with args.
13441 set dummy ranlib; ac_word=$2
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 printf %s "checking for $ac_word... " >&6; }
13444 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13445 then :
13446 printf %s "(cached) " >&6
13447 else $as_nop
13448 if test -n "$ac_ct_RANLIB"; then
13449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13450 else
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13453 do
13454 IFS=$as_save_IFS
13455 case $as_dir in #(((
13456 '') as_dir=./ ;;
13457 */) ;;
13458 *) as_dir=$as_dir/ ;;
13459 esac
13460 for ac_exec_ext in '' $ac_executable_extensions; do
13461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13462 ac_cv_prog_ac_ct_RANLIB="ranlib"
13463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13464 break 2
13465 fi
13466 done
13467 done
13468 IFS=$as_save_IFS
13469
13470 fi
13471 fi
13472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13473 if test -n "$ac_ct_RANLIB"; then
13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13475 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13476 else
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 printf "%s\n" "no" >&6; }
13479 fi
13480
13481 if test "x$ac_ct_RANLIB" = x; then
13482 RANLIB=":"
13483 else
13484 case $cross_compiling:$ac_tool_warned in
13485 yes:)
13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13487 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13488 ac_tool_warned=yes ;;
13489 esac
13490 RANLIB=$ac_ct_RANLIB
13491 fi
13492 else
13493 RANLIB="$ac_cv_prog_RANLIB"
13494 fi
13495
13496 test -z "$RANLIB" && RANLIB=:
13497
13498
13499
13500
13501
13502
13503 # Determine commands to create old-style static archives.
13504 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13505 old_postinstall_cmds='chmod 644 $oldlib'
13506 old_postuninstall_cmds=
13507
13508 if test -n "$RANLIB"; then
13509 case $host_os in
13510 bitrig* | openbsd*)
13511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13512 ;;
13513 *)
13514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13515 ;;
13516 esac
13517 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13518 fi
13519
13520 case $host_os in
13521 darwin*)
13522 lock_old_archive_extraction=yes ;;
13523 *)
13524 lock_old_archive_extraction=no ;;
13525 esac
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565 # If no C compiler was specified, use CC.
13566 LTCC=${LTCC-"$CC"}
13567
13568 # If no C compiler flags were specified, use CFLAGS.
13569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13570
13571 # Allow CC to be a program name with arguments.
13572 compiler=$CC
13573
13574
13575 # Check for command to grab the raw symbol name followed by C symbol from nm.
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13577 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13578 if test ${lt_cv_sys_global_symbol_pipe+y}
13579 then :
13580 printf %s "(cached) " >&6
13581 else $as_nop
13582
13583 # These are sane defaults that work on at least a few old systems.
13584 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13585
13586 # Character class describing NM global symbol codes.
13587 symcode='[BCDEGRST]'
13588
13589 # Regexp to match symbols that can be accessed directly from C.
13590 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13591
13592 # Define system-specific variables.
13593 case $host_os in
13594 aix*)
13595 symcode='[BCDT]'
13596 ;;
13597 cygwin* | mingw* | pw32* | cegcc*)
13598 symcode='[ABCDGISTW]'
13599 ;;
13600 hpux*)
13601 if test ia64 = "$host_cpu"; then
13602 symcode='[ABCDEGRST]'
13603 fi
13604 ;;
13605 irix* | nonstopux*)
13606 symcode='[BCDEGRST]'
13607 ;;
13608 osf*)
13609 symcode='[BCDEGQRST]'
13610 ;;
13611 solaris*)
13612 symcode='[BDRT]'
13613 ;;
13614 sco3.2v5*)
13615 symcode='[DT]'
13616 ;;
13617 sysv4.2uw2*)
13618 symcode='[DT]'
13619 ;;
13620 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13621 symcode='[ABDT]'
13622 ;;
13623 sysv4)
13624 symcode='[DFNSTU]'
13625 ;;
13626 esac
13627
13628 # If we're using GNU nm, then use its standard symbol codes.
13629 case `$NM -V 2>&1` in
13630 *GNU* | *'with BFD'*)
13631 symcode='[ABCDGIRSTW]' ;;
13632 esac
13633
13634 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13635 # Gets list of data symbols to import.
13636 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13637 # Adjust the below global symbol transforms to fixup imported variables.
13638 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13639 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13640 lt_c_name_lib_hook="\
13641 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13642 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13643 else
13644 # Disable hooks by default.
13645 lt_cv_sys_global_symbol_to_import=
13646 lt_cdecl_hook=
13647 lt_c_name_hook=
13648 lt_c_name_lib_hook=
13649 fi
13650
13651 # Transform an extracted symbol line into a proper C declaration.
13652 # Some systems (esp. on ia64) link data and code symbols differently,
13653 # so use this general approach.
13654 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13655 $lt_cdecl_hook\
13656 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13657 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13658
13659 # Transform an extracted symbol line into symbol name and symbol address
13660 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13661 $lt_c_name_hook\
13662 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13663 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13664
13665 # Transform an extracted symbol line into symbol name with lib prefix and
13666 # symbol address.
13667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13668 $lt_c_name_lib_hook\
13669 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13670 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13671 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13672
13673 # Handle CRLF in mingw tool chain
13674 opt_cr=
13675 case $build_os in
13676 mingw*)
13677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13678 ;;
13679 esac
13680
13681 # Try without a prefix underscore, then with it.
13682 for ac_symprfx in "" "_"; do
13683
13684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13685 symxfrm="\\1 $ac_symprfx\\2 \\2"
13686
13687 # Write the raw and C identifiers.
13688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13689 # Fake it for dumpbin and say T for any non-static function,
13690 # D for any global variable and I for any imported variable.
13691 # Also find C++ and __fastcall symbols from MSVC++,
13692 # which start with @ or ?.
13693 lt_cv_sys_global_symbol_pipe="$AWK '"\
13694 " {last_section=section; section=\$ 3};"\
13695 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13696 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13697 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13698 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13699 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13700 " \$ 0!~/External *\|/{next};"\
13701 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13702 " {if(hide[section]) next};"\
13703 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13704 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13705 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13706 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13707 " ' prfx=^$ac_symprfx"
13708 else
13709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13710 fi
13711 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13712
13713 # Check to see that the pipe works correctly.
13714 pipe_works=no
13715
13716 rm -f conftest*
13717 cat > conftest.$ac_ext <<_LT_EOF
13718 #ifdef __cplusplus
13719 extern "C" {
13720 #endif
13721 char nm_test_var;
13722 void nm_test_func(void);
13723 void nm_test_func(void){}
13724 #ifdef __cplusplus
13725 }
13726 #endif
13727 int main(){nm_test_var='a';nm_test_func();return(0);}
13728 _LT_EOF
13729
13730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13731 (eval $ac_compile) 2>&5
13732 ac_status=$?
13733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734 test $ac_status = 0; }; then
13735 # Now try to grab the symbols.
13736 nlist=conftest.nm
13737 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
13738 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
13739 # Try sorting and uniquifying the output.
13740 if sort "$nlist" | uniq > "$nlist"T; then
13741 mv -f "$nlist"T "$nlist"
13742 else
13743 rm -f "$nlist"T
13744 fi
13745
13746 # Make sure that we snagged all the symbols we need.
13747 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13748 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13749 cat <<_LT_EOF > conftest.$ac_ext
13750 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13751 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13752 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13753 relocations are performed -- see ld's documentation on pseudo-relocs. */
13754 # define LT_DLSYM_CONST
13755 #elif defined __osf__
13756 /* This system does not cope well with relocations in const data. */
13757 # define LT_DLSYM_CONST
13758 #else
13759 # define LT_DLSYM_CONST const
13760 #endif
13761
13762 #ifdef __cplusplus
13763 extern "C" {
13764 #endif
13765
13766 _LT_EOF
13767 # Now generate the symbol file.
13768 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13769
13770 cat <<_LT_EOF >> conftest.$ac_ext
13771
13772 /* The mapping between symbol names and symbols. */
13773 LT_DLSYM_CONST struct {
13774 const char *name;
13775 void *address;
13776 }
13777 lt__PROGRAM__LTX_preloaded_symbols[] =
13778 {
13779 { "@PROGRAM@", (void *) 0 },
13780 _LT_EOF
13781 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13782 cat <<\_LT_EOF >> conftest.$ac_ext
13783 {0, (void *) 0}
13784 };
13785
13786 /* This works around a problem in FreeBSD linker */
13787 #ifdef FREEBSD_WORKAROUND
13788 static const void *lt_preloaded_setup() {
13789 return lt__PROGRAM__LTX_preloaded_symbols;
13790 }
13791 #endif
13792
13793 #ifdef __cplusplus
13794 }
13795 #endif
13796 _LT_EOF
13797 # Now try linking the two files.
13798 mv conftest.$ac_objext conftstm.$ac_objext
13799 lt_globsym_save_LIBS=$LIBS
13800 lt_globsym_save_CFLAGS=$CFLAGS
13801 LIBS=conftstm.$ac_objext
13802 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13804 (eval $ac_link) 2>&5
13805 ac_status=$?
13806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13807 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13808 pipe_works=yes
13809 fi
13810 LIBS=$lt_globsym_save_LIBS
13811 CFLAGS=$lt_globsym_save_CFLAGS
13812 else
13813 echo "cannot find nm_test_func in $nlist" >&5
13814 fi
13815 else
13816 echo "cannot find nm_test_var in $nlist" >&5
13817 fi
13818 else
13819 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13820 fi
13821 else
13822 echo "$progname: failed program was:" >&5
13823 cat conftest.$ac_ext >&5
13824 fi
13825 rm -rf conftest* conftst*
13826
13827 # Do not use the global_symbol_pipe unless it works.
13828 if test yes = "$pipe_works"; then
13829 break
13830 else
13831 lt_cv_sys_global_symbol_pipe=
13832 fi
13833 done
13834
13835 fi
13836
13837 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13838 lt_cv_sys_global_symbol_to_cdecl=
13839 fi
13840 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13842 printf "%s\n" "failed" >&6; }
13843 else
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13845 printf "%s\n" "ok" >&6; }
13846 fi
13847
13848 # Response file support.
13849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13850 nm_file_list_spec='@'
13851 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13852 nm_file_list_spec='@'
13853 fi
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13892 printf %s "checking for sysroot... " >&6; }
13893
13894 # Check whether --with-sysroot was given.
13895 if test ${with_sysroot+y}
13896 then :
13897 withval=$with_sysroot;
13898 else $as_nop
13899 with_sysroot=no
13900 fi
13901
13902
13903 lt_sysroot=
13904 case $with_sysroot in #(
13905 yes)
13906 if test yes = "$GCC"; then
13907 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13908 fi
13909 ;; #(
13910 /*)
13911 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13912 ;; #(
13913 no|'')
13914 ;; #(
13915 *)
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13917 printf "%s\n" "$with_sysroot" >&6; }
13918 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13919 ;;
13920 esac
13921
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13923 printf "%s\n" "${lt_sysroot:-no}" >&6; }
13924
13925
13926
13927
13928
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13930 printf %s "checking for a working dd... " >&6; }
13931 if test ${ac_cv_path_lt_DD+y}
13932 then :
13933 printf %s "(cached) " >&6
13934 else $as_nop
13935 printf 0123456789abcdef0123456789abcdef >conftest.i
13936 cat conftest.i conftest.i >conftest2.i
13937 : ${lt_DD:=$DD}
13938 if test -z "$lt_DD"; then
13939 ac_path_lt_DD_found=false
13940 # Loop through the user's path and test for each of PROGNAME-LIST
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13943 do
13944 IFS=$as_save_IFS
13945 case $as_dir in #(((
13946 '') as_dir=./ ;;
13947 */) ;;
13948 *) as_dir=$as_dir/ ;;
13949 esac
13950 for ac_prog in dd
13951 do
13952 for ac_exec_ext in '' $ac_executable_extensions; do
13953 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13954 as_fn_executable_p "$ac_path_lt_DD" || continue
13955 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13956 cmp -s conftest.i conftest.out \
13957 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13958 fi
13959 $ac_path_lt_DD_found && break 3
13960 done
13961 done
13962 done
13963 IFS=$as_save_IFS
13964 if test -z "$ac_cv_path_lt_DD"; then
13965 :
13966 fi
13967 else
13968 ac_cv_path_lt_DD=$lt_DD
13969 fi
13970
13971 rm -f conftest.i conftest2.i conftest.out
13972 fi
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13974 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13975
13976
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13978 printf %s "checking how to truncate binary pipes... " >&6; }
13979 if test ${lt_cv_truncate_bin+y}
13980 then :
13981 printf %s "(cached) " >&6
13982 else $as_nop
13983 printf 0123456789abcdef0123456789abcdef >conftest.i
13984 cat conftest.i conftest.i >conftest2.i
13985 lt_cv_truncate_bin=
13986 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13987 cmp -s conftest.i conftest.out \
13988 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13989 fi
13990 rm -f conftest.i conftest2.i conftest.out
13991 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13992 fi
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13994 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13995
13996
13997
13998
13999
14000
14001
14002 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14003 func_cc_basename ()
14004 {
14005 for cc_temp in $*""; do
14006 case $cc_temp in
14007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14009 \-*) ;;
14010 *) break;;
14011 esac
14012 done
14013 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14014 }
14015
14016 # Check whether --enable-libtool-lock was given.
14017 if test ${enable_libtool_lock+y}
14018 then :
14019 enableval=$enable_libtool_lock;
14020 fi
14021
14022 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14023
14024 # Some flags need to be propagated to the compiler or linker for good
14025 # libtool support.
14026 case $host in
14027 ia64-*-hpux*)
14028 # Find out what ABI is being produced by ac_compile, and set mode
14029 # options accordingly.
14030 echo 'int i;' > conftest.$ac_ext
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14032 (eval $ac_compile) 2>&5
14033 ac_status=$?
14034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }; then
14036 case `/usr/bin/file conftest.$ac_objext` in
14037 *ELF-32*)
14038 HPUX_IA64_MODE=32
14039 ;;
14040 *ELF-64*)
14041 HPUX_IA64_MODE=64
14042 ;;
14043 esac
14044 fi
14045 rm -rf conftest*
14046 ;;
14047 *-*-irix6*)
14048 # Find out what ABI is being produced by ac_compile, and set linker
14049 # options accordingly.
14050 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14052 (eval $ac_compile) 2>&5
14053 ac_status=$?
14054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14055 test $ac_status = 0; }; then
14056 if test yes = "$lt_cv_prog_gnu_ld"; then
14057 case `/usr/bin/file conftest.$ac_objext` in
14058 *32-bit*)
14059 LD="${LD-ld} -melf32bsmip"
14060 ;;
14061 *N32*)
14062 LD="${LD-ld} -melf32bmipn32"
14063 ;;
14064 *64-bit*)
14065 LD="${LD-ld} -melf64bmip"
14066 ;;
14067 esac
14068 else
14069 case `/usr/bin/file conftest.$ac_objext` in
14070 *32-bit*)
14071 LD="${LD-ld} -32"
14072 ;;
14073 *N32*)
14074 LD="${LD-ld} -n32"
14075 ;;
14076 *64-bit*)
14077 LD="${LD-ld} -64"
14078 ;;
14079 esac
14080 fi
14081 fi
14082 rm -rf conftest*
14083 ;;
14084
14085 mips64*-*linux*)
14086 # Find out what ABI is being produced by ac_compile, and set linker
14087 # options accordingly.
14088 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14090 (eval $ac_compile) 2>&5
14091 ac_status=$?
14092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14093 test $ac_status = 0; }; then
14094 emul=elf
14095 case `/usr/bin/file conftest.$ac_objext` in
14096 *32-bit*)
14097 emul="${emul}32"
14098 ;;
14099 *64-bit*)
14100 emul="${emul}64"
14101 ;;
14102 esac
14103 case `/usr/bin/file conftest.$ac_objext` in
14104 *MSB*)
14105 emul="${emul}btsmip"
14106 ;;
14107 *LSB*)
14108 emul="${emul}ltsmip"
14109 ;;
14110 esac
14111 case `/usr/bin/file conftest.$ac_objext` in
14112 *N32*)
14113 emul="${emul}n32"
14114 ;;
14115 esac
14116 LD="${LD-ld} -m $emul"
14117 fi
14118 rm -rf conftest*
14119 ;;
14120
14121 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14122 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14123 # Find out what ABI is being produced by ac_compile, and set linker
14124 # options accordingly. Note that the listed cases only cover the
14125 # situations where additional linker options are needed (such as when
14126 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14127 # vice versa); the common cases where no linker options are needed do
14128 # not appear in the list.
14129 echo 'int i;' > conftest.$ac_ext
14130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14131 (eval $ac_compile) 2>&5
14132 ac_status=$?
14133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14134 test $ac_status = 0; }; then
14135 case `/usr/bin/file conftest.o` in
14136 *32-bit*)
14137 case $host in
14138 x86_64-*kfreebsd*-gnu)
14139 LD="${LD-ld} -m elf_i386_fbsd"
14140 ;;
14141 x86_64-*linux*)
14142 case `/usr/bin/file conftest.o` in
14143 *x86-64*)
14144 LD="${LD-ld} -m elf32_x86_64"
14145 ;;
14146 *)
14147 LD="${LD-ld} -m elf_i386"
14148 ;;
14149 esac
14150 ;;
14151 powerpc64le-*linux*)
14152 LD="${LD-ld} -m elf32lppclinux"
14153 ;;
14154 powerpc64-*linux*)
14155 LD="${LD-ld} -m elf32ppclinux"
14156 ;;
14157 s390x-*linux*)
14158 LD="${LD-ld} -m elf_s390"
14159 ;;
14160 sparc64-*linux*)
14161 LD="${LD-ld} -m elf32_sparc"
14162 ;;
14163 esac
14164 ;;
14165 *64-bit*)
14166 case $host in
14167 x86_64-*kfreebsd*-gnu)
14168 LD="${LD-ld} -m elf_x86_64_fbsd"
14169 ;;
14170 x86_64-*linux*)
14171 LD="${LD-ld} -m elf_x86_64"
14172 ;;
14173 powerpcle-*linux*)
14174 LD="${LD-ld} -m elf64lppc"
14175 ;;
14176 powerpc-*linux*)
14177 LD="${LD-ld} -m elf64ppc"
14178 ;;
14179 s390*-*linux*|s390*-*tpf*)
14180 LD="${LD-ld} -m elf64_s390"
14181 ;;
14182 sparc*-*linux*)
14183 LD="${LD-ld} -m elf64_sparc"
14184 ;;
14185 esac
14186 ;;
14187 esac
14188 fi
14189 rm -rf conftest*
14190 ;;
14191
14192 *-*-sco3.2v5*)
14193 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14194 SAVE_CFLAGS=$CFLAGS
14195 CFLAGS="$CFLAGS -belf"
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14197 printf %s "checking whether the C compiler needs -belf... " >&6; }
14198 if test ${lt_cv_cc_needs_belf+y}
14199 then :
14200 printf %s "(cached) " >&6
14201 else $as_nop
14202 ac_ext=c
14203 ac_cpp='$CPP $CPPFLAGS'
14204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14207
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210
14211 int
14212 main (void)
14213 {
14214
14215 ;
14216 return 0;
14217 }
14218 _ACEOF
14219 if ac_fn_c_try_link "$LINENO"
14220 then :
14221 lt_cv_cc_needs_belf=yes
14222 else $as_nop
14223 lt_cv_cc_needs_belf=no
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14226 conftest$ac_exeext conftest.$ac_ext
14227 ac_ext=c
14228 ac_cpp='$CPP $CPPFLAGS'
14229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232
14233 fi
14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14235 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14236 if test yes != "$lt_cv_cc_needs_belf"; then
14237 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14238 CFLAGS=$SAVE_CFLAGS
14239 fi
14240 ;;
14241 *-*solaris*)
14242 # Find out what ABI is being produced by ac_compile, and set linker
14243 # options accordingly.
14244 echo 'int i;' > conftest.$ac_ext
14245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14246 (eval $ac_compile) 2>&5
14247 ac_status=$?
14248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; }; then
14250 case `/usr/bin/file conftest.o` in
14251 *64-bit*)
14252 case $lt_cv_prog_gnu_ld in
14253 yes*)
14254 case $host in
14255 i?86-*-solaris*|x86_64-*-solaris*)
14256 LD="${LD-ld} -m elf_x86_64"
14257 ;;
14258 sparc*-*-solaris*)
14259 LD="${LD-ld} -m elf64_sparc"
14260 ;;
14261 esac
14262 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14263 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14264 LD=${LD-ld}_sol2
14265 fi
14266 ;;
14267 *)
14268 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14269 LD="${LD-ld} -64"
14270 fi
14271 ;;
14272 esac
14273 ;;
14274 esac
14275 fi
14276 rm -rf conftest*
14277 ;;
14278 esac
14279
14280 need_locks=$enable_libtool_lock
14281
14282 if test -n "$ac_tool_prefix"; then
14283 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14284 set dummy ${ac_tool_prefix}mt; ac_word=$2
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14286 printf %s "checking for $ac_word... " >&6; }
14287 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14288 then :
14289 printf %s "(cached) " >&6
14290 else $as_nop
14291 if test -n "$MANIFEST_TOOL"; then
14292 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14293 else
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14296 do
14297 IFS=$as_save_IFS
14298 case $as_dir in #(((
14299 '') as_dir=./ ;;
14300 */) ;;
14301 *) as_dir=$as_dir/ ;;
14302 esac
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14305 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14307 break 2
14308 fi
14309 done
14310 done
14311 IFS=$as_save_IFS
14312
14313 fi
14314 fi
14315 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14316 if test -n "$MANIFEST_TOOL"; then
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14318 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14319 else
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 printf "%s\n" "no" >&6; }
14322 fi
14323
14324
14325 fi
14326 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14327 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14328 # Extract the first word of "mt", so it can be a program name with args.
14329 set dummy mt; ac_word=$2
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14331 printf %s "checking for $ac_word... " >&6; }
14332 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14333 then :
14334 printf %s "(cached) " >&6
14335 else $as_nop
14336 if test -n "$ac_ct_MANIFEST_TOOL"; then
14337 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14338 else
14339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14341 do
14342 IFS=$as_save_IFS
14343 case $as_dir in #(((
14344 '') as_dir=./ ;;
14345 */) ;;
14346 *) as_dir=$as_dir/ ;;
14347 esac
14348 for ac_exec_ext in '' $ac_executable_extensions; do
14349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14350 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14352 break 2
14353 fi
14354 done
14355 done
14356 IFS=$as_save_IFS
14357
14358 fi
14359 fi
14360 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14361 if test -n "$ac_ct_MANIFEST_TOOL"; then
14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14363 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14364 else
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 printf "%s\n" "no" >&6; }
14367 fi
14368
14369 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14370 MANIFEST_TOOL=":"
14371 else
14372 case $cross_compiling:$ac_tool_warned in
14373 yes:)
14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14375 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14376 ac_tool_warned=yes ;;
14377 esac
14378 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14379 fi
14380 else
14381 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14382 fi
14383
14384 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14386 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14387 if test ${lt_cv_path_mainfest_tool+y}
14388 then :
14389 printf %s "(cached) " >&6
14390 else $as_nop
14391 lt_cv_path_mainfest_tool=no
14392 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14393 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14394 cat conftest.err >&5
14395 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14396 lt_cv_path_mainfest_tool=yes
14397 fi
14398 rm -f conftest*
14399 fi
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14401 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14402 if test yes != "$lt_cv_path_mainfest_tool"; then
14403 MANIFEST_TOOL=:
14404 fi
14405
14406
14407
14408
14409
14410
14411 case $host_os in
14412 rhapsody* | darwin*)
14413 if test -n "$ac_tool_prefix"; then
14414 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14415 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14417 printf %s "checking for $ac_word... " >&6; }
14418 if test ${ac_cv_prog_DSYMUTIL+y}
14419 then :
14420 printf %s "(cached) " >&6
14421 else $as_nop
14422 if test -n "$DSYMUTIL"; then
14423 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14424 else
14425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14426 for as_dir in $PATH
14427 do
14428 IFS=$as_save_IFS
14429 case $as_dir in #(((
14430 '') as_dir=./ ;;
14431 */) ;;
14432 *) as_dir=$as_dir/ ;;
14433 esac
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14436 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14438 break 2
14439 fi
14440 done
14441 done
14442 IFS=$as_save_IFS
14443
14444 fi
14445 fi
14446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14447 if test -n "$DSYMUTIL"; then
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14449 printf "%s\n" "$DSYMUTIL" >&6; }
14450 else
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452 printf "%s\n" "no" >&6; }
14453 fi
14454
14455
14456 fi
14457 if test -z "$ac_cv_prog_DSYMUTIL"; then
14458 ac_ct_DSYMUTIL=$DSYMUTIL
14459 # Extract the first word of "dsymutil", so it can be a program name with args.
14460 set dummy dsymutil; ac_word=$2
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14462 printf %s "checking for $ac_word... " >&6; }
14463 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14464 then :
14465 printf %s "(cached) " >&6
14466 else $as_nop
14467 if test -n "$ac_ct_DSYMUTIL"; then
14468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14469 else
14470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471 for as_dir in $PATH
14472 do
14473 IFS=$as_save_IFS
14474 case $as_dir in #(((
14475 '') as_dir=./ ;;
14476 */) ;;
14477 *) as_dir=$as_dir/ ;;
14478 esac
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14481 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14483 break 2
14484 fi
14485 done
14486 done
14487 IFS=$as_save_IFS
14488
14489 fi
14490 fi
14491 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14492 if test -n "$ac_ct_DSYMUTIL"; then
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14494 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14495 else
14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 printf "%s\n" "no" >&6; }
14498 fi
14499
14500 if test "x$ac_ct_DSYMUTIL" = x; then
14501 DSYMUTIL=":"
14502 else
14503 case $cross_compiling:$ac_tool_warned in
14504 yes:)
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14506 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14507 ac_tool_warned=yes ;;
14508 esac
14509 DSYMUTIL=$ac_ct_DSYMUTIL
14510 fi
14511 else
14512 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14513 fi
14514
14515 if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14517 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519 printf %s "checking for $ac_word... " >&6; }
14520 if test ${ac_cv_prog_NMEDIT+y}
14521 then :
14522 printf %s "(cached) " >&6
14523 else $as_nop
14524 if test -n "$NMEDIT"; then
14525 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14526 else
14527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14528 for as_dir in $PATH
14529 do
14530 IFS=$as_save_IFS
14531 case $as_dir in #(((
14532 '') as_dir=./ ;;
14533 */) ;;
14534 *) as_dir=$as_dir/ ;;
14535 esac
14536 for ac_exec_ext in '' $ac_executable_extensions; do
14537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14538 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14540 break 2
14541 fi
14542 done
14543 done
14544 IFS=$as_save_IFS
14545
14546 fi
14547 fi
14548 NMEDIT=$ac_cv_prog_NMEDIT
14549 if test -n "$NMEDIT"; then
14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14551 printf "%s\n" "$NMEDIT" >&6; }
14552 else
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 printf "%s\n" "no" >&6; }
14555 fi
14556
14557
14558 fi
14559 if test -z "$ac_cv_prog_NMEDIT"; then
14560 ac_ct_NMEDIT=$NMEDIT
14561 # Extract the first word of "nmedit", so it can be a program name with args.
14562 set dummy nmedit; ac_word=$2
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 printf %s "checking for $ac_word... " >&6; }
14565 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14566 then :
14567 printf %s "(cached) " >&6
14568 else $as_nop
14569 if test -n "$ac_ct_NMEDIT"; then
14570 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14571 else
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14574 do
14575 IFS=$as_save_IFS
14576 case $as_dir in #(((
14577 '') as_dir=./ ;;
14578 */) ;;
14579 *) as_dir=$as_dir/ ;;
14580 esac
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14583 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14585 break 2
14586 fi
14587 done
14588 done
14589 IFS=$as_save_IFS
14590
14591 fi
14592 fi
14593 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14594 if test -n "$ac_ct_NMEDIT"; then
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14596 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14597 else
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 printf "%s\n" "no" >&6; }
14600 fi
14601
14602 if test "x$ac_ct_NMEDIT" = x; then
14603 NMEDIT=":"
14604 else
14605 case $cross_compiling:$ac_tool_warned in
14606 yes:)
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14609 ac_tool_warned=yes ;;
14610 esac
14611 NMEDIT=$ac_ct_NMEDIT
14612 fi
14613 else
14614 NMEDIT="$ac_cv_prog_NMEDIT"
14615 fi
14616
14617 if test -n "$ac_tool_prefix"; then
14618 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14619 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621 printf %s "checking for $ac_word... " >&6; }
14622 if test ${ac_cv_prog_LIPO+y}
14623 then :
14624 printf %s "(cached) " >&6
14625 else $as_nop
14626 if test -n "$LIPO"; then
14627 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14628 else
14629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14630 for as_dir in $PATH
14631 do
14632 IFS=$as_save_IFS
14633 case $as_dir in #(((
14634 '') as_dir=./ ;;
14635 */) ;;
14636 *) as_dir=$as_dir/ ;;
14637 esac
14638 for ac_exec_ext in '' $ac_executable_extensions; do
14639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14640 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14642 break 2
14643 fi
14644 done
14645 done
14646 IFS=$as_save_IFS
14647
14648 fi
14649 fi
14650 LIPO=$ac_cv_prog_LIPO
14651 if test -n "$LIPO"; then
14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14653 printf "%s\n" "$LIPO" >&6; }
14654 else
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 printf "%s\n" "no" >&6; }
14657 fi
14658
14659
14660 fi
14661 if test -z "$ac_cv_prog_LIPO"; then
14662 ac_ct_LIPO=$LIPO
14663 # Extract the first word of "lipo", so it can be a program name with args.
14664 set dummy lipo; ac_word=$2
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14666 printf %s "checking for $ac_word... " >&6; }
14667 if test ${ac_cv_prog_ac_ct_LIPO+y}
14668 then :
14669 printf %s "(cached) " >&6
14670 else $as_nop
14671 if test -n "$ac_ct_LIPO"; then
14672 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14673 else
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14676 do
14677 IFS=$as_save_IFS
14678 case $as_dir in #(((
14679 '') as_dir=./ ;;
14680 */) ;;
14681 *) as_dir=$as_dir/ ;;
14682 esac
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14685 ac_cv_prog_ac_ct_LIPO="lipo"
14686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14687 break 2
14688 fi
14689 done
14690 done
14691 IFS=$as_save_IFS
14692
14693 fi
14694 fi
14695 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14696 if test -n "$ac_ct_LIPO"; then
14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14698 printf "%s\n" "$ac_ct_LIPO" >&6; }
14699 else
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 printf "%s\n" "no" >&6; }
14702 fi
14703
14704 if test "x$ac_ct_LIPO" = x; then
14705 LIPO=":"
14706 else
14707 case $cross_compiling:$ac_tool_warned in
14708 yes:)
14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14711 ac_tool_warned=yes ;;
14712 esac
14713 LIPO=$ac_ct_LIPO
14714 fi
14715 else
14716 LIPO="$ac_cv_prog_LIPO"
14717 fi
14718
14719 if test -n "$ac_tool_prefix"; then
14720 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14721 set dummy ${ac_tool_prefix}otool; ac_word=$2
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14723 printf %s "checking for $ac_word... " >&6; }
14724 if test ${ac_cv_prog_OTOOL+y}
14725 then :
14726 printf %s "(cached) " >&6
14727 else $as_nop
14728 if test -n "$OTOOL"; then
14729 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14730 else
14731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14732 for as_dir in $PATH
14733 do
14734 IFS=$as_save_IFS
14735 case $as_dir in #(((
14736 '') as_dir=./ ;;
14737 */) ;;
14738 *) as_dir=$as_dir/ ;;
14739 esac
14740 for ac_exec_ext in '' $ac_executable_extensions; do
14741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14742 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14744 break 2
14745 fi
14746 done
14747 done
14748 IFS=$as_save_IFS
14749
14750 fi
14751 fi
14752 OTOOL=$ac_cv_prog_OTOOL
14753 if test -n "$OTOOL"; then
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14755 printf "%s\n" "$OTOOL" >&6; }
14756 else
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 printf "%s\n" "no" >&6; }
14759 fi
14760
14761
14762 fi
14763 if test -z "$ac_cv_prog_OTOOL"; then
14764 ac_ct_OTOOL=$OTOOL
14765 # Extract the first word of "otool", so it can be a program name with args.
14766 set dummy otool; ac_word=$2
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14768 printf %s "checking for $ac_word... " >&6; }
14769 if test ${ac_cv_prog_ac_ct_OTOOL+y}
14770 then :
14771 printf %s "(cached) " >&6
14772 else $as_nop
14773 if test -n "$ac_ct_OTOOL"; then
14774 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14775 else
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14778 do
14779 IFS=$as_save_IFS
14780 case $as_dir in #(((
14781 '') as_dir=./ ;;
14782 */) ;;
14783 *) as_dir=$as_dir/ ;;
14784 esac
14785 for ac_exec_ext in '' $ac_executable_extensions; do
14786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14787 ac_cv_prog_ac_ct_OTOOL="otool"
14788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14789 break 2
14790 fi
14791 done
14792 done
14793 IFS=$as_save_IFS
14794
14795 fi
14796 fi
14797 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14798 if test -n "$ac_ct_OTOOL"; then
14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14800 printf "%s\n" "$ac_ct_OTOOL" >&6; }
14801 else
14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803 printf "%s\n" "no" >&6; }
14804 fi
14805
14806 if test "x$ac_ct_OTOOL" = x; then
14807 OTOOL=":"
14808 else
14809 case $cross_compiling:$ac_tool_warned in
14810 yes:)
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14813 ac_tool_warned=yes ;;
14814 esac
14815 OTOOL=$ac_ct_OTOOL
14816 fi
14817 else
14818 OTOOL="$ac_cv_prog_OTOOL"
14819 fi
14820
14821 if test -n "$ac_tool_prefix"; then
14822 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14823 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14825 printf %s "checking for $ac_word... " >&6; }
14826 if test ${ac_cv_prog_OTOOL64+y}
14827 then :
14828 printf %s "(cached) " >&6
14829 else $as_nop
14830 if test -n "$OTOOL64"; then
14831 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14832 else
14833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14834 for as_dir in $PATH
14835 do
14836 IFS=$as_save_IFS
14837 case $as_dir in #(((
14838 '') as_dir=./ ;;
14839 */) ;;
14840 *) as_dir=$as_dir/ ;;
14841 esac
14842 for ac_exec_ext in '' $ac_executable_extensions; do
14843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14844 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14846 break 2
14847 fi
14848 done
14849 done
14850 IFS=$as_save_IFS
14851
14852 fi
14853 fi
14854 OTOOL64=$ac_cv_prog_OTOOL64
14855 if test -n "$OTOOL64"; then
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14857 printf "%s\n" "$OTOOL64" >&6; }
14858 else
14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860 printf "%s\n" "no" >&6; }
14861 fi
14862
14863
14864 fi
14865 if test -z "$ac_cv_prog_OTOOL64"; then
14866 ac_ct_OTOOL64=$OTOOL64
14867 # Extract the first word of "otool64", so it can be a program name with args.
14868 set dummy otool64; ac_word=$2
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14870 printf %s "checking for $ac_word... " >&6; }
14871 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14872 then :
14873 printf %s "(cached) " >&6
14874 else $as_nop
14875 if test -n "$ac_ct_OTOOL64"; then
14876 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14877 else
14878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14880 do
14881 IFS=$as_save_IFS
14882 case $as_dir in #(((
14883 '') as_dir=./ ;;
14884 */) ;;
14885 *) as_dir=$as_dir/ ;;
14886 esac
14887 for ac_exec_ext in '' $ac_executable_extensions; do
14888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14889 ac_cv_prog_ac_ct_OTOOL64="otool64"
14890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14891 break 2
14892 fi
14893 done
14894 done
14895 IFS=$as_save_IFS
14896
14897 fi
14898 fi
14899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14900 if test -n "$ac_ct_OTOOL64"; then
14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14902 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14903 else
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905 printf "%s\n" "no" >&6; }
14906 fi
14907
14908 if test "x$ac_ct_OTOOL64" = x; then
14909 OTOOL64=":"
14910 else
14911 case $cross_compiling:$ac_tool_warned in
14912 yes:)
14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14914 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14915 ac_tool_warned=yes ;;
14916 esac
14917 OTOOL64=$ac_ct_OTOOL64
14918 fi
14919 else
14920 OTOOL64="$ac_cv_prog_OTOOL64"
14921 fi
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14950 printf %s "checking for -single_module linker flag... " >&6; }
14951 if test ${lt_cv_apple_cc_single_mod+y}
14952 then :
14953 printf %s "(cached) " >&6
14954 else $as_nop
14955 lt_cv_apple_cc_single_mod=no
14956 if test -z "$LT_MULTI_MODULE"; then
14957 # By default we will add the -single_module flag. You can override
14958 # by either setting the environment variable LT_MULTI_MODULE
14959 # non-empty at configure time, or by adding -multi_module to the
14960 # link flags.
14961 rm -rf libconftest.dylib*
14962 echo "int foo(void){return 1;}" > conftest.c
14963 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14964 -dynamiclib -Wl,-single_module conftest.c" >&5
14965 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14966 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14967 _lt_result=$?
14968 # If there is a non-empty error log, and "single_module"
14969 # appears in it, assume the flag caused a linker warning
14970 if test -s conftest.err && $GREP single_module conftest.err; then
14971 cat conftest.err >&5
14972 # Otherwise, if the output was created with a 0 exit code from
14973 # the compiler, it worked.
14974 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14975 lt_cv_apple_cc_single_mod=yes
14976 else
14977 cat conftest.err >&5
14978 fi
14979 rm -rf libconftest.dylib*
14980 rm -f conftest.*
14981 fi
14982 fi
14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14984 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14985
14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14987 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14988 if test ${lt_cv_ld_exported_symbols_list+y}
14989 then :
14990 printf %s "(cached) " >&6
14991 else $as_nop
14992 lt_cv_ld_exported_symbols_list=no
14993 save_LDFLAGS=$LDFLAGS
14994 echo "_main" > conftest.sym
14995 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998
14999 int
15000 main (void)
15001 {
15002
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_link "$LINENO"
15008 then :
15009 lt_cv_ld_exported_symbols_list=yes
15010 else $as_nop
15011 lt_cv_ld_exported_symbols_list=no
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LDFLAGS=$save_LDFLAGS
15016
15017 fi
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15019 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15020
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15022 printf %s "checking for -force_load linker flag... " >&6; }
15023 if test ${lt_cv_ld_force_load+y}
15024 then :
15025 printf %s "(cached) " >&6
15026 else $as_nop
15027 lt_cv_ld_force_load=no
15028 cat > conftest.c << _LT_EOF
15029 int forced_loaded() { return 2;}
15030 _LT_EOF
15031 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15032 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15033 echo "$AR cr libconftest.a conftest.o" >&5
15034 $AR cr libconftest.a conftest.o 2>&5
15035 echo "$RANLIB libconftest.a" >&5
15036 $RANLIB libconftest.a 2>&5
15037 cat > conftest.c << _LT_EOF
15038 int main() { return 0;}
15039 _LT_EOF
15040 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15041 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15042 _lt_result=$?
15043 if test -s conftest.err && $GREP force_load conftest.err; then
15044 cat conftest.err >&5
15045 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15046 lt_cv_ld_force_load=yes
15047 else
15048 cat conftest.err >&5
15049 fi
15050 rm -f conftest.err libconftest.a conftest conftest.c
15051 rm -rf conftest.dSYM
15052
15053 fi
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15055 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15056 case $host_os in
15057 rhapsody* | darwin1.[012])
15058 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15059 darwin1.*)
15060 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15061 darwin*) # darwin 5.x on
15062 # if running on 10.5 or later, the deployment target defaults
15063 # to the OS version, if on x86, and 10.4, the deployment
15064 # target defaults to 10.4. Don't you love it?
15065 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15066 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
15067 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15068 10.[012][,.]*)
15069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15070 10.*|11.*)
15071 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15072 esac
15073 ;;
15074 esac
15075 if test yes = "$lt_cv_apple_cc_single_mod"; then
15076 _lt_dar_single_mod='$single_module'
15077 fi
15078 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15079 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15080 else
15081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15082 fi
15083 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15084 _lt_dsymutil='~$DSYMUTIL $lib || :'
15085 else
15086 _lt_dsymutil=
15087 fi
15088 ;;
15089 esac
15090
15091 # func_munge_path_list VARIABLE PATH
15092 # -----------------------------------
15093 # VARIABLE is name of variable containing _space_ separated list of
15094 # directories to be munged by the contents of PATH, which is string
15095 # having a format:
15096 # "DIR[:DIR]:"
15097 # string "DIR[ DIR]" will be prepended to VARIABLE
15098 # ":DIR[:DIR]"
15099 # string "DIR[ DIR]" will be appended to VARIABLE
15100 # "DIRP[:DIRP]::[DIRA:]DIRA"
15101 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15102 # "DIRA[ DIRA]" will be appended to VARIABLE
15103 # "DIR[:DIR]"
15104 # VARIABLE will be replaced by "DIR[ DIR]"
15105 func_munge_path_list ()
15106 {
15107 case x$2 in
15108 x)
15109 ;;
15110 *:)
15111 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15112 ;;
15113 x:*)
15114 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15115 ;;
15116 *::*)
15117 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15118 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15119 ;;
15120 *)
15121 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15122 ;;
15123 esac
15124 }
15125
15126 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15127 "
15128 if test "x$ac_cv_header_dlfcn_h" = xyes
15129 then :
15130 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15131
15132 fi
15133
15134
15135
15136
15137
15138 # Set options
15139
15140
15141
15142 enable_dlopen=no
15143
15144
15145 enable_win32_dll=no
15146
15147
15148 # Check whether --enable-shared was given.
15149 if test ${enable_shared+y}
15150 then :
15151 enableval=$enable_shared; p=${PACKAGE-default}
15152 case $enableval in
15153 yes) enable_shared=yes ;;
15154 no) enable_shared=no ;;
15155 *)
15156 enable_shared=no
15157 # Look at the argument we got. We use all the common list separators.
15158 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15159 for pkg in $enableval; do
15160 IFS=$lt_save_ifs
15161 if test "X$pkg" = "X$p"; then
15162 enable_shared=yes
15163 fi
15164 done
15165 IFS=$lt_save_ifs
15166 ;;
15167 esac
15168 else $as_nop
15169 enable_shared=yes
15170 fi
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182 # Check whether --with-pic was given.
15183 if test ${with_pic+y}
15184 then :
15185 withval=$with_pic; lt_p=${PACKAGE-default}
15186 case $withval in
15187 yes|no) pic_mode=$withval ;;
15188 *)
15189 pic_mode=default
15190 # Look at the argument we got. We use all the common list separators.
15191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15192 for lt_pkg in $withval; do
15193 IFS=$lt_save_ifs
15194 if test "X$lt_pkg" = "X$lt_p"; then
15195 pic_mode=yes
15196 fi
15197 done
15198 IFS=$lt_save_ifs
15199 ;;
15200 esac
15201 else $as_nop
15202 pic_mode=default
15203 fi
15204
15205
15206
15207
15208
15209
15210
15211
15212 # Check whether --enable-fast-install was given.
15213 if test ${enable_fast_install+y}
15214 then :
15215 enableval=$enable_fast_install; p=${PACKAGE-default}
15216 case $enableval in
15217 yes) enable_fast_install=yes ;;
15218 no) enable_fast_install=no ;;
15219 *)
15220 enable_fast_install=no
15221 # Look at the argument we got. We use all the common list separators.
15222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15223 for pkg in $enableval; do
15224 IFS=$lt_save_ifs
15225 if test "X$pkg" = "X$p"; then
15226 enable_fast_install=yes
15227 fi
15228 done
15229 IFS=$lt_save_ifs
15230 ;;
15231 esac
15232 else $as_nop
15233 enable_fast_install=yes
15234 fi
15235
15236
15237
15238
15239
15240
15241
15242
15243 shared_archive_member_spec=
15244 case $host,$enable_shared in
15245 power*-*-aix[5-9]*,yes)
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15247 printf %s "checking which variant of shared library versioning to provide... " >&6; }
15248
15249 # Check whether --with-aix-soname was given.
15250 if test ${with_aix_soname+y}
15251 then :
15252 withval=$with_aix_soname; case $withval in
15253 aix|svr4|both)
15254 ;;
15255 *)
15256 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15257 ;;
15258 esac
15259 lt_cv_with_aix_soname=$with_aix_soname
15260 else $as_nop
15261 if test ${lt_cv_with_aix_soname+y}
15262 then :
15263 printf %s "(cached) " >&6
15264 else $as_nop
15265 lt_cv_with_aix_soname=aix
15266 fi
15267
15268 with_aix_soname=$lt_cv_with_aix_soname
15269 fi
15270
15271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15272 printf "%s\n" "$with_aix_soname" >&6; }
15273 if test aix != "$with_aix_soname"; then
15274 # For the AIX way of multilib, we name the shared archive member
15275 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15276 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15277 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15278 # the AIX toolchain works better with OBJECT_MODE set (default 32).
15279 if test 64 = "${OBJECT_MODE-32}"; then
15280 shared_archive_member_spec=shr_64
15281 else
15282 shared_archive_member_spec=shr
15283 fi
15284 fi
15285 ;;
15286 *)
15287 with_aix_soname=aix
15288 ;;
15289 esac
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300 # This can be used to rebuild libtool when needed
15301 LIBTOOL_DEPS=$ltmain
15302
15303 # Always use our own libtool.
15304 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335 test -z "$LN_S" && LN_S="ln -s"
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350 if test -n "${ZSH_VERSION+set}"; then
15351 setopt NO_GLOB_SUBST
15352 fi
15353
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15355 printf %s "checking for objdir... " >&6; }
15356 if test ${lt_cv_objdir+y}
15357 then :
15358 printf %s "(cached) " >&6
15359 else $as_nop
15360 rm -f .libs 2>/dev/null
15361 mkdir .libs 2>/dev/null
15362 if test -d .libs; then
15363 lt_cv_objdir=.libs
15364 else
15365 # MS-DOS does not allow filenames that begin with a dot.
15366 lt_cv_objdir=_libs
15367 fi
15368 rmdir .libs 2>/dev/null
15369 fi
15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15371 printf "%s\n" "$lt_cv_objdir" >&6; }
15372 objdir=$lt_cv_objdir
15373
15374
15375
15376
15377
15378 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15379
15380
15381
15382
15383 case $host_os in
15384 aix3*)
15385 # AIX sometimes has problems with the GCC collect2 program. For some
15386 # reason, if we set the COLLECT_NAMES environment variable, the problems
15387 # vanish in a puff of smoke.
15388 if test set != "${COLLECT_NAMES+set}"; then
15389 COLLECT_NAMES=
15390 export COLLECT_NAMES
15391 fi
15392 ;;
15393 esac
15394
15395 # Global variables:
15396 ofile=libtool
15397 can_build_shared=yes
15398
15399 # All known linkers require a '.a' archive for static linking (except MSVC,
15400 # which needs '.lib').
15401 libext=a
15402
15403 with_gnu_ld=$lt_cv_prog_gnu_ld
15404
15405 old_CC=$CC
15406 old_CFLAGS=$CFLAGS
15407
15408 # Set sane defaults for various variables
15409 test -z "$CC" && CC=cc
15410 test -z "$LTCC" && LTCC=$CC
15411 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15412 test -z "$LD" && LD=ld
15413 test -z "$ac_objext" && ac_objext=o
15414
15415 func_cc_basename $compiler
15416 cc_basename=$func_cc_basename_result
15417
15418
15419 # Only perform the check for file, if the check method requires it
15420 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15421 case $deplibs_check_method in
15422 file_magic*)
15423 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15425 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15426 if test ${lt_cv_path_MAGIC_CMD+y}
15427 then :
15428 printf %s "(cached) " >&6
15429 else $as_nop
15430 case $MAGIC_CMD in
15431 [\\/*] | ?:[\\/]*)
15432 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15433 ;;
15434 *)
15435 lt_save_MAGIC_CMD=$MAGIC_CMD
15436 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15437 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15438 for ac_dir in $ac_dummy; do
15439 IFS=$lt_save_ifs
15440 test -z "$ac_dir" && ac_dir=.
15441 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15442 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15443 if test -n "$file_magic_test_file"; then
15444 case $deplibs_check_method in
15445 "file_magic "*)
15446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15447 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15449 $EGREP "$file_magic_regex" > /dev/null; then
15450 :
15451 else
15452 cat <<_LT_EOF 1>&2
15453
15454 *** Warning: the command libtool uses to detect shared libraries,
15455 *** $file_magic_cmd, produces output that libtool cannot recognize.
15456 *** The result is that libtool may fail to recognize shared libraries
15457 *** as such. This will affect the creation of libtool libraries that
15458 *** depend on shared libraries, but programs linked with such libtool
15459 *** libraries will work regardless of this problem. Nevertheless, you
15460 *** may want to report the problem to your system manager and/or to
15461 *** bug-libtool@gnu.org
15462
15463 _LT_EOF
15464 fi ;;
15465 esac
15466 fi
15467 break
15468 fi
15469 done
15470 IFS=$lt_save_ifs
15471 MAGIC_CMD=$lt_save_MAGIC_CMD
15472 ;;
15473 esac
15474 fi
15475
15476 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15477 if test -n "$MAGIC_CMD"; then
15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15479 printf "%s\n" "$MAGIC_CMD" >&6; }
15480 else
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 printf "%s\n" "no" >&6; }
15483 fi
15484
15485
15486
15487
15488
15489 if test -z "$lt_cv_path_MAGIC_CMD"; then
15490 if test -n "$ac_tool_prefix"; then
15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15492 printf %s "checking for file... " >&6; }
15493 if test ${lt_cv_path_MAGIC_CMD+y}
15494 then :
15495 printf %s "(cached) " >&6
15496 else $as_nop
15497 case $MAGIC_CMD in
15498 [\\/*] | ?:[\\/]*)
15499 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15500 ;;
15501 *)
15502 lt_save_MAGIC_CMD=$MAGIC_CMD
15503 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15504 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15505 for ac_dir in $ac_dummy; do
15506 IFS=$lt_save_ifs
15507 test -z "$ac_dir" && ac_dir=.
15508 if test -f "$ac_dir/file"; then
15509 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15510 if test -n "$file_magic_test_file"; then
15511 case $deplibs_check_method in
15512 "file_magic "*)
15513 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15514 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15516 $EGREP "$file_magic_regex" > /dev/null; then
15517 :
15518 else
15519 cat <<_LT_EOF 1>&2
15520
15521 *** Warning: the command libtool uses to detect shared libraries,
15522 *** $file_magic_cmd, produces output that libtool cannot recognize.
15523 *** The result is that libtool may fail to recognize shared libraries
15524 *** as such. This will affect the creation of libtool libraries that
15525 *** depend on shared libraries, but programs linked with such libtool
15526 *** libraries will work regardless of this problem. Nevertheless, you
15527 *** may want to report the problem to your system manager and/or to
15528 *** bug-libtool@gnu.org
15529
15530 _LT_EOF
15531 fi ;;
15532 esac
15533 fi
15534 break
15535 fi
15536 done
15537 IFS=$lt_save_ifs
15538 MAGIC_CMD=$lt_save_MAGIC_CMD
15539 ;;
15540 esac
15541 fi
15542
15543 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15544 if test -n "$MAGIC_CMD"; then
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15546 printf "%s\n" "$MAGIC_CMD" >&6; }
15547 else
15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15549 printf "%s\n" "no" >&6; }
15550 fi
15551
15552
15553 else
15554 MAGIC_CMD=:
15555 fi
15556 fi
15557
15558 fi
15559 ;;
15560 esac
15561
15562 # Use C for the default configuration in the libtool script
15563
15564 lt_save_CC=$CC
15565 ac_ext=c
15566 ac_cpp='$CPP $CPPFLAGS'
15567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15570
15571
15572 # Source file extension for C test sources.
15573 ac_ext=c
15574
15575 # Object file extension for compiled C test sources.
15576 objext=o
15577 objext=$objext
15578
15579 # Code to be used in simple compile tests
15580 lt_simple_compile_test_code="int some_variable = 0;"
15581
15582 # Code to be used in simple link tests
15583 lt_simple_link_test_code='int main(){return(0);}'
15584
15585
15586
15587
15588
15589
15590
15591 # If no C compiler was specified, use CC.
15592 LTCC=${LTCC-"$CC"}
15593
15594 # If no C compiler flags were specified, use CFLAGS.
15595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15596
15597 # Allow CC to be a program name with arguments.
15598 compiler=$CC
15599
15600 # Save the default compiler, since it gets overwritten when the other
15601 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15602 compiler_DEFAULT=$CC
15603
15604 # save warnings/boilerplate of simple test code
15605 ac_outfile=conftest.$ac_objext
15606 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15608 _lt_compiler_boilerplate=`cat conftest.err`
15609 $RM conftest*
15610
15611 ac_outfile=conftest.$ac_objext
15612 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15614 _lt_linker_boilerplate=`cat conftest.err`
15615 $RM -r conftest*
15616
15617
15618 ## CAVEAT EMPTOR:
15619 ## There is no encapsulation within the following macros, do not change
15620 ## the running order or otherwise move them around unless you know exactly
15621 ## what you are doing...
15622 if test -n "$compiler"; then
15623
15624 lt_prog_compiler_no_builtin_flag=
15625
15626 if test yes = "$GCC"; then
15627 case $cc_basename in
15628 nvcc*)
15629 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15630 *)
15631 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15632 esac
15633
15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15635 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15636 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15637 then :
15638 printf %s "(cached) " >&6
15639 else $as_nop
15640 lt_cv_prog_compiler_rtti_exceptions=no
15641 ac_outfile=conftest.$ac_objext
15642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15643 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
15644 # Insert the option either (1) after the last *FLAGS variable, or
15645 # (2) before a word containing "conftest.", or (3) at the end.
15646 # Note that $ac_compile itself does not contain backslashes and begins
15647 # with a dollar sign (not a hyphen), so the echo should work correctly.
15648 # The option is referenced via a variable to avoid confusing sed.
15649 lt_compile=`echo "$ac_compile" | $SED \
15650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15652 -e 's:$: $lt_compiler_flag:'`
15653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15654 (eval "$lt_compile" 2>conftest.err)
15655 ac_status=$?
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 if (exit $ac_status) && test -s "$ac_outfile"; then
15659 # The compiler can only warn and ignore the option if not recognized
15660 # So say no if there are warnings other than the usual output.
15661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15664 lt_cv_prog_compiler_rtti_exceptions=yes
15665 fi
15666 fi
15667 $RM conftest*
15668
15669 fi
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15671 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15672
15673 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15675 else
15676 :
15677 fi
15678
15679 fi
15680
15681
15682
15683
15684
15685
15686 lt_prog_compiler_wl=
15687 lt_prog_compiler_pic=
15688 lt_prog_compiler_static=
15689
15690
15691 if test yes = "$GCC"; then
15692 lt_prog_compiler_wl='-Wl,'
15693 lt_prog_compiler_static='-static'
15694
15695 case $host_os in
15696 aix*)
15697 # All AIX code is PIC.
15698 if test ia64 = "$host_cpu"; then
15699 # AIX 5 now supports IA64 processor
15700 lt_prog_compiler_static='-Bstatic'
15701 fi
15702 lt_prog_compiler_pic='-fPIC'
15703 ;;
15704
15705 amigaos*)
15706 case $host_cpu in
15707 powerpc)
15708 # see comment about AmigaOS4 .so support
15709 lt_prog_compiler_pic='-fPIC'
15710 ;;
15711 m68k)
15712 # FIXME: we need at least 68020 code to build shared libraries, but
15713 # adding the '-m68020' flag to GCC prevents building anything better,
15714 # like '-m68040'.
15715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15716 ;;
15717 esac
15718 ;;
15719
15720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15721 # PIC is the default for these OSes.
15722 ;;
15723
15724 mingw* | cygwin* | pw32* | os2* | cegcc*)
15725 # This hack is so that the source file can tell whether it is being
15726 # built for inclusion in a dll (and should export symbols for example).
15727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15728 # (--disable-auto-import) libraries
15729 lt_prog_compiler_pic='-DDLL_EXPORT'
15730 case $host_os in
15731 os2*)
15732 lt_prog_compiler_static='$wl-static'
15733 ;;
15734 esac
15735 ;;
15736
15737 darwin* | rhapsody*)
15738 # PIC is the default on this platform
15739 # Common symbols not allowed in MH_DYLIB files
15740 lt_prog_compiler_pic='-fno-common'
15741 ;;
15742
15743 haiku*)
15744 # PIC is the default for Haiku.
15745 # The "-static" flag exists, but is broken.
15746 lt_prog_compiler_static=
15747 ;;
15748
15749 hpux*)
15750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15752 # sets the default TLS model and affects inlining.
15753 case $host_cpu in
15754 hppa*64*)
15755 # +Z the default
15756 ;;
15757 *)
15758 lt_prog_compiler_pic='-fPIC'
15759 ;;
15760 esac
15761 ;;
15762
15763 interix[3-9]*)
15764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15765 # Instead, we relocate shared libraries at runtime.
15766 ;;
15767
15768 msdosdjgpp*)
15769 # Just because we use GCC doesn't mean we suddenly get shared libraries
15770 # on systems that don't support them.
15771 lt_prog_compiler_can_build_shared=no
15772 enable_shared=no
15773 ;;
15774
15775 *nto* | *qnx*)
15776 # QNX uses GNU C++, but need to define -shared option too, otherwise
15777 # it will coredump.
15778 lt_prog_compiler_pic='-fPIC -shared'
15779 ;;
15780
15781 sysv4*MP*)
15782 if test -d /usr/nec; then
15783 lt_prog_compiler_pic=-Kconform_pic
15784 fi
15785 ;;
15786
15787 *)
15788 lt_prog_compiler_pic='-fPIC'
15789 ;;
15790 esac
15791
15792 case $cc_basename in
15793 nvcc*) # Cuda Compiler Driver 2.2
15794 lt_prog_compiler_wl='-Xlinker '
15795 if test -n "$lt_prog_compiler_pic"; then
15796 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15797 fi
15798 ;;
15799 esac
15800 else
15801 # PORTME Check for flag to pass linker flags through the system compiler.
15802 case $host_os in
15803 aix*)
15804 lt_prog_compiler_wl='-Wl,'
15805 if test ia64 = "$host_cpu"; then
15806 # AIX 5 now supports IA64 processor
15807 lt_prog_compiler_static='-Bstatic'
15808 else
15809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15810 fi
15811 ;;
15812
15813 darwin* | rhapsody*)
15814 # PIC is the default on this platform
15815 # Common symbols not allowed in MH_DYLIB files
15816 lt_prog_compiler_pic='-fno-common'
15817 case $cc_basename in
15818 nagfor*)
15819 # NAG Fortran compiler
15820 lt_prog_compiler_wl='-Wl,-Wl,,'
15821 lt_prog_compiler_pic='-PIC'
15822 lt_prog_compiler_static='-Bstatic'
15823 ;;
15824 esac
15825 ;;
15826
15827 mingw* | cygwin* | pw32* | os2* | cegcc*)
15828 # This hack is so that the source file can tell whether it is being
15829 # built for inclusion in a dll (and should export symbols for example).
15830 lt_prog_compiler_pic='-DDLL_EXPORT'
15831 case $host_os in
15832 os2*)
15833 lt_prog_compiler_static='$wl-static'
15834 ;;
15835 esac
15836 ;;
15837
15838 hpux9* | hpux10* | hpux11*)
15839 lt_prog_compiler_wl='-Wl,'
15840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15841 # not for PA HP-UX.
15842 case $host_cpu in
15843 hppa*64*|ia64*)
15844 # +Z the default
15845 ;;
15846 *)
15847 lt_prog_compiler_pic='+Z'
15848 ;;
15849 esac
15850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15851 lt_prog_compiler_static='$wl-a ${wl}archive'
15852 ;;
15853
15854 irix5* | irix6* | nonstopux*)
15855 lt_prog_compiler_wl='-Wl,'
15856 # PIC (with -KPIC) is the default.
15857 lt_prog_compiler_static='-non_shared'
15858 ;;
15859
15860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15861 case $cc_basename in
15862 # old Intel for x86_64, which still supported -KPIC.
15863 ecc*)
15864 lt_prog_compiler_wl='-Wl,'
15865 lt_prog_compiler_pic='-KPIC'
15866 lt_prog_compiler_static='-static'
15867 ;;
15868 # flang / f18. f95 an alias for gfortran or flang on Debian
15869 flang* | f18* | f95*)
15870 lt_prog_compiler_wl='-Wl,'
15871 lt_prog_compiler_pic='-fPIC'
15872 lt_prog_compiler_static='-static'
15873 ;;
15874 # icc used to be incompatible with GCC.
15875 # ICC 10 doesn't accept -KPIC any more.
15876 icc* | ifort*)
15877 lt_prog_compiler_wl='-Wl,'
15878 lt_prog_compiler_pic='-fPIC'
15879 lt_prog_compiler_static='-static'
15880 ;;
15881 # Lahey Fortran 8.1.
15882 lf95*)
15883 lt_prog_compiler_wl='-Wl,'
15884 lt_prog_compiler_pic='--shared'
15885 lt_prog_compiler_static='--static'
15886 ;;
15887 nagfor*)
15888 # NAG Fortran compiler
15889 lt_prog_compiler_wl='-Wl,-Wl,,'
15890 lt_prog_compiler_pic='-PIC'
15891 lt_prog_compiler_static='-Bstatic'
15892 ;;
15893 tcc*)
15894 # Fabrice Bellard et al's Tiny C Compiler
15895 lt_prog_compiler_wl='-Wl,'
15896 lt_prog_compiler_pic='-fPIC'
15897 lt_prog_compiler_static='-static'
15898 ;;
15899 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15900 # Portland Group compilers (*not* the Pentium gcc compiler,
15901 # which looks to be a dead project)
15902 lt_prog_compiler_wl='-Wl,'
15903 lt_prog_compiler_pic='-fpic'
15904 lt_prog_compiler_static='-Bstatic'
15905 ;;
15906 ccc*)
15907 lt_prog_compiler_wl='-Wl,'
15908 # All Alpha code is PIC.
15909 lt_prog_compiler_static='-non_shared'
15910 ;;
15911 xl* | bgxl* | bgf* | mpixl*)
15912 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15913 lt_prog_compiler_wl='-Wl,'
15914 lt_prog_compiler_pic='-qpic'
15915 lt_prog_compiler_static='-qstaticlink'
15916 ;;
15917 *)
15918 case `$CC -V 2>&1 | sed 5q` in
15919 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15920 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15921 lt_prog_compiler_pic='-KPIC'
15922 lt_prog_compiler_static='-Bstatic'
15923 lt_prog_compiler_wl=''
15924 ;;
15925 *Sun\ F* | *Sun*Fortran*)
15926 lt_prog_compiler_pic='-KPIC'
15927 lt_prog_compiler_static='-Bstatic'
15928 lt_prog_compiler_wl='-Qoption ld '
15929 ;;
15930 *Sun\ C*)
15931 # Sun C 5.9
15932 lt_prog_compiler_pic='-KPIC'
15933 lt_prog_compiler_static='-Bstatic'
15934 lt_prog_compiler_wl='-Wl,'
15935 ;;
15936 *Intel*\ [CF]*Compiler*)
15937 lt_prog_compiler_wl='-Wl,'
15938 lt_prog_compiler_pic='-fPIC'
15939 lt_prog_compiler_static='-static'
15940 ;;
15941 *Portland\ Group*)
15942 lt_prog_compiler_wl='-Wl,'
15943 lt_prog_compiler_pic='-fpic'
15944 lt_prog_compiler_static='-Bstatic'
15945 ;;
15946 esac
15947 ;;
15948 esac
15949 ;;
15950
15951 newsos6)
15952 lt_prog_compiler_pic='-KPIC'
15953 lt_prog_compiler_static='-Bstatic'
15954 ;;
15955
15956 *nto* | *qnx*)
15957 # QNX uses GNU C++, but need to define -shared option too, otherwise
15958 # it will coredump.
15959 lt_prog_compiler_pic='-fPIC -shared'
15960 ;;
15961
15962 osf3* | osf4* | osf5*)
15963 lt_prog_compiler_wl='-Wl,'
15964 # All OSF/1 code is PIC.
15965 lt_prog_compiler_static='-non_shared'
15966 ;;
15967
15968 rdos*)
15969 lt_prog_compiler_static='-non_shared'
15970 ;;
15971
15972 solaris*)
15973 lt_prog_compiler_pic='-KPIC'
15974 lt_prog_compiler_static='-Bstatic'
15975 case $cc_basename in
15976 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15977 lt_prog_compiler_wl='-Qoption ld ';;
15978 *)
15979 lt_prog_compiler_wl='-Wl,';;
15980 esac
15981 ;;
15982
15983 sunos4*)
15984 lt_prog_compiler_wl='-Qoption ld '
15985 lt_prog_compiler_pic='-PIC'
15986 lt_prog_compiler_static='-Bstatic'
15987 ;;
15988
15989 sysv4 | sysv4.2uw2* | sysv4.3*)
15990 lt_prog_compiler_wl='-Wl,'
15991 lt_prog_compiler_pic='-KPIC'
15992 lt_prog_compiler_static='-Bstatic'
15993 ;;
15994
15995 sysv4*MP*)
15996 if test -d /usr/nec; then
15997 lt_prog_compiler_pic='-Kconform_pic'
15998 lt_prog_compiler_static='-Bstatic'
15999 fi
16000 ;;
16001
16002 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16003 lt_prog_compiler_wl='-Wl,'
16004 lt_prog_compiler_pic='-KPIC'
16005 lt_prog_compiler_static='-Bstatic'
16006 ;;
16007
16008 unicos*)
16009 lt_prog_compiler_wl='-Wl,'
16010 lt_prog_compiler_can_build_shared=no
16011 ;;
16012
16013 uts4*)
16014 lt_prog_compiler_pic='-pic'
16015 lt_prog_compiler_static='-Bstatic'
16016 ;;
16017
16018 *)
16019 lt_prog_compiler_can_build_shared=no
16020 ;;
16021 esac
16022 fi
16023
16024 case $host_os in
16025 # For platforms that do not support PIC, -DPIC is meaningless:
16026 *djgpp*)
16027 lt_prog_compiler_pic=
16028 ;;
16029 *)
16030 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16031 ;;
16032 esac
16033
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16035 printf %s "checking for $compiler option to produce PIC... " >&6; }
16036 if test ${lt_cv_prog_compiler_pic+y}
16037 then :
16038 printf %s "(cached) " >&6
16039 else $as_nop
16040 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
16041 fi
16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16043 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16044 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16045
16046 #
16047 # Check to make sure the PIC flag actually works.
16048 #
16049 if test -n "$lt_prog_compiler_pic"; then
16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16051 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16052 if test ${lt_cv_prog_compiler_pic_works+y}
16053 then :
16054 printf %s "(cached) " >&6
16055 else $as_nop
16056 lt_cv_prog_compiler_pic_works=no
16057 ac_outfile=conftest.$ac_objext
16058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16059 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
16060 # Insert the option either (1) after the last *FLAGS variable, or
16061 # (2) before a word containing "conftest.", or (3) at the end.
16062 # Note that $ac_compile itself does not contain backslashes and begins
16063 # with a dollar sign (not a hyphen), so the echo should work correctly.
16064 # The option is referenced via a variable to avoid confusing sed.
16065 lt_compile=`echo "$ac_compile" | $SED \
16066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16068 -e 's:$: $lt_compiler_flag:'`
16069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16070 (eval "$lt_compile" 2>conftest.err)
16071 ac_status=$?
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 if (exit $ac_status) && test -s "$ac_outfile"; then
16075 # The compiler can only warn and ignore the option if not recognized
16076 # So say no if there are warnings other than the usual output.
16077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16080 lt_cv_prog_compiler_pic_works=yes
16081 fi
16082 fi
16083 $RM conftest*
16084
16085 fi
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16087 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16088
16089 if test yes = "$lt_cv_prog_compiler_pic_works"; then
16090 case $lt_prog_compiler_pic in
16091 "" | " "*) ;;
16092 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16093 esac
16094 else
16095 lt_prog_compiler_pic=
16096 lt_prog_compiler_can_build_shared=no
16097 fi
16098
16099 fi
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111 #
16112 # Check to make sure the static flag actually works.
16113 #
16114 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16116 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16117 if test ${lt_cv_prog_compiler_static_works+y}
16118 then :
16119 printf %s "(cached) " >&6
16120 else $as_nop
16121 lt_cv_prog_compiler_static_works=no
16122 save_LDFLAGS=$LDFLAGS
16123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16126 # The linker can only warn and ignore the option if not recognized
16127 # So say no if there are warnings
16128 if test -s conftest.err; then
16129 # Append any errors to the config.log.
16130 cat conftest.err 1>&5
16131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16133 if diff conftest.exp conftest.er2 >/dev/null; then
16134 lt_cv_prog_compiler_static_works=yes
16135 fi
16136 else
16137 lt_cv_prog_compiler_static_works=yes
16138 fi
16139 fi
16140 $RM -r conftest*
16141 LDFLAGS=$save_LDFLAGS
16142
16143 fi
16144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16145 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16146
16147 if test yes = "$lt_cv_prog_compiler_static_works"; then
16148 :
16149 else
16150 lt_prog_compiler_static=
16151 fi
16152
16153
16154
16155
16156
16157
16158
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16160 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16161 if test ${lt_cv_prog_compiler_c_o+y}
16162 then :
16163 printf %s "(cached) " >&6
16164 else $as_nop
16165 lt_cv_prog_compiler_c_o=no
16166 $RM -r conftest 2>/dev/null
16167 mkdir conftest
16168 cd conftest
16169 mkdir out
16170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16171
16172 lt_compiler_flag="-o out/conftest2.$ac_objext"
16173 # Insert the option either (1) after the last *FLAGS variable, or
16174 # (2) before a word containing "conftest.", or (3) at the end.
16175 # Note that $ac_compile itself does not contain backslashes and begins
16176 # with a dollar sign (not a hyphen), so the echo should work correctly.
16177 lt_compile=`echo "$ac_compile" | $SED \
16178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16180 -e 's:$: $lt_compiler_flag:'`
16181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16182 (eval "$lt_compile" 2>out/conftest.err)
16183 ac_status=$?
16184 cat out/conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16187 then
16188 # The compiler can only warn and ignore the option if not recognized
16189 # So say no if there are warnings
16190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16193 lt_cv_prog_compiler_c_o=yes
16194 fi
16195 fi
16196 chmod u+w . 2>&5
16197 $RM conftest*
16198 # SGI C++ compiler will create directory out/ii_files/ for
16199 # template instantiation
16200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16201 $RM out/* && rmdir out
16202 cd ..
16203 $RM -r conftest
16204 $RM conftest*
16205
16206 fi
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16208 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16209
16210
16211
16212
16213
16214
16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16216 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16217 if test ${lt_cv_prog_compiler_c_o+y}
16218 then :
16219 printf %s "(cached) " >&6
16220 else $as_nop
16221 lt_cv_prog_compiler_c_o=no
16222 $RM -r conftest 2>/dev/null
16223 mkdir conftest
16224 cd conftest
16225 mkdir out
16226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16227
16228 lt_compiler_flag="-o out/conftest2.$ac_objext"
16229 # Insert the option either (1) after the last *FLAGS variable, or
16230 # (2) before a word containing "conftest.", or (3) at the end.
16231 # Note that $ac_compile itself does not contain backslashes and begins
16232 # with a dollar sign (not a hyphen), so the echo should work correctly.
16233 lt_compile=`echo "$ac_compile" | $SED \
16234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16236 -e 's:$: $lt_compiler_flag:'`
16237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16238 (eval "$lt_compile" 2>out/conftest.err)
16239 ac_status=$?
16240 cat out/conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16243 then
16244 # The compiler can only warn and ignore the option if not recognized
16245 # So say no if there are warnings
16246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16249 lt_cv_prog_compiler_c_o=yes
16250 fi
16251 fi
16252 chmod u+w . 2>&5
16253 $RM conftest*
16254 # SGI C++ compiler will create directory out/ii_files/ for
16255 # template instantiation
16256 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16257 $RM out/* && rmdir out
16258 cd ..
16259 $RM -r conftest
16260 $RM conftest*
16261
16262 fi
16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16264 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16265
16266
16267
16268
16269 hard_links=nottested
16270 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16271 # do not overwrite the value of need_locks provided by the user
16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16273 printf %s "checking if we can lock with hard links... " >&6; }
16274 hard_links=yes
16275 $RM conftest*
16276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16277 touch conftest.a
16278 ln conftest.a conftest.b 2>&5 || hard_links=no
16279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16281 printf "%s\n" "$hard_links" >&6; }
16282 if test no = "$hard_links"; then
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16284 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16285 need_locks=warn
16286 fi
16287 else
16288 need_locks=no
16289 fi
16290
16291
16292
16293
16294
16295
16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16297 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16298
16299 runpath_var=
16300 allow_undefined_flag=
16301 always_export_symbols=no
16302 archive_cmds=
16303 archive_expsym_cmds=
16304 compiler_needs_object=no
16305 enable_shared_with_static_runtimes=no
16306 export_dynamic_flag_spec=
16307 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16308 hardcode_automatic=no
16309 hardcode_direct=no
16310 hardcode_direct_absolute=no
16311 hardcode_libdir_flag_spec=
16312 hardcode_libdir_separator=
16313 hardcode_minus_L=no
16314 hardcode_shlibpath_var=unsupported
16315 inherit_rpath=no
16316 link_all_deplibs=unknown
16317 module_cmds=
16318 module_expsym_cmds=
16319 old_archive_from_new_cmds=
16320 old_archive_from_expsyms_cmds=
16321 thread_safe_flag_spec=
16322 whole_archive_flag_spec=
16323 # include_expsyms should be a list of space-separated symbols to be *always*
16324 # included in the symbol list
16325 include_expsyms=
16326 # exclude_expsyms can be an extended regexp of symbols to exclude
16327 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16328 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16329 # as well as any symbol that contains 'd'.
16330 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16332 # platforms (ab)use it in PIC code, but their linkers get confused if
16333 # the symbol is explicitly referenced. Since portable code cannot
16334 # rely on this symbol name, it's probably fine to never include it in
16335 # preloaded symbol tables.
16336 # Exclude shared library initialization/finalization symbols.
16337 extract_expsyms_cmds=
16338
16339 case $host_os in
16340 cygwin* | mingw* | pw32* | cegcc*)
16341 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16342 # When not using gcc, we currently assume that we are using
16343 # Microsoft Visual C++.
16344 if test yes != "$GCC"; then
16345 with_gnu_ld=no
16346 fi
16347 ;;
16348 interix*)
16349 # we just hope/assume this is gcc and not c89 (= MSVC++)
16350 with_gnu_ld=yes
16351 ;;
16352 openbsd* | bitrig*)
16353 with_gnu_ld=no
16354 ;;
16355 linux* | k*bsd*-gnu | gnu*)
16356 link_all_deplibs=no
16357 ;;
16358 esac
16359
16360 ld_shlibs=yes
16361
16362 # On some targets, GNU ld is compatible enough with the native linker
16363 # that we're better off using the native interface for both.
16364 lt_use_gnu_ld_interface=no
16365 if test yes = "$with_gnu_ld"; then
16366 case $host_os in
16367 aix*)
16368 # The AIX port of GNU ld has always aspired to compatibility
16369 # with the native linker. However, as the warning in the GNU ld
16370 # block says, versions before 2.19.5* couldn't really create working
16371 # shared libraries, regardless of the interface used.
16372 case `$LD -v 2>&1` in
16373 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16374 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16375 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16376 *)
16377 lt_use_gnu_ld_interface=yes
16378 ;;
16379 esac
16380 ;;
16381 *)
16382 lt_use_gnu_ld_interface=yes
16383 ;;
16384 esac
16385 fi
16386
16387 if test yes = "$lt_use_gnu_ld_interface"; then
16388 # If archive_cmds runs LD, not CC, wlarc should be empty
16389 wlarc='$wl'
16390
16391 # Set some defaults for GNU ld with shared library support. These
16392 # are reset later if shared libraries are not supported. Putting them
16393 # here allows them to be overridden if necessary.
16394 runpath_var=LD_RUN_PATH
16395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16396 export_dynamic_flag_spec='$wl--export-dynamic'
16397 # ancient GNU ld didn't support --whole-archive et. al.
16398 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16399 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16400 else
16401 whole_archive_flag_spec=
16402 fi
16403 supports_anon_versioning=no
16404 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
16405 *GNU\ gold*) supports_anon_versioning=yes ;;
16406 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16407 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16408 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16409 *\ 2.11.*) ;; # other 2.11 versions
16410 *) supports_anon_versioning=yes ;;
16411 esac
16412
16413 # See if GNU ld supports shared libraries.
16414 case $host_os in
16415 aix[3-9]*)
16416 # On AIX/PPC, the GNU linker is very broken
16417 if test ia64 != "$host_cpu"; then
16418 ld_shlibs=no
16419 cat <<_LT_EOF 1>&2
16420
16421 *** Warning: the GNU linker, at least up to release 2.19, is reported
16422 *** to be unable to reliably create shared libraries on AIX.
16423 *** Therefore, libtool is disabling shared libraries support. If you
16424 *** really care for shared libraries, you may want to install binutils
16425 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16426 *** You will then need to restart the configuration process.
16427
16428 _LT_EOF
16429 fi
16430 ;;
16431
16432 amigaos*)
16433 case $host_cpu in
16434 powerpc)
16435 # see comment about AmigaOS4 .so support
16436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16437 archive_expsym_cmds=''
16438 ;;
16439 m68k)
16440 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)'
16441 hardcode_libdir_flag_spec='-L$libdir'
16442 hardcode_minus_L=yes
16443 ;;
16444 esac
16445 ;;
16446
16447 beos*)
16448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16449 allow_undefined_flag=unsupported
16450 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16451 # support --undefined. This deserves some investigation. FIXME
16452 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16453 else
16454 ld_shlibs=no
16455 fi
16456 ;;
16457
16458 cygwin* | mingw* | pw32* | cegcc*)
16459 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16460 # as there is no search path for DLLs.
16461 hardcode_libdir_flag_spec='-L$libdir'
16462 export_dynamic_flag_spec='$wl--export-all-symbols'
16463 allow_undefined_flag=unsupported
16464 always_export_symbols=no
16465 enable_shared_with_static_runtimes=yes
16466 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'
16467 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16468
16469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16471 # If the export-symbols file already is a .def file, use it as
16472 # is; otherwise, prepend EXPORTS...
16473 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16474 cp $export_symbols $output_objdir/$soname.def;
16475 else
16476 echo EXPORTS > $output_objdir/$soname.def;
16477 cat $export_symbols >> $output_objdir/$soname.def;
16478 fi~
16479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16480 else
16481 ld_shlibs=no
16482 fi
16483 ;;
16484
16485 haiku*)
16486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16487 link_all_deplibs=yes
16488 ;;
16489
16490 os2*)
16491 hardcode_libdir_flag_spec='-L$libdir'
16492 hardcode_minus_L=yes
16493 allow_undefined_flag=unsupported
16494 shrext_cmds=.dll
16495 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16496 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16497 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16498 $ECHO EXPORTS >> $output_objdir/$libname.def~
16499 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16500 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16501 emximp -o $lib $output_objdir/$libname.def'
16502 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16503 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16504 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16505 $ECHO EXPORTS >> $output_objdir/$libname.def~
16506 prefix_cmds="$SED"~
16507 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16508 prefix_cmds="$prefix_cmds -e 1d";
16509 fi~
16510 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16511 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16512 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16513 emximp -o $lib $output_objdir/$libname.def'
16514 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16515 enable_shared_with_static_runtimes=yes
16516 ;;
16517
16518 interix[3-9]*)
16519 hardcode_direct=no
16520 hardcode_shlibpath_var=no
16521 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16522 export_dynamic_flag_spec='$wl-E'
16523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16524 # Instead, shared libraries are loaded at an image base (0x10000000 by
16525 # default) and relocated if they conflict, which is a slow very memory
16526 # consuming and fragmenting process. To avoid this, we pick a random,
16527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16530 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'
16531 ;;
16532
16533 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16534 tmp_diet=no
16535 if test linux-dietlibc = "$host_os"; then
16536 case $cc_basename in
16537 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16538 esac
16539 fi
16540 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16541 && test no = "$tmp_diet"
16542 then
16543 tmp_addflag=' $pic_flag'
16544 tmp_sharedflag='-shared'
16545 case $cc_basename,$host_cpu in
16546 pgcc*) # Portland Group C compiler
16547 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'
16548 tmp_addflag=' $pic_flag'
16549 ;;
16550 pgf77* | pgf90* | pgf95* | pgfortran*)
16551 # Portland Group f77 and f90 compilers
16552 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'
16553 tmp_addflag=' $pic_flag -Mnomain' ;;
16554 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16555 tmp_addflag=' -i_dynamic' ;;
16556 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16557 tmp_addflag=' -i_dynamic -nofor_main' ;;
16558 ifc* | ifort*) # Intel Fortran compiler
16559 tmp_addflag=' -nofor_main' ;;
16560 lf95*) # Lahey Fortran 8.1
16561 whole_archive_flag_spec=
16562 tmp_sharedflag='--shared' ;;
16563 nagfor*) # NAGFOR 5.3
16564 tmp_sharedflag='-Wl,-shared' ;;
16565 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16566 tmp_sharedflag='-qmkshrobj'
16567 tmp_addflag= ;;
16568 nvcc*) # Cuda Compiler Driver 2.2
16569 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'
16570 compiler_needs_object=yes
16571 ;;
16572 esac
16573 case `$CC -V 2>&1 | sed 5q` in
16574 *Sun\ C*) # Sun C 5.9
16575 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'
16576 compiler_needs_object=yes
16577 tmp_sharedflag='-G' ;;
16578 *Sun\ F*) # Sun Fortran 8.3
16579 tmp_sharedflag='-G' ;;
16580 esac
16581 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16582
16583 if test yes = "$supports_anon_versioning"; then
16584 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16586 echo "local: *; };" >> $output_objdir/$libname.ver~
16587 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16588 fi
16589
16590 case $cc_basename in
16591 tcc*)
16592 export_dynamic_flag_spec='-rdynamic'
16593 ;;
16594 xlf* | bgf* | bgxlf* | mpixlf*)
16595 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16596 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16598 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16599 if test yes = "$supports_anon_versioning"; then
16600 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16601 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16602 echo "local: *; };" >> $output_objdir/$libname.ver~
16603 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16604 fi
16605 ;;
16606 esac
16607 else
16608 ld_shlibs=no
16609 fi
16610 ;;
16611
16612 netbsd* | netbsdelf*-gnu)
16613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16614 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16615 wlarc=
16616 else
16617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16618 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16619 fi
16620 ;;
16621
16622 solaris*)
16623 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16624 ld_shlibs=no
16625 cat <<_LT_EOF 1>&2
16626
16627 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16628 *** create shared libraries on Solaris systems. Therefore, libtool
16629 *** is disabling shared libraries support. We urge you to upgrade GNU
16630 *** binutils to release 2.9.1 or newer. Another option is to modify
16631 *** your PATH or compiler configuration so that the native linker is
16632 *** used, and then restart.
16633
16634 _LT_EOF
16635 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16637 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16638 else
16639 ld_shlibs=no
16640 fi
16641 ;;
16642
16643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16644 case `$LD -v 2>&1` in
16645 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16646 ld_shlibs=no
16647 cat <<_LT_EOF 1>&2
16648
16649 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16650 *** reliably create shared libraries on SCO systems. Therefore, libtool
16651 *** is disabling shared libraries support. We urge you to upgrade GNU
16652 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16653 *** your PATH or compiler configuration so that the native linker is
16654 *** used, and then restart.
16655
16656 _LT_EOF
16657 ;;
16658 *)
16659 # For security reasons, it is highly recommended that you always
16660 # use absolute paths for naming shared libraries, and exclude the
16661 # DT_RUNPATH tag from executables and libraries. But doing so
16662 # requires that you compile everything twice, which is a pain.
16663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16666 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16667 else
16668 ld_shlibs=no
16669 fi
16670 ;;
16671 esac
16672 ;;
16673
16674 sunos4*)
16675 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16676 wlarc=
16677 hardcode_direct=yes
16678 hardcode_shlibpath_var=no
16679 ;;
16680
16681 *)
16682 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16685 else
16686 ld_shlibs=no
16687 fi
16688 ;;
16689 esac
16690
16691 if test no = "$ld_shlibs"; then
16692 runpath_var=
16693 hardcode_libdir_flag_spec=
16694 export_dynamic_flag_spec=
16695 whole_archive_flag_spec=
16696 fi
16697 else
16698 # PORTME fill in a description of your system's linker (not GNU ld)
16699 case $host_os in
16700 aix3*)
16701 allow_undefined_flag=unsupported
16702 always_export_symbols=yes
16703 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'
16704 # Note: this linker hardcodes the directories in LIBPATH if there
16705 # are no directories specified by -L.
16706 hardcode_minus_L=yes
16707 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16708 # Neither direct hardcoding nor static linking is supported with a
16709 # broken collect2.
16710 hardcode_direct=unsupported
16711 fi
16712 ;;
16713
16714 aix[4-9]*)
16715 if test ia64 = "$host_cpu"; then
16716 # On IA64, the linker does run time linking by default, so we don't
16717 # have to do anything special.
16718 aix_use_runtimelinking=no
16719 exp_sym_flag='-Bexport'
16720 no_entry_flag=
16721 else
16722 # If we're using GNU nm, then we don't want the "-C" option.
16723 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16724 # Without the "-l" option, or with the "-B" option, AIX nm treats
16725 # weak defined symbols like other global defined symbols, whereas
16726 # GNU nm marks them as "W".
16727 # While the 'weak' keyword is ignored in the Export File, we need
16728 # it in the Import File for the 'aix-soname' feature, so we have
16729 # to replace the "-B" option with "-P" for AIX nm.
16730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16731 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'
16732 else
16733 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16734 fi
16735 aix_use_runtimelinking=no
16736
16737 # Test if we are trying to use run time linking or normal
16738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16739 # have runtime linking enabled, and use it for executables.
16740 # For shared libraries, we enable/disable runtime linking
16741 # depending on the kind of the shared library created -
16742 # when "with_aix_soname,aix_use_runtimelinking" is:
16743 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16744 # "aix,yes" lib.so shared, rtl:yes, for executables
16745 # lib.a static archive
16746 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16747 # lib.a(lib.so.V) shared, rtl:no, for executables
16748 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16749 # lib.a(lib.so.V) shared, rtl:no
16750 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16751 # lib.a static archive
16752 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16753 for ld_flag in $LDFLAGS; do
16754 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16755 aix_use_runtimelinking=yes
16756 break
16757 fi
16758 done
16759 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16760 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16761 # so we don't have lib.a shared libs to link our executables.
16762 # We have to force runtime linking in this case.
16763 aix_use_runtimelinking=yes
16764 LDFLAGS="$LDFLAGS -Wl,-brtl"
16765 fi
16766 ;;
16767 esac
16768
16769 exp_sym_flag='-bexport'
16770 no_entry_flag='-bnoentry'
16771 fi
16772
16773 # When large executables or shared objects are built, AIX ld can
16774 # have problems creating the table of contents. If linking a library
16775 # or program results in "error TOC overflow" add -mminimal-toc to
16776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16778
16779 archive_cmds=''
16780 hardcode_direct=yes
16781 hardcode_direct_absolute=yes
16782 hardcode_libdir_separator=':'
16783 link_all_deplibs=yes
16784 file_list_spec='$wl-f,'
16785 case $with_aix_soname,$aix_use_runtimelinking in
16786 aix,*) ;; # traditional, no import file
16787 svr4,* | *,yes) # use import file
16788 # The Import File defines what to hardcode.
16789 hardcode_direct=no
16790 hardcode_direct_absolute=no
16791 ;;
16792 esac
16793
16794 if test yes = "$GCC"; then
16795 case $host_os in aix4.[012]|aix4.[012].*)
16796 # We only want to do this on AIX 4.2 and lower, the check
16797 # below for broken collect2 doesn't work under 4.3+
16798 collect2name=`$CC -print-prog-name=collect2`
16799 if test -f "$collect2name" &&
16800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16801 then
16802 # We have reworked collect2
16803 :
16804 else
16805 # We have old collect2
16806 hardcode_direct=unsupported
16807 # It fails to find uninstalled libraries when the uninstalled
16808 # path is not listed in the libpath. Setting hardcode_minus_L
16809 # to unsupported forces relinking
16810 hardcode_minus_L=yes
16811 hardcode_libdir_flag_spec='-L$libdir'
16812 hardcode_libdir_separator=
16813 fi
16814 ;;
16815 esac
16816 shared_flag='-shared'
16817 if test yes = "$aix_use_runtimelinking"; then
16818 shared_flag="$shared_flag "'$wl-G'
16819 fi
16820 # Need to ensure runtime linking is disabled for the traditional
16821 # shared library, or the linker may eventually find shared libraries
16822 # /with/ Import File - we do not want to mix them.
16823 shared_flag_aix='-shared'
16824 shared_flag_svr4='-shared $wl-G'
16825 else
16826 # not using gcc
16827 if test ia64 = "$host_cpu"; then
16828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16829 # chokes on -Wl,-G. The following line is correct:
16830 shared_flag='-G'
16831 else
16832 if test yes = "$aix_use_runtimelinking"; then
16833 shared_flag='$wl-G'
16834 else
16835 shared_flag='$wl-bM:SRE'
16836 fi
16837 shared_flag_aix='$wl-bM:SRE'
16838 shared_flag_svr4='$wl-G'
16839 fi
16840 fi
16841
16842 export_dynamic_flag_spec='$wl-bexpall'
16843 # It seems that -bexpall does not export symbols beginning with
16844 # underscore (_), so it is better to generate a list of symbols to export.
16845 always_export_symbols=yes
16846 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16847 # Warning - without using the other runtime loading flags (-brtl),
16848 # -berok will link without error, but may produce a broken library.
16849 allow_undefined_flag='-berok'
16850 # Determine the default libpath from the value encoded in an
16851 # empty executable.
16852 if test set = "${lt_cv_aix_libpath+set}"; then
16853 aix_libpath=$lt_cv_aix_libpath
16854 else
16855 if test ${lt_cv_aix_libpath_+y}
16856 then :
16857 printf %s "(cached) " >&6
16858 else $as_nop
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861
16862 int
16863 main (void)
16864 {
16865
16866 ;
16867 return 0;
16868 }
16869 _ACEOF
16870 if ac_fn_c_try_link "$LINENO"
16871 then :
16872
16873 lt_aix_libpath_sed='
16874 /Import File Strings/,/^$/ {
16875 /^0/ {
16876 s/^0 *\([^ ]*\) *$/\1/
16877 p
16878 }
16879 }'
16880 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16881 # Check for a 64-bit object if we didn't find anything.
16882 if test -z "$lt_cv_aix_libpath_"; then
16883 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16884 fi
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16887 conftest$ac_exeext conftest.$ac_ext
16888 if test -z "$lt_cv_aix_libpath_"; then
16889 lt_cv_aix_libpath_=/usr/lib:/lib
16890 fi
16891
16892 fi
16893
16894 aix_libpath=$lt_cv_aix_libpath_
16895 fi
16896
16897 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16898 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
16899 else
16900 if test ia64 = "$host_cpu"; then
16901 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16902 allow_undefined_flag="-z nodefs"
16903 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"
16904 else
16905 # Determine the default libpath from the value encoded in an
16906 # empty executable.
16907 if test set = "${lt_cv_aix_libpath+set}"; then
16908 aix_libpath=$lt_cv_aix_libpath
16909 else
16910 if test ${lt_cv_aix_libpath_+y}
16911 then :
16912 printf %s "(cached) " >&6
16913 else $as_nop
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16916
16917 int
16918 main (void)
16919 {
16920
16921 ;
16922 return 0;
16923 }
16924 _ACEOF
16925 if ac_fn_c_try_link "$LINENO"
16926 then :
16927
16928 lt_aix_libpath_sed='
16929 /Import File Strings/,/^$/ {
16930 /^0/ {
16931 s/^0 *\([^ ]*\) *$/\1/
16932 p
16933 }
16934 }'
16935 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16936 # Check for a 64-bit object if we didn't find anything.
16937 if test -z "$lt_cv_aix_libpath_"; then
16938 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16939 fi
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16942 conftest$ac_exeext conftest.$ac_ext
16943 if test -z "$lt_cv_aix_libpath_"; then
16944 lt_cv_aix_libpath_=/usr/lib:/lib
16945 fi
16946
16947 fi
16948
16949 aix_libpath=$lt_cv_aix_libpath_
16950 fi
16951
16952 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16953 # Warning - without using the other run time loading flags,
16954 # -berok will link without error, but may produce a broken library.
16955 no_undefined_flag=' $wl-bernotok'
16956 allow_undefined_flag=' $wl-berok'
16957 if test yes = "$with_gnu_ld"; then
16958 # We only use this code for GNU lds that support --whole-archive.
16959 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16960 else
16961 # Exported symbols can be pulled into shared objects from archives
16962 whole_archive_flag_spec='$convenience'
16963 fi
16964 archive_cmds_need_lc=yes
16965 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16966 # -brtl affects multiple linker settings, -berok does not and is overridden later
16967 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16968 if test svr4 != "$with_aix_soname"; then
16969 # This is similar to how AIX traditionally builds its shared libraries.
16970 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'
16971 fi
16972 if test aix != "$with_aix_soname"; then
16973 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'
16974 else
16975 # used by -dlpreopen to get the symbols
16976 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16977 fi
16978 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16979 fi
16980 fi
16981 ;;
16982
16983 amigaos*)
16984 case $host_cpu in
16985 powerpc)
16986 # see comment about AmigaOS4 .so support
16987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16988 archive_expsym_cmds=''
16989 ;;
16990 m68k)
16991 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)'
16992 hardcode_libdir_flag_spec='-L$libdir'
16993 hardcode_minus_L=yes
16994 ;;
16995 esac
16996 ;;
16997
16998 bsdi[45]*)
16999 export_dynamic_flag_spec=-rdynamic
17000 ;;
17001
17002 cygwin* | mingw* | pw32* | cegcc*)
17003 # When not using gcc, we currently assume that we are using
17004 # Microsoft Visual C++.
17005 # hardcode_libdir_flag_spec is actually meaningless, as there is
17006 # no search path for DLLs.
17007 case $cc_basename in
17008 cl*)
17009 # Native MSVC
17010 hardcode_libdir_flag_spec=' '
17011 allow_undefined_flag=unsupported
17012 always_export_symbols=yes
17013 file_list_spec='@'
17014 # Tell ltmain to make .lib files, not .a files.
17015 libext=lib
17016 # Tell ltmain to make .dll files, not .so files.
17017 shrext_cmds=.dll
17018 # FIXME: Setting linknames here is a bad hack.
17019 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17020 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17021 cp "$export_symbols" "$output_objdir/$soname.def";
17022 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17023 else
17024 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17025 fi~
17026 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17027 linknames='
17028 # The linker will not automatically build a static lib if we build a DLL.
17029 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17030 enable_shared_with_static_runtimes=yes
17031 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17032 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17033 # Don't use ranlib
17034 old_postinstall_cmds='chmod 644 $oldlib'
17035 postlink_cmds='lt_outputfile="@OUTPUT@"~
17036 lt_tool_outputfile="@TOOL_OUTPUT@"~
17037 case $lt_outputfile in
17038 *.exe|*.EXE) ;;
17039 *)
17040 lt_outputfile=$lt_outputfile.exe
17041 lt_tool_outputfile=$lt_tool_outputfile.exe
17042 ;;
17043 esac~
17044 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17045 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17046 $RM "$lt_outputfile.manifest";
17047 fi'
17048 ;;
17049 *)
17050 # Assume MSVC wrapper
17051 hardcode_libdir_flag_spec=' '
17052 allow_undefined_flag=unsupported
17053 # Tell ltmain to make .lib files, not .a files.
17054 libext=lib
17055 # Tell ltmain to make .dll files, not .so files.
17056 shrext_cmds=.dll
17057 # FIXME: Setting linknames here is a bad hack.
17058 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17059 # The linker will automatically build a .lib file if we build a DLL.
17060 old_archive_from_new_cmds='true'
17061 # FIXME: Should let the user specify the lib program.
17062 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17063 enable_shared_with_static_runtimes=yes
17064 ;;
17065 esac
17066 ;;
17067
17068 darwin* | rhapsody*)
17069
17070
17071 archive_cmds_need_lc=no
17072 hardcode_direct=no
17073 hardcode_automatic=yes
17074 hardcode_shlibpath_var=unsupported
17075 if test yes = "$lt_cv_ld_force_load"; then
17076 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\"`'
17077
17078 else
17079 whole_archive_flag_spec=''
17080 fi
17081 link_all_deplibs=yes
17082 allow_undefined_flag=$_lt_dar_allow_undefined
17083 case $cc_basename in
17084 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17085 *) _lt_dar_can_shared=$GCC ;;
17086 esac
17087 if test yes = "$_lt_dar_can_shared"; then
17088 output_verbose_link_cmd=func_echo_all
17089 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17090 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17091 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"
17092 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"
17093
17094 else
17095 ld_shlibs=no
17096 fi
17097
17098 ;;
17099
17100 dgux*)
17101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_libdir_flag_spec='-L$libdir'
17103 hardcode_shlibpath_var=no
17104 ;;
17105
17106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17107 # support. Future versions do this automatically, but an explicit c++rt0.o
17108 # does not break anything, and helps significantly (at the cost of a little
17109 # extra space).
17110 freebsd2.2*)
17111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17112 hardcode_libdir_flag_spec='-R$libdir'
17113 hardcode_direct=yes
17114 hardcode_shlibpath_var=no
17115 ;;
17116
17117 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17118 freebsd2.*)
17119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120 hardcode_direct=yes
17121 hardcode_minus_L=yes
17122 hardcode_shlibpath_var=no
17123 ;;
17124
17125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17126 freebsd* | dragonfly*)
17127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17128 hardcode_libdir_flag_spec='-R$libdir'
17129 hardcode_direct=yes
17130 hardcode_shlibpath_var=no
17131 ;;
17132
17133 hpux9*)
17134 if test yes = "$GCC"; then
17135 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'
17136 else
17137 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'
17138 fi
17139 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17140 hardcode_libdir_separator=:
17141 hardcode_direct=yes
17142
17143 # hardcode_minus_L: Not really in the search PATH,
17144 # but as the default location of the library.
17145 hardcode_minus_L=yes
17146 export_dynamic_flag_spec='$wl-E'
17147 ;;
17148
17149 hpux10*)
17150 if test yes,no = "$GCC,$with_gnu_ld"; then
17151 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17152 else
17153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17154 fi
17155 if test no = "$with_gnu_ld"; then
17156 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17157 hardcode_libdir_separator=:
17158 hardcode_direct=yes
17159 hardcode_direct_absolute=yes
17160 export_dynamic_flag_spec='$wl-E'
17161 # hardcode_minus_L: Not really in the search PATH,
17162 # but as the default location of the library.
17163 hardcode_minus_L=yes
17164 fi
17165 ;;
17166
17167 hpux11*)
17168 if test yes,no = "$GCC,$with_gnu_ld"; then
17169 case $host_cpu in
17170 hppa*64*)
17171 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17172 ;;
17173 ia64*)
17174 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17175 ;;
17176 *)
17177 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17178 ;;
17179 esac
17180 else
17181 case $host_cpu in
17182 hppa*64*)
17183 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17184 ;;
17185 ia64*)
17186 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17187 ;;
17188 *)
17189
17190 # Older versions of the 11.00 compiler do not understand -b yet
17191 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17193 printf %s "checking if $CC understands -b... " >&6; }
17194 if test ${lt_cv_prog_compiler__b+y}
17195 then :
17196 printf %s "(cached) " >&6
17197 else $as_nop
17198 lt_cv_prog_compiler__b=no
17199 save_LDFLAGS=$LDFLAGS
17200 LDFLAGS="$LDFLAGS -b"
17201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17203 # The linker can only warn and ignore the option if not recognized
17204 # So say no if there are warnings
17205 if test -s conftest.err; then
17206 # Append any errors to the config.log.
17207 cat conftest.err 1>&5
17208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17210 if diff conftest.exp conftest.er2 >/dev/null; then
17211 lt_cv_prog_compiler__b=yes
17212 fi
17213 else
17214 lt_cv_prog_compiler__b=yes
17215 fi
17216 fi
17217 $RM -r conftest*
17218 LDFLAGS=$save_LDFLAGS
17219
17220 fi
17221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17222 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17223
17224 if test yes = "$lt_cv_prog_compiler__b"; then
17225 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17226 else
17227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17228 fi
17229
17230 ;;
17231 esac
17232 fi
17233 if test no = "$with_gnu_ld"; then
17234 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17235 hardcode_libdir_separator=:
17236
17237 case $host_cpu in
17238 hppa*64*|ia64*)
17239 hardcode_direct=no
17240 hardcode_shlibpath_var=no
17241 ;;
17242 *)
17243 hardcode_direct=yes
17244 hardcode_direct_absolute=yes
17245 export_dynamic_flag_spec='$wl-E'
17246
17247 # hardcode_minus_L: Not really in the search PATH,
17248 # but as the default location of the library.
17249 hardcode_minus_L=yes
17250 ;;
17251 esac
17252 fi
17253 ;;
17254
17255 irix5* | irix6* | nonstopux*)
17256 if test yes = "$GCC"; then
17257 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'
17258 # Try to use the -exported_symbol ld option, if it does not
17259 # work, assume that -exports_file does not work either and
17260 # implicitly export all symbols.
17261 # This should be the same for all languages, so no per-tag cache variable.
17262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17263 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17264 if test ${lt_cv_irix_exported_symbol+y}
17265 then :
17266 printf %s "(cached) " >&6
17267 else $as_nop
17268 save_LDFLAGS=$LDFLAGS
17269 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 int foo (void) { return 0; }
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"
17275 then :
17276 lt_cv_irix_exported_symbol=yes
17277 else $as_nop
17278 lt_cv_irix_exported_symbol=no
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17281 conftest$ac_exeext conftest.$ac_ext
17282 LDFLAGS=$save_LDFLAGS
17283 fi
17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17285 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17286 if test yes = "$lt_cv_irix_exported_symbol"; then
17287 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'
17288 fi
17289 link_all_deplibs=no
17290 else
17291 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'
17292 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'
17293 fi
17294 archive_cmds_need_lc='no'
17295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17296 hardcode_libdir_separator=:
17297 inherit_rpath=yes
17298 link_all_deplibs=yes
17299 ;;
17300
17301 linux*)
17302 case $cc_basename in
17303 tcc*)
17304 # Fabrice Bellard et al's Tiny C Compiler
17305 ld_shlibs=yes
17306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17307 ;;
17308 esac
17309 ;;
17310
17311 netbsd* | netbsdelf*-gnu)
17312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17314 else
17315 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17316 fi
17317 hardcode_libdir_flag_spec='-R$libdir'
17318 hardcode_direct=yes
17319 hardcode_shlibpath_var=no
17320 ;;
17321
17322 newsos6)
17323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17324 hardcode_direct=yes
17325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17326 hardcode_libdir_separator=:
17327 hardcode_shlibpath_var=no
17328 ;;
17329
17330 *nto* | *qnx*)
17331 ;;
17332
17333 openbsd* | bitrig*)
17334 if test -f /usr/libexec/ld.so; then
17335 hardcode_direct=yes
17336 hardcode_shlibpath_var=no
17337 hardcode_direct_absolute=yes
17338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17340 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17341 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17342 export_dynamic_flag_spec='$wl-E'
17343 else
17344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17345 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17346 fi
17347 else
17348 ld_shlibs=no
17349 fi
17350 ;;
17351
17352 os2*)
17353 hardcode_libdir_flag_spec='-L$libdir'
17354 hardcode_minus_L=yes
17355 allow_undefined_flag=unsupported
17356 shrext_cmds=.dll
17357 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17358 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17359 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17360 $ECHO EXPORTS >> $output_objdir/$libname.def~
17361 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17363 emximp -o $lib $output_objdir/$libname.def'
17364 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17365 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17366 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17367 $ECHO EXPORTS >> $output_objdir/$libname.def~
17368 prefix_cmds="$SED"~
17369 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17370 prefix_cmds="$prefix_cmds -e 1d";
17371 fi~
17372 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17373 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17374 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17375 emximp -o $lib $output_objdir/$libname.def'
17376 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17377 enable_shared_with_static_runtimes=yes
17378 ;;
17379
17380 osf3*)
17381 if test yes = "$GCC"; then
17382 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17383 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'
17384 else
17385 allow_undefined_flag=' -expect_unresolved \*'
17386 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'
17387 fi
17388 archive_cmds_need_lc='no'
17389 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17390 hardcode_libdir_separator=:
17391 ;;
17392
17393 osf4* | osf5*) # as osf3* with the addition of -msym flag
17394 if test yes = "$GCC"; then
17395 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17396 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'
17397 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17398 else
17399 allow_undefined_flag=' -expect_unresolved \*'
17400 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'
17401 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~
17402 $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'
17403
17404 # Both c and cxx compiler support -rpath directly
17405 hardcode_libdir_flag_spec='-rpath $libdir'
17406 fi
17407 archive_cmds_need_lc='no'
17408 hardcode_libdir_separator=:
17409 ;;
17410
17411 solaris*)
17412 no_undefined_flag=' -z defs'
17413 if test yes = "$GCC"; then
17414 wlarc='$wl'
17415 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17417 $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'
17418 else
17419 case `$CC -V 2>&1` in
17420 *"Compilers 5.0"*)
17421 wlarc=''
17422 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17424 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17425 ;;
17426 *)
17427 wlarc='$wl'
17428 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17430 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17431 ;;
17432 esac
17433 fi
17434 hardcode_libdir_flag_spec='-R$libdir'
17435 hardcode_shlibpath_var=no
17436 case $host_os in
17437 solaris2.[0-5] | solaris2.[0-5].*) ;;
17438 *)
17439 # The compiler driver will combine and reorder linker options,
17440 # but understands '-z linker_flag'. GCC discards it without '$wl',
17441 # but is careful enough not to reorder.
17442 # Supported since Solaris 2.6 (maybe 2.5.1?)
17443 if test yes = "$GCC"; then
17444 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17445 else
17446 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17447 fi
17448 ;;
17449 esac
17450 link_all_deplibs=yes
17451 ;;
17452
17453 sunos4*)
17454 if test sequent = "$host_vendor"; then
17455 # Use $CC to link under sequent, because it throws in some extra .o
17456 # files that make .init and .fini sections work.
17457 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17458 else
17459 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17460 fi
17461 hardcode_libdir_flag_spec='-L$libdir'
17462 hardcode_direct=yes
17463 hardcode_minus_L=yes
17464 hardcode_shlibpath_var=no
17465 ;;
17466
17467 sysv4)
17468 case $host_vendor in
17469 sni)
17470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17471 hardcode_direct=yes # is this really true???
17472 ;;
17473 siemens)
17474 ## LD is ld it makes a PLAMLIB
17475 ## CC just makes a GrossModule.
17476 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17477 reload_cmds='$CC -r -o $output$reload_objs'
17478 hardcode_direct=no
17479 ;;
17480 motorola)
17481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17482 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17483 ;;
17484 esac
17485 runpath_var='LD_RUN_PATH'
17486 hardcode_shlibpath_var=no
17487 ;;
17488
17489 sysv4.3*)
17490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17491 hardcode_shlibpath_var=no
17492 export_dynamic_flag_spec='-Bexport'
17493 ;;
17494
17495 sysv4*MP*)
17496 if test -d /usr/nec; then
17497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17498 hardcode_shlibpath_var=no
17499 runpath_var=LD_RUN_PATH
17500 hardcode_runpath_var=yes
17501 ld_shlibs=yes
17502 fi
17503 ;;
17504
17505 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17506 no_undefined_flag='$wl-z,text'
17507 archive_cmds_need_lc=no
17508 hardcode_shlibpath_var=no
17509 runpath_var='LD_RUN_PATH'
17510
17511 if test yes = "$GCC"; then
17512 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17513 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17514 else
17515 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17516 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17517 fi
17518 ;;
17519
17520 sysv5* | sco3.2v5* | sco5v6*)
17521 # Note: We CANNOT use -z defs as we might desire, because we do not
17522 # link with -lc, and that would cause any symbols used from libc to
17523 # always be unresolved, which means just about no library would
17524 # ever link correctly. If we're not using GNU ld we use -z text
17525 # though, which does catch some bad symbols but isn't as heavy-handed
17526 # as -z defs.
17527 no_undefined_flag='$wl-z,text'
17528 allow_undefined_flag='$wl-z,nodefs'
17529 archive_cmds_need_lc=no
17530 hardcode_shlibpath_var=no
17531 hardcode_libdir_flag_spec='$wl-R,$libdir'
17532 hardcode_libdir_separator=':'
17533 link_all_deplibs=yes
17534 export_dynamic_flag_spec='$wl-Bexport'
17535 runpath_var='LD_RUN_PATH'
17536
17537 if test yes = "$GCC"; then
17538 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17540 else
17541 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17542 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17543 fi
17544 ;;
17545
17546 uts4*)
17547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17548 hardcode_libdir_flag_spec='-L$libdir'
17549 hardcode_shlibpath_var=no
17550 ;;
17551
17552 *)
17553 ld_shlibs=no
17554 ;;
17555 esac
17556
17557 if test sni = "$host_vendor"; then
17558 case $host in
17559 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17560 export_dynamic_flag_spec='$wl-Blargedynsym'
17561 ;;
17562 esac
17563 fi
17564 fi
17565
17566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17567 printf "%s\n" "$ld_shlibs" >&6; }
17568 test no = "$ld_shlibs" && can_build_shared=no
17569
17570 with_gnu_ld=$with_gnu_ld
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586 #
17587 # Do we need to explicitly link libc?
17588 #
17589 case "x$archive_cmds_need_lc" in
17590 x|xyes)
17591 # Assume -lc should be added
17592 archive_cmds_need_lc=yes
17593
17594 if test yes,yes = "$GCC,$enable_shared"; then
17595 case $archive_cmds in
17596 *'~'*)
17597 # FIXME: we may have to deal with multi-command sequences.
17598 ;;
17599 '$CC '*)
17600 # Test whether the compiler implicitly links with -lc since on some
17601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17602 # to ld, don't add -lc before -lgcc.
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17604 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17605 if test ${lt_cv_archive_cmds_need_lc+y}
17606 then :
17607 printf %s "(cached) " >&6
17608 else $as_nop
17609 $RM conftest*
17610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17611
17612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17613 (eval $ac_compile) 2>&5
17614 ac_status=$?
17615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17616 test $ac_status = 0; } 2>conftest.err; then
17617 soname=conftest
17618 lib=conftest
17619 libobjs=conftest.$ac_objext
17620 deplibs=
17621 wl=$lt_prog_compiler_wl
17622 pic_flag=$lt_prog_compiler_pic
17623 compiler_flags=-v
17624 linker_flags=-v
17625 verstring=
17626 output_objdir=.
17627 libname=conftest
17628 lt_save_allow_undefined_flag=$allow_undefined_flag
17629 allow_undefined_flag=
17630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17631 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17632 ac_status=$?
17633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17634 test $ac_status = 0; }
17635 then
17636 lt_cv_archive_cmds_need_lc=no
17637 else
17638 lt_cv_archive_cmds_need_lc=yes
17639 fi
17640 allow_undefined_flag=$lt_save_allow_undefined_flag
17641 else
17642 cat conftest.err 1>&5
17643 fi
17644 $RM conftest*
17645
17646 fi
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17648 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17649 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17650 ;;
17651 esac
17652 fi
17653 ;;
17654 esac
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17808 printf %s "checking dynamic linker characteristics... " >&6; }
17809
17810 if test yes = "$GCC"; then
17811 case $host_os in
17812 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17813 *) lt_awk_arg='/^libraries:/' ;;
17814 esac
17815 case $host_os in
17816 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17817 *) lt_sed_strip_eq='s|=/|/|g' ;;
17818 esac
17819 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17820 case $lt_search_path_spec in
17821 *\;*)
17822 # if the path contains ";" then we assume it to be the separator
17823 # otherwise default to the standard path separator (i.e. ":") - it is
17824 # assumed that no part of a normal pathname contains ";" but that should
17825 # okay in the real world where ";" in dirpaths is itself problematic.
17826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17827 ;;
17828 *)
17829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17830 ;;
17831 esac
17832 # Ok, now we have the path, separated by spaces, we can step through it
17833 # and add multilib dir if necessary...
17834 lt_tmp_lt_search_path_spec=
17835 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17836 # ...but if some path component already ends with the multilib dir we assume
17837 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17838 case "$lt_multi_os_dir; $lt_search_path_spec " in
17839 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17840 lt_multi_os_dir=
17841 ;;
17842 esac
17843 for lt_sys_path in $lt_search_path_spec; do
17844 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17846 elif test -n "$lt_multi_os_dir"; then
17847 test -d "$lt_sys_path" && \
17848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17849 fi
17850 done
17851 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17852 BEGIN {RS = " "; FS = "/|\n";} {
17853 lt_foo = "";
17854 lt_count = 0;
17855 for (lt_i = NF; lt_i > 0; lt_i--) {
17856 if ($lt_i != "" && $lt_i != ".") {
17857 if ($lt_i == "..") {
17858 lt_count++;
17859 } else {
17860 if (lt_count == 0) {
17861 lt_foo = "/" $lt_i lt_foo;
17862 } else {
17863 lt_count--;
17864 }
17865 }
17866 }
17867 }
17868 if (lt_foo != "") { lt_freq[lt_foo]++; }
17869 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17870 }'`
17871 # AWK program above erroneously prepends '/' to C:/dos/paths
17872 # for these hosts.
17873 case $host_os in
17874 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17875 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17876 esac
17877 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17878 else
17879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17880 fi
17881 library_names_spec=
17882 libname_spec='lib$name'
17883 soname_spec=
17884 shrext_cmds=.so
17885 postinstall_cmds=
17886 postuninstall_cmds=
17887 finish_cmds=
17888 finish_eval=
17889 shlibpath_var=
17890 shlibpath_overrides_runpath=unknown
17891 version_type=none
17892 dynamic_linker="$host_os ld.so"
17893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17894 need_lib_prefix=unknown
17895 hardcode_into_libs=no
17896
17897 # when you set need_version to no, make sure it does not cause -set_version
17898 # flags to be left without arguments
17899 need_version=unknown
17900
17901
17902
17903 case $host_os in
17904 aix3*)
17905 version_type=linux # correct to gnu/linux during the next big refactor
17906 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17907 shlibpath_var=LIBPATH
17908
17909 # AIX 3 has no versioning support, so we append a major version to the name.
17910 soname_spec='$libname$release$shared_ext$major'
17911 ;;
17912
17913 aix[4-9]*)
17914 version_type=linux # correct to gnu/linux during the next big refactor
17915 need_lib_prefix=no
17916 need_version=no
17917 hardcode_into_libs=yes
17918 if test ia64 = "$host_cpu"; then
17919 # AIX 5 supports IA64
17920 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17921 shlibpath_var=LD_LIBRARY_PATH
17922 else
17923 # With GCC up to 2.95.x, collect2 would create an import file
17924 # for dependence libraries. The import file would start with
17925 # the line '#! .'. This would cause the generated library to
17926 # depend on '.', always an invalid library. This was fixed in
17927 # development snapshots of GCC prior to 3.0.
17928 case $host_os in
17929 aix4 | aix4.[01] | aix4.[01].*)
17930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17931 echo ' yes '
17932 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17933 :
17934 else
17935 can_build_shared=no
17936 fi
17937 ;;
17938 esac
17939 # Using Import Files as archive members, it is possible to support
17940 # filename-based versioning of shared library archives on AIX. While
17941 # this would work for both with and without runtime linking, it will
17942 # prevent static linking of such archives. So we do filename-based
17943 # shared library versioning with .so extension only, which is used
17944 # when both runtime linking and shared linking is enabled.
17945 # Unfortunately, runtime linking may impact performance, so we do
17946 # not want this to be the default eventually. Also, we use the
17947 # versioned .so libs for executables only if there is the -brtl
17948 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17949 # To allow for filename-based versioning support, we need to create
17950 # libNAME.so.V as an archive file, containing:
17951 # *) an Import File, referring to the versioned filename of the
17952 # archive as well as the shared archive member, telling the
17953 # bitwidth (32 or 64) of that shared object, and providing the
17954 # list of exported symbols of that shared object, eventually
17955 # decorated with the 'weak' keyword
17956 # *) the shared object with the F_LOADONLY flag set, to really avoid
17957 # it being seen by the linker.
17958 # At run time we better use the real file rather than another symlink,
17959 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17960
17961 case $with_aix_soname,$aix_use_runtimelinking in
17962 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17963 # soname into executable. Probably we can add versioning support to
17964 # collect2, so additional links can be useful in future.
17965 aix,yes) # traditional libtool
17966 dynamic_linker='AIX unversionable lib.so'
17967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17968 # instead of lib<name>.a to let people know that these are not
17969 # typical AIX shared libraries.
17970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17971 ;;
17972 aix,no) # traditional AIX only
17973 dynamic_linker='AIX lib.a(lib.so.V)'
17974 # We preserve .a as extension for shared libraries through AIX4.2
17975 # and later when we are not doing run time linking.
17976 library_names_spec='$libname$release.a $libname.a'
17977 soname_spec='$libname$release$shared_ext$major'
17978 ;;
17979 svr4,*) # full svr4 only
17980 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17981 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17982 # We do not specify a path in Import Files, so LIBPATH fires.
17983 shlibpath_overrides_runpath=yes
17984 ;;
17985 *,yes) # both, prefer svr4
17986 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17987 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17988 # unpreferred sharedlib libNAME.a needs extra handling
17989 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"'
17990 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"'
17991 # We do not specify a path in Import Files, so LIBPATH fires.
17992 shlibpath_overrides_runpath=yes
17993 ;;
17994 *,no) # both, prefer aix
17995 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17996 library_names_spec='$libname$release.a $libname.a'
17997 soname_spec='$libname$release$shared_ext$major'
17998 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17999 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)'
18000 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"'
18001 ;;
18002 esac
18003 shlibpath_var=LIBPATH
18004 fi
18005 ;;
18006
18007 amigaos*)
18008 case $host_cpu in
18009 powerpc)
18010 # Since July 2007 AmigaOS4 officially supports .so libraries.
18011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18013 ;;
18014 m68k)
18015 library_names_spec='$libname.ixlibrary $libname.a'
18016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18017 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'
18018 ;;
18019 esac
18020 ;;
18021
18022 beos*)
18023 library_names_spec='$libname$shared_ext'
18024 dynamic_linker="$host_os ld.so"
18025 shlibpath_var=LIBRARY_PATH
18026 ;;
18027
18028 bsdi[45]*)
18029 version_type=linux # correct to gnu/linux during the next big refactor
18030 need_version=no
18031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18032 soname_spec='$libname$release$shared_ext$major'
18033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18037 # the default ld.so.conf also contains /usr/contrib/lib and
18038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18039 # libtool to hard-code these into programs
18040 ;;
18041
18042 cygwin* | mingw* | pw32* | cegcc*)
18043 version_type=windows
18044 shrext_cmds=.dll
18045 need_version=no
18046 need_lib_prefix=no
18047
18048 case $GCC,$cc_basename in
18049 yes,*)
18050 # gcc
18051 library_names_spec='$libname.dll.a'
18052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18053 postinstall_cmds='base_file=`basename \$file`~
18054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18055 dldir=$destdir/`dirname \$dlpath`~
18056 test -d \$dldir || mkdir -p \$dldir~
18057 $install_prog $dir/$dlname \$dldir/$dlname~
18058 chmod a+x \$dldir/$dlname~
18059 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18060 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18061 fi'
18062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18063 dlpath=$dir/\$dldll~
18064 $RM \$dlpath'
18065 shlibpath_overrides_runpath=yes
18066
18067 case $host_os in
18068 cygwin*)
18069 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18070 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18071
18072 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18073 ;;
18074 mingw* | cegcc*)
18075 # MinGW DLLs use traditional 'lib' prefix
18076 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18077 ;;
18078 pw32*)
18079 # pw32 DLLs use 'pw' prefix rather than 'lib'
18080 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18081 ;;
18082 esac
18083 dynamic_linker='Win32 ld.exe'
18084 ;;
18085
18086 *,cl*)
18087 # Native MSVC
18088 libname_spec='$name'
18089 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18090 library_names_spec='$libname.dll.lib'
18091
18092 case $build_os in
18093 mingw*)
18094 sys_lib_search_path_spec=
18095 lt_save_ifs=$IFS
18096 IFS=';'
18097 for lt_path in $LIB
18098 do
18099 IFS=$lt_save_ifs
18100 # Let DOS variable expansion print the short 8.3 style file name.
18101 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18102 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18103 done
18104 IFS=$lt_save_ifs
18105 # Convert to MSYS style.
18106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18107 ;;
18108 cygwin*)
18109 # Convert to unix form, then to dos form, then back to unix form
18110 # but this time dos style (no spaces!) so that the unix form looks
18111 # like /cygdrive/c/PROGRA~1:/cygdr...
18112 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18113 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18114 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18115 ;;
18116 *)
18117 sys_lib_search_path_spec=$LIB
18118 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18119 # It is most probably a Windows format PATH.
18120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18121 else
18122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18123 fi
18124 # FIXME: find the short name or the path components, as spaces are
18125 # common. (e.g. "Program Files" -> "PROGRA~1")
18126 ;;
18127 esac
18128
18129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18130 postinstall_cmds='base_file=`basename \$file`~
18131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18132 dldir=$destdir/`dirname \$dlpath`~
18133 test -d \$dldir || mkdir -p \$dldir~
18134 $install_prog $dir/$dlname \$dldir/$dlname'
18135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18136 dlpath=$dir/\$dldll~
18137 $RM \$dlpath'
18138 shlibpath_overrides_runpath=yes
18139 dynamic_linker='Win32 link.exe'
18140 ;;
18141
18142 *)
18143 # Assume MSVC wrapper
18144 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18145 dynamic_linker='Win32 ld.exe'
18146 ;;
18147 esac
18148 # FIXME: first we should search . and the directory the executable is in
18149 shlibpath_var=PATH
18150 ;;
18151
18152 darwin* | rhapsody*)
18153 dynamic_linker="$host_os dyld"
18154 version_type=darwin
18155 need_lib_prefix=no
18156 need_version=no
18157 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18158 soname_spec='$libname$release$major$shared_ext'
18159 shlibpath_overrides_runpath=yes
18160 shlibpath_var=DYLD_LIBRARY_PATH
18161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18162
18163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18165 ;;
18166
18167 dgux*)
18168 version_type=linux # correct to gnu/linux during the next big refactor
18169 need_lib_prefix=no
18170 need_version=no
18171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18172 soname_spec='$libname$release$shared_ext$major'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 ;;
18175
18176 freebsd* | dragonfly*)
18177 # DragonFly does not have aout. When/if they implement a new
18178 # versioning mechanism, adjust this.
18179 if test -x /usr/bin/objformat; then
18180 objformat=`/usr/bin/objformat`
18181 else
18182 case $host_os in
18183 freebsd[23].*) objformat=aout ;;
18184 *) objformat=elf ;;
18185 esac
18186 fi
18187 version_type=freebsd-$objformat
18188 case $version_type in
18189 freebsd-elf*)
18190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18191 soname_spec='$libname$release$shared_ext$major'
18192 need_version=no
18193 need_lib_prefix=no
18194 ;;
18195 freebsd-*)
18196 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18197 need_version=yes
18198 ;;
18199 esac
18200 shlibpath_var=LD_LIBRARY_PATH
18201 case $host_os in
18202 freebsd2.*)
18203 shlibpath_overrides_runpath=yes
18204 ;;
18205 freebsd3.[01]* | freebsdelf3.[01]*)
18206 shlibpath_overrides_runpath=yes
18207 hardcode_into_libs=yes
18208 ;;
18209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18211 shlibpath_overrides_runpath=no
18212 hardcode_into_libs=yes
18213 ;;
18214 *) # from 4.6 on, and DragonFly
18215 shlibpath_overrides_runpath=yes
18216 hardcode_into_libs=yes
18217 ;;
18218 esac
18219 ;;
18220
18221 haiku*)
18222 version_type=linux # correct to gnu/linux during the next big refactor
18223 need_lib_prefix=no
18224 need_version=no
18225 dynamic_linker="$host_os runtime_loader"
18226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18227 soname_spec='$libname$release$shared_ext$major'
18228 shlibpath_var=LIBRARY_PATH
18229 shlibpath_overrides_runpath=no
18230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18231 hardcode_into_libs=yes
18232 ;;
18233
18234 hpux9* | hpux10* | hpux11*)
18235 # Give a soname corresponding to the major version so that dld.sl refuses to
18236 # link against other versions.
18237 version_type=sunos
18238 need_lib_prefix=no
18239 need_version=no
18240 case $host_cpu in
18241 ia64*)
18242 shrext_cmds='.so'
18243 hardcode_into_libs=yes
18244 dynamic_linker="$host_os dld.so"
18245 shlibpath_var=LD_LIBRARY_PATH
18246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18248 soname_spec='$libname$release$shared_ext$major'
18249 if test 32 = "$HPUX_IA64_MODE"; then
18250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18251 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18252 else
18253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18254 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18255 fi
18256 ;;
18257 hppa*64*)
18258 shrext_cmds='.sl'
18259 hardcode_into_libs=yes
18260 dynamic_linker="$host_os dld.sl"
18261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18264 soname_spec='$libname$release$shared_ext$major'
18265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18267 ;;
18268 *)
18269 shrext_cmds='.sl'
18270 dynamic_linker="$host_os dld.sl"
18271 shlibpath_var=SHLIB_PATH
18272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18274 soname_spec='$libname$release$shared_ext$major'
18275 ;;
18276 esac
18277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18278 postinstall_cmds='chmod 555 $lib'
18279 # or fails outright, so override atomically:
18280 install_override_mode=555
18281 ;;
18282
18283 interix[3-9]*)
18284 version_type=linux # correct to gnu/linux during the next big refactor
18285 need_lib_prefix=no
18286 need_version=no
18287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18288 soname_spec='$libname$release$shared_ext$major'
18289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 shlibpath_overrides_runpath=no
18292 hardcode_into_libs=yes
18293 ;;
18294
18295 irix5* | irix6* | nonstopux*)
18296 case $host_os in
18297 nonstopux*) version_type=nonstopux ;;
18298 *)
18299 if test yes = "$lt_cv_prog_gnu_ld"; then
18300 version_type=linux # correct to gnu/linux during the next big refactor
18301 else
18302 version_type=irix
18303 fi ;;
18304 esac
18305 need_lib_prefix=no
18306 need_version=no
18307 soname_spec='$libname$release$shared_ext$major'
18308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18309 case $host_os in
18310 irix5* | nonstopux*)
18311 libsuff= shlibsuff=
18312 ;;
18313 *)
18314 case $LD in # libtool.m4 will add one of these switches to LD
18315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18316 libsuff= shlibsuff= libmagic=32-bit;;
18317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18318 libsuff=32 shlibsuff=N32 libmagic=N32;;
18319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18321 *) libsuff= shlibsuff= libmagic=never-match;;
18322 esac
18323 ;;
18324 esac
18325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18326 shlibpath_overrides_runpath=no
18327 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18328 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18329 hardcode_into_libs=yes
18330 ;;
18331
18332 # No shared lib support for Linux oldld, aout, or coff.
18333 linux*oldld* | linux*aout* | linux*coff*)
18334 dynamic_linker=no
18335 ;;
18336
18337 linux*android*)
18338 version_type=none # Android doesn't support versioned libraries.
18339 need_lib_prefix=no
18340 need_version=no
18341 library_names_spec='$libname$release$shared_ext'
18342 soname_spec='$libname$release$shared_ext'
18343 finish_cmds=
18344 shlibpath_var=LD_LIBRARY_PATH
18345 shlibpath_overrides_runpath=yes
18346
18347 # This implies no fast_install, which is unacceptable.
18348 # Some rework will be needed to allow for fast_install
18349 # before this can be enabled.
18350 hardcode_into_libs=yes
18351
18352 dynamic_linker='Android linker'
18353 # Don't embed -rpath directories since the linker doesn't support them.
18354 hardcode_libdir_flag_spec='-L$libdir'
18355 ;;
18356
18357 # This must be glibc/ELF.
18358 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18359 version_type=linux # correct to gnu/linux during the next big refactor
18360 need_lib_prefix=no
18361 need_version=no
18362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18363 soname_spec='$libname$release$shared_ext$major'
18364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=no
18367
18368 # Some binutils ld are patched to set DT_RUNPATH
18369 if test ${lt_cv_shlibpath_overrides_runpath+y}
18370 then :
18371 printf %s "(cached) " >&6
18372 else $as_nop
18373 lt_cv_shlibpath_overrides_runpath=no
18374 save_LDFLAGS=$LDFLAGS
18375 save_libdir=$libdir
18376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380
18381 int
18382 main (void)
18383 {
18384
18385 ;
18386 return 0;
18387 }
18388 _ACEOF
18389 if ac_fn_c_try_link "$LINENO"
18390 then :
18391 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18392 then :
18393 lt_cv_shlibpath_overrides_runpath=yes
18394 fi
18395 fi
18396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18397 conftest$ac_exeext conftest.$ac_ext
18398 LDFLAGS=$save_LDFLAGS
18399 libdir=$save_libdir
18400
18401 fi
18402
18403 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18404
18405 # This implies no fast_install, which is unacceptable.
18406 # Some rework will be needed to allow for fast_install
18407 # before this can be enabled.
18408 hardcode_into_libs=yes
18409
18410 # Ideally, we could use ldconfig to report *all* directores which are
18411 # searched for libraries, however this is still not possible. Aside from not
18412 # being certain /sbin/ldconfig is available, command
18413 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18414 # even though it is searched at run-time. Try to do the best guess by
18415 # appending ld.so.conf contents (and includes) to the search path.
18416 if test -f /etc/ld.so.conf; then
18417 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' ' '`
18418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18419 fi
18420
18421 # We used to test for /lib/ld.so.1 and disable shared libraries on
18422 # powerpc, because MkLinux only supported shared libraries with the
18423 # GNU dynamic linker. Since this was broken with cross compilers,
18424 # most powerpc-linux boxes support dynamic linking these days and
18425 # people can always --disable-shared, the test was removed, and we
18426 # assume the GNU/Linux dynamic linker is in use.
18427 dynamic_linker='GNU/Linux ld.so'
18428 ;;
18429
18430 netbsdelf*-gnu)
18431 version_type=linux
18432 need_lib_prefix=no
18433 need_version=no
18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 shlibpath_var=LD_LIBRARY_PATH
18437 shlibpath_overrides_runpath=no
18438 hardcode_into_libs=yes
18439 dynamic_linker='NetBSD ld.elf_so'
18440 ;;
18441
18442 netbsd*)
18443 version_type=sunos
18444 need_lib_prefix=no
18445 need_version=no
18446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18449 dynamic_linker='NetBSD (a.out) ld.so'
18450 else
18451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18452 soname_spec='$libname$release$shared_ext$major'
18453 dynamic_linker='NetBSD ld.elf_so'
18454 fi
18455 shlibpath_var=LD_LIBRARY_PATH
18456 shlibpath_overrides_runpath=yes
18457 hardcode_into_libs=yes
18458 ;;
18459
18460 newsos6)
18461 version_type=linux # correct to gnu/linux during the next big refactor
18462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18463 shlibpath_var=LD_LIBRARY_PATH
18464 shlibpath_overrides_runpath=yes
18465 ;;
18466
18467 *nto* | *qnx*)
18468 version_type=qnx
18469 need_lib_prefix=no
18470 need_version=no
18471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18472 soname_spec='$libname$release$shared_ext$major'
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=no
18475 hardcode_into_libs=yes
18476 dynamic_linker='ldqnx.so'
18477 ;;
18478
18479 openbsd* | bitrig*)
18480 version_type=sunos
18481 sys_lib_dlsearch_path_spec=/usr/lib
18482 need_lib_prefix=no
18483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18484 need_version=no
18485 else
18486 need_version=yes
18487 fi
18488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18490 shlibpath_var=LD_LIBRARY_PATH
18491 shlibpath_overrides_runpath=yes
18492 ;;
18493
18494 os2*)
18495 libname_spec='$name'
18496 version_type=windows
18497 shrext_cmds=.dll
18498 need_version=no
18499 need_lib_prefix=no
18500 # OS/2 can only load a DLL with a base name of 8 characters or less.
18501 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18502 v=$($ECHO $release$versuffix | tr -d .-);
18503 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18504 $ECHO $n$v`$shared_ext'
18505 library_names_spec='${libname}_dll.$libext'
18506 dynamic_linker='OS/2 ld.exe'
18507 shlibpath_var=BEGINLIBPATH
18508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18510 postinstall_cmds='base_file=`basename \$file`~
18511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18512 dldir=$destdir/`dirname \$dlpath`~
18513 test -d \$dldir || mkdir -p \$dldir~
18514 $install_prog $dir/$dlname \$dldir/$dlname~
18515 chmod a+x \$dldir/$dlname~
18516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18518 fi'
18519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18520 dlpath=$dir/\$dldll~
18521 $RM \$dlpath'
18522 ;;
18523
18524 osf3* | osf4* | osf5*)
18525 version_type=osf
18526 need_lib_prefix=no
18527 need_version=no
18528 soname_spec='$libname$release$shared_ext$major'
18529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18533 ;;
18534
18535 rdos*)
18536 dynamic_linker=no
18537 ;;
18538
18539 solaris*)
18540 version_type=linux # correct to gnu/linux during the next big refactor
18541 need_lib_prefix=no
18542 need_version=no
18543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18544 soname_spec='$libname$release$shared_ext$major'
18545 shlibpath_var=LD_LIBRARY_PATH
18546 shlibpath_overrides_runpath=yes
18547 hardcode_into_libs=yes
18548 # ldd complains unless libraries are executable
18549 postinstall_cmds='chmod +x $lib'
18550 ;;
18551
18552 sunos4*)
18553 version_type=sunos
18554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18556 shlibpath_var=LD_LIBRARY_PATH
18557 shlibpath_overrides_runpath=yes
18558 if test yes = "$with_gnu_ld"; then
18559 need_lib_prefix=no
18560 fi
18561 need_version=yes
18562 ;;
18563
18564 sysv4 | sysv4.3*)
18565 version_type=linux # correct to gnu/linux during the next big refactor
18566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18567 soname_spec='$libname$release$shared_ext$major'
18568 shlibpath_var=LD_LIBRARY_PATH
18569 case $host_vendor in
18570 sni)
18571 shlibpath_overrides_runpath=no
18572 need_lib_prefix=no
18573 runpath_var=LD_RUN_PATH
18574 ;;
18575 siemens)
18576 need_lib_prefix=no
18577 ;;
18578 motorola)
18579 need_lib_prefix=no
18580 need_version=no
18581 shlibpath_overrides_runpath=no
18582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18583 ;;
18584 esac
18585 ;;
18586
18587 sysv4*MP*)
18588 if test -d /usr/nec; then
18589 version_type=linux # correct to gnu/linux during the next big refactor
18590 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18591 soname_spec='$libname$shared_ext.$major'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 fi
18594 ;;
18595
18596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18597 version_type=sco
18598 need_lib_prefix=no
18599 need_version=no
18600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18601 soname_spec='$libname$release$shared_ext$major'
18602 shlibpath_var=LD_LIBRARY_PATH
18603 shlibpath_overrides_runpath=yes
18604 hardcode_into_libs=yes
18605 if test yes = "$with_gnu_ld"; then
18606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18607 else
18608 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18609 case $host_os in
18610 sco3.2v5*)
18611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18612 ;;
18613 esac
18614 fi
18615 sys_lib_dlsearch_path_spec='/usr/lib'
18616 ;;
18617
18618 tpf*)
18619 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18620 version_type=linux # correct to gnu/linux during the next big refactor
18621 need_lib_prefix=no
18622 need_version=no
18623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18624 shlibpath_var=LD_LIBRARY_PATH
18625 shlibpath_overrides_runpath=no
18626 hardcode_into_libs=yes
18627 ;;
18628
18629 uts4*)
18630 version_type=linux # correct to gnu/linux during the next big refactor
18631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18632 soname_spec='$libname$release$shared_ext$major'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 ;;
18635
18636 *)
18637 dynamic_linker=no
18638 ;;
18639 esac
18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18641 printf "%s\n" "$dynamic_linker" >&6; }
18642 test no = "$dynamic_linker" && can_build_shared=no
18643
18644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18645 if test yes = "$GCC"; then
18646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18647 fi
18648
18649 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18650 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18651 fi
18652
18653 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18654 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18655 fi
18656
18657 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18658 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18659
18660 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18661 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18662
18663 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18664 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18763 printf %s "checking how to hardcode library paths into programs... " >&6; }
18764 hardcode_action=
18765 if test -n "$hardcode_libdir_flag_spec" ||
18766 test -n "$runpath_var" ||
18767 test yes = "$hardcode_automatic"; then
18768
18769 # We can hardcode non-existent directories.
18770 if test no != "$hardcode_direct" &&
18771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18772 # have to relink, otherwise we might link with an installed library
18773 # when we should be linking with a yet-to-be-installed one
18774 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18775 test no != "$hardcode_minus_L"; then
18776 # Linking always hardcodes the temporary library directory.
18777 hardcode_action=relink
18778 else
18779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18780 hardcode_action=immediate
18781 fi
18782 else
18783 # We cannot hardcode anything, or else we can only hardcode existing
18784 # directories.
18785 hardcode_action=unsupported
18786 fi
18787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18788 printf "%s\n" "$hardcode_action" >&6; }
18789
18790 if test relink = "$hardcode_action" ||
18791 test yes = "$inherit_rpath"; then
18792 # Fast installation is not supported
18793 enable_fast_install=no
18794 elif test yes = "$shlibpath_overrides_runpath" ||
18795 test no = "$enable_shared"; then
18796 # Fast installation is not necessary
18797 enable_fast_install=needless
18798 fi
18799
18800
18801
18802
18803
18804
18805 if test yes != "$enable_dlopen"; then
18806 enable_dlopen=unknown
18807 enable_dlopen_self=unknown
18808 enable_dlopen_self_static=unknown
18809 else
18810 lt_cv_dlopen=no
18811 lt_cv_dlopen_libs=
18812
18813 case $host_os in
18814 beos*)
18815 lt_cv_dlopen=load_add_on
18816 lt_cv_dlopen_libs=
18817 lt_cv_dlopen_self=yes
18818 ;;
18819
18820 mingw* | pw32* | cegcc*)
18821 lt_cv_dlopen=LoadLibrary
18822 lt_cv_dlopen_libs=
18823 ;;
18824
18825 cygwin*)
18826 lt_cv_dlopen=dlopen
18827 lt_cv_dlopen_libs=
18828 ;;
18829
18830 darwin*)
18831 # if libdl is installed we need to link against it
18832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18833 printf %s "checking for dlopen in -ldl... " >&6; }
18834 if test ${ac_cv_lib_dl_dlopen+y}
18835 then :
18836 printf %s "(cached) " >&6
18837 else $as_nop
18838 ac_check_lib_save_LIBS=$LIBS
18839 LIBS="-ldl $LIBS"
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18842
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18846 char dlopen ();
18847 int
18848 main (void)
18849 {
18850 return dlopen ();
18851 ;
18852 return 0;
18853 }
18854 _ACEOF
18855 if ac_fn_c_try_link "$LINENO"
18856 then :
18857 ac_cv_lib_dl_dlopen=yes
18858 else $as_nop
18859 ac_cv_lib_dl_dlopen=no
18860 fi
18861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18862 conftest$ac_exeext conftest.$ac_ext
18863 LIBS=$ac_check_lib_save_LIBS
18864 fi
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18866 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18867 if test "x$ac_cv_lib_dl_dlopen" = xyes
18868 then :
18869 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18870 else $as_nop
18871
18872 lt_cv_dlopen=dyld
18873 lt_cv_dlopen_libs=
18874 lt_cv_dlopen_self=yes
18875
18876 fi
18877
18878 ;;
18879
18880 tpf*)
18881 # Don't try to run any link tests for TPF. We know it's impossible
18882 # because TPF is a cross-compiler, and we know how we open DSOs.
18883 lt_cv_dlopen=dlopen
18884 lt_cv_dlopen_libs=
18885 lt_cv_dlopen_self=no
18886 ;;
18887
18888 *)
18889 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18890 if test "x$ac_cv_func_shl_load" = xyes
18891 then :
18892 lt_cv_dlopen=shl_load
18893 else $as_nop
18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18895 printf %s "checking for shl_load in -ldld... " >&6; }
18896 if test ${ac_cv_lib_dld_shl_load+y}
18897 then :
18898 printf %s "(cached) " >&6
18899 else $as_nop
18900 ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-ldld $LIBS"
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18904
18905 /* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18908 char shl_load ();
18909 int
18910 main (void)
18911 {
18912 return shl_load ();
18913 ;
18914 return 0;
18915 }
18916 _ACEOF
18917 if ac_fn_c_try_link "$LINENO"
18918 then :
18919 ac_cv_lib_dld_shl_load=yes
18920 else $as_nop
18921 ac_cv_lib_dld_shl_load=no
18922 fi
18923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18924 conftest$ac_exeext conftest.$ac_ext
18925 LIBS=$ac_check_lib_save_LIBS
18926 fi
18927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18928 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18929 if test "x$ac_cv_lib_dld_shl_load" = xyes
18930 then :
18931 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18932 else $as_nop
18933 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18934 if test "x$ac_cv_func_dlopen" = xyes
18935 then :
18936 lt_cv_dlopen=dlopen
18937 else $as_nop
18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18939 printf %s "checking for dlopen in -ldl... " >&6; }
18940 if test ${ac_cv_lib_dl_dlopen+y}
18941 then :
18942 printf %s "(cached) " >&6
18943 else $as_nop
18944 ac_check_lib_save_LIBS=$LIBS
18945 LIBS="-ldl $LIBS"
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18948
18949 /* Override any GCC internal prototype to avoid an error.
18950 Use char because int might match the return type of a GCC
18951 builtin and then its argument prototype would still apply. */
18952 char dlopen ();
18953 int
18954 main (void)
18955 {
18956 return dlopen ();
18957 ;
18958 return 0;
18959 }
18960 _ACEOF
18961 if ac_fn_c_try_link "$LINENO"
18962 then :
18963 ac_cv_lib_dl_dlopen=yes
18964 else $as_nop
18965 ac_cv_lib_dl_dlopen=no
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18968 conftest$ac_exeext conftest.$ac_ext
18969 LIBS=$ac_check_lib_save_LIBS
18970 fi
18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18972 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18973 if test "x$ac_cv_lib_dl_dlopen" = xyes
18974 then :
18975 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18976 else $as_nop
18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18978 printf %s "checking for dlopen in -lsvld... " >&6; }
18979 if test ${ac_cv_lib_svld_dlopen+y}
18980 then :
18981 printf %s "(cached) " >&6
18982 else $as_nop
18983 ac_check_lib_save_LIBS=$LIBS
18984 LIBS="-lsvld $LIBS"
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18987
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991 char dlopen ();
18992 int
18993 main (void)
18994 {
18995 return dlopen ();
18996 ;
18997 return 0;
18998 }
18999 _ACEOF
19000 if ac_fn_c_try_link "$LINENO"
19001 then :
19002 ac_cv_lib_svld_dlopen=yes
19003 else $as_nop
19004 ac_cv_lib_svld_dlopen=no
19005 fi
19006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19007 conftest$ac_exeext conftest.$ac_ext
19008 LIBS=$ac_check_lib_save_LIBS
19009 fi
19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19011 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19012 if test "x$ac_cv_lib_svld_dlopen" = xyes
19013 then :
19014 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19015 else $as_nop
19016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19017 printf %s "checking for dld_link in -ldld... " >&6; }
19018 if test ${ac_cv_lib_dld_dld_link+y}
19019 then :
19020 printf %s "(cached) " >&6
19021 else $as_nop
19022 ac_check_lib_save_LIBS=$LIBS
19023 LIBS="-ldld $LIBS"
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026
19027 /* Override any GCC internal prototype to avoid an error.
19028 Use char because int might match the return type of a GCC
19029 builtin and then its argument prototype would still apply. */
19030 char dld_link ();
19031 int
19032 main (void)
19033 {
19034 return dld_link ();
19035 ;
19036 return 0;
19037 }
19038 _ACEOF
19039 if ac_fn_c_try_link "$LINENO"
19040 then :
19041 ac_cv_lib_dld_dld_link=yes
19042 else $as_nop
19043 ac_cv_lib_dld_dld_link=no
19044 fi
19045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19046 conftest$ac_exeext conftest.$ac_ext
19047 LIBS=$ac_check_lib_save_LIBS
19048 fi
19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19050 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19051 if test "x$ac_cv_lib_dld_dld_link" = xyes
19052 then :
19053 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19054 fi
19055
19056
19057 fi
19058
19059
19060 fi
19061
19062
19063 fi
19064
19065
19066 fi
19067
19068
19069 fi
19070
19071 ;;
19072 esac
19073
19074 if test no = "$lt_cv_dlopen"; then
19075 enable_dlopen=no
19076 else
19077 enable_dlopen=yes
19078 fi
19079
19080 case $lt_cv_dlopen in
19081 dlopen)
19082 save_CPPFLAGS=$CPPFLAGS
19083 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19084
19085 save_LDFLAGS=$LDFLAGS
19086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19087
19088 save_LIBS=$LIBS
19089 LIBS="$lt_cv_dlopen_libs $LIBS"
19090
19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19092 printf %s "checking whether a program can dlopen itself... " >&6; }
19093 if test ${lt_cv_dlopen_self+y}
19094 then :
19095 printf %s "(cached) " >&6
19096 else $as_nop
19097 if test yes = "$cross_compiling"; then :
19098 lt_cv_dlopen_self=cross
19099 else
19100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19101 lt_status=$lt_dlunknown
19102 cat > conftest.$ac_ext <<_LT_EOF
19103 #line $LINENO "configure"
19104 #include "confdefs.h"
19105
19106 #if HAVE_DLFCN_H
19107 #include <dlfcn.h>
19108 #endif
19109
19110 #include <stdio.h>
19111
19112 #ifdef RTLD_GLOBAL
19113 # define LT_DLGLOBAL RTLD_GLOBAL
19114 #else
19115 # ifdef DL_GLOBAL
19116 # define LT_DLGLOBAL DL_GLOBAL
19117 # else
19118 # define LT_DLGLOBAL 0
19119 # endif
19120 #endif
19121
19122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19123 find out it does not work in some platform. */
19124 #ifndef LT_DLLAZY_OR_NOW
19125 # ifdef RTLD_LAZY
19126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19127 # else
19128 # ifdef DL_LAZY
19129 # define LT_DLLAZY_OR_NOW DL_LAZY
19130 # else
19131 # ifdef RTLD_NOW
19132 # define LT_DLLAZY_OR_NOW RTLD_NOW
19133 # else
19134 # ifdef DL_NOW
19135 # define LT_DLLAZY_OR_NOW DL_NOW
19136 # else
19137 # define LT_DLLAZY_OR_NOW 0
19138 # endif
19139 # endif
19140 # endif
19141 # endif
19142 #endif
19143
19144 /* When -fvisibility=hidden is used, assume the code has been annotated
19145 correspondingly for the symbols needed. */
19146 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19147 int fnord () __attribute__((visibility("default")));
19148 #endif
19149
19150 int fnord () { return 42; }
19151 int main ()
19152 {
19153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19154 int status = $lt_dlunknown;
19155
19156 if (self)
19157 {
19158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19159 else
19160 {
19161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19162 else puts (dlerror ());
19163 }
19164 /* dlclose (self); */
19165 }
19166 else
19167 puts (dlerror ());
19168
19169 return status;
19170 }
19171 _LT_EOF
19172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19173 (eval $ac_link) 2>&5
19174 ac_status=$?
19175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19176 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19177 (./conftest; exit; ) >&5 2>/dev/null
19178 lt_status=$?
19179 case x$lt_status in
19180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19183 esac
19184 else :
19185 # compilation failed
19186 lt_cv_dlopen_self=no
19187 fi
19188 fi
19189 rm -fr conftest*
19190
19191
19192 fi
19193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19194 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19195
19196 if test yes = "$lt_cv_dlopen_self"; then
19197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19199 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19200 if test ${lt_cv_dlopen_self_static+y}
19201 then :
19202 printf %s "(cached) " >&6
19203 else $as_nop
19204 if test yes = "$cross_compiling"; then :
19205 lt_cv_dlopen_self_static=cross
19206 else
19207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19208 lt_status=$lt_dlunknown
19209 cat > conftest.$ac_ext <<_LT_EOF
19210 #line $LINENO "configure"
19211 #include "confdefs.h"
19212
19213 #if HAVE_DLFCN_H
19214 #include <dlfcn.h>
19215 #endif
19216
19217 #include <stdio.h>
19218
19219 #ifdef RTLD_GLOBAL
19220 # define LT_DLGLOBAL RTLD_GLOBAL
19221 #else
19222 # ifdef DL_GLOBAL
19223 # define LT_DLGLOBAL DL_GLOBAL
19224 # else
19225 # define LT_DLGLOBAL 0
19226 # endif
19227 #endif
19228
19229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19230 find out it does not work in some platform. */
19231 #ifndef LT_DLLAZY_OR_NOW
19232 # ifdef RTLD_LAZY
19233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19234 # else
19235 # ifdef DL_LAZY
19236 # define LT_DLLAZY_OR_NOW DL_LAZY
19237 # else
19238 # ifdef RTLD_NOW
19239 # define LT_DLLAZY_OR_NOW RTLD_NOW
19240 # else
19241 # ifdef DL_NOW
19242 # define LT_DLLAZY_OR_NOW DL_NOW
19243 # else
19244 # define LT_DLLAZY_OR_NOW 0
19245 # endif
19246 # endif
19247 # endif
19248 # endif
19249 #endif
19250
19251 /* When -fvisibility=hidden is used, assume the code has been annotated
19252 correspondingly for the symbols needed. */
19253 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19254 int fnord () __attribute__((visibility("default")));
19255 #endif
19256
19257 int fnord () { return 42; }
19258 int main ()
19259 {
19260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19261 int status = $lt_dlunknown;
19262
19263 if (self)
19264 {
19265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19266 else
19267 {
19268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19269 else puts (dlerror ());
19270 }
19271 /* dlclose (self); */
19272 }
19273 else
19274 puts (dlerror ());
19275
19276 return status;
19277 }
19278 _LT_EOF
19279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19280 (eval $ac_link) 2>&5
19281 ac_status=$?
19282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19283 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19284 (./conftest; exit; ) >&5 2>/dev/null
19285 lt_status=$?
19286 case x$lt_status in
19287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19290 esac
19291 else :
19292 # compilation failed
19293 lt_cv_dlopen_self_static=no
19294 fi
19295 fi
19296 rm -fr conftest*
19297
19298
19299 fi
19300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19301 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19302 fi
19303
19304 CPPFLAGS=$save_CPPFLAGS
19305 LDFLAGS=$save_LDFLAGS
19306 LIBS=$save_LIBS
19307 ;;
19308 esac
19309
19310 case $lt_cv_dlopen_self in
19311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19312 *) enable_dlopen_self=unknown ;;
19313 esac
19314
19315 case $lt_cv_dlopen_self_static in
19316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19317 *) enable_dlopen_self_static=unknown ;;
19318 esac
19319 fi
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337 striplib=
19338 old_striplib=
19339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19340 printf %s "checking whether stripping libraries is possible... " >&6; }
19341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19345 printf "%s\n" "yes" >&6; }
19346 else
19347 # FIXME - insert some real tests, host_os isn't really good enough
19348 case $host_os in
19349 darwin*)
19350 if test -n "$STRIP"; then
19351 striplib="$STRIP -x"
19352 old_striplib="$STRIP -S"
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19354 printf "%s\n" "yes" >&6; }
19355 else
19356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19357 printf "%s\n" "no" >&6; }
19358 fi
19359 ;;
19360 *)
19361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19362 printf "%s\n" "no" >&6; }
19363 ;;
19364 esac
19365 fi
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378 # Report what library types will actually be built
19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19380 printf %s "checking if libtool supports shared libraries... " >&6; }
19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19382 printf "%s\n" "$can_build_shared" >&6; }
19383
19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19385 printf %s "checking whether to build shared libraries... " >&6; }
19386 test no = "$can_build_shared" && enable_shared=no
19387
19388 # On AIX, shared libraries and static libraries use the same namespace, and
19389 # are all built from PIC.
19390 case $host_os in
19391 aix3*)
19392 test yes = "$enable_shared" && enable_static=no
19393 if test -n "$RANLIB"; then
19394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19395 postinstall_cmds='$RANLIB $lib'
19396 fi
19397 ;;
19398
19399 aix[4-9]*)
19400 if test ia64 != "$host_cpu"; then
19401 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19402 yes,aix,yes) ;; # shared object as lib.so file only
19403 yes,svr4,*) ;; # shared object as lib.so archive member only
19404 yes,*) enable_static=no ;; # shared object in lib.a archive as well
19405 esac
19406 fi
19407 ;;
19408 esac
19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19410 printf "%s\n" "$enable_shared" >&6; }
19411
19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19413 printf %s "checking whether to build static libraries... " >&6; }
19414 # Make sure either enable_shared or enable_static is yes.
19415 test yes = "$enable_shared" || enable_static=yes
19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19417 printf "%s\n" "$enable_static" >&6; }
19418
19419
19420
19421
19422 fi
19423 ac_ext=c
19424 ac_cpp='$CPP $CPPFLAGS'
19425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428
19429 CC=$lt_save_CC
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445 ac_config_commands="$ac_config_commands libtool"
19446
19447
19448
19449
19450 # Only expand once:
19451
19452
19453
19454 # Checks for programs.
19455
19456
19457 if test "x$GCC" = "xyes"; then
19458 CPPFLAGS="$CPPFLAGS -Wall"
19459 fi
19460
19461
19462
19463 # Define a configure option for an alternate module directory
19464
19465 # Check whether --with-xorg-module-dir was given.
19466 if test ${with_xorg_module_dir+y}
19467 then :
19468 withval=$with_xorg_module_dir; moduledir="$withval"
19469 else $as_nop
19470 moduledir="$libdir/xorg/modules"
19471 fi
19472
19473
19474 # Store the list of server defined optional extensions in REQUIRED_MODULES
19475
19476
19477 SAVE_CFLAGS="$CFLAGS"
19478 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19481
19482 #include "xorg-server.h"
19483 #if !defined RANDR
19484 #error RANDR not defined
19485 #endif
19486
19487 int
19488 main (void)
19489 {
19490
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_compile "$LINENO"
19496 then :
19497 _EXT_CHECK=yes
19498 else $as_nop
19499 _EXT_CHECK=no
19500 fi
19501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19502 CFLAGS="$SAVE_CFLAGS"
19503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19504 printf %s "checking if RANDR is defined... " >&6; }
19505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19506 printf "%s\n" "$_EXT_CHECK" >&6; }
19507 if test "$_EXT_CHECK" != no; then
19508 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19509 fi
19510
19511
19512
19513 SAVE_CFLAGS="$CFLAGS"
19514 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19517
19518 #include "xorg-server.h"
19519 #if !defined RENDER
19520 #error RENDER not defined
19521 #endif
19522
19523 int
19524 main (void)
19525 {
19526
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 if ac_fn_c_try_compile "$LINENO"
19532 then :
19533 _EXT_CHECK=yes
19534 else $as_nop
19535 _EXT_CHECK=no
19536 fi
19537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19538 CFLAGS="$SAVE_CFLAGS"
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19540 printf %s "checking if RENDER is defined... " >&6; }
19541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19542 printf "%s\n" "$_EXT_CHECK" >&6; }
19543 if test "$_EXT_CHECK" != no; then
19544 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19545 fi
19546
19547
19548
19549 SAVE_CFLAGS="$CFLAGS"
19550 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19553
19554 #include "xorg-server.h"
19555 #if !defined XV
19556 #error XV not defined
19557 #endif
19558
19559 int
19560 main (void)
19561 {
19562
19563 ;
19564 return 0;
19565 }
19566 _ACEOF
19567 if ac_fn_c_try_compile "$LINENO"
19568 then :
19569 _EXT_CHECK=yes
19570 else $as_nop
19571 _EXT_CHECK=no
19572 fi
19573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19574 CFLAGS="$SAVE_CFLAGS"
19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19576 printf %s "checking if XV is defined... " >&6; }
19577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19578 printf "%s\n" "$_EXT_CHECK" >&6; }
19579 if test "$_EXT_CHECK" != no; then
19580 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19581 fi
19582
19583
19584
19585 SAVE_CFLAGS="$CFLAGS"
19586 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588 /* end confdefs.h. */
19589
19590 #include "xorg-server.h"
19591 #if !defined DPMSExtension
19592 #error DPMSExtension not defined
19593 #endif
19594
19595 int
19596 main (void)
19597 {
19598
19599 ;
19600 return 0;
19601 }
19602 _ACEOF
19603 if ac_fn_c_try_compile "$LINENO"
19604 then :
19605 _EXT_CHECK=yes
19606 else $as_nop
19607 _EXT_CHECK=no
19608 fi
19609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19610 CFLAGS="$SAVE_CFLAGS"
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19612 printf %s "checking if DPMSExtension is defined... " >&6; }
19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19614 printf "%s\n" "$_EXT_CHECK" >&6; }
19615 if test "$_EXT_CHECK" != no; then
19616 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19617 fi
19618
19619
19620 # Checks for libraries.
19621
19622 pkg_failed=no
19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 2.4.89" >&5
19624 printf %s "checking for libdrm >= 2.4.89... " >&6; }
19625
19626 if test -n "$LIBDRM_CFLAGS"; then
19627 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
19628 elif test -n "$PKG_CONFIG"; then
19629 if test -n "$PKG_CONFIG" && \
19630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
19631 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
19632 ac_status=$?
19633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19634 test $ac_status = 0; }; then
19635 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null`
19636 test "x$?" != "x0" && pkg_failed=yes
19637 else
19638 pkg_failed=yes
19639 fi
19640 else
19641 pkg_failed=untried
19642 fi
19643 if test -n "$LIBDRM_LIBS"; then
19644 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
19645 elif test -n "$PKG_CONFIG"; then
19646 if test -n "$PKG_CONFIG" && \
19647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
19648 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
19649 ac_status=$?
19650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19651 test $ac_status = 0; }; then
19652 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null`
19653 test "x$?" != "x0" && pkg_failed=yes
19654 else
19655 pkg_failed=yes
19656 fi
19657 else
19658 pkg_failed=untried
19659 fi
19660
19661
19662
19663 if test $pkg_failed = yes; then
19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19665 printf "%s\n" "no" >&6; }
19666
19667 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19668 _pkg_short_errors_supported=yes
19669 else
19670 _pkg_short_errors_supported=no
19671 fi
19672 if test $_pkg_short_errors_supported = yes; then
19673 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
19674 else
19675 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
19676 fi
19677 # Put the nasty error message in config.log where it belongs
19678 echo "$LIBDRM_PKG_ERRORS" >&5
19679
19680 as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met:
19681
19682 $LIBDRM_PKG_ERRORS
19683
19684 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19685 installed software in a non-standard prefix.
19686
19687 Alternatively, you may set the environment variables LIBDRM_CFLAGS
19688 and LIBDRM_LIBS to avoid the need to call pkg-config.
19689 See the pkg-config man page for more details." "$LINENO" 5
19690 elif test $pkg_failed = untried; then
19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19692 printf "%s\n" "no" >&6; }
19693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19694 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19695 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19696 is in your PATH or set the PKG_CONFIG environment variable to the full
19697 path to pkg-config.
19698
19699 Alternatively, you may set the environment variables LIBDRM_CFLAGS
19700 and LIBDRM_LIBS to avoid the need to call pkg-config.
19701 See the pkg-config man page for more details.
19702
19703 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19704 See \`config.log' for more details" "$LINENO" 5; }
19705 else
19706 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
19707 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19709 printf "%s\n" "yes" >&6; }
19710
19711 fi
19712
19713 pkg_failed=no
19714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm_amdgpu >= 2.4.76" >&5
19715 printf %s "checking for libdrm_amdgpu >= 2.4.76... " >&6; }
19716
19717 if test -n "$LIBDRM_AMDGPU_CFLAGS"; then
19718 pkg_cv_LIBDRM_AMDGPU_CFLAGS="$LIBDRM_AMDGPU_CFLAGS"
19719 elif test -n "$PKG_CONFIG"; then
19720 if test -n "$PKG_CONFIG" && \
19721 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.76\""; } >&5
19722 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 2>&5
19723 ac_status=$?
19724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19725 test $ac_status = 0; }; then
19726 pkg_cv_LIBDRM_AMDGPU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_amdgpu >= 2.4.76" 2>/dev/null`
19727 test "x$?" != "x0" && pkg_failed=yes
19728 else
19729 pkg_failed=yes
19730 fi
19731 else
19732 pkg_failed=untried
19733 fi
19734 if test -n "$LIBDRM_AMDGPU_LIBS"; then
19735 pkg_cv_LIBDRM_AMDGPU_LIBS="$LIBDRM_AMDGPU_LIBS"
19736 elif test -n "$PKG_CONFIG"; then
19737 if test -n "$PKG_CONFIG" && \
19738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.76\""; } >&5
19739 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 2>&5
19740 ac_status=$?
19741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19742 test $ac_status = 0; }; then
19743 pkg_cv_LIBDRM_AMDGPU_LIBS=`$PKG_CONFIG --libs "libdrm_amdgpu >= 2.4.76" 2>/dev/null`
19744 test "x$?" != "x0" && pkg_failed=yes
19745 else
19746 pkg_failed=yes
19747 fi
19748 else
19749 pkg_failed=untried
19750 fi
19751
19752
19753
19754 if test $pkg_failed = yes; then
19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19756 printf "%s\n" "no" >&6; }
19757
19758 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19759 _pkg_short_errors_supported=yes
19760 else
19761 _pkg_short_errors_supported=no
19762 fi
19763 if test $_pkg_short_errors_supported = yes; then
19764 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1`
19765 else
19766 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1`
19767 fi
19768 # Put the nasty error message in config.log where it belongs
19769 echo "$LIBDRM_AMDGPU_PKG_ERRORS" >&5
19770
19771 as_fn_error $? "Package requirements (libdrm_amdgpu >= 2.4.76) were not met:
19772
19773 $LIBDRM_AMDGPU_PKG_ERRORS
19774
19775 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19776 installed software in a non-standard prefix.
19777
19778 Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS
19779 and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config.
19780 See the pkg-config man page for more details." "$LINENO" 5
19781 elif test $pkg_failed = untried; then
19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19783 printf "%s\n" "no" >&6; }
19784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19785 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19786 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19787 is in your PATH or set the PKG_CONFIG environment variable to the full
19788 path to pkg-config.
19789
19790 Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS
19791 and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config.
19792 See the pkg-config man page for more details.
19793
19794 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19795 See \`config.log' for more details" "$LINENO" 5; }
19796 else
19797 LIBDRM_AMDGPU_CFLAGS=$pkg_cv_LIBDRM_AMDGPU_CFLAGS
19798 LIBDRM_AMDGPU_LIBS=$pkg_cv_LIBDRM_AMDGPU_LIBS
19799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19800 printf "%s\n" "yes" >&6; }
19801
19802 fi
19803
19804 pkg_failed=no
19805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm" >&5
19806 printf %s "checking for gbm... " >&6; }
19807
19808 if test -n "$GBM_CFLAGS"; then
19809 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
19810 elif test -n "$PKG_CONFIG"; then
19811 if test -n "$PKG_CONFIG" && \
19812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
19813 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
19814 ac_status=$?
19815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19816 test $ac_status = 0; }; then
19817 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null`
19818 test "x$?" != "x0" && pkg_failed=yes
19819 else
19820 pkg_failed=yes
19821 fi
19822 else
19823 pkg_failed=untried
19824 fi
19825 if test -n "$GBM_LIBS"; then
19826 pkg_cv_GBM_LIBS="$GBM_LIBS"
19827 elif test -n "$PKG_CONFIG"; then
19828 if test -n "$PKG_CONFIG" && \
19829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
19830 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
19831 ac_status=$?
19832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19833 test $ac_status = 0; }; then
19834 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null`
19835 test "x$?" != "x0" && pkg_failed=yes
19836 else
19837 pkg_failed=yes
19838 fi
19839 else
19840 pkg_failed=untried
19841 fi
19842
19843
19844
19845 if test $pkg_failed = yes; then
19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19847 printf "%s\n" "no" >&6; }
19848
19849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19850 _pkg_short_errors_supported=yes
19851 else
19852 _pkg_short_errors_supported=no
19853 fi
19854 if test $_pkg_short_errors_supported = yes; then
19855 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1`
19856 else
19857 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1`
19858 fi
19859 # Put the nasty error message in config.log where it belongs
19860 echo "$GBM_PKG_ERRORS" >&5
19861
19862 as_fn_error $? "Package requirements (gbm) were not met:
19863
19864 $GBM_PKG_ERRORS
19865
19866 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19867 installed software in a non-standard prefix.
19868
19869 Alternatively, you may set the environment variables GBM_CFLAGS
19870 and GBM_LIBS to avoid the need to call pkg-config.
19871 See the pkg-config man page for more details." "$LINENO" 5
19872 elif test $pkg_failed = untried; then
19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19874 printf "%s\n" "no" >&6; }
19875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19876 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19877 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19878 is in your PATH or set the PKG_CONFIG environment variable to the full
19879 path to pkg-config.
19880
19881 Alternatively, you may set the environment variables GBM_CFLAGS
19882 and GBM_LIBS to avoid the need to call pkg-config.
19883 See the pkg-config man page for more details.
19884
19885 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19886 See \`config.log' for more details" "$LINENO" 5; }
19887 else
19888 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
19889 GBM_LIBS=$pkg_cv_GBM_LIBS
19890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19891 printf "%s\n" "yes" >&6; }
19892
19893 fi
19894
19895 # Obtain compiler/linker options for the driver dependencies
19896
19897 pkg_failed=no
19898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" >&5
19899 printf %s "checking for xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES... " >&6; }
19900
19901 if test -n "$XORG_CFLAGS"; then
19902 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19903 elif test -n "$PKG_CONFIG"; then
19904 if test -n "$PKG_CONFIG" && \
19905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19906 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19907 ac_status=$?
19908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19909 test $ac_status = 0; }; then
19910 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19911 test "x$?" != "x0" && pkg_failed=yes
19912 else
19913 pkg_failed=yes
19914 fi
19915 else
19916 pkg_failed=untried
19917 fi
19918 if test -n "$XORG_LIBS"; then
19919 pkg_cv_XORG_LIBS="$XORG_LIBS"
19920 elif test -n "$PKG_CONFIG"; then
19921 if test -n "$PKG_CONFIG" && \
19922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19923 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19924 ac_status=$?
19925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19926 test $ac_status = 0; }; then
19927 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19928 test "x$?" != "x0" && pkg_failed=yes
19929 else
19930 pkg_failed=yes
19931 fi
19932 else
19933 pkg_failed=untried
19934 fi
19935
19936
19937
19938 if test $pkg_failed = yes; then
19939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19940 printf "%s\n" "no" >&6; }
19941
19942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19943 _pkg_short_errors_supported=yes
19944 else
19945 _pkg_short_errors_supported=no
19946 fi
19947 if test $_pkg_short_errors_supported = yes; then
19948 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19949 else
19950 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19951 fi
19952 # Put the nasty error message in config.log where it belongs
19953 echo "$XORG_PKG_ERRORS" >&5
19954
19955 as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
19956
19957 $XORG_PKG_ERRORS
19958
19959 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19960 installed software in a non-standard prefix.
19961
19962 Alternatively, you may set the environment variables XORG_CFLAGS
19963 and XORG_LIBS to avoid the need to call pkg-config.
19964 See the pkg-config man page for more details." "$LINENO" 5
19965 elif test $pkg_failed = untried; then
19966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967 printf "%s\n" "no" >&6; }
19968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19970 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19971 is in your PATH or set the PKG_CONFIG environment variable to the full
19972 path to pkg-config.
19973
19974 Alternatively, you may set the environment variables XORG_CFLAGS
19975 and XORG_LIBS to avoid the need to call pkg-config.
19976 See the pkg-config man page for more details.
19977
19978 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19979 See \`config.log' for more details" "$LINENO" 5; }
19980 else
19981 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19982 XORG_LIBS=$pkg_cv_XORG_LIBS
19983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19984 printf "%s\n" "yes" >&6; }
19985
19986 fi
19987
19988 pkg_failed=no
19989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xextproto >= 7.0.99.1" >&5
19990 printf %s "checking for xextproto >= 7.0.99.1... " >&6; }
19991
19992 if test -n "$XEXT_CFLAGS"; then
19993 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19994 elif test -n "$PKG_CONFIG"; then
19995 if test -n "$PKG_CONFIG" && \
19996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19997 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19998 ac_status=$?
19999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20000 test $ac_status = 0; }; then
20001 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
20002 test "x$?" != "x0" && pkg_failed=yes
20003 else
20004 pkg_failed=yes
20005 fi
20006 else
20007 pkg_failed=untried
20008 fi
20009 if test -n "$XEXT_LIBS"; then
20010 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20011 elif test -n "$PKG_CONFIG"; then
20012 if test -n "$PKG_CONFIG" && \
20013 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20014 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20015 ac_status=$?
20016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20017 test $ac_status = 0; }; then
20018 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
20019 test "x$?" != "x0" && pkg_failed=yes
20020 else
20021 pkg_failed=yes
20022 fi
20023 else
20024 pkg_failed=untried
20025 fi
20026
20027
20028
20029 if test $pkg_failed = yes; then
20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20031 printf "%s\n" "no" >&6; }
20032
20033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20034 _pkg_short_errors_supported=yes
20035 else
20036 _pkg_short_errors_supported=no
20037 fi
20038 if test $_pkg_short_errors_supported = yes; then
20039 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20040 else
20041 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20042 fi
20043 # Put the nasty error message in config.log where it belongs
20044 echo "$XEXT_PKG_ERRORS" >&5
20045
20046 HAVE_XEXTPROTO_71="no"
20047 elif test $pkg_failed = untried; then
20048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 printf "%s\n" "no" >&6; }
20050 HAVE_XEXTPROTO_71="no"
20051 else
20052 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20053 XEXT_LIBS=$pkg_cv_XEXT_LIBS
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20055 printf "%s\n" "yes" >&6; }
20056 HAVE_XEXTPROTO_71="yes";
20057 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
20058
20059 fi
20060 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
20061 HAVE_XEXTPROTO_71_TRUE=
20062 HAVE_XEXTPROTO_71_FALSE='#'
20063 else
20064 HAVE_XEXTPROTO_71_TRUE='#'
20065 HAVE_XEXTPROTO_71_FALSE=
20066 fi
20067
20068
20069 # Section "OutputClass" is only supported as of xserver 1.16
20070 if test -n "$PKG_CONFIG" && \
20071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
20072 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
20073 ac_status=$?
20074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20075 test $ac_status = 0; }; then
20076 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
20077 else
20078 sysconfigdir=""
20079 fi
20080 if test "x$sysconfigdir" != "x"; then
20081 HAS_XORG_CONF_DIR_TRUE=
20082 HAS_XORG_CONF_DIR_FALSE='#'
20083 else
20084 HAS_XORG_CONF_DIR_TRUE='#'
20085 HAS_XORG_CONF_DIR_FALSE=
20086 fi
20087
20088
20089 # Define a configure option for an alternate X Server configuration directory
20090
20091 # Check whether --with-xorg-conf-dir was given.
20092 if test ${with_xorg_conf_dir+y}
20093 then :
20094 withval=$with_xorg_conf_dir; configdir="$withval"
20095 else $as_nop
20096 configdir='${prefix}/share/X11/xorg.conf.d'
20097 fi
20098
20099
20100
20101 # Check whether --enable-udev was given.
20102 if test ${enable_udev+y}
20103 then :
20104 enableval=$enable_udev; enable_udev="$enableval"
20105 else $as_nop
20106 enable_udev=auto
20107 fi
20108
20109 if test "x$enable_udev" != "xno"; then
20110
20111 pkg_failed=no
20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5
20113 printf %s "checking for libudev... " >&6; }
20114
20115 if test -n "$LIBUDEV_CFLAGS"; then
20116 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
20117 elif test -n "$PKG_CONFIG"; then
20118 if test -n "$PKG_CONFIG" && \
20119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20120 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20121 ac_status=$?
20122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20123 test $ac_status = 0; }; then
20124 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
20125 test "x$?" != "x0" && pkg_failed=yes
20126 else
20127 pkg_failed=yes
20128 fi
20129 else
20130 pkg_failed=untried
20131 fi
20132 if test -n "$LIBUDEV_LIBS"; then
20133 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
20134 elif test -n "$PKG_CONFIG"; then
20135 if test -n "$PKG_CONFIG" && \
20136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20137 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20138 ac_status=$?
20139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20140 test $ac_status = 0; }; then
20141 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
20142 test "x$?" != "x0" && pkg_failed=yes
20143 else
20144 pkg_failed=yes
20145 fi
20146 else
20147 pkg_failed=untried
20148 fi
20149
20150
20151
20152 if test $pkg_failed = yes; then
20153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20154 printf "%s\n" "no" >&6; }
20155
20156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20157 _pkg_short_errors_supported=yes
20158 else
20159 _pkg_short_errors_supported=no
20160 fi
20161 if test $_pkg_short_errors_supported = yes; then
20162 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
20163 else
20164 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
20165 fi
20166 # Put the nasty error message in config.log where it belongs
20167 echo "$LIBUDEV_PKG_ERRORS" >&5
20168
20169 LIBUDEV=no
20170 elif test $pkg_failed = untried; then
20171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20172 printf "%s\n" "no" >&6; }
20173 LIBUDEV=no
20174 else
20175 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
20176 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20178 printf "%s\n" "yes" >&6; }
20179 LIBUDEV=yes
20180 fi
20181 if test "x$LIBUDEV" = xyes; then
20182
20183 printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h
20184
20185 elif test "x$enable_udev" != "xauto"; then
20186 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
20187 fi
20188 fi
20189 if test x$LIBUDEV = xyes; then
20190 LIBUDEV_TRUE=
20191 LIBUDEV_FALSE='#'
20192 else
20193 LIBUDEV_TRUE='#'
20194 LIBUDEV_FALSE=
20195 fi
20196
20197
20198 SAVE_CPPFLAGS="$CPPFLAGS"
20199 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $GBM_CFLAGS"
20200
20201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
20202 printf %s "checking whether to include GLAMOR support... " >&6; }
20203 # Check whether --enable-glamor was given.
20204 if test ${enable_glamor+y}
20205 then :
20206 enableval=$enable_glamor; GLAMOR="$enableval"
20207 else $as_nop
20208 GLAMOR=yes
20209 fi
20210
20211
20212 if test "x$GLAMOR" != "xno"; then
20213 for ac_header in glamor.h
20214 do :
20215 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
20216 "
20217 if test "x$ac_cv_header_glamor_h" = xyes
20218 then :
20219 printf "%s\n" "#define HAVE_GLAMOR_H 1" >>confdefs.h
20220 GLAMOR_H="yes"
20221 else $as_nop
20222 GLAMOR_H="no"
20223 fi
20224
20225 done
20226
20227 if test "x$GLAMOR_H" = xyes; then
20228 ac_fn_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
20229 #include \"glamor.h\"
20230 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20231 if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes
20232 then :
20233 GLAMOR_XSERVER="yes"
20234 else $as_nop
20235 GLAMOR_XSERVER="no"
20236 fi
20237
20238 ac_fn_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
20239 #include \"glamor.h\"
20240 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20241 if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes
20242 then :
20243
20244 printf "%s\n" "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
20245
20246 fi
20247
20248 ac_fn_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
20249 #include \"glamor.h\"
20250 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20251 if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes
20252 then :
20253
20254 printf "%s\n" "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
20255
20256 fi
20257
20258 ac_fn_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\"
20259 #include \"glamor.h\"
20260 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20261 if test "x$ac_cv_have_decl_glamor_finish" = xyes
20262 then :
20263
20264 printf "%s\n" "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h
20265
20266 else $as_nop
20267
20268 pkg_failed=no
20269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gl" >&5
20270 printf %s "checking for gl... " >&6; }
20271
20272 if test -n "$LIBGL_CFLAGS"; then
20273 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
20274 elif test -n "$PKG_CONFIG"; then
20275 if test -n "$PKG_CONFIG" && \
20276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
20277 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
20278 ac_status=$?
20279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20280 test $ac_status = 0; }; then
20281 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
20282 test "x$?" != "x0" && pkg_failed=yes
20283 else
20284 pkg_failed=yes
20285 fi
20286 else
20287 pkg_failed=untried
20288 fi
20289 if test -n "$LIBGL_LIBS"; then
20290 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
20291 elif test -n "$PKG_CONFIG"; then
20292 if test -n "$PKG_CONFIG" && \
20293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
20294 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
20295 ac_status=$?
20296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20297 test $ac_status = 0; }; then
20298 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
20299 test "x$?" != "x0" && pkg_failed=yes
20300 else
20301 pkg_failed=yes
20302 fi
20303 else
20304 pkg_failed=untried
20305 fi
20306
20307
20308
20309 if test $pkg_failed = yes; then
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20311 printf "%s\n" "no" >&6; }
20312
20313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20314 _pkg_short_errors_supported=yes
20315 else
20316 _pkg_short_errors_supported=no
20317 fi
20318 if test $_pkg_short_errors_supported = yes; then
20319 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
20320 else
20321 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
20322 fi
20323 # Put the nasty error message in config.log where it belongs
20324 echo "$LIBGL_PKG_ERRORS" >&5
20325
20326 as_fn_error $? "Package requirements (gl) were not met:
20327
20328 $LIBGL_PKG_ERRORS
20329
20330 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20331 installed software in a non-standard prefix.
20332
20333 Alternatively, you may set the environment variables LIBGL_CFLAGS
20334 and LIBGL_LIBS to avoid the need to call pkg-config.
20335 See the pkg-config man page for more details." "$LINENO" 5
20336 elif test $pkg_failed = untried; then
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338 printf "%s\n" "no" >&6; }
20339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20340 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20341 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20342 is in your PATH or set the PKG_CONFIG environment variable to the full
20343 path to pkg-config.
20344
20345 Alternatively, you may set the environment variables LIBGL_CFLAGS
20346 and LIBGL_LIBS to avoid the need to call pkg-config.
20347 See the pkg-config man page for more details.
20348
20349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20350 See \`config.log' for more details" "$LINENO" 5; }
20351 else
20352 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
20353 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20355 printf "%s\n" "yes" >&6; }
20356
20357 fi
20358 fi
20359 fi
20360
20361 if test "x$GLAMOR_XSERVER" != xyes; then
20362
20363 pkg_failed=no
20364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glamor >= 0.6.0" >&5
20365 printf %s "checking for glamor >= 0.6.0... " >&6; }
20366
20367 if test -n "$LIBGLAMOR_CFLAGS"; then
20368 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
20369 elif test -n "$PKG_CONFIG"; then
20370 if test -n "$PKG_CONFIG" && \
20371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20372 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20373 ac_status=$?
20374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20375 test $ac_status = 0; }; then
20376 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
20377 test "x$?" != "x0" && pkg_failed=yes
20378 else
20379 pkg_failed=yes
20380 fi
20381 else
20382 pkg_failed=untried
20383 fi
20384 if test -n "$LIBGLAMOR_LIBS"; then
20385 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
20386 elif test -n "$PKG_CONFIG"; then
20387 if test -n "$PKG_CONFIG" && \
20388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20389 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20390 ac_status=$?
20391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20392 test $ac_status = 0; }; then
20393 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
20394 test "x$?" != "x0" && pkg_failed=yes
20395 else
20396 pkg_failed=yes
20397 fi
20398 else
20399 pkg_failed=untried
20400 fi
20401
20402
20403
20404 if test $pkg_failed = yes; then
20405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20406 printf "%s\n" "no" >&6; }
20407
20408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20409 _pkg_short_errors_supported=yes
20410 else
20411 _pkg_short_errors_supported=no
20412 fi
20413 if test $_pkg_short_errors_supported = yes; then
20414 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20415 else
20416 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20417 fi
20418 # Put the nasty error message in config.log where it belongs
20419 echo "$LIBGLAMOR_PKG_ERRORS" >&5
20420
20421 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
20422
20423 $LIBGLAMOR_PKG_ERRORS
20424
20425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20426 installed software in a non-standard prefix.
20427
20428 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20429 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20430 See the pkg-config man page for more details." "$LINENO" 5
20431 elif test $pkg_failed = untried; then
20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 printf "%s\n" "no" >&6; }
20434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20435 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20436 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20437 is in your PATH or set the PKG_CONFIG environment variable to the full
20438 path to pkg-config.
20439
20440 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20441 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20442 See the pkg-config man page for more details.
20443
20444 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20445 See \`config.log' for more details" "$LINENO" 5; }
20446 else
20447 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
20448 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
20449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20450 printf "%s\n" "yes" >&6; }
20451
20452 fi
20453
20454 pkg_failed=no
20455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glamor-egl" >&5
20456 printf %s "checking for glamor-egl... " >&6; }
20457
20458 if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
20459 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
20460 elif test -n "$PKG_CONFIG"; then
20461 if test -n "$PKG_CONFIG" && \
20462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20463 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20464 ac_status=$?
20465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20466 test $ac_status = 0; }; then
20467 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
20468 test "x$?" != "x0" && pkg_failed=yes
20469 else
20470 pkg_failed=yes
20471 fi
20472 else
20473 pkg_failed=untried
20474 fi
20475 if test -n "$LIBGLAMOR_EGL_LIBS"; then
20476 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
20477 elif test -n "$PKG_CONFIG"; then
20478 if test -n "$PKG_CONFIG" && \
20479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20480 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20481 ac_status=$?
20482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20483 test $ac_status = 0; }; then
20484 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
20485 test "x$?" != "x0" && pkg_failed=yes
20486 else
20487 pkg_failed=yes
20488 fi
20489 else
20490 pkg_failed=untried
20491 fi
20492
20493
20494
20495 if test $pkg_failed = yes; then
20496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497 printf "%s\n" "no" >&6; }
20498
20499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20500 _pkg_short_errors_supported=yes
20501 else
20502 _pkg_short_errors_supported=no
20503 fi
20504 if test $_pkg_short_errors_supported = yes; then
20505 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
20506 else
20507 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
20508 fi
20509 # Put the nasty error message in config.log where it belongs
20510 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
20511
20512 as_fn_error $? "Package requirements (glamor-egl) were not met:
20513
20514 $LIBGLAMOR_EGL_PKG_ERRORS
20515
20516 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20517 installed software in a non-standard prefix.
20518
20519 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20520 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20521 See the pkg-config man page for more details." "$LINENO" 5
20522 elif test $pkg_failed = untried; then
20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20524 printf "%s\n" "no" >&6; }
20525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20526 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20527 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20528 is in your PATH or set the PKG_CONFIG environment variable to the full
20529 path to pkg-config.
20530
20531 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20532 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20533 See the pkg-config man page for more details.
20534
20535 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20536 See \`config.log' for more details" "$LINENO" 5; }
20537 else
20538 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
20539 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20541 printf "%s\n" "yes" >&6; }
20542
20543 fi
20544 fi
20545
20546 printf "%s\n" "#define USE_GLAMOR 1" >>confdefs.h
20547
20548 else
20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
20550 printf "%s\n" "$GLAMOR" >&6; }
20551 fi
20552 if test x$GLAMOR != xno; then
20553 GLAMOR_TRUE=
20554 GLAMOR_FALSE='#'
20555 else
20556 GLAMOR_TRUE='#'
20557 GLAMOR_FALSE=
20558 fi
20559
20560
20561 ac_fn_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h>
20562 #include <regionstr.h>
20563 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20564 if test "x$ac_cv_have_decl_RegionDuplicate" = xyes
20565 then :
20566
20567 printf "%s\n" "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h
20568
20569 fi
20570
20571 ac_fn_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
20572 #include <X11/Xfuncproto.h>
20573 #include <X11/extensions/renderproto.h>
20574 #include <xorg-server.h>
20575 #include <picture.h>
20576 #include <glyphstr.h>
20577 #include <fbpict.h>
20578 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20579 if test "x$ac_cv_have_decl_fbGlyphs" = xyes
20580 then :
20581
20582 printf "%s\n" "#define HAVE_FBGLYPHS 1" >>confdefs.h
20583
20584 fi
20585
20586 ac_fn_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
20587 #include <xf86Cursor.h>
20588 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20589 if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes
20590 then :
20591
20592 printf "%s\n" "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
20593
20594 fi
20595
20596 ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
20597 #include <gbm.h>
20598 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20599 if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes
20600 then :
20601
20602 printf "%s\n" "#define HAVE_GBM_BO_USE_LINEAR 1" >>confdefs.h
20603
20604 fi
20605
20606 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
20607 #include <X11/Xfuncproto.h>
20608 #include <xorg-server.h>
20609 #include <screenint.h>
20610 "
20611 if test "x$ac_cv_header_misyncshm_h" = xyes
20612 then :
20613 printf "%s\n" "#define HAVE_MISYNCSHM_H 1" >>confdefs.h
20614
20615 fi
20616
20617
20618 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
20619 #include <X11/Xproto.h>
20620 #include \"xorg-server.h\"
20621 #include <X11/X.h>
20622 "
20623 if test "x$ac_cv_header_present_h" = xyes
20624 then :
20625 printf "%s\n" "#define HAVE_PRESENT_H 1" >>confdefs.h
20626
20627 fi
20628
20629
20630 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
20631 #include <xorg-server.h>
20632 "
20633 if test "x$ac_cv_header_dri3_h" = xyes
20634 then :
20635 printf "%s\n" "#define HAVE_DRI3_H 1" >>confdefs.h
20636
20637 fi
20638
20639
20640 CPPFLAGS="$SAVE_CPPFLAGS"
20641
20642 # Checks for headers/macros for byte swapping
20643 # Known variants:
20644 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
20645 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
20646 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
20647 # and a fallback to local macros if none of the above are found
20648
20649 # if <byteswap.h> is found, assume it's the correct version
20650 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
20651 if test "x$ac_cv_header_byteswap_h" = xyes
20652 then :
20653 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
20654
20655 fi
20656
20657
20658 # if <sys/endian.h> is found, have to check which version
20659 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
20660 if test "x$ac_cv_header_sys_endian_h" = xyes
20661 then :
20662 HAVE_SYS_ENDIAN_H="yes"
20663 else $as_nop
20664 HAVE_SYS_ENDIAN_H="no"
20665 fi
20666
20667
20668 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
20670 printf %s "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h. */
20673
20674 #include <sys/types.h>
20675 #include <sys/endian.h>
20676
20677 int
20678 main (void)
20679 {
20680
20681 int a = 1, b;
20682 b = __swap16(a);
20683
20684 ;
20685 return 0;
20686 }
20687
20688 _ACEOF
20689 if ac_fn_c_try_link "$LINENO"
20690 then :
20691 SYS_ENDIAN__SWAP='yes'
20692 else $as_nop
20693 SYS_ENDIAN__SWAP='no'
20694 fi
20695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20696 conftest$ac_exeext conftest.$ac_ext
20697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
20698 printf "%s\n" "$SYS_ENDIAN__SWAP" >&6; }
20699
20700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
20701 printf %s "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h. */
20704
20705 #include <sys/types.h>
20706 #include <sys/endian.h>
20707
20708 int
20709 main (void)
20710 {
20711
20712 int a = 1, b;
20713 b = bswap16(a);
20714
20715 ;
20716 return 0;
20717 }
20718
20719 _ACEOF
20720 if ac_fn_c_try_link "$LINENO"
20721 then :
20722 SYS_ENDIAN_BSWAP='yes'
20723 else $as_nop
20724 SYS_ENDIAN_BSWAP='no'
20725 fi
20726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20727 conftest$ac_exeext conftest.$ac_ext
20728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
20729 printf "%s\n" "$SYS_ENDIAN_BSWAP" >&6; }
20730
20731 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
20732 USE_SYS_ENDIAN_H=yes
20733 BSWAP=bswap
20734 else
20735 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
20736 USE_SYS_ENDIAN_H=yes
20737 BSWAP=__swap
20738 else
20739 USE_SYS_ENDIAN_H=no
20740 fi
20741 fi
20742
20743 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
20744
20745 printf "%s\n" "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
20746
20747
20748 printf "%s\n" "#define bswap_16 ${BSWAP}16" >>confdefs.h
20749
20750
20751 printf "%s\n" "#define bswap_32 ${BSWAP}32" >>confdefs.h
20752
20753
20754 printf "%s\n" "#define bswap_64 ${BSWAP}64" >>confdefs.h
20755
20756 fi
20757 fi
20758
20759
20760
20761 DRIVER_NAME=amdgpu
20762
20763
20764 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
20765
20766 cat >confcache <<\_ACEOF
20767 # This file is a shell script that caches the results of configure
20768 # tests run on this system so they can be shared between configure
20769 # scripts and configure runs, see configure's option --config-cache.
20770 # It is not useful on other systems. If it contains results you don't
20771 # want to keep, you may remove or edit it.
20772 #
20773 # config.status only pays attention to the cache file if you give it
20774 # the --recheck option to rerun configure.
20775 #
20776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20778 # following values.
20779
20780 _ACEOF
20781
20782 # The following way of writing the cache mishandles newlines in values,
20783 # but we know of no workaround that is simple, portable, and efficient.
20784 # So, we kill variables containing newlines.
20785 # Ultrix sh set writes to stderr and can't be redirected directly,
20786 # and sets the high bit in the cache file unless we assign to the vars.
20787 (
20788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20789 eval ac_val=\$$ac_var
20790 case $ac_val in #(
20791 *${as_nl}*)
20792 case $ac_var in #(
20793 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20794 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20795 esac
20796 case $ac_var in #(
20797 _ | IFS | as_nl) ;; #(
20798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20799 *) { eval $ac_var=; unset $ac_var;} ;;
20800 esac ;;
20801 esac
20802 done
20803
20804 (set) 2>&1 |
20805 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20806 *${as_nl}ac_space=\ *)
20807 # `set' does not quote correctly, so add quotes: double-quote
20808 # substitution turns \\\\ into \\, and sed turns \\ into \.
20809 sed -n \
20810 "s/'/'\\\\''/g;
20811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20812 ;; #(
20813 *)
20814 # `set' quotes correctly as required by POSIX, so do not add quotes.
20815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20816 ;;
20817 esac |
20818 sort
20819 ) |
20820 sed '
20821 /^ac_cv_env_/b end
20822 t clear
20823 :clear
20824 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20825 t end
20826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20827 :end' >>confcache
20828 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20829 if test -w "$cache_file"; then
20830 if test "x$cache_file" != "x/dev/null"; then
20831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20832 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20833 if test ! -f "$cache_file" || test -h "$cache_file"; then
20834 cat confcache >"$cache_file"
20835 else
20836 case $cache_file in #(
20837 */* | ?:*)
20838 mv -f confcache "$cache_file"$$ &&
20839 mv -f "$cache_file"$$ "$cache_file" ;; #(
20840 *)
20841 mv -f confcache "$cache_file" ;;
20842 esac
20843 fi
20844 fi
20845 else
20846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20847 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20848 fi
20849 fi
20850 rm -f confcache
20851
20852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20853 # Let make expand exec_prefix.
20854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20855
20856 DEFS=-DHAVE_CONFIG_H
20857
20858 ac_libobjs=
20859 ac_ltlibobjs=
20860 U=
20861 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20862 # 1. Remove the extension, and $U if already installed.
20863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20864 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20866 # will be set to the directory where LIBOBJS objects are built.
20867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20869 done
20870 LIBOBJS=$ac_libobjs
20871
20872 LTLIBOBJS=$ac_ltlibobjs
20873
20874
20875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20876 printf %s "checking that generated files are newer than configure... " >&6; }
20877 if test -n "$am_sleep_pid"; then
20878 # Hide warnings about reused PIDs.
20879 wait $am_sleep_pid 2>/dev/null
20880 fi
20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20882 printf "%s\n" "done" >&6; }
20883 if test -n "$EXEEXT"; then
20884 am__EXEEXT_TRUE=
20885 am__EXEEXT_FALSE='#'
20886 else
20887 am__EXEEXT_TRUE='#'
20888 am__EXEEXT_FALSE=
20889 fi
20890
20891 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20892 as_fn_error $? "conditional \"AMDEP\" was never defined.
20893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20894 fi
20895 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20896 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20898 fi
20899 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20900 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20902 fi
20903 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
20904 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
20905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20906 fi
20907 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20908 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20910 fi
20911 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20912 as_fn_error $? "conditional \"GLAMOR\" was never defined.
20913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20914 fi
20915
20916 : "${CONFIG_STATUS=./config.status}"
20917 ac_write_fail=0
20918 ac_clean_files_save=$ac_clean_files
20919 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20921 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20922 as_write_fail=0
20923 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20924 #! $SHELL
20925 # Generated by $as_me.
20926 # Run this file to recreate the current configuration.
20927 # Compiler output produced by configure, useful for debugging
20928 # configure, is in config.log if it exists.
20929
20930 debug=false
20931 ac_cs_recheck=false
20932 ac_cs_silent=false
20933
20934 SHELL=\${CONFIG_SHELL-$SHELL}
20935 export SHELL
20936 _ASEOF
20937 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20938 ## -------------------- ##
20939 ## M4sh Initialization. ##
20940 ## -------------------- ##
20941
20942 # Be more Bourne compatible
20943 DUALCASE=1; export DUALCASE # for MKS sh
20944 as_nop=:
20945 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20946 then :
20947 emulate sh
20948 NULLCMD=:
20949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20950 # is contrary to our usage. Disable this feature.
20951 alias -g '${1+"$@"}'='"$@"'
20952 setopt NO_GLOB_SUBST
20953 else $as_nop
20954 case `(set -o) 2>/dev/null` in #(
20955 *posix*) :
20956 set -o posix ;; #(
20957 *) :
20958 ;;
20959 esac
20960 fi
20961
20962
20963
20964 # Reset variables that may have inherited troublesome values from
20965 # the environment.
20966
20967 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20968 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20969 # side effect of setting IFS to empty, thus disabling word splitting.)
20970 # Quoting is to prevent editors from complaining about space-tab.
20971 as_nl='
20972 '
20973 export as_nl
20974 IFS=" "" $as_nl"
20975
20976 PS1='$ '
20977 PS2='> '
20978 PS4='+ '
20979
20980 # Ensure predictable behavior from utilities with locale-dependent output.
20981 LC_ALL=C
20982 export LC_ALL
20983 LANGUAGE=C
20984 export LANGUAGE
20985
20986 # We cannot yet rely on "unset" to work, but we need these variables
20987 # to be unset--not just set to an empty or harmless value--now, to
20988 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20989 # also avoids known problems related to "unset" and subshell syntax
20990 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20991 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20992 do eval test \${$as_var+y} \
20993 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20994 done
20995
20996 # Ensure that fds 0, 1, and 2 are open.
20997 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20998 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20999 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21000
21001 # The user is always right.
21002 if ${PATH_SEPARATOR+false} :; then
21003 PATH_SEPARATOR=:
21004 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21005 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21006 PATH_SEPARATOR=';'
21007 }
21008 fi
21009
21010
21011 # Find who we are. Look in the path if we contain no directory separator.
21012 as_myself=
21013 case $0 in #((
21014 *[\\/]* ) as_myself=$0 ;;
21015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21016 for as_dir in $PATH
21017 do
21018 IFS=$as_save_IFS
21019 case $as_dir in #(((
21020 '') as_dir=./ ;;
21021 */) ;;
21022 *) as_dir=$as_dir/ ;;
21023 esac
21024 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21025 done
21026 IFS=$as_save_IFS
21027
21028 ;;
21029 esac
21030 # We did not find ourselves, most probably we were run as `sh COMMAND'
21031 # in which case we are not to be found in the path.
21032 if test "x$as_myself" = x; then
21033 as_myself=$0
21034 fi
21035 if test ! -f "$as_myself"; then
21036 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21037 exit 1
21038 fi
21039
21040
21041
21042 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21043 # ----------------------------------------
21044 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21045 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21046 # script with STATUS, using 1 if that was 0.
21047 as_fn_error ()
21048 {
21049 as_status=$1; test $as_status -eq 0 && as_status=1
21050 if test "$4"; then
21051 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21053 fi
21054 printf "%s\n" "$as_me: error: $2" >&2
21055 as_fn_exit $as_status
21056 } # as_fn_error
21057
21058
21059
21060 # as_fn_set_status STATUS
21061 # -----------------------
21062 # Set $? to STATUS, without forking.
21063 as_fn_set_status ()
21064 {
21065 return $1
21066 } # as_fn_set_status
21067
21068 # as_fn_exit STATUS
21069 # -----------------
21070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21071 as_fn_exit ()
21072 {
21073 set +e
21074 as_fn_set_status $1
21075 exit $1
21076 } # as_fn_exit
21077
21078 # as_fn_unset VAR
21079 # ---------------
21080 # Portably unset VAR.
21081 as_fn_unset ()
21082 {
21083 { eval $1=; unset $1;}
21084 }
21085 as_unset=as_fn_unset
21086
21087 # as_fn_append VAR VALUE
21088 # ----------------------
21089 # Append the text in VALUE to the end of the definition contained in VAR. Take
21090 # advantage of any shell optimizations that allow amortized linear growth over
21091 # repeated appends, instead of the typical quadratic growth present in naive
21092 # implementations.
21093 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21094 then :
21095 eval 'as_fn_append ()
21096 {
21097 eval $1+=\$2
21098 }'
21099 else $as_nop
21100 as_fn_append ()
21101 {
21102 eval $1=\$$1\$2
21103 }
21104 fi # as_fn_append
21105
21106 # as_fn_arith ARG...
21107 # ------------------
21108 # Perform arithmetic evaluation on the ARGs, and store the result in the
21109 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21110 # must be portable across $(()) and expr.
21111 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21112 then :
21113 eval 'as_fn_arith ()
21114 {
21115 as_val=$(( $* ))
21116 }'
21117 else $as_nop
21118 as_fn_arith ()
21119 {
21120 as_val=`expr "$@" || test $? -eq 1`
21121 }
21122 fi # as_fn_arith
21123
21124
21125 if expr a : '\(a\)' >/dev/null 2>&1 &&
21126 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21127 as_expr=expr
21128 else
21129 as_expr=false
21130 fi
21131
21132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21133 as_basename=basename
21134 else
21135 as_basename=false
21136 fi
21137
21138 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21139 as_dirname=dirname
21140 else
21141 as_dirname=false
21142 fi
21143
21144 as_me=`$as_basename -- "$0" ||
21145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21146 X"$0" : 'X\(//\)$' \| \
21147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21148 printf "%s\n" X/"$0" |
21149 sed '/^.*\/\([^/][^/]*\)\/*$/{
21150 s//\1/
21151 q
21152 }
21153 /^X\/\(\/\/\)$/{
21154 s//\1/
21155 q
21156 }
21157 /^X\/\(\/\).*/{
21158 s//\1/
21159 q
21160 }
21161 s/.*/./; q'`
21162
21163 # Avoid depending upon Character Ranges.
21164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21167 as_cr_digits='0123456789'
21168 as_cr_alnum=$as_cr_Letters$as_cr_digits
21169
21170
21171 # Determine whether it's possible to make 'echo' print without a newline.
21172 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21173 # for compatibility with existing Makefiles.
21174 ECHO_C= ECHO_N= ECHO_T=
21175 case `echo -n x` in #(((((
21176 -n*)
21177 case `echo 'xy\c'` in
21178 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21179 xy) ECHO_C='\c';;
21180 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21181 ECHO_T=' ';;
21182 esac;;
21183 *)
21184 ECHO_N='-n';;
21185 esac
21186
21187 # For backward compatibility with old third-party macros, we provide
21188 # the shell variables $as_echo and $as_echo_n. New code should use
21189 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21190 as_echo='printf %s\n'
21191 as_echo_n='printf %s'
21192
21193 rm -f conf$$ conf$$.exe conf$$.file
21194 if test -d conf$$.dir; then
21195 rm -f conf$$.dir/conf$$.file
21196 else
21197 rm -f conf$$.dir
21198 mkdir conf$$.dir 2>/dev/null
21199 fi
21200 if (echo >conf$$.file) 2>/dev/null; then
21201 if ln -s conf$$.file conf$$ 2>/dev/null; then
21202 as_ln_s='ln -s'
21203 # ... but there are two gotchas:
21204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21206 # In both cases, we have to default to `cp -pR'.
21207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21208 as_ln_s='cp -pR'
21209 elif ln conf$$.file conf$$ 2>/dev/null; then
21210 as_ln_s=ln
21211 else
21212 as_ln_s='cp -pR'
21213 fi
21214 else
21215 as_ln_s='cp -pR'
21216 fi
21217 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21218 rmdir conf$$.dir 2>/dev/null
21219
21220
21221 # as_fn_mkdir_p
21222 # -------------
21223 # Create "$as_dir" as a directory, including parents if necessary.
21224 as_fn_mkdir_p ()
21225 {
21226
21227 case $as_dir in #(
21228 -*) as_dir=./$as_dir;;
21229 esac
21230 test -d "$as_dir" || eval $as_mkdir_p || {
21231 as_dirs=
21232 while :; do
21233 case $as_dir in #(
21234 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21235 *) as_qdir=$as_dir;;
21236 esac
21237 as_dirs="'$as_qdir' $as_dirs"
21238 as_dir=`$as_dirname -- "$as_dir" ||
21239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21240 X"$as_dir" : 'X\(//\)[^/]' \| \
21241 X"$as_dir" : 'X\(//\)$' \| \
21242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21243 printf "%s\n" X"$as_dir" |
21244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21245 s//\1/
21246 q
21247 }
21248 /^X\(\/\/\)[^/].*/{
21249 s//\1/
21250 q
21251 }
21252 /^X\(\/\/\)$/{
21253 s//\1/
21254 q
21255 }
21256 /^X\(\/\).*/{
21257 s//\1/
21258 q
21259 }
21260 s/.*/./; q'`
21261 test -d "$as_dir" && break
21262 done
21263 test -z "$as_dirs" || eval "mkdir $as_dirs"
21264 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21265
21266
21267 } # as_fn_mkdir_p
21268 if mkdir -p . 2>/dev/null; then
21269 as_mkdir_p='mkdir -p "$as_dir"'
21270 else
21271 test -d ./-p && rmdir ./-p
21272 as_mkdir_p=false
21273 fi
21274
21275
21276 # as_fn_executable_p FILE
21277 # -----------------------
21278 # Test if FILE is an executable regular file.
21279 as_fn_executable_p ()
21280 {
21281 test -f "$1" && test -x "$1"
21282 } # as_fn_executable_p
21283 as_test_x='test -x'
21284 as_executable_p=as_fn_executable_p
21285
21286 # Sed expression to map a string onto a valid CPP name.
21287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21288
21289 # Sed expression to map a string onto a valid variable name.
21290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21291
21292
21293 exec 6>&1
21294 ## ----------------------------------- ##
21295 ## Main body of $CONFIG_STATUS script. ##
21296 ## ----------------------------------- ##
21297 _ASEOF
21298 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21299
21300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21301 # Save the log message, to keep $0 and so on meaningful, and to
21302 # report actual input values of CONFIG_FILES etc. instead of their
21303 # values after options handling.
21304 ac_log="
21305 This file was extended by xf86-video-amdgpu $as_me 23.0.0, which was
21306 generated by GNU Autoconf 2.71. Invocation command line was
21307
21308 CONFIG_FILES = $CONFIG_FILES
21309 CONFIG_HEADERS = $CONFIG_HEADERS
21310 CONFIG_LINKS = $CONFIG_LINKS
21311 CONFIG_COMMANDS = $CONFIG_COMMANDS
21312 $ $0 $@
21313
21314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21315 "
21316
21317 _ACEOF
21318
21319 case $ac_config_files in *"
21320 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21321 esac
21322
21323 case $ac_config_headers in *"
21324 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21325 esac
21326
21327
21328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21329 # Files that config.status was made for.
21330 config_files="$ac_config_files"
21331 config_headers="$ac_config_headers"
21332 config_commands="$ac_config_commands"
21333
21334 _ACEOF
21335
21336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21337 ac_cs_usage="\
21338 \`$as_me' instantiates files and other configuration actions
21339 from templates according to the current configuration. Unless the files
21340 and actions are specified as TAGs, all are instantiated by default.
21341
21342 Usage: $0 [OPTION]... [TAG]...
21343
21344 -h, --help print this help, then exit
21345 -V, --version print version number and configuration settings, then exit
21346 --config print configuration, then exit
21347 -q, --quiet, --silent
21348 do not print progress messages
21349 -d, --debug don't remove temporary files
21350 --recheck update $as_me by reconfiguring in the same conditions
21351 --file=FILE[:TEMPLATE]
21352 instantiate the configuration file FILE
21353 --header=FILE[:TEMPLATE]
21354 instantiate the configuration header FILE
21355
21356 Configuration files:
21357 $config_files
21358
21359 Configuration headers:
21360 $config_headers
21361
21362 Configuration commands:
21363 $config_commands
21364
21365 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues>."
21366
21367 _ACEOF
21368 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21369 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21371 ac_cs_config='$ac_cs_config_escaped'
21372 ac_cs_version="\\
21373 xf86-video-amdgpu config.status 23.0.0
21374 configured by $0, generated by GNU Autoconf 2.71,
21375 with options \\"\$ac_cs_config\\"
21376
21377 Copyright (C) 2021 Free Software Foundation, Inc.
21378 This config.status script is free software; the Free Software Foundation
21379 gives unlimited permission to copy, distribute and modify it."
21380
21381 ac_pwd='$ac_pwd'
21382 srcdir='$srcdir'
21383 INSTALL='$INSTALL'
21384 MKDIR_P='$MKDIR_P'
21385 AWK='$AWK'
21386 test -n "\$AWK" || AWK=awk
21387 _ACEOF
21388
21389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21390 # The default lists apply if the user does not specify any file.
21391 ac_need_defaults=:
21392 while test $# != 0
21393 do
21394 case $1 in
21395 --*=?*)
21396 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21397 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21398 ac_shift=:
21399 ;;
21400 --*=)
21401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21402 ac_optarg=
21403 ac_shift=:
21404 ;;
21405 *)
21406 ac_option=$1
21407 ac_optarg=$2
21408 ac_shift=shift
21409 ;;
21410 esac
21411
21412 case $ac_option in
21413 # Handling of the options.
21414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21415 ac_cs_recheck=: ;;
21416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21417 printf "%s\n" "$ac_cs_version"; exit ;;
21418 --config | --confi | --conf | --con | --co | --c )
21419 printf "%s\n" "$ac_cs_config"; exit ;;
21420 --debug | --debu | --deb | --de | --d | -d )
21421 debug=: ;;
21422 --file | --fil | --fi | --f )
21423 $ac_shift
21424 case $ac_optarg in
21425 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21426 '') as_fn_error $? "missing file argument" ;;
21427 esac
21428 as_fn_append CONFIG_FILES " '$ac_optarg'"
21429 ac_need_defaults=false;;
21430 --header | --heade | --head | --hea )
21431 $ac_shift
21432 case $ac_optarg in
21433 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21434 esac
21435 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21436 ac_need_defaults=false;;
21437 --he | --h)
21438 # Conflict between --help and --header
21439 as_fn_error $? "ambiguous option: \`$1'
21440 Try \`$0 --help' for more information.";;
21441 --help | --hel | -h )
21442 printf "%s\n" "$ac_cs_usage"; exit ;;
21443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21445 ac_cs_silent=: ;;
21446
21447 # This is an error.
21448 -*) as_fn_error $? "unrecognized option: \`$1'
21449 Try \`$0 --help' for more information." ;;
21450
21451 *) as_fn_append ac_config_targets " $1"
21452 ac_need_defaults=false ;;
21453
21454 esac
21455 shift
21456 done
21457
21458 ac_configure_extra_args=
21459
21460 if $ac_cs_silent; then
21461 exec 6>/dev/null
21462 ac_configure_extra_args="$ac_configure_extra_args --silent"
21463 fi
21464
21465 _ACEOF
21466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21467 if \$ac_cs_recheck; then
21468 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21469 shift
21470 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21471 CONFIG_SHELL='$SHELL'
21472 export CONFIG_SHELL
21473 exec "\$@"
21474 fi
21475
21476 _ACEOF
21477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21478 exec 5>>config.log
21479 {
21480 echo
21481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21482 ## Running $as_me. ##
21483 _ASBOX
21484 printf "%s\n" "$ac_log"
21485 } >&5
21486
21487 _ACEOF
21488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21489 #
21490 # INIT-COMMANDS
21491 #
21492 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21493
21494
21495 # The HP-UX ksh and POSIX shell print the target directory to stdout
21496 # if CDPATH is set.
21497 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21498
21499 sed_quote_subst='$sed_quote_subst'
21500 double_quote_subst='$double_quote_subst'
21501 delay_variable_subst='$delay_variable_subst'
21502 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21503 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21504 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21505 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21506 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21507 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21508 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21509 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21510 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21511 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21512 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21513 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21514 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21515 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21516 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21517 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21518 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21519 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21520 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21521 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21522 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21523 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21524 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21525 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21526 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21527 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21528 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21529 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21530 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21531 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21532 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21533 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21534 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21535 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21536 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21537 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21538 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21539 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21540 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21541 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21542 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21543 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21544 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21545 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21546 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21547 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21548 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21549 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21550 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21551 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21552 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21553 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21554 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21555 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21556 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21557 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21558 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21559 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21560 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"`'
21561 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21562 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21563 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21564 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21565 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21566 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21567 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21568 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21569 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21570 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21571 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21572 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21573 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21574 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21575 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21576 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21577 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21578 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21579 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21580 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21581 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21582 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21583 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21584 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21585 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21586 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21587 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21588 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21589 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21590 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21591 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21592 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21593 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21594 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21595 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21596 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21597 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21598 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21599 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21600 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21601 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21602 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21603 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21604 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21605 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21606 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21607 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21608 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21609 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21610 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21611 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21612 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21613 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21614 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21615 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21616 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21617 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21618 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21619 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21620 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21621 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21622 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21623 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21624 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21625 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21626 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21627 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21628 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21629 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21630 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21631 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21632 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21633 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21634 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21635 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21636 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21637
21638 LTCC='$LTCC'
21639 LTCFLAGS='$LTCFLAGS'
21640 compiler='$compiler_DEFAULT'
21641
21642 # A function that is used when there is no print builtin or printf.
21643 func_fallback_echo ()
21644 {
21645 eval 'cat <<_LTECHO_EOF
21646 \$1
21647 _LTECHO_EOF'
21648 }
21649
21650 # Quote evaled strings.
21651 for var in SHELL \
21652 ECHO \
21653 PATH_SEPARATOR \
21654 SED \
21655 GREP \
21656 EGREP \
21657 FGREP \
21658 LD \
21659 NM \
21660 LN_S \
21661 lt_SP2NL \
21662 lt_NL2SP \
21663 reload_flag \
21664 OBJDUMP \
21665 deplibs_check_method \
21666 file_magic_cmd \
21667 file_magic_glob \
21668 want_nocaseglob \
21669 DLLTOOL \
21670 sharedlib_from_linklib_cmd \
21671 AR \
21672 AR_FLAGS \
21673 archiver_list_spec \
21674 STRIP \
21675 RANLIB \
21676 CC \
21677 CFLAGS \
21678 compiler \
21679 lt_cv_sys_global_symbol_pipe \
21680 lt_cv_sys_global_symbol_to_cdecl \
21681 lt_cv_sys_global_symbol_to_import \
21682 lt_cv_sys_global_symbol_to_c_name_address \
21683 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21684 lt_cv_nm_interface \
21685 nm_file_list_spec \
21686 lt_cv_truncate_bin \
21687 lt_prog_compiler_no_builtin_flag \
21688 lt_prog_compiler_pic \
21689 lt_prog_compiler_wl \
21690 lt_prog_compiler_static \
21691 lt_cv_prog_compiler_c_o \
21692 need_locks \
21693 MANIFEST_TOOL \
21694 DSYMUTIL \
21695 NMEDIT \
21696 LIPO \
21697 OTOOL \
21698 OTOOL64 \
21699 shrext_cmds \
21700 export_dynamic_flag_spec \
21701 whole_archive_flag_spec \
21702 compiler_needs_object \
21703 with_gnu_ld \
21704 allow_undefined_flag \
21705 no_undefined_flag \
21706 hardcode_libdir_flag_spec \
21707 hardcode_libdir_separator \
21708 exclude_expsyms \
21709 include_expsyms \
21710 file_list_spec \
21711 variables_saved_for_relink \
21712 libname_spec \
21713 library_names_spec \
21714 soname_spec \
21715 install_override_mode \
21716 finish_eval \
21717 old_striplib \
21718 striplib; do
21719 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21720 *[\\\\\\\`\\"\\\$]*)
21721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21722 ;;
21723 *)
21724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21725 ;;
21726 esac
21727 done
21728
21729 # Double-quote double-evaled strings.
21730 for var in reload_cmds \
21731 old_postinstall_cmds \
21732 old_postuninstall_cmds \
21733 old_archive_cmds \
21734 extract_expsyms_cmds \
21735 old_archive_from_new_cmds \
21736 old_archive_from_expsyms_cmds \
21737 archive_cmds \
21738 archive_expsym_cmds \
21739 module_cmds \
21740 module_expsym_cmds \
21741 export_symbols_cmds \
21742 prelink_cmds \
21743 postlink_cmds \
21744 postinstall_cmds \
21745 postuninstall_cmds \
21746 finish_cmds \
21747 sys_lib_search_path_spec \
21748 configure_time_dlsearch_path \
21749 configure_time_lt_sys_library_path; do
21750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21751 *[\\\\\\\`\\"\\\$]*)
21752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21753 ;;
21754 *)
21755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21756 ;;
21757 esac
21758 done
21759
21760 ac_aux_dir='$ac_aux_dir'
21761
21762 # See if we are running on zsh, and set the options that allow our
21763 # commands through without removal of \ escapes INIT.
21764 if test -n "\${ZSH_VERSION+set}"; then
21765 setopt NO_GLOB_SUBST
21766 fi
21767
21768
21769 PACKAGE='$PACKAGE'
21770 VERSION='$VERSION'
21771 RM='$RM'
21772 ofile='$ofile'
21773
21774
21775
21776
21777 _ACEOF
21778
21779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21780
21781 # Handling of arguments.
21782 for ac_config_target in $ac_config_targets
21783 do
21784 case $ac_config_target in
21785 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21786 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21787 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21788 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21789 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21790 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21791 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
21792
21793 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21794 esac
21795 done
21796
21797
21798 # If the user did not use the arguments to specify the items to instantiate,
21799 # then the envvar interface is used. Set only those that are not.
21800 # We use the long form for the default assignment because of an extremely
21801 # bizarre bug on SunOS 4.1.3.
21802 if $ac_need_defaults; then
21803 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21804 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21805 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21806 fi
21807
21808 # Have a temporary directory for convenience. Make it in the build tree
21809 # simply because there is no reason against having it here, and in addition,
21810 # creating and moving files from /tmp can sometimes cause problems.
21811 # Hook for its removal unless debugging.
21812 # Note that there is a small window in which the directory will not be cleaned:
21813 # after its creation but before its name has been assigned to `$tmp'.
21814 $debug ||
21815 {
21816 tmp= ac_tmp=
21817 trap 'exit_status=$?
21818 : "${ac_tmp:=$tmp}"
21819 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21820 ' 0
21821 trap 'as_fn_exit 1' 1 2 13 15
21822 }
21823 # Create a (secure) tmp directory for tmp files.
21824
21825 {
21826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21827 test -d "$tmp"
21828 } ||
21829 {
21830 tmp=./conf$$-$RANDOM
21831 (umask 077 && mkdir "$tmp")
21832 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21833 ac_tmp=$tmp
21834
21835 # Set up the scripts for CONFIG_FILES section.
21836 # No need to generate them if there are no CONFIG_FILES.
21837 # This happens for instance with `./config.status config.h'.
21838 if test -n "$CONFIG_FILES"; then
21839
21840
21841 ac_cr=`echo X | tr X '\015'`
21842 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21843 # But we know of no other shell where ac_cr would be empty at this
21844 # point, so we can use a bashism as a fallback.
21845 if test "x$ac_cr" = x; then
21846 eval ac_cr=\$\'\\r\'
21847 fi
21848 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21849 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21850 ac_cs_awk_cr='\\r'
21851 else
21852 ac_cs_awk_cr=$ac_cr
21853 fi
21854
21855 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21856 _ACEOF
21857
21858
21859 {
21860 echo "cat >conf$$subs.awk <<_ACEOF" &&
21861 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21862 echo "_ACEOF"
21863 } >conf$$subs.sh ||
21864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21865 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21866 ac_delim='%!_!# '
21867 for ac_last_try in false false false false false :; do
21868 . ./conf$$subs.sh ||
21869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21870
21871 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21872 if test $ac_delim_n = $ac_delim_num; then
21873 break
21874 elif $ac_last_try; then
21875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21876 else
21877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21878 fi
21879 done
21880 rm -f conf$$subs.sh
21881
21882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21883 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21884 _ACEOF
21885 sed -n '
21886 h
21887 s/^/S["/; s/!.*/"]=/
21888 p
21889 g
21890 s/^[^!]*!//
21891 :repl
21892 t repl
21893 s/'"$ac_delim"'$//
21894 t delim
21895 :nl
21896 h
21897 s/\(.\{148\}\)..*/\1/
21898 t more1
21899 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21900 p
21901 n
21902 b repl
21903 :more1
21904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21905 p
21906 g
21907 s/.\{148\}//
21908 t nl
21909 :delim
21910 h
21911 s/\(.\{148\}\)..*/\1/
21912 t more2
21913 s/["\\]/\\&/g; s/^/"/; s/$/"/
21914 p
21915 b
21916 :more2
21917 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21918 p
21919 g
21920 s/.\{148\}//
21921 t delim
21922 ' <conf$$subs.awk | sed '
21923 /^[^""]/{
21924 N
21925 s/\n//
21926 }
21927 ' >>$CONFIG_STATUS || ac_write_fail=1
21928 rm -f conf$$subs.awk
21929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21930 _ACAWK
21931 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21932 for (key in S) S_is_set[key] = 1
21933 FS = ""
21934
21935 }
21936 {
21937 line = $ 0
21938 nfields = split(line, field, "@")
21939 substed = 0
21940 len = length(field[1])
21941 for (i = 2; i < nfields; i++) {
21942 key = field[i]
21943 keylen = length(key)
21944 if (S_is_set[key]) {
21945 value = S[key]
21946 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21947 len += length(value) + length(field[++i])
21948 substed = 1
21949 } else
21950 len += 1 + keylen
21951 }
21952
21953 print line
21954 }
21955
21956 _ACAWK
21957 _ACEOF
21958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21959 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21961 else
21962 cat
21963 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21964 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21965 _ACEOF
21966
21967 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21968 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21969 # trailing colons and then remove the whole line if VPATH becomes empty
21970 # (actually we leave an empty line to preserve line numbers).
21971 if test "x$srcdir" = x.; then
21972 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21973 h
21974 s///
21975 s/^/:/
21976 s/[ ]*$/:/
21977 s/:\$(srcdir):/:/g
21978 s/:\${srcdir}:/:/g
21979 s/:@srcdir@:/:/g
21980 s/^:*//
21981 s/:*$//
21982 x
21983 s/\(=[ ]*\).*/\1/
21984 G
21985 s/\n//
21986 s/^[^=]*=[ ]*$//
21987 }'
21988 fi
21989
21990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21991 fi # test -n "$CONFIG_FILES"
21992
21993 # Set up the scripts for CONFIG_HEADERS section.
21994 # No need to generate them if there are no CONFIG_HEADERS.
21995 # This happens for instance with `./config.status Makefile'.
21996 if test -n "$CONFIG_HEADERS"; then
21997 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21998 BEGIN {
21999 _ACEOF
22000
22001 # Transform confdefs.h into an awk script `defines.awk', embedded as
22002 # here-document in config.status, that substitutes the proper values into
22003 # config.h.in to produce config.h.
22004
22005 # Create a delimiter string that does not exist in confdefs.h, to ease
22006 # handling of long lines.
22007 ac_delim='%!_!# '
22008 for ac_last_try in false false :; do
22009 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22010 if test -z "$ac_tt"; then
22011 break
22012 elif $ac_last_try; then
22013 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22014 else
22015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22016 fi
22017 done
22018
22019 # For the awk script, D is an array of macro values keyed by name,
22020 # likewise P contains macro parameters if any. Preserve backslash
22021 # newline sequences.
22022
22023 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22024 sed -n '
22025 s/.\{148\}/&'"$ac_delim"'/g
22026 t rset
22027 :rset
22028 s/^[ ]*#[ ]*define[ ][ ]*/ /
22029 t def
22030 d
22031 :def
22032 s/\\$//
22033 t bsnl
22034 s/["\\]/\\&/g
22035 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22036 D["\1"]=" \3"/p
22037 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22038 d
22039 :bsnl
22040 s/["\\]/\\&/g
22041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22042 D["\1"]=" \3\\\\\\n"\\/p
22043 t cont
22044 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22045 t cont
22046 d
22047 :cont
22048 n
22049 s/.\{148\}/&'"$ac_delim"'/g
22050 t clear
22051 :clear
22052 s/\\$//
22053 t bsnlc
22054 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22055 d
22056 :bsnlc
22057 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22058 b cont
22059 ' <confdefs.h | sed '
22060 s/'"$ac_delim"'/"\\\
22061 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22062
22063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22064 for (key in D) D_is_set[key] = 1
22065 FS = ""
22066 }
22067 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22068 line = \$ 0
22069 split(line, arg, " ")
22070 if (arg[1] == "#") {
22071 defundef = arg[2]
22072 mac1 = arg[3]
22073 } else {
22074 defundef = substr(arg[1], 2)
22075 mac1 = arg[2]
22076 }
22077 split(mac1, mac2, "(") #)
22078 macro = mac2[1]
22079 prefix = substr(line, 1, index(line, defundef) - 1)
22080 if (D_is_set[macro]) {
22081 # Preserve the white space surrounding the "#".
22082 print prefix "define", macro P[macro] D[macro]
22083 next
22084 } else {
22085 # Replace #undef with comments. This is necessary, for example,
22086 # in the case of _POSIX_SOURCE, which is predefined and required
22087 # on some systems where configure will not decide to define it.
22088 if (defundef == "undef") {
22089 print "/*", prefix defundef, macro, "*/"
22090 next
22091 }
22092 }
22093 }
22094 { print }
22095 _ACAWK
22096 _ACEOF
22097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22098 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22099 fi # test -n "$CONFIG_HEADERS"
22100
22101
22102 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22103 shift
22104 for ac_tag
22105 do
22106 case $ac_tag in
22107 :[FHLC]) ac_mode=$ac_tag; continue;;
22108 esac
22109 case $ac_mode$ac_tag in
22110 :[FHL]*:*);;
22111 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22112 :[FH]-) ac_tag=-:-;;
22113 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22114 esac
22115 ac_save_IFS=$IFS
22116 IFS=:
22117 set x $ac_tag
22118 IFS=$ac_save_IFS
22119 shift
22120 ac_file=$1
22121 shift
22122
22123 case $ac_mode in
22124 :L) ac_source=$1;;
22125 :[FH])
22126 ac_file_inputs=
22127 for ac_f
22128 do
22129 case $ac_f in
22130 -) ac_f="$ac_tmp/stdin";;
22131 *) # Look for the file first in the build tree, then in the source tree
22132 # (if the path is not absolute). The absolute path cannot be DOS-style,
22133 # because $ac_f cannot contain `:'.
22134 test -f "$ac_f" ||
22135 case $ac_f in
22136 [\\/$]*) false;;
22137 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22138 esac ||
22139 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22140 esac
22141 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22142 as_fn_append ac_file_inputs " '$ac_f'"
22143 done
22144
22145 # Let's still pretend it is `configure' which instantiates (i.e., don't
22146 # use $as_me), people would be surprised to read:
22147 # /* config.h. Generated by config.status. */
22148 configure_input='Generated from '`
22149 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22150 `' by configure.'
22151 if test x"$ac_file" != x-; then
22152 configure_input="$ac_file. $configure_input"
22153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22154 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22155 fi
22156 # Neutralize special characters interpreted by sed in replacement strings.
22157 case $configure_input in #(
22158 *\&* | *\|* | *\\* )
22159 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22160 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22161 *) ac_sed_conf_input=$configure_input;;
22162 esac
22163
22164 case $ac_tag in
22165 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22167 esac
22168 ;;
22169 esac
22170
22171 ac_dir=`$as_dirname -- "$ac_file" ||
22172 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22173 X"$ac_file" : 'X\(//\)[^/]' \| \
22174 X"$ac_file" : 'X\(//\)$' \| \
22175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22176 printf "%s\n" X"$ac_file" |
22177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22178 s//\1/
22179 q
22180 }
22181 /^X\(\/\/\)[^/].*/{
22182 s//\1/
22183 q
22184 }
22185 /^X\(\/\/\)$/{
22186 s//\1/
22187 q
22188 }
22189 /^X\(\/\).*/{
22190 s//\1/
22191 q
22192 }
22193 s/.*/./; q'`
22194 as_dir="$ac_dir"; as_fn_mkdir_p
22195 ac_builddir=.
22196
22197 case "$ac_dir" in
22198 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22199 *)
22200 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22201 # A ".." for each directory in $ac_dir_suffix.
22202 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22203 case $ac_top_builddir_sub in
22204 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22205 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22206 esac ;;
22207 esac
22208 ac_abs_top_builddir=$ac_pwd
22209 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22210 # for backward compatibility:
22211 ac_top_builddir=$ac_top_build_prefix
22212
22213 case $srcdir in
22214 .) # We are building in place.
22215 ac_srcdir=.
22216 ac_top_srcdir=$ac_top_builddir_sub
22217 ac_abs_top_srcdir=$ac_pwd ;;
22218 [\\/]* | ?:[\\/]* ) # Absolute name.
22219 ac_srcdir=$srcdir$ac_dir_suffix;
22220 ac_top_srcdir=$srcdir
22221 ac_abs_top_srcdir=$srcdir ;;
22222 *) # Relative name.
22223 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22224 ac_top_srcdir=$ac_top_build_prefix$srcdir
22225 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22226 esac
22227 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22228
22229
22230 case $ac_mode in
22231 :F)
22232 #
22233 # CONFIG_FILE
22234 #
22235
22236 case $INSTALL in
22237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22238 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22239 esac
22240 ac_MKDIR_P=$MKDIR_P
22241 case $MKDIR_P in
22242 [\\/$]* | ?:[\\/]* ) ;;
22243 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22244 esac
22245 _ACEOF
22246
22247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22248 # If the template does not know about datarootdir, expand it.
22249 # FIXME: This hack should be removed a few years after 2.60.
22250 ac_datarootdir_hack=; ac_datarootdir_seen=
22251 ac_sed_dataroot='
22252 /datarootdir/ {
22253 p
22254 q
22255 }
22256 /@datadir@/p
22257 /@docdir@/p
22258 /@infodir@/p
22259 /@localedir@/p
22260 /@mandir@/p'
22261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22262 *datarootdir*) ac_datarootdir_seen=yes;;
22263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22265 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22266 _ACEOF
22267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22268 ac_datarootdir_hack='
22269 s&@datadir@&$datadir&g
22270 s&@docdir@&$docdir&g
22271 s&@infodir@&$infodir&g
22272 s&@localedir@&$localedir&g
22273 s&@mandir@&$mandir&g
22274 s&\\\${datarootdir}&$datarootdir&g' ;;
22275 esac
22276 _ACEOF
22277
22278 # Neutralize VPATH when `$srcdir' = `.'.
22279 # Shell code in configure.ac might set extrasub.
22280 # FIXME: do we really want to maintain this feature?
22281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22282 ac_sed_extra="$ac_vpsub
22283 $extrasub
22284 _ACEOF
22285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22286 :t
22287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22288 s|@configure_input@|$ac_sed_conf_input|;t t
22289 s&@top_builddir@&$ac_top_builddir_sub&;t t
22290 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22291 s&@srcdir@&$ac_srcdir&;t t
22292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22293 s&@top_srcdir@&$ac_top_srcdir&;t t
22294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22295 s&@builddir@&$ac_builddir&;t t
22296 s&@abs_builddir@&$ac_abs_builddir&;t t
22297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22298 s&@INSTALL@&$ac_INSTALL&;t t
22299 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22300 $ac_datarootdir_hack
22301 "
22302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22303 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22304
22305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22306 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22308 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22310 which seems to be undefined. Please make sure it is defined" >&5
22311 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22312 which seems to be undefined. Please make sure it is defined" >&2;}
22313
22314 rm -f "$ac_tmp/stdin"
22315 case $ac_file in
22316 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22317 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22318 esac \
22319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22320 ;;
22321 :H)
22322 #
22323 # CONFIG_HEADER
22324 #
22325 if test x"$ac_file" != x-; then
22326 {
22327 printf "%s\n" "/* $configure_input */" >&1 \
22328 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22329 } >"$ac_tmp/config.h" \
22330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22331 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22333 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22334 else
22335 rm -f "$ac_file"
22336 mv "$ac_tmp/config.h" "$ac_file" \
22337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22338 fi
22339 else
22340 printf "%s\n" "/* $configure_input */" >&1 \
22341 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22342 || as_fn_error $? "could not create -" "$LINENO" 5
22343 fi
22344 # Compute "$ac_file"'s index in $config_headers.
22345 _am_arg="$ac_file"
22346 _am_stamp_count=1
22347 for _am_header in $config_headers :; do
22348 case $_am_header in
22349 $_am_arg | $_am_arg:* )
22350 break ;;
22351 * )
22352 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22353 esac
22354 done
22355 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22356 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22357 X"$_am_arg" : 'X\(//\)[^/]' \| \
22358 X"$_am_arg" : 'X\(//\)$' \| \
22359 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22360 printf "%s\n" X"$_am_arg" |
22361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22362 s//\1/
22363 q
22364 }
22365 /^X\(\/\/\)[^/].*/{
22366 s//\1/
22367 q
22368 }
22369 /^X\(\/\/\)$/{
22370 s//\1/
22371 q
22372 }
22373 /^X\(\/\).*/{
22374 s//\1/
22375 q
22376 }
22377 s/.*/./; q'`/stamp-h$_am_stamp_count
22378 ;;
22379
22380 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22381 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22382 ;;
22383 esac
22384
22385
22386 case $ac_file$ac_mode in
22387 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22388 # Older Autoconf quotes --file arguments for eval, but not when files
22389 # are listed without --file. Let's play safe and only enable the eval
22390 # if we detect the quoting.
22391 # TODO: see whether this extra hack can be removed once we start
22392 # requiring Autoconf 2.70 or later.
22393 case $CONFIG_FILES in #(
22394 *\'*) :
22395 eval set x "$CONFIG_FILES" ;; #(
22396 *) :
22397 set x $CONFIG_FILES ;; #(
22398 *) :
22399 ;;
22400 esac
22401 shift
22402 # Used to flag and report bootstrapping failures.
22403 am_rc=0
22404 for am_mf
22405 do
22406 # Strip MF so we end up with the name of the file.
22407 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22408 # Check whether this is an Automake generated Makefile which includes
22409 # dependency-tracking related rules and includes.
22410 # Grep'ing the whole file directly is not great: AIX grep has a line
22411 # limit of 2048, but all sed's we know have understand at least 4000.
22412 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22413 || continue
22414 am_dirpart=`$as_dirname -- "$am_mf" ||
22415 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22416 X"$am_mf" : 'X\(//\)[^/]' \| \
22417 X"$am_mf" : 'X\(//\)$' \| \
22418 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22419 printf "%s\n" X"$am_mf" |
22420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22421 s//\1/
22422 q
22423 }
22424 /^X\(\/\/\)[^/].*/{
22425 s//\1/
22426 q
22427 }
22428 /^X\(\/\/\)$/{
22429 s//\1/
22430 q
22431 }
22432 /^X\(\/\).*/{
22433 s//\1/
22434 q
22435 }
22436 s/.*/./; q'`
22437 am_filepart=`$as_basename -- "$am_mf" ||
22438 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22439 X"$am_mf" : 'X\(//\)$' \| \
22440 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22441 printf "%s\n" X/"$am_mf" |
22442 sed '/^.*\/\([^/][^/]*\)\/*$/{
22443 s//\1/
22444 q
22445 }
22446 /^X\/\(\/\/\)$/{
22447 s//\1/
22448 q
22449 }
22450 /^X\/\(\/\).*/{
22451 s//\1/
22452 q
22453 }
22454 s/.*/./; q'`
22455 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22456 && sed -e '/# am--include-marker/d' "$am_filepart" \
22457 | $MAKE -f - am--depfiles" >&5
22458 (cd "$am_dirpart" \
22459 && sed -e '/# am--include-marker/d' "$am_filepart" \
22460 | $MAKE -f - am--depfiles) >&5 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } || am_rc=$?
22464 done
22465 if test $am_rc -ne 0; then
22466 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22467 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22468 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22469 for automatic dependency tracking. If GNU make was not used, consider
22470 re-running the configure script with MAKE=\"gmake\" (or whatever is
22471 necessary). You can also try re-running configure with the
22472 '--disable-dependency-tracking' option to at least be able to build
22473 the package (albeit without support for automatic dependency tracking).
22474 See \`config.log' for more details" "$LINENO" 5; }
22475 fi
22476 { am_dirpart=; unset am_dirpart;}
22477 { am_filepart=; unset am_filepart;}
22478 { am_mf=; unset am_mf;}
22479 { am_rc=; unset am_rc;}
22480 rm -f conftest-deps.mk
22481 }
22482 ;;
22483 "libtool":C)
22484
22485 # See if we are running on zsh, and set the options that allow our
22486 # commands through without removal of \ escapes.
22487 if test -n "${ZSH_VERSION+set}"; then
22488 setopt NO_GLOB_SUBST
22489 fi
22490
22491 cfgfile=${ofile}T
22492 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22493 $RM "$cfgfile"
22494
22495 cat <<_LT_EOF >> "$cfgfile"
22496 #! $SHELL
22497 # Generated automatically by $as_me ($PACKAGE) $VERSION
22498 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22499
22500 # Provide generalized library-building support services.
22501 # Written by Gordon Matzigkeit, 1996
22502
22503 # Copyright (C) 2014 Free Software Foundation, Inc.
22504 # This is free software; see the source for copying conditions. There is NO
22505 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22506
22507 # GNU Libtool is free software; you can redistribute it and/or modify
22508 # it under the terms of the GNU General Public License as published by
22509 # the Free Software Foundation; either version 2 of of the License, or
22510 # (at your option) any later version.
22511 #
22512 # As a special exception to the GNU General Public License, if you
22513 # distribute this file as part of a program or library that is built
22514 # using GNU Libtool, you may include this file under the same
22515 # distribution terms that you use for the rest of that program.
22516 #
22517 # GNU Libtool is distributed in the hope that it will be useful, but
22518 # WITHOUT ANY WARRANTY; without even the implied warranty of
22519 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22520 # GNU General Public License for more details.
22521 #
22522 # You should have received a copy of the GNU General Public License
22523 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22524
22525
22526 # The names of the tagged configurations supported by this script.
22527 available_tags=''
22528
22529 # Configured defaults for sys_lib_dlsearch_path munging.
22530 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22531
22532 # ### BEGIN LIBTOOL CONFIG
22533
22534 # Whether or not to build static libraries.
22535 build_old_libs=$enable_static
22536
22537 # Which release of libtool.m4 was used?
22538 macro_version=$macro_version
22539 macro_revision=$macro_revision
22540
22541 # Whether or not to build shared libraries.
22542 build_libtool_libs=$enable_shared
22543
22544 # What type of objects to build.
22545 pic_mode=$pic_mode
22546
22547 # Whether or not to optimize for fast installation.
22548 fast_install=$enable_fast_install
22549
22550 # Shared archive member basename,for filename based shared library versioning on AIX.
22551 shared_archive_member_spec=$shared_archive_member_spec
22552
22553 # Shell to use when invoking shell scripts.
22554 SHELL=$lt_SHELL
22555
22556 # An echo program that protects backslashes.
22557 ECHO=$lt_ECHO
22558
22559 # The PATH separator for the build system.
22560 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22561
22562 # The host system.
22563 host_alias=$host_alias
22564 host=$host
22565 host_os=$host_os
22566
22567 # The build system.
22568 build_alias=$build_alias
22569 build=$build
22570 build_os=$build_os
22571
22572 # A sed program that does not truncate output.
22573 SED=$lt_SED
22574
22575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22576 Xsed="\$SED -e 1s/^X//"
22577
22578 # A grep program that handles long lines.
22579 GREP=$lt_GREP
22580
22581 # An ERE matcher.
22582 EGREP=$lt_EGREP
22583
22584 # A literal string matcher.
22585 FGREP=$lt_FGREP
22586
22587 # A BSD- or MS-compatible name lister.
22588 NM=$lt_NM
22589
22590 # Whether we need soft or hard links.
22591 LN_S=$lt_LN_S
22592
22593 # What is the maximum length of a command?
22594 max_cmd_len=$max_cmd_len
22595
22596 # Object file suffix (normally "o").
22597 objext=$ac_objext
22598
22599 # Executable file suffix (normally "").
22600 exeext=$exeext
22601
22602 # whether the shell understands "unset".
22603 lt_unset=$lt_unset
22604
22605 # turn spaces into newlines.
22606 SP2NL=$lt_lt_SP2NL
22607
22608 # turn newlines into spaces.
22609 NL2SP=$lt_lt_NL2SP
22610
22611 # convert \$build file names to \$host format.
22612 to_host_file_cmd=$lt_cv_to_host_file_cmd
22613
22614 # convert \$build files to toolchain format.
22615 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22616
22617 # An object symbol dumper.
22618 OBJDUMP=$lt_OBJDUMP
22619
22620 # Method to check whether dependent libraries are shared objects.
22621 deplibs_check_method=$lt_deplibs_check_method
22622
22623 # Command to use when deplibs_check_method = "file_magic".
22624 file_magic_cmd=$lt_file_magic_cmd
22625
22626 # How to find potential files when deplibs_check_method = "file_magic".
22627 file_magic_glob=$lt_file_magic_glob
22628
22629 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22630 want_nocaseglob=$lt_want_nocaseglob
22631
22632 # DLL creation program.
22633 DLLTOOL=$lt_DLLTOOL
22634
22635 # Command to associate shared and link libraries.
22636 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22637
22638 # The archiver.
22639 AR=$lt_AR
22640
22641 # Flags to create an archive.
22642 AR_FLAGS=$lt_AR_FLAGS
22643
22644 # How to feed a file listing to the archiver.
22645 archiver_list_spec=$lt_archiver_list_spec
22646
22647 # A symbol stripping program.
22648 STRIP=$lt_STRIP
22649
22650 # Commands used to install an old-style archive.
22651 RANLIB=$lt_RANLIB
22652 old_postinstall_cmds=$lt_old_postinstall_cmds
22653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22654
22655 # Whether to use a lock for old archive extraction.
22656 lock_old_archive_extraction=$lock_old_archive_extraction
22657
22658 # A C compiler.
22659 LTCC=$lt_CC
22660
22661 # LTCC compiler flags.
22662 LTCFLAGS=$lt_CFLAGS
22663
22664 # Take the output of nm and produce a listing of raw symbols and C names.
22665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22666
22667 # Transform the output of nm in a proper C declaration.
22668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22669
22670 # Transform the output of nm into a list of symbols to manually relocate.
22671 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22672
22673 # Transform the output of nm in a C name address pair.
22674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22675
22676 # Transform the output of nm in a C name address pair when lib prefix is needed.
22677 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22678
22679 # The name lister interface.
22680 nm_interface=$lt_lt_cv_nm_interface
22681
22682 # Specify filename containing input files for \$NM.
22683 nm_file_list_spec=$lt_nm_file_list_spec
22684
22685 # The root where to search for dependent libraries,and where our libraries should be installed.
22686 lt_sysroot=$lt_sysroot
22687
22688 # Command to truncate a binary pipe.
22689 lt_truncate_bin=$lt_lt_cv_truncate_bin
22690
22691 # The name of the directory that contains temporary libtool files.
22692 objdir=$objdir
22693
22694 # Used to examine libraries when file_magic_cmd begins with "file".
22695 MAGIC_CMD=$MAGIC_CMD
22696
22697 # Must we lock files when doing compilation?
22698 need_locks=$lt_need_locks
22699
22700 # Manifest tool.
22701 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22702
22703 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22704 DSYMUTIL=$lt_DSYMUTIL
22705
22706 # Tool to change global to local symbols on Mac OS X.
22707 NMEDIT=$lt_NMEDIT
22708
22709 # Tool to manipulate fat objects and archives on Mac OS X.
22710 LIPO=$lt_LIPO
22711
22712 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22713 OTOOL=$lt_OTOOL
22714
22715 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22716 OTOOL64=$lt_OTOOL64
22717
22718 # Old archive suffix (normally "a").
22719 libext=$libext
22720
22721 # Shared library suffix (normally ".so").
22722 shrext_cmds=$lt_shrext_cmds
22723
22724 # The commands to extract the exported symbol list from a shared archive.
22725 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22726
22727 # Variables whose values should be saved in libtool wrapper scripts and
22728 # restored at link time.
22729 variables_saved_for_relink=$lt_variables_saved_for_relink
22730
22731 # Do we need the "lib" prefix for modules?
22732 need_lib_prefix=$need_lib_prefix
22733
22734 # Do we need a version for libraries?
22735 need_version=$need_version
22736
22737 # Library versioning type.
22738 version_type=$version_type
22739
22740 # Shared library runtime path variable.
22741 runpath_var=$runpath_var
22742
22743 # Shared library path variable.
22744 shlibpath_var=$shlibpath_var
22745
22746 # Is shlibpath searched before the hard-coded library search path?
22747 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22748
22749 # Format of library name prefix.
22750 libname_spec=$lt_libname_spec
22751
22752 # List of archive names. First name is the real one, the rest are links.
22753 # The last name is the one that the linker finds with -lNAME
22754 library_names_spec=$lt_library_names_spec
22755
22756 # The coded name of the library, if different from the real name.
22757 soname_spec=$lt_soname_spec
22758
22759 # Permission mode override for installation of shared libraries.
22760 install_override_mode=$lt_install_override_mode
22761
22762 # Command to use after installation of a shared archive.
22763 postinstall_cmds=$lt_postinstall_cmds
22764
22765 # Command to use after uninstallation of a shared archive.
22766 postuninstall_cmds=$lt_postuninstall_cmds
22767
22768 # Commands used to finish a libtool library installation in a directory.
22769 finish_cmds=$lt_finish_cmds
22770
22771 # As "finish_cmds", except a single script fragment to be evaled but
22772 # not shown.
22773 finish_eval=$lt_finish_eval
22774
22775 # Whether we should hardcode library paths into libraries.
22776 hardcode_into_libs=$hardcode_into_libs
22777
22778 # Compile-time system search path for libraries.
22779 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22780
22781 # Detected run-time system search path for libraries.
22782 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22783
22784 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22785 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22786
22787 # Whether dlopen is supported.
22788 dlopen_support=$enable_dlopen
22789
22790 # Whether dlopen of programs is supported.
22791 dlopen_self=$enable_dlopen_self
22792
22793 # Whether dlopen of statically linked programs is supported.
22794 dlopen_self_static=$enable_dlopen_self_static
22795
22796 # Commands to strip libraries.
22797 old_striplib=$lt_old_striplib
22798 striplib=$lt_striplib
22799
22800
22801 # The linker used to build libraries.
22802 LD=$lt_LD
22803
22804 # How to create reloadable object files.
22805 reload_flag=$lt_reload_flag
22806 reload_cmds=$lt_reload_cmds
22807
22808 # Commands used to build an old-style archive.
22809 old_archive_cmds=$lt_old_archive_cmds
22810
22811 # A language specific compiler.
22812 CC=$lt_compiler
22813
22814 # Is the compiler the GNU compiler?
22815 with_gcc=$GCC
22816
22817 # Compiler flag to turn off builtin functions.
22818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22819
22820 # Additional compiler flags for building library objects.
22821 pic_flag=$lt_lt_prog_compiler_pic
22822
22823 # How to pass a linker flag through the compiler.
22824 wl=$lt_lt_prog_compiler_wl
22825
22826 # Compiler flag to prevent dynamic linking.
22827 link_static_flag=$lt_lt_prog_compiler_static
22828
22829 # Does compiler simultaneously support -c and -o options?
22830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22831
22832 # Whether or not to add -lc for building shared libraries.
22833 build_libtool_need_lc=$archive_cmds_need_lc
22834
22835 # Whether or not to disallow shared libs when runtime libs are static.
22836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22837
22838 # Compiler flag to allow reflexive dlopens.
22839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22840
22841 # Compiler flag to generate shared objects directly from archives.
22842 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22843
22844 # Whether the compiler copes with passing no objects directly.
22845 compiler_needs_object=$lt_compiler_needs_object
22846
22847 # Create an old-style archive from a shared archive.
22848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22849
22850 # Create a temporary old-style archive to link instead of a shared archive.
22851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22852
22853 # Commands used to build a shared archive.
22854 archive_cmds=$lt_archive_cmds
22855 archive_expsym_cmds=$lt_archive_expsym_cmds
22856
22857 # Commands used to build a loadable module if different from building
22858 # a shared archive.
22859 module_cmds=$lt_module_cmds
22860 module_expsym_cmds=$lt_module_expsym_cmds
22861
22862 # Whether we are building with GNU ld or not.
22863 with_gnu_ld=$lt_with_gnu_ld
22864
22865 # Flag that allows shared libraries with undefined symbols to be built.
22866 allow_undefined_flag=$lt_allow_undefined_flag
22867
22868 # Flag that enforces no undefined symbols.
22869 no_undefined_flag=$lt_no_undefined_flag
22870
22871 # Flag to hardcode \$libdir into a binary during linking.
22872 # This must work even if \$libdir does not exist
22873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22874
22875 # Whether we need a single "-rpath" flag with a separated argument.
22876 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22877
22878 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22879 # DIR into the resulting binary.
22880 hardcode_direct=$hardcode_direct
22881
22882 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22883 # DIR into the resulting binary and the resulting library dependency is
22884 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22885 # library is relocated.
22886 hardcode_direct_absolute=$hardcode_direct_absolute
22887
22888 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22889 # into the resulting binary.
22890 hardcode_minus_L=$hardcode_minus_L
22891
22892 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22893 # into the resulting binary.
22894 hardcode_shlibpath_var=$hardcode_shlibpath_var
22895
22896 # Set to "yes" if building a shared library automatically hardcodes DIR
22897 # into the library and all subsequent libraries and executables linked
22898 # against it.
22899 hardcode_automatic=$hardcode_automatic
22900
22901 # Set to yes if linker adds runtime paths of dependent libraries
22902 # to runtime path list.
22903 inherit_rpath=$inherit_rpath
22904
22905 # Whether libtool must link a program against all its dependency libraries.
22906 link_all_deplibs=$link_all_deplibs
22907
22908 # Set to "yes" if exported symbols are required.
22909 always_export_symbols=$always_export_symbols
22910
22911 # The commands to list exported symbols.
22912 export_symbols_cmds=$lt_export_symbols_cmds
22913
22914 # Symbols that should not be listed in the preloaded symbols.
22915 exclude_expsyms=$lt_exclude_expsyms
22916
22917 # Symbols that must always be exported.
22918 include_expsyms=$lt_include_expsyms
22919
22920 # Commands necessary for linking programs (against libraries) with templates.
22921 prelink_cmds=$lt_prelink_cmds
22922
22923 # Commands necessary for finishing linking programs.
22924 postlink_cmds=$lt_postlink_cmds
22925
22926 # Specify filename containing input files.
22927 file_list_spec=$lt_file_list_spec
22928
22929 # How to hardcode a shared library path into an executable.
22930 hardcode_action=$hardcode_action
22931
22932 # ### END LIBTOOL CONFIG
22933
22934 _LT_EOF
22935
22936 cat <<'_LT_EOF' >> "$cfgfile"
22937
22938 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22939
22940 # func_munge_path_list VARIABLE PATH
22941 # -----------------------------------
22942 # VARIABLE is name of variable containing _space_ separated list of
22943 # directories to be munged by the contents of PATH, which is string
22944 # having a format:
22945 # "DIR[:DIR]:"
22946 # string "DIR[ DIR]" will be prepended to VARIABLE
22947 # ":DIR[:DIR]"
22948 # string "DIR[ DIR]" will be appended to VARIABLE
22949 # "DIRP[:DIRP]::[DIRA:]DIRA"
22950 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22951 # "DIRA[ DIRA]" will be appended to VARIABLE
22952 # "DIR[:DIR]"
22953 # VARIABLE will be replaced by "DIR[ DIR]"
22954 func_munge_path_list ()
22955 {
22956 case x$2 in
22957 x)
22958 ;;
22959 *:)
22960 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22961 ;;
22962 x:*)
22963 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22964 ;;
22965 *::*)
22966 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22967 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22968 ;;
22969 *)
22970 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22971 ;;
22972 esac
22973 }
22974
22975
22976 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22977 func_cc_basename ()
22978 {
22979 for cc_temp in $*""; do
22980 case $cc_temp in
22981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22983 \-*) ;;
22984 *) break;;
22985 esac
22986 done
22987 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22988 }
22989
22990
22991 # ### END FUNCTIONS SHARED WITH CONFIGURE
22992
22993 _LT_EOF
22994
22995 case $host_os in
22996 aix3*)
22997 cat <<\_LT_EOF >> "$cfgfile"
22998 # AIX sometimes has problems with the GCC collect2 program. For some
22999 # reason, if we set the COLLECT_NAMES environment variable, the problems
23000 # vanish in a puff of smoke.
23001 if test set != "${COLLECT_NAMES+set}"; then
23002 COLLECT_NAMES=
23003 export COLLECT_NAMES
23004 fi
23005 _LT_EOF
23006 ;;
23007 esac
23008
23009
23010
23011 ltmain=$ac_aux_dir/ltmain.sh
23012
23013
23014 # We use sed instead of cat because bash on DJGPP gets confused if
23015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23016 # text mode, it properly converts lines to CR/LF. This bash problem
23017 # is reportedly fixed, but why not run on old versions too?
23018 sed '$q' "$ltmain" >> "$cfgfile" \
23019 || (rm -f "$cfgfile"; exit 1)
23020
23021 mv -f "$cfgfile" "$ofile" ||
23022 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23023 chmod +x "$ofile"
23024
23025 ;;
23026
23027 esac
23028 done # for ac_tag
23029
23030
23031 as_fn_exit 0
23032 _ACEOF
23033 ac_clean_files=$ac_clean_files_save
23034
23035 test $ac_write_fail = 0 ||
23036 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23037
23038
23039 # configure is writing to config.log, and then calls config.status.
23040 # config.status does its own redirection, appending to config.log.
23041 # Unfortunately, on DOS this fails, as config.log is still kept open
23042 # by configure, so config.status won't be able to write to it; its
23043 # output is simply discarded. So we exec the FD to /dev/null,
23044 # effectively closing config.log, so it can be properly (re)opened and
23045 # appended to by config.status. When coming back to configure, we
23046 # need to make the FD available again.
23047 if test "$no_create" != yes; then
23048 ac_cs_success=:
23049 ac_config_status_args=
23050 test "$silent" = yes &&
23051 ac_config_status_args="$ac_config_status_args --quiet"
23052 exec 5>/dev/null
23053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23054 exec 5>>config.log
23055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23056 # would make configure fail if this is the last instruction.
23057 $ac_cs_success || as_fn_exit 1
23058 fi
23059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23061 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23062 fi
23063
23064
23065 echo ""
23066 echo " prefix: $prefix"
23067 echo " exec_prefix: $exec_prefix"
23068 echo " libdir: $libdir"
23069 echo " includedir: $includedir"
23070 echo " configdir: $configdir"
23071
23072 echo ""
23073 echo " CFLAGS: $CFLAGS"
23074 echo " CXXFLAGS: $CXXFLAGS"
23075 echo " Macros: $DEFINES"
23076
23077 echo ""
23078 echo " Run '${MAKE-make}' to build xf86-video-amdgpu"
23079 echo ""
23080
23081