configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xf86-video-geode 2.11.21.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/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
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || 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-geode/-/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-geode'
624 PACKAGE_TARNAME='xf86-video-geode'
625 PACKAGE_VERSION='2.11.21'
626 PACKAGE_STRING='xf86-video-geode 2.11.21'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/issues'
628 PACKAGE_URL='http://www.x.org/wiki/GeodeDriver'
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 PCIACCESS_LIBS
668 PCIACCESS_CFLAGS
669 XEXT_LIBS
670 XEXT_CFLAGS
671 XORG_LIBS
672 XORG_CFLAGS
673 M32_CFLAGS
674 BUILD_ZTV_FALSE
675 BUILD_ZTV_TRUE
676 PANEL_CPPFLAGS
677 moduledir
678 MAN_SUBSTS
679 XORG_MAN_PAGE
680 ADMIN_MAN_DIR
681 DRIVER_MAN_DIR
682 MISC_MAN_DIR
683 FILE_MAN_DIR
684 LIB_MAN_DIR
685 APP_MAN_DIR
686 ADMIN_MAN_SUFFIX
687 DRIVER_MAN_SUFFIX
688 MISC_MAN_SUFFIX
689 FILE_MAN_SUFFIX
690 LIB_MAN_SUFFIX
691 APP_MAN_SUFFIX
692 INSTALL_CMD
693 PKG_CONFIG_LIBDIR
694 PKG_CONFIG_PATH
695 PKG_CONFIG
696 CHANGELOG_CMD
697 STRICT_CFLAGS
698 CWARNFLAGS
699 BASE_CFLAGS
700 LT_SYS_LIBRARY_PATH
701 OTOOL64
702 OTOOL
703 LIPO
704 NMEDIT
705 DSYMUTIL
706 MANIFEST_TOOL
707 RANLIB
708 ac_ct_AR
709 AR
710 DLLTOOL
711 OBJDUMP
712 FILECMD
713 LN_S
714 NM
715 ac_ct_DUMPBIN
716 DUMPBIN
717 LD
718 FGREP
719 EGREP
720 GREP
721 SED
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 LIBTOOL
747 MAINT
748 MAINTAINER_MODE_FALSE
749 MAINTAINER_MODE_TRUE
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 AM_DEFAULT_V
753 AM_V
754 CSCOPE
755 ETAGS
756 CTAGS
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 runstatedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL
819 am__quote'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_silent_rules
824 enable_maintainer_mode
825 enable_static
826 enable_shared
827 with_pic
828 enable_fast_install
829 with_aix_soname
830 enable_dependency_tracking
831 with_gnu_ld
832 with_sysroot
833 enable_libtool_lock
834 enable_selective_werror
835 enable_strict_compilation
836 with_xorg_module_dir
837 enable_geodegx_panel
838 enable_ztv
839 enable_xaa
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 LT_SYS_LIBRARY_PATH
850 PKG_CONFIG
851 PKG_CONFIG_PATH
852 PKG_CONFIG_LIBDIR
853 XORG_CFLAGS
854 XORG_LIBS
855 XEXT_CFLAGS
856 XEXT_LIBS
857 PCIACCESS_CFLAGS
858 PCIACCESS_LIBS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 runstatedir='${localstatedir}/run'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: \`$ac_useropt'"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -runstatedir | --runstatedir | --runstatedi | --runstated \
1149 | --runstate | --runstat | --runsta | --runst | --runs \
1150 | --run | --ru | --r)
1151 ac_prev=runstatedir ;;
1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154 | --run=* | --ru=* | --r=*)
1155 runstatedir=$ac_optarg ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: \`$ac_useropt'"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
1217
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: \`$ac_useropt'"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262 esac
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $? "missing argument to $ac_option"
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir runstatedir
1295 do
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 printf "%s\n" X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
1407 \`configure' configures xf86-video-geode 2.11.21 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root
1457 [DATAROOTDIR/doc/xf86-video-geode]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1463
1464 cat <<\_ACEOF
1465
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of xf86-video-geode 2.11.21:";;
1480 esac
1481 cat <<\_ACEOF
1482
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-silent-rules less verbose build output (undo: "make V=1")
1488 --disable-silent-rules verbose build output (undo: "make V=0")
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
1492 --enable-static[=PKGS] build static libraries [default=no]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --enable-dependency-tracking
1497 do not reject slow dependency extractors
1498 --disable-dependency-tracking
1499 speeds up one-time build
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --disable-selective-werror
1502 Turn off selective compiler errors. (default:
1503 enabled)
1504 --enable-strict-compilation
1505 Enable all warnings from compiler and make them
1506 errors (default: disabled)
1507 --disable-geodegx-panel Disable support for flatpanels with the Geode GX
1508 --enable-ztv Enable Video For Linux based ZTV driver (default:
1509 auto-detected)
1510 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1511 [default=auto]
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-aix-soname=aix|svr4|both
1519 shared library versioning (aka "SONAME") variant to
1520 provide on AIX, [default=aix].
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1523 compiler's sysroot if not specified).
1524 --with-xorg-module-dir=DIR
1525 Default xorg module directory
1526 [[default=$libdir/xorg/modules]]
1527
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 LT_SYS_LIBRARY_PATH
1537 User-defined run-time library search path.
1538 PKG_CONFIG path to pkg-config utility
1539 PKG_CONFIG_PATH
1540 directories to add to pkg-config's search path
1541 PKG_CONFIG_LIBDIR
1542 path overriding pkg-config's built-in search path
1543 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1544 XORG_LIBS linker flags for XORG, overriding pkg-config
1545 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1546 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1547 PCIACCESS_CFLAGS
1548 C compiler flags for PCIACCESS, overriding pkg-config
1549 PCIACCESS_LIBS
1550 linker flags for PCIACCESS, overriding pkg-config
1551
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1554
1555 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/issues>.
1556 xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>.
1557 _ACEOF
1558 ac_status=$?
1559 fi
1560
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 continue
1567 ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for configure.gnu first; this name is used for a wrapper for
1603 # Metaconfig's "Configure" on case-insensitive file systems.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1610 else
1611 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 fi || ac_status=$?
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1614 done
1615 fi
1616
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619 cat <<\_ACEOF
1620 xf86-video-geode configure 2.11.21
1621 generated by GNU Autoconf 2.71
1622
1623 Copyright (C) 2021 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627 exit
1628 fi
1629
1630 ## ------------------------ ##
1631 ## Autoconf initialization. ##
1632 ## ------------------------ ##
1633
1634 # ac_fn_c_try_compile LINENO
1635 # --------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_compile ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest.beam
1641 if { { ac_try="$ac_compile"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 printf "%s\n" "$ac_try_echo"; } >&5
1648 (eval "$ac_compile") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest.$ac_objext
1660 then :
1661 ac_retval=0
1662 else $as_nop
1663 printf "%s\n" "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 test -x conftest$ac_exeext
1701 }
1702 then :
1703 ac_retval=0
1704 else $as_nop
1705 printf "%s\n" "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 printf %s "checking for $2... " >&6; }
1729 if eval test \${$3+y}
1730 then :
1731 printf %s "(cached) " >&6
1732 else $as_nop
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 $4
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"
1739 then :
1740 eval "$3=yes"
1741 else $as_nop
1742 eval "$3=no"
1743 fi
1744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1745 fi
1746 eval ac_res=\$$3
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 printf "%s\n" "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_header_compile
1752
1753 # ac_fn_c_check_func LINENO FUNC VAR
1754 # ----------------------------------
1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1756 ac_fn_c_check_func ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 printf %s "checking for $2... " >&6; }
1761 if eval test \${$3+y}
1762 then :
1763 printf %s "(cached) " >&6
1764 else $as_nop
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1770
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below. */
1773
1774 #include <limits.h>
1775 #undef $2
1776
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1780 #ifdef __cplusplus
1781 extern "C"
1782 #endif
1783 char $2 ();
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1788 choke me
1789 #endif
1790
1791 int
1792 main (void)
1793 {
1794 return $2 ();
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_link "$LINENO"
1800 then :
1801 eval "$3=yes"
1802 else $as_nop
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1806 conftest$ac_exeext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 printf "%s\n" "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814
1815 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1816 # ------------------------------------------------------------------
1817 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1818 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1819 ac_fn_check_decl ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 as_decl_name=`echo $2|sed 's/ *(.*//'`
1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1824 printf %s "checking whether $as_decl_name is declared... " >&6; }
1825 if eval test \${$3+y}
1826 then :
1827 printf %s "(cached) " >&6
1828 else $as_nop
1829 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1830 eval ac_save_FLAGS=\$$6
1831 as_fn_append $6 " $5"
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 int
1836 main (void)
1837 {
1838 #ifndef $as_decl_name
1839 #ifdef __cplusplus
1840 (void) $as_decl_use;
1841 #else
1842 (void) $as_decl_name;
1843 #endif
1844 #endif
1845
1846 ;
1847 return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"
1851 then :
1852 eval "$3=yes"
1853 else $as_nop
1854 eval "$3=no"
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1857 eval $6=\$ac_save_FLAGS
1858
1859 fi
1860 eval ac_res=\$$3
1861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 printf "%s\n" "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_check_decl
1866 ac_configure_args_raw=
1867 for ac_arg
1868 do
1869 case $ac_arg in
1870 *\'*)
1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872 esac
1873 as_fn_append ac_configure_args_raw " '$ac_arg'"
1874 done
1875
1876 case $ac_configure_args_raw in
1877 *$as_nl*)
1878 ac_safe_unquote= ;;
1879 *)
1880 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1881 ac_unsafe_a="$ac_unsafe_z#~"
1882 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1883 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1884 esac
1885
1886 cat >config.log <<_ACEOF
1887 This file contains any messages produced by compilers while
1888 running configure, to aid debugging if configure makes a mistake.
1889
1890 It was created by xf86-video-geode $as_me 2.11.21, which was
1891 generated by GNU Autoconf 2.71. Invocation command line was
1892
1893 $ $0$ac_configure_args_raw
1894
1895 _ACEOF
1896 exec 5>>config.log
1897 {
1898 cat <<_ASUNAME
1899 ## --------- ##
1900 ## Platform. ##
1901 ## --------- ##
1902
1903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1911
1912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919
1920 _ASUNAME
1921
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 case $as_dir in #(((
1927 '') as_dir=./ ;;
1928 */) ;;
1929 *) as_dir=$as_dir/ ;;
1930 esac
1931 printf "%s\n" "PATH: $as_dir"
1932 done
1933 IFS=$as_save_IFS
1934
1935 } >&5
1936
1937 cat >&5 <<_ACEOF
1938
1939
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1943
1944 _ACEOF
1945
1946
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1957 do
1958 for ac_arg
1959 do
1960 case $ac_arg in
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1964 continue ;;
1965 *\'*)
1966 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 esac
1968 case $ac_pass in
1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970 2)
1971 as_fn_append ac_configure_args1 " '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1974 else
1975 case $ac_arg in
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 esac
1983 ;;
1984 -* ) ac_must_keep_next=true ;;
1985 esac
1986 fi
1987 as_fn_append ac_configure_args " '$ac_arg'"
1988 ;;
1989 esac
1990 done
1991 done
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1994
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Sanitize IFS.
2002 IFS=" "" $as_nl"
2003 # Save into config.log some information that might help in debugging.
2004 {
2005 echo
2006
2007 printf "%s\n" "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2010 echo
2011 # The following way of writing the cache mishandles newlines in values,
2012 (
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in #(
2016 *${as_nl}*)
2017 case $ac_var in #(
2018 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 esac
2021 case $ac_var in #(
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2025 esac ;;
2026 esac
2027 done
2028 (set) 2>&1 |
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2031 sed -n \
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 ;; #(
2035 *)
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037 ;;
2038 esac |
2039 sort
2040 )
2041 echo
2042
2043 printf "%s\n" "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2046 echo
2047 for ac_var in $ac_subst_vars
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 printf "%s\n" "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056
2057 if test -n "$ac_subst_files"; then
2058 printf "%s\n" "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2061 echo
2062 for ac_var in $ac_subst_files
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 printf "%s\n" "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071 fi
2072
2073 if test -s confdefs.h; then
2074 printf "%s\n" "## ----------- ##
2075 ## confdefs.h. ##
2076 ## ----------- ##"
2077 echo
2078 cat confdefs.h
2079 echo
2080 fi
2081 test "$ac_signal" != 0 &&
2082 printf "%s\n" "$as_me: caught signal $ac_signal"
2083 printf "%s\n" "$as_me: exit $exit_status"
2084 } >&5
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087 exit $exit_status
2088 ' 0
2089 for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 done
2092 ac_signal=0
2093
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2096
2097 printf "%s\n" "/* confdefs.h */" > confdefs.h
2098
2099 # Predefined preprocessor variables.
2100
2101 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2102
2103 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2104
2105 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2106
2107 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2108
2109 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2110
2111 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 if test -n "$CONFIG_SITE"; then
2117 ac_site_files="$CONFIG_SITE"
2118 elif test "x$prefix" != xNONE; then
2119 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2120 else
2121 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2122 fi
2123
2124 for ac_site_file in $ac_site_files
2125 do
2126 case $ac_site_file in #(
2127 */*) :
2128 ;; #(
2129 *) :
2130 ac_site_file=./$ac_site_file ;;
2131 esac
2132 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file" \
2137 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2139 as_fn_error $? "failed to load site script $ac_site_file
2140 See \`config.log' for more details" "$LINENO" 5; }
2141 fi
2142 done
2143
2144 if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155 else
2156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2159 fi
2160
2161 # Test code for whether the C compiler supports C89 (global declarations)
2162 ac_c_conftest_c89_globals='
2163 /* Does the compiler advertise C89 conformance?
2164 Do not test the value of __STDC__, because some compilers set it to 0
2165 while being otherwise adequately conformant. */
2166 #if !defined __STDC__
2167 # error "Compiler does not advertise C89 conformance"
2168 #endif
2169
2170 #include <stddef.h>
2171 #include <stdarg.h>
2172 struct stat;
2173 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2174 struct buf { int x; };
2175 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2176 static char *e (p, i)
2177 char **p;
2178 int i;
2179 {
2180 return p[i];
2181 }
2182 static char *f (char * (*g) (char **, int), char **p, ...)
2183 {
2184 char *s;
2185 va_list v;
2186 va_start (v,p);
2187 s = g (p, va_arg (v,int));
2188 va_end (v);
2189 return s;
2190 }
2191
2192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2193 function prototypes and stuff, but not \xHH hex character constants.
2194 These do not provoke an error unfortunately, instead are silently treated
2195 as an "x". The following induces an error, until -std is added to get
2196 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2197 array size at least. It is necessary to write \x00 == 0 to get something
2198 that is true only with -std. */
2199 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2200
2201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2202 inside strings and character constants. */
2203 #define FOO(x) '\''x'\''
2204 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2205
2206 int test (int i, double x);
2207 struct s1 {int (*f) (int a);};
2208 struct s2 {int (*f) (double a);};
2209 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2210 int, int);'
2211
2212 # Test code for whether the C compiler supports C89 (body of main).
2213 ac_c_conftest_c89_main='
2214 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2215 '
2216
2217 # Test code for whether the C compiler supports C99 (global declarations)
2218 ac_c_conftest_c99_globals='
2219 // Does the compiler advertise C99 conformance?
2220 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2221 # error "Compiler does not advertise C99 conformance"
2222 #endif
2223
2224 #include <stdbool.h>
2225 extern int puts (const char *);
2226 extern int printf (const char *, ...);
2227 extern int dprintf (int, const char *, ...);
2228 extern void *malloc (size_t);
2229
2230 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2231 // dprintf is used instead of fprintf to avoid needing to declare
2232 // FILE and stderr.
2233 #define debug(...) dprintf (2, __VA_ARGS__)
2234 #define showlist(...) puts (#__VA_ARGS__)
2235 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2236 static void
2237 test_varargs_macros (void)
2238 {
2239 int x = 1234;
2240 int y = 5678;
2241 debug ("Flag");
2242 debug ("X = %d\n", x);
2243 showlist (The first, second, and third items.);
2244 report (x>y, "x is %d but y is %d", x, y);
2245 }
2246
2247 // Check long long types.
2248 #define BIG64 18446744073709551615ull
2249 #define BIG32 4294967295ul
2250 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2251 #if !BIG_OK
2252 #error "your preprocessor is broken"
2253 #endif
2254 #if BIG_OK
2255 #else
2256 #error "your preprocessor is broken"
2257 #endif
2258 static long long int bignum = -9223372036854775807LL;
2259 static unsigned long long int ubignum = BIG64;
2260
2261 struct incomplete_array
2262 {
2263 int datasize;
2264 double data[];
2265 };
2266
2267 struct named_init {
2268 int number;
2269 const wchar_t *name;
2270 double average;
2271 };
2272
2273 typedef const char *ccp;
2274
2275 static inline int
2276 test_restrict (ccp restrict text)
2277 {
2278 // See if C++-style comments work.
2279 // Iterate through items via the restricted pointer.
2280 // Also check for declarations in for loops.
2281 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2282 continue;
2283 return 0;
2284 }
2285
2286 // Check varargs and va_copy.
2287 static bool
2288 test_varargs (const char *format, ...)
2289 {
2290 va_list args;
2291 va_start (args, format);
2292 va_list args_copy;
2293 va_copy (args_copy, args);
2294
2295 const char *str = "";
2296 int number = 0;
2297 float fnumber = 0;
2298
2299 while (*format)
2300 {
2301 switch (*format++)
2302 {
2303 case '\''s'\'': // string
2304 str = va_arg (args_copy, const char *);
2305 break;
2306 case '\''d'\'': // int
2307 number = va_arg (args_copy, int);
2308 break;
2309 case '\''f'\'': // float
2310 fnumber = va_arg (args_copy, double);
2311 break;
2312 default:
2313 break;
2314 }
2315 }
2316 va_end (args_copy);
2317 va_end (args);
2318
2319 return *str && number && fnumber;
2320 }
2321 '
2322
2323 # Test code for whether the C compiler supports C99 (body of main).
2324 ac_c_conftest_c99_main='
2325 // Check bool.
2326 _Bool success = false;
2327 success |= (argc != 0);
2328
2329 // Check restrict.
2330 if (test_restrict ("String literal") == 0)
2331 success = true;
2332 char *restrict newvar = "Another string";
2333
2334 // Check varargs.
2335 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2336 test_varargs_macros ();
2337
2338 // Check flexible array members.
2339 struct incomplete_array *ia =
2340 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2341 ia->datasize = 10;
2342 for (int i = 0; i < ia->datasize; ++i)
2343 ia->data[i] = i * 1.234;
2344
2345 // Check named initializers.
2346 struct named_init ni = {
2347 .number = 34,
2348 .name = L"Test wide string",
2349 .average = 543.34343,
2350 };
2351
2352 ni.number = 58;
2353
2354 int dynamic_array[ni.number];
2355 dynamic_array[0] = argv[0][0];
2356 dynamic_array[ni.number - 1] = 543;
2357
2358 // work around unused variable warnings
2359 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2360 || dynamic_array[ni.number - 1] != 543);
2361 '
2362
2363 # Test code for whether the C compiler supports C11 (global declarations)
2364 ac_c_conftest_c11_globals='
2365 // Does the compiler advertise C11 conformance?
2366 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2367 # error "Compiler does not advertise C11 conformance"
2368 #endif
2369
2370 // Check _Alignas.
2371 char _Alignas (double) aligned_as_double;
2372 char _Alignas (0) no_special_alignment;
2373 extern char aligned_as_int;
2374 char _Alignas (0) _Alignas (int) aligned_as_int;
2375
2376 // Check _Alignof.
2377 enum
2378 {
2379 int_alignment = _Alignof (int),
2380 int_array_alignment = _Alignof (int[100]),
2381 char_alignment = _Alignof (char)
2382 };
2383 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2384
2385 // Check _Noreturn.
2386 int _Noreturn does_not_return (void) { for (;;) continue; }
2387
2388 // Check _Static_assert.
2389 struct test_static_assert
2390 {
2391 int x;
2392 _Static_assert (sizeof (int) <= sizeof (long int),
2393 "_Static_assert does not work in struct");
2394 long int y;
2395 };
2396
2397 // Check UTF-8 literals.
2398 #define u8 syntax error!
2399 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2400
2401 // Check duplicate typedefs.
2402 typedef long *long_ptr;
2403 typedef long int *long_ptr;
2404 typedef long_ptr long_ptr;
2405
2406 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2407 struct anonymous
2408 {
2409 union {
2410 struct { int i; int j; };
2411 struct { int k; long int l; } w;
2412 };
2413 int m;
2414 } v1;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (body of main).
2418 ac_c_conftest_c11_main='
2419 _Static_assert ((offsetof (struct anonymous, i)
2420 == offsetof (struct anonymous, w.k)),
2421 "Anonymous union alignment botch");
2422 v1.i = 2;
2423 v1.w.k = 5;
2424 ok |= v1.i != 5;
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (complete).
2428 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2429 ${ac_c_conftest_c99_globals}
2430 ${ac_c_conftest_c11_globals}
2431
2432 int
2433 main (int argc, char **argv)
2434 {
2435 int ok = 0;
2436 ${ac_c_conftest_c89_main}
2437 ${ac_c_conftest_c99_main}
2438 ${ac_c_conftest_c11_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C99 (complete).
2444 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2445 ${ac_c_conftest_c99_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 ${ac_c_conftest_c99_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C89 (complete).
2458 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2459
2460 int
2461 main (int argc, char **argv)
2462 {
2463 int ok = 0;
2464 ${ac_c_conftest_c89_main}
2465 return ok;
2466 }
2467 "
2468
2469 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2470 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2471 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2472 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2473 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2474 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2475 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2476 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2477 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2478
2479 # Auxiliary files required by this configure script.
2480 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2481
2482 # Locations in which to look for auxiliary files.
2483 ac_aux_dir_candidates="${srcdir}/build-aux"
2484
2485 # Search for a directory containing all of the required auxiliary files,
2486 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2487 # If we don't find one directory that contains all the files we need,
2488 # we report the set of missing files from the *first* directory in
2489 # $ac_aux_dir_candidates and give up.
2490 ac_missing_aux_files=""
2491 ac_first_candidate=:
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 as_found=false
2495 for as_dir in $ac_aux_dir_candidates
2496 do
2497 IFS=$as_save_IFS
2498 case $as_dir in #(((
2499 '') as_dir=./ ;;
2500 */) ;;
2501 *) as_dir=$as_dir/ ;;
2502 esac
2503 as_found=:
2504
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2506 ac_aux_dir_found=yes
2507 ac_install_sh=
2508 for ac_aux in $ac_aux_files
2509 do
2510 # As a special case, if "install-sh" is required, that requirement
2511 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2512 # and $ac_install_sh is set appropriately for whichever one is found.
2513 if test x"$ac_aux" = x"install-sh"
2514 then
2515 if test -f "${as_dir}install-sh"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2517 ac_install_sh="${as_dir}install-sh -c"
2518 elif test -f "${as_dir}install.sh"; then
2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2520 ac_install_sh="${as_dir}install.sh -c"
2521 elif test -f "${as_dir}shtool"; then
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2523 ac_install_sh="${as_dir}shtool install -c"
2524 else
2525 ac_aux_dir_found=no
2526 if $ac_first_candidate; then
2527 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2528 else
2529 break
2530 fi
2531 fi
2532 else
2533 if test -f "${as_dir}${ac_aux}"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2535 else
2536 ac_aux_dir_found=no
2537 if $ac_first_candidate; then
2538 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2539 else
2540 break
2541 fi
2542 fi
2543 fi
2544 done
2545 if test "$ac_aux_dir_found" = yes; then
2546 ac_aux_dir="$as_dir"
2547 break
2548 fi
2549 ac_first_candidate=false
2550
2551 as_found=false
2552 done
2553 IFS=$as_save_IFS
2554 if $as_found
2555 then :
2556
2557 else $as_nop
2558 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2559 fi
2560
2561
2562 # These three variables are undocumented and unsupported,
2563 # and are intended to be withdrawn in a future Autoconf release.
2564 # They can cause serious problems if a builder's source tree is in a directory
2565 # whose full name contains unusual characters.
2566 if test -f "${ac_aux_dir}config.guess"; then
2567 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2568 fi
2569 if test -f "${ac_aux_dir}config.sub"; then
2570 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2571 fi
2572 if test -f "$ac_aux_dir/configure"; then
2573 ac_configure="$SHELL ${ac_aux_dir}configure"
2574 fi
2575
2576 # Check that the precious variables saved in the cache have kept the same
2577 # value.
2578 ac_cache_corrupted=false
2579 for ac_var in $ac_precious_vars; do
2580 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581 eval ac_new_set=\$ac_env_${ac_var}_set
2582 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583 eval ac_new_val=\$ac_env_${ac_var}_value
2584 case $ac_old_set,$ac_new_set in
2585 set,)
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2589 ,set)
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,);;
2594 *)
2595 if test "x$ac_old_val" != "x$ac_new_val"; then
2596 # differences in whitespace do not lead to failure.
2597 ac_old_val_w=`echo x $ac_old_val`
2598 ac_new_val_w=`echo x $ac_new_val`
2599 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602 ac_cache_corrupted=:
2603 else
2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606 eval $ac_var=\$ac_old_val
2607 fi
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2609 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2611 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2612 fi;;
2613 esac
2614 # Pass precious variables to config.status.
2615 if test "$ac_new_set" = set; then
2616 case $ac_new_val in
2617 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618 *) ac_arg=$ac_var=$ac_new_val ;;
2619 esac
2620 case " $ac_configure_args " in
2621 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2622 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2623 esac
2624 fi
2625 done
2626 if $ac_cache_corrupted; then
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2631 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2632 and start over" "$LINENO" 5
2633 fi
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646
2647 ac_config_headers="$ac_config_headers config.h"
2648
2649
2650
2651
2652 # Initialize Automake
2653 am__api_version='1.16'
2654
2655
2656
2657 # Find a good install program. We prefer a C program (faster),
2658 # so one script is as good as another. But avoid the broken or
2659 # incompatible versions:
2660 # SysV /etc/install, /usr/sbin/install
2661 # SunOS /usr/etc/install
2662 # IRIX /sbin/install
2663 # AIX /bin/install
2664 # AmigaOS /C/install, which installs bootblocks on floppy discs
2665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2668 # OS/2's system install, which has a completely different semantic
2669 # ./install, which can be erroneously created by make from ./install.sh.
2670 # Reject install programs that cannot install multiple files.
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2672 printf %s "checking for a BSD-compatible install... " >&6; }
2673 if test -z "$INSTALL"; then
2674 if test ${ac_cv_path_install+y}
2675 then :
2676 printf %s "(cached) " >&6
2677 else $as_nop
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681 IFS=$as_save_IFS
2682 case $as_dir in #(((
2683 '') as_dir=./ ;;
2684 */) ;;
2685 *) as_dir=$as_dir/ ;;
2686 esac
2687 # Account for fact that we put trailing slashes in our PATH walk.
2688 case $as_dir in #((
2689 ./ | /[cC]/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2692 /usr/ucb/* ) ;;
2693 *)
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2703 :
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2707 :
2708 else
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2719 break 3
2720 fi
2721 fi
2722 fi
2723 done
2724 done
2725 ;;
2726 esac
2727
2728 done
2729 IFS=$as_save_IFS
2730
2731 rm -rf conftest.one conftest.two conftest.dir
2732
2733 fi
2734 if test ${ac_cv_path_install+y}; then
2735 INSTALL=$ac_cv_path_install
2736 else
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for INSTALL within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 INSTALL=$ac_install_sh
2742 fi
2743 fi
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745 printf "%s\n" "$INSTALL" >&6; }
2746
2747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748 # It thinks the first close brace ends the variable substitution.
2749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2750
2751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2752
2753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2754
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756 printf %s "checking whether build environment is sane... " >&6; }
2757 # Reject unsafe characters in $srcdir or the absolute working directory
2758 # name. Accept space and tab only in the latter.
2759 am_lf='
2760 '
2761 case `pwd` in
2762 *[\\\"\#\$\&\'\`$am_lf]*)
2763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2764 esac
2765 case $srcdir in
2766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2768 esac
2769
2770 # Do 'set' in a subshell so we don't clobber the current shell's
2771 # arguments. Must try -L first in case configure is actually a
2772 # symlink; some systems play weird games with the mod time of symlinks
2773 # (eg FreeBSD returns the mod time of the symlink's containing
2774 # directory).
2775 if (
2776 am_has_slept=no
2777 for am_try in 1 2; do
2778 echo "timestamp, slept: $am_has_slept" > conftest.file
2779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2781 # -L didn't work.
2782 set X `ls -t "$srcdir/configure" conftest.file`
2783 fi
2784 if test "$*" != "X $srcdir/configure conftest.file" \
2785 && test "$*" != "X conftest.file $srcdir/configure"; then
2786
2787 # If neither matched, then we have a broken ls. This can happen
2788 # if, for instance, CONFIG_SHELL is bash and it inherits a
2789 # broken ls alias from the environment. This has actually
2790 # happened. Such a system could not be considered "sane".
2791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2792 alias in your environment" "$LINENO" 5
2793 fi
2794 if test "$2" = conftest.file || test $am_try -eq 2; then
2795 break
2796 fi
2797 # Just in case.
2798 sleep 1
2799 am_has_slept=yes
2800 done
2801 test "$2" = conftest.file
2802 )
2803 then
2804 # Ok.
2805 :
2806 else
2807 as_fn_error $? "newly created file is older than distributed files!
2808 Check your system clock" "$LINENO" 5
2809 fi
2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811 printf "%s\n" "yes" >&6; }
2812 # If we didn't sleep, we still need to ensure time stamps of config.status and
2813 # generated files are strictly newer.
2814 am_sleep_pid=
2815 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2816 ( sleep 1 ) &
2817 am_sleep_pid=$!
2818 fi
2819
2820 rm -f conftest.file
2821
2822 test "$program_prefix" != NONE &&
2823 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824 # Use a double $ so make ignores it.
2825 test "$program_suffix" != NONE &&
2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827 # Double any \ or $.
2828 # By default was `s,x,x', remove it if useless.
2829 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2831
2832
2833 # Expand $ac_aux_dir to an absolute path.
2834 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2835
2836
2837 if test x"${MISSING+set}" != xset; then
2838 MISSING="\${SHELL} '$am_aux_dir/missing'"
2839 fi
2840 # Use eval to expand $SHELL
2841 if eval "$MISSING --is-lightweight"; then
2842 am_missing_run="$MISSING "
2843 else
2844 am_missing_run=
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2846 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2847 fi
2848
2849 if test x"${install_sh+set}" != xset; then
2850 case $am_aux_dir in
2851 *\ * | *\ *)
2852 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2853 *)
2854 install_sh="\${SHELL} $am_aux_dir/install-sh"
2855 esac
2856 fi
2857
2858 # Installed binaries are usually stripped using 'strip' when the user
2859 # run "make install-strip". However 'strip' might not be the right
2860 # tool to use in cross-compilation environments, therefore Automake
2861 # will honor the 'STRIP' environment variable to overrule this program.
2862 if test "$cross_compiling" != no; then
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}strip; ac_word=$2
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 printf %s "checking for $ac_word... " >&6; }
2868 if test ${ac_cv_prog_STRIP+y}
2869 then :
2870 printf %s "(cached) " >&6
2871 else $as_nop
2872 if test -n "$STRIP"; then
2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 case $as_dir in #(((
2880 '') as_dir=./ ;;
2881 */) ;;
2882 *) as_dir=$as_dir/ ;;
2883 esac
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 STRIP=$ac_cv_prog_STRIP
2897 if test -n "$STRIP"; then
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2899 printf "%s\n" "$STRIP" >&6; }
2900 else
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 printf "%s\n" "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910 set dummy 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_ac_ct_STRIP+y}
2914 then :
2915 printf %s "(cached) " >&6
2916 else $as_nop
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2942 if test -n "$ac_ct_STRIP"; then
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2944 printf "%s\n" "$ac_ct_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 if test "x$ac_ct_STRIP" = x; then
2951 STRIP=":"
2952 else
2953 case $cross_compiling:$ac_tool_warned in
2954 yes:)
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2958 esac
2959 STRIP=$ac_ct_STRIP
2960 fi
2961 else
2962 STRIP="$ac_cv_prog_STRIP"
2963 fi
2964
2965 fi
2966 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2967
2968
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2970 printf %s "checking for a race-free mkdir -p... " >&6; }
2971 if test -z "$MKDIR_P"; then
2972 if test ${ac_cv_path_mkdir+y}
2973 then :
2974 printf %s "(cached) " >&6
2975 else $as_nop
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2978 do
2979 IFS=$as_save_IFS
2980 case $as_dir in #(((
2981 '') as_dir=./ ;;
2982 */) ;;
2983 *) as_dir=$as_dir/ ;;
2984 esac
2985 for ac_prog in mkdir gmkdir; do
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2988 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2989 'mkdir ('*'coreutils) '* | \
2990 'BusyBox '* | \
2991 'mkdir (fileutils) '4.1*)
2992 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2993 break 3;;
2994 esac
2995 done
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001
3002 test -d ./--version && rmdir ./--version
3003 if test ${ac_cv_path_mkdir+y}; then
3004 MKDIR_P="$ac_cv_path_mkdir -p"
3005 else
3006 # As a last resort, use the slow shell script. Don't cache a
3007 # value for MKDIR_P within a source directory, because that will
3008 # break other packages using the cache if that directory is
3009 # removed, or if the value is a relative name.
3010 MKDIR_P="$ac_install_sh -d"
3011 fi
3012 fi
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3014 printf "%s\n" "$MKDIR_P" >&6; }
3015
3016 for ac_prog in gawk mawk nawk awk
3017 do
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 printf %s "checking for $ac_word... " >&6; }
3022 if test ${ac_cv_prog_AWK+y}
3023 then :
3024 printf %s "(cached) " >&6
3025 else $as_nop
3026 if test -n "$AWK"; then
3027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 case $as_dir in #(((
3034 '') as_dir=./ ;;
3035 */) ;;
3036 *) as_dir=$as_dir/ ;;
3037 esac
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_AWK="$ac_prog"
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 AWK=$ac_cv_prog_AWK
3051 if test -n "$AWK"; then
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3053 printf "%s\n" "$AWK" >&6; }
3054 else
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 printf "%s\n" "no" >&6; }
3057 fi
3058
3059
3060 test -n "$AWK" && break
3061 done
3062
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3065 set x ${MAKE-make}
3066 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3067 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else $as_nop
3071 cat >conftest.make <<\_ACEOF
3072 SHELL = /bin/sh
3073 all:
3074 @echo '@@@%%%=$(MAKE)=@@@%%%'
3075 _ACEOF
3076 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3077 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3078 *@@@%%%=?*=@@@%%%*)
3079 eval ac_cv_prog_make_${ac_make}_set=yes;;
3080 *)
3081 eval ac_cv_prog_make_${ac_make}_set=no;;
3082 esac
3083 rm -f conftest.make
3084 fi
3085 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087 printf "%s\n" "yes" >&6; }
3088 SET_MAKE=
3089 else
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 printf "%s\n" "no" >&6; }
3092 SET_MAKE="MAKE=${MAKE-make}"
3093 fi
3094
3095 rm -rf .tst 2>/dev/null
3096 mkdir .tst 2>/dev/null
3097 if test -d .tst; then
3098 am__leading_dot=.
3099 else
3100 am__leading_dot=_
3101 fi
3102 rmdir .tst 2>/dev/null
3103
3104 # Check whether --enable-silent-rules was given.
3105 if test ${enable_silent_rules+y}
3106 then :
3107 enableval=$enable_silent_rules;
3108 fi
3109
3110 case $enable_silent_rules in # (((
3111 yes) AM_DEFAULT_VERBOSITY=0;;
3112 no) AM_DEFAULT_VERBOSITY=1;;
3113 *) AM_DEFAULT_VERBOSITY=1;;
3114 esac
3115 am_make=${MAKE-make}
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3117 printf %s "checking whether $am_make supports nested variables... " >&6; }
3118 if test ${am_cv_make_support_nested_variables+y}
3119 then :
3120 printf %s "(cached) " >&6
3121 else $as_nop
3122 if printf "%s\n" 'TRUE=$(BAR$(V))
3123 BAR0=false
3124 BAR1=true
3125 V=1
3126 am__doit:
3127 @$(TRUE)
3128 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3129 am_cv_make_support_nested_variables=yes
3130 else
3131 am_cv_make_support_nested_variables=no
3132 fi
3133 fi
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3135 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3136 if test $am_cv_make_support_nested_variables = yes; then
3137 AM_V='$(V)'
3138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3139 else
3140 AM_V=$AM_DEFAULT_VERBOSITY
3141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3142 fi
3143 AM_BACKSLASH='\'
3144
3145 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3147 # is not polluted with repeated "-I."
3148 am__isrc=' -I$(srcdir)'
3149 # test to see if srcdir already configured
3150 if test -f $srcdir/config.status; then
3151 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3152 fi
3153 fi
3154
3155 # test whether we have cygpath
3156 if test -z "$CYGPATH_W"; then
3157 if (cygpath --version) >/dev/null 2>/dev/null; then
3158 CYGPATH_W='cygpath -w'
3159 else
3160 CYGPATH_W=echo
3161 fi
3162 fi
3163
3164
3165 # Define the identity of the package.
3166 PACKAGE='xf86-video-geode'
3167 VERSION='2.11.21'
3168
3169
3170 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3171
3172
3173 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3174
3175 # Some tools Automake needs.
3176
3177 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3178
3179
3180 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3181
3182
3183 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3184
3185
3186 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3187
3188
3189 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3190
3191 # For better backward compatibility. To be removed once Automake 1.9.x
3192 # dies out for good. For more background, see:
3193 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3194 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3195 mkdir_p='$(MKDIR_P)'
3196
3197 # We need awk for the "check" target (and possibly the TAP driver). The
3198 # system "awk" is bad on some platforms.
3199 # Always define AMTAR for backward compatibility. Yes, it's still used
3200 # in the wild :-( We should find a proper way to deprecate it ...
3201 AMTAR='$${TAR-tar}'
3202
3203
3204 # We'll loop over all known methods to create a tar archive until one works.
3205 _am_tools='gnutar pax cpio none'
3206
3207 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3208
3209
3210
3211
3212
3213 # Variables for tags utilities; see am/tags.am
3214 if test -z "$CTAGS"; then
3215 CTAGS=ctags
3216 fi
3217
3218 if test -z "$ETAGS"; then
3219 ETAGS=etags
3220 fi
3221
3222 if test -z "$CSCOPE"; then
3223 CSCOPE=cscope
3224 fi
3225
3226
3227
3228 # POSIX will say in a future version that running "rm -f" with no argument
3229 # is OK; and we want to be able to make that assumption in our Makefile
3230 # recipes. So use an aggressive probe to check that the usage we want is
3231 # actually supported "in the wild" to an acceptable degree.
3232 # See automake bug#10828.
3233 # To make any issue more visible, cause the running configure to be aborted
3234 # by default if the 'rm' program in use doesn't match our expectations; the
3235 # user can still override this though.
3236 if rm -f && rm -fr && rm -rf; then : OK; else
3237 cat >&2 <<'END'
3238 Oops!
3239
3240 Your 'rm' program seems unable to run without file operands specified
3241 on the command line, even when the '-f' option is present. This is contrary
3242 to the behaviour of most rm programs out there, and not conforming with
3243 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3244
3245 Please tell bug-automake@gnu.org about your system, including the value
3246 of your $PATH and any error possibly output before this message. This
3247 can help us improve future automake versions.
3248
3249 END
3250 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3251 echo 'Configuration will proceed anyway, since you have set the' >&2
3252 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3253 echo >&2
3254 else
3255 cat >&2 <<'END'
3256 Aborting the configuration process, to ensure you take notice of the issue.
3257
3258 You can download and install GNU coreutils to get an 'rm' implementation
3259 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3260
3261 If you want to complete the configuration process using your problematic
3262 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3263 to "yes", and re-run configure.
3264
3265 END
3266 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3267 fi
3268 fi
3269
3270
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3272 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3273 # Check whether --enable-maintainer-mode was given.
3274 if test ${enable_maintainer_mode+y}
3275 then :
3276 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3277 else $as_nop
3278 USE_MAINTAINER_MODE=no
3279 fi
3280
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3282 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3283 if test $USE_MAINTAINER_MODE = yes; then
3284 MAINTAINER_MODE_TRUE=
3285 MAINTAINER_MODE_FALSE='#'
3286 else
3287 MAINTAINER_MODE_TRUE='#'
3288 MAINTAINER_MODE_FALSE=
3289 fi
3290
3291 MAINT=$MAINTAINER_MODE_TRUE
3292
3293
3294
3295 # Initialize libtool
3296 # Check whether --enable-static was given.
3297 if test ${enable_static+y}
3298 then :
3299 enableval=$enable_static; p=${PACKAGE-default}
3300 case $enableval in
3301 yes) enable_static=yes ;;
3302 no) enable_static=no ;;
3303 *)
3304 enable_static=no
3305 # Look at the argument we got. We use all the common list separators.
3306 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3307 for pkg in $enableval; do
3308 IFS=$lt_save_ifs
3309 if test "X$pkg" = "X$p"; then
3310 enable_static=yes
3311 fi
3312 done
3313 IFS=$lt_save_ifs
3314 ;;
3315 esac
3316 else $as_nop
3317 enable_static=no
3318 fi
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328 case `pwd` in
3329 *\ * | *\ *)
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3331 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3332 esac
3333
3334
3335
3336 macro_version='2.4.7'
3337 macro_revision='2.4.7'
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352 ltmain=$ac_aux_dir/ltmain.sh
3353
3354
3355
3356 # Make sure we can run config.sub.
3357 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3358 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3359
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3361 printf %s "checking build system type... " >&6; }
3362 if test ${ac_cv_build+y}
3363 then :
3364 printf %s "(cached) " >&6
3365 else $as_nop
3366 ac_build_alias=$build_alias
3367 test "x$ac_build_alias" = x &&
3368 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3369 test "x$ac_build_alias" = x &&
3370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3371 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3372 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3373
3374 fi
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3376 printf "%s\n" "$ac_cv_build" >&6; }
3377 case $ac_cv_build in
3378 *-*-*) ;;
3379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3380 esac
3381 build=$ac_cv_build
3382 ac_save_IFS=$IFS; IFS='-'
3383 set x $ac_cv_build
3384 shift
3385 build_cpu=$1
3386 build_vendor=$2
3387 shift; shift
3388 # Remember, the first character of IFS is used to create $*,
3389 # except with old shells:
3390 build_os=$*
3391 IFS=$ac_save_IFS
3392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3393
3394
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3396 printf %s "checking host system type... " >&6; }
3397 if test ${ac_cv_host+y}
3398 then :
3399 printf %s "(cached) " >&6
3400 else $as_nop
3401 if test "x$host_alias" = x; then
3402 ac_cv_host=$ac_cv_build
3403 else
3404 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3405 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3406 fi
3407
3408 fi
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3410 printf "%s\n" "$ac_cv_host" >&6; }
3411 case $ac_cv_host in
3412 *-*-*) ;;
3413 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3414 esac
3415 host=$ac_cv_host
3416 ac_save_IFS=$IFS; IFS='-'
3417 set x $ac_cv_host
3418 shift
3419 host_cpu=$1
3420 host_vendor=$2
3421 shift; shift
3422 # Remember, the first character of IFS is used to create $*,
3423 # except with old shells:
3424 host_os=$*
3425 IFS=$ac_save_IFS
3426 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3427
3428
3429 # Backslashify metacharacters that are still active within
3430 # double-quoted strings.
3431 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3432
3433 # Same as above, but do not quote variable references.
3434 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3435
3436 # Sed substitution to delay expansion of an escaped shell variable in a
3437 # double_quote_subst'ed string.
3438 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3439
3440 # Sed substitution to delay expansion of an escaped single quote.
3441 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3442
3443 # Sed substitution to avoid accidental globbing in evaled expressions
3444 no_glob_subst='s/\*/\\\*/g'
3445
3446 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3447 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3448 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3449
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3451 printf %s "checking how to print strings... " >&6; }
3452 # Test print first, because it will be a builtin if present.
3453 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3454 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3455 ECHO='print -r --'
3456 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3457 ECHO='printf %s\n'
3458 else
3459 # Use this function as a fallback that always works.
3460 func_fallback_echo ()
3461 {
3462 eval 'cat <<_LTECHO_EOF
3463 $1
3464 _LTECHO_EOF'
3465 }
3466 ECHO='func_fallback_echo'
3467 fi
3468
3469 # func_echo_all arg...
3470 # Invoke $ECHO with all args, space-separated.
3471 func_echo_all ()
3472 {
3473 $ECHO ""
3474 }
3475
3476 case $ECHO in
3477 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3478 printf "%s\n" "printf" >&6; } ;;
3479 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3480 printf "%s\n" "print -r" >&6; } ;;
3481 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3482 printf "%s\n" "cat" >&6; } ;;
3483 esac
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507 DEPDIR="${am__leading_dot}deps"
3508
3509 ac_config_commands="$ac_config_commands depfiles"
3510
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3512 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3513 cat > confinc.mk << 'END'
3514 am__doit:
3515 @echo this is the am__doit target >confinc.out
3516 .PHONY: am__doit
3517 END
3518 am__include="#"
3519 am__quote=
3520 # BSD make does it like this.
3521 echo '.include "confinc.mk" # ignored' > confmf.BSD
3522 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3523 echo 'include confinc.mk # ignored' > confmf.GNU
3524 _am_result=no
3525 for s in GNU BSD; do
3526 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3527 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }
3531 case $?:`cat confinc.out 2>/dev/null` in #(
3532 '0:this is the am__doit target') :
3533 case $s in #(
3534 BSD) :
3535 am__include='.include' am__quote='"' ;; #(
3536 *) :
3537 am__include='include' am__quote='' ;;
3538 esac ;; #(
3539 *) :
3540 ;;
3541 esac
3542 if test "$am__include" != "#"; then
3543 _am_result="yes ($s style)"
3544 break
3545 fi
3546 done
3547 rm -f confinc.* confmf.*
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3549 printf "%s\n" "${_am_result}" >&6; }
3550
3551 # Check whether --enable-dependency-tracking was given.
3552 if test ${enable_dependency_tracking+y}
3553 then :
3554 enableval=$enable_dependency_tracking;
3555 fi
3556
3557 if test "x$enable_dependency_tracking" != xno; then
3558 am_depcomp="$ac_aux_dir/depcomp"
3559 AMDEPBACKSLASH='\'
3560 am__nodep='_no'
3561 fi
3562 if test "x$enable_dependency_tracking" != xno; then
3563 AMDEP_TRUE=
3564 AMDEP_FALSE='#'
3565 else
3566 AMDEP_TRUE='#'
3567 AMDEP_FALSE=
3568 fi
3569
3570
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 if test -n "$ac_tool_prefix"; then
3577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3578 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 printf %s "checking for $ac_word... " >&6; }
3581 if test ${ac_cv_prog_CC+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else $as_nop
3585 if test -n "$CC"; then
3586 ac_cv_prog_CC="$CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591 IFS=$as_save_IFS
3592 case $as_dir in #(((
3593 '') as_dir=./ ;;
3594 */) ;;
3595 *) as_dir=$as_dir/ ;;
3596 esac
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3601 break 2
3602 fi
3603 done
3604 done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 CC=$ac_cv_prog_CC
3610 if test -n "$CC"; then
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 printf "%s\n" "$CC" >&6; }
3613 else
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 printf "%s\n" "no" >&6; }
3616 fi
3617
3618
3619 fi
3620 if test -z "$ac_cv_prog_CC"; then
3621 ac_ct_CC=$CC
3622 # Extract the first word of "gcc", so it can be a program name with args.
3623 set dummy gcc; ac_word=$2
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 printf %s "checking for $ac_word... " >&6; }
3626 if test ${ac_cv_prog_ac_ct_CC+y}
3627 then :
3628 printf %s "(cached) " >&6
3629 else $as_nop
3630 if test -n "$ac_ct_CC"; then
3631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 case $as_dir in #(((
3638 '') as_dir=./ ;;
3639 */) ;;
3640 *) as_dir=$as_dir/ ;;
3641 esac
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_ac_ct_CC="gcc"
3645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 printf "%s\n" "$ac_ct_CC" >&6; }
3658 else
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 printf "%s\n" "no" >&6; }
3661 fi
3662
3663 if test "x$ac_ct_CC" = x; then
3664 CC=""
3665 else
3666 case $cross_compiling:$ac_tool_warned in
3667 yes:)
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3671 esac
3672 CC=$ac_ct_CC
3673 fi
3674 else
3675 CC="$ac_cv_prog_CC"
3676 fi
3677
3678 if test -z "$CC"; then
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}cc; ac_word=$2
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 printf %s "checking for $ac_word... " >&6; }
3684 if test ${ac_cv_prog_CC+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else $as_nop
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694 IFS=$as_save_IFS
3695 case $as_dir in #(((
3696 '') as_dir=./ ;;
3697 */) ;;
3698 *) as_dir=$as_dir/ ;;
3699 esac
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_CC="${ac_tool_prefix}cc"
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 printf "%s\n" "$CC" >&6; }
3716 else
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 printf "%s\n" "no" >&6; }
3719 fi
3720
3721
3722 fi
3723 fi
3724 if test -z "$CC"; then
3725 # Extract the first word of "cc", so it can be a program name with args.
3726 set dummy cc; ac_word=$2
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 printf %s "checking for $ac_word... " >&6; }
3729 if test ${ac_cv_prog_CC+y}
3730 then :
3731 printf %s "(cached) " >&6
3732 else $as_nop
3733 if test -n "$CC"; then
3734 ac_cv_prog_CC="$CC" # Let the user override the test.
3735 else
3736 ac_prog_rejected=no
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 case $as_dir in #(((
3742 '') as_dir=./ ;;
3743 */) ;;
3744 *) as_dir=$as_dir/ ;;
3745 esac
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3748 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3749 ac_prog_rejected=yes
3750 continue
3751 fi
3752 ac_cv_prog_CC="cc"
3753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 if test $ac_prog_rejected = yes; then
3761 # We found a bogon in the path, so make sure we never use it.
3762 set dummy $ac_cv_prog_CC
3763 shift
3764 if test $# != 0; then
3765 # We chose a different compiler from the bogus one.
3766 # However, it has the same basename, so the bogon will be chosen
3767 # first if we set CC to just the basename; use the full file name.
3768 shift
3769 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3770 fi
3771 fi
3772 fi
3773 fi
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 printf "%s\n" "$CC" >&6; }
3778 else
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 printf "%s\n" "no" >&6; }
3781 fi
3782
3783
3784 fi
3785 if test -z "$CC"; then
3786 if test -n "$ac_tool_prefix"; then
3787 for ac_prog in cl.exe
3788 do
3789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 printf %s "checking for $ac_word... " >&6; }
3793 if test ${ac_cv_prog_CC+y}
3794 then :
3795 printf %s "(cached) " >&6
3796 else $as_nop
3797 if test -n "$CC"; then
3798 ac_cv_prog_CC="$CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803 IFS=$as_save_IFS
3804 case $as_dir in #(((
3805 '') as_dir=./ ;;
3806 */) ;;
3807 *) as_dir=$as_dir/ ;;
3808 esac
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 printf "%s\n" "$CC" >&6; }
3825 else
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 printf "%s\n" "no" >&6; }
3828 fi
3829
3830
3831 test -n "$CC" && break
3832 done
3833 fi
3834 if test -z "$CC"; then
3835 ac_ct_CC=$CC
3836 for ac_prog in cl.exe
3837 do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 printf %s "checking for $ac_word... " >&6; }
3842 if test ${ac_cv_prog_ac_ct_CC+y}
3843 then :
3844 printf %s "(cached) " >&6
3845 else $as_nop
3846 if test -n "$ac_ct_CC"; then
3847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3851 do
3852 IFS=$as_save_IFS
3853 case $as_dir in #(((
3854 '') as_dir=./ ;;
3855 */) ;;
3856 *) as_dir=$as_dir/ ;;
3857 esac
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_ac_ct_CC="$ac_prog"
3861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864 done
3865 done
3866 IFS=$as_save_IFS
3867
3868 fi
3869 fi
3870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3871 if test -n "$ac_ct_CC"; then
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3873 printf "%s\n" "$ac_ct_CC" >&6; }
3874 else
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 printf "%s\n" "no" >&6; }
3877 fi
3878
3879
3880 test -n "$ac_ct_CC" && break
3881 done
3882
3883 if test "x$ac_ct_CC" = x; then
3884 CC=""
3885 else
3886 case $cross_compiling:$ac_tool_warned in
3887 yes:)
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned=yes ;;
3891 esac
3892 CC=$ac_ct_CC
3893 fi
3894 fi
3895
3896 fi
3897 if test -z "$CC"; then
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}clang; ac_word=$2
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 printf %s "checking for $ac_word... " >&6; }
3903 if test ${ac_cv_prog_CC+y}
3904 then :
3905 printf %s "(cached) " >&6
3906 else $as_nop
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913 IFS=$as_save_IFS
3914 case $as_dir in #(((
3915 '') as_dir=./ ;;
3916 */) ;;
3917 *) as_dir=$as_dir/ ;;
3918 esac
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_CC="${ac_tool_prefix}clang"
3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 printf "%s\n" "$CC" >&6; }
3935 else
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 printf "%s\n" "no" >&6; }
3938 fi
3939
3940
3941 fi
3942 if test -z "$ac_cv_prog_CC"; then
3943 ac_ct_CC=$CC
3944 # Extract the first word of "clang", so it can be a program name with args.
3945 set dummy clang; ac_word=$2
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 printf %s "checking for $ac_word... " >&6; }
3948 if test ${ac_cv_prog_ac_ct_CC+y}
3949 then :
3950 printf %s "(cached) " >&6
3951 else $as_nop
3952 if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958 IFS=$as_save_IFS
3959 case $as_dir in #(((
3960 '') as_dir=./ ;;
3961 */) ;;
3962 *) as_dir=$as_dir/ ;;
3963 esac
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_CC="clang"
3967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970 done
3971 done
3972 IFS=$as_save_IFS
3973
3974 fi
3975 fi
3976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3977 if test -n "$ac_ct_CC"; then
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3979 printf "%s\n" "$ac_ct_CC" >&6; }
3980 else
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 printf "%s\n" "no" >&6; }
3983 fi
3984
3985 if test "x$ac_ct_CC" = x; then
3986 CC=""
3987 else
3988 case $cross_compiling:$ac_tool_warned in
3989 yes:)
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3992 ac_tool_warned=yes ;;
3993 esac
3994 CC=$ac_ct_CC
3995 fi
3996 else
3997 CC="$ac_cv_prog_CC"
3998 fi
3999
4000 fi
4001
4002
4003 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error $? "no acceptable C compiler found in \$PATH
4006 See \`config.log' for more details" "$LINENO" 5; }
4007
4008 # Provide some information about the compiler.
4009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4010 set X $ac_compile
4011 ac_compiler=$2
4012 for ac_option in --version -v -V -qversion -version; do
4013 { { ac_try="$ac_compiler $ac_option >&5"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 printf "%s\n" "$ac_try_echo"; } >&5
4020 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4021 ac_status=$?
4022 if test -s conftest.err; then
4023 sed '10a\
4024 ... rest of stderr output deleted ...
4025 10q' conftest.err >conftest.er1
4026 cat conftest.er1 >&5
4027 fi
4028 rm -f conftest.er1 conftest.err
4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }
4031 done
4032
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main (void)
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 ac_clean_files_save=$ac_clean_files
4045 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4046 # Try to create an executable without -o first, disregard a.out.
4047 # It will help us diagnose broken compilers, and finding out an intuition
4048 # of exeext.
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4050 printf %s "checking whether the C compiler works... " >&6; }
4051 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4052
4053 # The possible output files:
4054 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4055
4056 ac_rmfiles=
4057 for ac_file in $ac_files
4058 do
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4061 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4062 esac
4063 done
4064 rm -f $ac_rmfiles
4065
4066 if { { ac_try="$ac_link_default"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 printf "%s\n" "$ac_try_echo"; } >&5
4073 (eval "$ac_link_default") 2>&5
4074 ac_status=$?
4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077 then :
4078 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4079 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4080 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4081 # so that the user can short-circuit this test for compilers unknown to
4082 # Autoconf.
4083 for ac_file in $ac_files ''
4084 do
4085 test -f "$ac_file" || continue
4086 case $ac_file in
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4088 ;;
4089 [ab].out )
4090 # We found the default executable, but exeext='' is most
4091 # certainly right.
4092 break;;
4093 *.* )
4094 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4095 then :; else
4096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4097 fi
4098 # We set ac_cv_exeext here because the later test for it is not
4099 # safe: cross compilers may not add the suffix if given an `-o'
4100 # argument, so we may need to know it at that point already.
4101 # Even if this section looks crufty: it has the advantage of
4102 # actually working.
4103 break;;
4104 * )
4105 break;;
4106 esac
4107 done
4108 test "$ac_cv_exeext" = no && ac_cv_exeext=
4109
4110 else $as_nop
4111 ac_file=''
4112 fi
4113 if test -z "$ac_file"
4114 then :
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 printf "%s\n" "no" >&6; }
4117 printf "%s\n" "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error 77 "C compiler cannot create executables
4123 See \`config.log' for more details" "$LINENO" 5; }
4124 else $as_nop
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126 printf "%s\n" "yes" >&6; }
4127 fi
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4129 printf %s "checking for C compiler default output file name... " >&6; }
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4131 printf "%s\n" "$ac_file" >&6; }
4132 ac_exeext=$ac_cv_exeext
4133
4134 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4135 ac_clean_files=$ac_clean_files_save
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4137 printf %s "checking for suffix of executables... " >&6; }
4138 if { { ac_try="$ac_link"
4139 case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142 esac
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 printf "%s\n" "$ac_try_echo"; } >&5
4145 (eval "$ac_link") 2>&5
4146 ac_status=$?
4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }
4149 then :
4150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4152 # work properly (i.e., refer to `conftest.exe'), while it won't with
4153 # `rm'.
4154 for ac_file in conftest.exe conftest conftest.*; do
4155 test -f "$ac_file" || continue
4156 case $ac_file in
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4159 break;;
4160 * ) break;;
4161 esac
4162 done
4163 else $as_nop
4164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4166 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4167 See \`config.log' for more details" "$LINENO" 5; }
4168 fi
4169 rm -f conftest conftest$ac_cv_exeext
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4171 printf "%s\n" "$ac_cv_exeext" >&6; }
4172
4173 rm -f conftest.$ac_ext
4174 EXEEXT=$ac_cv_exeext
4175 ac_exeext=$EXEEXT
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #include <stdio.h>
4179 int
4180 main (void)
4181 {
4182 FILE *f = fopen ("conftest.out", "w");
4183 return ferror (f) || fclose (f) != 0;
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 ac_clean_files="$ac_clean_files conftest.out"
4190 # Check that the compiler produces executables we can run. If not, either
4191 # the compiler is broken, or we cross compile.
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4193 printf %s "checking whether we are cross compiling... " >&6; }
4194 if test "$cross_compiling" != yes; then
4195 { { ac_try="$ac_link"
4196 case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199 esac
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 printf "%s\n" "$ac_try_echo"; } >&5
4202 (eval "$ac_link") 2>&5
4203 ac_status=$?
4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }
4206 if { ac_try='./conftest$ac_cv_exeext'
4207 { { case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 printf "%s\n" "$ac_try_echo"; } >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; }; then
4217 cross_compiling=no
4218 else
4219 if test "$cross_compiling" = maybe; then
4220 cross_compiling=yes
4221 else
4222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error 77 "cannot run C compiled programs.
4225 If you meant to cross compile, use \`--host'.
4226 See \`config.log' for more details" "$LINENO" 5; }
4227 fi
4228 fi
4229 fi
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4231 printf "%s\n" "$cross_compiling" >&6; }
4232
4233 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4234 ac_clean_files=$ac_clean_files_save
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4236 printf %s "checking for suffix of object files... " >&6; }
4237 if test ${ac_cv_objext+y}
4238 then :
4239 printf %s "(cached) " >&6
4240 else $as_nop
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243
4244 int
4245 main (void)
4246 {
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.o conftest.obj
4253 if { { ac_try="$ac_compile"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 printf "%s\n" "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4261 ac_status=$?
4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }
4264 then :
4265 for ac_file in conftest.o conftest.obj conftest.*; do
4266 test -f "$ac_file" || continue;
4267 case $ac_file in
4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4270 break;;
4271 esac
4272 done
4273 else $as_nop
4274 printf "%s\n" "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error $? "cannot compute suffix of object files: cannot compile
4280 See \`config.log' for more details" "$LINENO" 5; }
4281 fi
4282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4283 fi
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4285 printf "%s\n" "$ac_cv_objext" >&6; }
4286 OBJEXT=$ac_cv_objext
4287 ac_objext=$OBJEXT
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4289 printf %s "checking whether the compiler supports GNU C... " >&6; }
4290 if test ${ac_cv_c_compiler_gnu+y}
4291 then :
4292 printf %s "(cached) " >&6
4293 else $as_nop
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main (void)
4299 {
4300 #ifndef __GNUC__
4301 choke me
4302 #endif
4303
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"
4309 then :
4310 ac_compiler_gnu=yes
4311 else $as_nop
4312 ac_compiler_gnu=no
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316
4317 fi
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322 if test $ac_compiler_gnu = yes; then
4323 GCC=yes
4324 else
4325 GCC=
4326 fi
4327 ac_test_CFLAGS=${CFLAGS+y}
4328 ac_save_CFLAGS=$CFLAGS
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4330 printf %s "checking whether $CC accepts -g... " >&6; }
4331 if test ${ac_cv_prog_cc_g+y}
4332 then :
4333 printf %s "(cached) " >&6
4334 else $as_nop
4335 ac_save_c_werror_flag=$ac_c_werror_flag
4336 ac_c_werror_flag=yes
4337 ac_cv_prog_cc_g=no
4338 CFLAGS="-g"
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341
4342 int
4343 main (void)
4344 {
4345
4346 ;
4347 return 0;
4348 }
4349 _ACEOF
4350 if ac_fn_c_try_compile "$LINENO"
4351 then :
4352 ac_cv_prog_cc_g=yes
4353 else $as_nop
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357
4358 int
4359 main (void)
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"
4367 then :
4368
4369 else $as_nop
4370 ac_c_werror_flag=$ac_save_c_werror_flag
4371 CFLAGS="-g"
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374
4375 int
4376 main (void)
4377 {
4378
4379 ;
4380 return 0;
4381 }
4382 _ACEOF
4383 if ac_fn_c_try_compile "$LINENO"
4384 then :
4385 ac_cv_prog_cc_g=yes
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4390 fi
4391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4393 fi
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4395 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4396 if test $ac_test_CFLAGS; then
4397 CFLAGS=$ac_save_CFLAGS
4398 elif test $ac_cv_prog_cc_g = yes; then
4399 if test "$GCC" = yes; then
4400 CFLAGS="-g -O2"
4401 else
4402 CFLAGS="-g"
4403 fi
4404 else
4405 if test "$GCC" = yes; then
4406 CFLAGS="-O2"
4407 else
4408 CFLAGS=
4409 fi
4410 fi
4411 ac_prog_cc_stdc=no
4412 if test x$ac_prog_cc_stdc = xno
4413 then :
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4415 printf %s "checking for $CC option to enable C11 features... " >&6; }
4416 if test ${ac_cv_prog_cc_c11+y}
4417 then :
4418 printf %s "(cached) " >&6
4419 else $as_nop
4420 ac_cv_prog_cc_c11=no
4421 ac_save_CC=$CC
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424 $ac_c_conftest_c11_program
4425 _ACEOF
4426 for ac_arg in '' -std=gnu11
4427 do
4428 CC="$ac_save_CC $ac_arg"
4429 if ac_fn_c_try_compile "$LINENO"
4430 then :
4431 ac_cv_prog_cc_c11=$ac_arg
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext conftest.beam
4434 test "x$ac_cv_prog_cc_c11" != "xno" && break
4435 done
4436 rm -f conftest.$ac_ext
4437 CC=$ac_save_CC
4438 fi
4439
4440 if test "x$ac_cv_prog_cc_c11" = xno
4441 then :
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4443 printf "%s\n" "unsupported" >&6; }
4444 else $as_nop
4445 if test "x$ac_cv_prog_cc_c11" = x
4446 then :
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4448 printf "%s\n" "none needed" >&6; }
4449 else $as_nop
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4451 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4452 CC="$CC $ac_cv_prog_cc_c11"
4453 fi
4454 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4455 ac_prog_cc_stdc=c11
4456 fi
4457 fi
4458 if test x$ac_prog_cc_stdc = xno
4459 then :
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4461 printf %s "checking for $CC option to enable C99 features... " >&6; }
4462 if test ${ac_cv_prog_cc_c99+y}
4463 then :
4464 printf %s "(cached) " >&6
4465 else $as_nop
4466 ac_cv_prog_cc_c99=no
4467 ac_save_CC=$CC
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 $ac_c_conftest_c99_program
4471 _ACEOF
4472 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4473 do
4474 CC="$ac_save_CC $ac_arg"
4475 if ac_fn_c_try_compile "$LINENO"
4476 then :
4477 ac_cv_prog_cc_c99=$ac_arg
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.beam
4480 test "x$ac_cv_prog_cc_c99" != "xno" && break
4481 done
4482 rm -f conftest.$ac_ext
4483 CC=$ac_save_CC
4484 fi
4485
4486 if test "x$ac_cv_prog_cc_c99" = xno
4487 then :
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4489 printf "%s\n" "unsupported" >&6; }
4490 else $as_nop
4491 if test "x$ac_cv_prog_cc_c99" = x
4492 then :
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 printf "%s\n" "none needed" >&6; }
4495 else $as_nop
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4497 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4498 CC="$CC $ac_cv_prog_cc_c99"
4499 fi
4500 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4501 ac_prog_cc_stdc=c99
4502 fi
4503 fi
4504 if test x$ac_prog_cc_stdc = xno
4505 then :
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4507 printf %s "checking for $CC option to enable C89 features... " >&6; }
4508 if test ${ac_cv_prog_cc_c89+y}
4509 then :
4510 printf %s "(cached) " >&6
4511 else $as_nop
4512 ac_cv_prog_cc_c89=no
4513 ac_save_CC=$CC
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 $ac_c_conftest_c89_program
4517 _ACEOF
4518 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4519 do
4520 CC="$ac_save_CC $ac_arg"
4521 if ac_fn_c_try_compile "$LINENO"
4522 then :
4523 ac_cv_prog_cc_c89=$ac_arg
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.beam
4526 test "x$ac_cv_prog_cc_c89" != "xno" && break
4527 done
4528 rm -f conftest.$ac_ext
4529 CC=$ac_save_CC
4530 fi
4531
4532 if test "x$ac_cv_prog_cc_c89" = xno
4533 then :
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4535 printf "%s\n" "unsupported" >&6; }
4536 else $as_nop
4537 if test "x$ac_cv_prog_cc_c89" = x
4538 then :
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4540 printf "%s\n" "none needed" >&6; }
4541 else $as_nop
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4543 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4544 CC="$CC $ac_cv_prog_cc_c89"
4545 fi
4546 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4547 ac_prog_cc_stdc=c89
4548 fi
4549 fi
4550
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557
4558 ac_ext=c
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4564 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4565 if test ${am_cv_prog_cc_c_o+y}
4566 then :
4567 printf %s "(cached) " >&6
4568 else $as_nop
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571
4572 int
4573 main (void)
4574 {
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 # Make sure it works both with $CC and with simple cc.
4581 # Following AC_PROG_CC_C_O, we do the test twice because some
4582 # compilers refuse to overwrite an existing .o file with -o,
4583 # though they will create one.
4584 am_cv_prog_cc_c_o=yes
4585 for am_i in 1 2; do
4586 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4587 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } \
4591 && test -f conftest2.$ac_objext; then
4592 : OK
4593 else
4594 am_cv_prog_cc_c_o=no
4595 break
4596 fi
4597 done
4598 rm -f core conftest*
4599 unset am_i
4600 fi
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4602 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4603 if test "$am_cv_prog_cc_c_o" != yes; then
4604 # Losing compiler, so override with the script.
4605 # FIXME: It is wrong to rewrite CC.
4606 # But if we don't then we get into trouble of one sort or another.
4607 # A longer-term fix would be to have automake use am__CC in this case,
4608 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4609 CC="$am_aux_dir/compile $CC"
4610 fi
4611 ac_ext=c
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
4617
4618 depcc="$CC" am_compiler_list=
4619
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4621 printf %s "checking dependency style of $depcc... " >&6; }
4622 if test ${am_cv_CC_dependencies_compiler_type+y}
4623 then :
4624 printf %s "(cached) " >&6
4625 else $as_nop
4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627 # We make a subdir and do the tests there. Otherwise we can end up
4628 # making bogus files that we don't know about and never remove. For
4629 # instance it was reported that on HP-UX the gcc test will end up
4630 # making a dummy file named 'D' -- because '-MD' means "put the output
4631 # in D".
4632 rm -rf conftest.dir
4633 mkdir conftest.dir
4634 # Copy depcomp to subdir because otherwise we won't find it if we're
4635 # using a relative directory.
4636 cp "$am_depcomp" conftest.dir
4637 cd conftest.dir
4638 # We will build objects and dependencies in a subdirectory because
4639 # it helps to detect inapplicable dependency modes. For instance
4640 # both Tru64's cc and ICC support -MD to output dependencies as a
4641 # side effect of compilation, but ICC will put the dependencies in
4642 # the current directory while Tru64 will put them in the object
4643 # directory.
4644 mkdir sub
4645
4646 am_cv_CC_dependencies_compiler_type=none
4647 if test "$am_compiler_list" = ""; then
4648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4649 fi
4650 am__universal=false
4651 case " $depcc " in #(
4652 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4653 esac
4654
4655 for depmode in $am_compiler_list; do
4656 # Setup a source with many dependencies, because some compilers
4657 # like to wrap large dependency lists on column 80 (with \), and
4658 # we should not choose a depcomp mode which is confused by this.
4659 #
4660 # We need to recreate these files for each test, as the compiler may
4661 # overwrite some of them when testing with obscure command lines.
4662 # This happens at least with the AIX C compiler.
4663 : > sub/conftest.c
4664 for i in 1 2 3 4 5 6; do
4665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4666 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4667 # Solaris 10 /bin/sh.
4668 echo '/* dummy */' > sub/conftst$i.h
4669 done
4670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4671
4672 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4673 # mode. It turns out that the SunPro C++ compiler does not properly
4674 # handle '-M -o', and we need to detect this. Also, some Intel
4675 # versions had trouble with output in subdirs.
4676 am__obj=sub/conftest.${OBJEXT-o}
4677 am__minus_obj="-o $am__obj"
4678 case $depmode in
4679 gcc)
4680 # This depmode causes a compiler race in universal mode.
4681 test "$am__universal" = false || continue
4682 ;;
4683 nosideeffect)
4684 # After this tag, mechanisms are not by side-effect, so they'll
4685 # only be used when explicitly requested.
4686 if test "x$enable_dependency_tracking" = xyes; then
4687 continue
4688 else
4689 break
4690 fi
4691 ;;
4692 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4693 # This compiler won't grok '-c -o', but also, the minuso test has
4694 # not run yet. These depmodes are late enough in the game, and
4695 # so weak that their functioning should not be impacted.
4696 am__obj=conftest.${OBJEXT-o}
4697 am__minus_obj=
4698 ;;
4699 none) break ;;
4700 esac
4701 if depmode=$depmode \
4702 source=sub/conftest.c object=$am__obj \
4703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4705 >/dev/null 2>conftest.err &&
4706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4710 # icc doesn't choke on unknown options, it will just issue warnings
4711 # or remarks (even with -Werror). So we grep stderr for any message
4712 # that says an option was ignored or not supported.
4713 # When given -MP, icc 7.0 and 7.1 complain thusly:
4714 # icc: Command line warning: ignoring option '-M'; no argument required
4715 # The diagnosis changed in icc 8.0:
4716 # icc: Command line remark: option '-MP' not supported
4717 if (grep 'ignoring option' conftest.err ||
4718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4719 am_cv_CC_dependencies_compiler_type=$depmode
4720 break
4721 fi
4722 fi
4723 done
4724
4725 cd ..
4726 rm -rf conftest.dir
4727 else
4728 am_cv_CC_dependencies_compiler_type=none
4729 fi
4730
4731 fi
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4733 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4734 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4735
4736 if
4737 test "x$enable_dependency_tracking" != xno \
4738 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4739 am__fastdepCC_TRUE=
4740 am__fastdepCC_FALSE='#'
4741 else
4742 am__fastdepCC_TRUE='#'
4743 am__fastdepCC_FALSE=
4744 fi
4745
4746
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4748 printf %s "checking for a sed that does not truncate output... " >&6; }
4749 if test ${ac_cv_path_SED+y}
4750 then :
4751 printf %s "(cached) " >&6
4752 else $as_nop
4753 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4754 for ac_i in 1 2 3 4 5 6 7; do
4755 ac_script="$ac_script$as_nl$ac_script"
4756 done
4757 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4758 { ac_script=; unset ac_script;}
4759 if test -z "$SED"; then
4760 ac_path_SED_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 case $as_dir in #(((
4767 '') as_dir=./ ;;
4768 */) ;;
4769 *) as_dir=$as_dir/ ;;
4770 esac
4771 for ac_prog in sed gsed
4772 do
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4775 as_fn_executable_p "$ac_path_SED" || continue
4776 # Check for GNU ac_path_SED and select it if it is found.
4777 # Check for GNU $ac_path_SED
4778 case `"$ac_path_SED" --version 2>&1` in
4779 *GNU*)
4780 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4781 *)
4782 ac_count=0
4783 printf %s 0123456789 >"conftest.in"
4784 while :
4785 do
4786 cat "conftest.in" "conftest.in" >"conftest.tmp"
4787 mv "conftest.tmp" "conftest.in"
4788 cp "conftest.in" "conftest.nl"
4789 printf "%s\n" '' >> "conftest.nl"
4790 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4792 as_fn_arith $ac_count + 1 && ac_count=$as_val
4793 if test $ac_count -gt ${ac_path_SED_max-0}; then
4794 # Best one so far, save it but keep looking for a better one
4795 ac_cv_path_SED="$ac_path_SED"
4796 ac_path_SED_max=$ac_count
4797 fi
4798 # 10*(2^10) chars as input seems more than enough
4799 test $ac_count -gt 10 && break
4800 done
4801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4802 esac
4803
4804 $ac_path_SED_found && break 3
4805 done
4806 done
4807 done
4808 IFS=$as_save_IFS
4809 if test -z "$ac_cv_path_SED"; then
4810 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4811 fi
4812 else
4813 ac_cv_path_SED=$SED
4814 fi
4815
4816 fi
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4818 printf "%s\n" "$ac_cv_path_SED" >&6; }
4819 SED="$ac_cv_path_SED"
4820 rm -f conftest.sed
4821
4822 test -z "$SED" && SED=sed
4823 Xsed="$SED -e 1s/^X//"
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4836 printf %s "checking for grep that handles long lines and -e... " >&6; }
4837 if test ${ac_cv_path_GREP+y}
4838 then :
4839 printf %s "(cached) " >&6
4840 else $as_nop
4841 if test -z "$GREP"; then
4842 ac_path_GREP_found=false
4843 # Loop through the user's path and test for each of PROGNAME-LIST
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846 do
4847 IFS=$as_save_IFS
4848 case $as_dir in #(((
4849 '') as_dir=./ ;;
4850 */) ;;
4851 *) as_dir=$as_dir/ ;;
4852 esac
4853 for ac_prog in grep ggrep
4854 do
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4857 as_fn_executable_p "$ac_path_GREP" || continue
4858 # Check for GNU ac_path_GREP and select it if it is found.
4859 # Check for GNU $ac_path_GREP
4860 case `"$ac_path_GREP" --version 2>&1` in
4861 *GNU*)
4862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4863 *)
4864 ac_count=0
4865 printf %s 0123456789 >"conftest.in"
4866 while :
4867 do
4868 cat "conftest.in" "conftest.in" >"conftest.tmp"
4869 mv "conftest.tmp" "conftest.in"
4870 cp "conftest.in" "conftest.nl"
4871 printf "%s\n" 'GREP' >> "conftest.nl"
4872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4874 as_fn_arith $ac_count + 1 && ac_count=$as_val
4875 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4876 # Best one so far, save it but keep looking for a better one
4877 ac_cv_path_GREP="$ac_path_GREP"
4878 ac_path_GREP_max=$ac_count
4879 fi
4880 # 10*(2^10) chars as input seems more than enough
4881 test $ac_count -gt 10 && break
4882 done
4883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4884 esac
4885
4886 $ac_path_GREP_found && break 3
4887 done
4888 done
4889 done
4890 IFS=$as_save_IFS
4891 if test -z "$ac_cv_path_GREP"; then
4892 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4893 fi
4894 else
4895 ac_cv_path_GREP=$GREP
4896 fi
4897
4898 fi
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4900 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4901 GREP="$ac_cv_path_GREP"
4902
4903
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4905 printf %s "checking for egrep... " >&6; }
4906 if test ${ac_cv_path_EGREP+y}
4907 then :
4908 printf %s "(cached) " >&6
4909 else $as_nop
4910 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4911 then ac_cv_path_EGREP="$GREP -E"
4912 else
4913 if test -z "$EGREP"; then
4914 ac_path_EGREP_found=false
4915 # Loop through the user's path and test for each of PROGNAME-LIST
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4918 do
4919 IFS=$as_save_IFS
4920 case $as_dir in #(((
4921 '') as_dir=./ ;;
4922 */) ;;
4923 *) as_dir=$as_dir/ ;;
4924 esac
4925 for ac_prog in egrep
4926 do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4929 as_fn_executable_p "$ac_path_EGREP" || continue
4930 # Check for GNU ac_path_EGREP and select it if it is found.
4931 # Check for GNU $ac_path_EGREP
4932 case `"$ac_path_EGREP" --version 2>&1` in
4933 *GNU*)
4934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4935 *)
4936 ac_count=0
4937 printf %s 0123456789 >"conftest.in"
4938 while :
4939 do
4940 cat "conftest.in" "conftest.in" >"conftest.tmp"
4941 mv "conftest.tmp" "conftest.in"
4942 cp "conftest.in" "conftest.nl"
4943 printf "%s\n" 'EGREP' >> "conftest.nl"
4944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946 as_fn_arith $ac_count + 1 && ac_count=$as_val
4947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4948 # Best one so far, save it but keep looking for a better one
4949 ac_cv_path_EGREP="$ac_path_EGREP"
4950 ac_path_EGREP_max=$ac_count
4951 fi
4952 # 10*(2^10) chars as input seems more than enough
4953 test $ac_count -gt 10 && break
4954 done
4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956 esac
4957
4958 $ac_path_EGREP_found && break 3
4959 done
4960 done
4961 done
4962 IFS=$as_save_IFS
4963 if test -z "$ac_cv_path_EGREP"; then
4964 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4965 fi
4966 else
4967 ac_cv_path_EGREP=$EGREP
4968 fi
4969
4970 fi
4971 fi
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4973 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4974 EGREP="$ac_cv_path_EGREP"
4975
4976
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4978 printf %s "checking for fgrep... " >&6; }
4979 if test ${ac_cv_path_FGREP+y}
4980 then :
4981 printf %s "(cached) " >&6
4982 else $as_nop
4983 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4984 then ac_cv_path_FGREP="$GREP -F"
4985 else
4986 if test -z "$FGREP"; then
4987 ac_path_FGREP_found=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4991 do
4992 IFS=$as_save_IFS
4993 case $as_dir in #(((
4994 '') as_dir=./ ;;
4995 */) ;;
4996 *) as_dir=$as_dir/ ;;
4997 esac
4998 for ac_prog in fgrep
4999 do
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5002 as_fn_executable_p "$ac_path_FGREP" || continue
5003 # Check for GNU ac_path_FGREP and select it if it is found.
5004 # Check for GNU $ac_path_FGREP
5005 case `"$ac_path_FGREP" --version 2>&1` in
5006 *GNU*)
5007 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5008 *)
5009 ac_count=0
5010 printf %s 0123456789 >"conftest.in"
5011 while :
5012 do
5013 cat "conftest.in" "conftest.in" >"conftest.tmp"
5014 mv "conftest.tmp" "conftest.in"
5015 cp "conftest.in" "conftest.nl"
5016 printf "%s\n" 'FGREP' >> "conftest.nl"
5017 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019 as_fn_arith $ac_count + 1 && ac_count=$as_val
5020 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5021 # Best one so far, save it but keep looking for a better one
5022 ac_cv_path_FGREP="$ac_path_FGREP"
5023 ac_path_FGREP_max=$ac_count
5024 fi
5025 # 10*(2^10) chars as input seems more than enough
5026 test $ac_count -gt 10 && break
5027 done
5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5029 esac
5030
5031 $ac_path_FGREP_found && break 3
5032 done
5033 done
5034 done
5035 IFS=$as_save_IFS
5036 if test -z "$ac_cv_path_FGREP"; then
5037 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038 fi
5039 else
5040 ac_cv_path_FGREP=$FGREP
5041 fi
5042
5043 fi
5044 fi
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5046 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5047 FGREP="$ac_cv_path_FGREP"
5048
5049
5050 test -z "$GREP" && GREP=grep
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070 # Check whether --with-gnu-ld was given.
5071 if test ${with_gnu_ld+y}
5072 then :
5073 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5074 else $as_nop
5075 with_gnu_ld=no
5076 fi
5077
5078 ac_prog=ld
5079 if test yes = "$GCC"; then
5080 # Check if gcc -print-prog-name=ld gives a path.
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5082 printf %s "checking for ld used by $CC... " >&6; }
5083 case $host in
5084 *-*-mingw*)
5085 # gcc leaves a trailing carriage return, which upsets mingw
5086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5087 *)
5088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5089 esac
5090 case $ac_prog in
5091 # Accept absolute paths.
5092 [\\/]* | ?:[\\/]*)
5093 re_direlt='/[^/][^/]*/\.\./'
5094 # Canonicalize the pathname of ld
5095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5098 done
5099 test -z "$LD" && LD=$ac_prog
5100 ;;
5101 "")
5102 # If it fails, then pretend we aren't using GCC.
5103 ac_prog=ld
5104 ;;
5105 *)
5106 # If it is relative, then search for the first ld in PATH.
5107 with_gnu_ld=unknown
5108 ;;
5109 esac
5110 elif test yes = "$with_gnu_ld"; then
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5112 printf %s "checking for GNU ld... " >&6; }
5113 else
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5115 printf %s "checking for non-GNU ld... " >&6; }
5116 fi
5117 if test ${lt_cv_path_LD+y}
5118 then :
5119 printf %s "(cached) " >&6
5120 else $as_nop
5121 if test -z "$LD"; then
5122 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5123 for ac_dir in $PATH; do
5124 IFS=$lt_save_ifs
5125 test -z "$ac_dir" && ac_dir=.
5126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5127 lt_cv_path_LD=$ac_dir/$ac_prog
5128 # Check to see if the program is GNU ld. I'd rather use --version,
5129 # but apparently some variants of GNU ld only accept -v.
5130 # Break only if it was the GNU/non-GNU ld that we prefer.
5131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5132 *GNU* | *'with BFD'*)
5133 test no != "$with_gnu_ld" && break
5134 ;;
5135 *)
5136 test yes != "$with_gnu_ld" && break
5137 ;;
5138 esac
5139 fi
5140 done
5141 IFS=$lt_save_ifs
5142 else
5143 lt_cv_path_LD=$LD # Let the user override the test with a path.
5144 fi
5145 fi
5146
5147 LD=$lt_cv_path_LD
5148 if test -n "$LD"; then
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5150 printf "%s\n" "$LD" >&6; }
5151 else
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 printf "%s\n" "no" >&6; }
5154 fi
5155 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5157 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5158 if test ${lt_cv_prog_gnu_ld+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else $as_nop
5162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5163 case `$LD -v 2>&1 </dev/null` in
5164 *GNU* | *'with BFD'*)
5165 lt_cv_prog_gnu_ld=yes
5166 ;;
5167 *)
5168 lt_cv_prog_gnu_ld=no
5169 ;;
5170 esac
5171 fi
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5173 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5174 with_gnu_ld=$lt_cv_prog_gnu_ld
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5185 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5186 if test ${lt_cv_path_NM+y}
5187 then :
5188 printf %s "(cached) " >&6
5189 else $as_nop
5190 if test -n "$NM"; then
5191 # Let the user override the test.
5192 lt_cv_path_NM=$NM
5193 else
5194 lt_nm_to_check=${ac_tool_prefix}nm
5195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5196 lt_nm_to_check="$lt_nm_to_check nm"
5197 fi
5198 for lt_tmp_nm in $lt_nm_to_check; do
5199 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5200 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5201 IFS=$lt_save_ifs
5202 test -z "$ac_dir" && ac_dir=.
5203 tmp_nm=$ac_dir/$lt_tmp_nm
5204 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5205 # Check to see if the nm accepts a BSD-compat flag.
5206 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5207 # nm: unknown option "B" ignored
5208 # Tru64's nm complains that /dev/null is an invalid object file
5209 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5210 case $build_os in
5211 mingw*) lt_bad_file=conftest.nm/nofile ;;
5212 *) lt_bad_file=/dev/null ;;
5213 esac
5214 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5215 *$lt_bad_file* | *'Invalid file or object type'*)
5216 lt_cv_path_NM="$tmp_nm -B"
5217 break 2
5218 ;;
5219 *)
5220 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5221 */dev/null*)
5222 lt_cv_path_NM="$tmp_nm -p"
5223 break 2
5224 ;;
5225 *)
5226 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5227 continue # so that we can try to find one that supports BSD flags
5228 ;;
5229 esac
5230 ;;
5231 esac
5232 fi
5233 done
5234 IFS=$lt_save_ifs
5235 done
5236 : ${lt_cv_path_NM=no}
5237 fi
5238 fi
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5240 printf "%s\n" "$lt_cv_path_NM" >&6; }
5241 if test no != "$lt_cv_path_NM"; then
5242 NM=$lt_cv_path_NM
5243 else
5244 # Didn't find any BSD compatible name lister, look for dumpbin.
5245 if test -n "$DUMPBIN"; then :
5246 # Let the user override the test.
5247 else
5248 if test -n "$ac_tool_prefix"; then
5249 for ac_prog in dumpbin "link -dump"
5250 do
5251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 printf %s "checking for $ac_word... " >&6; }
5255 if test ${ac_cv_prog_DUMPBIN+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else $as_nop
5259 if test -n "$DUMPBIN"; then
5260 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265 IFS=$as_save_IFS
5266 case $as_dir in #(((
5267 '') as_dir=./ ;;
5268 */) ;;
5269 *) as_dir=$as_dir/ ;;
5270 esac
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281 fi
5282 fi
5283 DUMPBIN=$ac_cv_prog_DUMPBIN
5284 if test -n "$DUMPBIN"; then
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5286 printf "%s\n" "$DUMPBIN" >&6; }
5287 else
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 printf "%s\n" "no" >&6; }
5290 fi
5291
5292
5293 test -n "$DUMPBIN" && break
5294 done
5295 fi
5296 if test -z "$DUMPBIN"; then
5297 ac_ct_DUMPBIN=$DUMPBIN
5298 for ac_prog in dumpbin "link -dump"
5299 do
5300 # Extract the first word of "$ac_prog", so it can be a program name with args.
5301 set dummy $ac_prog; ac_word=$2
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 printf %s "checking for $ac_word... " >&6; }
5304 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5305 then :
5306 printf %s "(cached) " >&6
5307 else $as_nop
5308 if test -n "$ac_ct_DUMPBIN"; then
5309 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314 IFS=$as_save_IFS
5315 case $as_dir in #(((
5316 '') as_dir=./ ;;
5317 */) ;;
5318 *) as_dir=$as_dir/ ;;
5319 esac
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5333 if test -n "$ac_ct_DUMPBIN"; then
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5335 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5336 else
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 printf "%s\n" "no" >&6; }
5339 fi
5340
5341
5342 test -n "$ac_ct_DUMPBIN" && break
5343 done
5344
5345 if test "x$ac_ct_DUMPBIN" = x; then
5346 DUMPBIN=":"
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349 yes:)
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352 ac_tool_warned=yes ;;
5353 esac
5354 DUMPBIN=$ac_ct_DUMPBIN
5355 fi
5356 fi
5357
5358 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5359 *COFF*)
5360 DUMPBIN="$DUMPBIN -symbols -headers"
5361 ;;
5362 *)
5363 DUMPBIN=:
5364 ;;
5365 esac
5366 fi
5367
5368 if test : != "$DUMPBIN"; then
5369 NM=$DUMPBIN
5370 fi
5371 fi
5372 test -z "$NM" && NM=nm
5373
5374
5375
5376
5377
5378
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5380 printf %s "checking the name lister ($NM) interface... " >&6; }
5381 if test ${lt_cv_nm_interface+y}
5382 then :
5383 printf %s "(cached) " >&6
5384 else $as_nop
5385 lt_cv_nm_interface="BSD nm"
5386 echo "int some_variable = 0;" > conftest.$ac_ext
5387 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5388 (eval "$ac_compile" 2>conftest.err)
5389 cat conftest.err >&5
5390 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5391 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5392 cat conftest.err >&5
5393 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5394 cat conftest.out >&5
5395 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5396 lt_cv_nm_interface="MS dumpbin"
5397 fi
5398 rm -f conftest*
5399 fi
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5401 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5402
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5404 printf %s "checking whether ln -s works... " >&6; }
5405 LN_S=$as_ln_s
5406 if test "$LN_S" = "ln -s"; then
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 printf "%s\n" "yes" >&6; }
5409 else
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5411 printf "%s\n" "no, using $LN_S" >&6; }
5412 fi
5413
5414 # find the maximum length of command line arguments
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5416 printf %s "checking the maximum length of command line arguments... " >&6; }
5417 if test ${lt_cv_sys_max_cmd_len+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else $as_nop
5421 i=0
5422 teststring=ABCD
5423
5424 case $build_os in
5425 msdosdjgpp*)
5426 # On DJGPP, this test can blow up pretty badly due to problems in libc
5427 # (any single argument exceeding 2000 bytes causes a buffer overrun
5428 # during glob expansion). Even if it were fixed, the result of this
5429 # check would be larger than it should be.
5430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5431 ;;
5432
5433 gnu*)
5434 # Under GNU Hurd, this test is not required because there is
5435 # no limit to the length of command line arguments.
5436 # Libtool will interpret -1 as no limit whatsoever
5437 lt_cv_sys_max_cmd_len=-1;
5438 ;;
5439
5440 cygwin* | mingw* | cegcc*)
5441 # On Win9x/ME, this test blows up -- it succeeds, but takes
5442 # about 5 minutes as the teststring grows exponentially.
5443 # Worse, since 9x/ME are not pre-emptively multitasking,
5444 # you end up with a "frozen" computer, even though with patience
5445 # the test eventually succeeds (with a max line length of 256k).
5446 # Instead, let's just punt: use the minimum linelength reported by
5447 # all of the supported platforms: 8192 (on NT/2K/XP).
5448 lt_cv_sys_max_cmd_len=8192;
5449 ;;
5450
5451 mint*)
5452 # On MiNT this can take a long time and run out of memory.
5453 lt_cv_sys_max_cmd_len=8192;
5454 ;;
5455
5456 amigaos*)
5457 # On AmigaOS with pdksh, this test takes hours, literally.
5458 # So we just punt and use a minimum line length of 8192.
5459 lt_cv_sys_max_cmd_len=8192;
5460 ;;
5461
5462 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5463 # This has been around since 386BSD, at least. Likely further.
5464 if test -x /sbin/sysctl; then
5465 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5466 elif test -x /usr/sbin/sysctl; then
5467 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5468 else
5469 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5470 fi
5471 # And add a safety zone
5472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5474 ;;
5475
5476 interix*)
5477 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5478 lt_cv_sys_max_cmd_len=196608
5479 ;;
5480
5481 os2*)
5482 # The test takes a long time on OS/2.
5483 lt_cv_sys_max_cmd_len=8192
5484 ;;
5485
5486 osf*)
5487 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5488 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5489 # nice to cause kernel panics so lets avoid the loop below.
5490 # First set a reasonable default.
5491 lt_cv_sys_max_cmd_len=16384
5492 #
5493 if test -x /sbin/sysconfig; then
5494 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5495 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5496 esac
5497 fi
5498 ;;
5499 sco3.2v5*)
5500 lt_cv_sys_max_cmd_len=102400
5501 ;;
5502 sysv5* | sco5v6* | sysv4.2uw2*)
5503 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5504 if test -n "$kargmax"; then
5505 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5506 else
5507 lt_cv_sys_max_cmd_len=32768
5508 fi
5509 ;;
5510 *)
5511 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5512 if test -n "$lt_cv_sys_max_cmd_len" && \
5513 test undefined != "$lt_cv_sys_max_cmd_len"; then
5514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5516 else
5517 # Make teststring a little bigger before we do anything with it.
5518 # a 1K string should be a reasonable start.
5519 for i in 1 2 3 4 5 6 7 8; do
5520 teststring=$teststring$teststring
5521 done
5522 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5523 # If test is not a shell built-in, we'll probably end up computing a
5524 # maximum length that is only half of the actual maximum length, but
5525 # we can't tell.
5526 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5527 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5528 test 17 != "$i" # 1/2 MB should be enough
5529 do
5530 i=`expr $i + 1`
5531 teststring=$teststring$teststring
5532 done
5533 # Only check the string length outside the loop.
5534 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5535 teststring=
5536 # Add a significant safety factor because C++ compilers can tack on
5537 # massive amounts of additional arguments before passing them to the
5538 # linker. It appears as though 1/2 is a usable value.
5539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5540 fi
5541 ;;
5542 esac
5543
5544 fi
5545
5546 if test -n "$lt_cv_sys_max_cmd_len"; then
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5548 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5549 else
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5551 printf "%s\n" "none" >&6; }
5552 fi
5553 max_cmd_len=$lt_cv_sys_max_cmd_len
5554
5555
5556
5557
5558
5559
5560 : ${CP="cp -f"}
5561 : ${MV="mv -f"}
5562 : ${RM="rm -f"}
5563
5564 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5565 lt_unset=unset
5566 else
5567 lt_unset=false
5568 fi
5569
5570
5571
5572
5573
5574 # test EBCDIC or ASCII
5575 case `echo X|tr X '\101'` in
5576 A) # ASCII based system
5577 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5578 lt_SP2NL='tr \040 \012'
5579 lt_NL2SP='tr \015\012 \040\040'
5580 ;;
5581 *) # EBCDIC based system
5582 lt_SP2NL='tr \100 \n'
5583 lt_NL2SP='tr \r\n \100\100'
5584 ;;
5585 esac
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5596 printf %s "checking how to convert $build file names to $host format... " >&6; }
5597 if test ${lt_cv_to_host_file_cmd+y}
5598 then :
5599 printf %s "(cached) " >&6
5600 else $as_nop
5601 case $host in
5602 *-*-mingw* )
5603 case $build in
5604 *-*-mingw* ) # actually msys
5605 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5606 ;;
5607 *-*-cygwin* )
5608 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5609 ;;
5610 * ) # otherwise, assume *nix
5611 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5612 ;;
5613 esac
5614 ;;
5615 *-*-cygwin* )
5616 case $build in
5617 *-*-mingw* ) # actually msys
5618 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5619 ;;
5620 *-*-cygwin* )
5621 lt_cv_to_host_file_cmd=func_convert_file_noop
5622 ;;
5623 * ) # otherwise, assume *nix
5624 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5625 ;;
5626 esac
5627 ;;
5628 * ) # unhandled hosts (and "normal" native builds)
5629 lt_cv_to_host_file_cmd=func_convert_file_noop
5630 ;;
5631 esac
5632
5633 fi
5634
5635 to_host_file_cmd=$lt_cv_to_host_file_cmd
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5637 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5638
5639
5640
5641
5642
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5644 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5645 if test ${lt_cv_to_tool_file_cmd+y}
5646 then :
5647 printf %s "(cached) " >&6
5648 else $as_nop
5649 #assume ordinary cross tools, or native build.
5650 lt_cv_to_tool_file_cmd=func_convert_file_noop
5651 case $host in
5652 *-*-mingw* )
5653 case $build in
5654 *-*-mingw* ) # actually msys
5655 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5656 ;;
5657 esac
5658 ;;
5659 esac
5660
5661 fi
5662
5663 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5665 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5666
5667
5668
5669
5670
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5672 printf %s "checking for $LD option to reload object files... " >&6; }
5673 if test ${lt_cv_ld_reload_flag+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else $as_nop
5677 lt_cv_ld_reload_flag='-r'
5678 fi
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5680 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5681 reload_flag=$lt_cv_ld_reload_flag
5682 case $reload_flag in
5683 "" | " "*) ;;
5684 *) reload_flag=" $reload_flag" ;;
5685 esac
5686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687 case $host_os in
5688 cygwin* | mingw* | pw32* | cegcc*)
5689 if test yes != "$GCC"; then
5690 reload_cmds=false
5691 fi
5692 ;;
5693 darwin*)
5694 if test yes = "$GCC"; then
5695 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5696 else
5697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698 fi
5699 ;;
5700 esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 if test -n "$ac_tool_prefix"; then
5711 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5712 set dummy ${ac_tool_prefix}file; ac_word=$2
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 printf %s "checking for $ac_word... " >&6; }
5715 if test ${ac_cv_prog_FILECMD+y}
5716 then :
5717 printf %s "(cached) " >&6
5718 else $as_nop
5719 if test -n "$FILECMD"; then
5720 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 case $as_dir in #(((
5727 '') as_dir=./ ;;
5728 */) ;;
5729 *) as_dir=$as_dir/ ;;
5730 esac
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737 done
5738 done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 FILECMD=$ac_cv_prog_FILECMD
5744 if test -n "$FILECMD"; then
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5746 printf "%s\n" "$FILECMD" >&6; }
5747 else
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 printf "%s\n" "no" >&6; }
5750 fi
5751
5752
5753 fi
5754 if test -z "$ac_cv_prog_FILECMD"; then
5755 ac_ct_FILECMD=$FILECMD
5756 # Extract the first word of "file", so it can be a program name with args.
5757 set dummy file; ac_word=$2
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 printf %s "checking for $ac_word... " >&6; }
5760 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5761 then :
5762 printf %s "(cached) " >&6
5763 else $as_nop
5764 if test -n "$ac_ct_FILECMD"; then
5765 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 case $as_dir in #(((
5772 '') as_dir=./ ;;
5773 */) ;;
5774 *) as_dir=$as_dir/ ;;
5775 esac
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_ac_ct_FILECMD="file"
5779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5789 if test -n "$ac_ct_FILECMD"; then
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5791 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5792 else
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 printf "%s\n" "no" >&6; }
5795 fi
5796
5797 if test "x$ac_ct_FILECMD" = x; then
5798 FILECMD=":"
5799 else
5800 case $cross_compiling:$ac_tool_warned in
5801 yes:)
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5803 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5804 ac_tool_warned=yes ;;
5805 esac
5806 FILECMD=$ac_ct_FILECMD
5807 fi
5808 else
5809 FILECMD="$ac_cv_prog_FILECMD"
5810 fi
5811
5812
5813
5814
5815
5816
5817
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 printf %s "checking for $ac_word... " >&6; }
5823 if test ${ac_cv_prog_OBJDUMP+y}
5824 then :
5825 printf %s "(cached) " >&6
5826 else $as_nop
5827 if test -n "$OBJDUMP"; then
5828 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833 IFS=$as_save_IFS
5834 case $as_dir in #(((
5835 '') as_dir=./ ;;
5836 */) ;;
5837 *) as_dir=$as_dir/ ;;
5838 esac
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5841 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 OBJDUMP=$ac_cv_prog_OBJDUMP
5852 if test -n "$OBJDUMP"; then
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5854 printf "%s\n" "$OBJDUMP" >&6; }
5855 else
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 printf "%s\n" "no" >&6; }
5858 fi
5859
5860
5861 fi
5862 if test -z "$ac_cv_prog_OBJDUMP"; then
5863 ac_ct_OBJDUMP=$OBJDUMP
5864 # Extract the first word of "objdump", so it can be a program name with args.
5865 set dummy objdump; ac_word=$2
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 printf %s "checking for $ac_word... " >&6; }
5868 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5869 then :
5870 printf %s "(cached) " >&6
5871 else $as_nop
5872 if test -n "$ac_ct_OBJDUMP"; then
5873 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878 IFS=$as_save_IFS
5879 case $as_dir in #(((
5880 '') as_dir=./ ;;
5881 */) ;;
5882 *) as_dir=$as_dir/ ;;
5883 esac
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890 done
5891 done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5897 if test -n "$ac_ct_OBJDUMP"; then
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5899 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5900 else
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 printf "%s\n" "no" >&6; }
5903 fi
5904
5905 if test "x$ac_ct_OBJDUMP" = x; then
5906 OBJDUMP="false"
5907 else
5908 case $cross_compiling:$ac_tool_warned in
5909 yes:)
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912 ac_tool_warned=yes ;;
5913 esac
5914 OBJDUMP=$ac_ct_OBJDUMP
5915 fi
5916 else
5917 OBJDUMP="$ac_cv_prog_OBJDUMP"
5918 fi
5919
5920 test -z "$OBJDUMP" && OBJDUMP=objdump
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5931 printf %s "checking how to recognize dependent libraries... " >&6; }
5932 if test ${lt_cv_deplibs_check_method+y}
5933 then :
5934 printf %s "(cached) " >&6
5935 else $as_nop
5936 lt_cv_file_magic_cmd='$MAGIC_CMD'
5937 lt_cv_file_magic_test_file=
5938 lt_cv_deplibs_check_method='unknown'
5939 # Need to set the preceding variable on all platforms that support
5940 # interlibrary dependencies.
5941 # 'none' -- dependencies not supported.
5942 # 'unknown' -- same as none, but documents that we really don't know.
5943 # 'pass_all' -- all dependencies passed with no checks.
5944 # 'test_compile' -- check by making test program.
5945 # 'file_magic [[regex]]' -- check by looking for files in library path
5946 # that responds to the $file_magic_cmd with a given extended regex.
5947 # If you have 'file' or equivalent on your system and you're not sure
5948 # whether 'pass_all' will *always* work, you probably want this one.
5949
5950 case $host_os in
5951 aix[4-9]*)
5952 lt_cv_deplibs_check_method=pass_all
5953 ;;
5954
5955 beos*)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958
5959 bsdi[45]*)
5960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5961 lt_cv_file_magic_cmd='$FILECMD -L'
5962 lt_cv_file_magic_test_file=/shlib/libc.so
5963 ;;
5964
5965 cygwin*)
5966 # func_win32_libid is a shell function defined in ltmain.sh
5967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5968 lt_cv_file_magic_cmd='func_win32_libid'
5969 ;;
5970
5971 mingw* | pw32*)
5972 # Base MSYS/MinGW do not provide the 'file' command needed by
5973 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5974 # unless we find 'file', for example because we are cross-compiling.
5975 if ( file / ) >/dev/null 2>&1; then
5976 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5977 lt_cv_file_magic_cmd='func_win32_libid'
5978 else
5979 # Keep this pattern in sync with the one in func_win32_libid.
5980 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5981 lt_cv_file_magic_cmd='$OBJDUMP -f'
5982 fi
5983 ;;
5984
5985 cegcc*)
5986 # use the weaker test based on 'objdump'. See mingw*.
5987 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5988 lt_cv_file_magic_cmd='$OBJDUMP -f'
5989 ;;
5990
5991 darwin* | rhapsody*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995 freebsd* | dragonfly* | midnightbsd*)
5996 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5997 case $host_cpu in
5998 i*86 )
5999 # Not sure whether the presence of OpenBSD here was a mistake.
6000 # Let's accept both of them until this is cleared up.
6001 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6002 lt_cv_file_magic_cmd=$FILECMD
6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6004 ;;
6005 esac
6006 else
6007 lt_cv_deplibs_check_method=pass_all
6008 fi
6009 ;;
6010
6011 haiku*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015 hpux10.20* | hpux11*)
6016 lt_cv_file_magic_cmd=$FILECMD
6017 case $host_cpu in
6018 ia64*)
6019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6020 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6021 ;;
6022 hppa*64*)
6023 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]'
6024 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6025 ;;
6026 *)
6027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6028 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6029 ;;
6030 esac
6031 ;;
6032
6033 interix[3-9]*)
6034 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6036 ;;
6037
6038 irix5* | irix6* | nonstopux*)
6039 case $LD in
6040 *-32|*"-32 ") libmagic=32-bit;;
6041 *-n32|*"-n32 ") libmagic=N32;;
6042 *-64|*"-64 ") libmagic=64-bit;;
6043 *) libmagic=never-match;;
6044 esac
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047
6048 # This must be glibc/ELF.
6049 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052
6053 netbsd*)
6054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6056 else
6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6058 fi
6059 ;;
6060
6061 newos6*)
6062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6063 lt_cv_file_magic_cmd=$FILECMD
6064 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6065 ;;
6066
6067 *nto* | *qnx*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071 openbsd* | bitrig*)
6072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6074 else
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6076 fi
6077 ;;
6078
6079 osf3* | osf4* | osf5*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 rdos*)
6084 lt_cv_deplibs_check_method=pass_all
6085 ;;
6086
6087 solaris*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090
6091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 sysv4 | sysv4.3*)
6096 case $host_vendor in
6097 motorola)
6098 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]'
6099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6100 ;;
6101 ncr)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104 sequent)
6105 lt_cv_file_magic_cmd='/bin/file'
6106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6107 ;;
6108 sni)
6109 lt_cv_file_magic_cmd='/bin/file'
6110 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6111 lt_cv_file_magic_test_file=/lib/libc.so
6112 ;;
6113 siemens)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116 pc)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119 esac
6120 ;;
6121
6122 tpf*)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125 os2*)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128 esac
6129
6130 fi
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6132 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6133
6134 file_magic_glob=
6135 want_nocaseglob=no
6136 if test "$build" = "$host"; then
6137 case $host_os in
6138 mingw* | pw32*)
6139 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6140 want_nocaseglob=yes
6141 else
6142 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6143 fi
6144 ;;
6145 esac
6146 fi
6147
6148 file_magic_cmd=$lt_cv_file_magic_cmd
6149 deplibs_check_method=$lt_cv_deplibs_check_method
6150 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 printf %s "checking for $ac_word... " >&6; }
6178 if test ${ac_cv_prog_DLLTOOL+y}
6179 then :
6180 printf %s "(cached) " >&6
6181 else $as_nop
6182 if test -n "$DLLTOOL"; then
6183 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188 IFS=$as_save_IFS
6189 case $as_dir in #(((
6190 '') as_dir=./ ;;
6191 */) ;;
6192 *) as_dir=$as_dir/ ;;
6193 esac
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 DLLTOOL=$ac_cv_prog_DLLTOOL
6207 if test -n "$DLLTOOL"; then
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6209 printf "%s\n" "$DLLTOOL" >&6; }
6210 else
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 printf "%s\n" "no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$ac_cv_prog_DLLTOOL"; then
6218 ac_ct_DLLTOOL=$DLLTOOL
6219 # Extract the first word of "dlltool", so it can be a program name with args.
6220 set dummy dlltool; ac_word=$2
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 printf %s "checking for $ac_word... " >&6; }
6223 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6224 then :
6225 printf %s "(cached) " >&6
6226 else $as_nop
6227 if test -n "$ac_ct_DLLTOOL"; then
6228 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 case $as_dir in #(((
6235 '') as_dir=./ ;;
6236 */) ;;
6237 *) as_dir=$as_dir/ ;;
6238 esac
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6252 if test -n "$ac_ct_DLLTOOL"; then
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6254 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6255 else
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 printf "%s\n" "no" >&6; }
6258 fi
6259
6260 if test "x$ac_ct_DLLTOOL" = x; then
6261 DLLTOOL="false"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 DLLTOOL=$ac_ct_DLLTOOL
6270 fi
6271 else
6272 DLLTOOL="$ac_cv_prog_DLLTOOL"
6273 fi
6274
6275 test -z "$DLLTOOL" && DLLTOOL=dlltool
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6287 printf %s "checking how to associate runtime and link libraries... " >&6; }
6288 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6289 then :
6290 printf %s "(cached) " >&6
6291 else $as_nop
6292 lt_cv_sharedlib_from_linklib_cmd='unknown'
6293
6294 case $host_os in
6295 cygwin* | mingw* | pw32* | cegcc*)
6296 # two different shell functions defined in ltmain.sh;
6297 # decide which one to use based on capabilities of $DLLTOOL
6298 case `$DLLTOOL --help 2>&1` in
6299 *--identify-strict*)
6300 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6301 ;;
6302 *)
6303 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6304 ;;
6305 esac
6306 ;;
6307 *)
6308 # fallback: assume linklib IS sharedlib
6309 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6310 ;;
6311 esac
6312
6313 fi
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6315 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6316 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6317 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6318
6319
6320
6321
6322
6323
6324
6325
6326 if test -n "$ac_tool_prefix"; then
6327 for ac_prog in ar
6328 do
6329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 printf %s "checking for $ac_word... " >&6; }
6333 if test ${ac_cv_prog_AR+y}
6334 then :
6335 printf %s "(cached) " >&6
6336 else $as_nop
6337 if test -n "$AR"; then
6338 ac_cv_prog_AR="$AR" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 case $as_dir in #(((
6345 '') as_dir=./ ;;
6346 */) ;;
6347 *) as_dir=$as_dir/ ;;
6348 esac
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 AR=$ac_cv_prog_AR
6362 if test -n "$AR"; then
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6364 printf "%s\n" "$AR" >&6; }
6365 else
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 printf "%s\n" "no" >&6; }
6368 fi
6369
6370
6371 test -n "$AR" && break
6372 done
6373 fi
6374 if test -z "$AR"; then
6375 ac_ct_AR=$AR
6376 for ac_prog in ar
6377 do
6378 # Extract the first word of "$ac_prog", so it can be a program name with args.
6379 set dummy $ac_prog; ac_word=$2
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 printf %s "checking for $ac_word... " >&6; }
6382 if test ${ac_cv_prog_ac_ct_AR+y}
6383 then :
6384 printf %s "(cached) " >&6
6385 else $as_nop
6386 if test -n "$ac_ct_AR"; then
6387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392 IFS=$as_save_IFS
6393 case $as_dir in #(((
6394 '') as_dir=./ ;;
6395 */) ;;
6396 *) as_dir=$as_dir/ ;;
6397 esac
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_ac_ct_AR="$ac_prog"
6401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6411 if test -n "$ac_ct_AR"; then
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6413 printf "%s\n" "$ac_ct_AR" >&6; }
6414 else
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 printf "%s\n" "no" >&6; }
6417 fi
6418
6419
6420 test -n "$ac_ct_AR" && break
6421 done
6422
6423 if test "x$ac_ct_AR" = x; then
6424 AR="false"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432 AR=$ac_ct_AR
6433 fi
6434 fi
6435
6436 : ${AR=ar}
6437
6438
6439
6440
6441
6442
6443 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6444 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6445 # higher priority because thats what people were doing historically (setting
6446 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6447 # variable obsoleted/removed.
6448
6449 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6450 lt_ar_flags=$AR_FLAGS
6451
6452
6453
6454
6455
6456
6457 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6458 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6459
6460
6461
6462
6463
6464
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6466 printf %s "checking for archiver @FILE support... " >&6; }
6467 if test ${lt_cv_ar_at_file+y}
6468 then :
6469 printf %s "(cached) " >&6
6470 else $as_nop
6471 lt_cv_ar_at_file=no
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474
6475 int
6476 main (void)
6477 {
6478
6479 ;
6480 return 0;
6481 }
6482 _ACEOF
6483 if ac_fn_c_try_compile "$LINENO"
6484 then :
6485 echo conftest.$ac_objext > conftest.lst
6486 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6488 (eval $lt_ar_try) 2>&5
6489 ac_status=$?
6490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6491 test $ac_status = 0; }
6492 if test 0 -eq "$ac_status"; then
6493 # Ensure the archiver fails upon bogus file names.
6494 rm -f conftest.$ac_objext libconftest.a
6495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6496 (eval $lt_ar_try) 2>&5
6497 ac_status=$?
6498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6499 test $ac_status = 0; }
6500 if test 0 -ne "$ac_status"; then
6501 lt_cv_ar_at_file=@
6502 fi
6503 fi
6504 rm -f conftest.* libconftest.a
6505
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6508
6509 fi
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6511 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6512
6513 if test no = "$lt_cv_ar_at_file"; then
6514 archiver_list_spec=
6515 else
6516 archiver_list_spec=$lt_cv_ar_at_file
6517 fi
6518
6519
6520
6521
6522
6523
6524
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}strip; ac_word=$2
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 printf %s "checking for $ac_word... " >&6; }
6530 if test ${ac_cv_prog_STRIP+y}
6531 then :
6532 printf %s "(cached) " >&6
6533 else $as_nop
6534 if test -n "$STRIP"; then
6535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540 IFS=$as_save_IFS
6541 case $as_dir in #(((
6542 '') as_dir=./ ;;
6543 */) ;;
6544 *) as_dir=$as_dir/ ;;
6545 esac
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 STRIP=$ac_cv_prog_STRIP
6559 if test -n "$STRIP"; then
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6561 printf "%s\n" "$STRIP" >&6; }
6562 else
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 printf "%s\n" "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_STRIP"; then
6570 ac_ct_STRIP=$STRIP
6571 # Extract the first word of "strip", so it can be a program name with args.
6572 set dummy strip; ac_word=$2
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 printf %s "checking for $ac_word... " >&6; }
6575 if test ${ac_cv_prog_ac_ct_STRIP+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else $as_nop
6579 if test -n "$ac_ct_STRIP"; then
6580 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585 IFS=$as_save_IFS
6586 case $as_dir in #(((
6587 '') as_dir=./ ;;
6588 */) ;;
6589 *) as_dir=$as_dir/ ;;
6590 esac
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_ac_ct_STRIP="strip"
6594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6604 if test -n "$ac_ct_STRIP"; then
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6606 printf "%s\n" "$ac_ct_STRIP" >&6; }
6607 else
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 printf "%s\n" "no" >&6; }
6610 fi
6611
6612 if test "x$ac_ct_STRIP" = x; then
6613 STRIP=":"
6614 else
6615 case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621 STRIP=$ac_ct_STRIP
6622 fi
6623 else
6624 STRIP="$ac_cv_prog_STRIP"
6625 fi
6626
6627 test -z "$STRIP" && STRIP=:
6628
6629
6630
6631
6632
6633
6634 if test -n "$ac_tool_prefix"; then
6635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 printf %s "checking for $ac_word... " >&6; }
6639 if test ${ac_cv_prog_RANLIB+y}
6640 then :
6641 printf %s "(cached) " >&6
6642 else $as_nop
6643 if test -n "$RANLIB"; then
6644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 case $as_dir in #(((
6651 '') as_dir=./ ;;
6652 */) ;;
6653 *) as_dir=$as_dir/ ;;
6654 esac
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6670 printf "%s\n" "$RANLIB" >&6; }
6671 else
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 printf "%s\n" "no" >&6; }
6674 fi
6675
6676
6677 fi
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679 ac_ct_RANLIB=$RANLIB
6680 # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib; ac_word=$2
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 printf %s "checking for $ac_word... " >&6; }
6684 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6685 then :
6686 printf %s "(cached) " >&6
6687 else $as_nop
6688 if test -n "$ac_ct_RANLIB"; then
6689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 case $as_dir in #(((
6696 '') as_dir=./ ;;
6697 */) ;;
6698 *) as_dir=$as_dir/ ;;
6699 esac
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_ac_ct_RANLIB="ranlib"
6703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6713 if test -n "$ac_ct_RANLIB"; then
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6715 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6716 else
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 printf "%s\n" "no" >&6; }
6719 fi
6720
6721 if test "x$ac_ct_RANLIB" = x; then
6722 RANLIB=":"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 RANLIB=$ac_ct_RANLIB
6731 fi
6732 else
6733 RANLIB="$ac_cv_prog_RANLIB"
6734 fi
6735
6736 test -z "$RANLIB" && RANLIB=:
6737
6738
6739
6740
6741
6742
6743 # Determine commands to create old-style static archives.
6744 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6745 old_postinstall_cmds='chmod 644 $oldlib'
6746 old_postuninstall_cmds=
6747
6748 if test -n "$RANLIB"; then
6749 case $host_os in
6750 bitrig* | openbsd*)
6751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6752 ;;
6753 *)
6754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6755 ;;
6756 esac
6757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6758 fi
6759
6760 case $host_os in
6761 darwin*)
6762 lock_old_archive_extraction=yes ;;
6763 *)
6764 lock_old_archive_extraction=no ;;
6765 esac
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 # If no C compiler was specified, use CC.
6806 LTCC=${LTCC-"$CC"}
6807
6808 # If no C compiler flags were specified, use CFLAGS.
6809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6810
6811 # Allow CC to be a program name with arguments.
6812 compiler=$CC
6813
6814
6815 # Check for command to grab the raw symbol name followed by C symbol from nm.
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6817 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6818 if test ${lt_cv_sys_global_symbol_pipe+y}
6819 then :
6820 printf %s "(cached) " >&6
6821 else $as_nop
6822
6823 # These are sane defaults that work on at least a few old systems.
6824 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6825
6826 # Character class describing NM global symbol codes.
6827 symcode='[BCDEGRST]'
6828
6829 # Regexp to match symbols that can be accessed directly from C.
6830 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6831
6832 # Define system-specific variables.
6833 case $host_os in
6834 aix*)
6835 symcode='[BCDT]'
6836 ;;
6837 cygwin* | mingw* | pw32* | cegcc*)
6838 symcode='[ABCDGISTW]'
6839 ;;
6840 hpux*)
6841 if test ia64 = "$host_cpu"; then
6842 symcode='[ABCDEGRST]'
6843 fi
6844 ;;
6845 irix* | nonstopux*)
6846 symcode='[BCDEGRST]'
6847 ;;
6848 osf*)
6849 symcode='[BCDEGQRST]'
6850 ;;
6851 solaris*)
6852 symcode='[BDRT]'
6853 ;;
6854 sco3.2v5*)
6855 symcode='[DT]'
6856 ;;
6857 sysv4.2uw2*)
6858 symcode='[DT]'
6859 ;;
6860 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6861 symcode='[ABDT]'
6862 ;;
6863 sysv4)
6864 symcode='[DFNSTU]'
6865 ;;
6866 esac
6867
6868 # If we're using GNU nm, then use its standard symbol codes.
6869 case `$NM -V 2>&1` in
6870 *GNU* | *'with BFD'*)
6871 symcode='[ABCDGIRSTW]' ;;
6872 esac
6873
6874 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6875 # Gets list of data symbols to import.
6876 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6877 # Adjust the below global symbol transforms to fixup imported variables.
6878 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6879 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6880 lt_c_name_lib_hook="\
6881 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6882 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6883 else
6884 # Disable hooks by default.
6885 lt_cv_sys_global_symbol_to_import=
6886 lt_cdecl_hook=
6887 lt_c_name_hook=
6888 lt_c_name_lib_hook=
6889 fi
6890
6891 # Transform an extracted symbol line into a proper C declaration.
6892 # Some systems (esp. on ia64) link data and code symbols differently,
6893 # so use this general approach.
6894 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6895 $lt_cdecl_hook\
6896 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6897 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6898
6899 # Transform an extracted symbol line into symbol name and symbol address
6900 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6901 $lt_c_name_hook\
6902 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6903 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6904
6905 # Transform an extracted symbol line into symbol name with lib prefix and
6906 # symbol address.
6907 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6908 $lt_c_name_lib_hook\
6909 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6910 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6911 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6912
6913 # Handle CRLF in mingw tool chain
6914 opt_cr=
6915 case $build_os in
6916 mingw*)
6917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6918 ;;
6919 esac
6920
6921 # Try without a prefix underscore, then with it.
6922 for ac_symprfx in "" "_"; do
6923
6924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6925 symxfrm="\\1 $ac_symprfx\\2 \\2"
6926
6927 # Write the raw and C identifiers.
6928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6929 # Fake it for dumpbin and say T for any non-static function,
6930 # D for any global variable and I for any imported variable.
6931 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6932 # which start with @ or ?.
6933 lt_cv_sys_global_symbol_pipe="$AWK '"\
6934 " {last_section=section; section=\$ 3};"\
6935 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6936 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6937 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6938 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6939 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6940 " \$ 0!~/External *\|/{next};"\
6941 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6942 " {if(hide[section]) next};"\
6943 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6944 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6945 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6946 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6947 " ' prfx=^$ac_symprfx"
6948 else
6949 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6950 fi
6951 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6952
6953 # Check to see that the pipe works correctly.
6954 pipe_works=no
6955
6956 rm -f conftest*
6957 cat > conftest.$ac_ext <<_LT_EOF
6958 #ifdef __cplusplus
6959 extern "C" {
6960 #endif
6961 char nm_test_var;
6962 void nm_test_func(void);
6963 void nm_test_func(void){}
6964 #ifdef __cplusplus
6965 }
6966 #endif
6967 int main(){nm_test_var='a';nm_test_func();return(0);}
6968 _LT_EOF
6969
6970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6971 (eval $ac_compile) 2>&5
6972 ac_status=$?
6973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; }; then
6975 # Now try to grab the symbols.
6976 nlist=conftest.nm
6977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6978 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6979 ac_status=$?
6980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981 test $ac_status = 0; } && test -s "$nlist"; then
6982 # Try sorting and uniquifying the output.
6983 if sort "$nlist" | uniq > "$nlist"T; then
6984 mv -f "$nlist"T "$nlist"
6985 else
6986 rm -f "$nlist"T
6987 fi
6988
6989 # Make sure that we snagged all the symbols we need.
6990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6992 cat <<_LT_EOF > conftest.$ac_ext
6993 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6994 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6995 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6996 relocations are performed -- see ld's documentation on pseudo-relocs. */
6997 # define LT_DLSYM_CONST
6998 #elif defined __osf__
6999 /* This system does not cope well with relocations in const data. */
7000 # define LT_DLSYM_CONST
7001 #else
7002 # define LT_DLSYM_CONST const
7003 #endif
7004
7005 #ifdef __cplusplus
7006 extern "C" {
7007 #endif
7008
7009 _LT_EOF
7010 # Now generate the symbol file.
7011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7012
7013 cat <<_LT_EOF >> conftest.$ac_ext
7014
7015 /* The mapping between symbol names and symbols. */
7016 LT_DLSYM_CONST struct {
7017 const char *name;
7018 void *address;
7019 }
7020 lt__PROGRAM__LTX_preloaded_symbols[] =
7021 {
7022 { "@PROGRAM@", (void *) 0 },
7023 _LT_EOF
7024 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7025 cat <<\_LT_EOF >> conftest.$ac_ext
7026 {0, (void *) 0}
7027 };
7028
7029 /* This works around a problem in FreeBSD linker */
7030 #ifdef FREEBSD_WORKAROUND
7031 static const void *lt_preloaded_setup() {
7032 return lt__PROGRAM__LTX_preloaded_symbols;
7033 }
7034 #endif
7035
7036 #ifdef __cplusplus
7037 }
7038 #endif
7039 _LT_EOF
7040 # Now try linking the two files.
7041 mv conftest.$ac_objext conftstm.$ac_objext
7042 lt_globsym_save_LIBS=$LIBS
7043 lt_globsym_save_CFLAGS=$CFLAGS
7044 LIBS=conftstm.$ac_objext
7045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7047 (eval $ac_link) 2>&5
7048 ac_status=$?
7049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7050 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7051 pipe_works=yes
7052 fi
7053 LIBS=$lt_globsym_save_LIBS
7054 CFLAGS=$lt_globsym_save_CFLAGS
7055 else
7056 echo "cannot find nm_test_func in $nlist" >&5
7057 fi
7058 else
7059 echo "cannot find nm_test_var in $nlist" >&5
7060 fi
7061 else
7062 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7063 fi
7064 else
7065 echo "$progname: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7067 fi
7068 rm -rf conftest* conftst*
7069
7070 # Do not use the global_symbol_pipe unless it works.
7071 if test yes = "$pipe_works"; then
7072 break
7073 else
7074 lt_cv_sys_global_symbol_pipe=
7075 fi
7076 done
7077
7078 fi
7079
7080 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7081 lt_cv_sys_global_symbol_to_cdecl=
7082 fi
7083 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7085 printf "%s\n" "failed" >&6; }
7086 else
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7088 printf "%s\n" "ok" >&6; }
7089 fi
7090
7091 # Response file support.
7092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7093 nm_file_list_spec='@'
7094 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7095 nm_file_list_spec='@'
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7135 printf %s "checking for sysroot... " >&6; }
7136
7137 # Check whether --with-sysroot was given.
7138 if test ${with_sysroot+y}
7139 then :
7140 withval=$with_sysroot;
7141 else $as_nop
7142 with_sysroot=no
7143 fi
7144
7145
7146 lt_sysroot=
7147 case $with_sysroot in #(
7148 yes)
7149 if test yes = "$GCC"; then
7150 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7151 fi
7152 ;; #(
7153 /*)
7154 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7155 ;; #(
7156 no|'')
7157 ;; #(
7158 *)
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7160 printf "%s\n" "$with_sysroot" >&6; }
7161 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7162 ;;
7163 esac
7164
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7166 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7167
7168
7169
7170
7171
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7173 printf %s "checking for a working dd... " >&6; }
7174 if test ${ac_cv_path_lt_DD+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else $as_nop
7178 printf 0123456789abcdef0123456789abcdef >conftest.i
7179 cat conftest.i conftest.i >conftest2.i
7180 : ${lt_DD:=$DD}
7181 if test -z "$lt_DD"; then
7182 ac_path_lt_DD_found=false
7183 # Loop through the user's path and test for each of PROGNAME-LIST
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 case $as_dir in #(((
7189 '') as_dir=./ ;;
7190 */) ;;
7191 *) as_dir=$as_dir/ ;;
7192 esac
7193 for ac_prog in dd
7194 do
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7197 as_fn_executable_p "$ac_path_lt_DD" || continue
7198 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7199 cmp -s conftest.i conftest.out \
7200 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7201 fi
7202 $ac_path_lt_DD_found && break 3
7203 done
7204 done
7205 done
7206 IFS=$as_save_IFS
7207 if test -z "$ac_cv_path_lt_DD"; then
7208 :
7209 fi
7210 else
7211 ac_cv_path_lt_DD=$lt_DD
7212 fi
7213
7214 rm -f conftest.i conftest2.i conftest.out
7215 fi
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7217 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7218
7219
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7221 printf %s "checking how to truncate binary pipes... " >&6; }
7222 if test ${lt_cv_truncate_bin+y}
7223 then :
7224 printf %s "(cached) " >&6
7225 else $as_nop
7226 printf 0123456789abcdef0123456789abcdef >conftest.i
7227 cat conftest.i conftest.i >conftest2.i
7228 lt_cv_truncate_bin=
7229 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7230 cmp -s conftest.i conftest.out \
7231 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7232 fi
7233 rm -f conftest.i conftest2.i conftest.out
7234 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7235 fi
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7237 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7238
7239
7240
7241
7242
7243
7244
7245 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7246 func_cc_basename ()
7247 {
7248 for cc_temp in $*""; do
7249 case $cc_temp in
7250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7252 \-*) ;;
7253 *) break;;
7254 esac
7255 done
7256 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7257 }
7258
7259 # Check whether --enable-libtool-lock was given.
7260 if test ${enable_libtool_lock+y}
7261 then :
7262 enableval=$enable_libtool_lock;
7263 fi
7264
7265 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7266
7267 # Some flags need to be propagated to the compiler or linker for good
7268 # libtool support.
7269 case $host in
7270 ia64-*-hpux*)
7271 # Find out what ABI is being produced by ac_compile, and set mode
7272 # options accordingly.
7273 echo 'int i;' > conftest.$ac_ext
7274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7275 (eval $ac_compile) 2>&5
7276 ac_status=$?
7277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7278 test $ac_status = 0; }; then
7279 case `$FILECMD conftest.$ac_objext` in
7280 *ELF-32*)
7281 HPUX_IA64_MODE=32
7282 ;;
7283 *ELF-64*)
7284 HPUX_IA64_MODE=64
7285 ;;
7286 esac
7287 fi
7288 rm -rf conftest*
7289 ;;
7290 *-*-irix6*)
7291 # Find out what ABI is being produced by ac_compile, and set linker
7292 # options accordingly.
7293 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7295 (eval $ac_compile) 2>&5
7296 ac_status=$?
7297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; }; then
7299 if test yes = "$lt_cv_prog_gnu_ld"; then
7300 case `$FILECMD conftest.$ac_objext` in
7301 *32-bit*)
7302 LD="${LD-ld} -melf32bsmip"
7303 ;;
7304 *N32*)
7305 LD="${LD-ld} -melf32bmipn32"
7306 ;;
7307 *64-bit*)
7308 LD="${LD-ld} -melf64bmip"
7309 ;;
7310 esac
7311 else
7312 case `$FILECMD conftest.$ac_objext` in
7313 *32-bit*)
7314 LD="${LD-ld} -32"
7315 ;;
7316 *N32*)
7317 LD="${LD-ld} -n32"
7318 ;;
7319 *64-bit*)
7320 LD="${LD-ld} -64"
7321 ;;
7322 esac
7323 fi
7324 fi
7325 rm -rf conftest*
7326 ;;
7327
7328 mips64*-*linux*)
7329 # Find out what ABI is being produced by ac_compile, and set linker
7330 # options accordingly.
7331 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333 (eval $ac_compile) 2>&5
7334 ac_status=$?
7335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 emul=elf
7338 case `$FILECMD conftest.$ac_objext` in
7339 *32-bit*)
7340 emul="${emul}32"
7341 ;;
7342 *64-bit*)
7343 emul="${emul}64"
7344 ;;
7345 esac
7346 case `$FILECMD conftest.$ac_objext` in
7347 *MSB*)
7348 emul="${emul}btsmip"
7349 ;;
7350 *LSB*)
7351 emul="${emul}ltsmip"
7352 ;;
7353 esac
7354 case `$FILECMD conftest.$ac_objext` in
7355 *N32*)
7356 emul="${emul}n32"
7357 ;;
7358 esac
7359 LD="${LD-ld} -m $emul"
7360 fi
7361 rm -rf conftest*
7362 ;;
7363
7364 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7365 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7366 # Find out what ABI is being produced by ac_compile, and set linker
7367 # options accordingly. Note that the listed cases only cover the
7368 # situations where additional linker options are needed (such as when
7369 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7370 # vice versa); the common cases where no linker options are needed do
7371 # not appear in the list.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
7376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `$FILECMD conftest.o` in
7379 *32-bit*)
7380 case $host in
7381 x86_64-*kfreebsd*-gnu)
7382 LD="${LD-ld} -m elf_i386_fbsd"
7383 ;;
7384 x86_64-*linux*)
7385 case `$FILECMD conftest.o` in
7386 *x86-64*)
7387 LD="${LD-ld} -m elf32_x86_64"
7388 ;;
7389 *)
7390 LD="${LD-ld} -m elf_i386"
7391 ;;
7392 esac
7393 ;;
7394 powerpc64le-*linux*)
7395 LD="${LD-ld} -m elf32lppclinux"
7396 ;;
7397 powerpc64-*linux*)
7398 LD="${LD-ld} -m elf32ppclinux"
7399 ;;
7400 s390x-*linux*)
7401 LD="${LD-ld} -m elf_s390"
7402 ;;
7403 sparc64-*linux*)
7404 LD="${LD-ld} -m elf32_sparc"
7405 ;;
7406 esac
7407 ;;
7408 *64-bit*)
7409 case $host in
7410 x86_64-*kfreebsd*-gnu)
7411 LD="${LD-ld} -m elf_x86_64_fbsd"
7412 ;;
7413 x86_64-*linux*)
7414 LD="${LD-ld} -m elf_x86_64"
7415 ;;
7416 powerpcle-*linux*)
7417 LD="${LD-ld} -m elf64lppc"
7418 ;;
7419 powerpc-*linux*)
7420 LD="${LD-ld} -m elf64ppc"
7421 ;;
7422 s390*-*linux*|s390*-*tpf*)
7423 LD="${LD-ld} -m elf64_s390"
7424 ;;
7425 sparc*-*linux*)
7426 LD="${LD-ld} -m elf64_sparc"
7427 ;;
7428 esac
7429 ;;
7430 esac
7431 fi
7432 rm -rf conftest*
7433 ;;
7434
7435 *-*-sco3.2v5*)
7436 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7437 SAVE_CFLAGS=$CFLAGS
7438 CFLAGS="$CFLAGS -belf"
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7440 printf %s "checking whether the C compiler needs -belf... " >&6; }
7441 if test ${lt_cv_cc_needs_belf+y}
7442 then :
7443 printf %s "(cached) " >&6
7444 else $as_nop
7445 ac_ext=c
7446 ac_cpp='$CPP $CPPFLAGS'
7447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453
7454 int
7455 main (void)
7456 {
7457
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_link "$LINENO"
7463 then :
7464 lt_cv_cc_needs_belf=yes
7465 else $as_nop
7466 lt_cv_cc_needs_belf=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7469 conftest$ac_exeext conftest.$ac_ext
7470 ac_ext=c
7471 ac_cpp='$CPP $CPPFLAGS'
7472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475
7476 fi
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7478 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7479 if test yes != "$lt_cv_cc_needs_belf"; then
7480 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7481 CFLAGS=$SAVE_CFLAGS
7482 fi
7483 ;;
7484 *-*solaris*)
7485 # Find out what ABI is being produced by ac_compile, and set linker
7486 # options accordingly.
7487 echo 'int i;' > conftest.$ac_ext
7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7489 (eval $ac_compile) 2>&5
7490 ac_status=$?
7491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; }; then
7493 case `$FILECMD conftest.o` in
7494 *64-bit*)
7495 case $lt_cv_prog_gnu_ld in
7496 yes*)
7497 case $host in
7498 i?86-*-solaris*|x86_64-*-solaris*)
7499 LD="${LD-ld} -m elf_x86_64"
7500 ;;
7501 sparc*-*-solaris*)
7502 LD="${LD-ld} -m elf64_sparc"
7503 ;;
7504 esac
7505 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7506 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7507 LD=${LD-ld}_sol2
7508 fi
7509 ;;
7510 *)
7511 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7512 LD="${LD-ld} -64"
7513 fi
7514 ;;
7515 esac
7516 ;;
7517 esac
7518 fi
7519 rm -rf conftest*
7520 ;;
7521 esac
7522
7523 need_locks=$enable_libtool_lock
7524
7525 if test -n "$ac_tool_prefix"; then
7526 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7527 set dummy ${ac_tool_prefix}mt; ac_word=$2
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 printf %s "checking for $ac_word... " >&6; }
7530 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7531 then :
7532 printf %s "(cached) " >&6
7533 else $as_nop
7534 if test -n "$MANIFEST_TOOL"; then
7535 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540 IFS=$as_save_IFS
7541 case $as_dir in #(((
7542 '') as_dir=./ ;;
7543 */) ;;
7544 *) as_dir=$as_dir/ ;;
7545 esac
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7559 if test -n "$MANIFEST_TOOL"; then
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7561 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7562 else
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 printf "%s\n" "no" >&6; }
7565 fi
7566
7567
7568 fi
7569 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7570 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7571 # Extract the first word of "mt", so it can be a program name with args.
7572 set dummy mt; ac_word=$2
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 printf %s "checking for $ac_word... " >&6; }
7575 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7576 then :
7577 printf %s "(cached) " >&6
7578 else $as_nop
7579 if test -n "$ac_ct_MANIFEST_TOOL"; then
7580 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585 IFS=$as_save_IFS
7586 case $as_dir in #(((
7587 '') as_dir=./ ;;
7588 */) ;;
7589 *) as_dir=$as_dir/ ;;
7590 esac
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7604 if test -n "$ac_ct_MANIFEST_TOOL"; then
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7606 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7607 else
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 printf "%s\n" "no" >&6; }
7610 fi
7611
7612 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7613 MANIFEST_TOOL=":"
7614 else
7615 case $cross_compiling:$ac_tool_warned in
7616 yes:)
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned=yes ;;
7620 esac
7621 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7622 fi
7623 else
7624 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7625 fi
7626
7627 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7629 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7630 if test ${lt_cv_path_mainfest_tool+y}
7631 then :
7632 printf %s "(cached) " >&6
7633 else $as_nop
7634 lt_cv_path_mainfest_tool=no
7635 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7636 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7637 cat conftest.err >&5
7638 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7639 lt_cv_path_mainfest_tool=yes
7640 fi
7641 rm -f conftest*
7642 fi
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7644 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7645 if test yes != "$lt_cv_path_mainfest_tool"; then
7646 MANIFEST_TOOL=:
7647 fi
7648
7649
7650
7651
7652
7653
7654 case $host_os in
7655 rhapsody* | darwin*)
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 printf %s "checking for $ac_word... " >&6; }
7661 if test ${ac_cv_prog_DSYMUTIL+y}
7662 then :
7663 printf %s "(cached) " >&6
7664 else $as_nop
7665 if test -n "$DSYMUTIL"; then
7666 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671 IFS=$as_save_IFS
7672 case $as_dir in #(((
7673 '') as_dir=./ ;;
7674 */) ;;
7675 *) as_dir=$as_dir/ ;;
7676 esac
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7681 break 2
7682 fi
7683 done
7684 done
7685 IFS=$as_save_IFS
7686
7687 fi
7688 fi
7689 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7690 if test -n "$DSYMUTIL"; then
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7692 printf "%s\n" "$DSYMUTIL" >&6; }
7693 else
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 printf "%s\n" "no" >&6; }
7696 fi
7697
7698
7699 fi
7700 if test -z "$ac_cv_prog_DSYMUTIL"; then
7701 ac_ct_DSYMUTIL=$DSYMUTIL
7702 # Extract the first word of "dsymutil", so it can be a program name with args.
7703 set dummy dsymutil; ac_word=$2
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 printf %s "checking for $ac_word... " >&6; }
7706 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7707 then :
7708 printf %s "(cached) " >&6
7709 else $as_nop
7710 if test -n "$ac_ct_DSYMUTIL"; then
7711 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716 IFS=$as_save_IFS
7717 case $as_dir in #(((
7718 '') as_dir=./ ;;
7719 */) ;;
7720 *) as_dir=$as_dir/ ;;
7721 esac
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 fi
7733 fi
7734 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7735 if test -n "$ac_ct_DSYMUTIL"; then
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7737 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7738 else
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 printf "%s\n" "no" >&6; }
7741 fi
7742
7743 if test "x$ac_ct_DSYMUTIL" = x; then
7744 DSYMUTIL=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752 DSYMUTIL=$ac_ct_DSYMUTIL
7753 fi
7754 else
7755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7756 fi
7757
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 printf %s "checking for $ac_word... " >&6; }
7763 if test ${ac_cv_prog_NMEDIT+y}
7764 then :
7765 printf %s "(cached) " >&6
7766 else $as_nop
7767 if test -n "$NMEDIT"; then
7768 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773 IFS=$as_save_IFS
7774 case $as_dir in #(((
7775 '') as_dir=./ ;;
7776 */) ;;
7777 *) as_dir=$as_dir/ ;;
7778 esac
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 NMEDIT=$ac_cv_prog_NMEDIT
7792 if test -n "$NMEDIT"; then
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7794 printf "%s\n" "$NMEDIT" >&6; }
7795 else
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 printf "%s\n" "no" >&6; }
7798 fi
7799
7800
7801 fi
7802 if test -z "$ac_cv_prog_NMEDIT"; then
7803 ac_ct_NMEDIT=$NMEDIT
7804 # Extract the first word of "nmedit", so it can be a program name with args.
7805 set dummy nmedit; ac_word=$2
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 printf %s "checking for $ac_word... " >&6; }
7808 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7809 then :
7810 printf %s "(cached) " >&6
7811 else $as_nop
7812 if test -n "$ac_ct_NMEDIT"; then
7813 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 case $as_dir in #(((
7820 '') as_dir=./ ;;
7821 */) ;;
7822 *) as_dir=$as_dir/ ;;
7823 esac
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7837 if test -n "$ac_ct_NMEDIT"; then
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7839 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7840 else
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 printf "%s\n" "no" >&6; }
7843 fi
7844
7845 if test "x$ac_ct_NMEDIT" = x; then
7846 NMEDIT=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849 yes:)
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854 NMEDIT=$ac_ct_NMEDIT
7855 fi
7856 else
7857 NMEDIT="$ac_cv_prog_NMEDIT"
7858 fi
7859
7860 if test -n "$ac_tool_prefix"; then
7861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 printf %s "checking for $ac_word... " >&6; }
7865 if test ${ac_cv_prog_LIPO+y}
7866 then :
7867 printf %s "(cached) " >&6
7868 else $as_nop
7869 if test -n "$LIPO"; then
7870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875 IFS=$as_save_IFS
7876 case $as_dir in #(((
7877 '') as_dir=./ ;;
7878 */) ;;
7879 *) as_dir=$as_dir/ ;;
7880 esac
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 LIPO=$ac_cv_prog_LIPO
7894 if test -n "$LIPO"; then
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7896 printf "%s\n" "$LIPO" >&6; }
7897 else
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 printf "%s\n" "no" >&6; }
7900 fi
7901
7902
7903 fi
7904 if test -z "$ac_cv_prog_LIPO"; then
7905 ac_ct_LIPO=$LIPO
7906 # Extract the first word of "lipo", so it can be a program name with args.
7907 set dummy lipo; ac_word=$2
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 printf %s "checking for $ac_word... " >&6; }
7910 if test ${ac_cv_prog_ac_ct_LIPO+y}
7911 then :
7912 printf %s "(cached) " >&6
7913 else $as_nop
7914 if test -n "$ac_ct_LIPO"; then
7915 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920 IFS=$as_save_IFS
7921 case $as_dir in #(((
7922 '') as_dir=./ ;;
7923 */) ;;
7924 *) as_dir=$as_dir/ ;;
7925 esac
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_ac_ct_LIPO="lipo"
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7939 if test -n "$ac_ct_LIPO"; then
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7941 printf "%s\n" "$ac_ct_LIPO" >&6; }
7942 else
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7945 fi
7946
7947 if test "x$ac_ct_LIPO" = x; then
7948 LIPO=":"
7949 else
7950 case $cross_compiling:$ac_tool_warned in
7951 yes:)
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7955 esac
7956 LIPO=$ac_ct_LIPO
7957 fi
7958 else
7959 LIPO="$ac_cv_prog_LIPO"
7960 fi
7961
7962 if test -n "$ac_tool_prefix"; then
7963 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7964 set dummy ${ac_tool_prefix}otool; ac_word=$2
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 printf %s "checking for $ac_word... " >&6; }
7967 if test ${ac_cv_prog_OTOOL+y}
7968 then :
7969 printf %s "(cached) " >&6
7970 else $as_nop
7971 if test -n "$OTOOL"; then
7972 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 case $as_dir in #(((
7979 '') as_dir=./ ;;
7980 */) ;;
7981 *) as_dir=$as_dir/ ;;
7982 esac
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993 fi
7994 fi
7995 OTOOL=$ac_cv_prog_OTOOL
7996 if test -n "$OTOOL"; then
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7998 printf "%s\n" "$OTOOL" >&6; }
7999 else
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 printf "%s\n" "no" >&6; }
8002 fi
8003
8004
8005 fi
8006 if test -z "$ac_cv_prog_OTOOL"; then
8007 ac_ct_OTOOL=$OTOOL
8008 # Extract the first word of "otool", so it can be a program name with args.
8009 set dummy otool; ac_word=$2
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 printf %s "checking for $ac_word... " >&6; }
8012 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else $as_nop
8016 if test -n "$ac_ct_OTOOL"; then
8017 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 case $as_dir in #(((
8024 '') as_dir=./ ;;
8025 */) ;;
8026 *) as_dir=$as_dir/ ;;
8027 esac
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL="otool"
8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8041 if test -n "$ac_ct_OTOOL"; then
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8043 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8044 else
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 printf "%s\n" "no" >&6; }
8047 fi
8048
8049 if test "x$ac_ct_OTOOL" = x; then
8050 OTOOL=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058 OTOOL=$ac_ct_OTOOL
8059 fi
8060 else
8061 OTOOL="$ac_cv_prog_OTOOL"
8062 fi
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 printf %s "checking for $ac_word... " >&6; }
8069 if test ${ac_cv_prog_OTOOL64+y}
8070 then :
8071 printf %s "(cached) " >&6
8072 else $as_nop
8073 if test -n "$OTOOL64"; then
8074 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079 IFS=$as_save_IFS
8080 case $as_dir in #(((
8081 '') as_dir=./ ;;
8082 */) ;;
8083 *) as_dir=$as_dir/ ;;
8084 esac
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 fi
8096 fi
8097 OTOOL64=$ac_cv_prog_OTOOL64
8098 if test -n "$OTOOL64"; then
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8100 printf "%s\n" "$OTOOL64" >&6; }
8101 else
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 printf "%s\n" "no" >&6; }
8104 fi
8105
8106
8107 fi
8108 if test -z "$ac_cv_prog_OTOOL64"; then
8109 ac_ct_OTOOL64=$OTOOL64
8110 # Extract the first word of "otool64", so it can be a program name with args.
8111 set dummy otool64; ac_word=$2
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 printf %s "checking for $ac_word... " >&6; }
8114 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else $as_nop
8118 if test -n "$ac_ct_OTOOL64"; then
8119 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 case $as_dir in #(((
8126 '') as_dir=./ ;;
8127 */) ;;
8128 *) as_dir=$as_dir/ ;;
8129 esac
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_ac_ct_OTOOL64="otool64"
8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8143 if test -n "$ac_ct_OTOOL64"; then
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8145 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8146 else
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 printf "%s\n" "no" >&6; }
8149 fi
8150
8151 if test "x$ac_ct_OTOOL64" = x; then
8152 OTOOL64=":"
8153 else
8154 case $cross_compiling:$ac_tool_warned in
8155 yes:)
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8158 ac_tool_warned=yes ;;
8159 esac
8160 OTOOL64=$ac_ct_OTOOL64
8161 fi
8162 else
8163 OTOOL64="$ac_cv_prog_OTOOL64"
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8193 printf %s "checking for -single_module linker flag... " >&6; }
8194 if test ${lt_cv_apple_cc_single_mod+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else $as_nop
8198 lt_cv_apple_cc_single_mod=no
8199 if test -z "$LT_MULTI_MODULE"; then
8200 # By default we will add the -single_module flag. You can override
8201 # by either setting the environment variable LT_MULTI_MODULE
8202 # non-empty at configure time, or by adding -multi_module to the
8203 # link flags.
8204 rm -rf libconftest.dylib*
8205 echo "int foo(void){return 1;}" > conftest.c
8206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8207 -dynamiclib -Wl,-single_module conftest.c" >&5
8208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8210 _lt_result=$?
8211 # If there is a non-empty error log, and "single_module"
8212 # appears in it, assume the flag caused a linker warning
8213 if test -s conftest.err && $GREP single_module conftest.err; then
8214 cat conftest.err >&5
8215 # Otherwise, if the output was created with a 0 exit code from
8216 # the compiler, it worked.
8217 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8218 lt_cv_apple_cc_single_mod=yes
8219 else
8220 cat conftest.err >&5
8221 fi
8222 rm -rf libconftest.dylib*
8223 rm -f conftest.*
8224 fi
8225 fi
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8227 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8228
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8230 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8231 if test ${lt_cv_ld_exported_symbols_list+y}
8232 then :
8233 printf %s "(cached) " >&6
8234 else $as_nop
8235 lt_cv_ld_exported_symbols_list=no
8236 save_LDFLAGS=$LDFLAGS
8237 echo "_main" > conftest.sym
8238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241
8242 int
8243 main (void)
8244 {
8245
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"
8251 then :
8252 lt_cv_ld_exported_symbols_list=yes
8253 else $as_nop
8254 lt_cv_ld_exported_symbols_list=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8257 conftest$ac_exeext conftest.$ac_ext
8258 LDFLAGS=$save_LDFLAGS
8259
8260 fi
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8262 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8263
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8265 printf %s "checking for -force_load linker flag... " >&6; }
8266 if test ${lt_cv_ld_force_load+y}
8267 then :
8268 printf %s "(cached) " >&6
8269 else $as_nop
8270 lt_cv_ld_force_load=no
8271 cat > conftest.c << _LT_EOF
8272 int forced_loaded() { return 2;}
8273 _LT_EOF
8274 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8275 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8276 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8277 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8278 echo "$RANLIB libconftest.a" >&5
8279 $RANLIB libconftest.a 2>&5
8280 cat > conftest.c << _LT_EOF
8281 int main() { return 0;}
8282 _LT_EOF
8283 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8284 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8285 _lt_result=$?
8286 if test -s conftest.err && $GREP force_load conftest.err; then
8287 cat conftest.err >&5
8288 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8289 lt_cv_ld_force_load=yes
8290 else
8291 cat conftest.err >&5
8292 fi
8293 rm -f conftest.err libconftest.a conftest conftest.c
8294 rm -rf conftest.dSYM
8295
8296 fi
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8298 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8299 case $host_os in
8300 rhapsody* | darwin1.[012])
8301 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8302 darwin1.*)
8303 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8304 darwin*)
8305 case $MACOSX_DEPLOYMENT_TARGET,$host in
8306 10.[012],*|,*powerpc*-darwin[5-8]*)
8307 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8308 *)
8309 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8310 esac
8311 ;;
8312 esac
8313 if test yes = "$lt_cv_apple_cc_single_mod"; then
8314 _lt_dar_single_mod='$single_module'
8315 fi
8316 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8317 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8318 else
8319 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8320 fi
8321 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8322 _lt_dsymutil='~$DSYMUTIL $lib || :'
8323 else
8324 _lt_dsymutil=
8325 fi
8326 ;;
8327 esac
8328
8329 # func_munge_path_list VARIABLE PATH
8330 # -----------------------------------
8331 # VARIABLE is name of variable containing _space_ separated list of
8332 # directories to be munged by the contents of PATH, which is string
8333 # having a format:
8334 # "DIR[:DIR]:"
8335 # string "DIR[ DIR]" will be prepended to VARIABLE
8336 # ":DIR[:DIR]"
8337 # string "DIR[ DIR]" will be appended to VARIABLE
8338 # "DIRP[:DIRP]::[DIRA:]DIRA"
8339 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8340 # "DIRA[ DIRA]" will be appended to VARIABLE
8341 # "DIR[:DIR]"
8342 # VARIABLE will be replaced by "DIR[ DIR]"
8343 func_munge_path_list ()
8344 {
8345 case x$2 in
8346 x)
8347 ;;
8348 *:)
8349 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8350 ;;
8351 x:*)
8352 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8353 ;;
8354 *::*)
8355 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8356 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8357 ;;
8358 *)
8359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8360 ;;
8361 esac
8362 }
8363
8364 ac_header= ac_cache=
8365 for ac_item in $ac_header_c_list
8366 do
8367 if test $ac_cache; then
8368 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8369 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8370 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8371 fi
8372 ac_header= ac_cache=
8373 elif test $ac_header; then
8374 ac_cache=$ac_item
8375 else
8376 ac_header=$ac_item
8377 fi
8378 done
8379
8380
8381
8382
8383
8384
8385
8386
8387 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8388 then :
8389
8390 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8391
8392 fi
8393 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8394 "
8395 if test "x$ac_cv_header_dlfcn_h" = xyes
8396 then :
8397 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8398
8399 fi
8400
8401
8402
8403
8404
8405 # Set options
8406
8407
8408
8409 enable_dlopen=no
8410
8411
8412 enable_win32_dll=no
8413
8414
8415 # Check whether --enable-shared was given.
8416 if test ${enable_shared+y}
8417 then :
8418 enableval=$enable_shared; p=${PACKAGE-default}
8419 case $enableval in
8420 yes) enable_shared=yes ;;
8421 no) enable_shared=no ;;
8422 *)
8423 enable_shared=no
8424 # Look at the argument we got. We use all the common list separators.
8425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8426 for pkg in $enableval; do
8427 IFS=$lt_save_ifs
8428 if test "X$pkg" = "X$p"; then
8429 enable_shared=yes
8430 fi
8431 done
8432 IFS=$lt_save_ifs
8433 ;;
8434 esac
8435 else $as_nop
8436 enable_shared=yes
8437 fi
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449 # Check whether --with-pic was given.
8450 if test ${with_pic+y}
8451 then :
8452 withval=$with_pic; lt_p=${PACKAGE-default}
8453 case $withval in
8454 yes|no) pic_mode=$withval ;;
8455 *)
8456 pic_mode=default
8457 # Look at the argument we got. We use all the common list separators.
8458 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8459 for lt_pkg in $withval; do
8460 IFS=$lt_save_ifs
8461 if test "X$lt_pkg" = "X$lt_p"; then
8462 pic_mode=yes
8463 fi
8464 done
8465 IFS=$lt_save_ifs
8466 ;;
8467 esac
8468 else $as_nop
8469 pic_mode=default
8470 fi
8471
8472
8473
8474
8475
8476
8477
8478
8479 # Check whether --enable-fast-install was given.
8480 if test ${enable_fast_install+y}
8481 then :
8482 enableval=$enable_fast_install; p=${PACKAGE-default}
8483 case $enableval in
8484 yes) enable_fast_install=yes ;;
8485 no) enable_fast_install=no ;;
8486 *)
8487 enable_fast_install=no
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8490 for pkg in $enableval; do
8491 IFS=$lt_save_ifs
8492 if test "X$pkg" = "X$p"; then
8493 enable_fast_install=yes
8494 fi
8495 done
8496 IFS=$lt_save_ifs
8497 ;;
8498 esac
8499 else $as_nop
8500 enable_fast_install=yes
8501 fi
8502
8503
8504
8505
8506
8507
8508
8509
8510 shared_archive_member_spec=
8511 case $host,$enable_shared in
8512 power*-*-aix[5-9]*,yes)
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8514 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8515
8516 # Check whether --with-aix-soname was given.
8517 if test ${with_aix_soname+y}
8518 then :
8519 withval=$with_aix_soname; case $withval in
8520 aix|svr4|both)
8521 ;;
8522 *)
8523 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8524 ;;
8525 esac
8526 lt_cv_with_aix_soname=$with_aix_soname
8527 else $as_nop
8528 if test ${lt_cv_with_aix_soname+y}
8529 then :
8530 printf %s "(cached) " >&6
8531 else $as_nop
8532 lt_cv_with_aix_soname=aix
8533 fi
8534
8535 with_aix_soname=$lt_cv_with_aix_soname
8536 fi
8537
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8539 printf "%s\n" "$with_aix_soname" >&6; }
8540 if test aix != "$with_aix_soname"; then
8541 # For the AIX way of multilib, we name the shared archive member
8542 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8543 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8544 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8545 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8546 if test 64 = "${OBJECT_MODE-32}"; then
8547 shared_archive_member_spec=shr_64
8548 else
8549 shared_archive_member_spec=shr
8550 fi
8551 fi
8552 ;;
8553 *)
8554 with_aix_soname=aix
8555 ;;
8556 esac
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567 # This can be used to rebuild libtool when needed
8568 LIBTOOL_DEPS=$ltmain
8569
8570 # Always use our own libtool.
8571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 test -z "$LN_S" && LN_S="ln -s"
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 if test -n "${ZSH_VERSION+set}"; then
8618 setopt NO_GLOB_SUBST
8619 fi
8620
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8622 printf %s "checking for objdir... " >&6; }
8623 if test ${lt_cv_objdir+y}
8624 then :
8625 printf %s "(cached) " >&6
8626 else $as_nop
8627 rm -f .libs 2>/dev/null
8628 mkdir .libs 2>/dev/null
8629 if test -d .libs; then
8630 lt_cv_objdir=.libs
8631 else
8632 # MS-DOS does not allow filenames that begin with a dot.
8633 lt_cv_objdir=_libs
8634 fi
8635 rmdir .libs 2>/dev/null
8636 fi
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8638 printf "%s\n" "$lt_cv_objdir" >&6; }
8639 objdir=$lt_cv_objdir
8640
8641
8642
8643
8644
8645 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8646
8647
8648
8649
8650 case $host_os in
8651 aix3*)
8652 # AIX sometimes has problems with the GCC collect2 program. For some
8653 # reason, if we set the COLLECT_NAMES environment variable, the problems
8654 # vanish in a puff of smoke.
8655 if test set != "${COLLECT_NAMES+set}"; then
8656 COLLECT_NAMES=
8657 export COLLECT_NAMES
8658 fi
8659 ;;
8660 esac
8661
8662 # Global variables:
8663 ofile=libtool
8664 can_build_shared=yes
8665
8666 # All known linkers require a '.a' archive for static linking (except MSVC and
8667 # ICC, which need '.lib').
8668 libext=a
8669
8670 with_gnu_ld=$lt_cv_prog_gnu_ld
8671
8672 old_CC=$CC
8673 old_CFLAGS=$CFLAGS
8674
8675 # Set sane defaults for various variables
8676 test -z "$CC" && CC=cc
8677 test -z "$LTCC" && LTCC=$CC
8678 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8679 test -z "$LD" && LD=ld
8680 test -z "$ac_objext" && ac_objext=o
8681
8682 func_cc_basename $compiler
8683 cc_basename=$func_cc_basename_result
8684
8685
8686 # Only perform the check for file, if the check method requires it
8687 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8688 case $deplibs_check_method in
8689 file_magic*)
8690 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8692 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8693 if test ${lt_cv_path_MAGIC_CMD+y}
8694 then :
8695 printf %s "(cached) " >&6
8696 else $as_nop
8697 case $MAGIC_CMD in
8698 [\\/*] | ?:[\\/]*)
8699 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8700 ;;
8701 *)
8702 lt_save_MAGIC_CMD=$MAGIC_CMD
8703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8705 for ac_dir in $ac_dummy; do
8706 IFS=$lt_save_ifs
8707 test -z "$ac_dir" && ac_dir=.
8708 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8709 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8710 if test -n "$file_magic_test_file"; then
8711 case $deplibs_check_method in
8712 "file_magic "*)
8713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8714 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8716 $EGREP "$file_magic_regex" > /dev/null; then
8717 :
8718 else
8719 cat <<_LT_EOF 1>&2
8720
8721 *** Warning: the command libtool uses to detect shared libraries,
8722 *** $file_magic_cmd, produces output that libtool cannot recognize.
8723 *** The result is that libtool may fail to recognize shared libraries
8724 *** as such. This will affect the creation of libtool libraries that
8725 *** depend on shared libraries, but programs linked with such libtool
8726 *** libraries will work regardless of this problem. Nevertheless, you
8727 *** may want to report the problem to your system manager and/or to
8728 *** bug-libtool@gnu.org
8729
8730 _LT_EOF
8731 fi ;;
8732 esac
8733 fi
8734 break
8735 fi
8736 done
8737 IFS=$lt_save_ifs
8738 MAGIC_CMD=$lt_save_MAGIC_CMD
8739 ;;
8740 esac
8741 fi
8742
8743 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8744 if test -n "$MAGIC_CMD"; then
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8746 printf "%s\n" "$MAGIC_CMD" >&6; }
8747 else
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 printf "%s\n" "no" >&6; }
8750 fi
8751
8752
8753
8754
8755
8756 if test -z "$lt_cv_path_MAGIC_CMD"; then
8757 if test -n "$ac_tool_prefix"; then
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8759 printf %s "checking for file... " >&6; }
8760 if test ${lt_cv_path_MAGIC_CMD+y}
8761 then :
8762 printf %s "(cached) " >&6
8763 else $as_nop
8764 case $MAGIC_CMD in
8765 [\\/*] | ?:[\\/]*)
8766 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8767 ;;
8768 *)
8769 lt_save_MAGIC_CMD=$MAGIC_CMD
8770 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8772 for ac_dir in $ac_dummy; do
8773 IFS=$lt_save_ifs
8774 test -z "$ac_dir" && ac_dir=.
8775 if test -f "$ac_dir/file"; then
8776 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8777 if test -n "$file_magic_test_file"; then
8778 case $deplibs_check_method in
8779 "file_magic "*)
8780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8781 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8783 $EGREP "$file_magic_regex" > /dev/null; then
8784 :
8785 else
8786 cat <<_LT_EOF 1>&2
8787
8788 *** Warning: the command libtool uses to detect shared libraries,
8789 *** $file_magic_cmd, produces output that libtool cannot recognize.
8790 *** The result is that libtool may fail to recognize shared libraries
8791 *** as such. This will affect the creation of libtool libraries that
8792 *** depend on shared libraries, but programs linked with such libtool
8793 *** libraries will work regardless of this problem. Nevertheless, you
8794 *** may want to report the problem to your system manager and/or to
8795 *** bug-libtool@gnu.org
8796
8797 _LT_EOF
8798 fi ;;
8799 esac
8800 fi
8801 break
8802 fi
8803 done
8804 IFS=$lt_save_ifs
8805 MAGIC_CMD=$lt_save_MAGIC_CMD
8806 ;;
8807 esac
8808 fi
8809
8810 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8811 if test -n "$MAGIC_CMD"; then
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8813 printf "%s\n" "$MAGIC_CMD" >&6; }
8814 else
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 printf "%s\n" "no" >&6; }
8817 fi
8818
8819
8820 else
8821 MAGIC_CMD=:
8822 fi
8823 fi
8824
8825 fi
8826 ;;
8827 esac
8828
8829 # Use C for the default configuration in the libtool script
8830
8831 lt_save_CC=$CC
8832 ac_ext=c
8833 ac_cpp='$CPP $CPPFLAGS'
8834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8837
8838
8839 # Source file extension for C test sources.
8840 ac_ext=c
8841
8842 # Object file extension for compiled C test sources.
8843 objext=o
8844 objext=$objext
8845
8846 # Code to be used in simple compile tests
8847 lt_simple_compile_test_code="int some_variable = 0;"
8848
8849 # Code to be used in simple link tests
8850 lt_simple_link_test_code='int main(){return(0);}'
8851
8852
8853
8854
8855
8856
8857
8858 # If no C compiler was specified, use CC.
8859 LTCC=${LTCC-"$CC"}
8860
8861 # If no C compiler flags were specified, use CFLAGS.
8862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8863
8864 # Allow CC to be a program name with arguments.
8865 compiler=$CC
8866
8867 # Save the default compiler, since it gets overwritten when the other
8868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8869 compiler_DEFAULT=$CC
8870
8871 # save warnings/boilerplate of simple test code
8872 ac_outfile=conftest.$ac_objext
8873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8875 _lt_compiler_boilerplate=`cat conftest.err`
8876 $RM conftest*
8877
8878 ac_outfile=conftest.$ac_objext
8879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8881 _lt_linker_boilerplate=`cat conftest.err`
8882 $RM -r conftest*
8883
8884
8885 ## CAVEAT EMPTOR:
8886 ## There is no encapsulation within the following macros, do not change
8887 ## the running order or otherwise move them around unless you know exactly
8888 ## what you are doing...
8889 if test -n "$compiler"; then
8890
8891 lt_prog_compiler_no_builtin_flag=
8892
8893 if test yes = "$GCC"; then
8894 case $cc_basename in
8895 nvcc*)
8896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8897 *)
8898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8899 esac
8900
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8902 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8903 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8904 then :
8905 printf %s "(cached) " >&6
8906 else $as_nop
8907 lt_cv_prog_compiler_rtti_exceptions=no
8908 ac_outfile=conftest.$ac_objext
8909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8910 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8911 # Insert the option either (1) after the last *FLAGS variable, or
8912 # (2) before a word containing "conftest.", or (3) at the end.
8913 # Note that $ac_compile itself does not contain backslashes and begins
8914 # with a dollar sign (not a hyphen), so the echo should work correctly.
8915 # The option is referenced via a variable to avoid confusing sed.
8916 lt_compile=`echo "$ac_compile" | $SED \
8917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8919 -e 's:$: $lt_compiler_flag:'`
8920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8921 (eval "$lt_compile" 2>conftest.err)
8922 ac_status=$?
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 if (exit $ac_status) && test -s "$ac_outfile"; then
8926 # The compiler can only warn and ignore the option if not recognized
8927 # So say no if there are warnings other than the usual output.
8928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8931 lt_cv_prog_compiler_rtti_exceptions=yes
8932 fi
8933 fi
8934 $RM conftest*
8935
8936 fi
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8938 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8939
8940 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8941 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8942 else
8943 :
8944 fi
8945
8946 fi
8947
8948
8949
8950
8951
8952
8953 lt_prog_compiler_wl=
8954 lt_prog_compiler_pic=
8955 lt_prog_compiler_static=
8956
8957
8958 if test yes = "$GCC"; then
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_static='-static'
8961
8962 case $host_os in
8963 aix*)
8964 # All AIX code is PIC.
8965 if test ia64 = "$host_cpu"; then
8966 # AIX 5 now supports IA64 processor
8967 lt_prog_compiler_static='-Bstatic'
8968 fi
8969 lt_prog_compiler_pic='-fPIC'
8970 ;;
8971
8972 amigaos*)
8973 case $host_cpu in
8974 powerpc)
8975 # see comment about AmigaOS4 .so support
8976 lt_prog_compiler_pic='-fPIC'
8977 ;;
8978 m68k)
8979 # FIXME: we need at least 68020 code to build shared libraries, but
8980 # adding the '-m68020' flag to GCC prevents building anything better,
8981 # like '-m68040'.
8982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8983 ;;
8984 esac
8985 ;;
8986
8987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8988 # PIC is the default for these OSes.
8989 ;;
8990
8991 mingw* | cygwin* | pw32* | os2* | cegcc*)
8992 # This hack is so that the source file can tell whether it is being
8993 # built for inclusion in a dll (and should export symbols for example).
8994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8995 # (--disable-auto-import) libraries
8996 lt_prog_compiler_pic='-DDLL_EXPORT'
8997 case $host_os in
8998 os2*)
8999 lt_prog_compiler_static='$wl-static'
9000 ;;
9001 esac
9002 ;;
9003
9004 darwin* | rhapsody*)
9005 # PIC is the default on this platform
9006 # Common symbols not allowed in MH_DYLIB files
9007 lt_prog_compiler_pic='-fno-common'
9008 ;;
9009
9010 haiku*)
9011 # PIC is the default for Haiku.
9012 # The "-static" flag exists, but is broken.
9013 lt_prog_compiler_static=
9014 ;;
9015
9016 hpux*)
9017 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9018 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9019 # sets the default TLS model and affects inlining.
9020 case $host_cpu in
9021 hppa*64*)
9022 # +Z the default
9023 ;;
9024 *)
9025 lt_prog_compiler_pic='-fPIC'
9026 ;;
9027 esac
9028 ;;
9029
9030 interix[3-9]*)
9031 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9032 # Instead, we relocate shared libraries at runtime.
9033 ;;
9034
9035 msdosdjgpp*)
9036 # Just because we use GCC doesn't mean we suddenly get shared libraries
9037 # on systems that don't support them.
9038 lt_prog_compiler_can_build_shared=no
9039 enable_shared=no
9040 ;;
9041
9042 *nto* | *qnx*)
9043 # QNX uses GNU C++, but need to define -shared option too, otherwise
9044 # it will coredump.
9045 lt_prog_compiler_pic='-fPIC -shared'
9046 ;;
9047
9048 sysv4*MP*)
9049 if test -d /usr/nec; then
9050 lt_prog_compiler_pic=-Kconform_pic
9051 fi
9052 ;;
9053
9054 *)
9055 lt_prog_compiler_pic='-fPIC'
9056 ;;
9057 esac
9058
9059 case $cc_basename in
9060 nvcc*) # Cuda Compiler Driver 2.2
9061 lt_prog_compiler_wl='-Xlinker '
9062 if test -n "$lt_prog_compiler_pic"; then
9063 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9064 fi
9065 ;;
9066 esac
9067 else
9068 # PORTME Check for flag to pass linker flags through the system compiler.
9069 case $host_os in
9070 aix*)
9071 lt_prog_compiler_wl='-Wl,'
9072 if test ia64 = "$host_cpu"; then
9073 # AIX 5 now supports IA64 processor
9074 lt_prog_compiler_static='-Bstatic'
9075 else
9076 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9077 fi
9078 ;;
9079
9080 darwin* | rhapsody*)
9081 # PIC is the default on this platform
9082 # Common symbols not allowed in MH_DYLIB files
9083 lt_prog_compiler_pic='-fno-common'
9084 case $cc_basename in
9085 nagfor*)
9086 # NAG Fortran compiler
9087 lt_prog_compiler_wl='-Wl,-Wl,,'
9088 lt_prog_compiler_pic='-PIC'
9089 lt_prog_compiler_static='-Bstatic'
9090 ;;
9091 esac
9092 ;;
9093
9094 mingw* | cygwin* | pw32* | os2* | cegcc*)
9095 # This hack is so that the source file can tell whether it is being
9096 # built for inclusion in a dll (and should export symbols for example).
9097 lt_prog_compiler_pic='-DDLL_EXPORT'
9098 case $host_os in
9099 os2*)
9100 lt_prog_compiler_static='$wl-static'
9101 ;;
9102 esac
9103 ;;
9104
9105 hpux9* | hpux10* | hpux11*)
9106 lt_prog_compiler_wl='-Wl,'
9107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9108 # not for PA HP-UX.
9109 case $host_cpu in
9110 hppa*64*|ia64*)
9111 # +Z the default
9112 ;;
9113 *)
9114 lt_prog_compiler_pic='+Z'
9115 ;;
9116 esac
9117 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9118 lt_prog_compiler_static='$wl-a ${wl}archive'
9119 ;;
9120
9121 irix5* | irix6* | nonstopux*)
9122 lt_prog_compiler_wl='-Wl,'
9123 # PIC (with -KPIC) is the default.
9124 lt_prog_compiler_static='-non_shared'
9125 ;;
9126
9127 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9128 case $cc_basename in
9129 # old Intel for x86_64, which still supported -KPIC.
9130 ecc*)
9131 lt_prog_compiler_wl='-Wl,'
9132 lt_prog_compiler_pic='-KPIC'
9133 lt_prog_compiler_static='-static'
9134 ;;
9135 # icc used to be incompatible with GCC.
9136 # ICC 10 doesn't accept -KPIC any more.
9137 icc* | ifort*)
9138 lt_prog_compiler_wl='-Wl,'
9139 lt_prog_compiler_pic='-fPIC'
9140 lt_prog_compiler_static='-static'
9141 ;;
9142 # Lahey Fortran 8.1.
9143 lf95*)
9144 lt_prog_compiler_wl='-Wl,'
9145 lt_prog_compiler_pic='--shared'
9146 lt_prog_compiler_static='--static'
9147 ;;
9148 nagfor*)
9149 # NAG Fortran compiler
9150 lt_prog_compiler_wl='-Wl,-Wl,,'
9151 lt_prog_compiler_pic='-PIC'
9152 lt_prog_compiler_static='-Bstatic'
9153 ;;
9154 tcc*)
9155 # Fabrice Bellard et al's Tiny C Compiler
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_pic='-fPIC'
9158 lt_prog_compiler_static='-static'
9159 ;;
9160 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9161 # Portland Group compilers (*not* the Pentium gcc compiler,
9162 # which looks to be a dead project)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='-fpic'
9165 lt_prog_compiler_static='-Bstatic'
9166 ;;
9167 ccc*)
9168 lt_prog_compiler_wl='-Wl,'
9169 # All Alpha code is PIC.
9170 lt_prog_compiler_static='-non_shared'
9171 ;;
9172 xl* | bgxl* | bgf* | mpixl*)
9173 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_pic='-qpic'
9176 lt_prog_compiler_static='-qstaticlink'
9177 ;;
9178 *)
9179 case `$CC -V 2>&1 | $SED 5q` in
9180 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9181 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9182 lt_prog_compiler_pic='-KPIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 lt_prog_compiler_wl=''
9185 ;;
9186 *Sun\ F* | *Sun*Fortran*)
9187 lt_prog_compiler_pic='-KPIC'
9188 lt_prog_compiler_static='-Bstatic'
9189 lt_prog_compiler_wl='-Qoption ld '
9190 ;;
9191 *Sun\ C*)
9192 # Sun C 5.9
9193 lt_prog_compiler_pic='-KPIC'
9194 lt_prog_compiler_static='-Bstatic'
9195 lt_prog_compiler_wl='-Wl,'
9196 ;;
9197 *Intel*\ [CF]*Compiler*)
9198 lt_prog_compiler_wl='-Wl,'
9199 lt_prog_compiler_pic='-fPIC'
9200 lt_prog_compiler_static='-static'
9201 ;;
9202 *Portland\ Group*)
9203 lt_prog_compiler_wl='-Wl,'
9204 lt_prog_compiler_pic='-fpic'
9205 lt_prog_compiler_static='-Bstatic'
9206 ;;
9207 esac
9208 ;;
9209 esac
9210 ;;
9211
9212 newsos6)
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9215 ;;
9216
9217 *nto* | *qnx*)
9218 # QNX uses GNU C++, but need to define -shared option too, otherwise
9219 # it will coredump.
9220 lt_prog_compiler_pic='-fPIC -shared'
9221 ;;
9222
9223 osf3* | osf4* | osf5*)
9224 lt_prog_compiler_wl='-Wl,'
9225 # All OSF/1 code is PIC.
9226 lt_prog_compiler_static='-non_shared'
9227 ;;
9228
9229 rdos*)
9230 lt_prog_compiler_static='-non_shared'
9231 ;;
9232
9233 solaris*)
9234 lt_prog_compiler_pic='-KPIC'
9235 lt_prog_compiler_static='-Bstatic'
9236 case $cc_basename in
9237 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9238 lt_prog_compiler_wl='-Qoption ld ';;
9239 *)
9240 lt_prog_compiler_wl='-Wl,';;
9241 esac
9242 ;;
9243
9244 sunos4*)
9245 lt_prog_compiler_wl='-Qoption ld '
9246 lt_prog_compiler_pic='-PIC'
9247 lt_prog_compiler_static='-Bstatic'
9248 ;;
9249
9250 sysv4 | sysv4.2uw2* | sysv4.3*)
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-KPIC'
9253 lt_prog_compiler_static='-Bstatic'
9254 ;;
9255
9256 sysv4*MP*)
9257 if test -d /usr/nec; then
9258 lt_prog_compiler_pic='-Kconform_pic'
9259 lt_prog_compiler_static='-Bstatic'
9260 fi
9261 ;;
9262
9263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_pic='-KPIC'
9266 lt_prog_compiler_static='-Bstatic'
9267 ;;
9268
9269 unicos*)
9270 lt_prog_compiler_wl='-Wl,'
9271 lt_prog_compiler_can_build_shared=no
9272 ;;
9273
9274 uts4*)
9275 lt_prog_compiler_pic='-pic'
9276 lt_prog_compiler_static='-Bstatic'
9277 ;;
9278
9279 *)
9280 lt_prog_compiler_can_build_shared=no
9281 ;;
9282 esac
9283 fi
9284
9285 case $host_os in
9286 # For platforms that do not support PIC, -DPIC is meaningless:
9287 *djgpp*)
9288 lt_prog_compiler_pic=
9289 ;;
9290 *)
9291 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9292 ;;
9293 esac
9294
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9296 printf %s "checking for $compiler option to produce PIC... " >&6; }
9297 if test ${lt_cv_prog_compiler_pic+y}
9298 then :
9299 printf %s "(cached) " >&6
9300 else $as_nop
9301 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9302 fi
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9304 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9305 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9306
9307 #
9308 # Check to make sure the PIC flag actually works.
9309 #
9310 if test -n "$lt_prog_compiler_pic"; then
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9312 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9313 if test ${lt_cv_prog_compiler_pic_works+y}
9314 then :
9315 printf %s "(cached) " >&6
9316 else $as_nop
9317 lt_cv_prog_compiler_pic_works=no
9318 ac_outfile=conftest.$ac_objext
9319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9320 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9321 # Insert the option either (1) after the last *FLAGS variable, or
9322 # (2) before a word containing "conftest.", or (3) at the end.
9323 # Note that $ac_compile itself does not contain backslashes and begins
9324 # with a dollar sign (not a hyphen), so the echo should work correctly.
9325 # The option is referenced via a variable to avoid confusing sed.
9326 lt_compile=`echo "$ac_compile" | $SED \
9327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9329 -e 's:$: $lt_compiler_flag:'`
9330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9331 (eval "$lt_compile" 2>conftest.err)
9332 ac_status=$?
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 if (exit $ac_status) && test -s "$ac_outfile"; then
9336 # The compiler can only warn and ignore the option if not recognized
9337 # So say no if there are warnings other than the usual output.
9338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9341 lt_cv_prog_compiler_pic_works=yes
9342 fi
9343 fi
9344 $RM conftest*
9345
9346 fi
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9348 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9349
9350 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9351 case $lt_prog_compiler_pic in
9352 "" | " "*) ;;
9353 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9354 esac
9355 else
9356 lt_prog_compiler_pic=
9357 lt_prog_compiler_can_build_shared=no
9358 fi
9359
9360 fi
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372 #
9373 # Check to make sure the static flag actually works.
9374 #
9375 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9377 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9378 if test ${lt_cv_prog_compiler_static_works+y}
9379 then :
9380 printf %s "(cached) " >&6
9381 else $as_nop
9382 lt_cv_prog_compiler_static_works=no
9383 save_LDFLAGS=$LDFLAGS
9384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9387 # The linker can only warn and ignore the option if not recognized
9388 # So say no if there are warnings
9389 if test -s conftest.err; then
9390 # Append any errors to the config.log.
9391 cat conftest.err 1>&5
9392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9394 if diff conftest.exp conftest.er2 >/dev/null; then
9395 lt_cv_prog_compiler_static_works=yes
9396 fi
9397 else
9398 lt_cv_prog_compiler_static_works=yes
9399 fi
9400 fi
9401 $RM -r conftest*
9402 LDFLAGS=$save_LDFLAGS
9403
9404 fi
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9406 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9407
9408 if test yes = "$lt_cv_prog_compiler_static_works"; then
9409 :
9410 else
9411 lt_prog_compiler_static=
9412 fi
9413
9414
9415
9416
9417
9418
9419
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422 if test ${lt_cv_prog_compiler_c_o+y}
9423 then :
9424 printf %s "(cached) " >&6
9425 else $as_nop
9426 lt_cv_prog_compiler_c_o=no
9427 $RM -r conftest 2>/dev/null
9428 mkdir conftest
9429 cd conftest
9430 mkdir out
9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432
9433 lt_compiler_flag="-o out/conftest2.$ac_objext"
9434 # Insert the option either (1) after the last *FLAGS variable, or
9435 # (2) before a word containing "conftest.", or (3) at the end.
9436 # Note that $ac_compile itself does not contain backslashes and begins
9437 # with a dollar sign (not a hyphen), so the echo should work correctly.
9438 lt_compile=`echo "$ac_compile" | $SED \
9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441 -e 's:$: $lt_compiler_flag:'`
9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443 (eval "$lt_compile" 2>out/conftest.err)
9444 ac_status=$?
9445 cat out/conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448 then
9449 # The compiler can only warn and ignore the option if not recognized
9450 # So say no if there are warnings
9451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler_c_o=yes
9455 fi
9456 fi
9457 chmod u+w . 2>&5
9458 $RM conftest*
9459 # SGI C++ compiler will create directory out/ii_files/ for
9460 # template instantiation
9461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9462 $RM out/* && rmdir out
9463 cd ..
9464 $RM -r conftest
9465 $RM conftest*
9466
9467 fi
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9469 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9470
9471
9472
9473
9474
9475
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9477 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9478 if test ${lt_cv_prog_compiler_c_o+y}
9479 then :
9480 printf %s "(cached) " >&6
9481 else $as_nop
9482 lt_cv_prog_compiler_c_o=no
9483 $RM -r conftest 2>/dev/null
9484 mkdir conftest
9485 cd conftest
9486 mkdir out
9487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9488
9489 lt_compiler_flag="-o out/conftest2.$ac_objext"
9490 # Insert the option either (1) after the last *FLAGS variable, or
9491 # (2) before a word containing "conftest.", or (3) at the end.
9492 # Note that $ac_compile itself does not contain backslashes and begins
9493 # with a dollar sign (not a hyphen), so the echo should work correctly.
9494 lt_compile=`echo "$ac_compile" | $SED \
9495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9497 -e 's:$: $lt_compiler_flag:'`
9498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9499 (eval "$lt_compile" 2>out/conftest.err)
9500 ac_status=$?
9501 cat out/conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9504 then
9505 # The compiler can only warn and ignore the option if not recognized
9506 # So say no if there are warnings
9507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9510 lt_cv_prog_compiler_c_o=yes
9511 fi
9512 fi
9513 chmod u+w . 2>&5
9514 $RM conftest*
9515 # SGI C++ compiler will create directory out/ii_files/ for
9516 # template instantiation
9517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9518 $RM out/* && rmdir out
9519 cd ..
9520 $RM -r conftest
9521 $RM conftest*
9522
9523 fi
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9525 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9526
9527
9528
9529
9530 hard_links=nottested
9531 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9532 # do not overwrite the value of need_locks provided by the user
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9534 printf %s "checking if we can lock with hard links... " >&6; }
9535 hard_links=yes
9536 $RM conftest*
9537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9538 touch conftest.a
9539 ln conftest.a conftest.b 2>&5 || hard_links=no
9540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9542 printf "%s\n" "$hard_links" >&6; }
9543 if test no = "$hard_links"; then
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9545 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9546 need_locks=warn
9547 fi
9548 else
9549 need_locks=no
9550 fi
9551
9552
9553
9554
9555
9556
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9558 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9559
9560 runpath_var=
9561 allow_undefined_flag=
9562 always_export_symbols=no
9563 archive_cmds=
9564 archive_expsym_cmds=
9565 compiler_needs_object=no
9566 enable_shared_with_static_runtimes=no
9567 export_dynamic_flag_spec=
9568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9569 hardcode_automatic=no
9570 hardcode_direct=no
9571 hardcode_direct_absolute=no
9572 hardcode_libdir_flag_spec=
9573 hardcode_libdir_separator=
9574 hardcode_minus_L=no
9575 hardcode_shlibpath_var=unsupported
9576 inherit_rpath=no
9577 link_all_deplibs=unknown
9578 module_cmds=
9579 module_expsym_cmds=
9580 old_archive_from_new_cmds=
9581 old_archive_from_expsyms_cmds=
9582 thread_safe_flag_spec=
9583 whole_archive_flag_spec=
9584 # include_expsyms should be a list of space-separated symbols to be *always*
9585 # included in the symbol list
9586 include_expsyms=
9587 # exclude_expsyms can be an extended regexp of symbols to exclude
9588 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9589 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9590 # as well as any symbol that contains 'd'.
9591 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9592 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9593 # platforms (ab)use it in PIC code, but their linkers get confused if
9594 # the symbol is explicitly referenced. Since portable code cannot
9595 # rely on this symbol name, it's probably fine to never include it in
9596 # preloaded symbol tables.
9597 # Exclude shared library initialization/finalization symbols.
9598 extract_expsyms_cmds=
9599
9600 case $host_os in
9601 cygwin* | mingw* | pw32* | cegcc*)
9602 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9603 # When not using gcc, we currently assume that we are using
9604 # Microsoft Visual C++ or Intel C++ Compiler.
9605 if test yes != "$GCC"; then
9606 with_gnu_ld=no
9607 fi
9608 ;;
9609 interix*)
9610 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9611 with_gnu_ld=yes
9612 ;;
9613 openbsd* | bitrig*)
9614 with_gnu_ld=no
9615 ;;
9616 esac
9617
9618 ld_shlibs=yes
9619
9620 # On some targets, GNU ld is compatible enough with the native linker
9621 # that we're better off using the native interface for both.
9622 lt_use_gnu_ld_interface=no
9623 if test yes = "$with_gnu_ld"; then
9624 case $host_os in
9625 aix*)
9626 # The AIX port of GNU ld has always aspired to compatibility
9627 # with the native linker. However, as the warning in the GNU ld
9628 # block says, versions before 2.19.5* couldn't really create working
9629 # shared libraries, regardless of the interface used.
9630 case `$LD -v 2>&1` in
9631 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9632 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9633 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9634 *)
9635 lt_use_gnu_ld_interface=yes
9636 ;;
9637 esac
9638 ;;
9639 *)
9640 lt_use_gnu_ld_interface=yes
9641 ;;
9642 esac
9643 fi
9644
9645 if test yes = "$lt_use_gnu_ld_interface"; then
9646 # If archive_cmds runs LD, not CC, wlarc should be empty
9647 wlarc='$wl'
9648
9649 # Set some defaults for GNU ld with shared library support. These
9650 # are reset later if shared libraries are not supported. Putting them
9651 # here allows them to be overridden if necessary.
9652 runpath_var=LD_RUN_PATH
9653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9654 export_dynamic_flag_spec='$wl--export-dynamic'
9655 # ancient GNU ld didn't support --whole-archive et. al.
9656 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9657 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9658 else
9659 whole_archive_flag_spec=
9660 fi
9661 supports_anon_versioning=no
9662 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9663 *GNU\ gold*) supports_anon_versioning=yes ;;
9664 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9665 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9666 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9667 *\ 2.11.*) ;; # other 2.11 versions
9668 *) supports_anon_versioning=yes ;;
9669 esac
9670
9671 # See if GNU ld supports shared libraries.
9672 case $host_os in
9673 aix[3-9]*)
9674 # On AIX/PPC, the GNU linker is very broken
9675 if test ia64 != "$host_cpu"; then
9676 ld_shlibs=no
9677 cat <<_LT_EOF 1>&2
9678
9679 *** Warning: the GNU linker, at least up to release 2.19, is reported
9680 *** to be unable to reliably create shared libraries on AIX.
9681 *** Therefore, libtool is disabling shared libraries support. If you
9682 *** really care for shared libraries, you may want to install binutils
9683 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9684 *** You will then need to restart the configuration process.
9685
9686 _LT_EOF
9687 fi
9688 ;;
9689
9690 amigaos*)
9691 case $host_cpu in
9692 powerpc)
9693 # see comment about AmigaOS4 .so support
9694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9695 archive_expsym_cmds=''
9696 ;;
9697 m68k)
9698 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)'
9699 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_minus_L=yes
9701 ;;
9702 esac
9703 ;;
9704
9705 beos*)
9706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707 allow_undefined_flag=unsupported
9708 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9709 # support --undefined. This deserves some investigation. FIXME
9710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9711 else
9712 ld_shlibs=no
9713 fi
9714 ;;
9715
9716 cygwin* | mingw* | pw32* | cegcc*)
9717 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9718 # as there is no search path for DLLs.
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 export_dynamic_flag_spec='$wl--export-all-symbols'
9721 allow_undefined_flag=unsupported
9722 always_export_symbols=no
9723 enable_shared_with_static_runtimes=yes
9724 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'
9725 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9726
9727 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9729 # If the export-symbols file already is a .def file, use it as
9730 # is; otherwise, prepend EXPORTS...
9731 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9732 cp $export_symbols $output_objdir/$soname.def;
9733 else
9734 echo EXPORTS > $output_objdir/$soname.def;
9735 cat $export_symbols >> $output_objdir/$soname.def;
9736 fi~
9737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9738 else
9739 ld_shlibs=no
9740 fi
9741 ;;
9742
9743 haiku*)
9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9745 link_all_deplibs=yes
9746 ;;
9747
9748 os2*)
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_minus_L=yes
9751 allow_undefined_flag=unsupported
9752 shrext_cmds=.dll
9753 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9754 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9755 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9756 $ECHO EXPORTS >> $output_objdir/$libname.def~
9757 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9759 emximp -o $lib $output_objdir/$libname.def'
9760 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9763 $ECHO EXPORTS >> $output_objdir/$libname.def~
9764 prefix_cmds="$SED"~
9765 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9766 prefix_cmds="$prefix_cmds -e 1d";
9767 fi~
9768 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9769 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9771 emximp -o $lib $output_objdir/$libname.def'
9772 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9773 enable_shared_with_static_runtimes=yes
9774 file_list_spec='@'
9775 ;;
9776
9777 interix[3-9]*)
9778 hardcode_direct=no
9779 hardcode_shlibpath_var=no
9780 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9781 export_dynamic_flag_spec='$wl-E'
9782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9783 # Instead, shared libraries are loaded at an image base (0x10000000 by
9784 # default) and relocated if they conflict, which is a slow very memory
9785 # consuming and fragmenting process. To avoid this, we pick a random,
9786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9789 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'
9790 ;;
9791
9792 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9793 tmp_diet=no
9794 if test linux-dietlibc = "$host_os"; then
9795 case $cc_basename in
9796 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9797 esac
9798 fi
9799 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9800 && test no = "$tmp_diet"
9801 then
9802 tmp_addflag=' $pic_flag'
9803 tmp_sharedflag='-shared'
9804 case $cc_basename,$host_cpu in
9805 pgcc*) # Portland Group C compiler
9806 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'
9807 tmp_addflag=' $pic_flag'
9808 ;;
9809 pgf77* | pgf90* | pgf95* | pgfortran*)
9810 # Portland Group f77 and f90 compilers
9811 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'
9812 tmp_addflag=' $pic_flag -Mnomain' ;;
9813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9814 tmp_addflag=' -i_dynamic' ;;
9815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9816 tmp_addflag=' -i_dynamic -nofor_main' ;;
9817 ifc* | ifort*) # Intel Fortran compiler
9818 tmp_addflag=' -nofor_main' ;;
9819 lf95*) # Lahey Fortran 8.1
9820 whole_archive_flag_spec=
9821 tmp_sharedflag='--shared' ;;
9822 nagfor*) # NAGFOR 5.3
9823 tmp_sharedflag='-Wl,-shared' ;;
9824 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9825 tmp_sharedflag='-qmkshrobj'
9826 tmp_addflag= ;;
9827 nvcc*) # Cuda Compiler Driver 2.2
9828 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'
9829 compiler_needs_object=yes
9830 ;;
9831 esac
9832 case `$CC -V 2>&1 | $SED 5q` in
9833 *Sun\ C*) # Sun C 5.9
9834 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'
9835 compiler_needs_object=yes
9836 tmp_sharedflag='-G' ;;
9837 *Sun\ F*) # Sun Fortran 8.3
9838 tmp_sharedflag='-G' ;;
9839 esac
9840 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9841
9842 if test yes = "$supports_anon_versioning"; then
9843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9844 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9845 echo "local: *; };" >> $output_objdir/$libname.ver~
9846 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9847 fi
9848
9849 case $cc_basename in
9850 tcc*)
9851 export_dynamic_flag_spec='-rdynamic'
9852 ;;
9853 xlf* | bgf* | bgxlf* | mpixlf*)
9854 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9855 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9856 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9857 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9858 if test yes = "$supports_anon_versioning"; then
9859 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9860 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9861 echo "local: *; };" >> $output_objdir/$libname.ver~
9862 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9863 fi
9864 ;;
9865 esac
9866 else
9867 ld_shlibs=no
9868 fi
9869 ;;
9870
9871 netbsd*)
9872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9873 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9874 wlarc=
9875 else
9876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9877 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9878 fi
9879 ;;
9880
9881 solaris*)
9882 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9883 ld_shlibs=no
9884 cat <<_LT_EOF 1>&2
9885
9886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9887 *** create shared libraries on Solaris systems. Therefore, libtool
9888 *** is disabling shared libraries support. We urge you to upgrade GNU
9889 *** binutils to release 2.9.1 or newer. Another option is to modify
9890 *** your PATH or compiler configuration so that the native linker is
9891 *** used, and then restart.
9892
9893 _LT_EOF
9894 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9896 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9897 else
9898 ld_shlibs=no
9899 fi
9900 ;;
9901
9902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9903 case `$LD -v 2>&1` in
9904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9905 ld_shlibs=no
9906 cat <<_LT_EOF 1>&2
9907
9908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9909 *** reliably create shared libraries on SCO systems. Therefore, libtool
9910 *** is disabling shared libraries support. We urge you to upgrade GNU
9911 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9912 *** your PATH or compiler configuration so that the native linker is
9913 *** used, and then restart.
9914
9915 _LT_EOF
9916 ;;
9917 *)
9918 # For security reasons, it is highly recommended that you always
9919 # use absolute paths for naming shared libraries, and exclude the
9920 # DT_RUNPATH tag from executables and libraries. But doing so
9921 # requires that you compile everything twice, which is a pain.
9922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9923 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9926 else
9927 ld_shlibs=no
9928 fi
9929 ;;
9930 esac
9931 ;;
9932
9933 sunos4*)
9934 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9935 wlarc=
9936 hardcode_direct=yes
9937 hardcode_shlibpath_var=no
9938 ;;
9939
9940 *)
9941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9944 else
9945 ld_shlibs=no
9946 fi
9947 ;;
9948 esac
9949
9950 if test no = "$ld_shlibs"; then
9951 runpath_var=
9952 hardcode_libdir_flag_spec=
9953 export_dynamic_flag_spec=
9954 whole_archive_flag_spec=
9955 fi
9956 else
9957 # PORTME fill in a description of your system's linker (not GNU ld)
9958 case $host_os in
9959 aix3*)
9960 allow_undefined_flag=unsupported
9961 always_export_symbols=yes
9962 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'
9963 # Note: this linker hardcodes the directories in LIBPATH if there
9964 # are no directories specified by -L.
9965 hardcode_minus_L=yes
9966 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9967 # Neither direct hardcoding nor static linking is supported with a
9968 # broken collect2.
9969 hardcode_direct=unsupported
9970 fi
9971 ;;
9972
9973 aix[4-9]*)
9974 if test ia64 = "$host_cpu"; then
9975 # On IA64, the linker does run time linking by default, so we don't
9976 # have to do anything special.
9977 aix_use_runtimelinking=no
9978 exp_sym_flag='-Bexport'
9979 no_entry_flag=
9980 else
9981 # If we're using GNU nm, then we don't want the "-C" option.
9982 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9983 # Without the "-l" option, or with the "-B" option, AIX nm treats
9984 # weak defined symbols like other global defined symbols, whereas
9985 # GNU nm marks them as "W".
9986 # While the 'weak' keyword is ignored in the Export File, we need
9987 # it in the Import File for the 'aix-soname' feature, so we have
9988 # to replace the "-B" option with "-P" for AIX nm.
9989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9990 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'
9991 else
9992 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9993 fi
9994 aix_use_runtimelinking=no
9995
9996 # Test if we are trying to use run time linking or normal
9997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9998 # have runtime linking enabled, and use it for executables.
9999 # For shared libraries, we enable/disable runtime linking
10000 # depending on the kind of the shared library created -
10001 # when "with_aix_soname,aix_use_runtimelinking" is:
10002 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10003 # "aix,yes" lib.so shared, rtl:yes, for executables
10004 # lib.a static archive
10005 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10006 # lib.a(lib.so.V) shared, rtl:no, for executables
10007 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10008 # lib.a(lib.so.V) shared, rtl:no
10009 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10010 # lib.a static archive
10011 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10012 for ld_flag in $LDFLAGS; do
10013 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10014 aix_use_runtimelinking=yes
10015 break
10016 fi
10017 done
10018 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10019 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10020 # so we don't have lib.a shared libs to link our executables.
10021 # We have to force runtime linking in this case.
10022 aix_use_runtimelinking=yes
10023 LDFLAGS="$LDFLAGS -Wl,-brtl"
10024 fi
10025 ;;
10026 esac
10027
10028 exp_sym_flag='-bexport'
10029 no_entry_flag='-bnoentry'
10030 fi
10031
10032 # When large executables or shared objects are built, AIX ld can
10033 # have problems creating the table of contents. If linking a library
10034 # or program results in "error TOC overflow" add -mminimal-toc to
10035 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10036 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10037
10038 archive_cmds=''
10039 hardcode_direct=yes
10040 hardcode_direct_absolute=yes
10041 hardcode_libdir_separator=':'
10042 link_all_deplibs=yes
10043 file_list_spec='$wl-f,'
10044 case $with_aix_soname,$aix_use_runtimelinking in
10045 aix,*) ;; # traditional, no import file
10046 svr4,* | *,yes) # use import file
10047 # The Import File defines what to hardcode.
10048 hardcode_direct=no
10049 hardcode_direct_absolute=no
10050 ;;
10051 esac
10052
10053 if test yes = "$GCC"; then
10054 case $host_os in aix4.[012]|aix4.[012].*)
10055 # We only want to do this on AIX 4.2 and lower, the check
10056 # below for broken collect2 doesn't work under 4.3+
10057 collect2name=`$CC -print-prog-name=collect2`
10058 if test -f "$collect2name" &&
10059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10060 then
10061 # We have reworked collect2
10062 :
10063 else
10064 # We have old collect2
10065 hardcode_direct=unsupported
10066 # It fails to find uninstalled libraries when the uninstalled
10067 # path is not listed in the libpath. Setting hardcode_minus_L
10068 # to unsupported forces relinking
10069 hardcode_minus_L=yes
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 hardcode_libdir_separator=
10072 fi
10073 ;;
10074 esac
10075 shared_flag='-shared'
10076 if test yes = "$aix_use_runtimelinking"; then
10077 shared_flag="$shared_flag "'$wl-G'
10078 fi
10079 # Need to ensure runtime linking is disabled for the traditional
10080 # shared library, or the linker may eventually find shared libraries
10081 # /with/ Import File - we do not want to mix them.
10082 shared_flag_aix='-shared'
10083 shared_flag_svr4='-shared $wl-G'
10084 else
10085 # not using gcc
10086 if test ia64 = "$host_cpu"; then
10087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10088 # chokes on -Wl,-G. The following line is correct:
10089 shared_flag='-G'
10090 else
10091 if test yes = "$aix_use_runtimelinking"; then
10092 shared_flag='$wl-G'
10093 else
10094 shared_flag='$wl-bM:SRE'
10095 fi
10096 shared_flag_aix='$wl-bM:SRE'
10097 shared_flag_svr4='$wl-G'
10098 fi
10099 fi
10100
10101 export_dynamic_flag_spec='$wl-bexpall'
10102 # It seems that -bexpall does not export symbols beginning with
10103 # underscore (_), so it is better to generate a list of symbols to export.
10104 always_export_symbols=yes
10105 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10106 # Warning - without using the other runtime loading flags (-brtl),
10107 # -berok will link without error, but may produce a broken library.
10108 allow_undefined_flag='-berok'
10109 # Determine the default libpath from the value encoded in an
10110 # empty executable.
10111 if test set = "${lt_cv_aix_libpath+set}"; then
10112 aix_libpath=$lt_cv_aix_libpath
10113 else
10114 if test ${lt_cv_aix_libpath_+y}
10115 then :
10116 printf %s "(cached) " >&6
10117 else $as_nop
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120
10121 int
10122 main (void)
10123 {
10124
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"
10130 then :
10131
10132 lt_aix_libpath_sed='
10133 /Import File Strings/,/^$/ {
10134 /^0/ {
10135 s/^0 *\([^ ]*\) *$/\1/
10136 p
10137 }
10138 }'
10139 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10140 # Check for a 64-bit object if we didn't find anything.
10141 if test -z "$lt_cv_aix_libpath_"; then
10142 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10143 fi
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10146 conftest$ac_exeext conftest.$ac_ext
10147 if test -z "$lt_cv_aix_libpath_"; then
10148 lt_cv_aix_libpath_=/usr/lib:/lib
10149 fi
10150
10151 fi
10152
10153 aix_libpath=$lt_cv_aix_libpath_
10154 fi
10155
10156 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10157 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
10158 else
10159 if test ia64 = "$host_cpu"; then
10160 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10161 allow_undefined_flag="-z nodefs"
10162 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"
10163 else
10164 # Determine the default libpath from the value encoded in an
10165 # empty executable.
10166 if test set = "${lt_cv_aix_libpath+set}"; then
10167 aix_libpath=$lt_cv_aix_libpath
10168 else
10169 if test ${lt_cv_aix_libpath_+y}
10170 then :
10171 printf %s "(cached) " >&6
10172 else $as_nop
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175
10176 int
10177 main (void)
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"
10185 then :
10186
10187 lt_aix_libpath_sed='
10188 /Import File Strings/,/^$/ {
10189 /^0/ {
10190 s/^0 *\([^ ]*\) *$/\1/
10191 p
10192 }
10193 }'
10194 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195 # Check for a 64-bit object if we didn't find anything.
10196 if test -z "$lt_cv_aix_libpath_"; then
10197 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10198 fi
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201 conftest$ac_exeext conftest.$ac_ext
10202 if test -z "$lt_cv_aix_libpath_"; then
10203 lt_cv_aix_libpath_=/usr/lib:/lib
10204 fi
10205
10206 fi
10207
10208 aix_libpath=$lt_cv_aix_libpath_
10209 fi
10210
10211 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10212 # Warning - without using the other run time loading flags,
10213 # -berok will link without error, but may produce a broken library.
10214 no_undefined_flag=' $wl-bernotok'
10215 allow_undefined_flag=' $wl-berok'
10216 if test yes = "$with_gnu_ld"; then
10217 # We only use this code for GNU lds that support --whole-archive.
10218 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10219 else
10220 # Exported symbols can be pulled into shared objects from archives
10221 whole_archive_flag_spec='$convenience'
10222 fi
10223 archive_cmds_need_lc=yes
10224 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10225 # -brtl affects multiple linker settings, -berok does not and is overridden later
10226 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10227 if test svr4 != "$with_aix_soname"; then
10228 # This is similar to how AIX traditionally builds its shared libraries.
10229 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'
10230 fi
10231 if test aix != "$with_aix_soname"; then
10232 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'
10233 else
10234 # used by -dlpreopen to get the symbols
10235 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10236 fi
10237 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10238 fi
10239 fi
10240 ;;
10241
10242 amigaos*)
10243 case $host_cpu in
10244 powerpc)
10245 # see comment about AmigaOS4 .so support
10246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10247 archive_expsym_cmds=''
10248 ;;
10249 m68k)
10250 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)'
10251 hardcode_libdir_flag_spec='-L$libdir'
10252 hardcode_minus_L=yes
10253 ;;
10254 esac
10255 ;;
10256
10257 bsdi[45]*)
10258 export_dynamic_flag_spec=-rdynamic
10259 ;;
10260
10261 cygwin* | mingw* | pw32* | cegcc*)
10262 # When not using gcc, we currently assume that we are using
10263 # Microsoft Visual C++ or Intel C++ Compiler.
10264 # hardcode_libdir_flag_spec is actually meaningless, as there is
10265 # no search path for DLLs.
10266 case $cc_basename in
10267 cl* | icl*)
10268 # Native MSVC or ICC
10269 hardcode_libdir_flag_spec=' '
10270 allow_undefined_flag=unsupported
10271 always_export_symbols=yes
10272 file_list_spec='@'
10273 # Tell ltmain to make .lib files, not .a files.
10274 libext=lib
10275 # Tell ltmain to make .dll files, not .so files.
10276 shrext_cmds=.dll
10277 # FIXME: Setting linknames here is a bad hack.
10278 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10279 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10280 cp "$export_symbols" "$output_objdir/$soname.def";
10281 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10282 else
10283 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10284 fi~
10285 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10286 linknames='
10287 # The linker will not automatically build a static lib if we build a DLL.
10288 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10289 enable_shared_with_static_runtimes=yes
10290 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10292 # Don't use ranlib
10293 old_postinstall_cmds='chmod 644 $oldlib'
10294 postlink_cmds='lt_outputfile="@OUTPUT@"~
10295 lt_tool_outputfile="@TOOL_OUTPUT@"~
10296 case $lt_outputfile in
10297 *.exe|*.EXE) ;;
10298 *)
10299 lt_outputfile=$lt_outputfile.exe
10300 lt_tool_outputfile=$lt_tool_outputfile.exe
10301 ;;
10302 esac~
10303 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10304 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10305 $RM "$lt_outputfile.manifest";
10306 fi'
10307 ;;
10308 *)
10309 # Assume MSVC and ICC wrapper
10310 hardcode_libdir_flag_spec=' '
10311 allow_undefined_flag=unsupported
10312 # Tell ltmain to make .lib files, not .a files.
10313 libext=lib
10314 # Tell ltmain to make .dll files, not .so files.
10315 shrext_cmds=.dll
10316 # FIXME: Setting linknames here is a bad hack.
10317 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10318 # The linker will automatically build a .lib file if we build a DLL.
10319 old_archive_from_new_cmds='true'
10320 # FIXME: Should let the user specify the lib program.
10321 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10322 enable_shared_with_static_runtimes=yes
10323 ;;
10324 esac
10325 ;;
10326
10327 darwin* | rhapsody*)
10328
10329
10330 archive_cmds_need_lc=no
10331 hardcode_direct=no
10332 hardcode_automatic=yes
10333 hardcode_shlibpath_var=unsupported
10334 if test yes = "$lt_cv_ld_force_load"; then
10335 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\"`'
10336
10337 else
10338 whole_archive_flag_spec=''
10339 fi
10340 link_all_deplibs=yes
10341 allow_undefined_flag=$_lt_dar_allow_undefined
10342 case $cc_basename in
10343 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10344 *) _lt_dar_can_shared=$GCC ;;
10345 esac
10346 if test yes = "$_lt_dar_can_shared"; then
10347 output_verbose_link_cmd=func_echo_all
10348 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10349 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10350 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"
10351 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"
10352
10353 else
10354 ld_shlibs=no
10355 fi
10356
10357 ;;
10358
10359 dgux*)
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_libdir_flag_spec='-L$libdir'
10362 hardcode_shlibpath_var=no
10363 ;;
10364
10365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10366 # support. Future versions do this automatically, but an explicit c++rt0.o
10367 # does not break anything, and helps significantly (at the cost of a little
10368 # extra space).
10369 freebsd2.2*)
10370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10371 hardcode_libdir_flag_spec='-R$libdir'
10372 hardcode_direct=yes
10373 hardcode_shlibpath_var=no
10374 ;;
10375
10376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10377 freebsd2.*)
10378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct=yes
10380 hardcode_minus_L=yes
10381 hardcode_shlibpath_var=no
10382 ;;
10383
10384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10385 freebsd* | dragonfly* | midnightbsd*)
10386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10387 hardcode_libdir_flag_spec='-R$libdir'
10388 hardcode_direct=yes
10389 hardcode_shlibpath_var=no
10390 ;;
10391
10392 hpux9*)
10393 if test yes = "$GCC"; then
10394 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'
10395 else
10396 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'
10397 fi
10398 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10399 hardcode_libdir_separator=:
10400 hardcode_direct=yes
10401
10402 # hardcode_minus_L: Not really in the search PATH,
10403 # but as the default location of the library.
10404 hardcode_minus_L=yes
10405 export_dynamic_flag_spec='$wl-E'
10406 ;;
10407
10408 hpux10*)
10409 if test yes,no = "$GCC,$with_gnu_ld"; then
10410 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10411 else
10412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10413 fi
10414 if test no = "$with_gnu_ld"; then
10415 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10416 hardcode_libdir_separator=:
10417 hardcode_direct=yes
10418 hardcode_direct_absolute=yes
10419 export_dynamic_flag_spec='$wl-E'
10420 # hardcode_minus_L: Not really in the search PATH,
10421 # but as the default location of the library.
10422 hardcode_minus_L=yes
10423 fi
10424 ;;
10425
10426 hpux11*)
10427 if test yes,no = "$GCC,$with_gnu_ld"; then
10428 case $host_cpu in
10429 hppa*64*)
10430 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 ;;
10432 ia64*)
10433 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10434 ;;
10435 *)
10436 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10437 ;;
10438 esac
10439 else
10440 case $host_cpu in
10441 hppa*64*)
10442 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10443 ;;
10444 ia64*)
10445 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10446 ;;
10447 *)
10448
10449 # Older versions of the 11.00 compiler do not understand -b yet
10450 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10452 printf %s "checking if $CC understands -b... " >&6; }
10453 if test ${lt_cv_prog_compiler__b+y}
10454 then :
10455 printf %s "(cached) " >&6
10456 else $as_nop
10457 lt_cv_prog_compiler__b=no
10458 save_LDFLAGS=$LDFLAGS
10459 LDFLAGS="$LDFLAGS -b"
10460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10462 # The linker can only warn and ignore the option if not recognized
10463 # So say no if there are warnings
10464 if test -s conftest.err; then
10465 # Append any errors to the config.log.
10466 cat conftest.err 1>&5
10467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10469 if diff conftest.exp conftest.er2 >/dev/null; then
10470 lt_cv_prog_compiler__b=yes
10471 fi
10472 else
10473 lt_cv_prog_compiler__b=yes
10474 fi
10475 fi
10476 $RM -r conftest*
10477 LDFLAGS=$save_LDFLAGS
10478
10479 fi
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10481 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10482
10483 if test yes = "$lt_cv_prog_compiler__b"; then
10484 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10485 else
10486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10487 fi
10488
10489 ;;
10490 esac
10491 fi
10492 if test no = "$with_gnu_ld"; then
10493 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10494 hardcode_libdir_separator=:
10495
10496 case $host_cpu in
10497 hppa*64*|ia64*)
10498 hardcode_direct=no
10499 hardcode_shlibpath_var=no
10500 ;;
10501 *)
10502 hardcode_direct=yes
10503 hardcode_direct_absolute=yes
10504 export_dynamic_flag_spec='$wl-E'
10505
10506 # hardcode_minus_L: Not really in the search PATH,
10507 # but as the default location of the library.
10508 hardcode_minus_L=yes
10509 ;;
10510 esac
10511 fi
10512 ;;
10513
10514 irix5* | irix6* | nonstopux*)
10515 if test yes = "$GCC"; then
10516 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'
10517 # Try to use the -exported_symbol ld option, if it does not
10518 # work, assume that -exports_file does not work either and
10519 # implicitly export all symbols.
10520 # This should be the same for all languages, so no per-tag cache variable.
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10522 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10523 if test ${lt_cv_irix_exported_symbol+y}
10524 then :
10525 printf %s "(cached) " >&6
10526 else $as_nop
10527 save_LDFLAGS=$LDFLAGS
10528 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 int foo (void) { return 0; }
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"
10534 then :
10535 lt_cv_irix_exported_symbol=yes
10536 else $as_nop
10537 lt_cv_irix_exported_symbol=no
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10540 conftest$ac_exeext conftest.$ac_ext
10541 LDFLAGS=$save_LDFLAGS
10542 fi
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10544 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10545 if test yes = "$lt_cv_irix_exported_symbol"; then
10546 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'
10547 fi
10548 else
10549 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'
10550 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'
10551 fi
10552 archive_cmds_need_lc='no'
10553 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10554 hardcode_libdir_separator=:
10555 inherit_rpath=yes
10556 link_all_deplibs=yes
10557 ;;
10558
10559 linux*)
10560 case $cc_basename in
10561 tcc*)
10562 # Fabrice Bellard et al's Tiny C Compiler
10563 ld_shlibs=yes
10564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10565 ;;
10566 esac
10567 ;;
10568
10569 netbsd*)
10570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10572 else
10573 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10574 fi
10575 hardcode_libdir_flag_spec='-R$libdir'
10576 hardcode_direct=yes
10577 hardcode_shlibpath_var=no
10578 ;;
10579
10580 newsos6)
10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_direct=yes
10583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10584 hardcode_libdir_separator=:
10585 hardcode_shlibpath_var=no
10586 ;;
10587
10588 *nto* | *qnx*)
10589 ;;
10590
10591 openbsd* | bitrig*)
10592 if test -f /usr/libexec/ld.so; then
10593 hardcode_direct=yes
10594 hardcode_shlibpath_var=no
10595 hardcode_direct_absolute=yes
10596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10598 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10599 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10600 export_dynamic_flag_spec='$wl-E'
10601 else
10602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10603 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10604 fi
10605 else
10606 ld_shlibs=no
10607 fi
10608 ;;
10609
10610 os2*)
10611 hardcode_libdir_flag_spec='-L$libdir'
10612 hardcode_minus_L=yes
10613 allow_undefined_flag=unsupported
10614 shrext_cmds=.dll
10615 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10616 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10617 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10618 $ECHO EXPORTS >> $output_objdir/$libname.def~
10619 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10621 emximp -o $lib $output_objdir/$libname.def'
10622 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10625 $ECHO EXPORTS >> $output_objdir/$libname.def~
10626 prefix_cmds="$SED"~
10627 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10628 prefix_cmds="$prefix_cmds -e 1d";
10629 fi~
10630 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10631 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10633 emximp -o $lib $output_objdir/$libname.def'
10634 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10635 enable_shared_with_static_runtimes=yes
10636 file_list_spec='@'
10637 ;;
10638
10639 osf3*)
10640 if test yes = "$GCC"; then
10641 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10642 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'
10643 else
10644 allow_undefined_flag=' -expect_unresolved \*'
10645 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'
10646 fi
10647 archive_cmds_need_lc='no'
10648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10649 hardcode_libdir_separator=:
10650 ;;
10651
10652 osf4* | osf5*) # as osf3* with the addition of -msym flag
10653 if test yes = "$GCC"; then
10654 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10655 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'
10656 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10657 else
10658 allow_undefined_flag=' -expect_unresolved \*'
10659 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'
10660 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~
10661 $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'
10662
10663 # Both c and cxx compiler support -rpath directly
10664 hardcode_libdir_flag_spec='-rpath $libdir'
10665 fi
10666 archive_cmds_need_lc='no'
10667 hardcode_libdir_separator=:
10668 ;;
10669
10670 solaris*)
10671 no_undefined_flag=' -z defs'
10672 if test yes = "$GCC"; then
10673 wlarc='$wl'
10674 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10676 $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'
10677 else
10678 case `$CC -V 2>&1` in
10679 *"Compilers 5.0"*)
10680 wlarc=''
10681 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10683 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10684 ;;
10685 *)
10686 wlarc='$wl'
10687 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10689 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10690 ;;
10691 esac
10692 fi
10693 hardcode_libdir_flag_spec='-R$libdir'
10694 hardcode_shlibpath_var=no
10695 case $host_os in
10696 solaris2.[0-5] | solaris2.[0-5].*) ;;
10697 *)
10698 # The compiler driver will combine and reorder linker options,
10699 # but understands '-z linker_flag'. GCC discards it without '$wl',
10700 # but is careful enough not to reorder.
10701 # Supported since Solaris 2.6 (maybe 2.5.1?)
10702 if test yes = "$GCC"; then
10703 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10704 else
10705 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10706 fi
10707 ;;
10708 esac
10709 link_all_deplibs=yes
10710 ;;
10711
10712 sunos4*)
10713 if test sequent = "$host_vendor"; then
10714 # Use $CC to link under sequent, because it throws in some extra .o
10715 # files that make .init and .fini sections work.
10716 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10717 else
10718 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10719 fi
10720 hardcode_libdir_flag_spec='-L$libdir'
10721 hardcode_direct=yes
10722 hardcode_minus_L=yes
10723 hardcode_shlibpath_var=no
10724 ;;
10725
10726 sysv4)
10727 case $host_vendor in
10728 sni)
10729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10730 hardcode_direct=yes # is this really true???
10731 ;;
10732 siemens)
10733 ## LD is ld it makes a PLAMLIB
10734 ## CC just makes a GrossModule.
10735 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10736 reload_cmds='$CC -r -o $output$reload_objs'
10737 hardcode_direct=no
10738 ;;
10739 motorola)
10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10742 ;;
10743 esac
10744 runpath_var='LD_RUN_PATH'
10745 hardcode_shlibpath_var=no
10746 ;;
10747
10748 sysv4.3*)
10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750 hardcode_shlibpath_var=no
10751 export_dynamic_flag_spec='-Bexport'
10752 ;;
10753
10754 sysv4*MP*)
10755 if test -d /usr/nec; then
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_shlibpath_var=no
10758 runpath_var=LD_RUN_PATH
10759 hardcode_runpath_var=yes
10760 ld_shlibs=yes
10761 fi
10762 ;;
10763
10764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10765 no_undefined_flag='$wl-z,text'
10766 archive_cmds_need_lc=no
10767 hardcode_shlibpath_var=no
10768 runpath_var='LD_RUN_PATH'
10769
10770 if test yes = "$GCC"; then
10771 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 else
10774 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776 fi
10777 ;;
10778
10779 sysv5* | sco3.2v5* | sco5v6*)
10780 # Note: We CANNOT use -z defs as we might desire, because we do not
10781 # link with -lc, and that would cause any symbols used from libc to
10782 # always be unresolved, which means just about no library would
10783 # ever link correctly. If we're not using GNU ld we use -z text
10784 # though, which does catch some bad symbols but isn't as heavy-handed
10785 # as -z defs.
10786 no_undefined_flag='$wl-z,text'
10787 allow_undefined_flag='$wl-z,nodefs'
10788 archive_cmds_need_lc=no
10789 hardcode_shlibpath_var=no
10790 hardcode_libdir_flag_spec='$wl-R,$libdir'
10791 hardcode_libdir_separator=':'
10792 link_all_deplibs=yes
10793 export_dynamic_flag_spec='$wl-Bexport'
10794 runpath_var='LD_RUN_PATH'
10795
10796 if test yes = "$GCC"; then
10797 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 else
10800 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10801 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10802 fi
10803 ;;
10804
10805 uts4*)
10806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10807 hardcode_libdir_flag_spec='-L$libdir'
10808 hardcode_shlibpath_var=no
10809 ;;
10810
10811 *)
10812 ld_shlibs=no
10813 ;;
10814 esac
10815
10816 if test sni = "$host_vendor"; then
10817 case $host in
10818 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10819 export_dynamic_flag_spec='$wl-Blargedynsym'
10820 ;;
10821 esac
10822 fi
10823 fi
10824
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10826 printf "%s\n" "$ld_shlibs" >&6; }
10827 test no = "$ld_shlibs" && can_build_shared=no
10828
10829 with_gnu_ld=$with_gnu_ld
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845 #
10846 # Do we need to explicitly link libc?
10847 #
10848 case "x$archive_cmds_need_lc" in
10849 x|xyes)
10850 # Assume -lc should be added
10851 archive_cmds_need_lc=yes
10852
10853 if test yes,yes = "$GCC,$enable_shared"; then
10854 case $archive_cmds in
10855 *'~'*)
10856 # FIXME: we may have to deal with multi-command sequences.
10857 ;;
10858 '$CC '*)
10859 # Test whether the compiler implicitly links with -lc since on some
10860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10861 # to ld, don't add -lc before -lgcc.
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10863 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10864 if test ${lt_cv_archive_cmds_need_lc+y}
10865 then :
10866 printf %s "(cached) " >&6
10867 else $as_nop
10868 $RM conftest*
10869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10870
10871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10872 (eval $ac_compile) 2>&5
10873 ac_status=$?
10874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10875 test $ac_status = 0; } 2>conftest.err; then
10876 soname=conftest
10877 lib=conftest
10878 libobjs=conftest.$ac_objext
10879 deplibs=
10880 wl=$lt_prog_compiler_wl
10881 pic_flag=$lt_prog_compiler_pic
10882 compiler_flags=-v
10883 linker_flags=-v
10884 verstring=
10885 output_objdir=.
10886 libname=conftest
10887 lt_save_allow_undefined_flag=$allow_undefined_flag
10888 allow_undefined_flag=
10889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10890 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10891 ac_status=$?
10892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10893 test $ac_status = 0; }
10894 then
10895 lt_cv_archive_cmds_need_lc=no
10896 else
10897 lt_cv_archive_cmds_need_lc=yes
10898 fi
10899 allow_undefined_flag=$lt_save_allow_undefined_flag
10900 else
10901 cat conftest.err 1>&5
10902 fi
10903 $RM conftest*
10904
10905 fi
10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10907 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10908 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10909 ;;
10910 esac
10911 fi
10912 ;;
10913 esac
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11067 printf %s "checking dynamic linker characteristics... " >&6; }
11068
11069 if test yes = "$GCC"; then
11070 case $host_os in
11071 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11072 *) lt_awk_arg='/^libraries:/' ;;
11073 esac
11074 case $host_os in
11075 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11076 *) lt_sed_strip_eq='s|=/|/|g' ;;
11077 esac
11078 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11079 case $lt_search_path_spec in
11080 *\;*)
11081 # if the path contains ";" then we assume it to be the separator
11082 # otherwise default to the standard path separator (i.e. ":") - it is
11083 # assumed that no part of a normal pathname contains ";" but that should
11084 # okay in the real world where ";" in dirpaths is itself problematic.
11085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11086 ;;
11087 *)
11088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11089 ;;
11090 esac
11091 # Ok, now we have the path, separated by spaces, we can step through it
11092 # and add multilib dir if necessary...
11093 lt_tmp_lt_search_path_spec=
11094 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11095 # ...but if some path component already ends with the multilib dir we assume
11096 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11097 case "$lt_multi_os_dir; $lt_search_path_spec " in
11098 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11099 lt_multi_os_dir=
11100 ;;
11101 esac
11102 for lt_sys_path in $lt_search_path_spec; do
11103 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11105 elif test -n "$lt_multi_os_dir"; then
11106 test -d "$lt_sys_path" && \
11107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11108 fi
11109 done
11110 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11111 BEGIN {RS = " "; FS = "/|\n";} {
11112 lt_foo = "";
11113 lt_count = 0;
11114 for (lt_i = NF; lt_i > 0; lt_i--) {
11115 if ($lt_i != "" && $lt_i != ".") {
11116 if ($lt_i == "..") {
11117 lt_count++;
11118 } else {
11119 if (lt_count == 0) {
11120 lt_foo = "/" $lt_i lt_foo;
11121 } else {
11122 lt_count--;
11123 }
11124 }
11125 }
11126 }
11127 if (lt_foo != "") { lt_freq[lt_foo]++; }
11128 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11129 }'`
11130 # AWK program above erroneously prepends '/' to C:/dos/paths
11131 # for these hosts.
11132 case $host_os in
11133 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11134 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11135 esac
11136 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11137 else
11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11139 fi
11140 library_names_spec=
11141 libname_spec='lib$name'
11142 soname_spec=
11143 shrext_cmds=.so
11144 postinstall_cmds=
11145 postuninstall_cmds=
11146 finish_cmds=
11147 finish_eval=
11148 shlibpath_var=
11149 shlibpath_overrides_runpath=unknown
11150 version_type=none
11151 dynamic_linker="$host_os ld.so"
11152 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11153 need_lib_prefix=unknown
11154 hardcode_into_libs=no
11155
11156 # when you set need_version to no, make sure it does not cause -set_version
11157 # flags to be left without arguments
11158 need_version=unknown
11159
11160
11161
11162 case $host_os in
11163 aix3*)
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11166 shlibpath_var=LIBPATH
11167
11168 # AIX 3 has no versioning support, so we append a major version to the name.
11169 soname_spec='$libname$release$shared_ext$major'
11170 ;;
11171
11172 aix[4-9]*)
11173 version_type=linux # correct to gnu/linux during the next big refactor
11174 need_lib_prefix=no
11175 need_version=no
11176 hardcode_into_libs=yes
11177 if test ia64 = "$host_cpu"; then
11178 # AIX 5 supports IA64
11179 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 else
11182 # With GCC up to 2.95.x, collect2 would create an import file
11183 # for dependence libraries. The import file would start with
11184 # the line '#! .'. This would cause the generated library to
11185 # depend on '.', always an invalid library. This was fixed in
11186 # development snapshots of GCC prior to 3.0.
11187 case $host_os in
11188 aix4 | aix4.[01] | aix4.[01].*)
11189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11190 echo ' yes '
11191 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11192 :
11193 else
11194 can_build_shared=no
11195 fi
11196 ;;
11197 esac
11198 # Using Import Files as archive members, it is possible to support
11199 # filename-based versioning of shared library archives on AIX. While
11200 # this would work for both with and without runtime linking, it will
11201 # prevent static linking of such archives. So we do filename-based
11202 # shared library versioning with .so extension only, which is used
11203 # when both runtime linking and shared linking is enabled.
11204 # Unfortunately, runtime linking may impact performance, so we do
11205 # not want this to be the default eventually. Also, we use the
11206 # versioned .so libs for executables only if there is the -brtl
11207 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11208 # To allow for filename-based versioning support, we need to create
11209 # libNAME.so.V as an archive file, containing:
11210 # *) an Import File, referring to the versioned filename of the
11211 # archive as well as the shared archive member, telling the
11212 # bitwidth (32 or 64) of that shared object, and providing the
11213 # list of exported symbols of that shared object, eventually
11214 # decorated with the 'weak' keyword
11215 # *) the shared object with the F_LOADONLY flag set, to really avoid
11216 # it being seen by the linker.
11217 # At run time we better use the real file rather than another symlink,
11218 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11219
11220 case $with_aix_soname,$aix_use_runtimelinking in
11221 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11222 # soname into executable. Probably we can add versioning support to
11223 # collect2, so additional links can be useful in future.
11224 aix,yes) # traditional libtool
11225 dynamic_linker='AIX unversionable lib.so'
11226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11227 # instead of lib<name>.a to let people know that these are not
11228 # typical AIX shared libraries.
11229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11230 ;;
11231 aix,no) # traditional AIX only
11232 dynamic_linker='AIX lib.a(lib.so.V)'
11233 # We preserve .a as extension for shared libraries through AIX4.2
11234 # and later when we are not doing run time linking.
11235 library_names_spec='$libname$release.a $libname.a'
11236 soname_spec='$libname$release$shared_ext$major'
11237 ;;
11238 svr4,*) # full svr4 only
11239 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11240 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11241 # We do not specify a path in Import Files, so LIBPATH fires.
11242 shlibpath_overrides_runpath=yes
11243 ;;
11244 *,yes) # both, prefer svr4
11245 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11246 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11247 # unpreferred sharedlib libNAME.a needs extra handling
11248 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"'
11249 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"'
11250 # We do not specify a path in Import Files, so LIBPATH fires.
11251 shlibpath_overrides_runpath=yes
11252 ;;
11253 *,no) # both, prefer aix
11254 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11255 library_names_spec='$libname$release.a $libname.a'
11256 soname_spec='$libname$release$shared_ext$major'
11257 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11258 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)'
11259 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"'
11260 ;;
11261 esac
11262 shlibpath_var=LIBPATH
11263 fi
11264 ;;
11265
11266 amigaos*)
11267 case $host_cpu in
11268 powerpc)
11269 # Since July 2007 AmigaOS4 officially supports .so libraries.
11270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11272 ;;
11273 m68k)
11274 library_names_spec='$libname.ixlibrary $libname.a'
11275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11276 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'
11277 ;;
11278 esac
11279 ;;
11280
11281 beos*)
11282 library_names_spec='$libname$shared_ext'
11283 dynamic_linker="$host_os ld.so"
11284 shlibpath_var=LIBRARY_PATH
11285 ;;
11286
11287 bsdi[45]*)
11288 version_type=linux # correct to gnu/linux during the next big refactor
11289 need_version=no
11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291 soname_spec='$libname$release$shared_ext$major'
11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11296 # the default ld.so.conf also contains /usr/contrib/lib and
11297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11298 # libtool to hard-code these into programs
11299 ;;
11300
11301 cygwin* | mingw* | pw32* | cegcc*)
11302 version_type=windows
11303 shrext_cmds=.dll
11304 need_version=no
11305 need_lib_prefix=no
11306
11307 case $GCC,$cc_basename in
11308 yes,*)
11309 # gcc
11310 library_names_spec='$libname.dll.a'
11311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11312 postinstall_cmds='base_file=`basename \$file`~
11313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11314 dldir=$destdir/`dirname \$dlpath`~
11315 test -d \$dldir || mkdir -p \$dldir~
11316 $install_prog $dir/$dlname \$dldir/$dlname~
11317 chmod a+x \$dldir/$dlname~
11318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11320 fi'
11321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11322 dlpath=$dir/\$dldll~
11323 $RM \$dlpath'
11324 shlibpath_overrides_runpath=yes
11325
11326 case $host_os in
11327 cygwin*)
11328 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11329 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11330
11331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11332 ;;
11333 mingw* | cegcc*)
11334 # MinGW DLLs use traditional 'lib' prefix
11335 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11336 ;;
11337 pw32*)
11338 # pw32 DLLs use 'pw' prefix rather than 'lib'
11339 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11340 ;;
11341 esac
11342 dynamic_linker='Win32 ld.exe'
11343 ;;
11344
11345 *,cl* | *,icl*)
11346 # Native MSVC or ICC
11347 libname_spec='$name'
11348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11349 library_names_spec='$libname.dll.lib'
11350
11351 case $build_os in
11352 mingw*)
11353 sys_lib_search_path_spec=
11354 lt_save_ifs=$IFS
11355 IFS=';'
11356 for lt_path in $LIB
11357 do
11358 IFS=$lt_save_ifs
11359 # Let DOS variable expansion print the short 8.3 style file name.
11360 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11361 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11362 done
11363 IFS=$lt_save_ifs
11364 # Convert to MSYS style.
11365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11366 ;;
11367 cygwin*)
11368 # Convert to unix form, then to dos form, then back to unix form
11369 # but this time dos style (no spaces!) so that the unix form looks
11370 # like /cygdrive/c/PROGRA~1:/cygdr...
11371 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11372 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11373 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11374 ;;
11375 *)
11376 sys_lib_search_path_spec=$LIB
11377 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11378 # It is most probably a Windows format PATH.
11379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11380 else
11381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11382 fi
11383 # FIXME: find the short name or the path components, as spaces are
11384 # common. (e.g. "Program Files" -> "PROGRA~1")
11385 ;;
11386 esac
11387
11388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11389 postinstall_cmds='base_file=`basename \$file`~
11390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11391 dldir=$destdir/`dirname \$dlpath`~
11392 test -d \$dldir || mkdir -p \$dldir~
11393 $install_prog $dir/$dlname \$dldir/$dlname'
11394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11395 dlpath=$dir/\$dldll~
11396 $RM \$dlpath'
11397 shlibpath_overrides_runpath=yes
11398 dynamic_linker='Win32 link.exe'
11399 ;;
11400
11401 *)
11402 # Assume MSVC and ICC wrapper
11403 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11404 dynamic_linker='Win32 ld.exe'
11405 ;;
11406 esac
11407 # FIXME: first we should search . and the directory the executable is in
11408 shlibpath_var=PATH
11409 ;;
11410
11411 darwin* | rhapsody*)
11412 dynamic_linker="$host_os dyld"
11413 version_type=darwin
11414 need_lib_prefix=no
11415 need_version=no
11416 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11417 soname_spec='$libname$release$major$shared_ext'
11418 shlibpath_overrides_runpath=yes
11419 shlibpath_var=DYLD_LIBRARY_PATH
11420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11421
11422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11424 ;;
11425
11426 dgux*)
11427 version_type=linux # correct to gnu/linux during the next big refactor
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11431 soname_spec='$libname$release$shared_ext$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 ;;
11434
11435 freebsd* | dragonfly* | midnightbsd*)
11436 # DragonFly does not have aout. When/if they implement a new
11437 # versioning mechanism, adjust this.
11438 if test -x /usr/bin/objformat; then
11439 objformat=`/usr/bin/objformat`
11440 else
11441 case $host_os in
11442 freebsd[23].*) objformat=aout ;;
11443 *) objformat=elf ;;
11444 esac
11445 fi
11446 version_type=freebsd-$objformat
11447 case $version_type in
11448 freebsd-elf*)
11449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11450 soname_spec='$libname$release$shared_ext$major'
11451 need_version=no
11452 need_lib_prefix=no
11453 ;;
11454 freebsd-*)
11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11456 need_version=yes
11457 ;;
11458 esac
11459 shlibpath_var=LD_LIBRARY_PATH
11460 case $host_os in
11461 freebsd2.*)
11462 shlibpath_overrides_runpath=yes
11463 ;;
11464 freebsd3.[01]* | freebsdelf3.[01]*)
11465 shlibpath_overrides_runpath=yes
11466 hardcode_into_libs=yes
11467 ;;
11468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11470 shlibpath_overrides_runpath=no
11471 hardcode_into_libs=yes
11472 ;;
11473 *) # from 4.6 on, and DragonFly
11474 shlibpath_overrides_runpath=yes
11475 hardcode_into_libs=yes
11476 ;;
11477 esac
11478 ;;
11479
11480 haiku*)
11481 version_type=linux # correct to gnu/linux during the next big refactor
11482 need_lib_prefix=no
11483 need_version=no
11484 dynamic_linker="$host_os runtime_loader"
11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486 soname_spec='$libname$release$shared_ext$major'
11487 shlibpath_var=LIBRARY_PATH
11488 shlibpath_overrides_runpath=no
11489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11490 hardcode_into_libs=yes
11491 ;;
11492
11493 hpux9* | hpux10* | hpux11*)
11494 # Give a soname corresponding to the major version so that dld.sl refuses to
11495 # link against other versions.
11496 version_type=sunos
11497 need_lib_prefix=no
11498 need_version=no
11499 case $host_cpu in
11500 ia64*)
11501 shrext_cmds='.so'
11502 hardcode_into_libs=yes
11503 dynamic_linker="$host_os dld.so"
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec='$libname$release$shared_ext$major'
11508 if test 32 = "$HPUX_IA64_MODE"; then
11509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11510 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11511 else
11512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11513 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11514 fi
11515 ;;
11516 hppa*64*)
11517 shrext_cmds='.sl'
11518 hardcode_into_libs=yes
11519 dynamic_linker="$host_os dld.sl"
11520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 soname_spec='$libname$release$shared_ext$major'
11524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11526 ;;
11527 *)
11528 shrext_cmds='.sl'
11529 dynamic_linker="$host_os dld.sl"
11530 shlibpath_var=SHLIB_PATH
11531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11533 soname_spec='$libname$release$shared_ext$major'
11534 ;;
11535 esac
11536 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11537 postinstall_cmds='chmod 555 $lib'
11538 # or fails outright, so override atomically:
11539 install_override_mode=555
11540 ;;
11541
11542 interix[3-9]*)
11543 version_type=linux # correct to gnu/linux during the next big refactor
11544 need_lib_prefix=no
11545 need_version=no
11546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11547 soname_spec='$libname$release$shared_ext$major'
11548 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=no
11551 hardcode_into_libs=yes
11552 ;;
11553
11554 irix5* | irix6* | nonstopux*)
11555 case $host_os in
11556 nonstopux*) version_type=nonstopux ;;
11557 *)
11558 if test yes = "$lt_cv_prog_gnu_ld"; then
11559 version_type=linux # correct to gnu/linux during the next big refactor
11560 else
11561 version_type=irix
11562 fi ;;
11563 esac
11564 need_lib_prefix=no
11565 need_version=no
11566 soname_spec='$libname$release$shared_ext$major'
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11568 case $host_os in
11569 irix5* | nonstopux*)
11570 libsuff= shlibsuff=
11571 ;;
11572 *)
11573 case $LD in # libtool.m4 will add one of these switches to LD
11574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11575 libsuff= shlibsuff= libmagic=32-bit;;
11576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11577 libsuff=32 shlibsuff=N32 libmagic=N32;;
11578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11579 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11580 *) libsuff= shlibsuff= libmagic=never-match;;
11581 esac
11582 ;;
11583 esac
11584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11585 shlibpath_overrides_runpath=no
11586 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11587 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11588 hardcode_into_libs=yes
11589 ;;
11590
11591 # No shared lib support for Linux oldld, aout, or coff.
11592 linux*oldld* | linux*aout* | linux*coff*)
11593 dynamic_linker=no
11594 ;;
11595
11596 linux*android*)
11597 version_type=none # Android doesn't support versioned libraries.
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='$libname$release$shared_ext'
11601 soname_spec='$libname$release$shared_ext'
11602 finish_cmds=
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=yes
11605
11606 # This implies no fast_install, which is unacceptable.
11607 # Some rework will be needed to allow for fast_install
11608 # before this can be enabled.
11609 hardcode_into_libs=yes
11610
11611 dynamic_linker='Android linker'
11612 # Don't embed -rpath directories since the linker doesn't support them.
11613 hardcode_libdir_flag_spec='-L$libdir'
11614 ;;
11615
11616 # This must be glibc/ELF.
11617 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11618 version_type=linux # correct to gnu/linux during the next big refactor
11619 need_lib_prefix=no
11620 need_version=no
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=no
11626
11627 # Some binutils ld are patched to set DT_RUNPATH
11628 if test ${lt_cv_shlibpath_overrides_runpath+y}
11629 then :
11630 printf %s "(cached) " >&6
11631 else $as_nop
11632 lt_cv_shlibpath_overrides_runpath=no
11633 save_LDFLAGS=$LDFLAGS
11634 save_libdir=$libdir
11635 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11636 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639
11640 int
11641 main (void)
11642 {
11643
11644 ;
11645 return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"
11649 then :
11650 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11651 then :
11652 lt_cv_shlibpath_overrides_runpath=yes
11653 fi
11654 fi
11655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11656 conftest$ac_exeext conftest.$ac_ext
11657 LDFLAGS=$save_LDFLAGS
11658 libdir=$save_libdir
11659
11660 fi
11661
11662 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11663
11664 # This implies no fast_install, which is unacceptable.
11665 # Some rework will be needed to allow for fast_install
11666 # before this can be enabled.
11667 hardcode_into_libs=yes
11668
11669 # Ideally, we could use ldconfig to report *all* directores which are
11670 # searched for libraries, however this is still not possible. Aside from not
11671 # being certain /sbin/ldconfig is available, command
11672 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11673 # even though it is searched at run-time. Try to do the best guess by
11674 # appending ld.so.conf contents (and includes) to the search path.
11675 if test -f /etc/ld.so.conf; then
11676 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' ' '`
11677 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11678 fi
11679
11680 # We used to test for /lib/ld.so.1 and disable shared libraries on
11681 # powerpc, because MkLinux only supported shared libraries with the
11682 # GNU dynamic linker. Since this was broken with cross compilers,
11683 # most powerpc-linux boxes support dynamic linking these days and
11684 # people can always --disable-shared, the test was removed, and we
11685 # assume the GNU/Linux dynamic linker is in use.
11686 dynamic_linker='GNU/Linux ld.so'
11687 ;;
11688
11689 netbsd*)
11690 version_type=sunos
11691 need_lib_prefix=no
11692 need_version=no
11693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11696 dynamic_linker='NetBSD (a.out) ld.so'
11697 else
11698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11699 soname_spec='$libname$release$shared_ext$major'
11700 dynamic_linker='NetBSD ld.elf_so'
11701 fi
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=yes
11704 hardcode_into_libs=yes
11705 ;;
11706
11707 newsos6)
11708 version_type=linux # correct to gnu/linux during the next big refactor
11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=yes
11712 ;;
11713
11714 *nto* | *qnx*)
11715 version_type=qnx
11716 need_lib_prefix=no
11717 need_version=no
11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11719 soname_spec='$libname$release$shared_ext$major'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=no
11722 hardcode_into_libs=yes
11723 dynamic_linker='ldqnx.so'
11724 ;;
11725
11726 openbsd* | bitrig*)
11727 version_type=sunos
11728 sys_lib_dlsearch_path_spec=/usr/lib
11729 need_lib_prefix=no
11730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11731 need_version=no
11732 else
11733 need_version=yes
11734 fi
11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=yes
11739 ;;
11740
11741 os2*)
11742 libname_spec='$name'
11743 version_type=windows
11744 shrext_cmds=.dll
11745 need_version=no
11746 need_lib_prefix=no
11747 # OS/2 can only load a DLL with a base name of 8 characters or less.
11748 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11749 v=$($ECHO $release$versuffix | tr -d .-);
11750 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11751 $ECHO $n$v`$shared_ext'
11752 library_names_spec='${libname}_dll.$libext'
11753 dynamic_linker='OS/2 ld.exe'
11754 shlibpath_var=BEGINLIBPATH
11755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11757 postinstall_cmds='base_file=`basename \$file`~
11758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11759 dldir=$destdir/`dirname \$dlpath`~
11760 test -d \$dldir || mkdir -p \$dldir~
11761 $install_prog $dir/$dlname \$dldir/$dlname~
11762 chmod a+x \$dldir/$dlname~
11763 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11764 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11765 fi'
11766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11767 dlpath=$dir/\$dldll~
11768 $RM \$dlpath'
11769 ;;
11770
11771 osf3* | osf4* | osf5*)
11772 version_type=osf
11773 need_lib_prefix=no
11774 need_version=no
11775 soname_spec='$libname$release$shared_ext$major'
11776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11780 ;;
11781
11782 rdos*)
11783 dynamic_linker=no
11784 ;;
11785
11786 solaris*)
11787 version_type=linux # correct to gnu/linux during the next big refactor
11788 need_lib_prefix=no
11789 need_version=no
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791 soname_spec='$libname$release$shared_ext$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=yes
11794 hardcode_into_libs=yes
11795 # ldd complains unless libraries are executable
11796 postinstall_cmds='chmod +x $lib'
11797 ;;
11798
11799 sunos4*)
11800 version_type=sunos
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11802 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 shlibpath_overrides_runpath=yes
11805 if test yes = "$with_gnu_ld"; then
11806 need_lib_prefix=no
11807 fi
11808 need_version=yes
11809 ;;
11810
11811 sysv4 | sysv4.3*)
11812 version_type=linux # correct to gnu/linux during the next big refactor
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814 soname_spec='$libname$release$shared_ext$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 case $host_vendor in
11817 sni)
11818 shlibpath_overrides_runpath=no
11819 need_lib_prefix=no
11820 runpath_var=LD_RUN_PATH
11821 ;;
11822 siemens)
11823 need_lib_prefix=no
11824 ;;
11825 motorola)
11826 need_lib_prefix=no
11827 need_version=no
11828 shlibpath_overrides_runpath=no
11829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11830 ;;
11831 esac
11832 ;;
11833
11834 sysv4*MP*)
11835 if test -d /usr/nec; then
11836 version_type=linux # correct to gnu/linux during the next big refactor
11837 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11838 soname_spec='$libname$shared_ext.$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 fi
11841 ;;
11842
11843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11844 version_type=sco
11845 need_lib_prefix=no
11846 need_version=no
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11848 soname_spec='$libname$release$shared_ext$major'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 shlibpath_overrides_runpath=yes
11851 hardcode_into_libs=yes
11852 if test yes = "$with_gnu_ld"; then
11853 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11854 else
11855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11856 case $host_os in
11857 sco3.2v5*)
11858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11859 ;;
11860 esac
11861 fi
11862 sys_lib_dlsearch_path_spec='/usr/lib'
11863 ;;
11864
11865 tpf*)
11866 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11867 version_type=linux # correct to gnu/linux during the next big refactor
11868 need_lib_prefix=no
11869 need_version=no
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 shlibpath_overrides_runpath=no
11873 hardcode_into_libs=yes
11874 ;;
11875
11876 uts4*)
11877 version_type=linux # correct to gnu/linux during the next big refactor
11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11879 soname_spec='$libname$release$shared_ext$major'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 ;;
11882
11883 *)
11884 dynamic_linker=no
11885 ;;
11886 esac
11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11888 printf "%s\n" "$dynamic_linker" >&6; }
11889 test no = "$dynamic_linker" && can_build_shared=no
11890
11891 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11892 if test yes = "$GCC"; then
11893 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11894 fi
11895
11896 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11897 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11898 fi
11899
11900 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11901 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11902 fi
11903
11904 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11905 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11906
11907 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11908 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11909
11910 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11911 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12010 printf %s "checking how to hardcode library paths into programs... " >&6; }
12011 hardcode_action=
12012 if test -n "$hardcode_libdir_flag_spec" ||
12013 test -n "$runpath_var" ||
12014 test yes = "$hardcode_automatic"; then
12015
12016 # We can hardcode non-existent directories.
12017 if test no != "$hardcode_direct" &&
12018 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12019 # have to relink, otherwise we might link with an installed library
12020 # when we should be linking with a yet-to-be-installed one
12021 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12022 test no != "$hardcode_minus_L"; then
12023 # Linking always hardcodes the temporary library directory.
12024 hardcode_action=relink
12025 else
12026 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12027 hardcode_action=immediate
12028 fi
12029 else
12030 # We cannot hardcode anything, or else we can only hardcode existing
12031 # directories.
12032 hardcode_action=unsupported
12033 fi
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12035 printf "%s\n" "$hardcode_action" >&6; }
12036
12037 if test relink = "$hardcode_action" ||
12038 test yes = "$inherit_rpath"; then
12039 # Fast installation is not supported
12040 enable_fast_install=no
12041 elif test yes = "$shlibpath_overrides_runpath" ||
12042 test no = "$enable_shared"; then
12043 # Fast installation is not necessary
12044 enable_fast_install=needless
12045 fi
12046
12047
12048
12049
12050
12051
12052 if test yes != "$enable_dlopen"; then
12053 enable_dlopen=unknown
12054 enable_dlopen_self=unknown
12055 enable_dlopen_self_static=unknown
12056 else
12057 lt_cv_dlopen=no
12058 lt_cv_dlopen_libs=
12059
12060 case $host_os in
12061 beos*)
12062 lt_cv_dlopen=load_add_on
12063 lt_cv_dlopen_libs=
12064 lt_cv_dlopen_self=yes
12065 ;;
12066
12067 mingw* | pw32* | cegcc*)
12068 lt_cv_dlopen=LoadLibrary
12069 lt_cv_dlopen_libs=
12070 ;;
12071
12072 cygwin*)
12073 lt_cv_dlopen=dlopen
12074 lt_cv_dlopen_libs=
12075 ;;
12076
12077 darwin*)
12078 # if libdl is installed we need to link against it
12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12080 printf %s "checking for dlopen in -ldl... " >&6; }
12081 if test ${ac_cv_lib_dl_dlopen+y}
12082 then :
12083 printf %s "(cached) " >&6
12084 else $as_nop
12085 ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-ldl $LIBS"
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089
12090 /* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093 char dlopen ();
12094 int
12095 main (void)
12096 {
12097 return dlopen ();
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"
12103 then :
12104 ac_cv_lib_dl_dlopen=yes
12105 else $as_nop
12106 ac_cv_lib_dl_dlopen=no
12107 fi
12108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12111 fi
12112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12113 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12114 if test "x$ac_cv_lib_dl_dlopen" = xyes
12115 then :
12116 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12117 else $as_nop
12118
12119 lt_cv_dlopen=dyld
12120 lt_cv_dlopen_libs=
12121 lt_cv_dlopen_self=yes
12122
12123 fi
12124
12125 ;;
12126
12127 tpf*)
12128 # Don't try to run any link tests for TPF. We know it's impossible
12129 # because TPF is a cross-compiler, and we know how we open DSOs.
12130 lt_cv_dlopen=dlopen
12131 lt_cv_dlopen_libs=
12132 lt_cv_dlopen_self=no
12133 ;;
12134
12135 *)
12136 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12137 if test "x$ac_cv_func_shl_load" = xyes
12138 then :
12139 lt_cv_dlopen=shl_load
12140 else $as_nop
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12142 printf %s "checking for shl_load in -ldld... " >&6; }
12143 if test ${ac_cv_lib_dld_shl_load+y}
12144 then :
12145 printf %s "(cached) " >&6
12146 else $as_nop
12147 ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-ldld $LIBS"
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155 char shl_load ();
12156 int
12157 main (void)
12158 {
12159 return shl_load ();
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"
12165 then :
12166 ac_cv_lib_dld_shl_load=yes
12167 else $as_nop
12168 ac_cv_lib_dld_shl_load=no
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12171 conftest$ac_exeext conftest.$ac_ext
12172 LIBS=$ac_check_lib_save_LIBS
12173 fi
12174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12175 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12176 if test "x$ac_cv_lib_dld_shl_load" = xyes
12177 then :
12178 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12179 else $as_nop
12180 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12181 if test "x$ac_cv_func_dlopen" = xyes
12182 then :
12183 lt_cv_dlopen=dlopen
12184 else $as_nop
12185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12186 printf %s "checking for dlopen in -ldl... " >&6; }
12187 if test ${ac_cv_lib_dl_dlopen+y}
12188 then :
12189 printf %s "(cached) " >&6
12190 else $as_nop
12191 ac_check_lib_save_LIBS=$LIBS
12192 LIBS="-ldl $LIBS"
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199 char dlopen ();
12200 int
12201 main (void)
12202 {
12203 return dlopen ();
12204 ;
12205 return 0;
12206 }
12207 _ACEOF
12208 if ac_fn_c_try_link "$LINENO"
12209 then :
12210 ac_cv_lib_dl_dlopen=yes
12211 else $as_nop
12212 ac_cv_lib_dl_dlopen=no
12213 fi
12214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12217 fi
12218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12219 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12220 if test "x$ac_cv_lib_dl_dlopen" = xyes
12221 then :
12222 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12223 else $as_nop
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12225 printf %s "checking for dlopen in -lsvld... " >&6; }
12226 if test ${ac_cv_lib_svld_dlopen+y}
12227 then :
12228 printf %s "(cached) " >&6
12229 else $as_nop
12230 ac_check_lib_save_LIBS=$LIBS
12231 LIBS="-lsvld $LIBS"
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12238 char dlopen ();
12239 int
12240 main (void)
12241 {
12242 return dlopen ();
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 if ac_fn_c_try_link "$LINENO"
12248 then :
12249 ac_cv_lib_svld_dlopen=yes
12250 else $as_nop
12251 ac_cv_lib_svld_dlopen=no
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12258 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12259 if test "x$ac_cv_lib_svld_dlopen" = xyes
12260 then :
12261 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12262 else $as_nop
12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12264 printf %s "checking for dld_link in -ldld... " >&6; }
12265 if test ${ac_cv_lib_dld_dld_link+y}
12266 then :
12267 printf %s "(cached) " >&6
12268 else $as_nop
12269 ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-ldld $LIBS"
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273
12274 /* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply. */
12277 char dld_link ();
12278 int
12279 main (void)
12280 {
12281 return dld_link ();
12282 ;
12283 return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"
12287 then :
12288 ac_cv_lib_dld_dld_link=yes
12289 else $as_nop
12290 ac_cv_lib_dld_dld_link=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12295 fi
12296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12297 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12298 if test "x$ac_cv_lib_dld_dld_link" = xyes
12299 then :
12300 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12301 fi
12302
12303
12304 fi
12305
12306
12307 fi
12308
12309
12310 fi
12311
12312
12313 fi
12314
12315
12316 fi
12317
12318 ;;
12319 esac
12320
12321 if test no = "$lt_cv_dlopen"; then
12322 enable_dlopen=no
12323 else
12324 enable_dlopen=yes
12325 fi
12326
12327 case $lt_cv_dlopen in
12328 dlopen)
12329 save_CPPFLAGS=$CPPFLAGS
12330 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12331
12332 save_LDFLAGS=$LDFLAGS
12333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12334
12335 save_LIBS=$LIBS
12336 LIBS="$lt_cv_dlopen_libs $LIBS"
12337
12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12339 printf %s "checking whether a program can dlopen itself... " >&6; }
12340 if test ${lt_cv_dlopen_self+y}
12341 then :
12342 printf %s "(cached) " >&6
12343 else $as_nop
12344 if test yes = "$cross_compiling"; then :
12345 lt_cv_dlopen_self=cross
12346 else
12347 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12348 lt_status=$lt_dlunknown
12349 cat > conftest.$ac_ext <<_LT_EOF
12350 #line $LINENO "configure"
12351 #include "confdefs.h"
12352
12353 #if HAVE_DLFCN_H
12354 #include <dlfcn.h>
12355 #endif
12356
12357 #include <stdio.h>
12358
12359 #ifdef RTLD_GLOBAL
12360 # define LT_DLGLOBAL RTLD_GLOBAL
12361 #else
12362 # ifdef DL_GLOBAL
12363 # define LT_DLGLOBAL DL_GLOBAL
12364 # else
12365 # define LT_DLGLOBAL 0
12366 # endif
12367 #endif
12368
12369 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12370 find out it does not work in some platform. */
12371 #ifndef LT_DLLAZY_OR_NOW
12372 # ifdef RTLD_LAZY
12373 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12374 # else
12375 # ifdef DL_LAZY
12376 # define LT_DLLAZY_OR_NOW DL_LAZY
12377 # else
12378 # ifdef RTLD_NOW
12379 # define LT_DLLAZY_OR_NOW RTLD_NOW
12380 # else
12381 # ifdef DL_NOW
12382 # define LT_DLLAZY_OR_NOW DL_NOW
12383 # else
12384 # define LT_DLLAZY_OR_NOW 0
12385 # endif
12386 # endif
12387 # endif
12388 # endif
12389 #endif
12390
12391 /* When -fvisibility=hidden is used, assume the code has been annotated
12392 correspondingly for the symbols needed. */
12393 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12394 int fnord () __attribute__((visibility("default")));
12395 #endif
12396
12397 int fnord () { return 42; }
12398 int main ()
12399 {
12400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12401 int status = $lt_dlunknown;
12402
12403 if (self)
12404 {
12405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12406 else
12407 {
12408 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12409 else puts (dlerror ());
12410 }
12411 /* dlclose (self); */
12412 }
12413 else
12414 puts (dlerror ());
12415
12416 return status;
12417 }
12418 _LT_EOF
12419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12420 (eval $ac_link) 2>&5
12421 ac_status=$?
12422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12424 (./conftest; exit; ) >&5 2>/dev/null
12425 lt_status=$?
12426 case x$lt_status in
12427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12429 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12430 esac
12431 else :
12432 # compilation failed
12433 lt_cv_dlopen_self=no
12434 fi
12435 fi
12436 rm -fr conftest*
12437
12438
12439 fi
12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12441 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12442
12443 if test yes = "$lt_cv_dlopen_self"; then
12444 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12446 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12447 if test ${lt_cv_dlopen_self_static+y}
12448 then :
12449 printf %s "(cached) " >&6
12450 else $as_nop
12451 if test yes = "$cross_compiling"; then :
12452 lt_cv_dlopen_self_static=cross
12453 else
12454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12455 lt_status=$lt_dlunknown
12456 cat > conftest.$ac_ext <<_LT_EOF
12457 #line $LINENO "configure"
12458 #include "confdefs.h"
12459
12460 #if HAVE_DLFCN_H
12461 #include <dlfcn.h>
12462 #endif
12463
12464 #include <stdio.h>
12465
12466 #ifdef RTLD_GLOBAL
12467 # define LT_DLGLOBAL RTLD_GLOBAL
12468 #else
12469 # ifdef DL_GLOBAL
12470 # define LT_DLGLOBAL DL_GLOBAL
12471 # else
12472 # define LT_DLGLOBAL 0
12473 # endif
12474 #endif
12475
12476 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12477 find out it does not work in some platform. */
12478 #ifndef LT_DLLAZY_OR_NOW
12479 # ifdef RTLD_LAZY
12480 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12481 # else
12482 # ifdef DL_LAZY
12483 # define LT_DLLAZY_OR_NOW DL_LAZY
12484 # else
12485 # ifdef RTLD_NOW
12486 # define LT_DLLAZY_OR_NOW RTLD_NOW
12487 # else
12488 # ifdef DL_NOW
12489 # define LT_DLLAZY_OR_NOW DL_NOW
12490 # else
12491 # define LT_DLLAZY_OR_NOW 0
12492 # endif
12493 # endif
12494 # endif
12495 # endif
12496 #endif
12497
12498 /* When -fvisibility=hidden is used, assume the code has been annotated
12499 correspondingly for the symbols needed. */
12500 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12501 int fnord () __attribute__((visibility("default")));
12502 #endif
12503
12504 int fnord () { return 42; }
12505 int main ()
12506 {
12507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12508 int status = $lt_dlunknown;
12509
12510 if (self)
12511 {
12512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12513 else
12514 {
12515 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12516 else puts (dlerror ());
12517 }
12518 /* dlclose (self); */
12519 }
12520 else
12521 puts (dlerror ());
12522
12523 return status;
12524 }
12525 _LT_EOF
12526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12527 (eval $ac_link) 2>&5
12528 ac_status=$?
12529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12530 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12531 (./conftest; exit; ) >&5 2>/dev/null
12532 lt_status=$?
12533 case x$lt_status in
12534 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12535 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12536 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12537 esac
12538 else :
12539 # compilation failed
12540 lt_cv_dlopen_self_static=no
12541 fi
12542 fi
12543 rm -fr conftest*
12544
12545
12546 fi
12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12548 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12549 fi
12550
12551 CPPFLAGS=$save_CPPFLAGS
12552 LDFLAGS=$save_LDFLAGS
12553 LIBS=$save_LIBS
12554 ;;
12555 esac
12556
12557 case $lt_cv_dlopen_self in
12558 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12559 *) enable_dlopen_self=unknown ;;
12560 esac
12561
12562 case $lt_cv_dlopen_self_static in
12563 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12564 *) enable_dlopen_self_static=unknown ;;
12565 esac
12566 fi
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584 striplib=
12585 old_striplib=
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12587 printf %s "checking whether stripping libraries is possible... " >&6; }
12588 if test -z "$STRIP"; then
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 printf "%s\n" "no" >&6; }
12591 else
12592 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12593 old_striplib="$STRIP --strip-debug"
12594 striplib="$STRIP --strip-unneeded"
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12596 printf "%s\n" "yes" >&6; }
12597 else
12598 case $host_os in
12599 darwin*)
12600 # FIXME - insert some real tests, host_os isn't really good enough
12601 striplib="$STRIP -x"
12602 old_striplib="$STRIP -S"
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604 printf "%s\n" "yes" >&6; }
12605 ;;
12606 freebsd*)
12607 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12608 old_striplib="$STRIP --strip-debug"
12609 striplib="$STRIP --strip-unneeded"
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 printf "%s\n" "yes" >&6; }
12612 else
12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 printf "%s\n" "no" >&6; }
12615 fi
12616 ;;
12617 *)
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 printf "%s\n" "no" >&6; }
12620 ;;
12621 esac
12622 fi
12623 fi
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636 # Report what library types will actually be built
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12638 printf %s "checking if libtool supports shared libraries... " >&6; }
12639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12640 printf "%s\n" "$can_build_shared" >&6; }
12641
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12643 printf %s "checking whether to build shared libraries... " >&6; }
12644 test no = "$can_build_shared" && enable_shared=no
12645
12646 # On AIX, shared libraries and static libraries use the same namespace, and
12647 # are all built from PIC.
12648 case $host_os in
12649 aix3*)
12650 test yes = "$enable_shared" && enable_static=no
12651 if test -n "$RANLIB"; then
12652 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12653 postinstall_cmds='$RANLIB $lib'
12654 fi
12655 ;;
12656
12657 aix[4-9]*)
12658 if test ia64 != "$host_cpu"; then
12659 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12660 yes,aix,yes) ;; # shared object as lib.so file only
12661 yes,svr4,*) ;; # shared object as lib.so archive member only
12662 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12663 esac
12664 fi
12665 ;;
12666 esac
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12668 printf "%s\n" "$enable_shared" >&6; }
12669
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12671 printf %s "checking whether to build static libraries... " >&6; }
12672 # Make sure either enable_shared or enable_static is yes.
12673 test yes = "$enable_shared" || enable_static=yes
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12675 printf "%s\n" "$enable_static" >&6; }
12676
12677
12678
12679
12680 fi
12681 ac_ext=c
12682 ac_cpp='$CPP $CPPFLAGS'
12683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12686
12687 CC=$lt_save_CC
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703 ac_config_commands="$ac_config_commands libtool"
12704
12705
12706
12707
12708 # Only expand once:
12709
12710
12711
12712 # Require xorg-macros: XORG_DEFAULT_OPTIONS
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12725 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12726 if test ${ac_cv_c_undeclared_builtin_options+y}
12727 then :
12728 printf %s "(cached) " >&6
12729 else $as_nop
12730 ac_save_CFLAGS=$CFLAGS
12731 ac_cv_c_undeclared_builtin_options='cannot detect'
12732 for ac_arg in '' -fno-builtin; do
12733 CFLAGS="$ac_save_CFLAGS $ac_arg"
12734 # This test program should *not* compile successfully.
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737
12738 int
12739 main (void)
12740 {
12741 (void) strchr;
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_compile "$LINENO"
12747 then :
12748
12749 else $as_nop
12750 # This test program should compile successfully.
12751 # No library function is consistently available on
12752 # freestanding implementations, so test against a dummy
12753 # declaration. Include always-available headers on the
12754 # off chance that they somehow elicit warnings.
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 #include <float.h>
12758 #include <limits.h>
12759 #include <stdarg.h>
12760 #include <stddef.h>
12761 extern void ac_decl (int, char *);
12762
12763 int
12764 main (void)
12765 {
12766 (void) ac_decl (0, (char *) 0);
12767 (void) ac_decl;
12768
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 if ac_fn_c_try_compile "$LINENO"
12774 then :
12775 if test x"$ac_arg" = x
12776 then :
12777 ac_cv_c_undeclared_builtin_options='none needed'
12778 else $as_nop
12779 ac_cv_c_undeclared_builtin_options=$ac_arg
12780 fi
12781 break
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12784 fi
12785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12786 done
12787 CFLAGS=$ac_save_CFLAGS
12788
12789 fi
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12791 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12792 case $ac_cv_c_undeclared_builtin_options in #(
12793 'cannot detect') :
12794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12795 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12796 as_fn_error $? "cannot make $CC report undeclared builtins
12797 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12798 'none needed') :
12799 ac_c_undeclared_builtin_options='' ;; #(
12800 *) :
12801 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12802 esac
12803
12804
12805
12806
12807
12808 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12809 if test "x$ac_cv_have_decl___clang__" = xyes
12810 then :
12811 CLANGCC="yes"
12812 else $as_nop
12813 CLANGCC="no"
12814 fi
12815 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12816 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12817 then :
12818 INTELCC="yes"
12819 else $as_nop
12820 INTELCC="no"
12821 fi
12822 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12823 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12824 then :
12825 SUNCC="yes"
12826 else $as_nop
12827 SUNCC="no"
12828 fi
12829
12830
12831
12832
12833
12834
12835
12836
12837 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12838 if test -n "$ac_tool_prefix"; then
12839 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12840 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 printf %s "checking for $ac_word... " >&6; }
12843 if test ${ac_cv_path_PKG_CONFIG+y}
12844 then :
12845 printf %s "(cached) " >&6
12846 else $as_nop
12847 case $PKG_CONFIG in
12848 [\\/]* | ?:[\\/]*)
12849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12850 ;;
12851 *)
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12854 do
12855 IFS=$as_save_IFS
12856 case $as_dir in #(((
12857 '') as_dir=./ ;;
12858 */) ;;
12859 *) as_dir=$as_dir/ ;;
12860 esac
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12863 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12865 break 2
12866 fi
12867 done
12868 done
12869 IFS=$as_save_IFS
12870
12871 ;;
12872 esac
12873 fi
12874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12875 if test -n "$PKG_CONFIG"; then
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12877 printf "%s\n" "$PKG_CONFIG" >&6; }
12878 else
12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 printf "%s\n" "no" >&6; }
12881 fi
12882
12883
12884 fi
12885 if test -z "$ac_cv_path_PKG_CONFIG"; then
12886 ac_pt_PKG_CONFIG=$PKG_CONFIG
12887 # Extract the first word of "pkg-config", so it can be a program name with args.
12888 set dummy pkg-config; ac_word=$2
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 printf %s "checking for $ac_word... " >&6; }
12891 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12892 then :
12893 printf %s "(cached) " >&6
12894 else $as_nop
12895 case $ac_pt_PKG_CONFIG in
12896 [\\/]* | ?:[\\/]*)
12897 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12898 ;;
12899 *)
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903 IFS=$as_save_IFS
12904 case $as_dir in #(((
12905 '') as_dir=./ ;;
12906 */) ;;
12907 *) as_dir=$as_dir/ ;;
12908 esac
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12911 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12913 break 2
12914 fi
12915 done
12916 done
12917 IFS=$as_save_IFS
12918
12919 ;;
12920 esac
12921 fi
12922 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12923 if test -n "$ac_pt_PKG_CONFIG"; then
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12925 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12926 else
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 printf "%s\n" "no" >&6; }
12929 fi
12930
12931 if test "x$ac_pt_PKG_CONFIG" = x; then
12932 PKG_CONFIG=""
12933 else
12934 case $cross_compiling:$ac_tool_warned in
12935 yes:)
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12938 ac_tool_warned=yes ;;
12939 esac
12940 PKG_CONFIG=$ac_pt_PKG_CONFIG
12941 fi
12942 else
12943 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12944 fi
12945
12946 fi
12947 if test -n "$PKG_CONFIG"; then
12948 _pkg_min_version=0.9.0
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12950 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12951 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953 printf "%s\n" "yes" >&6; }
12954 else
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 printf "%s\n" "no" >&6; }
12957 PKG_CONFIG=""
12958 fi
12959 fi
12960
12961
12962
12963
12964
12965 # Check whether --enable-selective-werror was given.
12966 if test ${enable_selective_werror+y}
12967 then :
12968 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12969 else $as_nop
12970 SELECTIVE_WERROR=yes
12971 fi
12972
12973
12974
12975
12976
12977 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12978 if test "x$SUNCC" = "xyes"; then
12979 BASE_CFLAGS="-v"
12980 else
12981 BASE_CFLAGS=""
12982 fi
12983
12984 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998 xorg_testset_save_CFLAGS="$CFLAGS"
12999
13000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13003 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13004 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13005 then :
13006 printf %s "(cached) " >&6
13007 else $as_nop
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010 int i;
13011 _ACEOF
13012 if ac_fn_c_try_compile "$LINENO"
13013 then :
13014 xorg_cv_cc_flag_unknown_warning_option=yes
13015 else $as_nop
13016 xorg_cv_cc_flag_unknown_warning_option=no
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13019 fi
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13021 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13023 CFLAGS="$xorg_testset_save_CFLAGS"
13024 fi
13025
13026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13029 fi
13030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13032 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13033 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13034 then :
13035 printf %s "(cached) " >&6
13036 else $as_nop
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 int i;
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"
13042 then :
13043 xorg_cv_cc_flag_unused_command_line_argument=yes
13044 else $as_nop
13045 xorg_cv_cc_flag_unused_command_line_argument=no
13046 fi
13047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13048 fi
13049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13050 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13052 CFLAGS="$xorg_testset_save_CFLAGS"
13053 fi
13054
13055 found="no"
13056
13057 if test $found = "no" ; then
13058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13060 fi
13061
13062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13064 fi
13065
13066 CFLAGS="$CFLAGS -Wall"
13067
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13069 printf %s "checking if $CC supports -Wall... " >&6; }
13070 cacheid=xorg_cv_cc_flag__Wall
13071 if eval test \${$cacheid+y}
13072 then :
13073 printf %s "(cached) " >&6
13074 else $as_nop
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13077 int i;
13078 int
13079 main (void)
13080 {
13081
13082 ;
13083 return 0;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_link "$LINENO"
13087 then :
13088 eval $cacheid=yes
13089 else $as_nop
13090 eval $cacheid=no
13091 fi
13092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13093 conftest$ac_exeext conftest.$ac_ext
13094 fi
13095
13096
13097 CFLAGS="$xorg_testset_save_CFLAGS"
13098
13099 eval supported=\$$cacheid
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13101 printf "%s\n" "$supported" >&6; }
13102 if test "$supported" = "yes" ; then
13103 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13104 found="yes"
13105 fi
13106 fi
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122 xorg_testset_save_CFLAGS="$CFLAGS"
13123
13124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13127 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13128 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13129 then :
13130 printf %s "(cached) " >&6
13131 else $as_nop
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 int i;
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"
13137 then :
13138 xorg_cv_cc_flag_unknown_warning_option=yes
13139 else $as_nop
13140 xorg_cv_cc_flag_unknown_warning_option=no
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13143 fi
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13145 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13147 CFLAGS="$xorg_testset_save_CFLAGS"
13148 fi
13149
13150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13153 fi
13154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13156 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13157 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13158 then :
13159 printf %s "(cached) " >&6
13160 else $as_nop
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13163 int i;
13164 _ACEOF
13165 if ac_fn_c_try_compile "$LINENO"
13166 then :
13167 xorg_cv_cc_flag_unused_command_line_argument=yes
13168 else $as_nop
13169 xorg_cv_cc_flag_unused_command_line_argument=no
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13172 fi
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13174 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13176 CFLAGS="$xorg_testset_save_CFLAGS"
13177 fi
13178
13179 found="no"
13180
13181 if test $found = "no" ; then
13182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13184 fi
13185
13186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13188 fi
13189
13190 CFLAGS="$CFLAGS -Wpointer-arith"
13191
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13193 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13194 cacheid=xorg_cv_cc_flag__Wpointer_arith
13195 if eval test \${$cacheid+y}
13196 then :
13197 printf %s "(cached) " >&6
13198 else $as_nop
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 int i;
13202 int
13203 main (void)
13204 {
13205
13206 ;
13207 return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_link "$LINENO"
13211 then :
13212 eval $cacheid=yes
13213 else $as_nop
13214 eval $cacheid=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13217 conftest$ac_exeext conftest.$ac_ext
13218 fi
13219
13220
13221 CFLAGS="$xorg_testset_save_CFLAGS"
13222
13223 eval supported=\$$cacheid
13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13225 printf "%s\n" "$supported" >&6; }
13226 if test "$supported" = "yes" ; then
13227 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13228 found="yes"
13229 fi
13230 fi
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246 xorg_testset_save_CFLAGS="$CFLAGS"
13247
13248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13251 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13252 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13253 then :
13254 printf %s "(cached) " >&6
13255 else $as_nop
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 int i;
13259 _ACEOF
13260 if ac_fn_c_try_compile "$LINENO"
13261 then :
13262 xorg_cv_cc_flag_unknown_warning_option=yes
13263 else $as_nop
13264 xorg_cv_cc_flag_unknown_warning_option=no
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13267 fi
13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13269 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13271 CFLAGS="$xorg_testset_save_CFLAGS"
13272 fi
13273
13274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13277 fi
13278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13280 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13281 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13282 then :
13283 printf %s "(cached) " >&6
13284 else $as_nop
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287 int i;
13288 _ACEOF
13289 if ac_fn_c_try_compile "$LINENO"
13290 then :
13291 xorg_cv_cc_flag_unused_command_line_argument=yes
13292 else $as_nop
13293 xorg_cv_cc_flag_unused_command_line_argument=no
13294 fi
13295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13296 fi
13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13298 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13300 CFLAGS="$xorg_testset_save_CFLAGS"
13301 fi
13302
13303 found="no"
13304
13305 if test $found = "no" ; then
13306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13308 fi
13309
13310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13312 fi
13313
13314 CFLAGS="$CFLAGS -Wmissing-declarations"
13315
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13317 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13318 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13319 if eval test \${$cacheid+y}
13320 then :
13321 printf %s "(cached) " >&6
13322 else $as_nop
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13325 int i;
13326 int
13327 main (void)
13328 {
13329
13330 ;
13331 return 0;
13332 }
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"
13335 then :
13336 eval $cacheid=yes
13337 else $as_nop
13338 eval $cacheid=no
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13341 conftest$ac_exeext conftest.$ac_ext
13342 fi
13343
13344
13345 CFLAGS="$xorg_testset_save_CFLAGS"
13346
13347 eval supported=\$$cacheid
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13349 printf "%s\n" "$supported" >&6; }
13350 if test "$supported" = "yes" ; then
13351 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13352 found="yes"
13353 fi
13354 fi
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370 xorg_testset_save_CFLAGS="$CFLAGS"
13371
13372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13377 then :
13378 printf %s "(cached) " >&6
13379 else $as_nop
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 int i;
13383 _ACEOF
13384 if ac_fn_c_try_compile "$LINENO"
13385 then :
13386 xorg_cv_cc_flag_unknown_warning_option=yes
13387 else $as_nop
13388 xorg_cv_cc_flag_unknown_warning_option=no
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13391 fi
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13395 CFLAGS="$xorg_testset_save_CFLAGS"
13396 fi
13397
13398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13401 fi
13402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13406 then :
13407 printf %s "(cached) " >&6
13408 else $as_nop
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 int i;
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"
13414 then :
13415 xorg_cv_cc_flag_unused_command_line_argument=yes
13416 else $as_nop
13417 xorg_cv_cc_flag_unused_command_line_argument=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13420 fi
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13424 CFLAGS="$xorg_testset_save_CFLAGS"
13425 fi
13426
13427 found="no"
13428
13429 if test $found = "no" ; then
13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13432 fi
13433
13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13436 fi
13437
13438 CFLAGS="$CFLAGS -Wformat=2"
13439
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13441 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13442 cacheid=xorg_cv_cc_flag__Wformat_2
13443 if eval test \${$cacheid+y}
13444 then :
13445 printf %s "(cached) " >&6
13446 else $as_nop
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 int i;
13450 int
13451 main (void)
13452 {
13453
13454 ;
13455 return 0;
13456 }
13457 _ACEOF
13458 if ac_fn_c_try_link "$LINENO"
13459 then :
13460 eval $cacheid=yes
13461 else $as_nop
13462 eval $cacheid=no
13463 fi
13464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13465 conftest$ac_exeext conftest.$ac_ext
13466 fi
13467
13468
13469 CFLAGS="$xorg_testset_save_CFLAGS"
13470
13471 eval supported=\$$cacheid
13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13473 printf "%s\n" "$supported" >&6; }
13474 if test "$supported" = "yes" ; then
13475 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13476 found="yes"
13477 fi
13478 fi
13479
13480 if test $found = "no" ; then
13481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13483 fi
13484
13485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13487 fi
13488
13489 CFLAGS="$CFLAGS -Wformat"
13490
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13492 printf %s "checking if $CC supports -Wformat... " >&6; }
13493 cacheid=xorg_cv_cc_flag__Wformat
13494 if eval test \${$cacheid+y}
13495 then :
13496 printf %s "(cached) " >&6
13497 else $as_nop
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 int i;
13501 int
13502 main (void)
13503 {
13504
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 if ac_fn_c_try_link "$LINENO"
13510 then :
13511 eval $cacheid=yes
13512 else $as_nop
13513 eval $cacheid=no
13514 fi
13515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13516 conftest$ac_exeext conftest.$ac_ext
13517 fi
13518
13519
13520 CFLAGS="$xorg_testset_save_CFLAGS"
13521
13522 eval supported=\$$cacheid
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13524 printf "%s\n" "$supported" >&6; }
13525 if test "$supported" = "yes" ; then
13526 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13527 found="yes"
13528 fi
13529 fi
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547 xorg_testset_save_CFLAGS="$CFLAGS"
13548
13549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13552 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13553 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13554 then :
13555 printf %s "(cached) " >&6
13556 else $as_nop
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 int i;
13560 _ACEOF
13561 if ac_fn_c_try_compile "$LINENO"
13562 then :
13563 xorg_cv_cc_flag_unknown_warning_option=yes
13564 else $as_nop
13565 xorg_cv_cc_flag_unknown_warning_option=no
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13568 fi
13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13570 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13572 CFLAGS="$xorg_testset_save_CFLAGS"
13573 fi
13574
13575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13578 fi
13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13581 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13582 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13583 then :
13584 printf %s "(cached) " >&6
13585 else $as_nop
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 int i;
13589 _ACEOF
13590 if ac_fn_c_try_compile "$LINENO"
13591 then :
13592 xorg_cv_cc_flag_unused_command_line_argument=yes
13593 else $as_nop
13594 xorg_cv_cc_flag_unused_command_line_argument=no
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13597 fi
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13599 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13601 CFLAGS="$xorg_testset_save_CFLAGS"
13602 fi
13603
13604 found="no"
13605
13606 if test $found = "no" ; then
13607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13609 fi
13610
13611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13613 fi
13614
13615 CFLAGS="$CFLAGS -Wstrict-prototypes"
13616
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13618 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13619 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13620 if eval test \${$cacheid+y}
13621 then :
13622 printf %s "(cached) " >&6
13623 else $as_nop
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 int i;
13627 int
13628 main (void)
13629 {
13630
13631 ;
13632 return 0;
13633 }
13634 _ACEOF
13635 if ac_fn_c_try_link "$LINENO"
13636 then :
13637 eval $cacheid=yes
13638 else $as_nop
13639 eval $cacheid=no
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13642 conftest$ac_exeext conftest.$ac_ext
13643 fi
13644
13645
13646 CFLAGS="$xorg_testset_save_CFLAGS"
13647
13648 eval supported=\$$cacheid
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13650 printf "%s\n" "$supported" >&6; }
13651 if test "$supported" = "yes" ; then
13652 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13653 found="yes"
13654 fi
13655 fi
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671 xorg_testset_save_CFLAGS="$CFLAGS"
13672
13673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13677 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13678 then :
13679 printf %s "(cached) " >&6
13680 else $as_nop
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 int i;
13684 _ACEOF
13685 if ac_fn_c_try_compile "$LINENO"
13686 then :
13687 xorg_cv_cc_flag_unknown_warning_option=yes
13688 else $as_nop
13689 xorg_cv_cc_flag_unknown_warning_option=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13692 fi
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13696 CFLAGS="$xorg_testset_save_CFLAGS"
13697 fi
13698
13699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13702 fi
13703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13707 then :
13708 printf %s "(cached) " >&6
13709 else $as_nop
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 int i;
13713 _ACEOF
13714 if ac_fn_c_try_compile "$LINENO"
13715 then :
13716 xorg_cv_cc_flag_unused_command_line_argument=yes
13717 else $as_nop
13718 xorg_cv_cc_flag_unused_command_line_argument=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13721 fi
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13723 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13725 CFLAGS="$xorg_testset_save_CFLAGS"
13726 fi
13727
13728 found="no"
13729
13730 if test $found = "no" ; then
13731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13733 fi
13734
13735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13737 fi
13738
13739 CFLAGS="$CFLAGS -Wmissing-prototypes"
13740
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13742 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13743 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13744 if eval test \${$cacheid+y}
13745 then :
13746 printf %s "(cached) " >&6
13747 else $as_nop
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 int i;
13751 int
13752 main (void)
13753 {
13754
13755 ;
13756 return 0;
13757 }
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"
13760 then :
13761 eval $cacheid=yes
13762 else $as_nop
13763 eval $cacheid=no
13764 fi
13765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13766 conftest$ac_exeext conftest.$ac_ext
13767 fi
13768
13769
13770 CFLAGS="$xorg_testset_save_CFLAGS"
13771
13772 eval supported=\$$cacheid
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13774 printf "%s\n" "$supported" >&6; }
13775 if test "$supported" = "yes" ; then
13776 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13777 found="yes"
13778 fi
13779 fi
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795 xorg_testset_save_CFLAGS="$CFLAGS"
13796
13797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13800 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13801 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13802 then :
13803 printf %s "(cached) " >&6
13804 else $as_nop
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807 int i;
13808 _ACEOF
13809 if ac_fn_c_try_compile "$LINENO"
13810 then :
13811 xorg_cv_cc_flag_unknown_warning_option=yes
13812 else $as_nop
13813 xorg_cv_cc_flag_unknown_warning_option=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13816 fi
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13820 CFLAGS="$xorg_testset_save_CFLAGS"
13821 fi
13822
13823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13826 fi
13827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13831 then :
13832 printf %s "(cached) " >&6
13833 else $as_nop
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 int i;
13837 _ACEOF
13838 if ac_fn_c_try_compile "$LINENO"
13839 then :
13840 xorg_cv_cc_flag_unused_command_line_argument=yes
13841 else $as_nop
13842 xorg_cv_cc_flag_unused_command_line_argument=no
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13845 fi
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13849 CFLAGS="$xorg_testset_save_CFLAGS"
13850 fi
13851
13852 found="no"
13853
13854 if test $found = "no" ; then
13855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13857 fi
13858
13859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13861 fi
13862
13863 CFLAGS="$CFLAGS -Wnested-externs"
13864
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13866 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13867 cacheid=xorg_cv_cc_flag__Wnested_externs
13868 if eval test \${$cacheid+y}
13869 then :
13870 printf %s "(cached) " >&6
13871 else $as_nop
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 int i;
13875 int
13876 main (void)
13877 {
13878
13879 ;
13880 return 0;
13881 }
13882 _ACEOF
13883 if ac_fn_c_try_link "$LINENO"
13884 then :
13885 eval $cacheid=yes
13886 else $as_nop
13887 eval $cacheid=no
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13890 conftest$ac_exeext conftest.$ac_ext
13891 fi
13892
13893
13894 CFLAGS="$xorg_testset_save_CFLAGS"
13895
13896 eval supported=\$$cacheid
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13898 printf "%s\n" "$supported" >&6; }
13899 if test "$supported" = "yes" ; then
13900 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13901 found="yes"
13902 fi
13903 fi
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919 xorg_testset_save_CFLAGS="$CFLAGS"
13920
13921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13926 then :
13927 printf %s "(cached) " >&6
13928 else $as_nop
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int i;
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"
13934 then :
13935 xorg_cv_cc_flag_unknown_warning_option=yes
13936 else $as_nop
13937 xorg_cv_cc_flag_unknown_warning_option=no
13938 fi
13939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13940 fi
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13944 CFLAGS="$xorg_testset_save_CFLAGS"
13945 fi
13946
13947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13950 fi
13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13955 then :
13956 printf %s "(cached) " >&6
13957 else $as_nop
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int i;
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"
13963 then :
13964 xorg_cv_cc_flag_unused_command_line_argument=yes
13965 else $as_nop
13966 xorg_cv_cc_flag_unused_command_line_argument=no
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13969 fi
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13971 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13973 CFLAGS="$xorg_testset_save_CFLAGS"
13974 fi
13975
13976 found="no"
13977
13978 if test $found = "no" ; then
13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13981 fi
13982
13983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13985 fi
13986
13987 CFLAGS="$CFLAGS -Wbad-function-cast"
13988
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13990 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13991 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13992 if eval test \${$cacheid+y}
13993 then :
13994 printf %s "(cached) " >&6
13995 else $as_nop
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998 int i;
13999 int
14000 main (void)
14001 {
14002
14003 ;
14004 return 0;
14005 }
14006 _ACEOF
14007 if ac_fn_c_try_link "$LINENO"
14008 then :
14009 eval $cacheid=yes
14010 else $as_nop
14011 eval $cacheid=no
14012 fi
14013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14014 conftest$ac_exeext conftest.$ac_ext
14015 fi
14016
14017
14018 CFLAGS="$xorg_testset_save_CFLAGS"
14019
14020 eval supported=\$$cacheid
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14022 printf "%s\n" "$supported" >&6; }
14023 if test "$supported" = "yes" ; then
14024 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14025 found="yes"
14026 fi
14027 fi
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043 xorg_testset_save_CFLAGS="$CFLAGS"
14044
14045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14049 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14050 then :
14051 printf %s "(cached) " >&6
14052 else $as_nop
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 int i;
14056 _ACEOF
14057 if ac_fn_c_try_compile "$LINENO"
14058 then :
14059 xorg_cv_cc_flag_unknown_warning_option=yes
14060 else $as_nop
14061 xorg_cv_cc_flag_unknown_warning_option=no
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14064 fi
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14066 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14068 CFLAGS="$xorg_testset_save_CFLAGS"
14069 fi
14070
14071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074 fi
14075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14077 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14078 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14079 then :
14080 printf %s "(cached) " >&6
14081 else $as_nop
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 int i;
14085 _ACEOF
14086 if ac_fn_c_try_compile "$LINENO"
14087 then :
14088 xorg_cv_cc_flag_unused_command_line_argument=yes
14089 else $as_nop
14090 xorg_cv_cc_flag_unused_command_line_argument=no
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14093 fi
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14095 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14097 CFLAGS="$xorg_testset_save_CFLAGS"
14098 fi
14099
14100 found="no"
14101
14102 if test $found = "no" ; then
14103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14105 fi
14106
14107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14109 fi
14110
14111 CFLAGS="$CFLAGS -Wold-style-definition"
14112
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14114 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14115 cacheid=xorg_cv_cc_flag__Wold_style_definition
14116 if eval test \${$cacheid+y}
14117 then :
14118 printf %s "(cached) " >&6
14119 else $as_nop
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 int i;
14123 int
14124 main (void)
14125 {
14126
14127 ;
14128 return 0;
14129 }
14130 _ACEOF
14131 if ac_fn_c_try_link "$LINENO"
14132 then :
14133 eval $cacheid=yes
14134 else $as_nop
14135 eval $cacheid=no
14136 fi
14137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14138 conftest$ac_exeext conftest.$ac_ext
14139 fi
14140
14141
14142 CFLAGS="$xorg_testset_save_CFLAGS"
14143
14144 eval supported=\$$cacheid
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14146 printf "%s\n" "$supported" >&6; }
14147 if test "$supported" = "yes" ; then
14148 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14149 found="yes"
14150 fi
14151 fi
14152
14153 if test $found = "no" ; then
14154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14156 fi
14157
14158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14160 fi
14161
14162 CFLAGS="$CFLAGS -fd"
14163
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14165 printf %s "checking if $CC supports -fd... " >&6; }
14166 cacheid=xorg_cv_cc_flag__fd
14167 if eval test \${$cacheid+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else $as_nop
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 int i;
14174 int
14175 main (void)
14176 {
14177
14178 ;
14179 return 0;
14180 }
14181 _ACEOF
14182 if ac_fn_c_try_link "$LINENO"
14183 then :
14184 eval $cacheid=yes
14185 else $as_nop
14186 eval $cacheid=no
14187 fi
14188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14189 conftest$ac_exeext conftest.$ac_ext
14190 fi
14191
14192
14193 CFLAGS="$xorg_testset_save_CFLAGS"
14194
14195 eval supported=\$$cacheid
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14197 printf "%s\n" "$supported" >&6; }
14198 if test "$supported" = "yes" ; then
14199 BASE_CFLAGS="$BASE_CFLAGS -fd"
14200 found="yes"
14201 fi
14202 fi
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218 xorg_testset_save_CFLAGS="$CFLAGS"
14219
14220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14225 then :
14226 printf %s "(cached) " >&6
14227 else $as_nop
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 int i;
14231 _ACEOF
14232 if ac_fn_c_try_compile "$LINENO"
14233 then :
14234 xorg_cv_cc_flag_unknown_warning_option=yes
14235 else $as_nop
14236 xorg_cv_cc_flag_unknown_warning_option=no
14237 fi
14238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14239 fi
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14243 CFLAGS="$xorg_testset_save_CFLAGS"
14244 fi
14245
14246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14249 fi
14250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14254 then :
14255 printf %s "(cached) " >&6
14256 else $as_nop
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259 int i;
14260 _ACEOF
14261 if ac_fn_c_try_compile "$LINENO"
14262 then :
14263 xorg_cv_cc_flag_unused_command_line_argument=yes
14264 else $as_nop
14265 xorg_cv_cc_flag_unused_command_line_argument=no
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14268 fi
14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14272 CFLAGS="$xorg_testset_save_CFLAGS"
14273 fi
14274
14275 found="no"
14276
14277 if test $found = "no" ; then
14278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14280 fi
14281
14282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14284 fi
14285
14286 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14287
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14289 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14290 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14291 if eval test \${$cacheid+y}
14292 then :
14293 printf %s "(cached) " >&6
14294 else $as_nop
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14297 int i;
14298 int
14299 main (void)
14300 {
14301
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"
14307 then :
14308 eval $cacheid=yes
14309 else $as_nop
14310 eval $cacheid=no
14311 fi
14312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14313 conftest$ac_exeext conftest.$ac_ext
14314 fi
14315
14316
14317 CFLAGS="$xorg_testset_save_CFLAGS"
14318
14319 eval supported=\$$cacheid
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14321 printf "%s\n" "$supported" >&6; }
14322 if test "$supported" = "yes" ; then
14323 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14324 found="yes"
14325 fi
14326 fi
14327
14328
14329
14330
14331
14332 # This chunk adds additional warnings that could catch undesired effects.
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346 xorg_testset_save_CFLAGS="$CFLAGS"
14347
14348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14352 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14353 then :
14354 printf %s "(cached) " >&6
14355 else $as_nop
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358 int i;
14359 _ACEOF
14360 if ac_fn_c_try_compile "$LINENO"
14361 then :
14362 xorg_cv_cc_flag_unknown_warning_option=yes
14363 else $as_nop
14364 xorg_cv_cc_flag_unknown_warning_option=no
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14367 fi
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14371 CFLAGS="$xorg_testset_save_CFLAGS"
14372 fi
14373
14374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377 fi
14378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14382 then :
14383 printf %s "(cached) " >&6
14384 else $as_nop
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 int i;
14388 _ACEOF
14389 if ac_fn_c_try_compile "$LINENO"
14390 then :
14391 xorg_cv_cc_flag_unused_command_line_argument=yes
14392 else $as_nop
14393 xorg_cv_cc_flag_unused_command_line_argument=no
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14396 fi
14397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14400 CFLAGS="$xorg_testset_save_CFLAGS"
14401 fi
14402
14403 found="no"
14404
14405 if test $found = "no" ; then
14406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14408 fi
14409
14410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14412 fi
14413
14414 CFLAGS="$CFLAGS -Wunused"
14415
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14417 printf %s "checking if $CC supports -Wunused... " >&6; }
14418 cacheid=xorg_cv_cc_flag__Wunused
14419 if eval test \${$cacheid+y}
14420 then :
14421 printf %s "(cached) " >&6
14422 else $as_nop
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 int i;
14426 int
14427 main (void)
14428 {
14429
14430 ;
14431 return 0;
14432 }
14433 _ACEOF
14434 if ac_fn_c_try_link "$LINENO"
14435 then :
14436 eval $cacheid=yes
14437 else $as_nop
14438 eval $cacheid=no
14439 fi
14440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14441 conftest$ac_exeext conftest.$ac_ext
14442 fi
14443
14444
14445 CFLAGS="$xorg_testset_save_CFLAGS"
14446
14447 eval supported=\$$cacheid
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14449 printf "%s\n" "$supported" >&6; }
14450 if test "$supported" = "yes" ; then
14451 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14452 found="yes"
14453 fi
14454 fi
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470 xorg_testset_save_CFLAGS="$CFLAGS"
14471
14472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14477 then :
14478 printf %s "(cached) " >&6
14479 else $as_nop
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 int i;
14483 _ACEOF
14484 if ac_fn_c_try_compile "$LINENO"
14485 then :
14486 xorg_cv_cc_flag_unknown_warning_option=yes
14487 else $as_nop
14488 xorg_cv_cc_flag_unknown_warning_option=no
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14491 fi
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14493 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14495 CFLAGS="$xorg_testset_save_CFLAGS"
14496 fi
14497
14498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14501 fi
14502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14504 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14505 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14506 then :
14507 printf %s "(cached) " >&6
14508 else $as_nop
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511 int i;
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"
14514 then :
14515 xorg_cv_cc_flag_unused_command_line_argument=yes
14516 else $as_nop
14517 xorg_cv_cc_flag_unused_command_line_argument=no
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14520 fi
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14524 CFLAGS="$xorg_testset_save_CFLAGS"
14525 fi
14526
14527 found="no"
14528
14529 if test $found = "no" ; then
14530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14532 fi
14533
14534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14536 fi
14537
14538 CFLAGS="$CFLAGS -Wuninitialized"
14539
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14541 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14542 cacheid=xorg_cv_cc_flag__Wuninitialized
14543 if eval test \${$cacheid+y}
14544 then :
14545 printf %s "(cached) " >&6
14546 else $as_nop
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14549 int i;
14550 int
14551 main (void)
14552 {
14553
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"
14559 then :
14560 eval $cacheid=yes
14561 else $as_nop
14562 eval $cacheid=no
14563 fi
14564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14565 conftest$ac_exeext conftest.$ac_ext
14566 fi
14567
14568
14569 CFLAGS="$xorg_testset_save_CFLAGS"
14570
14571 eval supported=\$$cacheid
14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14573 printf "%s\n" "$supported" >&6; }
14574 if test "$supported" = "yes" ; then
14575 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14576 found="yes"
14577 fi
14578 fi
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594 xorg_testset_save_CFLAGS="$CFLAGS"
14595
14596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14600 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14601 then :
14602 printf %s "(cached) " >&6
14603 else $as_nop
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14606 int i;
14607 _ACEOF
14608 if ac_fn_c_try_compile "$LINENO"
14609 then :
14610 xorg_cv_cc_flag_unknown_warning_option=yes
14611 else $as_nop
14612 xorg_cv_cc_flag_unknown_warning_option=no
14613 fi
14614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14615 fi
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14619 CFLAGS="$xorg_testset_save_CFLAGS"
14620 fi
14621
14622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625 fi
14626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14630 then :
14631 printf %s "(cached) " >&6
14632 else $as_nop
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635 int i;
14636 _ACEOF
14637 if ac_fn_c_try_compile "$LINENO"
14638 then :
14639 xorg_cv_cc_flag_unused_command_line_argument=yes
14640 else $as_nop
14641 xorg_cv_cc_flag_unused_command_line_argument=no
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14644 fi
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14648 CFLAGS="$xorg_testset_save_CFLAGS"
14649 fi
14650
14651 found="no"
14652
14653 if test $found = "no" ; then
14654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14656 fi
14657
14658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14660 fi
14661
14662 CFLAGS="$CFLAGS -Wshadow"
14663
14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14665 printf %s "checking if $CC supports -Wshadow... " >&6; }
14666 cacheid=xorg_cv_cc_flag__Wshadow
14667 if eval test \${$cacheid+y}
14668 then :
14669 printf %s "(cached) " >&6
14670 else $as_nop
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14673 int i;
14674 int
14675 main (void)
14676 {
14677
14678 ;
14679 return 0;
14680 }
14681 _ACEOF
14682 if ac_fn_c_try_link "$LINENO"
14683 then :
14684 eval $cacheid=yes
14685 else $as_nop
14686 eval $cacheid=no
14687 fi
14688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14689 conftest$ac_exeext conftest.$ac_ext
14690 fi
14691
14692
14693 CFLAGS="$xorg_testset_save_CFLAGS"
14694
14695 eval supported=\$$cacheid
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14697 printf "%s\n" "$supported" >&6; }
14698 if test "$supported" = "yes" ; then
14699 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14700 found="yes"
14701 fi
14702 fi
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718 xorg_testset_save_CFLAGS="$CFLAGS"
14719
14720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14724 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14725 then :
14726 printf %s "(cached) " >&6
14727 else $as_nop
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14730 int i;
14731 _ACEOF
14732 if ac_fn_c_try_compile "$LINENO"
14733 then :
14734 xorg_cv_cc_flag_unknown_warning_option=yes
14735 else $as_nop
14736 xorg_cv_cc_flag_unknown_warning_option=no
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14739 fi
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14743 CFLAGS="$xorg_testset_save_CFLAGS"
14744 fi
14745
14746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749 fi
14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14754 then :
14755 printf %s "(cached) " >&6
14756 else $as_nop
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"
14762 then :
14763 xorg_cv_cc_flag_unused_command_line_argument=yes
14764 else $as_nop
14765 xorg_cv_cc_flag_unused_command_line_argument=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14768 fi
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14772 CFLAGS="$xorg_testset_save_CFLAGS"
14773 fi
14774
14775 found="no"
14776
14777 if test $found = "no" ; then
14778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780 fi
14781
14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14784 fi
14785
14786 CFLAGS="$CFLAGS -Wmissing-noreturn"
14787
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14789 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14790 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14791 if eval test \${$cacheid+y}
14792 then :
14793 printf %s "(cached) " >&6
14794 else $as_nop
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14797 int i;
14798 int
14799 main (void)
14800 {
14801
14802 ;
14803 return 0;
14804 }
14805 _ACEOF
14806 if ac_fn_c_try_link "$LINENO"
14807 then :
14808 eval $cacheid=yes
14809 else $as_nop
14810 eval $cacheid=no
14811 fi
14812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14813 conftest$ac_exeext conftest.$ac_ext
14814 fi
14815
14816
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14818
14819 eval supported=\$$cacheid
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14821 printf "%s\n" "$supported" >&6; }
14822 if test "$supported" = "yes" ; then
14823 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14824 found="yes"
14825 fi
14826 fi
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842 xorg_testset_save_CFLAGS="$CFLAGS"
14843
14844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14848 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14849 then :
14850 printf %s "(cached) " >&6
14851 else $as_nop
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854 int i;
14855 _ACEOF
14856 if ac_fn_c_try_compile "$LINENO"
14857 then :
14858 xorg_cv_cc_flag_unknown_warning_option=yes
14859 else $as_nop
14860 xorg_cv_cc_flag_unknown_warning_option=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14863 fi
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14865 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14867 CFLAGS="$xorg_testset_save_CFLAGS"
14868 fi
14869
14870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873 fi
14874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14876 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14877 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14878 then :
14879 printf %s "(cached) " >&6
14880 else $as_nop
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14883 int i;
14884 _ACEOF
14885 if ac_fn_c_try_compile "$LINENO"
14886 then :
14887 xorg_cv_cc_flag_unused_command_line_argument=yes
14888 else $as_nop
14889 xorg_cv_cc_flag_unused_command_line_argument=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14892 fi
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14894 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14896 CFLAGS="$xorg_testset_save_CFLAGS"
14897 fi
14898
14899 found="no"
14900
14901 if test $found = "no" ; then
14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14904 fi
14905
14906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14908 fi
14909
14910 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14911
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14913 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14914 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14915 if eval test \${$cacheid+y}
14916 then :
14917 printf %s "(cached) " >&6
14918 else $as_nop
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14921 int i;
14922 int
14923 main (void)
14924 {
14925
14926 ;
14927 return 0;
14928 }
14929 _ACEOF
14930 if ac_fn_c_try_link "$LINENO"
14931 then :
14932 eval $cacheid=yes
14933 else $as_nop
14934 eval $cacheid=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14937 conftest$ac_exeext conftest.$ac_ext
14938 fi
14939
14940
14941 CFLAGS="$xorg_testset_save_CFLAGS"
14942
14943 eval supported=\$$cacheid
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14945 printf "%s\n" "$supported" >&6; }
14946 if test "$supported" = "yes" ; then
14947 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14948 found="yes"
14949 fi
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 xorg_testset_save_CFLAGS="$CFLAGS"
14967
14968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14973 then :
14974 printf %s "(cached) " >&6
14975 else $as_nop
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 int i;
14979 _ACEOF
14980 if ac_fn_c_try_compile "$LINENO"
14981 then :
14982 xorg_cv_cc_flag_unknown_warning_option=yes
14983 else $as_nop
14984 xorg_cv_cc_flag_unknown_warning_option=no
14985 fi
14986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14987 fi
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14991 CFLAGS="$xorg_testset_save_CFLAGS"
14992 fi
14993
14994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997 fi
14998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15002 then :
15003 printf %s "(cached) " >&6
15004 else $as_nop
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 int i;
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"
15010 then :
15011 xorg_cv_cc_flag_unused_command_line_argument=yes
15012 else $as_nop
15013 xorg_cv_cc_flag_unused_command_line_argument=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15016 fi
15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15020 CFLAGS="$xorg_testset_save_CFLAGS"
15021 fi
15022
15023 found="no"
15024
15025 if test $found = "no" ; then
15026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15028 fi
15029
15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15032 fi
15033
15034 CFLAGS="$CFLAGS -Wredundant-decls"
15035
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15037 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15038 cacheid=xorg_cv_cc_flag__Wredundant_decls
15039 if eval test \${$cacheid+y}
15040 then :
15041 printf %s "(cached) " >&6
15042 else $as_nop
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 int i;
15046 int
15047 main (void)
15048 {
15049
15050 ;
15051 return 0;
15052 }
15053 _ACEOF
15054 if ac_fn_c_try_link "$LINENO"
15055 then :
15056 eval $cacheid=yes
15057 else $as_nop
15058 eval $cacheid=no
15059 fi
15060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15061 conftest$ac_exeext conftest.$ac_ext
15062 fi
15063
15064
15065 CFLAGS="$xorg_testset_save_CFLAGS"
15066
15067 eval supported=\$$cacheid
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15069 printf "%s\n" "$supported" >&6; }
15070 if test "$supported" = "yes" ; then
15071 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15072 found="yes"
15073 fi
15074 fi
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090 xorg_testset_save_CFLAGS="$CFLAGS"
15091
15092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15097 then :
15098 printf %s "(cached) " >&6
15099 else $as_nop
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 int i;
15103 _ACEOF
15104 if ac_fn_c_try_compile "$LINENO"
15105 then :
15106 xorg_cv_cc_flag_unknown_warning_option=yes
15107 else $as_nop
15108 xorg_cv_cc_flag_unknown_warning_option=no
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15111 fi
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15115 CFLAGS="$xorg_testset_save_CFLAGS"
15116 fi
15117
15118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15121 fi
15122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15126 then :
15127 printf %s "(cached) " >&6
15128 else $as_nop
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 int i;
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"
15134 then :
15135 xorg_cv_cc_flag_unused_command_line_argument=yes
15136 else $as_nop
15137 xorg_cv_cc_flag_unused_command_line_argument=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15140 fi
15141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15144 CFLAGS="$xorg_testset_save_CFLAGS"
15145 fi
15146
15147 found="no"
15148
15149 if test $found = "no" ; then
15150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15152 fi
15153
15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15156 fi
15157
15158 CFLAGS="$CFLAGS -Wlogical-op"
15159
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15161 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15162 cacheid=xorg_cv_cc_flag__Wlogical_op
15163 if eval test \${$cacheid+y}
15164 then :
15165 printf %s "(cached) " >&6
15166 else $as_nop
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169 int i;
15170 int
15171 main (void)
15172 {
15173
15174 ;
15175 return 0;
15176 }
15177 _ACEOF
15178 if ac_fn_c_try_link "$LINENO"
15179 then :
15180 eval $cacheid=yes
15181 else $as_nop
15182 eval $cacheid=no
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15185 conftest$ac_exeext conftest.$ac_ext
15186 fi
15187
15188
15189 CFLAGS="$xorg_testset_save_CFLAGS"
15190
15191 eval supported=\$$cacheid
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15193 printf "%s\n" "$supported" >&6; }
15194 if test "$supported" = "yes" ; then
15195 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15196 found="yes"
15197 fi
15198 fi
15199
15200
15201
15202 # These are currently disabled because they are noisy. They will be enabled
15203 # in the future once the codebase is sufficiently modernized to silence
15204 # them. For now, I don't want them to drown out the other warnings.
15205 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15206 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15207 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15208
15209 # Turn some warnings into errors, so we don't accidentally get successful builds
15210 # when there are problems that should be fixed.
15211
15212 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226 xorg_testset_save_CFLAGS="$CFLAGS"
15227
15228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15232 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15233 then :
15234 printf %s "(cached) " >&6
15235 else $as_nop
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238 int i;
15239 _ACEOF
15240 if ac_fn_c_try_compile "$LINENO"
15241 then :
15242 xorg_cv_cc_flag_unknown_warning_option=yes
15243 else $as_nop
15244 xorg_cv_cc_flag_unknown_warning_option=no
15245 fi
15246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15247 fi
15248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15249 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15251 CFLAGS="$xorg_testset_save_CFLAGS"
15252 fi
15253
15254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15257 fi
15258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15260 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15261 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15262 then :
15263 printf %s "(cached) " >&6
15264 else $as_nop
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 int i;
15268 _ACEOF
15269 if ac_fn_c_try_compile "$LINENO"
15270 then :
15271 xorg_cv_cc_flag_unused_command_line_argument=yes
15272 else $as_nop
15273 xorg_cv_cc_flag_unused_command_line_argument=no
15274 fi
15275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15276 fi
15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15280 CFLAGS="$xorg_testset_save_CFLAGS"
15281 fi
15282
15283 found="no"
15284
15285 if test $found = "no" ; then
15286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15288 fi
15289
15290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15292 fi
15293
15294 CFLAGS="$CFLAGS -Werror=implicit"
15295
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15297 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15298 cacheid=xorg_cv_cc_flag__Werror_implicit
15299 if eval test \${$cacheid+y}
15300 then :
15301 printf %s "(cached) " >&6
15302 else $as_nop
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15305 int i;
15306 int
15307 main (void)
15308 {
15309
15310 ;
15311 return 0;
15312 }
15313 _ACEOF
15314 if ac_fn_c_try_link "$LINENO"
15315 then :
15316 eval $cacheid=yes
15317 else $as_nop
15318 eval $cacheid=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15321 conftest$ac_exeext conftest.$ac_ext
15322 fi
15323
15324
15325 CFLAGS="$xorg_testset_save_CFLAGS"
15326
15327 eval supported=\$$cacheid
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15329 printf "%s\n" "$supported" >&6; }
15330 if test "$supported" = "yes" ; then
15331 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15332 found="yes"
15333 fi
15334 fi
15335
15336 if test $found = "no" ; then
15337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15339 fi
15340
15341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15343 fi
15344
15345 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15346
15347 { 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
15348 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15349 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15350 if eval test \${$cacheid+y}
15351 then :
15352 printf %s "(cached) " >&6
15353 else $as_nop
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15356 int i;
15357 int
15358 main (void)
15359 {
15360
15361 ;
15362 return 0;
15363 }
15364 _ACEOF
15365 if ac_fn_c_try_link "$LINENO"
15366 then :
15367 eval $cacheid=yes
15368 else $as_nop
15369 eval $cacheid=no
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15372 conftest$ac_exeext conftest.$ac_ext
15373 fi
15374
15375
15376 CFLAGS="$xorg_testset_save_CFLAGS"
15377
15378 eval supported=\$$cacheid
15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15380 printf "%s\n" "$supported" >&6; }
15381 if test "$supported" = "yes" ; then
15382 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15383 found="yes"
15384 fi
15385 fi
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401 xorg_testset_save_CFLAGS="$CFLAGS"
15402
15403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15406 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15407 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15408 then :
15409 printf %s "(cached) " >&6
15410 else $as_nop
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 int i;
15414 _ACEOF
15415 if ac_fn_c_try_compile "$LINENO"
15416 then :
15417 xorg_cv_cc_flag_unknown_warning_option=yes
15418 else $as_nop
15419 xorg_cv_cc_flag_unknown_warning_option=no
15420 fi
15421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15422 fi
15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15424 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15426 CFLAGS="$xorg_testset_save_CFLAGS"
15427 fi
15428
15429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15432 fi
15433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15437 then :
15438 printf %s "(cached) " >&6
15439 else $as_nop
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15442 int i;
15443 _ACEOF
15444 if ac_fn_c_try_compile "$LINENO"
15445 then :
15446 xorg_cv_cc_flag_unused_command_line_argument=yes
15447 else $as_nop
15448 xorg_cv_cc_flag_unused_command_line_argument=no
15449 fi
15450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15451 fi
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15453 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15455 CFLAGS="$xorg_testset_save_CFLAGS"
15456 fi
15457
15458 found="no"
15459
15460 if test $found = "no" ; then
15461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15463 fi
15464
15465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15467 fi
15468
15469 CFLAGS="$CFLAGS -Werror=nonnull"
15470
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15472 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15473 cacheid=xorg_cv_cc_flag__Werror_nonnull
15474 if eval test \${$cacheid+y}
15475 then :
15476 printf %s "(cached) " >&6
15477 else $as_nop
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 int i;
15481 int
15482 main (void)
15483 {
15484
15485 ;
15486 return 0;
15487 }
15488 _ACEOF
15489 if ac_fn_c_try_link "$LINENO"
15490 then :
15491 eval $cacheid=yes
15492 else $as_nop
15493 eval $cacheid=no
15494 fi
15495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15496 conftest$ac_exeext conftest.$ac_ext
15497 fi
15498
15499
15500 CFLAGS="$xorg_testset_save_CFLAGS"
15501
15502 eval supported=\$$cacheid
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15504 printf "%s\n" "$supported" >&6; }
15505 if test "$supported" = "yes" ; then
15506 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15507 found="yes"
15508 fi
15509 fi
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525 xorg_testset_save_CFLAGS="$CFLAGS"
15526
15527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15530 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15531 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15532 then :
15533 printf %s "(cached) " >&6
15534 else $as_nop
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15537 int i;
15538 _ACEOF
15539 if ac_fn_c_try_compile "$LINENO"
15540 then :
15541 xorg_cv_cc_flag_unknown_warning_option=yes
15542 else $as_nop
15543 xorg_cv_cc_flag_unknown_warning_option=no
15544 fi
15545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15546 fi
15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15548 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15550 CFLAGS="$xorg_testset_save_CFLAGS"
15551 fi
15552
15553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15556 fi
15557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15559 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15560 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15561 then :
15562 printf %s "(cached) " >&6
15563 else $as_nop
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 int i;
15567 _ACEOF
15568 if ac_fn_c_try_compile "$LINENO"
15569 then :
15570 xorg_cv_cc_flag_unused_command_line_argument=yes
15571 else $as_nop
15572 xorg_cv_cc_flag_unused_command_line_argument=no
15573 fi
15574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15575 fi
15576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15577 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15579 CFLAGS="$xorg_testset_save_CFLAGS"
15580 fi
15581
15582 found="no"
15583
15584 if test $found = "no" ; then
15585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15587 fi
15588
15589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15591 fi
15592
15593 CFLAGS="$CFLAGS -Werror=init-self"
15594
15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15596 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15597 cacheid=xorg_cv_cc_flag__Werror_init_self
15598 if eval test \${$cacheid+y}
15599 then :
15600 printf %s "(cached) " >&6
15601 else $as_nop
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604 int i;
15605 int
15606 main (void)
15607 {
15608
15609 ;
15610 return 0;
15611 }
15612 _ACEOF
15613 if ac_fn_c_try_link "$LINENO"
15614 then :
15615 eval $cacheid=yes
15616 else $as_nop
15617 eval $cacheid=no
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15620 conftest$ac_exeext conftest.$ac_ext
15621 fi
15622
15623
15624 CFLAGS="$xorg_testset_save_CFLAGS"
15625
15626 eval supported=\$$cacheid
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15628 printf "%s\n" "$supported" >&6; }
15629 if test "$supported" = "yes" ; then
15630 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15631 found="yes"
15632 fi
15633 fi
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649 xorg_testset_save_CFLAGS="$CFLAGS"
15650
15651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15654 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15655 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15656 then :
15657 printf %s "(cached) " >&6
15658 else $as_nop
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 int i;
15662 _ACEOF
15663 if ac_fn_c_try_compile "$LINENO"
15664 then :
15665 xorg_cv_cc_flag_unknown_warning_option=yes
15666 else $as_nop
15667 xorg_cv_cc_flag_unknown_warning_option=no
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15670 fi
15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15672 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15674 CFLAGS="$xorg_testset_save_CFLAGS"
15675 fi
15676
15677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15680 fi
15681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15683 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15684 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15685 then :
15686 printf %s "(cached) " >&6
15687 else $as_nop
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 int i;
15691 _ACEOF
15692 if ac_fn_c_try_compile "$LINENO"
15693 then :
15694 xorg_cv_cc_flag_unused_command_line_argument=yes
15695 else $as_nop
15696 xorg_cv_cc_flag_unused_command_line_argument=no
15697 fi
15698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15699 fi
15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15703 CFLAGS="$xorg_testset_save_CFLAGS"
15704 fi
15705
15706 found="no"
15707
15708 if test $found = "no" ; then
15709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15711 fi
15712
15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15715 fi
15716
15717 CFLAGS="$CFLAGS -Werror=main"
15718
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15720 printf %s "checking if $CC supports -Werror=main... " >&6; }
15721 cacheid=xorg_cv_cc_flag__Werror_main
15722 if eval test \${$cacheid+y}
15723 then :
15724 printf %s "(cached) " >&6
15725 else $as_nop
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 int i;
15729 int
15730 main (void)
15731 {
15732
15733 ;
15734 return 0;
15735 }
15736 _ACEOF
15737 if ac_fn_c_try_link "$LINENO"
15738 then :
15739 eval $cacheid=yes
15740 else $as_nop
15741 eval $cacheid=no
15742 fi
15743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15744 conftest$ac_exeext conftest.$ac_ext
15745 fi
15746
15747
15748 CFLAGS="$xorg_testset_save_CFLAGS"
15749
15750 eval supported=\$$cacheid
15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15752 printf "%s\n" "$supported" >&6; }
15753 if test "$supported" = "yes" ; then
15754 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15755 found="yes"
15756 fi
15757 fi
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773 xorg_testset_save_CFLAGS="$CFLAGS"
15774
15775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15779 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15780 then :
15781 printf %s "(cached) " >&6
15782 else $as_nop
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 int i;
15786 _ACEOF
15787 if ac_fn_c_try_compile "$LINENO"
15788 then :
15789 xorg_cv_cc_flag_unknown_warning_option=yes
15790 else $as_nop
15791 xorg_cv_cc_flag_unknown_warning_option=no
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15794 fi
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15798 CFLAGS="$xorg_testset_save_CFLAGS"
15799 fi
15800
15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804 fi
15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15809 then :
15810 printf %s "(cached) " >&6
15811 else $as_nop
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15814 int i;
15815 _ACEOF
15816 if ac_fn_c_try_compile "$LINENO"
15817 then :
15818 xorg_cv_cc_flag_unused_command_line_argument=yes
15819 else $as_nop
15820 xorg_cv_cc_flag_unused_command_line_argument=no
15821 fi
15822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15823 fi
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15825 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15827 CFLAGS="$xorg_testset_save_CFLAGS"
15828 fi
15829
15830 found="no"
15831
15832 if test $found = "no" ; then
15833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15835 fi
15836
15837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15839 fi
15840
15841 CFLAGS="$CFLAGS -Werror=missing-braces"
15842
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15844 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15845 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15846 if eval test \${$cacheid+y}
15847 then :
15848 printf %s "(cached) " >&6
15849 else $as_nop
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 int i;
15853 int
15854 main (void)
15855 {
15856
15857 ;
15858 return 0;
15859 }
15860 _ACEOF
15861 if ac_fn_c_try_link "$LINENO"
15862 then :
15863 eval $cacheid=yes
15864 else $as_nop
15865 eval $cacheid=no
15866 fi
15867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15868 conftest$ac_exeext conftest.$ac_ext
15869 fi
15870
15871
15872 CFLAGS="$xorg_testset_save_CFLAGS"
15873
15874 eval supported=\$$cacheid
15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15876 printf "%s\n" "$supported" >&6; }
15877 if test "$supported" = "yes" ; then
15878 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15879 found="yes"
15880 fi
15881 fi
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897 xorg_testset_save_CFLAGS="$CFLAGS"
15898
15899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15903 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15904 then :
15905 printf %s "(cached) " >&6
15906 else $as_nop
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 int i;
15910 _ACEOF
15911 if ac_fn_c_try_compile "$LINENO"
15912 then :
15913 xorg_cv_cc_flag_unknown_warning_option=yes
15914 else $as_nop
15915 xorg_cv_cc_flag_unknown_warning_option=no
15916 fi
15917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15918 fi
15919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15922 CFLAGS="$xorg_testset_save_CFLAGS"
15923 fi
15924
15925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15928 fi
15929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15933 then :
15934 printf %s "(cached) " >&6
15935 else $as_nop
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938 int i;
15939 _ACEOF
15940 if ac_fn_c_try_compile "$LINENO"
15941 then :
15942 xorg_cv_cc_flag_unused_command_line_argument=yes
15943 else $as_nop
15944 xorg_cv_cc_flag_unused_command_line_argument=no
15945 fi
15946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15947 fi
15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15951 CFLAGS="$xorg_testset_save_CFLAGS"
15952 fi
15953
15954 found="no"
15955
15956 if test $found = "no" ; then
15957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15959 fi
15960
15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15963 fi
15964
15965 CFLAGS="$CFLAGS -Werror=sequence-point"
15966
15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15968 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15969 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15970 if eval test \${$cacheid+y}
15971 then :
15972 printf %s "(cached) " >&6
15973 else $as_nop
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 int i;
15977 int
15978 main (void)
15979 {
15980
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_link "$LINENO"
15986 then :
15987 eval $cacheid=yes
15988 else $as_nop
15989 eval $cacheid=no
15990 fi
15991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15992 conftest$ac_exeext conftest.$ac_ext
15993 fi
15994
15995
15996 CFLAGS="$xorg_testset_save_CFLAGS"
15997
15998 eval supported=\$$cacheid
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16000 printf "%s\n" "$supported" >&6; }
16001 if test "$supported" = "yes" ; then
16002 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16003 found="yes"
16004 fi
16005 fi
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021 xorg_testset_save_CFLAGS="$CFLAGS"
16022
16023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16027 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16028 then :
16029 printf %s "(cached) " >&6
16030 else $as_nop
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 int i;
16034 _ACEOF
16035 if ac_fn_c_try_compile "$LINENO"
16036 then :
16037 xorg_cv_cc_flag_unknown_warning_option=yes
16038 else $as_nop
16039 xorg_cv_cc_flag_unknown_warning_option=no
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16042 fi
16043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16046 CFLAGS="$xorg_testset_save_CFLAGS"
16047 fi
16048
16049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16052 fi
16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16057 then :
16058 printf %s "(cached) " >&6
16059 else $as_nop
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 int i;
16063 _ACEOF
16064 if ac_fn_c_try_compile "$LINENO"
16065 then :
16066 xorg_cv_cc_flag_unused_command_line_argument=yes
16067 else $as_nop
16068 xorg_cv_cc_flag_unused_command_line_argument=no
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16071 fi
16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16075 CFLAGS="$xorg_testset_save_CFLAGS"
16076 fi
16077
16078 found="no"
16079
16080 if test $found = "no" ; then
16081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16083 fi
16084
16085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16087 fi
16088
16089 CFLAGS="$CFLAGS -Werror=return-type"
16090
16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16092 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16093 cacheid=xorg_cv_cc_flag__Werror_return_type
16094 if eval test \${$cacheid+y}
16095 then :
16096 printf %s "(cached) " >&6
16097 else $as_nop
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16100 int i;
16101 int
16102 main (void)
16103 {
16104
16105 ;
16106 return 0;
16107 }
16108 _ACEOF
16109 if ac_fn_c_try_link "$LINENO"
16110 then :
16111 eval $cacheid=yes
16112 else $as_nop
16113 eval $cacheid=no
16114 fi
16115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16116 conftest$ac_exeext conftest.$ac_ext
16117 fi
16118
16119
16120 CFLAGS="$xorg_testset_save_CFLAGS"
16121
16122 eval supported=\$$cacheid
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16124 printf "%s\n" "$supported" >&6; }
16125 if test "$supported" = "yes" ; then
16126 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16127 found="yes"
16128 fi
16129 fi
16130
16131 if test $found = "no" ; then
16132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134 fi
16135
16136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16138 fi
16139
16140 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16141
16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16143 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16144 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16145 if eval test \${$cacheid+y}
16146 then :
16147 printf %s "(cached) " >&6
16148 else $as_nop
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 int i;
16152 int
16153 main (void)
16154 {
16155
16156 ;
16157 return 0;
16158 }
16159 _ACEOF
16160 if ac_fn_c_try_link "$LINENO"
16161 then :
16162 eval $cacheid=yes
16163 else $as_nop
16164 eval $cacheid=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16167 conftest$ac_exeext conftest.$ac_ext
16168 fi
16169
16170
16171 CFLAGS="$xorg_testset_save_CFLAGS"
16172
16173 eval supported=\$$cacheid
16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16175 printf "%s\n" "$supported" >&6; }
16176 if test "$supported" = "yes" ; then
16177 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16178 found="yes"
16179 fi
16180 fi
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196 xorg_testset_save_CFLAGS="$CFLAGS"
16197
16198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16201 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16202 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16203 then :
16204 printf %s "(cached) " >&6
16205 else $as_nop
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16208 int i;
16209 _ACEOF
16210 if ac_fn_c_try_compile "$LINENO"
16211 then :
16212 xorg_cv_cc_flag_unknown_warning_option=yes
16213 else $as_nop
16214 xorg_cv_cc_flag_unknown_warning_option=no
16215 fi
16216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16217 fi
16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16219 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16221 CFLAGS="$xorg_testset_save_CFLAGS"
16222 fi
16223
16224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227 fi
16228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16232 then :
16233 printf %s "(cached) " >&6
16234 else $as_nop
16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236 /* end confdefs.h. */
16237 int i;
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"
16240 then :
16241 xorg_cv_cc_flag_unused_command_line_argument=yes
16242 else $as_nop
16243 xorg_cv_cc_flag_unused_command_line_argument=no
16244 fi
16245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16246 fi
16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16248 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16250 CFLAGS="$xorg_testset_save_CFLAGS"
16251 fi
16252
16253 found="no"
16254
16255 if test $found = "no" ; then
16256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16258 fi
16259
16260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16262 fi
16263
16264 CFLAGS="$CFLAGS -Werror=trigraphs"
16265
16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16267 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16268 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16269 if eval test \${$cacheid+y}
16270 then :
16271 printf %s "(cached) " >&6
16272 else $as_nop
16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h. */
16275 int i;
16276 int
16277 main (void)
16278 {
16279
16280 ;
16281 return 0;
16282 }
16283 _ACEOF
16284 if ac_fn_c_try_link "$LINENO"
16285 then :
16286 eval $cacheid=yes
16287 else $as_nop
16288 eval $cacheid=no
16289 fi
16290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16291 conftest$ac_exeext conftest.$ac_ext
16292 fi
16293
16294
16295 CFLAGS="$xorg_testset_save_CFLAGS"
16296
16297 eval supported=\$$cacheid
16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16299 printf "%s\n" "$supported" >&6; }
16300 if test "$supported" = "yes" ; then
16301 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16302 found="yes"
16303 fi
16304 fi
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320 xorg_testset_save_CFLAGS="$CFLAGS"
16321
16322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16325 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16326 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16327 then :
16328 printf %s "(cached) " >&6
16329 else $as_nop
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16332 int i;
16333 _ACEOF
16334 if ac_fn_c_try_compile "$LINENO"
16335 then :
16336 xorg_cv_cc_flag_unknown_warning_option=yes
16337 else $as_nop
16338 xorg_cv_cc_flag_unknown_warning_option=no
16339 fi
16340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16341 fi
16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16345 CFLAGS="$xorg_testset_save_CFLAGS"
16346 fi
16347
16348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16351 fi
16352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16356 then :
16357 printf %s "(cached) " >&6
16358 else $as_nop
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 int i;
16362 _ACEOF
16363 if ac_fn_c_try_compile "$LINENO"
16364 then :
16365 xorg_cv_cc_flag_unused_command_line_argument=yes
16366 else $as_nop
16367 xorg_cv_cc_flag_unused_command_line_argument=no
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16370 fi
16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16372 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16374 CFLAGS="$xorg_testset_save_CFLAGS"
16375 fi
16376
16377 found="no"
16378
16379 if test $found = "no" ; then
16380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16382 fi
16383
16384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16386 fi
16387
16388 CFLAGS="$CFLAGS -Werror=array-bounds"
16389
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16391 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16392 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16393 if eval test \${$cacheid+y}
16394 then :
16395 printf %s "(cached) " >&6
16396 else $as_nop
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 int i;
16400 int
16401 main (void)
16402 {
16403
16404 ;
16405 return 0;
16406 }
16407 _ACEOF
16408 if ac_fn_c_try_link "$LINENO"
16409 then :
16410 eval $cacheid=yes
16411 else $as_nop
16412 eval $cacheid=no
16413 fi
16414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16415 conftest$ac_exeext conftest.$ac_ext
16416 fi
16417
16418
16419 CFLAGS="$xorg_testset_save_CFLAGS"
16420
16421 eval supported=\$$cacheid
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16423 printf "%s\n" "$supported" >&6; }
16424 if test "$supported" = "yes" ; then
16425 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16426 found="yes"
16427 fi
16428 fi
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444 xorg_testset_save_CFLAGS="$CFLAGS"
16445
16446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16449 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16450 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16451 then :
16452 printf %s "(cached) " >&6
16453 else $as_nop
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 int i;
16457 _ACEOF
16458 if ac_fn_c_try_compile "$LINENO"
16459 then :
16460 xorg_cv_cc_flag_unknown_warning_option=yes
16461 else $as_nop
16462 xorg_cv_cc_flag_unknown_warning_option=no
16463 fi
16464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16465 fi
16466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16467 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16469 CFLAGS="$xorg_testset_save_CFLAGS"
16470 fi
16471
16472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16475 fi
16476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16478 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16479 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16480 then :
16481 printf %s "(cached) " >&6
16482 else $as_nop
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16485 int i;
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"
16488 then :
16489 xorg_cv_cc_flag_unused_command_line_argument=yes
16490 else $as_nop
16491 xorg_cv_cc_flag_unused_command_line_argument=no
16492 fi
16493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16494 fi
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16498 CFLAGS="$xorg_testset_save_CFLAGS"
16499 fi
16500
16501 found="no"
16502
16503 if test $found = "no" ; then
16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16506 fi
16507
16508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16510 fi
16511
16512 CFLAGS="$CFLAGS -Werror=write-strings"
16513
16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16515 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16516 cacheid=xorg_cv_cc_flag__Werror_write_strings
16517 if eval test \${$cacheid+y}
16518 then :
16519 printf %s "(cached) " >&6
16520 else $as_nop
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 int i;
16524 int
16525 main (void)
16526 {
16527
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_link "$LINENO"
16533 then :
16534 eval $cacheid=yes
16535 else $as_nop
16536 eval $cacheid=no
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16539 conftest$ac_exeext conftest.$ac_ext
16540 fi
16541
16542
16543 CFLAGS="$xorg_testset_save_CFLAGS"
16544
16545 eval supported=\$$cacheid
16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16547 printf "%s\n" "$supported" >&6; }
16548 if test "$supported" = "yes" ; then
16549 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16550 found="yes"
16551 fi
16552 fi
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568 xorg_testset_save_CFLAGS="$CFLAGS"
16569
16570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16573 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16574 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16575 then :
16576 printf %s "(cached) " >&6
16577 else $as_nop
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580 int i;
16581 _ACEOF
16582 if ac_fn_c_try_compile "$LINENO"
16583 then :
16584 xorg_cv_cc_flag_unknown_warning_option=yes
16585 else $as_nop
16586 xorg_cv_cc_flag_unknown_warning_option=no
16587 fi
16588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16589 fi
16590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16593 CFLAGS="$xorg_testset_save_CFLAGS"
16594 fi
16595
16596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16599 fi
16600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16604 then :
16605 printf %s "(cached) " >&6
16606 else $as_nop
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16609 int i;
16610 _ACEOF
16611 if ac_fn_c_try_compile "$LINENO"
16612 then :
16613 xorg_cv_cc_flag_unused_command_line_argument=yes
16614 else $as_nop
16615 xorg_cv_cc_flag_unused_command_line_argument=no
16616 fi
16617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16618 fi
16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16622 CFLAGS="$xorg_testset_save_CFLAGS"
16623 fi
16624
16625 found="no"
16626
16627 if test $found = "no" ; then
16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630 fi
16631
16632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16634 fi
16635
16636 CFLAGS="$CFLAGS -Werror=address"
16637
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16639 printf %s "checking if $CC supports -Werror=address... " >&6; }
16640 cacheid=xorg_cv_cc_flag__Werror_address
16641 if eval test \${$cacheid+y}
16642 then :
16643 printf %s "(cached) " >&6
16644 else $as_nop
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 int i;
16648 int
16649 main (void)
16650 {
16651
16652 ;
16653 return 0;
16654 }
16655 _ACEOF
16656 if ac_fn_c_try_link "$LINENO"
16657 then :
16658 eval $cacheid=yes
16659 else $as_nop
16660 eval $cacheid=no
16661 fi
16662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16663 conftest$ac_exeext conftest.$ac_ext
16664 fi
16665
16666
16667 CFLAGS="$xorg_testset_save_CFLAGS"
16668
16669 eval supported=\$$cacheid
16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16671 printf "%s\n" "$supported" >&6; }
16672 if test "$supported" = "yes" ; then
16673 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16674 found="yes"
16675 fi
16676 fi
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692 xorg_testset_save_CFLAGS="$CFLAGS"
16693
16694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16699 then :
16700 printf %s "(cached) " >&6
16701 else $as_nop
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704 int i;
16705 _ACEOF
16706 if ac_fn_c_try_compile "$LINENO"
16707 then :
16708 xorg_cv_cc_flag_unknown_warning_option=yes
16709 else $as_nop
16710 xorg_cv_cc_flag_unknown_warning_option=no
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16713 fi
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16717 CFLAGS="$xorg_testset_save_CFLAGS"
16718 fi
16719
16720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 fi
16724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16728 then :
16729 printf %s "(cached) " >&6
16730 else $as_nop
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 int i;
16734 _ACEOF
16735 if ac_fn_c_try_compile "$LINENO"
16736 then :
16737 xorg_cv_cc_flag_unused_command_line_argument=yes
16738 else $as_nop
16739 xorg_cv_cc_flag_unused_command_line_argument=no
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16742 fi
16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16744 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16746 CFLAGS="$xorg_testset_save_CFLAGS"
16747 fi
16748
16749 found="no"
16750
16751 if test $found = "no" ; then
16752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16754 fi
16755
16756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16758 fi
16759
16760 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16761
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16763 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16764 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16765 if eval test \${$cacheid+y}
16766 then :
16767 printf %s "(cached) " >&6
16768 else $as_nop
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16771 int i;
16772 int
16773 main (void)
16774 {
16775
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 if ac_fn_c_try_link "$LINENO"
16781 then :
16782 eval $cacheid=yes
16783 else $as_nop
16784 eval $cacheid=no
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16787 conftest$ac_exeext conftest.$ac_ext
16788 fi
16789
16790
16791 CFLAGS="$xorg_testset_save_CFLAGS"
16792
16793 eval supported=\$$cacheid
16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16795 printf "%s\n" "$supported" >&6; }
16796 if test "$supported" = "yes" ; then
16797 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16798 found="yes"
16799 fi
16800 fi
16801
16802 if test $found = "no" ; then
16803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16805 fi
16806
16807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16809 fi
16810
16811 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16812
16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16814 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16815 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16816 if eval test \${$cacheid+y}
16817 then :
16818 printf %s "(cached) " >&6
16819 else $as_nop
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 int i;
16823 int
16824 main (void)
16825 {
16826
16827 ;
16828 return 0;
16829 }
16830 _ACEOF
16831 if ac_fn_c_try_link "$LINENO"
16832 then :
16833 eval $cacheid=yes
16834 else $as_nop
16835 eval $cacheid=no
16836 fi
16837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16838 conftest$ac_exeext conftest.$ac_ext
16839 fi
16840
16841
16842 CFLAGS="$xorg_testset_save_CFLAGS"
16843
16844 eval supported=\$$cacheid
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16846 printf "%s\n" "$supported" >&6; }
16847 if test "$supported" = "yes" ; then
16848 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16849 found="yes"
16850 fi
16851 fi
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867 xorg_testset_save_CFLAGS="$CFLAGS"
16868
16869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16872 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16873 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16874 then :
16875 printf %s "(cached) " >&6
16876 else $as_nop
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h. */
16879 int i;
16880 _ACEOF
16881 if ac_fn_c_try_compile "$LINENO"
16882 then :
16883 xorg_cv_cc_flag_unknown_warning_option=yes
16884 else $as_nop
16885 xorg_cv_cc_flag_unknown_warning_option=no
16886 fi
16887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16888 fi
16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16890 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16892 CFLAGS="$xorg_testset_save_CFLAGS"
16893 fi
16894
16895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16898 fi
16899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16901 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16902 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16903 then :
16904 printf %s "(cached) " >&6
16905 else $as_nop
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16908 int i;
16909 _ACEOF
16910 if ac_fn_c_try_compile "$LINENO"
16911 then :
16912 xorg_cv_cc_flag_unused_command_line_argument=yes
16913 else $as_nop
16914 xorg_cv_cc_flag_unused_command_line_argument=no
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16917 fi
16918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16919 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16921 CFLAGS="$xorg_testset_save_CFLAGS"
16922 fi
16923
16924 found="no"
16925
16926 if test $found = "no" ; then
16927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16929 fi
16930
16931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16933 fi
16934
16935 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16936
16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16938 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16939 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16940 if eval test \${$cacheid+y}
16941 then :
16942 printf %s "(cached) " >&6
16943 else $as_nop
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16946 int i;
16947 int
16948 main (void)
16949 {
16950
16951 ;
16952 return 0;
16953 }
16954 _ACEOF
16955 if ac_fn_c_try_link "$LINENO"
16956 then :
16957 eval $cacheid=yes
16958 else $as_nop
16959 eval $cacheid=no
16960 fi
16961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16962 conftest$ac_exeext conftest.$ac_ext
16963 fi
16964
16965
16966 CFLAGS="$xorg_testset_save_CFLAGS"
16967
16968 eval supported=\$$cacheid
16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16970 printf "%s\n" "$supported" >&6; }
16971 if test "$supported" = "yes" ; then
16972 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16973 found="yes"
16974 fi
16975 fi
16976
16977 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16978 else
16979 { 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
16980 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;}
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994 xorg_testset_save_CFLAGS="$CFLAGS"
16995
16996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17000 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17001 then :
17002 printf %s "(cached) " >&6
17003 else $as_nop
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17006 int i;
17007 _ACEOF
17008 if ac_fn_c_try_compile "$LINENO"
17009 then :
17010 xorg_cv_cc_flag_unknown_warning_option=yes
17011 else $as_nop
17012 xorg_cv_cc_flag_unknown_warning_option=no
17013 fi
17014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17015 fi
17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17017 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17019 CFLAGS="$xorg_testset_save_CFLAGS"
17020 fi
17021
17022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17025 fi
17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17028 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17029 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17030 then :
17031 printf %s "(cached) " >&6
17032 else $as_nop
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17035 int i;
17036 _ACEOF
17037 if ac_fn_c_try_compile "$LINENO"
17038 then :
17039 xorg_cv_cc_flag_unused_command_line_argument=yes
17040 else $as_nop
17041 xorg_cv_cc_flag_unused_command_line_argument=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17044 fi
17045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17046 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17048 CFLAGS="$xorg_testset_save_CFLAGS"
17049 fi
17050
17051 found="no"
17052
17053 if test $found = "no" ; then
17054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17056 fi
17057
17058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17060 fi
17061
17062 CFLAGS="$CFLAGS -Wimplicit"
17063
17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17065 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17066 cacheid=xorg_cv_cc_flag__Wimplicit
17067 if eval test \${$cacheid+y}
17068 then :
17069 printf %s "(cached) " >&6
17070 else $as_nop
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17073 int i;
17074 int
17075 main (void)
17076 {
17077
17078 ;
17079 return 0;
17080 }
17081 _ACEOF
17082 if ac_fn_c_try_link "$LINENO"
17083 then :
17084 eval $cacheid=yes
17085 else $as_nop
17086 eval $cacheid=no
17087 fi
17088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17089 conftest$ac_exeext conftest.$ac_ext
17090 fi
17091
17092
17093 CFLAGS="$xorg_testset_save_CFLAGS"
17094
17095 eval supported=\$$cacheid
17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17097 printf "%s\n" "$supported" >&6; }
17098 if test "$supported" = "yes" ; then
17099 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17100 found="yes"
17101 fi
17102 fi
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118 xorg_testset_save_CFLAGS="$CFLAGS"
17119
17120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17123 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17124 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17125 then :
17126 printf %s "(cached) " >&6
17127 else $as_nop
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 int i;
17131 _ACEOF
17132 if ac_fn_c_try_compile "$LINENO"
17133 then :
17134 xorg_cv_cc_flag_unknown_warning_option=yes
17135 else $as_nop
17136 xorg_cv_cc_flag_unknown_warning_option=no
17137 fi
17138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17139 fi
17140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17141 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17143 CFLAGS="$xorg_testset_save_CFLAGS"
17144 fi
17145
17146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17149 fi
17150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17154 then :
17155 printf %s "(cached) " >&6
17156 else $as_nop
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17159 int i;
17160 _ACEOF
17161 if ac_fn_c_try_compile "$LINENO"
17162 then :
17163 xorg_cv_cc_flag_unused_command_line_argument=yes
17164 else $as_nop
17165 xorg_cv_cc_flag_unused_command_line_argument=no
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17168 fi
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17170 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17172 CFLAGS="$xorg_testset_save_CFLAGS"
17173 fi
17174
17175 found="no"
17176
17177 if test $found = "no" ; then
17178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17180 fi
17181
17182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17184 fi
17185
17186 CFLAGS="$CFLAGS -Wnonnull"
17187
17188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17189 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17190 cacheid=xorg_cv_cc_flag__Wnonnull
17191 if eval test \${$cacheid+y}
17192 then :
17193 printf %s "(cached) " >&6
17194 else $as_nop
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197 int i;
17198 int
17199 main (void)
17200 {
17201
17202 ;
17203 return 0;
17204 }
17205 _ACEOF
17206 if ac_fn_c_try_link "$LINENO"
17207 then :
17208 eval $cacheid=yes
17209 else $as_nop
17210 eval $cacheid=no
17211 fi
17212 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17213 conftest$ac_exeext conftest.$ac_ext
17214 fi
17215
17216
17217 CFLAGS="$xorg_testset_save_CFLAGS"
17218
17219 eval supported=\$$cacheid
17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17221 printf "%s\n" "$supported" >&6; }
17222 if test "$supported" = "yes" ; then
17223 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17224 found="yes"
17225 fi
17226 fi
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242 xorg_testset_save_CFLAGS="$CFLAGS"
17243
17244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17248 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17249 then :
17250 printf %s "(cached) " >&6
17251 else $as_nop
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 int i;
17255 _ACEOF
17256 if ac_fn_c_try_compile "$LINENO"
17257 then :
17258 xorg_cv_cc_flag_unknown_warning_option=yes
17259 else $as_nop
17260 xorg_cv_cc_flag_unknown_warning_option=no
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17263 fi
17264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17267 CFLAGS="$xorg_testset_save_CFLAGS"
17268 fi
17269
17270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17273 fi
17274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17278 then :
17279 printf %s "(cached) " >&6
17280 else $as_nop
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 int i;
17284 _ACEOF
17285 if ac_fn_c_try_compile "$LINENO"
17286 then :
17287 xorg_cv_cc_flag_unused_command_line_argument=yes
17288 else $as_nop
17289 xorg_cv_cc_flag_unused_command_line_argument=no
17290 fi
17291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17292 fi
17293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17296 CFLAGS="$xorg_testset_save_CFLAGS"
17297 fi
17298
17299 found="no"
17300
17301 if test $found = "no" ; then
17302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17304 fi
17305
17306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17308 fi
17309
17310 CFLAGS="$CFLAGS -Winit-self"
17311
17312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17313 printf %s "checking if $CC supports -Winit-self... " >&6; }
17314 cacheid=xorg_cv_cc_flag__Winit_self
17315 if eval test \${$cacheid+y}
17316 then :
17317 printf %s "(cached) " >&6
17318 else $as_nop
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17321 int i;
17322 int
17323 main (void)
17324 {
17325
17326 ;
17327 return 0;
17328 }
17329 _ACEOF
17330 if ac_fn_c_try_link "$LINENO"
17331 then :
17332 eval $cacheid=yes
17333 else $as_nop
17334 eval $cacheid=no
17335 fi
17336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17337 conftest$ac_exeext conftest.$ac_ext
17338 fi
17339
17340
17341 CFLAGS="$xorg_testset_save_CFLAGS"
17342
17343 eval supported=\$$cacheid
17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17345 printf "%s\n" "$supported" >&6; }
17346 if test "$supported" = "yes" ; then
17347 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17348 found="yes"
17349 fi
17350 fi
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366 xorg_testset_save_CFLAGS="$CFLAGS"
17367
17368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17372 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17373 then :
17374 printf %s "(cached) " >&6
17375 else $as_nop
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378 int i;
17379 _ACEOF
17380 if ac_fn_c_try_compile "$LINENO"
17381 then :
17382 xorg_cv_cc_flag_unknown_warning_option=yes
17383 else $as_nop
17384 xorg_cv_cc_flag_unknown_warning_option=no
17385 fi
17386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17387 fi
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17391 CFLAGS="$xorg_testset_save_CFLAGS"
17392 fi
17393
17394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17397 fi
17398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17402 then :
17403 printf %s "(cached) " >&6
17404 else $as_nop
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17407 int i;
17408 _ACEOF
17409 if ac_fn_c_try_compile "$LINENO"
17410 then :
17411 xorg_cv_cc_flag_unused_command_line_argument=yes
17412 else $as_nop
17413 xorg_cv_cc_flag_unused_command_line_argument=no
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17416 fi
17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17420 CFLAGS="$xorg_testset_save_CFLAGS"
17421 fi
17422
17423 found="no"
17424
17425 if test $found = "no" ; then
17426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17428 fi
17429
17430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17432 fi
17433
17434 CFLAGS="$CFLAGS -Wmain"
17435
17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17437 printf %s "checking if $CC supports -Wmain... " >&6; }
17438 cacheid=xorg_cv_cc_flag__Wmain
17439 if eval test \${$cacheid+y}
17440 then :
17441 printf %s "(cached) " >&6
17442 else $as_nop
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 int i;
17446 int
17447 main (void)
17448 {
17449
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 if ac_fn_c_try_link "$LINENO"
17455 then :
17456 eval $cacheid=yes
17457 else $as_nop
17458 eval $cacheid=no
17459 fi
17460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17461 conftest$ac_exeext conftest.$ac_ext
17462 fi
17463
17464
17465 CFLAGS="$xorg_testset_save_CFLAGS"
17466
17467 eval supported=\$$cacheid
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17469 printf "%s\n" "$supported" >&6; }
17470 if test "$supported" = "yes" ; then
17471 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17472 found="yes"
17473 fi
17474 fi
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490 xorg_testset_save_CFLAGS="$CFLAGS"
17491
17492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17496 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17497 then :
17498 printf %s "(cached) " >&6
17499 else $as_nop
17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17502 int i;
17503 _ACEOF
17504 if ac_fn_c_try_compile "$LINENO"
17505 then :
17506 xorg_cv_cc_flag_unknown_warning_option=yes
17507 else $as_nop
17508 xorg_cv_cc_flag_unknown_warning_option=no
17509 fi
17510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17511 fi
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17515 CFLAGS="$xorg_testset_save_CFLAGS"
17516 fi
17517
17518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17521 fi
17522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17526 then :
17527 printf %s "(cached) " >&6
17528 else $as_nop
17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531 int i;
17532 _ACEOF
17533 if ac_fn_c_try_compile "$LINENO"
17534 then :
17535 xorg_cv_cc_flag_unused_command_line_argument=yes
17536 else $as_nop
17537 xorg_cv_cc_flag_unused_command_line_argument=no
17538 fi
17539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17540 fi
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17544 CFLAGS="$xorg_testset_save_CFLAGS"
17545 fi
17546
17547 found="no"
17548
17549 if test $found = "no" ; then
17550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17552 fi
17553
17554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17556 fi
17557
17558 CFLAGS="$CFLAGS -Wmissing-braces"
17559
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17561 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17562 cacheid=xorg_cv_cc_flag__Wmissing_braces
17563 if eval test \${$cacheid+y}
17564 then :
17565 printf %s "(cached) " >&6
17566 else $as_nop
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 int i;
17570 int
17571 main (void)
17572 {
17573
17574 ;
17575 return 0;
17576 }
17577 _ACEOF
17578 if ac_fn_c_try_link "$LINENO"
17579 then :
17580 eval $cacheid=yes
17581 else $as_nop
17582 eval $cacheid=no
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17585 conftest$ac_exeext conftest.$ac_ext
17586 fi
17587
17588
17589 CFLAGS="$xorg_testset_save_CFLAGS"
17590
17591 eval supported=\$$cacheid
17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17593 printf "%s\n" "$supported" >&6; }
17594 if test "$supported" = "yes" ; then
17595 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17596 found="yes"
17597 fi
17598 fi
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614 xorg_testset_save_CFLAGS="$CFLAGS"
17615
17616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17620 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17621 then :
17622 printf %s "(cached) " >&6
17623 else $as_nop
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17626 int i;
17627 _ACEOF
17628 if ac_fn_c_try_compile "$LINENO"
17629 then :
17630 xorg_cv_cc_flag_unknown_warning_option=yes
17631 else $as_nop
17632 xorg_cv_cc_flag_unknown_warning_option=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17635 fi
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17639 CFLAGS="$xorg_testset_save_CFLAGS"
17640 fi
17641
17642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17645 fi
17646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17650 then :
17651 printf %s "(cached) " >&6
17652 else $as_nop
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17655 int i;
17656 _ACEOF
17657 if ac_fn_c_try_compile "$LINENO"
17658 then :
17659 xorg_cv_cc_flag_unused_command_line_argument=yes
17660 else $as_nop
17661 xorg_cv_cc_flag_unused_command_line_argument=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17664 fi
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17668 CFLAGS="$xorg_testset_save_CFLAGS"
17669 fi
17670
17671 found="no"
17672
17673 if test $found = "no" ; then
17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676 fi
17677
17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17680 fi
17681
17682 CFLAGS="$CFLAGS -Wsequence-point"
17683
17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17685 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17686 cacheid=xorg_cv_cc_flag__Wsequence_point
17687 if eval test \${$cacheid+y}
17688 then :
17689 printf %s "(cached) " >&6
17690 else $as_nop
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17693 int i;
17694 int
17695 main (void)
17696 {
17697
17698 ;
17699 return 0;
17700 }
17701 _ACEOF
17702 if ac_fn_c_try_link "$LINENO"
17703 then :
17704 eval $cacheid=yes
17705 else $as_nop
17706 eval $cacheid=no
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17709 conftest$ac_exeext conftest.$ac_ext
17710 fi
17711
17712
17713 CFLAGS="$xorg_testset_save_CFLAGS"
17714
17715 eval supported=\$$cacheid
17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17717 printf "%s\n" "$supported" >&6; }
17718 if test "$supported" = "yes" ; then
17719 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17720 found="yes"
17721 fi
17722 fi
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738 xorg_testset_save_CFLAGS="$CFLAGS"
17739
17740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17744 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17745 then :
17746 printf %s "(cached) " >&6
17747 else $as_nop
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750 int i;
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"
17753 then :
17754 xorg_cv_cc_flag_unknown_warning_option=yes
17755 else $as_nop
17756 xorg_cv_cc_flag_unknown_warning_option=no
17757 fi
17758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17759 fi
17760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17763 CFLAGS="$xorg_testset_save_CFLAGS"
17764 fi
17765
17766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17769 fi
17770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17774 then :
17775 printf %s "(cached) " >&6
17776 else $as_nop
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17779 int i;
17780 _ACEOF
17781 if ac_fn_c_try_compile "$LINENO"
17782 then :
17783 xorg_cv_cc_flag_unused_command_line_argument=yes
17784 else $as_nop
17785 xorg_cv_cc_flag_unused_command_line_argument=no
17786 fi
17787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17788 fi
17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17792 CFLAGS="$xorg_testset_save_CFLAGS"
17793 fi
17794
17795 found="no"
17796
17797 if test $found = "no" ; then
17798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17800 fi
17801
17802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17804 fi
17805
17806 CFLAGS="$CFLAGS -Wreturn-type"
17807
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17809 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17810 cacheid=xorg_cv_cc_flag__Wreturn_type
17811 if eval test \${$cacheid+y}
17812 then :
17813 printf %s "(cached) " >&6
17814 else $as_nop
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 int i;
17818 int
17819 main (void)
17820 {
17821
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"
17827 then :
17828 eval $cacheid=yes
17829 else $as_nop
17830 eval $cacheid=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17833 conftest$ac_exeext conftest.$ac_ext
17834 fi
17835
17836
17837 CFLAGS="$xorg_testset_save_CFLAGS"
17838
17839 eval supported=\$$cacheid
17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17841 printf "%s\n" "$supported" >&6; }
17842 if test "$supported" = "yes" ; then
17843 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17844 found="yes"
17845 fi
17846 fi
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862 xorg_testset_save_CFLAGS="$CFLAGS"
17863
17864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17868 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17869 then :
17870 printf %s "(cached) " >&6
17871 else $as_nop
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17874 int i;
17875 _ACEOF
17876 if ac_fn_c_try_compile "$LINENO"
17877 then :
17878 xorg_cv_cc_flag_unknown_warning_option=yes
17879 else $as_nop
17880 xorg_cv_cc_flag_unknown_warning_option=no
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17883 fi
17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17887 CFLAGS="$xorg_testset_save_CFLAGS"
17888 fi
17889
17890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17893 fi
17894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17898 then :
17899 printf %s "(cached) " >&6
17900 else $as_nop
17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h. */
17903 int i;
17904 _ACEOF
17905 if ac_fn_c_try_compile "$LINENO"
17906 then :
17907 xorg_cv_cc_flag_unused_command_line_argument=yes
17908 else $as_nop
17909 xorg_cv_cc_flag_unused_command_line_argument=no
17910 fi
17911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17912 fi
17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17914 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17916 CFLAGS="$xorg_testset_save_CFLAGS"
17917 fi
17918
17919 found="no"
17920
17921 if test $found = "no" ; then
17922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17924 fi
17925
17926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17928 fi
17929
17930 CFLAGS="$CFLAGS -Wtrigraphs"
17931
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17933 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17934 cacheid=xorg_cv_cc_flag__Wtrigraphs
17935 if eval test \${$cacheid+y}
17936 then :
17937 printf %s "(cached) " >&6
17938 else $as_nop
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17941 int i;
17942 int
17943 main (void)
17944 {
17945
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"
17951 then :
17952 eval $cacheid=yes
17953 else $as_nop
17954 eval $cacheid=no
17955 fi
17956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17957 conftest$ac_exeext conftest.$ac_ext
17958 fi
17959
17960
17961 CFLAGS="$xorg_testset_save_CFLAGS"
17962
17963 eval supported=\$$cacheid
17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17965 printf "%s\n" "$supported" >&6; }
17966 if test "$supported" = "yes" ; then
17967 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17968 found="yes"
17969 fi
17970 fi
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986 xorg_testset_save_CFLAGS="$CFLAGS"
17987
17988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17992 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17993 then :
17994 printf %s "(cached) " >&6
17995 else $as_nop
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17998 int i;
17999 _ACEOF
18000 if ac_fn_c_try_compile "$LINENO"
18001 then :
18002 xorg_cv_cc_flag_unknown_warning_option=yes
18003 else $as_nop
18004 xorg_cv_cc_flag_unknown_warning_option=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18007 fi
18008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18009 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18011 CFLAGS="$xorg_testset_save_CFLAGS"
18012 fi
18013
18014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18017 fi
18018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18020 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18021 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18022 then :
18023 printf %s "(cached) " >&6
18024 else $as_nop
18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18027 int i;
18028 _ACEOF
18029 if ac_fn_c_try_compile "$LINENO"
18030 then :
18031 xorg_cv_cc_flag_unused_command_line_argument=yes
18032 else $as_nop
18033 xorg_cv_cc_flag_unused_command_line_argument=no
18034 fi
18035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18038 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18040 CFLAGS="$xorg_testset_save_CFLAGS"
18041 fi
18042
18043 found="no"
18044
18045 if test $found = "no" ; then
18046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18048 fi
18049
18050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18052 fi
18053
18054 CFLAGS="$CFLAGS -Warray-bounds"
18055
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18057 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18058 cacheid=xorg_cv_cc_flag__Warray_bounds
18059 if eval test \${$cacheid+y}
18060 then :
18061 printf %s "(cached) " >&6
18062 else $as_nop
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 int i;
18066 int
18067 main (void)
18068 {
18069
18070 ;
18071 return 0;
18072 }
18073 _ACEOF
18074 if ac_fn_c_try_link "$LINENO"
18075 then :
18076 eval $cacheid=yes
18077 else $as_nop
18078 eval $cacheid=no
18079 fi
18080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18081 conftest$ac_exeext conftest.$ac_ext
18082 fi
18083
18084
18085 CFLAGS="$xorg_testset_save_CFLAGS"
18086
18087 eval supported=\$$cacheid
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18089 printf "%s\n" "$supported" >&6; }
18090 if test "$supported" = "yes" ; then
18091 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18092 found="yes"
18093 fi
18094 fi
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110 xorg_testset_save_CFLAGS="$CFLAGS"
18111
18112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18116 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18117 then :
18118 printf %s "(cached) " >&6
18119 else $as_nop
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122 int i;
18123 _ACEOF
18124 if ac_fn_c_try_compile "$LINENO"
18125 then :
18126 xorg_cv_cc_flag_unknown_warning_option=yes
18127 else $as_nop
18128 xorg_cv_cc_flag_unknown_warning_option=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18131 fi
18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18135 CFLAGS="$xorg_testset_save_CFLAGS"
18136 fi
18137
18138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18141 fi
18142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18146 then :
18147 printf %s "(cached) " >&6
18148 else $as_nop
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 int i;
18152 _ACEOF
18153 if ac_fn_c_try_compile "$LINENO"
18154 then :
18155 xorg_cv_cc_flag_unused_command_line_argument=yes
18156 else $as_nop
18157 xorg_cv_cc_flag_unused_command_line_argument=no
18158 fi
18159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18160 fi
18161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18164 CFLAGS="$xorg_testset_save_CFLAGS"
18165 fi
18166
18167 found="no"
18168
18169 if test $found = "no" ; then
18170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18172 fi
18173
18174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18176 fi
18177
18178 CFLAGS="$CFLAGS -Wwrite-strings"
18179
18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18181 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18182 cacheid=xorg_cv_cc_flag__Wwrite_strings
18183 if eval test \${$cacheid+y}
18184 then :
18185 printf %s "(cached) " >&6
18186 else $as_nop
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18189 int i;
18190 int
18191 main (void)
18192 {
18193
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 if ac_fn_c_try_link "$LINENO"
18199 then :
18200 eval $cacheid=yes
18201 else $as_nop
18202 eval $cacheid=no
18203 fi
18204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18205 conftest$ac_exeext conftest.$ac_ext
18206 fi
18207
18208
18209 CFLAGS="$xorg_testset_save_CFLAGS"
18210
18211 eval supported=\$$cacheid
18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18213 printf "%s\n" "$supported" >&6; }
18214 if test "$supported" = "yes" ; then
18215 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18216 found="yes"
18217 fi
18218 fi
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234 xorg_testset_save_CFLAGS="$CFLAGS"
18235
18236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18240 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18241 then :
18242 printf %s "(cached) " >&6
18243 else $as_nop
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18246 int i;
18247 _ACEOF
18248 if ac_fn_c_try_compile "$LINENO"
18249 then :
18250 xorg_cv_cc_flag_unknown_warning_option=yes
18251 else $as_nop
18252 xorg_cv_cc_flag_unknown_warning_option=no
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18255 fi
18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18259 CFLAGS="$xorg_testset_save_CFLAGS"
18260 fi
18261
18262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18265 fi
18266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18270 then :
18271 printf %s "(cached) " >&6
18272 else $as_nop
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 int i;
18276 _ACEOF
18277 if ac_fn_c_try_compile "$LINENO"
18278 then :
18279 xorg_cv_cc_flag_unused_command_line_argument=yes
18280 else $as_nop
18281 xorg_cv_cc_flag_unused_command_line_argument=no
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18284 fi
18285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18286 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18288 CFLAGS="$xorg_testset_save_CFLAGS"
18289 fi
18290
18291 found="no"
18292
18293 if test $found = "no" ; then
18294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18296 fi
18297
18298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18300 fi
18301
18302 CFLAGS="$CFLAGS -Waddress"
18303
18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18305 printf %s "checking if $CC supports -Waddress... " >&6; }
18306 cacheid=xorg_cv_cc_flag__Waddress
18307 if eval test \${$cacheid+y}
18308 then :
18309 printf %s "(cached) " >&6
18310 else $as_nop
18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 int i;
18314 int
18315 main (void)
18316 {
18317
18318 ;
18319 return 0;
18320 }
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"
18323 then :
18324 eval $cacheid=yes
18325 else $as_nop
18326 eval $cacheid=no
18327 fi
18328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18329 conftest$ac_exeext conftest.$ac_ext
18330 fi
18331
18332
18333 CFLAGS="$xorg_testset_save_CFLAGS"
18334
18335 eval supported=\$$cacheid
18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18337 printf "%s\n" "$supported" >&6; }
18338 if test "$supported" = "yes" ; then
18339 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18340 found="yes"
18341 fi
18342 fi
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358 xorg_testset_save_CFLAGS="$CFLAGS"
18359
18360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18364 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18365 then :
18366 printf %s "(cached) " >&6
18367 else $as_nop
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 int i;
18371 _ACEOF
18372 if ac_fn_c_try_compile "$LINENO"
18373 then :
18374 xorg_cv_cc_flag_unknown_warning_option=yes
18375 else $as_nop
18376 xorg_cv_cc_flag_unknown_warning_option=no
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18379 fi
18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18383 CFLAGS="$xorg_testset_save_CFLAGS"
18384 fi
18385
18386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389 fi
18390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18394 then :
18395 printf %s "(cached) " >&6
18396 else $as_nop
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 int i;
18400 _ACEOF
18401 if ac_fn_c_try_compile "$LINENO"
18402 then :
18403 xorg_cv_cc_flag_unused_command_line_argument=yes
18404 else $as_nop
18405 xorg_cv_cc_flag_unused_command_line_argument=no
18406 fi
18407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18408 fi
18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18410 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18412 CFLAGS="$xorg_testset_save_CFLAGS"
18413 fi
18414
18415 found="no"
18416
18417 if test $found = "no" ; then
18418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18420 fi
18421
18422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18424 fi
18425
18426 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18427
18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18429 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18430 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18431 if eval test \${$cacheid+y}
18432 then :
18433 printf %s "(cached) " >&6
18434 else $as_nop
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 int i;
18438 int
18439 main (void)
18440 {
18441
18442 ;
18443 return 0;
18444 }
18445 _ACEOF
18446 if ac_fn_c_try_link "$LINENO"
18447 then :
18448 eval $cacheid=yes
18449 else $as_nop
18450 eval $cacheid=no
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18453 conftest$ac_exeext conftest.$ac_ext
18454 fi
18455
18456
18457 CFLAGS="$xorg_testset_save_CFLAGS"
18458
18459 eval supported=\$$cacheid
18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18461 printf "%s\n" "$supported" >&6; }
18462 if test "$supported" = "yes" ; then
18463 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18464 found="yes"
18465 fi
18466 fi
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482 xorg_testset_save_CFLAGS="$CFLAGS"
18483
18484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18488 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18489 then :
18490 printf %s "(cached) " >&6
18491 else $as_nop
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 int i;
18495 _ACEOF
18496 if ac_fn_c_try_compile "$LINENO"
18497 then :
18498 xorg_cv_cc_flag_unknown_warning_option=yes
18499 else $as_nop
18500 xorg_cv_cc_flag_unknown_warning_option=no
18501 fi
18502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18503 fi
18504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18505 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18507 CFLAGS="$xorg_testset_save_CFLAGS"
18508 fi
18509
18510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18513 fi
18514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18516 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18517 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18518 then :
18519 printf %s "(cached) " >&6
18520 else $as_nop
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18523 int i;
18524 _ACEOF
18525 if ac_fn_c_try_compile "$LINENO"
18526 then :
18527 xorg_cv_cc_flag_unused_command_line_argument=yes
18528 else $as_nop
18529 xorg_cv_cc_flag_unused_command_line_argument=no
18530 fi
18531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18532 fi
18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18534 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18536 CFLAGS="$xorg_testset_save_CFLAGS"
18537 fi
18538
18539 found="no"
18540
18541 if test $found = "no" ; then
18542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18544 fi
18545
18546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18548 fi
18549
18550 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18551
18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18553 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18554 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18555 if eval test \${$cacheid+y}
18556 then :
18557 printf %s "(cached) " >&6
18558 else $as_nop
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18561 int i;
18562 int
18563 main (void)
18564 {
18565
18566 ;
18567 return 0;
18568 }
18569 _ACEOF
18570 if ac_fn_c_try_link "$LINENO"
18571 then :
18572 eval $cacheid=yes
18573 else $as_nop
18574 eval $cacheid=no
18575 fi
18576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18577 conftest$ac_exeext conftest.$ac_ext
18578 fi
18579
18580
18581 CFLAGS="$xorg_testset_save_CFLAGS"
18582
18583 eval supported=\$$cacheid
18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18585 printf "%s\n" "$supported" >&6; }
18586 if test "$supported" = "yes" ; then
18587 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18588 found="yes"
18589 fi
18590 fi
18591
18592
18593 fi
18594
18595
18596
18597
18598
18599
18600
18601 CWARNFLAGS="$BASE_CFLAGS"
18602 if test "x$GCC" = xyes ; then
18603 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18604 fi
18605
18606
18607
18608
18609
18610
18611
18612
18613 # Check whether --enable-strict-compilation was given.
18614 if test ${enable_strict_compilation+y}
18615 then :
18616 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18617 else $as_nop
18618 STRICT_COMPILE=no
18619 fi
18620
18621
18622
18623
18624
18625
18626 STRICT_CFLAGS=""
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640 xorg_testset_save_CFLAGS="$CFLAGS"
18641
18642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18645 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18646 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18647 then :
18648 printf %s "(cached) " >&6
18649 else $as_nop
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18652 int i;
18653 _ACEOF
18654 if ac_fn_c_try_compile "$LINENO"
18655 then :
18656 xorg_cv_cc_flag_unknown_warning_option=yes
18657 else $as_nop
18658 xorg_cv_cc_flag_unknown_warning_option=no
18659 fi
18660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18661 fi
18662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18663 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18665 CFLAGS="$xorg_testset_save_CFLAGS"
18666 fi
18667
18668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18671 fi
18672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18676 then :
18677 printf %s "(cached) " >&6
18678 else $as_nop
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 int i;
18682 _ACEOF
18683 if ac_fn_c_try_compile "$LINENO"
18684 then :
18685 xorg_cv_cc_flag_unused_command_line_argument=yes
18686 else $as_nop
18687 xorg_cv_cc_flag_unused_command_line_argument=no
18688 fi
18689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18690 fi
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18692 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18694 CFLAGS="$xorg_testset_save_CFLAGS"
18695 fi
18696
18697 found="no"
18698
18699 if test $found = "no" ; then
18700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18702 fi
18703
18704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18706 fi
18707
18708 CFLAGS="$CFLAGS -pedantic"
18709
18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18711 printf %s "checking if $CC supports -pedantic... " >&6; }
18712 cacheid=xorg_cv_cc_flag__pedantic
18713 if eval test \${$cacheid+y}
18714 then :
18715 printf %s "(cached) " >&6
18716 else $as_nop
18717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18718 /* end confdefs.h. */
18719 int i;
18720 int
18721 main (void)
18722 {
18723
18724 ;
18725 return 0;
18726 }
18727 _ACEOF
18728 if ac_fn_c_try_link "$LINENO"
18729 then :
18730 eval $cacheid=yes
18731 else $as_nop
18732 eval $cacheid=no
18733 fi
18734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18735 conftest$ac_exeext conftest.$ac_ext
18736 fi
18737
18738
18739 CFLAGS="$xorg_testset_save_CFLAGS"
18740
18741 eval supported=\$$cacheid
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18743 printf "%s\n" "$supported" >&6; }
18744 if test "$supported" = "yes" ; then
18745 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18746 found="yes"
18747 fi
18748 fi
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764 xorg_testset_save_CFLAGS="$CFLAGS"
18765
18766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18769 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18770 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18771 then :
18772 printf %s "(cached) " >&6
18773 else $as_nop
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776 int i;
18777 _ACEOF
18778 if ac_fn_c_try_compile "$LINENO"
18779 then :
18780 xorg_cv_cc_flag_unknown_warning_option=yes
18781 else $as_nop
18782 xorg_cv_cc_flag_unknown_warning_option=no
18783 fi
18784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18785 fi
18786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18787 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18789 CFLAGS="$xorg_testset_save_CFLAGS"
18790 fi
18791
18792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18795 fi
18796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18798 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18799 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18800 then :
18801 printf %s "(cached) " >&6
18802 else $as_nop
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805 int i;
18806 _ACEOF
18807 if ac_fn_c_try_compile "$LINENO"
18808 then :
18809 xorg_cv_cc_flag_unused_command_line_argument=yes
18810 else $as_nop
18811 xorg_cv_cc_flag_unused_command_line_argument=no
18812 fi
18813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18814 fi
18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18816 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18818 CFLAGS="$xorg_testset_save_CFLAGS"
18819 fi
18820
18821 found="no"
18822
18823 if test $found = "no" ; then
18824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18826 fi
18827
18828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18830 fi
18831
18832 CFLAGS="$CFLAGS -Werror"
18833
18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18835 printf %s "checking if $CC supports -Werror... " >&6; }
18836 cacheid=xorg_cv_cc_flag__Werror
18837 if eval test \${$cacheid+y}
18838 then :
18839 printf %s "(cached) " >&6
18840 else $as_nop
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18843 int i;
18844 int
18845 main (void)
18846 {
18847
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 if ac_fn_c_try_link "$LINENO"
18853 then :
18854 eval $cacheid=yes
18855 else $as_nop
18856 eval $cacheid=no
18857 fi
18858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18859 conftest$ac_exeext conftest.$ac_ext
18860 fi
18861
18862
18863 CFLAGS="$xorg_testset_save_CFLAGS"
18864
18865 eval supported=\$$cacheid
18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18867 printf "%s\n" "$supported" >&6; }
18868 if test "$supported" = "yes" ; then
18869 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18870 found="yes"
18871 fi
18872 fi
18873
18874 if test $found = "no" ; then
18875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18877 fi
18878
18879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18881 fi
18882
18883 CFLAGS="$CFLAGS -errwarn"
18884
18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18886 printf %s "checking if $CC supports -errwarn... " >&6; }
18887 cacheid=xorg_cv_cc_flag__errwarn
18888 if eval test \${$cacheid+y}
18889 then :
18890 printf %s "(cached) " >&6
18891 else $as_nop
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18894 int i;
18895 int
18896 main (void)
18897 {
18898
18899 ;
18900 return 0;
18901 }
18902 _ACEOF
18903 if ac_fn_c_try_link "$LINENO"
18904 then :
18905 eval $cacheid=yes
18906 else $as_nop
18907 eval $cacheid=no
18908 fi
18909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18910 conftest$ac_exeext conftest.$ac_ext
18911 fi
18912
18913
18914 CFLAGS="$xorg_testset_save_CFLAGS"
18915
18916 eval supported=\$$cacheid
18917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18918 printf "%s\n" "$supported" >&6; }
18919 if test "$supported" = "yes" ; then
18920 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18921 found="yes"
18922 fi
18923 fi
18924
18925
18926
18927 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18928 # activate it with -Werror, so we add it here explicitly.
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942 xorg_testset_save_CFLAGS="$CFLAGS"
18943
18944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18948 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18949 then :
18950 printf %s "(cached) " >&6
18951 else $as_nop
18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953 /* end confdefs.h. */
18954 int i;
18955 _ACEOF
18956 if ac_fn_c_try_compile "$LINENO"
18957 then :
18958 xorg_cv_cc_flag_unknown_warning_option=yes
18959 else $as_nop
18960 xorg_cv_cc_flag_unknown_warning_option=no
18961 fi
18962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18963 fi
18964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18965 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18967 CFLAGS="$xorg_testset_save_CFLAGS"
18968 fi
18969
18970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18973 fi
18974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18976 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18977 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18978 then :
18979 printf %s "(cached) " >&6
18980 else $as_nop
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18983 int i;
18984 _ACEOF
18985 if ac_fn_c_try_compile "$LINENO"
18986 then :
18987 xorg_cv_cc_flag_unused_command_line_argument=yes
18988 else $as_nop
18989 xorg_cv_cc_flag_unused_command_line_argument=no
18990 fi
18991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18992 fi
18993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18994 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18996 CFLAGS="$xorg_testset_save_CFLAGS"
18997 fi
18998
18999 found="no"
19000
19001 if test $found = "no" ; then
19002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19004 fi
19005
19006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19008 fi
19009
19010 CFLAGS="$CFLAGS -Werror=attributes"
19011
19012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19013 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19014 cacheid=xorg_cv_cc_flag__Werror_attributes
19015 if eval test \${$cacheid+y}
19016 then :
19017 printf %s "(cached) " >&6
19018 else $as_nop
19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h. */
19021 int i;
19022 int
19023 main (void)
19024 {
19025
19026 ;
19027 return 0;
19028 }
19029 _ACEOF
19030 if ac_fn_c_try_link "$LINENO"
19031 then :
19032 eval $cacheid=yes
19033 else $as_nop
19034 eval $cacheid=no
19035 fi
19036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19037 conftest$ac_exeext conftest.$ac_ext
19038 fi
19039
19040
19041 CFLAGS="$xorg_testset_save_CFLAGS"
19042
19043 eval supported=\$$cacheid
19044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19045 printf "%s\n" "$supported" >&6; }
19046 if test "$supported" = "yes" ; then
19047 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19048 found="yes"
19049 fi
19050 fi
19051
19052
19053
19054 if test "x$STRICT_COMPILE" = "xyes"; then
19055 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19056 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19057 fi
19058
19059
19060
19061
19062
19063
19064
19065
19066 cat >>confdefs.h <<_ACEOF
19067 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19068 _ACEOF
19069
19070 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19071 if test "x$PVM" = "x"; then
19072 PVM="0"
19073 fi
19074
19075 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19076
19077 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19078 if test "x$PVP" = "x"; then
19079 PVP="0"
19080 fi
19081
19082 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19083
19084
19085
19086 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19087 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19088 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19089 touch \$(top_srcdir)/ChangeLog; \
19090 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19091
19092
19093
19094
19095 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19096 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19097 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19098 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19099 touch \$(top_srcdir)/INSTALL; \
19100 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19101
19102
19103
19104
19105
19106
19107 case $host_os in
19108 solaris*)
19109 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19110 # check for a man page file found in later versions that use
19111 # traditional section numbers instead
19112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19113 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19114 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19115 then :
19116 printf %s "(cached) " >&6
19117 else $as_nop
19118 test "$cross_compiling" = yes &&
19119 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19120 if test -r "/usr/share/man/man7/attributes.7"; then
19121 ac_cv_file__usr_share_man_man7_attributes_7=yes
19122 else
19123 ac_cv_file__usr_share_man_man7_attributes_7=no
19124 fi
19125 fi
19126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19127 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19128 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19129 then :
19130 SYSV_MAN_SECTIONS=false
19131 else $as_nop
19132 SYSV_MAN_SECTIONS=true
19133 fi
19134
19135 ;;
19136 *) SYSV_MAN_SECTIONS=false ;;
19137 esac
19138
19139 if test x$APP_MAN_SUFFIX = x ; then
19140 APP_MAN_SUFFIX=1
19141 fi
19142 if test x$APP_MAN_DIR = x ; then
19143 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19144 fi
19145
19146 if test x$LIB_MAN_SUFFIX = x ; then
19147 LIB_MAN_SUFFIX=3
19148 fi
19149 if test x$LIB_MAN_DIR = x ; then
19150 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19151 fi
19152
19153 if test x$FILE_MAN_SUFFIX = x ; then
19154 case $SYSV_MAN_SECTIONS in
19155 true) FILE_MAN_SUFFIX=4 ;;
19156 *) FILE_MAN_SUFFIX=5 ;;
19157 esac
19158 fi
19159 if test x$FILE_MAN_DIR = x ; then
19160 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19161 fi
19162
19163 if test x$MISC_MAN_SUFFIX = x ; then
19164 case $SYSV_MAN_SECTIONS in
19165 true) MISC_MAN_SUFFIX=5 ;;
19166 *) MISC_MAN_SUFFIX=7 ;;
19167 esac
19168 fi
19169 if test x$MISC_MAN_DIR = x ; then
19170 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19171 fi
19172
19173 if test x$DRIVER_MAN_SUFFIX = x ; then
19174 case $SYSV_MAN_SECTIONS in
19175 true) DRIVER_MAN_SUFFIX=7 ;;
19176 *) DRIVER_MAN_SUFFIX=4 ;;
19177 esac
19178 fi
19179 if test x$DRIVER_MAN_DIR = x ; then
19180 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19181 fi
19182
19183 if test x$ADMIN_MAN_SUFFIX = x ; then
19184 case $SYSV_MAN_SECTIONS in
19185 true) ADMIN_MAN_SUFFIX=1m ;;
19186 *) ADMIN_MAN_SUFFIX=8 ;;
19187 esac
19188 fi
19189 if test x$ADMIN_MAN_DIR = x ; then
19190 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19191 fi
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207 XORG_MAN_PAGE="X Version 11"
19208
19209 MAN_SUBSTS="\
19210 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19211 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19212 -e 's|__xservername__|Xorg|g' \
19213 -e 's|__xconfigfile__|xorg.conf|g' \
19214 -e 's|__projectroot__|\$(prefix)|g' \
19215 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19216 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19217 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19218 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19219 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19220 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19221 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19222
19223
19224
19225 # Check whether --enable-silent-rules was given.
19226 if test ${enable_silent_rules+y}
19227 then :
19228 enableval=$enable_silent_rules;
19229 fi
19230
19231 case $enable_silent_rules in # (((
19232 yes) AM_DEFAULT_VERBOSITY=0;;
19233 no) AM_DEFAULT_VERBOSITY=1;;
19234 *) AM_DEFAULT_VERBOSITY=0;;
19235 esac
19236 am_make=${MAKE-make}
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19238 printf %s "checking whether $am_make supports nested variables... " >&6; }
19239 if test ${am_cv_make_support_nested_variables+y}
19240 then :
19241 printf %s "(cached) " >&6
19242 else $as_nop
19243 if printf "%s\n" 'TRUE=$(BAR$(V))
19244 BAR0=false
19245 BAR1=true
19246 V=1
19247 am__doit:
19248 @$(TRUE)
19249 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19250 am_cv_make_support_nested_variables=yes
19251 else
19252 am_cv_make_support_nested_variables=no
19253 fi
19254 fi
19255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19256 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19257 if test $am_cv_make_support_nested_variables = yes; then
19258 AM_V='$(V)'
19259 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19260 else
19261 AM_V=$AM_DEFAULT_VERBOSITY
19262 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19263 fi
19264 AM_BACKSLASH='\'
19265
19266
19267
19268
19269 # Checks for programs.
19270 # Check whether --enable-static was given.
19271 if test ${enable_static+y}
19272 then :
19273 enableval=$enable_static; p=${PACKAGE-default}
19274 case $enableval in
19275 yes) enable_static=yes ;;
19276 no) enable_static=no ;;
19277 *)
19278 enable_static=no
19279 # Look at the argument we got. We use all the common list separators.
19280 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
19281 for pkg in $enableval; do
19282 IFS=$lt_save_ifs
19283 if test "X$pkg" = "X$p"; then
19284 enable_static=yes
19285 fi
19286 done
19287 IFS=$lt_save_ifs
19288 ;;
19289 esac
19290 else $as_nop
19291 enable_static=no
19292 fi
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303 # -----------------------------------------------------------------------------
19304 # Configuration options
19305 # -----------------------------------------------------------------------------
19306 # Define a configure option for an alternate input module directory
19307
19308 # Check whether --with-xorg-module-dir was given.
19309 if test ${with_xorg_module_dir+y}
19310 then :
19311 withval=$with_xorg_module_dir; moduledir="$withval"
19312 else $as_nop
19313 moduledir="$libdir/xorg/modules"
19314 fi
19315
19316
19317
19318 # Define a configure option to enable/disable lcd panel support
19319 # Check whether --enable-geodegx-panel was given.
19320 if test ${enable_geodegx_panel+y}
19321 then :
19322 enableval=$enable_geodegx_panel;
19323 else $as_nop
19324 PANEL_CPPFLAGS=-DPNL_SUP
19325 fi
19326
19327
19328
19329 # Define a configure option to enable/disable ztv
19330 # Check whether --enable-ztv was given.
19331 if test ${enable_ztv+y}
19332 then :
19333 enableval=$enable_ztv; ztv=$enableval
19334 else $as_nop
19335 ztv=auto
19336 fi
19337
19338
19339 # Check for Video4Linux Version 2 (V4L2) availability
19340 for ac_header in linux/videodev2.h
19341 do :
19342 ac_fn_c_check_header_compile "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default"
19343 if test "x$ac_cv_header_linux_videodev2_h" = xyes
19344 then :
19345 printf "%s\n" "#define HAVE_LINUX_VIDEODEV2_H 1" >>confdefs.h
19346 v4l2=yes
19347 else $as_nop
19348 v4l2=no
19349 fi
19350
19351 done
19352 if test "x$ztv" != "xno" ; then
19353 if test "x$v4l2" = "xno" ; then
19354 if test "x$ztv" = "xyes" ; then
19355 # User really wants ztv but V4L2 is not found
19356 as_fn_error $? "ZTV driver requested, but videodev2.h not found." "$LINENO" 5
19357 fi
19358 else
19359 BUILD_ZTV=yes
19360 fi
19361 fi
19362 if test "x$BUILD_ZTV" = xyes; then
19363 BUILD_ZTV_TRUE=
19364 BUILD_ZTV_FALSE='#'
19365 else
19366 BUILD_ZTV_TRUE='#'
19367 BUILD_ZTV_FALSE=
19368 fi
19369
19370
19371 # Check if GCC supports compiling in 32 bit mode for 64 bit computers
19372 case $host_cpu in
19373 x86_64*|amd64*)
19374 if test "x$GCC" = xyes ; then
19375 SAVE_CFLAGS="$CFLAGS"
19376 CFLAGS="$CFLAGS -m32"
19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports the -m32 Intel/AMD option" >&5
19378 printf %s "checking if $CC supports the -m32 Intel/AMD option... " >&6; }
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19381
19382 #include <unistd.h>
19383 int
19384 main ()
19385 {
19386 ;
19387 return 0;
19388 }
19389 _ACEOF
19390 if ac_fn_c_try_compile "$LINENO"
19391 then :
19392 m32_support=yes; M32_CFLAGS=-m32
19393 else $as_nop
19394 m32_support=no
19395 fi
19396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $m32_support" >&5
19398 printf "%s\n" "$m32_support" >&6; }
19399 CFLAGS="$SAVE_CFLAGS"
19400 fi
19401 ;;
19402 esac
19403
19404
19405 # Store the list of server defined optional extensions in REQUIRED_MODULES
19406
19407
19408 SAVE_CFLAGS="$CFLAGS"
19409 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411 /* end confdefs.h. */
19412
19413 #include "xorg-server.h"
19414 #if !defined RANDR
19415 #error RANDR not defined
19416 #endif
19417
19418 int
19419 main (void)
19420 {
19421
19422 ;
19423 return 0;
19424 }
19425 _ACEOF
19426 if ac_fn_c_try_compile "$LINENO"
19427 then :
19428 _EXT_CHECK=yes
19429 else $as_nop
19430 _EXT_CHECK=no
19431 fi
19432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19433 CFLAGS="$SAVE_CFLAGS"
19434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19435 printf %s "checking if RANDR is defined... " >&6; }
19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19437 printf "%s\n" "$_EXT_CHECK" >&6; }
19438 if test "$_EXT_CHECK" != no; then
19439 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19440 fi
19441
19442
19443
19444 SAVE_CFLAGS="$CFLAGS"
19445 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19448
19449 #include "xorg-server.h"
19450 #if !defined RENDER
19451 #error RENDER not defined
19452 #endif
19453
19454 int
19455 main (void)
19456 {
19457
19458 ;
19459 return 0;
19460 }
19461 _ACEOF
19462 if ac_fn_c_try_compile "$LINENO"
19463 then :
19464 _EXT_CHECK=yes
19465 else $as_nop
19466 _EXT_CHECK=no
19467 fi
19468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19469 CFLAGS="$SAVE_CFLAGS"
19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19471 printf %s "checking if RENDER is defined... " >&6; }
19472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19473 printf "%s\n" "$_EXT_CHECK" >&6; }
19474 if test "$_EXT_CHECK" != no; then
19475 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19476 fi
19477
19478
19479
19480 SAVE_CFLAGS="$CFLAGS"
19481 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19483 /* end confdefs.h. */
19484
19485 #include "xorg-server.h"
19486 #if !defined XV
19487 #error XV not defined
19488 #endif
19489
19490 int
19491 main (void)
19492 {
19493
19494 ;
19495 return 0;
19496 }
19497 _ACEOF
19498 if ac_fn_c_try_compile "$LINENO"
19499 then :
19500 _EXT_CHECK=yes
19501 else $as_nop
19502 _EXT_CHECK=no
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19505 CFLAGS="$SAVE_CFLAGS"
19506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19507 printf %s "checking if XV is defined... " >&6; }
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19509 printf "%s\n" "$_EXT_CHECK" >&6; }
19510 if test "$_EXT_CHECK" != no; then
19511 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19512 fi
19513
19514
19515
19516 SAVE_CFLAGS="$CFLAGS"
19517 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h. */
19520
19521 #include "xorg-server.h"
19522 #if !defined DPMSExtension
19523 #error DPMSExtension not defined
19524 #endif
19525
19526 int
19527 main (void)
19528 {
19529
19530 ;
19531 return 0;
19532 }
19533 _ACEOF
19534 if ac_fn_c_try_compile "$LINENO"
19535 then :
19536 _EXT_CHECK=yes
19537 else $as_nop
19538 _EXT_CHECK=no
19539 fi
19540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19541 CFLAGS="$SAVE_CFLAGS"
19542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19543 printf %s "checking if DPMSExtension is defined... " >&6; }
19544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19545 printf "%s\n" "$_EXT_CHECK" >&6; }
19546 if test "$_EXT_CHECK" != no; then
19547 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19548 fi
19549
19550
19551 # Obtain compiler/linker options for the Geode driver dependencies
19552
19553 pkg_failed=no
19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19555 printf %s "checking for XORG... " >&6; }
19556
19557 if test -n "$XORG_CFLAGS"; then
19558 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19559 elif test -n "$PKG_CONFIG"; then
19560 if test -n "$PKG_CONFIG" && \
19561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19562 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
19563 ac_status=$?
19564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19565 test $ac_status = 0; }; then
19566 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19567 test "x$?" != "x0" && pkg_failed=yes
19568 else
19569 pkg_failed=yes
19570 fi
19571 else
19572 pkg_failed=untried
19573 fi
19574 if test -n "$XORG_LIBS"; then
19575 pkg_cv_XORG_LIBS="$XORG_LIBS"
19576 elif test -n "$PKG_CONFIG"; then
19577 if test -n "$PKG_CONFIG" && \
19578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19579 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
19580 ac_status=$?
19581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19582 test $ac_status = 0; }; then
19583 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19584 test "x$?" != "x0" && pkg_failed=yes
19585 else
19586 pkg_failed=yes
19587 fi
19588 else
19589 pkg_failed=untried
19590 fi
19591
19592
19593
19594 if test $pkg_failed = yes; then
19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19596 printf "%s\n" "no" >&6; }
19597
19598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19599 _pkg_short_errors_supported=yes
19600 else
19601 _pkg_short_errors_supported=no
19602 fi
19603 if test $_pkg_short_errors_supported = yes; then
19604 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
19605 else
19606 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
19607 fi
19608 # Put the nasty error message in config.log where it belongs
19609 echo "$XORG_PKG_ERRORS" >&5
19610
19611 as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
19612
19613 $XORG_PKG_ERRORS
19614
19615 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19616 installed software in a non-standard prefix.
19617
19618 Alternatively, you may set the environment variables XORG_CFLAGS
19619 and XORG_LIBS to avoid the need to call pkg-config.
19620 See the pkg-config man page for more details." "$LINENO" 5
19621 elif test $pkg_failed = untried; then
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19623 printf "%s\n" "no" >&6; }
19624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19625 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19626 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19627 is in your PATH or set the PKG_CONFIG environment variable to the full
19628 path to pkg-config.
19629
19630 Alternatively, you may set the environment variables XORG_CFLAGS
19631 and XORG_LIBS to avoid the need to call pkg-config.
19632 See the pkg-config man page for more details.
19633
19634 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19635 See \`config.log' for more details" "$LINENO" 5; }
19636 else
19637 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19638 XORG_LIBS=$pkg_cv_XORG_LIBS
19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19640 printf "%s\n" "yes" >&6; }
19641
19642 fi
19643
19644 pkg_failed=no
19645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19646 printf %s "checking for XEXT... " >&6; }
19647
19648 if test -n "$XEXT_CFLAGS"; then
19649 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19650 elif test -n "$PKG_CONFIG"; then
19651 if test -n "$PKG_CONFIG" && \
19652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19653 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19654 ac_status=$?
19655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19656 test $ac_status = 0; }; then
19657 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19658 test "x$?" != "x0" && pkg_failed=yes
19659 else
19660 pkg_failed=yes
19661 fi
19662 else
19663 pkg_failed=untried
19664 fi
19665 if test -n "$XEXT_LIBS"; then
19666 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19667 elif test -n "$PKG_CONFIG"; then
19668 if test -n "$PKG_CONFIG" && \
19669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19670 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19671 ac_status=$?
19672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }; then
19674 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19675 test "x$?" != "x0" && pkg_failed=yes
19676 else
19677 pkg_failed=yes
19678 fi
19679 else
19680 pkg_failed=untried
19681 fi
19682
19683
19684
19685 if test $pkg_failed = yes; then
19686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19687 printf "%s\n" "no" >&6; }
19688
19689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19690 _pkg_short_errors_supported=yes
19691 else
19692 _pkg_short_errors_supported=no
19693 fi
19694 if test $_pkg_short_errors_supported = yes; then
19695 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19696 else
19697 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19698 fi
19699 # Put the nasty error message in config.log where it belongs
19700 echo "$XEXT_PKG_ERRORS" >&5
19701
19702 HAVE_XEXTPROTO_71="no"
19703 elif test $pkg_failed = untried; then
19704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19705 printf "%s\n" "no" >&6; }
19706 HAVE_XEXTPROTO_71="no"
19707 else
19708 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19709 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19711 printf "%s\n" "yes" >&6; }
19712 HAVE_XEXTPROTO_71="yes";
19713 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19714
19715 fi
19716
19717 # Define a configure option to enable/disable XAA support;
19718 # handles unavailability of XAA since xserver-1.13
19719 # Check whether --enable-xaa was given.
19720 if test ${enable_xaa+y}
19721 then :
19722 enableval=$enable_xaa;
19723 fi
19724
19725
19726 if test "x$enable_xaa" != "xno"
19727 then :
19728
19729 save_CFLAGS=$CFLAGS
19730 save_CPPFLAGS=$CPPFLAGS
19731 CFLAGS=$XORG_CFLAGS
19732 CPPFLAGS="$XORG_CFLAGS"
19733 for ac_header in xaa.h
19734 do :
19735 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19736 if test "x$ac_cv_header_xaa_h" = xyes
19737 then :
19738 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19739 have_XAA=yes
19740 else $as_nop
19741 have_XAA=no
19742 fi
19743
19744 done
19745 CFLAGS=$save_CFLAGS
19746 CPPFLAGS=$save_CPPFLAGS
19747
19748 fi
19749
19750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19751 printf %s "checking whether to include XAA support... " >&6; }
19752
19753 if test "x$have_XAA" = "xyes"
19754 then :
19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19756 printf "%s\n" "yes" >&6; }
19757 else $as_nop
19758 if test "x$enable_xaa" = "xyes"
19759 then :
19760 as_fn_error $? "XAA requested but not found (perhaps building against xserver-1.13 or newer?)" "$LINENO" 5
19761 else $as_nop
19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19763 printf "%s\n" "no" >&6; }
19764
19765 fi
19766
19767 fi
19768
19769 # Checks for libpciaccess support.
19770 SAVE_CPPFLAGS="$CPPFLAGS"
19771 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19772 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19773 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19774 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19775 then :
19776 XSERVER_LIBPCIACCESS=yes
19777 else $as_nop
19778 XSERVER_LIBPCIACCESS=no
19779 fi
19780 CPPFLAGS="$SAVE_CPPFLAGS"
19781
19782 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19783
19784 pkg_failed=no
19785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19786 printf %s "checking for PCIACCESS... " >&6; }
19787
19788 if test -n "$PCIACCESS_CFLAGS"; then
19789 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19790 elif test -n "$PKG_CONFIG"; then
19791 if test -n "$PKG_CONFIG" && \
19792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19793 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19794 ac_status=$?
19795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19796 test $ac_status = 0; }; then
19797 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19798 test "x$?" != "x0" && pkg_failed=yes
19799 else
19800 pkg_failed=yes
19801 fi
19802 else
19803 pkg_failed=untried
19804 fi
19805 if test -n "$PCIACCESS_LIBS"; then
19806 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19807 elif test -n "$PKG_CONFIG"; then
19808 if test -n "$PKG_CONFIG" && \
19809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19810 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19811 ac_status=$?
19812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19813 test $ac_status = 0; }; then
19814 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19815 test "x$?" != "x0" && pkg_failed=yes
19816 else
19817 pkg_failed=yes
19818 fi
19819 else
19820 pkg_failed=untried
19821 fi
19822
19823
19824
19825 if test $pkg_failed = yes; then
19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 printf "%s\n" "no" >&6; }
19828
19829 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19830 _pkg_short_errors_supported=yes
19831 else
19832 _pkg_short_errors_supported=no
19833 fi
19834 if test $_pkg_short_errors_supported = yes; then
19835 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19836 else
19837 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19838 fi
19839 # Put the nasty error message in config.log where it belongs
19840 echo "$PCIACCESS_PKG_ERRORS" >&5
19841
19842 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19843
19844 $PCIACCESS_PKG_ERRORS
19845
19846 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19847 installed software in a non-standard prefix.
19848
19849 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19850 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19851 See the pkg-config man page for more details." "$LINENO" 5
19852 elif test $pkg_failed = untried; then
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19854 printf "%s\n" "no" >&6; }
19855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19857 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19858 is in your PATH or set the PKG_CONFIG environment variable to the full
19859 path to pkg-config.
19860
19861 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19862 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19863 See the pkg-config man page for more details.
19864
19865 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19866 See \`config.log' for more details" "$LINENO" 5; }
19867 else
19868 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19869 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19871 printf "%s\n" "yes" >&6; }
19872
19873 fi
19874 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19875 fi
19876
19877 ac_config_files="$ac_config_files Makefile src/Makefile"
19878
19879 cat >confcache <<\_ACEOF
19880 # This file is a shell script that caches the results of configure
19881 # tests run on this system so they can be shared between configure
19882 # scripts and configure runs, see configure's option --config-cache.
19883 # It is not useful on other systems. If it contains results you don't
19884 # want to keep, you may remove or edit it.
19885 #
19886 # config.status only pays attention to the cache file if you give it
19887 # the --recheck option to rerun configure.
19888 #
19889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19891 # following values.
19892
19893 _ACEOF
19894
19895 # The following way of writing the cache mishandles newlines in values,
19896 # but we know of no workaround that is simple, portable, and efficient.
19897 # So, we kill variables containing newlines.
19898 # Ultrix sh set writes to stderr and can't be redirected directly,
19899 # and sets the high bit in the cache file unless we assign to the vars.
19900 (
19901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19902 eval ac_val=\$$ac_var
19903 case $ac_val in #(
19904 *${as_nl}*)
19905 case $ac_var in #(
19906 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19907 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19908 esac
19909 case $ac_var in #(
19910 _ | IFS | as_nl) ;; #(
19911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19912 *) { eval $ac_var=; unset $ac_var;} ;;
19913 esac ;;
19914 esac
19915 done
19916
19917 (set) 2>&1 |
19918 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19919 *${as_nl}ac_space=\ *)
19920 # `set' does not quote correctly, so add quotes: double-quote
19921 # substitution turns \\\\ into \\, and sed turns \\ into \.
19922 sed -n \
19923 "s/'/'\\\\''/g;
19924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19925 ;; #(
19926 *)
19927 # `set' quotes correctly as required by POSIX, so do not add quotes.
19928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19929 ;;
19930 esac |
19931 sort
19932 ) |
19933 sed '
19934 /^ac_cv_env_/b end
19935 t clear
19936 :clear
19937 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19938 t end
19939 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19940 :end' >>confcache
19941 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19942 if test -w "$cache_file"; then
19943 if test "x$cache_file" != "x/dev/null"; then
19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19945 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19946 if test ! -f "$cache_file" || test -h "$cache_file"; then
19947 cat confcache >"$cache_file"
19948 else
19949 case $cache_file in #(
19950 */* | ?:*)
19951 mv -f confcache "$cache_file"$$ &&
19952 mv -f "$cache_file"$$ "$cache_file" ;; #(
19953 *)
19954 mv -f confcache "$cache_file" ;;
19955 esac
19956 fi
19957 fi
19958 else
19959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19960 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19961 fi
19962 fi
19963 rm -f confcache
19964
19965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19966 # Let make expand exec_prefix.
19967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19968
19969 DEFS=-DHAVE_CONFIG_H
19970
19971 ac_libobjs=
19972 ac_ltlibobjs=
19973 U=
19974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19975 # 1. Remove the extension, and $U if already installed.
19976 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19977 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19978 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19979 # will be set to the directory where LIBOBJS objects are built.
19980 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19981 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19982 done
19983 LIBOBJS=$ac_libobjs
19984
19985 LTLIBOBJS=$ac_ltlibobjs
19986
19987
19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19989 printf %s "checking that generated files are newer than configure... " >&6; }
19990 if test -n "$am_sleep_pid"; then
19991 # Hide warnings about reused PIDs.
19992 wait $am_sleep_pid 2>/dev/null
19993 fi
19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19995 printf "%s\n" "done" >&6; }
19996 if test -n "$EXEEXT"; then
19997 am__EXEEXT_TRUE=
19998 am__EXEEXT_FALSE='#'
19999 else
20000 am__EXEEXT_TRUE='#'
20001 am__EXEEXT_FALSE=
20002 fi
20003
20004 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20005 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20007 fi
20008 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20009 as_fn_error $? "conditional \"AMDEP\" was never defined.
20010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20011 fi
20012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20013 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20015 fi
20016 if test -z "${BUILD_ZTV_TRUE}" && test -z "${BUILD_ZTV_FALSE}"; then
20017 as_fn_error $? "conditional \"BUILD_ZTV\" was never defined.
20018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20019 fi
20020
20021 : "${CONFIG_STATUS=./config.status}"
20022 ac_write_fail=0
20023 ac_clean_files_save=$ac_clean_files
20024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20026 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20027 as_write_fail=0
20028 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20029 #! $SHELL
20030 # Generated by $as_me.
20031 # Run this file to recreate the current configuration.
20032 # Compiler output produced by configure, useful for debugging
20033 # configure, is in config.log if it exists.
20034
20035 debug=false
20036 ac_cs_recheck=false
20037 ac_cs_silent=false
20038
20039 SHELL=\${CONFIG_SHELL-$SHELL}
20040 export SHELL
20041 _ASEOF
20042 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20043 ## -------------------- ##
20044 ## M4sh Initialization. ##
20045 ## -------------------- ##
20046
20047 # Be more Bourne compatible
20048 DUALCASE=1; export DUALCASE # for MKS sh
20049 as_nop=:
20050 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20051 then :
20052 emulate sh
20053 NULLCMD=:
20054 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20055 # is contrary to our usage. Disable this feature.
20056 alias -g '${1+"$@"}'='"$@"'
20057 setopt NO_GLOB_SUBST
20058 else $as_nop
20059 case `(set -o) 2>/dev/null` in #(
20060 *posix*) :
20061 set -o posix ;; #(
20062 *) :
20063 ;;
20064 esac
20065 fi
20066
20067
20068
20069 # Reset variables that may have inherited troublesome values from
20070 # the environment.
20071
20072 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20073 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20074 # side effect of setting IFS to empty, thus disabling word splitting.)
20075 # Quoting is to prevent editors from complaining about space-tab.
20076 as_nl='
20077 '
20078 export as_nl
20079 IFS=" "" $as_nl"
20080
20081 PS1='$ '
20082 PS2='> '
20083 PS4='+ '
20084
20085 # Ensure predictable behavior from utilities with locale-dependent output.
20086 LC_ALL=C
20087 export LC_ALL
20088 LANGUAGE=C
20089 export LANGUAGE
20090
20091 # We cannot yet rely on "unset" to work, but we need these variables
20092 # to be unset--not just set to an empty or harmless value--now, to
20093 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20094 # also avoids known problems related to "unset" and subshell syntax
20095 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20096 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20097 do eval test \${$as_var+y} \
20098 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20099 done
20100
20101 # Ensure that fds 0, 1, and 2 are open.
20102 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20103 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20104 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20105
20106 # The user is always right.
20107 if ${PATH_SEPARATOR+false} :; then
20108 PATH_SEPARATOR=:
20109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20111 PATH_SEPARATOR=';'
20112 }
20113 fi
20114
20115
20116 # Find who we are. Look in the path if we contain no directory separator.
20117 as_myself=
20118 case $0 in #((
20119 *[\\/]* ) as_myself=$0 ;;
20120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20121 for as_dir in $PATH
20122 do
20123 IFS=$as_save_IFS
20124 case $as_dir in #(((
20125 '') as_dir=./ ;;
20126 */) ;;
20127 *) as_dir=$as_dir/ ;;
20128 esac
20129 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20130 done
20131 IFS=$as_save_IFS
20132
20133 ;;
20134 esac
20135 # We did not find ourselves, most probably we were run as `sh COMMAND'
20136 # in which case we are not to be found in the path.
20137 if test "x$as_myself" = x; then
20138 as_myself=$0
20139 fi
20140 if test ! -f "$as_myself"; then
20141 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20142 exit 1
20143 fi
20144
20145
20146
20147 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20148 # ----------------------------------------
20149 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20150 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20151 # script with STATUS, using 1 if that was 0.
20152 as_fn_error ()
20153 {
20154 as_status=$1; test $as_status -eq 0 && as_status=1
20155 if test "$4"; then
20156 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20158 fi
20159 printf "%s\n" "$as_me: error: $2" >&2
20160 as_fn_exit $as_status
20161 } # as_fn_error
20162
20163
20164
20165 # as_fn_set_status STATUS
20166 # -----------------------
20167 # Set $? to STATUS, without forking.
20168 as_fn_set_status ()
20169 {
20170 return $1
20171 } # as_fn_set_status
20172
20173 # as_fn_exit STATUS
20174 # -----------------
20175 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20176 as_fn_exit ()
20177 {
20178 set +e
20179 as_fn_set_status $1
20180 exit $1
20181 } # as_fn_exit
20182
20183 # as_fn_unset VAR
20184 # ---------------
20185 # Portably unset VAR.
20186 as_fn_unset ()
20187 {
20188 { eval $1=; unset $1;}
20189 }
20190 as_unset=as_fn_unset
20191
20192 # as_fn_append VAR VALUE
20193 # ----------------------
20194 # Append the text in VALUE to the end of the definition contained in VAR. Take
20195 # advantage of any shell optimizations that allow amortized linear growth over
20196 # repeated appends, instead of the typical quadratic growth present in naive
20197 # implementations.
20198 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20199 then :
20200 eval 'as_fn_append ()
20201 {
20202 eval $1+=\$2
20203 }'
20204 else $as_nop
20205 as_fn_append ()
20206 {
20207 eval $1=\$$1\$2
20208 }
20209 fi # as_fn_append
20210
20211 # as_fn_arith ARG...
20212 # ------------------
20213 # Perform arithmetic evaluation on the ARGs, and store the result in the
20214 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20215 # must be portable across $(()) and expr.
20216 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20217 then :
20218 eval 'as_fn_arith ()
20219 {
20220 as_val=$(( $* ))
20221 }'
20222 else $as_nop
20223 as_fn_arith ()
20224 {
20225 as_val=`expr "$@" || test $? -eq 1`
20226 }
20227 fi # as_fn_arith
20228
20229
20230 if expr a : '\(a\)' >/dev/null 2>&1 &&
20231 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20232 as_expr=expr
20233 else
20234 as_expr=false
20235 fi
20236
20237 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20238 as_basename=basename
20239 else
20240 as_basename=false
20241 fi
20242
20243 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20244 as_dirname=dirname
20245 else
20246 as_dirname=false
20247 fi
20248
20249 as_me=`$as_basename -- "$0" ||
20250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20251 X"$0" : 'X\(//\)$' \| \
20252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20253 printf "%s\n" X/"$0" |
20254 sed '/^.*\/\([^/][^/]*\)\/*$/{
20255 s//\1/
20256 q
20257 }
20258 /^X\/\(\/\/\)$/{
20259 s//\1/
20260 q
20261 }
20262 /^X\/\(\/\).*/{
20263 s//\1/
20264 q
20265 }
20266 s/.*/./; q'`
20267
20268 # Avoid depending upon Character Ranges.
20269 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20270 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20271 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20272 as_cr_digits='0123456789'
20273 as_cr_alnum=$as_cr_Letters$as_cr_digits
20274
20275
20276 # Determine whether it's possible to make 'echo' print without a newline.
20277 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20278 # for compatibility with existing Makefiles.
20279 ECHO_C= ECHO_N= ECHO_T=
20280 case `echo -n x` in #(((((
20281 -n*)
20282 case `echo 'xy\c'` in
20283 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20284 xy) ECHO_C='\c';;
20285 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20286 ECHO_T=' ';;
20287 esac;;
20288 *)
20289 ECHO_N='-n';;
20290 esac
20291
20292 # For backward compatibility with old third-party macros, we provide
20293 # the shell variables $as_echo and $as_echo_n. New code should use
20294 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20295 as_echo='printf %s\n'
20296 as_echo_n='printf %s'
20297
20298 rm -f conf$$ conf$$.exe conf$$.file
20299 if test -d conf$$.dir; then
20300 rm -f conf$$.dir/conf$$.file
20301 else
20302 rm -f conf$$.dir
20303 mkdir conf$$.dir 2>/dev/null
20304 fi
20305 if (echo >conf$$.file) 2>/dev/null; then
20306 if ln -s conf$$.file conf$$ 2>/dev/null; then
20307 as_ln_s='ln -s'
20308 # ... but there are two gotchas:
20309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20311 # In both cases, we have to default to `cp -pR'.
20312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20313 as_ln_s='cp -pR'
20314 elif ln conf$$.file conf$$ 2>/dev/null; then
20315 as_ln_s=ln
20316 else
20317 as_ln_s='cp -pR'
20318 fi
20319 else
20320 as_ln_s='cp -pR'
20321 fi
20322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20323 rmdir conf$$.dir 2>/dev/null
20324
20325
20326 # as_fn_mkdir_p
20327 # -------------
20328 # Create "$as_dir" as a directory, including parents if necessary.
20329 as_fn_mkdir_p ()
20330 {
20331
20332 case $as_dir in #(
20333 -*) as_dir=./$as_dir;;
20334 esac
20335 test -d "$as_dir" || eval $as_mkdir_p || {
20336 as_dirs=
20337 while :; do
20338 case $as_dir in #(
20339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20340 *) as_qdir=$as_dir;;
20341 esac
20342 as_dirs="'$as_qdir' $as_dirs"
20343 as_dir=`$as_dirname -- "$as_dir" ||
20344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20345 X"$as_dir" : 'X\(//\)[^/]' \| \
20346 X"$as_dir" : 'X\(//\)$' \| \
20347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20348 printf "%s\n" X"$as_dir" |
20349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20350 s//\1/
20351 q
20352 }
20353 /^X\(\/\/\)[^/].*/{
20354 s//\1/
20355 q
20356 }
20357 /^X\(\/\/\)$/{
20358 s//\1/
20359 q
20360 }
20361 /^X\(\/\).*/{
20362 s//\1/
20363 q
20364 }
20365 s/.*/./; q'`
20366 test -d "$as_dir" && break
20367 done
20368 test -z "$as_dirs" || eval "mkdir $as_dirs"
20369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20370
20371
20372 } # as_fn_mkdir_p
20373 if mkdir -p . 2>/dev/null; then
20374 as_mkdir_p='mkdir -p "$as_dir"'
20375 else
20376 test -d ./-p && rmdir ./-p
20377 as_mkdir_p=false
20378 fi
20379
20380
20381 # as_fn_executable_p FILE
20382 # -----------------------
20383 # Test if FILE is an executable regular file.
20384 as_fn_executable_p ()
20385 {
20386 test -f "$1" && test -x "$1"
20387 } # as_fn_executable_p
20388 as_test_x='test -x'
20389 as_executable_p=as_fn_executable_p
20390
20391 # Sed expression to map a string onto a valid CPP name.
20392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20393
20394 # Sed expression to map a string onto a valid variable name.
20395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20396
20397
20398 exec 6>&1
20399 ## ----------------------------------- ##
20400 ## Main body of $CONFIG_STATUS script. ##
20401 ## ----------------------------------- ##
20402 _ASEOF
20403 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20404
20405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20406 # Save the log message, to keep $0 and so on meaningful, and to
20407 # report actual input values of CONFIG_FILES etc. instead of their
20408 # values after options handling.
20409 ac_log="
20410 This file was extended by xf86-video-geode $as_me 2.11.21, which was
20411 generated by GNU Autoconf 2.71. Invocation command line was
20412
20413 CONFIG_FILES = $CONFIG_FILES
20414 CONFIG_HEADERS = $CONFIG_HEADERS
20415 CONFIG_LINKS = $CONFIG_LINKS
20416 CONFIG_COMMANDS = $CONFIG_COMMANDS
20417 $ $0 $@
20418
20419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20420 "
20421
20422 _ACEOF
20423
20424 case $ac_config_files in *"
20425 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20426 esac
20427
20428 case $ac_config_headers in *"
20429 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20430 esac
20431
20432
20433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20434 # Files that config.status was made for.
20435 config_files="$ac_config_files"
20436 config_headers="$ac_config_headers"
20437 config_commands="$ac_config_commands"
20438
20439 _ACEOF
20440
20441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20442 ac_cs_usage="\
20443 \`$as_me' instantiates files and other configuration actions
20444 from templates according to the current configuration. Unless the files
20445 and actions are specified as TAGs, all are instantiated by default.
20446
20447 Usage: $0 [OPTION]... [TAG]...
20448
20449 -h, --help print this help, then exit
20450 -V, --version print version number and configuration settings, then exit
20451 --config print configuration, then exit
20452 -q, --quiet, --silent
20453 do not print progress messages
20454 -d, --debug don't remove temporary files
20455 --recheck update $as_me by reconfiguring in the same conditions
20456 --file=FILE[:TEMPLATE]
20457 instantiate the configuration file FILE
20458 --header=FILE[:TEMPLATE]
20459 instantiate the configuration header FILE
20460
20461 Configuration files:
20462 $config_files
20463
20464 Configuration headers:
20465 $config_headers
20466
20467 Configuration commands:
20468 $config_commands
20469
20470 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/issues>.
20471 xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>."
20472
20473 _ACEOF
20474 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20475 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20477 ac_cs_config='$ac_cs_config_escaped'
20478 ac_cs_version="\\
20479 xf86-video-geode config.status 2.11.21
20480 configured by $0, generated by GNU Autoconf 2.71,
20481 with options \\"\$ac_cs_config\\"
20482
20483 Copyright (C) 2021 Free Software Foundation, Inc.
20484 This config.status script is free software; the Free Software Foundation
20485 gives unlimited permission to copy, distribute and modify it."
20486
20487 ac_pwd='$ac_pwd'
20488 srcdir='$srcdir'
20489 INSTALL='$INSTALL'
20490 MKDIR_P='$MKDIR_P'
20491 AWK='$AWK'
20492 test -n "\$AWK" || AWK=awk
20493 _ACEOF
20494
20495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20496 # The default lists apply if the user does not specify any file.
20497 ac_need_defaults=:
20498 while test $# != 0
20499 do
20500 case $1 in
20501 --*=?*)
20502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20503 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20504 ac_shift=:
20505 ;;
20506 --*=)
20507 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20508 ac_optarg=
20509 ac_shift=:
20510 ;;
20511 *)
20512 ac_option=$1
20513 ac_optarg=$2
20514 ac_shift=shift
20515 ;;
20516 esac
20517
20518 case $ac_option in
20519 # Handling of the options.
20520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20521 ac_cs_recheck=: ;;
20522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20523 printf "%s\n" "$ac_cs_version"; exit ;;
20524 --config | --confi | --conf | --con | --co | --c )
20525 printf "%s\n" "$ac_cs_config"; exit ;;
20526 --debug | --debu | --deb | --de | --d | -d )
20527 debug=: ;;
20528 --file | --fil | --fi | --f )
20529 $ac_shift
20530 case $ac_optarg in
20531 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20532 '') as_fn_error $? "missing file argument" ;;
20533 esac
20534 as_fn_append CONFIG_FILES " '$ac_optarg'"
20535 ac_need_defaults=false;;
20536 --header | --heade | --head | --hea )
20537 $ac_shift
20538 case $ac_optarg in
20539 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20540 esac
20541 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20542 ac_need_defaults=false;;
20543 --he | --h)
20544 # Conflict between --help and --header
20545 as_fn_error $? "ambiguous option: \`$1'
20546 Try \`$0 --help' for more information.";;
20547 --help | --hel | -h )
20548 printf "%s\n" "$ac_cs_usage"; exit ;;
20549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20551 ac_cs_silent=: ;;
20552
20553 # This is an error.
20554 -*) as_fn_error $? "unrecognized option: \`$1'
20555 Try \`$0 --help' for more information." ;;
20556
20557 *) as_fn_append ac_config_targets " $1"
20558 ac_need_defaults=false ;;
20559
20560 esac
20561 shift
20562 done
20563
20564 ac_configure_extra_args=
20565
20566 if $ac_cs_silent; then
20567 exec 6>/dev/null
20568 ac_configure_extra_args="$ac_configure_extra_args --silent"
20569 fi
20570
20571 _ACEOF
20572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20573 if \$ac_cs_recheck; then
20574 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20575 shift
20576 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20577 CONFIG_SHELL='$SHELL'
20578 export CONFIG_SHELL
20579 exec "\$@"
20580 fi
20581
20582 _ACEOF
20583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20584 exec 5>>config.log
20585 {
20586 echo
20587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20588 ## Running $as_me. ##
20589 _ASBOX
20590 printf "%s\n" "$ac_log"
20591 } >&5
20592
20593 _ACEOF
20594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20595 #
20596 # INIT-COMMANDS
20597 #
20598 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20599
20600
20601 # The HP-UX ksh and POSIX shell print the target directory to stdout
20602 # if CDPATH is set.
20603 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20604
20605 sed_quote_subst='$sed_quote_subst'
20606 double_quote_subst='$double_quote_subst'
20607 delay_variable_subst='$delay_variable_subst'
20608 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20609 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20610 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20611 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20612 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20613 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20614 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20615 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20616 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20617 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20618 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20619 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20620 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20621 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20622 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20623 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20624 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20625 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20626 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20627 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20628 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20629 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20630 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20631 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20632 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20633 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20634 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20635 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20636 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20637 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20638 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20639 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20640 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20641 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20642 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20643 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20644 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20645 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20646 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20647 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20648 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20649 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20650 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20651 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20652 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20653 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20654 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20655 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20656 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20657 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20658 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20659 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20660 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20661 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20662 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20663 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20664 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20665 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20666 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20667 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20668 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"`'
20669 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20670 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20671 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20672 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20673 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20674 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20675 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20676 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20677 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20678 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20679 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20680 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20681 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20682 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20683 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20684 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20685 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20686 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20687 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20688 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20689 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20690 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20691 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20692 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20693 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20694 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20695 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20696 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20697 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20698 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20699 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20700 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20701 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20702 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20703 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20704 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20705 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20706 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20707 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20708 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20709 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20710 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20711 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20712 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20713 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20714 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20715 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20716 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20717 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20718 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20719 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20720 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20721 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20722 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20723 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20724 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20725 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20726 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20727 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20728 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20729 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20730 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20731 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20732 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20733 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20734 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20735 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20736 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20737 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20738 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20739 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20740 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20741 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20742 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20743 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20744 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20745
20746 LTCC='$LTCC'
20747 LTCFLAGS='$LTCFLAGS'
20748 compiler='$compiler_DEFAULT'
20749
20750 # A function that is used when there is no print builtin or printf.
20751 func_fallback_echo ()
20752 {
20753 eval 'cat <<_LTECHO_EOF
20754 \$1
20755 _LTECHO_EOF'
20756 }
20757
20758 # Quote evaled strings.
20759 for var in SHELL \
20760 ECHO \
20761 PATH_SEPARATOR \
20762 SED \
20763 GREP \
20764 EGREP \
20765 FGREP \
20766 LD \
20767 NM \
20768 LN_S \
20769 lt_SP2NL \
20770 lt_NL2SP \
20771 reload_flag \
20772 FILECMD \
20773 OBJDUMP \
20774 deplibs_check_method \
20775 file_magic_cmd \
20776 file_magic_glob \
20777 want_nocaseglob \
20778 DLLTOOL \
20779 sharedlib_from_linklib_cmd \
20780 AR \
20781 archiver_list_spec \
20782 STRIP \
20783 RANLIB \
20784 CC \
20785 CFLAGS \
20786 compiler \
20787 lt_cv_sys_global_symbol_pipe \
20788 lt_cv_sys_global_symbol_to_cdecl \
20789 lt_cv_sys_global_symbol_to_import \
20790 lt_cv_sys_global_symbol_to_c_name_address \
20791 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20792 lt_cv_nm_interface \
20793 nm_file_list_spec \
20794 lt_cv_truncate_bin \
20795 lt_prog_compiler_no_builtin_flag \
20796 lt_prog_compiler_pic \
20797 lt_prog_compiler_wl \
20798 lt_prog_compiler_static \
20799 lt_cv_prog_compiler_c_o \
20800 need_locks \
20801 MANIFEST_TOOL \
20802 DSYMUTIL \
20803 NMEDIT \
20804 LIPO \
20805 OTOOL \
20806 OTOOL64 \
20807 shrext_cmds \
20808 export_dynamic_flag_spec \
20809 whole_archive_flag_spec \
20810 compiler_needs_object \
20811 with_gnu_ld \
20812 allow_undefined_flag \
20813 no_undefined_flag \
20814 hardcode_libdir_flag_spec \
20815 hardcode_libdir_separator \
20816 exclude_expsyms \
20817 include_expsyms \
20818 file_list_spec \
20819 variables_saved_for_relink \
20820 libname_spec \
20821 library_names_spec \
20822 soname_spec \
20823 install_override_mode \
20824 finish_eval \
20825 old_striplib \
20826 striplib; do
20827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20828 *[\\\\\\\`\\"\\\$]*)
20829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20830 ;;
20831 *)
20832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20833 ;;
20834 esac
20835 done
20836
20837 # Double-quote double-evaled strings.
20838 for var in reload_cmds \
20839 old_postinstall_cmds \
20840 old_postuninstall_cmds \
20841 old_archive_cmds \
20842 extract_expsyms_cmds \
20843 old_archive_from_new_cmds \
20844 old_archive_from_expsyms_cmds \
20845 archive_cmds \
20846 archive_expsym_cmds \
20847 module_cmds \
20848 module_expsym_cmds \
20849 export_symbols_cmds \
20850 prelink_cmds \
20851 postlink_cmds \
20852 postinstall_cmds \
20853 postuninstall_cmds \
20854 finish_cmds \
20855 sys_lib_search_path_spec \
20856 configure_time_dlsearch_path \
20857 configure_time_lt_sys_library_path; do
20858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20859 *[\\\\\\\`\\"\\\$]*)
20860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20861 ;;
20862 *)
20863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20864 ;;
20865 esac
20866 done
20867
20868 ac_aux_dir='$ac_aux_dir'
20869
20870 # See if we are running on zsh, and set the options that allow our
20871 # commands through without removal of \ escapes INIT.
20872 if test -n "\${ZSH_VERSION+set}"; then
20873 setopt NO_GLOB_SUBST
20874 fi
20875
20876
20877 PACKAGE='$PACKAGE'
20878 VERSION='$VERSION'
20879 RM='$RM'
20880 ofile='$ofile'
20881
20882
20883
20884
20885 _ACEOF
20886
20887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20888
20889 # Handling of arguments.
20890 for ac_config_target in $ac_config_targets
20891 do
20892 case $ac_config_target in
20893 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20894 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20895 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20896 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20897 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20898
20899 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20900 esac
20901 done
20902
20903
20904 # If the user did not use the arguments to specify the items to instantiate,
20905 # then the envvar interface is used. Set only those that are not.
20906 # We use the long form for the default assignment because of an extremely
20907 # bizarre bug on SunOS 4.1.3.
20908 if $ac_need_defaults; then
20909 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20910 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20911 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20912 fi
20913
20914 # Have a temporary directory for convenience. Make it in the build tree
20915 # simply because there is no reason against having it here, and in addition,
20916 # creating and moving files from /tmp can sometimes cause problems.
20917 # Hook for its removal unless debugging.
20918 # Note that there is a small window in which the directory will not be cleaned:
20919 # after its creation but before its name has been assigned to `$tmp'.
20920 $debug ||
20921 {
20922 tmp= ac_tmp=
20923 trap 'exit_status=$?
20924 : "${ac_tmp:=$tmp}"
20925 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20926 ' 0
20927 trap 'as_fn_exit 1' 1 2 13 15
20928 }
20929 # Create a (secure) tmp directory for tmp files.
20930
20931 {
20932 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20933 test -d "$tmp"
20934 } ||
20935 {
20936 tmp=./conf$$-$RANDOM
20937 (umask 077 && mkdir "$tmp")
20938 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20939 ac_tmp=$tmp
20940
20941 # Set up the scripts for CONFIG_FILES section.
20942 # No need to generate them if there are no CONFIG_FILES.
20943 # This happens for instance with `./config.status config.h'.
20944 if test -n "$CONFIG_FILES"; then
20945
20946
20947 ac_cr=`echo X | tr X '\015'`
20948 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20949 # But we know of no other shell where ac_cr would be empty at this
20950 # point, so we can use a bashism as a fallback.
20951 if test "x$ac_cr" = x; then
20952 eval ac_cr=\$\'\\r\'
20953 fi
20954 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20955 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20956 ac_cs_awk_cr='\\r'
20957 else
20958 ac_cs_awk_cr=$ac_cr
20959 fi
20960
20961 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20962 _ACEOF
20963
20964
20965 {
20966 echo "cat >conf$$subs.awk <<_ACEOF" &&
20967 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20968 echo "_ACEOF"
20969 } >conf$$subs.sh ||
20970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20971 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20972 ac_delim='%!_!# '
20973 for ac_last_try in false false false false false :; do
20974 . ./conf$$subs.sh ||
20975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20976
20977 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20978 if test $ac_delim_n = $ac_delim_num; then
20979 break
20980 elif $ac_last_try; then
20981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20982 else
20983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20984 fi
20985 done
20986 rm -f conf$$subs.sh
20987
20988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20989 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20990 _ACEOF
20991 sed -n '
20992 h
20993 s/^/S["/; s/!.*/"]=/
20994 p
20995 g
20996 s/^[^!]*!//
20997 :repl
20998 t repl
20999 s/'"$ac_delim"'$//
21000 t delim
21001 :nl
21002 h
21003 s/\(.\{148\}\)..*/\1/
21004 t more1
21005 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21006 p
21007 n
21008 b repl
21009 :more1
21010 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21011 p
21012 g
21013 s/.\{148\}//
21014 t nl
21015 :delim
21016 h
21017 s/\(.\{148\}\)..*/\1/
21018 t more2
21019 s/["\\]/\\&/g; s/^/"/; s/$/"/
21020 p
21021 b
21022 :more2
21023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21024 p
21025 g
21026 s/.\{148\}//
21027 t delim
21028 ' <conf$$subs.awk | sed '
21029 /^[^""]/{
21030 N
21031 s/\n//
21032 }
21033 ' >>$CONFIG_STATUS || ac_write_fail=1
21034 rm -f conf$$subs.awk
21035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21036 _ACAWK
21037 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21038 for (key in S) S_is_set[key] = 1
21039 FS = ""
21040
21041 }
21042 {
21043 line = $ 0
21044 nfields = split(line, field, "@")
21045 substed = 0
21046 len = length(field[1])
21047 for (i = 2; i < nfields; i++) {
21048 key = field[i]
21049 keylen = length(key)
21050 if (S_is_set[key]) {
21051 value = S[key]
21052 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21053 len += length(value) + length(field[++i])
21054 substed = 1
21055 } else
21056 len += 1 + keylen
21057 }
21058
21059 print line
21060 }
21061
21062 _ACAWK
21063 _ACEOF
21064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21065 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21067 else
21068 cat
21069 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21070 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21071 _ACEOF
21072
21073 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21074 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21075 # trailing colons and then remove the whole line if VPATH becomes empty
21076 # (actually we leave an empty line to preserve line numbers).
21077 if test "x$srcdir" = x.; then
21078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21079 h
21080 s///
21081 s/^/:/
21082 s/[ ]*$/:/
21083 s/:\$(srcdir):/:/g
21084 s/:\${srcdir}:/:/g
21085 s/:@srcdir@:/:/g
21086 s/^:*//
21087 s/:*$//
21088 x
21089 s/\(=[ ]*\).*/\1/
21090 G
21091 s/\n//
21092 s/^[^=]*=[ ]*$//
21093 }'
21094 fi
21095
21096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21097 fi # test -n "$CONFIG_FILES"
21098
21099 # Set up the scripts for CONFIG_HEADERS section.
21100 # No need to generate them if there are no CONFIG_HEADERS.
21101 # This happens for instance with `./config.status Makefile'.
21102 if test -n "$CONFIG_HEADERS"; then
21103 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21104 BEGIN {
21105 _ACEOF
21106
21107 # Transform confdefs.h into an awk script `defines.awk', embedded as
21108 # here-document in config.status, that substitutes the proper values into
21109 # config.h.in to produce config.h.
21110
21111 # Create a delimiter string that does not exist in confdefs.h, to ease
21112 # handling of long lines.
21113 ac_delim='%!_!# '
21114 for ac_last_try in false false :; do
21115 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21116 if test -z "$ac_tt"; then
21117 break
21118 elif $ac_last_try; then
21119 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21120 else
21121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21122 fi
21123 done
21124
21125 # For the awk script, D is an array of macro values keyed by name,
21126 # likewise P contains macro parameters if any. Preserve backslash
21127 # newline sequences.
21128
21129 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21130 sed -n '
21131 s/.\{148\}/&'"$ac_delim"'/g
21132 t rset
21133 :rset
21134 s/^[ ]*#[ ]*define[ ][ ]*/ /
21135 t def
21136 d
21137 :def
21138 s/\\$//
21139 t bsnl
21140 s/["\\]/\\&/g
21141 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21142 D["\1"]=" \3"/p
21143 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21144 d
21145 :bsnl
21146 s/["\\]/\\&/g
21147 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21148 D["\1"]=" \3\\\\\\n"\\/p
21149 t cont
21150 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21151 t cont
21152 d
21153 :cont
21154 n
21155 s/.\{148\}/&'"$ac_delim"'/g
21156 t clear
21157 :clear
21158 s/\\$//
21159 t bsnlc
21160 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21161 d
21162 :bsnlc
21163 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21164 b cont
21165 ' <confdefs.h | sed '
21166 s/'"$ac_delim"'/"\\\
21167 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21168
21169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21170 for (key in D) D_is_set[key] = 1
21171 FS = ""
21172 }
21173 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21174 line = \$ 0
21175 split(line, arg, " ")
21176 if (arg[1] == "#") {
21177 defundef = arg[2]
21178 mac1 = arg[3]
21179 } else {
21180 defundef = substr(arg[1], 2)
21181 mac1 = arg[2]
21182 }
21183 split(mac1, mac2, "(") #)
21184 macro = mac2[1]
21185 prefix = substr(line, 1, index(line, defundef) - 1)
21186 if (D_is_set[macro]) {
21187 # Preserve the white space surrounding the "#".
21188 print prefix "define", macro P[macro] D[macro]
21189 next
21190 } else {
21191 # Replace #undef with comments. This is necessary, for example,
21192 # in the case of _POSIX_SOURCE, which is predefined and required
21193 # on some systems where configure will not decide to define it.
21194 if (defundef == "undef") {
21195 print "/*", prefix defundef, macro, "*/"
21196 next
21197 }
21198 }
21199 }
21200 { print }
21201 _ACAWK
21202 _ACEOF
21203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21204 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21205 fi # test -n "$CONFIG_HEADERS"
21206
21207
21208 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21209 shift
21210 for ac_tag
21211 do
21212 case $ac_tag in
21213 :[FHLC]) ac_mode=$ac_tag; continue;;
21214 esac
21215 case $ac_mode$ac_tag in
21216 :[FHL]*:*);;
21217 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21218 :[FH]-) ac_tag=-:-;;
21219 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21220 esac
21221 ac_save_IFS=$IFS
21222 IFS=:
21223 set x $ac_tag
21224 IFS=$ac_save_IFS
21225 shift
21226 ac_file=$1
21227 shift
21228
21229 case $ac_mode in
21230 :L) ac_source=$1;;
21231 :[FH])
21232 ac_file_inputs=
21233 for ac_f
21234 do
21235 case $ac_f in
21236 -) ac_f="$ac_tmp/stdin";;
21237 *) # Look for the file first in the build tree, then in the source tree
21238 # (if the path is not absolute). The absolute path cannot be DOS-style,
21239 # because $ac_f cannot contain `:'.
21240 test -f "$ac_f" ||
21241 case $ac_f in
21242 [\\/$]*) false;;
21243 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21244 esac ||
21245 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21246 esac
21247 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21248 as_fn_append ac_file_inputs " '$ac_f'"
21249 done
21250
21251 # Let's still pretend it is `configure' which instantiates (i.e., don't
21252 # use $as_me), people would be surprised to read:
21253 # /* config.h. Generated by config.status. */
21254 configure_input='Generated from '`
21255 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21256 `' by configure.'
21257 if test x"$ac_file" != x-; then
21258 configure_input="$ac_file. $configure_input"
21259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21260 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21261 fi
21262 # Neutralize special characters interpreted by sed in replacement strings.
21263 case $configure_input in #(
21264 *\&* | *\|* | *\\* )
21265 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21266 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21267 *) ac_sed_conf_input=$configure_input;;
21268 esac
21269
21270 case $ac_tag in
21271 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21273 esac
21274 ;;
21275 esac
21276
21277 ac_dir=`$as_dirname -- "$ac_file" ||
21278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21279 X"$ac_file" : 'X\(//\)[^/]' \| \
21280 X"$ac_file" : 'X\(//\)$' \| \
21281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21282 printf "%s\n" X"$ac_file" |
21283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21284 s//\1/
21285 q
21286 }
21287 /^X\(\/\/\)[^/].*/{
21288 s//\1/
21289 q
21290 }
21291 /^X\(\/\/\)$/{
21292 s//\1/
21293 q
21294 }
21295 /^X\(\/\).*/{
21296 s//\1/
21297 q
21298 }
21299 s/.*/./; q'`
21300 as_dir="$ac_dir"; as_fn_mkdir_p
21301 ac_builddir=.
21302
21303 case "$ac_dir" in
21304 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21305 *)
21306 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21307 # A ".." for each directory in $ac_dir_suffix.
21308 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21309 case $ac_top_builddir_sub in
21310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21312 esac ;;
21313 esac
21314 ac_abs_top_builddir=$ac_pwd
21315 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21316 # for backward compatibility:
21317 ac_top_builddir=$ac_top_build_prefix
21318
21319 case $srcdir in
21320 .) # We are building in place.
21321 ac_srcdir=.
21322 ac_top_srcdir=$ac_top_builddir_sub
21323 ac_abs_top_srcdir=$ac_pwd ;;
21324 [\\/]* | ?:[\\/]* ) # Absolute name.
21325 ac_srcdir=$srcdir$ac_dir_suffix;
21326 ac_top_srcdir=$srcdir
21327 ac_abs_top_srcdir=$srcdir ;;
21328 *) # Relative name.
21329 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21330 ac_top_srcdir=$ac_top_build_prefix$srcdir
21331 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21332 esac
21333 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21334
21335
21336 case $ac_mode in
21337 :F)
21338 #
21339 # CONFIG_FILE
21340 #
21341
21342 case $INSTALL in
21343 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21344 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21345 esac
21346 ac_MKDIR_P=$MKDIR_P
21347 case $MKDIR_P in
21348 [\\/$]* | ?:[\\/]* ) ;;
21349 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21350 esac
21351 _ACEOF
21352
21353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21354 # If the template does not know about datarootdir, expand it.
21355 # FIXME: This hack should be removed a few years after 2.60.
21356 ac_datarootdir_hack=; ac_datarootdir_seen=
21357 ac_sed_dataroot='
21358 /datarootdir/ {
21359 p
21360 q
21361 }
21362 /@datadir@/p
21363 /@docdir@/p
21364 /@infodir@/p
21365 /@localedir@/p
21366 /@mandir@/p'
21367 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21368 *datarootdir*) ac_datarootdir_seen=yes;;
21369 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21371 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21372 _ACEOF
21373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21374 ac_datarootdir_hack='
21375 s&@datadir@&$datadir&g
21376 s&@docdir@&$docdir&g
21377 s&@infodir@&$infodir&g
21378 s&@localedir@&$localedir&g
21379 s&@mandir@&$mandir&g
21380 s&\\\${datarootdir}&$datarootdir&g' ;;
21381 esac
21382 _ACEOF
21383
21384 # Neutralize VPATH when `$srcdir' = `.'.
21385 # Shell code in configure.ac might set extrasub.
21386 # FIXME: do we really want to maintain this feature?
21387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21388 ac_sed_extra="$ac_vpsub
21389 $extrasub
21390 _ACEOF
21391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21392 :t
21393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21394 s|@configure_input@|$ac_sed_conf_input|;t t
21395 s&@top_builddir@&$ac_top_builddir_sub&;t t
21396 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21397 s&@srcdir@&$ac_srcdir&;t t
21398 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21399 s&@top_srcdir@&$ac_top_srcdir&;t t
21400 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21401 s&@builddir@&$ac_builddir&;t t
21402 s&@abs_builddir@&$ac_abs_builddir&;t t
21403 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21404 s&@INSTALL@&$ac_INSTALL&;t t
21405 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21406 $ac_datarootdir_hack
21407 "
21408 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21409 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21410
21411 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21412 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21413 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21414 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21416 which seems to be undefined. Please make sure it is defined" >&5
21417 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21418 which seems to be undefined. Please make sure it is defined" >&2;}
21419
21420 rm -f "$ac_tmp/stdin"
21421 case $ac_file in
21422 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21423 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21424 esac \
21425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21426 ;;
21427 :H)
21428 #
21429 # CONFIG_HEADER
21430 #
21431 if test x"$ac_file" != x-; then
21432 {
21433 printf "%s\n" "/* $configure_input */" >&1 \
21434 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21435 } >"$ac_tmp/config.h" \
21436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21437 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21439 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21440 else
21441 rm -f "$ac_file"
21442 mv "$ac_tmp/config.h" "$ac_file" \
21443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21444 fi
21445 else
21446 printf "%s\n" "/* $configure_input */" >&1 \
21447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21448 || as_fn_error $? "could not create -" "$LINENO" 5
21449 fi
21450 # Compute "$ac_file"'s index in $config_headers.
21451 _am_arg="$ac_file"
21452 _am_stamp_count=1
21453 for _am_header in $config_headers :; do
21454 case $_am_header in
21455 $_am_arg | $_am_arg:* )
21456 break ;;
21457 * )
21458 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21459 esac
21460 done
21461 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21462 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$_am_arg" : 'X\(//\)[^/]' \| \
21464 X"$_am_arg" : 'X\(//\)$' \| \
21465 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21466 printf "%s\n" X"$_am_arg" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21468 s//\1/
21469 q
21470 }
21471 /^X\(\/\/\)[^/].*/{
21472 s//\1/
21473 q
21474 }
21475 /^X\(\/\/\)$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\(\/\).*/{
21480 s//\1/
21481 q
21482 }
21483 s/.*/./; q'`/stamp-h$_am_stamp_count
21484 ;;
21485
21486 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21487 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21488 ;;
21489 esac
21490
21491
21492 case $ac_file$ac_mode in
21493 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21494 # Older Autoconf quotes --file arguments for eval, but not when files
21495 # are listed without --file. Let's play safe and only enable the eval
21496 # if we detect the quoting.
21497 # TODO: see whether this extra hack can be removed once we start
21498 # requiring Autoconf 2.70 or later.
21499 case $CONFIG_FILES in #(
21500 *\'*) :
21501 eval set x "$CONFIG_FILES" ;; #(
21502 *) :
21503 set x $CONFIG_FILES ;; #(
21504 *) :
21505 ;;
21506 esac
21507 shift
21508 # Used to flag and report bootstrapping failures.
21509 am_rc=0
21510 for am_mf
21511 do
21512 # Strip MF so we end up with the name of the file.
21513 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21514 # Check whether this is an Automake generated Makefile which includes
21515 # dependency-tracking related rules and includes.
21516 # Grep'ing the whole file directly is not great: AIX grep has a line
21517 # limit of 2048, but all sed's we know have understand at least 4000.
21518 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21519 || continue
21520 am_dirpart=`$as_dirname -- "$am_mf" ||
21521 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522 X"$am_mf" : 'X\(//\)[^/]' \| \
21523 X"$am_mf" : 'X\(//\)$' \| \
21524 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21525 printf "%s\n" X"$am_mf" |
21526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21527 s//\1/
21528 q
21529 }
21530 /^X\(\/\/\)[^/].*/{
21531 s//\1/
21532 q
21533 }
21534 /^X\(\/\/\)$/{
21535 s//\1/
21536 q
21537 }
21538 /^X\(\/\).*/{
21539 s//\1/
21540 q
21541 }
21542 s/.*/./; q'`
21543 am_filepart=`$as_basename -- "$am_mf" ||
21544 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21545 X"$am_mf" : 'X\(//\)$' \| \
21546 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21547 printf "%s\n" X/"$am_mf" |
21548 sed '/^.*\/\([^/][^/]*\)\/*$/{
21549 s//\1/
21550 q
21551 }
21552 /^X\/\(\/\/\)$/{
21553 s//\1/
21554 q
21555 }
21556 /^X\/\(\/\).*/{
21557 s//\1/
21558 q
21559 }
21560 s/.*/./; q'`
21561 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21562 && sed -e '/# am--include-marker/d' "$am_filepart" \
21563 | $MAKE -f - am--depfiles" >&5
21564 (cd "$am_dirpart" \
21565 && sed -e '/# am--include-marker/d' "$am_filepart" \
21566 | $MAKE -f - am--depfiles) >&5 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } || am_rc=$?
21570 done
21571 if test $am_rc -ne 0; then
21572 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21573 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21574 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21575 for automatic dependency tracking. If GNU make was not used, consider
21576 re-running the configure script with MAKE=\"gmake\" (or whatever is
21577 necessary). You can also try re-running configure with the
21578 '--disable-dependency-tracking' option to at least be able to build
21579 the package (albeit without support for automatic dependency tracking).
21580 See \`config.log' for more details" "$LINENO" 5; }
21581 fi
21582 { am_dirpart=; unset am_dirpart;}
21583 { am_filepart=; unset am_filepart;}
21584 { am_mf=; unset am_mf;}
21585 { am_rc=; unset am_rc;}
21586 rm -f conftest-deps.mk
21587 }
21588 ;;
21589 "libtool":C)
21590
21591 # See if we are running on zsh, and set the options that allow our
21592 # commands through without removal of \ escapes.
21593 if test -n "${ZSH_VERSION+set}"; then
21594 setopt NO_GLOB_SUBST
21595 fi
21596
21597 cfgfile=${ofile}T
21598 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21599 $RM "$cfgfile"
21600
21601 cat <<_LT_EOF >> "$cfgfile"
21602 #! $SHELL
21603 # Generated automatically by $as_me ($PACKAGE) $VERSION
21604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21605 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21606
21607 # Provide generalized library-building support services.
21608 # Written by Gordon Matzigkeit, 1996
21609
21610 # Copyright (C) 2014 Free Software Foundation, Inc.
21611 # This is free software; see the source for copying conditions. There is NO
21612 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21613
21614 # GNU Libtool is free software; you can redistribute it and/or modify
21615 # it under the terms of the GNU General Public License as published by
21616 # the Free Software Foundation; either version 2 of of the License, or
21617 # (at your option) any later version.
21618 #
21619 # As a special exception to the GNU General Public License, if you
21620 # distribute this file as part of a program or library that is built
21621 # using GNU Libtool, you may include this file under the same
21622 # distribution terms that you use for the rest of that program.
21623 #
21624 # GNU Libtool is distributed in the hope that it will be useful, but
21625 # WITHOUT ANY WARRANTY; without even the implied warranty of
21626 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21627 # GNU General Public License for more details.
21628 #
21629 # You should have received a copy of the GNU General Public License
21630 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21631
21632
21633 # The names of the tagged configurations supported by this script.
21634 available_tags=''
21635
21636 # Configured defaults for sys_lib_dlsearch_path munging.
21637 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21638
21639 # ### BEGIN LIBTOOL CONFIG
21640
21641 # Whether or not to build static libraries.
21642 build_old_libs=$enable_static
21643
21644 # Which release of libtool.m4 was used?
21645 macro_version=$macro_version
21646 macro_revision=$macro_revision
21647
21648 # Whether or not to build shared libraries.
21649 build_libtool_libs=$enable_shared
21650
21651 # What type of objects to build.
21652 pic_mode=$pic_mode
21653
21654 # Whether or not to optimize for fast installation.
21655 fast_install=$enable_fast_install
21656
21657 # Shared archive member basename,for filename based shared library versioning on AIX.
21658 shared_archive_member_spec=$shared_archive_member_spec
21659
21660 # Shell to use when invoking shell scripts.
21661 SHELL=$lt_SHELL
21662
21663 # An echo program that protects backslashes.
21664 ECHO=$lt_ECHO
21665
21666 # The PATH separator for the build system.
21667 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21668
21669 # The host system.
21670 host_alias=$host_alias
21671 host=$host
21672 host_os=$host_os
21673
21674 # The build system.
21675 build_alias=$build_alias
21676 build=$build
21677 build_os=$build_os
21678
21679 # A sed program that does not truncate output.
21680 SED=$lt_SED
21681
21682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21683 Xsed="\$SED -e 1s/^X//"
21684
21685 # A grep program that handles long lines.
21686 GREP=$lt_GREP
21687
21688 # An ERE matcher.
21689 EGREP=$lt_EGREP
21690
21691 # A literal string matcher.
21692 FGREP=$lt_FGREP
21693
21694 # A BSD- or MS-compatible name lister.
21695 NM=$lt_NM
21696
21697 # Whether we need soft or hard links.
21698 LN_S=$lt_LN_S
21699
21700 # What is the maximum length of a command?
21701 max_cmd_len=$max_cmd_len
21702
21703 # Object file suffix (normally "o").
21704 objext=$ac_objext
21705
21706 # Executable file suffix (normally "").
21707 exeext=$exeext
21708
21709 # whether the shell understands "unset".
21710 lt_unset=$lt_unset
21711
21712 # turn spaces into newlines.
21713 SP2NL=$lt_lt_SP2NL
21714
21715 # turn newlines into spaces.
21716 NL2SP=$lt_lt_NL2SP
21717
21718 # convert \$build file names to \$host format.
21719 to_host_file_cmd=$lt_cv_to_host_file_cmd
21720
21721 # convert \$build files to toolchain format.
21722 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21723
21724 # A file(cmd) program that detects file types.
21725 FILECMD=$lt_FILECMD
21726
21727 # An object symbol dumper.
21728 OBJDUMP=$lt_OBJDUMP
21729
21730 # Method to check whether dependent libraries are shared objects.
21731 deplibs_check_method=$lt_deplibs_check_method
21732
21733 # Command to use when deplibs_check_method = "file_magic".
21734 file_magic_cmd=$lt_file_magic_cmd
21735
21736 # How to find potential files when deplibs_check_method = "file_magic".
21737 file_magic_glob=$lt_file_magic_glob
21738
21739 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21740 want_nocaseglob=$lt_want_nocaseglob
21741
21742 # DLL creation program.
21743 DLLTOOL=$lt_DLLTOOL
21744
21745 # Command to associate shared and link libraries.
21746 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21747
21748 # The archiver.
21749 AR=$lt_AR
21750
21751 # Flags to create an archive (by configure).
21752 lt_ar_flags=$lt_ar_flags
21753
21754 # Flags to create an archive.
21755 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21756
21757 # How to feed a file listing to the archiver.
21758 archiver_list_spec=$lt_archiver_list_spec
21759
21760 # A symbol stripping program.
21761 STRIP=$lt_STRIP
21762
21763 # Commands used to install an old-style archive.
21764 RANLIB=$lt_RANLIB
21765 old_postinstall_cmds=$lt_old_postinstall_cmds
21766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21767
21768 # Whether to use a lock for old archive extraction.
21769 lock_old_archive_extraction=$lock_old_archive_extraction
21770
21771 # A C compiler.
21772 LTCC=$lt_CC
21773
21774 # LTCC compiler flags.
21775 LTCFLAGS=$lt_CFLAGS
21776
21777 # Take the output of nm and produce a listing of raw symbols and C names.
21778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21779
21780 # Transform the output of nm in a proper C declaration.
21781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21782
21783 # Transform the output of nm into a list of symbols to manually relocate.
21784 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21785
21786 # Transform the output of nm in a C name address pair.
21787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21788
21789 # Transform the output of nm in a C name address pair when lib prefix is needed.
21790 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21791
21792 # The name lister interface.
21793 nm_interface=$lt_lt_cv_nm_interface
21794
21795 # Specify filename containing input files for \$NM.
21796 nm_file_list_spec=$lt_nm_file_list_spec
21797
21798 # The root where to search for dependent libraries,and where our libraries should be installed.
21799 lt_sysroot=$lt_sysroot
21800
21801 # Command to truncate a binary pipe.
21802 lt_truncate_bin=$lt_lt_cv_truncate_bin
21803
21804 # The name of the directory that contains temporary libtool files.
21805 objdir=$objdir
21806
21807 # Used to examine libraries when file_magic_cmd begins with "file".
21808 MAGIC_CMD=$MAGIC_CMD
21809
21810 # Must we lock files when doing compilation?
21811 need_locks=$lt_need_locks
21812
21813 # Manifest tool.
21814 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21815
21816 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21817 DSYMUTIL=$lt_DSYMUTIL
21818
21819 # Tool to change global to local symbols on Mac OS X.
21820 NMEDIT=$lt_NMEDIT
21821
21822 # Tool to manipulate fat objects and archives on Mac OS X.
21823 LIPO=$lt_LIPO
21824
21825 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21826 OTOOL=$lt_OTOOL
21827
21828 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21829 OTOOL64=$lt_OTOOL64
21830
21831 # Old archive suffix (normally "a").
21832 libext=$libext
21833
21834 # Shared library suffix (normally ".so").
21835 shrext_cmds=$lt_shrext_cmds
21836
21837 # The commands to extract the exported symbol list from a shared archive.
21838 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21839
21840 # Variables whose values should be saved in libtool wrapper scripts and
21841 # restored at link time.
21842 variables_saved_for_relink=$lt_variables_saved_for_relink
21843
21844 # Do we need the "lib" prefix for modules?
21845 need_lib_prefix=$need_lib_prefix
21846
21847 # Do we need a version for libraries?
21848 need_version=$need_version
21849
21850 # Library versioning type.
21851 version_type=$version_type
21852
21853 # Shared library runtime path variable.
21854 runpath_var=$runpath_var
21855
21856 # Shared library path variable.
21857 shlibpath_var=$shlibpath_var
21858
21859 # Is shlibpath searched before the hard-coded library search path?
21860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21861
21862 # Format of library name prefix.
21863 libname_spec=$lt_libname_spec
21864
21865 # List of archive names. First name is the real one, the rest are links.
21866 # The last name is the one that the linker finds with -lNAME
21867 library_names_spec=$lt_library_names_spec
21868
21869 # The coded name of the library, if different from the real name.
21870 soname_spec=$lt_soname_spec
21871
21872 # Permission mode override for installation of shared libraries.
21873 install_override_mode=$lt_install_override_mode
21874
21875 # Command to use after installation of a shared archive.
21876 postinstall_cmds=$lt_postinstall_cmds
21877
21878 # Command to use after uninstallation of a shared archive.
21879 postuninstall_cmds=$lt_postuninstall_cmds
21880
21881 # Commands used to finish a libtool library installation in a directory.
21882 finish_cmds=$lt_finish_cmds
21883
21884 # As "finish_cmds", except a single script fragment to be evaled but
21885 # not shown.
21886 finish_eval=$lt_finish_eval
21887
21888 # Whether we should hardcode library paths into libraries.
21889 hardcode_into_libs=$hardcode_into_libs
21890
21891 # Compile-time system search path for libraries.
21892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21893
21894 # Detected run-time system search path for libraries.
21895 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21896
21897 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21898 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21899
21900 # Whether dlopen is supported.
21901 dlopen_support=$enable_dlopen
21902
21903 # Whether dlopen of programs is supported.
21904 dlopen_self=$enable_dlopen_self
21905
21906 # Whether dlopen of statically linked programs is supported.
21907 dlopen_self_static=$enable_dlopen_self_static
21908
21909 # Commands to strip libraries.
21910 old_striplib=$lt_old_striplib
21911 striplib=$lt_striplib
21912
21913
21914 # The linker used to build libraries.
21915 LD=$lt_LD
21916
21917 # How to create reloadable object files.
21918 reload_flag=$lt_reload_flag
21919 reload_cmds=$lt_reload_cmds
21920
21921 # Commands used to build an old-style archive.
21922 old_archive_cmds=$lt_old_archive_cmds
21923
21924 # A language specific compiler.
21925 CC=$lt_compiler
21926
21927 # Is the compiler the GNU compiler?
21928 with_gcc=$GCC
21929
21930 # Compiler flag to turn off builtin functions.
21931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21932
21933 # Additional compiler flags for building library objects.
21934 pic_flag=$lt_lt_prog_compiler_pic
21935
21936 # How to pass a linker flag through the compiler.
21937 wl=$lt_lt_prog_compiler_wl
21938
21939 # Compiler flag to prevent dynamic linking.
21940 link_static_flag=$lt_lt_prog_compiler_static
21941
21942 # Does compiler simultaneously support -c and -o options?
21943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21944
21945 # Whether or not to add -lc for building shared libraries.
21946 build_libtool_need_lc=$archive_cmds_need_lc
21947
21948 # Whether or not to disallow shared libs when runtime libs are static.
21949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21950
21951 # Compiler flag to allow reflexive dlopens.
21952 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21953
21954 # Compiler flag to generate shared objects directly from archives.
21955 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21956
21957 # Whether the compiler copes with passing no objects directly.
21958 compiler_needs_object=$lt_compiler_needs_object
21959
21960 # Create an old-style archive from a shared archive.
21961 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21962
21963 # Create a temporary old-style archive to link instead of a shared archive.
21964 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21965
21966 # Commands used to build a shared archive.
21967 archive_cmds=$lt_archive_cmds
21968 archive_expsym_cmds=$lt_archive_expsym_cmds
21969
21970 # Commands used to build a loadable module if different from building
21971 # a shared archive.
21972 module_cmds=$lt_module_cmds
21973 module_expsym_cmds=$lt_module_expsym_cmds
21974
21975 # Whether we are building with GNU ld or not.
21976 with_gnu_ld=$lt_with_gnu_ld
21977
21978 # Flag that allows shared libraries with undefined symbols to be built.
21979 allow_undefined_flag=$lt_allow_undefined_flag
21980
21981 # Flag that enforces no undefined symbols.
21982 no_undefined_flag=$lt_no_undefined_flag
21983
21984 # Flag to hardcode \$libdir into a binary during linking.
21985 # This must work even if \$libdir does not exist
21986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21987
21988 # Whether we need a single "-rpath" flag with a separated argument.
21989 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21990
21991 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21992 # DIR into the resulting binary.
21993 hardcode_direct=$hardcode_direct
21994
21995 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21996 # DIR into the resulting binary and the resulting library dependency is
21997 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21998 # library is relocated.
21999 hardcode_direct_absolute=$hardcode_direct_absolute
22000
22001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22002 # into the resulting binary.
22003 hardcode_minus_L=$hardcode_minus_L
22004
22005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22006 # into the resulting binary.
22007 hardcode_shlibpath_var=$hardcode_shlibpath_var
22008
22009 # Set to "yes" if building a shared library automatically hardcodes DIR
22010 # into the library and all subsequent libraries and executables linked
22011 # against it.
22012 hardcode_automatic=$hardcode_automatic
22013
22014 # Set to yes if linker adds runtime paths of dependent libraries
22015 # to runtime path list.
22016 inherit_rpath=$inherit_rpath
22017
22018 # Whether libtool must link a program against all its dependency libraries.
22019 link_all_deplibs=$link_all_deplibs
22020
22021 # Set to "yes" if exported symbols are required.
22022 always_export_symbols=$always_export_symbols
22023
22024 # The commands to list exported symbols.
22025 export_symbols_cmds=$lt_export_symbols_cmds
22026
22027 # Symbols that should not be listed in the preloaded symbols.
22028 exclude_expsyms=$lt_exclude_expsyms
22029
22030 # Symbols that must always be exported.
22031 include_expsyms=$lt_include_expsyms
22032
22033 # Commands necessary for linking programs (against libraries) with templates.
22034 prelink_cmds=$lt_prelink_cmds
22035
22036 # Commands necessary for finishing linking programs.
22037 postlink_cmds=$lt_postlink_cmds
22038
22039 # Specify filename containing input files.
22040 file_list_spec=$lt_file_list_spec
22041
22042 # How to hardcode a shared library path into an executable.
22043 hardcode_action=$hardcode_action
22044
22045 # ### END LIBTOOL CONFIG
22046
22047 _LT_EOF
22048
22049 cat <<'_LT_EOF' >> "$cfgfile"
22050
22051 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22052
22053 # func_munge_path_list VARIABLE PATH
22054 # -----------------------------------
22055 # VARIABLE is name of variable containing _space_ separated list of
22056 # directories to be munged by the contents of PATH, which is string
22057 # having a format:
22058 # "DIR[:DIR]:"
22059 # string "DIR[ DIR]" will be prepended to VARIABLE
22060 # ":DIR[:DIR]"
22061 # string "DIR[ DIR]" will be appended to VARIABLE
22062 # "DIRP[:DIRP]::[DIRA:]DIRA"
22063 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22064 # "DIRA[ DIRA]" will be appended to VARIABLE
22065 # "DIR[:DIR]"
22066 # VARIABLE will be replaced by "DIR[ DIR]"
22067 func_munge_path_list ()
22068 {
22069 case x$2 in
22070 x)
22071 ;;
22072 *:)
22073 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22074 ;;
22075 x:*)
22076 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22077 ;;
22078 *::*)
22079 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22080 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22081 ;;
22082 *)
22083 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22084 ;;
22085 esac
22086 }
22087
22088
22089 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22090 func_cc_basename ()
22091 {
22092 for cc_temp in $*""; do
22093 case $cc_temp in
22094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22096 \-*) ;;
22097 *) break;;
22098 esac
22099 done
22100 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22101 }
22102
22103
22104 # ### END FUNCTIONS SHARED WITH CONFIGURE
22105
22106 _LT_EOF
22107
22108 case $host_os in
22109 aix3*)
22110 cat <<\_LT_EOF >> "$cfgfile"
22111 # AIX sometimes has problems with the GCC collect2 program. For some
22112 # reason, if we set the COLLECT_NAMES environment variable, the problems
22113 # vanish in a puff of smoke.
22114 if test set != "${COLLECT_NAMES+set}"; then
22115 COLLECT_NAMES=
22116 export COLLECT_NAMES
22117 fi
22118 _LT_EOF
22119 ;;
22120 esac
22121
22122
22123
22124 ltmain=$ac_aux_dir/ltmain.sh
22125
22126
22127 # We use sed instead of cat because bash on DJGPP gets confused if
22128 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22129 # text mode, it properly converts lines to CR/LF. This bash problem
22130 # is reportedly fixed, but why not run on old versions too?
22131 $SED '$q' "$ltmain" >> "$cfgfile" \
22132 || (rm -f "$cfgfile"; exit 1)
22133
22134 mv -f "$cfgfile" "$ofile" ||
22135 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22136 chmod +x "$ofile"
22137
22138 ;;
22139
22140 esac
22141 done # for ac_tag
22142
22143
22144 as_fn_exit 0
22145 _ACEOF
22146 ac_clean_files=$ac_clean_files_save
22147
22148 test $ac_write_fail = 0 ||
22149 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22150
22151
22152 # configure is writing to config.log, and then calls config.status.
22153 # config.status does its own redirection, appending to config.log.
22154 # Unfortunately, on DOS this fails, as config.log is still kept open
22155 # by configure, so config.status won't be able to write to it; its
22156 # output is simply discarded. So we exec the FD to /dev/null,
22157 # effectively closing config.log, so it can be properly (re)opened and
22158 # appended to by config.status. When coming back to configure, we
22159 # need to make the FD available again.
22160 if test "$no_create" != yes; then
22161 ac_cs_success=:
22162 ac_config_status_args=
22163 test "$silent" = yes &&
22164 ac_config_status_args="$ac_config_status_args --quiet"
22165 exec 5>/dev/null
22166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22167 exec 5>>config.log
22168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22169 # would make configure fail if this is the last instruction.
22170 $ac_cs_success || as_fn_exit 1
22171 fi
22172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22174 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22175 fi
22176
22177
22178