configure revision 1.1.1.12 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libXvMC 1.0.15.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='libXvMC'
617 PACKAGE_TARNAME='libXvMC'
618 PACKAGE_VERSION='1.0.15'
619 PACKAGE_STRING='libXvMC 1.0.15'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues'
621 PACKAGE_URL=''
622
623 ac_unique_file="Makefile.am"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 LINT_FALSE
661 LINT_TRUE
662 LINT_FLAGS
663 LINT
664 DLOPEN_LIBS
665 XVMC_LIBS
666 XVMC_CFLAGS
667 XTMALLOC_ZERO_CFLAGS
668 XMALLOC_ZERO_CFLAGS
669 MALLOC_ZERO_CFLAGS
670 MAN_SUBSTS
671 XORG_MAN_PAGE
672 ADMIN_MAN_DIR
673 DRIVER_MAN_DIR
674 MISC_MAN_DIR
675 FILE_MAN_DIR
676 LIB_MAN_DIR
677 APP_MAN_DIR
678 ADMIN_MAN_SUFFIX
679 DRIVER_MAN_SUFFIX
680 MISC_MAN_SUFFIX
681 FILE_MAN_SUFFIX
682 LIB_MAN_SUFFIX
683 APP_MAN_SUFFIX
684 INSTALL_CMD
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 CHANGELOG_CMD
689 STRICT_CFLAGS
690 CWARNFLAGS
691 BASE_CFLAGS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 DLLTOOL
703 OBJDUMP
704 FILECMD
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 LIBTOOL
739 am__xargs_n
740 am__rm_f_notfound
741 AM_BACKSLASH
742 AM_DEFAULT_VERBOSITY
743 AM_DEFAULT_V
744 AM_V
745 CSCOPE
746 ETAGS
747 CTAGS
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 runstatedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL
810 am__quote'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_shared
816 enable_static
817 enable_pic
818 with_pic
819 enable_fast_install
820 enable_aix_soname
821 with_aix_soname
822 enable_dependency_tracking
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_selective_werror
827 enable_strict_compilation
828 enable_malloc0returnsnull
829 with_lint
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 LT_SYS_LIBRARY_PATH
840 PKG_CONFIG
841 PKG_CONFIG_PATH
842 PKG_CONFIG_LIBDIR
843 XVMC_CFLAGS
844 XVMC_LIBS
845 LINT
846 LINT_FLAGS'
847
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 runstatedir='${localstatedir}/run'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
907 fi
908
909 case $ac_option in
910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *=) ac_optarg= ;;
912 *) ac_optarg=yes ;;
913 esac
914
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
923
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
938
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
943
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: '$ac_useropt'"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
976
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: '$ac_useropt'"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1012
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1017
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1047
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1121
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -runstatedir | --runstatedir | --runstatedi | --runstated \
1137 | --runstate | --runstat | --runsta | --runst | --runs \
1138 | --run | --ru | --r)
1139 ac_prev=runstatedir ;;
1140 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1141 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1142 | --run=* | --ru=* | --r=*)
1143 runstatedir=$ac_optarg ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: '$ac_useropt'"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: '$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
1240 -*) as_fn_error $? "unrecognized option: '$ac_option'
1241 Try '$0 --help' for more information"
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 ;;
1261
1262 esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1268 fi
1269
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276 fi
1277
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir runstatedir
1283 do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1298
1299 # There might be people who depend on the old broken behavior: '$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 printf "%s\n" X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360 else
1361 ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 fi
1367 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 'configure' configures libXvMC 1.0.15 to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print 'checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for '--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or '..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, 'make install' will install all the files in
1422 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than '$ac_default_prefix' using '--prefix',
1424 for instance '--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libXvMC]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of libXvMC 1.0.15:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --enable-aix-soname=aix|svr4|both
1483 shared library versioning (aka "SONAME") variant to
1484 provide on AIX, [default=aix].
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --disable-selective-werror
1491 Turn off selective compiler errors. (default:
1492 enabled)
1493 --enable-strict-compilation
1494 Enable all warnings from compiler and make them
1495 errors (default: disabled)
1496 --enable-malloc0returnsnull
1497 assume malloc(0) can return NULL (default: yes)
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1504 compiler's sysroot if not specified).
1505 --with-lint Use a lint-style source code checker (default:
1506 disabled)
1507
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 LT_SYS_LIBRARY_PATH
1517 User-defined run-time library search path.
1518 PKG_CONFIG path to pkg-config utility
1519 PKG_CONFIG_PATH
1520 directories to add to pkg-config's search path
1521 PKG_CONFIG_LIBDIR
1522 path overriding pkg-config's built-in search path
1523 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1524 XVMC_LIBS linker flags for XVMC, overriding pkg-config
1525 LINT Path to a lint-style command
1526 LINT_FLAGS Flags for the lint-style command
1527
1528 Use these variables to override the choices made by 'configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>.
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 continue
1542 ac_builddir=.
1543
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *)
1547 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1559
1560 case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for configure.gnu first; this name is used for a wrapper for
1578 # Metaconfig's "Configure" on case-insensitive file systems.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594 cat <<\_ACEOF
1595 libXvMC configure 1.0.15
1596 generated by GNU Autoconf 2.72
1597
1598 Copyright (C) 2023 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1603 fi
1604
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1608
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext conftest.beam
1616 if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 printf "%s\n" "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext
1635 then :
1636 ac_retval=0
1637 else case e in #(
1638 e) printf "%s\n" "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1 ;;
1642 esac
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf "%s\n" "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }
1678 then :
1679 ac_retval=0
1680 else case e in #(
1681 e) printf "%s\n" "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1 ;;
1685 esac
1686 fi
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_link
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 printf %s "checking for $2... " >&6; }
1706 if eval test \${$3+y}
1707 then :
1708 printf %s "(cached) " >&6
1709 else case e in #(
1710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1712 $4
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"
1716 then :
1717 eval "$3=yes"
1718 else case e in #(
1719 e) eval "$3=no" ;;
1720 esac
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1723 esac
1724 fi
1725 eval ac_res=\$$3
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 printf "%s\n" "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742 printf %s "(cached) " >&6
1743 else case e in #(
1744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (void); below. */
1752
1753 #include <limits.h>
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 (void);
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main (void)
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"
1779 then :
1780 eval "$3=yes"
1781 else case e in #(
1782 e) eval "$3=no" ;;
1783 esac
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1786 conftest$ac_exeext conftest.$ac_ext ;;
1787 esac
1788 fi
1789 eval ac_res=\$$3
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 printf "%s\n" "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_func
1795
1796 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1797 # ------------------------------------------------------------------
1798 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1799 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1800 ac_fn_check_decl ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 as_decl_name=`echo $2|sed 's/ *(.*//'`
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1805 printf %s "checking whether $as_decl_name is declared... " >&6; }
1806 if eval test \${$3+y}
1807 then :
1808 printf %s "(cached) " >&6
1809 else case e in #(
1810 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1811 eval ac_save_FLAGS=\$$6
1812 as_fn_append $6 " $5"
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 int
1817 main (void)
1818 {
1819 #ifndef $as_decl_name
1820 #ifdef __cplusplus
1821 (void) $as_decl_use;
1822 #else
1823 (void) $as_decl_name;
1824 #endif
1825 #endif
1826
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"
1832 then :
1833 eval "$3=yes"
1834 else case e in #(
1835 e) eval "$3=no" ;;
1836 esac
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1839 eval $6=\$ac_save_FLAGS
1840 ;;
1841 esac
1842 fi
1843 eval ac_res=\$$3
1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 printf "%s\n" "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_check_decl
1849 ac_configure_args_raw=
1850 for ac_arg
1851 do
1852 case $ac_arg in
1853 *\'*)
1854 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 esac
1856 as_fn_append ac_configure_args_raw " '$ac_arg'"
1857 done
1858
1859 case $ac_configure_args_raw in
1860 *$as_nl*)
1861 ac_safe_unquote= ;;
1862 *)
1863 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1864 ac_unsafe_a="$ac_unsafe_z#~"
1865 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1866 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1867 esac
1868
1869 cat >config.log <<_ACEOF
1870 This file contains any messages produced by compilers while
1871 running configure, to aid debugging if configure makes a mistake.
1872
1873 It was created by libXvMC $as_me 1.0.15, which was
1874 generated by GNU Autoconf 2.72. Invocation command line was
1875
1876 $ $0$ac_configure_args_raw
1877
1878 _ACEOF
1879 exec 5>>config.log
1880 {
1881 cat <<_ASUNAME
1882 ## --------- ##
1883 ## Platform. ##
1884 ## --------- ##
1885
1886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891
1892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1894
1895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1902
1903 _ASUNAME
1904
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 case $as_dir in #(((
1910 '') as_dir=./ ;;
1911 */) ;;
1912 *) as_dir=$as_dir/ ;;
1913 esac
1914 printf "%s\n" "PATH: $as_dir"
1915 done
1916 IFS=$as_save_IFS
1917
1918 } >&5
1919
1920 cat >&5 <<_ACEOF
1921
1922
1923 ## ----------- ##
1924 ## Core tests. ##
1925 ## ----------- ##
1926
1927 _ACEOF
1928
1929
1930 # Keep a trace of the command line.
1931 # Strip out --no-create and --no-recursion so they do not pile up.
1932 # Strip out --silent because we don't want to record it for future runs.
1933 # Also quote any args containing shell meta-characters.
1934 # Make two passes to allow for proper duplicate-argument suppression.
1935 ac_configure_args=
1936 ac_configure_args0=
1937 ac_configure_args1=
1938 ac_must_keep_next=false
1939 for ac_pass in 1 2
1940 do
1941 for ac_arg
1942 do
1943 case $ac_arg in
1944 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1946 | -silent | --silent | --silen | --sile | --sil)
1947 continue ;;
1948 *\'*)
1949 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 esac
1951 case $ac_pass in
1952 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1953 2)
1954 as_fn_append ac_configure_args1 " '$ac_arg'"
1955 if test $ac_must_keep_next = true; then
1956 ac_must_keep_next=false # Got value, back to normal.
1957 else
1958 case $ac_arg in
1959 *=* | --config-cache | -C | -disable-* | --disable-* \
1960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1962 | -with-* | --with-* | -without-* | --without-* | --x)
1963 case "$ac_configure_args0 " in
1964 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 esac
1966 ;;
1967 -* ) ac_must_keep_next=true ;;
1968 esac
1969 fi
1970 as_fn_append ac_configure_args " '$ac_arg'"
1971 ;;
1972 esac
1973 done
1974 done
1975 { ac_configure_args0=; unset ac_configure_args0;}
1976 { ac_configure_args1=; unset ac_configure_args1;}
1977
1978 # When interrupted or exit'd, cleanup temporary files, and complete
1979 # config.log. We remove comments because anyway the quotes in there
1980 # would cause problems or look ugly.
1981 # WARNING: Use '\'' to represent an apostrophe within the trap.
1982 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1983 trap 'exit_status=$?
1984 # Sanitize IFS.
1985 IFS=" "" $as_nl"
1986 # Save into config.log some information that might help in debugging.
1987 {
1988 echo
1989
1990 printf "%s\n" "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1995 (
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2018 *)
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020 ;;
2021 esac |
2022 sort
2023 )
2024 echo
2025
2026 printf "%s\n" "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2029 echo
2030 for ac_var in $ac_subst_vars
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 printf "%s\n" "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039
2040 if test -n "$ac_subst_files"; then
2041 printf "%s\n" "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2044 echo
2045 for ac_var in $ac_subst_files
2046 do
2047 eval ac_val=\$$ac_var
2048 case $ac_val in
2049 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 esac
2051 printf "%s\n" "$ac_var='\''$ac_val'\''"
2052 done | sort
2053 echo
2054 fi
2055
2056 if test -s confdefs.h; then
2057 printf "%s\n" "## ----------- ##
2058 ## confdefs.h. ##
2059 ## ----------- ##"
2060 echo
2061 cat confdefs.h
2062 echo
2063 fi
2064 test "$ac_signal" != 0 &&
2065 printf "%s\n" "$as_me: caught signal $ac_signal"
2066 printf "%s\n" "$as_me: exit $exit_status"
2067 } >&5
2068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070 exit $exit_status
2071 ' 0
2072 for ac_signal in 1 2 13 15; do
2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 done
2075 ac_signal=0
2076
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2079
2080 printf "%s\n" "/* confdefs.h */" > confdefs.h
2081
2082 # Predefined preprocessor variables.
2083
2084 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2095
2096
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 if test -n "$CONFIG_SITE"; then
2100 ac_site_files="$CONFIG_SITE"
2101 elif test "x$prefix" != xNONE; then
2102 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2103 else
2104 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2105 fi
2106
2107 for ac_site_file in $ac_site_files
2108 do
2109 case $ac_site_file in #(
2110 */*) :
2111 ;; #(
2112 *) :
2113 ac_site_file=./$ac_site_file ;;
2114 esac
2115 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2118 sed 's/^/| /' "$ac_site_file" >&5
2119 . "$ac_site_file" \
2120 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2121 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2122 as_fn_error $? "failed to load site script $ac_site_file
2123 See 'config.log' for more details" "$LINENO" 5; }
2124 fi
2125 done
2126
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special files
2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2137 fi
2138 else
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2141 >$cache_file
2142 fi
2143
2144 # Test code for whether the C compiler supports C89 (global declarations)
2145 ac_c_conftest_c89_globals='
2146 /* Does the compiler advertise C89 conformance?
2147 Do not test the value of __STDC__, because some compilers set it to 0
2148 while being otherwise adequately conformant. */
2149 #if !defined __STDC__
2150 # error "Compiler does not advertise C89 conformance"
2151 #endif
2152
2153 #include <stddef.h>
2154 #include <stdarg.h>
2155 struct stat;
2156 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2157 struct buf { int x; };
2158 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2159 static char *e (char **p, int i)
2160 {
2161 return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165 char *s;
2166 va_list v;
2167 va_start (v,p);
2168 s = g (p, va_arg (v,int));
2169 va_end (v);
2170 return s;
2171 }
2172
2173 /* C89 style stringification. */
2174 #define noexpand_stringify(a) #a
2175 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2176
2177 /* C89 style token pasting. Exercises some of the corner cases that
2178 e.g. old MSVC gets wrong, but not very hard. */
2179 #define noexpand_concat(a,b) a##b
2180 #define expand_concat(a,b) noexpand_concat(a,b)
2181 extern int vA;
2182 extern int vbee;
2183 #define aye A
2184 #define bee B
2185 int *pvA = &expand_concat(v,aye);
2186 int *pvbee = &noexpand_concat(v,bee);
2187
2188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2189 function prototypes and stuff, but not \xHH hex character constants.
2190 These do not provoke an error unfortunately, instead are silently treated
2191 as an "x". The following induces an error, until -std is added to get
2192 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2193 array size at least. It is necessary to write \x00 == 0 to get something
2194 that is true only with -std. */
2195 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2196
2197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2198 inside strings and character constants. */
2199 #define FOO(x) '\''x'\''
2200 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2201
2202 int test (int i, double x);
2203 struct s1 {int (*f) (int a);};
2204 struct s2 {int (*f) (double a);};
2205 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2206 int, int);'
2207
2208 # Test code for whether the C compiler supports C89 (body of main).
2209 ac_c_conftest_c89_main='
2210 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2211 '
2212
2213 # Test code for whether the C compiler supports C99 (global declarations)
2214 ac_c_conftest_c99_globals='
2215 /* Does the compiler advertise C99 conformance? */
2216 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2217 # error "Compiler does not advertise C99 conformance"
2218 #endif
2219
2220 // See if C++-style comments work.
2221
2222 #include <stdbool.h>
2223 extern int puts (const char *);
2224 extern int printf (const char *, ...);
2225 extern int dprintf (int, const char *, ...);
2226 extern void *malloc (size_t);
2227 extern void free (void *);
2228
2229 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2230 // dprintf is used instead of fprintf to avoid needing to declare
2231 // FILE and stderr.
2232 #define debug(...) dprintf (2, __VA_ARGS__)
2233 #define showlist(...) puts (#__VA_ARGS__)
2234 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2235 static void
2236 test_varargs_macros (void)
2237 {
2238 int x = 1234;
2239 int y = 5678;
2240 debug ("Flag");
2241 debug ("X = %d\n", x);
2242 showlist (The first, second, and third items.);
2243 report (x>y, "x is %d but y is %d", x, y);
2244 }
2245
2246 // Check long long types.
2247 #define BIG64 18446744073709551615ull
2248 #define BIG32 4294967295ul
2249 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2250 #if !BIG_OK
2251 #error "your preprocessor is broken"
2252 #endif
2253 #if BIG_OK
2254 #else
2255 #error "your preprocessor is broken"
2256 #endif
2257 static long long int bignum = -9223372036854775807LL;
2258 static unsigned long long int ubignum = BIG64;
2259
2260 struct incomplete_array
2261 {
2262 int datasize;
2263 double data[];
2264 };
2265
2266 struct named_init {
2267 int number;
2268 const wchar_t *name;
2269 double average;
2270 };
2271
2272 typedef const char *ccp;
2273
2274 static inline int
2275 test_restrict (ccp restrict text)
2276 {
2277 // Iterate through items via the restricted pointer.
2278 // Also check for declarations in for loops.
2279 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2280 continue;
2281 return 0;
2282 }
2283
2284 // Check varargs and va_copy.
2285 static bool
2286 test_varargs (const char *format, ...)
2287 {
2288 va_list args;
2289 va_start (args, format);
2290 va_list args_copy;
2291 va_copy (args_copy, args);
2292
2293 const char *str = "";
2294 int number = 0;
2295 float fnumber = 0;
2296
2297 while (*format)
2298 {
2299 switch (*format++)
2300 {
2301 case '\''s'\'': // string
2302 str = va_arg (args_copy, const char *);
2303 break;
2304 case '\''d'\'': // int
2305 number = va_arg (args_copy, int);
2306 break;
2307 case '\''f'\'': // float
2308 fnumber = va_arg (args_copy, double);
2309 break;
2310 default:
2311 break;
2312 }
2313 }
2314 va_end (args_copy);
2315 va_end (args);
2316
2317 return *str && number && fnumber;
2318 }
2319 '
2320
2321 # Test code for whether the C compiler supports C99 (body of main).
2322 ac_c_conftest_c99_main='
2323 // Check bool.
2324 _Bool success = false;
2325 success |= (argc != 0);
2326
2327 // Check restrict.
2328 if (test_restrict ("String literal") == 0)
2329 success = true;
2330 char *restrict newvar = "Another string";
2331
2332 // Check varargs.
2333 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2334 test_varargs_macros ();
2335
2336 // Check flexible array members.
2337 struct incomplete_array *ia =
2338 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2339 ia->datasize = 10;
2340 for (int i = 0; i < ia->datasize; ++i)
2341 ia->data[i] = i * 1.234;
2342 // Work around memory leak warnings.
2343 free (ia);
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}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
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 case e in #(
2558 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2559 esac
2560 fi
2561
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 if test -f "${ac_aux_dir}config.guess"; then
2568 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2569 fi
2570 if test -f "${ac_aux_dir}config.sub"; then
2571 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2572 fi
2573 if test -f "$ac_aux_dir/configure"; then
2574 ac_configure="$SHELL ${ac_aux_dir}configure"
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2588 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2592 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2602 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2606 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2610 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2612 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2625 fi
2626 done
2627 if $ac_cache_corrupted; then
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2629 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2633 and start over" "$LINENO" 5
2634 fi
2635 ## -------------------- ##
2636 ## Main body of script. ##
2637 ## -------------------- ##
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647 ac_config_headers="$ac_config_headers config.h"
2648
2649
2650
2651 # Initialize Automake
2652 am__api_version='1.18'
2653
2654
2655
2656 # Find a good install program. We prefer a C program (faster),
2657 # so one script is as good as another. But avoid the broken or
2658 # incompatible versions:
2659 # SysV /etc/install, /usr/sbin/install
2660 # SunOS /usr/etc/install
2661 # IRIX /sbin/install
2662 # AIX /bin/install
2663 # AmigaOS /C/install, which installs bootblocks on floppy discs
2664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2667 # OS/2's system install, which has a completely different semantic
2668 # ./install, which can be erroneously created by make from ./install.sh.
2669 # Reject install programs that cannot install multiple files.
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2671 printf %s "checking for a BSD-compatible install... " >&6; }
2672 if test -z "$INSTALL"; then
2673 if test ${ac_cv_path_install+y}
2674 then :
2675 printf %s "(cached) " >&6
2676 else case e in #(
2677 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 case $as_dir in #(((
2682 '') as_dir=./ ;;
2683 */) ;;
2684 *) as_dir=$as_dir/ ;;
2685 esac
2686 # Account for fact that we put trailing slashes in our PATH walk.
2687 case $as_dir in #((
2688 ./ | /[cC]/* | \
2689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2691 /usr/ucb/* ) ;;
2692 *)
2693 # OSF1 and SCO ODT 3.0 have their own names for install.
2694 # Don't use installbsd from OSF since it installs stuff as root
2695 # by default.
2696 for ac_prog in ginstall scoinst install; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2699 if test $ac_prog = install &&
2700 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701 # AIX install. It has an incompatible calling convention.
2702 :
2703 elif test $ac_prog = install &&
2704 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705 # program-specific install script used by HP pwplus--don't use.
2706 :
2707 else
2708 rm -rf conftest.one conftest.two conftest.dir
2709 echo one > conftest.one
2710 echo two > conftest.two
2711 mkdir conftest.dir
2712 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2713 test -s conftest.one && test -s conftest.two &&
2714 test -s conftest.dir/conftest.one &&
2715 test -s conftest.dir/conftest.two
2716 then
2717 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2718 break 3
2719 fi
2720 fi
2721 fi
2722 done
2723 done
2724 ;;
2725 esac
2726
2727 done
2728 IFS=$as_save_IFS
2729
2730 rm -rf conftest.one conftest.two conftest.dir
2731 ;;
2732 esac
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 sleep supports fractional seconds" >&5
2756 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2757 if test ${am_cv_sleep_fractional_seconds+y}
2758 then :
2759 printf %s "(cached) " >&6
2760 else case e in #(
2761 e) if sleep 0.001 2>/dev/null
2762 then :
2763 am_cv_sleep_fractional_seconds=yes
2764 else case e in #(
2765 e) am_cv_sleep_fractional_seconds=no ;;
2766 esac
2767 fi
2768 ;;
2769 esac
2770 fi
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2772 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2773
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2775 printf %s "checking filesystem timestamp resolution... " >&6; }
2776 if test ${am_cv_filesystem_timestamp_resolution+y}
2777 then :
2778 printf %s "(cached) " >&6
2779 else case e in #(
2780 e) # Default to the worst case.
2781 am_cv_filesystem_timestamp_resolution=2
2782
2783 # Only try to go finer than 1 sec if sleep can do it.
2784 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2785 # - 1 sec is not much of a win compared to 2 sec, and
2786 # - it takes 2 seconds to perform the test whether 1 sec works.
2787 #
2788 # Instead, just use the default 2s on platforms that have 1s resolution,
2789 # accept the extra 1s delay when using $sleep in the Automake tests, in
2790 # exchange for not incurring the 2s delay for running the test for all
2791 # packages.
2792 #
2793 am_try_resolutions=
2794 if test "$am_cv_sleep_fractional_seconds" = yes; then
2795 # Even a millisecond often causes a bunch of false positives,
2796 # so just try a hundredth of a second. The time saved between .001 and
2797 # .01 is not terribly consequential.
2798 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2799 fi
2800
2801 # In order to catch current-generation FAT out, we must *modify* files
2802 # that already exist; the *creation* timestamp is finer. Use names
2803 # that make ls -t sort them differently when they have equal
2804 # timestamps than when they have distinct timestamps, keeping
2805 # in mind that ls -t prints the *newest* file first.
2806 rm -f conftest.ts?
2807 : > conftest.ts1
2808 : > conftest.ts2
2809 : > conftest.ts3
2810
2811 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2812 # clobber the current shell's arguments. (Outer-level square brackets
2813 # are removed by m4; they're present so that m4 does not expand
2814 # <dollar><star>; be careful, easy to get confused.)
2815 if (
2816 set X `ls -t conftest.ts[12]` &&
2817 {
2818 test "$*" != "X conftest.ts1 conftest.ts2" ||
2819 test "$*" != "X conftest.ts2 conftest.ts1";
2820 }
2821 ); then :; else
2822 # If neither matched, then we have a broken ls. This can happen
2823 # if, for instance, CONFIG_SHELL is bash and it inherits a
2824 # broken ls alias from the environment. This has actually
2825 # happened. Such a system could not be considered "sane".
2826 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2827 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2828 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2829 as_fn_error $? "ls -t produces unexpected output.
2830 Make sure there is not a broken ls alias in your environment.
2831 See 'config.log' for more details" "$LINENO" 5; }
2832 fi
2833
2834 for am_try_res in $am_try_resolutions; do
2835 # Any one fine-grained sleep might happen to cross the boundary
2836 # between two values of a coarser actual resolution, but if we do
2837 # two fine-grained sleeps in a row, at least one of them will fall
2838 # entirely within a coarse interval.
2839 echo alpha > conftest.ts1
2840 sleep $am_try_res
2841 echo beta > conftest.ts2
2842 sleep $am_try_res
2843 echo gamma > conftest.ts3
2844
2845 # We assume that 'ls -t' will make use of high-resolution
2846 # timestamps if the operating system supports them at all.
2847 if (set X `ls -t conftest.ts?` &&
2848 test "$2" = conftest.ts3 &&
2849 test "$3" = conftest.ts2 &&
2850 test "$4" = conftest.ts1); then
2851 #
2852 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2853 # because we don't need to test make.
2854 make_ok=true
2855 if test $am_try_res != 1; then
2856 # But if we've succeeded so far with a subsecond resolution, we
2857 # have one more thing to check: make. It can happen that
2858 # everything else supports the subsecond mtimes, but make doesn't;
2859 # notably on macOS, which ships make 3.81 from 2006 (the last one
2860 # released under GPLv2). https://bugs.gnu.org/68808
2861 #
2862 # We test $MAKE if it is defined in the environment, else "make".
2863 # It might get overridden later, but our hope is that in practice
2864 # it does not matter: it is the system "make" which is (by far)
2865 # the most likely to be broken, whereas if the user overrides it,
2866 # probably they did so with a better, or at least not worse, make.
2867 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2868 #
2869 # Create a Makefile (real tab character here):
2870 rm -f conftest.mk
2871 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2872 echo ' touch conftest.ts2' >>conftest.mk
2873 #
2874 # Now, running
2875 # touch conftest.ts1; touch conftest.ts2; make
2876 # should touch ts1 because ts2 is newer. This could happen by luck,
2877 # but most often, it will fail if make's support is insufficient. So
2878 # test for several consecutive successes.
2879 #
2880 # (We reuse conftest.ts[12] because we still want to modify existing
2881 # files, not create new ones, per above.)
2882 n=0
2883 make=${MAKE-make}
2884 until test $n -eq 3; do
2885 echo one > conftest.ts1
2886 sleep $am_try_res
2887 echo two > conftest.ts2 # ts2 should now be newer than ts1
2888 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2889 make_ok=false
2890 break # out of $n loop
2891 fi
2892 n=`expr $n + 1`
2893 done
2894 fi
2895 #
2896 if $make_ok; then
2897 # Everything we know to check worked out, so call this resolution good.
2898 am_cv_filesystem_timestamp_resolution=$am_try_res
2899 break # out of $am_try_res loop
2900 fi
2901 # Otherwise, we'll go on to check the next resolution.
2902 fi
2903 done
2904 rm -f conftest.ts?
2905 # (end _am_filesystem_timestamp_resolution)
2906 ;;
2907 esac
2908 fi
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2910 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2911
2912 # This check should not be cached, as it may vary across builds of
2913 # different projects.
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2915 printf %s "checking whether build environment is sane... " >&6; }
2916 # Reject unsafe characters in $srcdir or the absolute working directory
2917 # name. Accept space and tab only in the latter.
2918 am_lf='
2919 '
2920 case `pwd` in
2921 *[\\\"\#\$\&\'\`$am_lf]*)
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 printf "%s\n" "no" >&6; }
2924 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2925 esac
2926 case $srcdir in
2927 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 printf "%s\n" "no" >&6; }
2930 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2931 esac
2932
2933 # Do 'set' in a subshell so we don't clobber the current shell's
2934 # arguments. Must try -L first in case configure is actually a
2935 # symlink; some systems play weird games with the mod time of symlinks
2936 # (eg FreeBSD returns the mod time of the symlink's containing
2937 # directory).
2938 am_build_env_is_sane=no
2939 am_has_slept=no
2940 rm -f conftest.file
2941 for am_try in 1 2; do
2942 echo "timestamp, slept: $am_has_slept" > conftest.file
2943 if (
2944 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2945 if test "$*" = "X"; then
2946 # -L didn't work.
2947 set X `ls -t "$srcdir/configure" conftest.file`
2948 fi
2949 test "$2" = conftest.file
2950 ); then
2951 am_build_env_is_sane=yes
2952 break
2953 fi
2954 # Just in case.
2955 sleep "$am_cv_filesystem_timestamp_resolution"
2956 am_has_slept=yes
2957 done
2958
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2960 printf "%s\n" "$am_build_env_is_sane" >&6; }
2961 if test "$am_build_env_is_sane" = no; then
2962 as_fn_error $? "newly created file is older than distributed files!
2963 Check your system clock" "$LINENO" 5
2964 fi
2965
2966 # If we didn't sleep, we still need to ensure time stamps of config.status and
2967 # generated files are strictly newer.
2968 am_sleep_pid=
2969 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2970 then :
2971
2972 else case e in #(
2973 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2974 am_sleep_pid=$!
2975 ;;
2976 esac
2977 fi
2978
2979 rm -f conftest.file
2980
2981 test "$program_prefix" != NONE &&
2982 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2983 # Use a double $ so make ignores it.
2984 test "$program_suffix" != NONE &&
2985 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2986 # Double any \ or $.
2987 # By default was 's,x,x', remove it if useless.
2988 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2989 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2990
2991
2992 # Expand $ac_aux_dir to an absolute path.
2993 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2994
2995
2996 if test x"${MISSING+set}" != xset; then
2997 MISSING="\${SHELL} '$am_aux_dir/missing'"
2998 fi
2999 # Use eval to expand $SHELL
3000 if eval "$MISSING --is-lightweight"; then
3001 am_missing_run="$MISSING "
3002 else
3003 am_missing_run=
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3005 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3006 fi
3007
3008 if test x"${install_sh+set}" != xset; then
3009 case $am_aux_dir in
3010 *\ * | *\ *)
3011 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3012 *)
3013 install_sh="\${SHELL} $am_aux_dir/install-sh"
3014 esac
3015 fi
3016
3017 # Installed binaries are usually stripped using 'strip' when the user
3018 # run "make install-strip". However 'strip' might not be the right
3019 # tool to use in cross-compilation environments, therefore Automake
3020 # will honor the 'STRIP' environment variable to overrule this program.
3021 if test "$cross_compiling" != no; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}strip; ac_word=$2
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 printf %s "checking for $ac_word... " >&6; }
3027 if test ${ac_cv_prog_STRIP+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else case e in #(
3031 e) if test -n "$STRIP"; then
3032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi ;;
3054 esac
3055 fi
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3059 printf "%s\n" "$STRIP" >&6; }
3060 else
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 printf "%s\n" "no" >&6; }
3063 fi
3064
3065
3066 fi
3067 if test -z "$ac_cv_prog_STRIP"; then
3068 ac_ct_STRIP=$STRIP
3069 # Extract the first word of "strip", so it can be a program name with args.
3070 set dummy strip; ac_word=$2
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 printf %s "checking for $ac_word... " >&6; }
3073 if test ${ac_cv_prog_ac_ct_STRIP+y}
3074 then :
3075 printf %s "(cached) " >&6
3076 else case e in #(
3077 e) if test -n "$ac_ct_STRIP"; then
3078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083 IFS=$as_save_IFS
3084 case $as_dir in #(((
3085 '') as_dir=./ ;;
3086 */) ;;
3087 *) as_dir=$as_dir/ ;;
3088 esac
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_STRIP="strip"
3092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi ;;
3100 esac
3101 fi
3102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3103 if test -n "$ac_ct_STRIP"; then
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3105 printf "%s\n" "$ac_ct_STRIP" >&6; }
3106 else
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 printf "%s\n" "no" >&6; }
3109 fi
3110
3111 if test "x$ac_ct_STRIP" = x; then
3112 STRIP=":"
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 STRIP=$ac_ct_STRIP
3121 fi
3122 else
3123 STRIP="$ac_cv_prog_STRIP"
3124 fi
3125
3126 fi
3127 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3128
3129
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3131 printf %s "checking for a race-free mkdir -p... " >&6; }
3132 if test -z "$MKDIR_P"; then
3133 if test ${ac_cv_path_mkdir+y}
3134 then :
3135 printf %s "(cached) " >&6
3136 else case e in #(
3137 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3139 do
3140 IFS=$as_save_IFS
3141 case $as_dir in #(((
3142 '') as_dir=./ ;;
3143 */) ;;
3144 *) as_dir=$as_dir/ ;;
3145 esac
3146 for ac_prog in mkdir gmkdir; do
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3149 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3150 'mkdir ('*'coreutils) '* | \
3151 *'BusyBox '* | \
3152 'mkdir (fileutils) '4.1*)
3153 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3154 break 3;;
3155 esac
3156 done
3157 done
3158 done
3159 IFS=$as_save_IFS
3160 ;;
3161 esac
3162 fi
3163
3164 test -d ./--version && rmdir ./--version
3165 if test ${ac_cv_path_mkdir+y}; then
3166 MKDIR_P="$ac_cv_path_mkdir -p"
3167 else
3168 # As a last resort, use plain mkdir -p,
3169 # in the hope it doesn't have the bugs of ancient mkdir.
3170 MKDIR_P='mkdir -p'
3171 fi
3172 fi
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3174 printf "%s\n" "$MKDIR_P" >&6; }
3175
3176 for ac_prog in gawk mawk nawk awk
3177 do
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy $ac_prog; ac_word=$2
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 printf %s "checking for $ac_word... " >&6; }
3182 if test ${ac_cv_prog_AWK+y}
3183 then :
3184 printf %s "(cached) " >&6
3185 else case e in #(
3186 e) if test -n "$AWK"; then
3187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 case $as_dir in #(((
3194 '') as_dir=./ ;;
3195 */) ;;
3196 *) as_dir=$as_dir/ ;;
3197 esac
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_AWK="$ac_prog"
3201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi ;;
3209 esac
3210 fi
3211 AWK=$ac_cv_prog_AWK
3212 if test -n "$AWK"; then
3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3214 printf "%s\n" "$AWK" >&6; }
3215 else
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 printf "%s\n" "no" >&6; }
3218 fi
3219
3220
3221 test -n "$AWK" && break
3222 done
3223
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3225 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3226 set x ${MAKE-make}
3227 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3228 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3229 then :
3230 printf %s "(cached) " >&6
3231 else case e in #(
3232 e) cat >conftest.make <<\_ACEOF
3233 SHELL = /bin/sh
3234 all:
3235 @echo '@@@%%%=$(MAKE)=@@@%%%'
3236 _ACEOF
3237 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3239 *@@@%%%=?*=@@@%%%*)
3240 eval ac_cv_prog_make_${ac_make}_set=yes;;
3241 *)
3242 eval ac_cv_prog_make_${ac_make}_set=no;;
3243 esac
3244 rm -f conftest.make ;;
3245 esac
3246 fi
3247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 printf "%s\n" "yes" >&6; }
3250 SET_MAKE=
3251 else
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 printf "%s\n" "no" >&6; }
3254 SET_MAKE="MAKE=${MAKE-make}"
3255 fi
3256
3257 rm -rf .tst 2>/dev/null
3258 mkdir .tst 2>/dev/null
3259 if test -d .tst; then
3260 am__leading_dot=.
3261 else
3262 am__leading_dot=_
3263 fi
3264 rmdir .tst 2>/dev/null
3265
3266 AM_DEFAULT_VERBOSITY=1
3267 # Check whether --enable-silent-rules was given.
3268 if test ${enable_silent_rules+y}
3269 then :
3270 enableval=$enable_silent_rules;
3271 fi
3272
3273 am_make=${MAKE-make}
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3275 printf %s "checking whether $am_make supports nested variables... " >&6; }
3276 if test ${am_cv_make_support_nested_variables+y}
3277 then :
3278 printf %s "(cached) " >&6
3279 else case e in #(
3280 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3281 BAR0=false
3282 BAR1=true
3283 V=1
3284 am__doit:
3285 @$(TRUE)
3286 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3287 am_cv_make_support_nested_variables=yes
3288 else
3289 am_cv_make_support_nested_variables=no
3290 fi ;;
3291 esac
3292 fi
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3294 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3295 AM_BACKSLASH='\'
3296
3297 am__rm_f_notfound=
3298 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3299 then :
3300
3301 else case e in #(
3302 e) am__rm_f_notfound='""' ;;
3303 esac
3304 fi
3305
3306
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3308 printf %s "checking xargs -n works... " >&6; }
3309 if test ${am_cv_xargs_n_works+y}
3310 then :
3311 printf %s "(cached) " >&6
3312 else case e in #(
3313 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3314 3"
3315 then :
3316 am_cv_xargs_n_works=yes
3317 else case e in #(
3318 e) am_cv_xargs_n_works=no ;;
3319 esac
3320 fi ;;
3321 esac
3322 fi
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3324 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3325 if test "$am_cv_xargs_n_works" = yes
3326 then :
3327 am__xargs_n='xargs -n'
3328 else case e in #(
3329 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3330 ;;
3331 esac
3332 fi
3333
3334 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3335 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3336 # is not polluted with repeated "-I."
3337 am__isrc=' -I$(srcdir)'
3338 # test to see if srcdir already configured
3339 if test -f $srcdir/config.status; then
3340 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3341 fi
3342 fi
3343
3344 # test whether we have cygpath
3345 if test -z "$CYGPATH_W"; then
3346 if (cygpath --version) >/dev/null 2>/dev/null; then
3347 CYGPATH_W='cygpath -w'
3348 else
3349 CYGPATH_W=echo
3350 fi
3351 fi
3352
3353
3354 # Define the identity of the package.
3355 PACKAGE='libXvMC'
3356 VERSION='1.0.15'
3357
3358
3359 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3360
3361
3362 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3363
3364 # Some tools Automake needs.
3365
3366 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3367
3368
3369 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3370
3371
3372 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3373
3374
3375 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3376
3377
3378 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3379
3380 # For better backward compatibility. To be removed once Automake 1.9.x
3381 # dies out for good. For more background, see:
3382 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3383 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3384 mkdir_p='$(MKDIR_P)'
3385
3386 # We need awk for the "check" target (and possibly the TAP driver). The
3387 # system "awk" is bad on some platforms.
3388 # Always define AMTAR for backward compatibility. Yes, it's still used
3389 # in the wild :-( We should find a proper way to deprecate it ...
3390 AMTAR='$${TAR-tar}'
3391
3392
3393 # We'll loop over all known methods to create a tar archive until one works.
3394 _am_tools='gnutar plaintar pax cpio none'
3395
3396 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3397 # There is notably a 21 bits limit for the UID and the GID. In fact,
3398 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3399 # and bug#13588).
3400 am_max_uid=2097151 # 2^21 - 1
3401 am_max_gid=$am_max_uid
3402 # The $UID and $GID variables are not portable, so we need to resort
3403 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3404 # below are definitely unexpected, so allow the users to see them
3405 # (that is, avoid stderr redirection).
3406 am_uid=`id -u || echo unknown`
3407 am_gid=`id -g || echo unknown`
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3409 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3410 if test x$am_uid = xunknown; then
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3412 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3413 elif test $am_uid -le $am_max_uid; then
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 printf "%s\n" "yes" >&6; }
3416 else
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3419 _am_tools=none
3420 fi
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3422 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3423 if test x$gm_gid = xunknown; then
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3425 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3426 elif test $am_gid -le $am_max_gid; then
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3428 printf "%s\n" "yes" >&6; }
3429 else
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 printf "%s\n" "no" >&6; }
3432 _am_tools=none
3433 fi
3434
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3436 printf %s "checking how to create a ustar tar archive... " >&6; }
3437
3438 # Go ahead even if we have the value already cached. We do so because we
3439 # need to set the values for the 'am__tar' and 'am__untar' variables.
3440 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3441
3442 for _am_tool in $_am_tools; do
3443 case $_am_tool in
3444 gnutar)
3445 for _am_tar in tar gnutar gtar; do
3446 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3447 ($_am_tar --version) >&5 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && break
3451 done
3452 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3453 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3454 am__untar="$_am_tar -xf -"
3455 ;;
3456 plaintar)
3457 # Must skip GNU tar: if it does not support --format= it doesn't create
3458 # ustar tarball either.
3459 (tar --version) >/dev/null 2>&1 && continue
3460 am__tar='tar chf - "$$tardir"'
3461 am__tar_='tar chf - "$tardir"'
3462 am__untar='tar xf -'
3463 ;;
3464 pax)
3465 am__tar='pax -L -x ustar -w "$$tardir"'
3466 am__tar_='pax -L -x ustar -w "$tardir"'
3467 am__untar='pax -r'
3468 ;;
3469 cpio)
3470 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3471 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3472 am__untar='cpio -i -H ustar -d'
3473 ;;
3474 none)
3475 am__tar=false
3476 am__tar_=false
3477 am__untar=false
3478 ;;
3479 esac
3480
3481 # If the value was cached, stop now. We just wanted to have am__tar
3482 # and am__untar set.
3483 test -n "${am_cv_prog_tar_ustar}" && break
3484
3485 # tar/untar a dummy directory, and stop if the command works.
3486 rm -rf conftest.dir
3487 mkdir conftest.dir
3488 echo GrepMe > conftest.dir/file
3489 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3490 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }
3494 rm -rf conftest.dir
3495 if test -s conftest.tar; then
3496 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3497 ($am__untar <conftest.tar) >&5 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }
3501 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3502 (cat conftest.dir/file) >&5 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }
3506 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3507 fi
3508 done
3509 rm -rf conftest.dir
3510
3511 if test ${am_cv_prog_tar_ustar+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else case e in #(
3515 e) am_cv_prog_tar_ustar=$_am_tool ;;
3516 esac
3517 fi
3518
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3520 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3521
3522
3523
3524
3525
3526 # Variables for tags utilities; see am/tags.am
3527 if test -z "$CTAGS"; then
3528 CTAGS=ctags
3529 fi
3530
3531 if test -z "$ETAGS"; then
3532 ETAGS=etags
3533 fi
3534
3535 if test -z "$CSCOPE"; then
3536 CSCOPE=cscope
3537 fi
3538
3539
3540
3541
3542
3543
3544
3545
3546 # Initialize libtool
3547 case `pwd` in
3548 *\ * | *\ *)
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3550 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3551 esac
3552
3553
3554
3555 macro_version='2.5.4'
3556 macro_revision='2.5.4'
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571 ltmain=$ac_aux_dir/ltmain.sh
3572
3573
3574
3575 # Make sure we can run config.sub.
3576 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3577 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3578
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3580 printf %s "checking build system type... " >&6; }
3581 if test ${ac_cv_build+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else case e in #(
3585 e) ac_build_alias=$build_alias
3586 test "x$ac_build_alias" = x &&
3587 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3588 test "x$ac_build_alias" = x &&
3589 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3590 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3591 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3592 ;;
3593 esac
3594 fi
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3596 printf "%s\n" "$ac_cv_build" >&6; }
3597 case $ac_cv_build in
3598 *-*-*) ;;
3599 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3600 esac
3601 build=$ac_cv_build
3602 ac_save_IFS=$IFS; IFS='-'
3603 set x $ac_cv_build
3604 shift
3605 build_cpu=$1
3606 build_vendor=$2
3607 shift; shift
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3610 build_os=$*
3611 IFS=$ac_save_IFS
3612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3613
3614
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3616 printf %s "checking host system type... " >&6; }
3617 if test ${ac_cv_host+y}
3618 then :
3619 printf %s "(cached) " >&6
3620 else case e in #(
3621 e) if test "x$host_alias" = x; then
3622 ac_cv_host=$ac_cv_build
3623 else
3624 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3625 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3626 fi
3627 ;;
3628 esac
3629 fi
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3631 printf "%s\n" "$ac_cv_host" >&6; }
3632 case $ac_cv_host in
3633 *-*-*) ;;
3634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3635 esac
3636 host=$ac_cv_host
3637 ac_save_IFS=$IFS; IFS='-'
3638 set x $ac_cv_host
3639 shift
3640 host_cpu=$1
3641 host_vendor=$2
3642 shift; shift
3643 # Remember, the first character of IFS is used to create $*,
3644 # except with old shells:
3645 host_os=$*
3646 IFS=$ac_save_IFS
3647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3648
3649
3650 # Backslashify metacharacters that are still active within
3651 # double-quoted strings.
3652 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3653
3654 # Same as above, but do not quote variable references.
3655 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3656
3657 # Sed substitution to delay expansion of an escaped shell variable in a
3658 # double_quote_subst'ed string.
3659 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3660
3661 # Sed substitution to delay expansion of an escaped single quote.
3662 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3663
3664 # Sed substitution to avoid accidental globbing in evaled expressions
3665 no_glob_subst='s/\*/\\\*/g'
3666
3667 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3668 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3670
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3672 printf %s "checking how to print strings... " >&6; }
3673 # Test print first, because it will be a builtin if present.
3674 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3675 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3676 ECHO='print -r --'
3677 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3678 ECHO='printf %s\n'
3679 else
3680 # Use this function as a fallback that always works.
3681 func_fallback_echo ()
3682 {
3683 eval 'cat <<_LTECHO_EOF
3684 $1
3685 _LTECHO_EOF'
3686 }
3687 ECHO='func_fallback_echo'
3688 fi
3689
3690 # func_echo_all arg...
3691 # Invoke $ECHO with all args, space-separated.
3692 func_echo_all ()
3693 {
3694 $ECHO ""
3695 }
3696
3697 case $ECHO in
3698 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3699 printf "%s\n" "printf" >&6; } ;;
3700 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3701 printf "%s\n" "print -r" >&6; } ;;
3702 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3703 printf "%s\n" "cat" >&6; } ;;
3704 esac
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728 DEPDIR="${am__leading_dot}deps"
3729
3730 ac_config_commands="$ac_config_commands depfiles"
3731
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3733 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3734 cat > confinc.mk << 'END'
3735 am__doit:
3736 @echo this is the am__doit target >confinc.out
3737 .PHONY: am__doit
3738 END
3739 am__include="#"
3740 am__quote=
3741 # BSD make does it like this.
3742 echo '.include "confinc.mk" # ignored' > confmf.BSD
3743 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3744 echo 'include confinc.mk # ignored' > confmf.GNU
3745 _am_result=no
3746 for s in GNU BSD; do
3747 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3748 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }
3752 case $?:`cat confinc.out 2>/dev/null` in #(
3753 '0:this is the am__doit target') :
3754 case $s in #(
3755 BSD) :
3756 am__include='.include' am__quote='"' ;; #(
3757 *) :
3758 am__include='include' am__quote='' ;;
3759 esac ;; #(
3760 *) :
3761 ;;
3762 esac
3763 if test "$am__include" != "#"; then
3764 _am_result="yes ($s style)"
3765 break
3766 fi
3767 done
3768 rm -f confinc.* confmf.*
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3770 printf "%s\n" "${_am_result}" >&6; }
3771
3772 # Check whether --enable-dependency-tracking was given.
3773 if test ${enable_dependency_tracking+y}
3774 then :
3775 enableval=$enable_dependency_tracking;
3776 fi
3777
3778 if test "x$enable_dependency_tracking" != xno; then
3779 am_depcomp="$ac_aux_dir/depcomp"
3780 AMDEPBACKSLASH='\'
3781 am__nodep='_no'
3782 fi
3783 if test "x$enable_dependency_tracking" != xno; then
3784 AMDEP_TRUE=
3785 AMDEP_FALSE='#'
3786 else
3787 AMDEP_TRUE='#'
3788 AMDEP_FALSE=
3789 fi
3790
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 if test -n "$ac_tool_prefix"; then
3798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 printf %s "checking for $ac_word... " >&6; }
3802 if test ${ac_cv_prog_CC+y}
3803 then :
3804 printf %s "(cached) " >&6
3805 else case e in #(
3806 e) if test -n "$CC"; then
3807 ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 case $as_dir in #(((
3814 '') as_dir=./ ;;
3815 */) ;;
3816 *) as_dir=$as_dir/ ;;
3817 esac
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824 done
3825 done
3826 IFS=$as_save_IFS
3827
3828 fi ;;
3829 esac
3830 fi
3831 CC=$ac_cv_prog_CC
3832 if test -n "$CC"; then
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3834 printf "%s\n" "$CC" >&6; }
3835 else
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 printf "%s\n" "no" >&6; }
3838 fi
3839
3840
3841 fi
3842 if test -z "$ac_cv_prog_CC"; then
3843 ac_ct_CC=$CC
3844 # Extract the first word of "gcc", so it can be a program name with args.
3845 set dummy gcc; ac_word=$2
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 printf %s "checking for $ac_word... " >&6; }
3848 if test ${ac_cv_prog_ac_ct_CC+y}
3849 then :
3850 printf %s "(cached) " >&6
3851 else case e in #(
3852 e) if test -n "$ac_ct_CC"; then
3853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858 IFS=$as_save_IFS
3859 case $as_dir in #(((
3860 '') as_dir=./ ;;
3861 */) ;;
3862 *) as_dir=$as_dir/ ;;
3863 esac
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_ac_ct_CC="gcc"
3867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 fi ;;
3875 esac
3876 fi
3877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3878 if test -n "$ac_ct_CC"; then
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3880 printf "%s\n" "$ac_ct_CC" >&6; }
3881 else
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 printf "%s\n" "no" >&6; }
3884 fi
3885
3886 if test "x$ac_ct_CC" = x; then
3887 CC=""
3888 else
3889 case $cross_compiling:$ac_tool_warned in
3890 yes:)
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3893 ac_tool_warned=yes ;;
3894 esac
3895 CC=$ac_ct_CC
3896 fi
3897 else
3898 CC="$ac_cv_prog_CC"
3899 fi
3900
3901 if test -z "$CC"; then
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}cc; ac_word=$2
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 printf %s "checking for $ac_word... " >&6; }
3907 if test ${ac_cv_prog_CC+y}
3908 then :
3909 printf %s "(cached) " >&6
3910 else case e in #(
3911 e) if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 case $as_dir in #(((
3919 '') as_dir=./ ;;
3920 */) ;;
3921 *) as_dir=$as_dir/ ;;
3922 esac
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CC="${ac_tool_prefix}cc"
3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 fi ;;
3934 esac
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 printf "%s\n" "$CC" >&6; }
3940 else
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 printf "%s\n" "no" >&6; }
3943 fi
3944
3945
3946 fi
3947 fi
3948 if test -z "$CC"; then
3949 # Extract the first word of "cc", so it can be a program name with args.
3950 set dummy cc; ac_word=$2
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 printf %s "checking for $ac_word... " >&6; }
3953 if test ${ac_cv_prog_CC+y}
3954 then :
3955 printf %s "(cached) " >&6
3956 else case e in #(
3957 e) if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 else
3960 ac_prog_rejected=no
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 case $as_dir in #(((
3966 '') as_dir=./ ;;
3967 */) ;;
3968 *) as_dir=$as_dir/ ;;
3969 esac
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3972 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3973 ac_prog_rejected=yes
3974 continue
3975 fi
3976 ac_cv_prog_CC="cc"
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980 done
3981 done
3982 IFS=$as_save_IFS
3983
3984 if test $ac_prog_rejected = yes; then
3985 # We found a bogon in the path, so make sure we never use it.
3986 set dummy $ac_cv_prog_CC
3987 shift
3988 if test $# != 0; then
3989 # We chose a different compiler from the bogus one.
3990 # However, it has the same basename, so the bogon will be chosen
3991 # first if we set CC to just the basename; use the full file name.
3992 shift
3993 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3994 fi
3995 fi
3996 fi ;;
3997 esac
3998 fi
3999 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 printf "%s\n" "$CC" >&6; }
4003 else
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 printf "%s\n" "no" >&6; }
4006 fi
4007
4008
4009 fi
4010 if test -z "$CC"; then
4011 if test -n "$ac_tool_prefix"; then
4012 for ac_prog in cl.exe
4013 do
4014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 printf %s "checking for $ac_word... " >&6; }
4018 if test ${ac_cv_prog_CC+y}
4019 then :
4020 printf %s "(cached) " >&6
4021 else case e in #(
4022 e) if test -n "$CC"; then
4023 ac_cv_prog_CC="$CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 case $as_dir in #(((
4030 '') as_dir=./ ;;
4031 */) ;;
4032 *) as_dir=$as_dir/ ;;
4033 esac
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi ;;
4045 esac
4046 fi
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 printf "%s\n" "$CC" >&6; }
4051 else
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 printf "%s\n" "no" >&6; }
4054 fi
4055
4056
4057 test -n "$CC" && break
4058 done
4059 fi
4060 if test -z "$CC"; then
4061 ac_ct_CC=$CC
4062 for ac_prog in cl.exe
4063 do
4064 # Extract the first word of "$ac_prog", so it can be a program name with args.
4065 set dummy $ac_prog; ac_word=$2
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 printf %s "checking for $ac_word... " >&6; }
4068 if test ${ac_cv_prog_ac_ct_CC+y}
4069 then :
4070 printf %s "(cached) " >&6
4071 else case e in #(
4072 e) if test -n "$ac_ct_CC"; then
4073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078 IFS=$as_save_IFS
4079 case $as_dir in #(((
4080 '') as_dir=./ ;;
4081 */) ;;
4082 *) as_dir=$as_dir/ ;;
4083 esac
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_ac_ct_CC="$ac_prog"
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090 done
4091 done
4092 IFS=$as_save_IFS
4093
4094 fi ;;
4095 esac
4096 fi
4097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4098 if test -n "$ac_ct_CC"; then
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4100 printf "%s\n" "$ac_ct_CC" >&6; }
4101 else
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 printf "%s\n" "no" >&6; }
4104 fi
4105
4106
4107 test -n "$ac_ct_CC" && break
4108 done
4109
4110 if test "x$ac_ct_CC" = x; then
4111 CC=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114 yes:)
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117 ac_tool_warned=yes ;;
4118 esac
4119 CC=$ac_ct_CC
4120 fi
4121 fi
4122
4123 fi
4124 if test -z "$CC"; then
4125 if test -n "$ac_tool_prefix"; then
4126 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4127 set dummy ${ac_tool_prefix}clang; ac_word=$2
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 printf %s "checking for $ac_word... " >&6; }
4130 if test ${ac_cv_prog_CC+y}
4131 then :
4132 printf %s "(cached) " >&6
4133 else case e in #(
4134 e) if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 case $as_dir in #(((
4142 '') as_dir=./ ;;
4143 */) ;;
4144 *) as_dir=$as_dir/ ;;
4145 esac
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_CC="${ac_tool_prefix}clang"
4149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4150 break 2
4151 fi
4152 done
4153 done
4154 IFS=$as_save_IFS
4155
4156 fi ;;
4157 esac
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162 printf "%s\n" "$CC" >&6; }
4163 else
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 printf "%s\n" "no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$ac_cv_prog_CC"; then
4171 ac_ct_CC=$CC
4172 # Extract the first word of "clang", so it can be a program name with args.
4173 set dummy clang; ac_word=$2
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 printf %s "checking for $ac_word... " >&6; }
4176 if test ${ac_cv_prog_ac_ct_CC+y}
4177 then :
4178 printf %s "(cached) " >&6
4179 else case e in #(
4180 e) if test -n "$ac_ct_CC"; then
4181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 case $as_dir in #(((
4188 '') as_dir=./ ;;
4189 */) ;;
4190 *) as_dir=$as_dir/ ;;
4191 esac
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_ac_ct_CC="clang"
4195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198 done
4199 done
4200 IFS=$as_save_IFS
4201
4202 fi ;;
4203 esac
4204 fi
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 printf "%s\n" "$ac_ct_CC" >&6; }
4209 else
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 printf "%s\n" "no" >&6; }
4212 fi
4213
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218 yes:)
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4222 esac
4223 CC=$ac_ct_CC
4224 fi
4225 else
4226 CC="$ac_cv_prog_CC"
4227 fi
4228
4229 fi
4230
4231
4232 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4233 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4234 as_fn_error $? "no acceptable C compiler found in \$PATH
4235 See 'config.log' for more details" "$LINENO" 5; }
4236
4237 # Provide some information about the compiler.
4238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4239 set X $ac_compile
4240 ac_compiler=$2
4241 for ac_option in --version -v -V -qversion -version; do
4242 { { ac_try="$ac_compiler $ac_option >&5"
4243 case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246 esac
4247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248 printf "%s\n" "$ac_try_echo"; } >&5
4249 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4250 ac_status=$?
4251 if test -s conftest.err; then
4252 sed '10a\
4253 ... rest of stderr output deleted ...
4254 10q' conftest.err >conftest.er1
4255 cat conftest.er1 >&5
4256 fi
4257 rm -f conftest.er1 conftest.err
4258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; }
4260 done
4261
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264
4265 int
4266 main (void)
4267 {
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 ac_clean_files_save=$ac_clean_files
4274 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4275 # Try to create an executable without -o first, disregard a.out.
4276 # It will help us diagnose broken compilers, and finding out an intuition
4277 # of exeext.
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4279 printf %s "checking whether the C compiler works... " >&6; }
4280 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4281
4282 # The possible output files:
4283 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4284
4285 ac_rmfiles=
4286 for ac_file in $ac_files
4287 do
4288 case $ac_file in
4289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4291 esac
4292 done
4293 rm -f $ac_rmfiles
4294
4295 if { { ac_try="$ac_link_default"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 printf "%s\n" "$ac_try_echo"; } >&5
4302 (eval "$ac_link_default") 2>&5
4303 ac_status=$?
4304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }
4306 then :
4307 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4308 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4309 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4310 # so that the user can short-circuit this test for compilers unknown to
4311 # Autoconf.
4312 for ac_file in $ac_files ''
4313 do
4314 test -f "$ac_file" || continue
4315 case $ac_file in
4316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4317 ;;
4318 [ab].out )
4319 # We found the default executable, but exeext='' is most
4320 # certainly right.
4321 break;;
4322 *.* )
4323 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4324 then :; else
4325 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4326 fi
4327 # We set ac_cv_exeext here because the later test for it is not
4328 # safe: cross compilers may not add the suffix if given an '-o'
4329 # argument, so we may need to know it at that point already.
4330 # Even if this section looks crufty: it has the advantage of
4331 # actually working.
4332 break;;
4333 * )
4334 break;;
4335 esac
4336 done
4337 test "$ac_cv_exeext" = no && ac_cv_exeext=
4338
4339 else case e in #(
4340 e) ac_file='' ;;
4341 esac
4342 fi
4343 if test -z "$ac_file"
4344 then :
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 printf "%s\n" "no" >&6; }
4347 printf "%s\n" "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4351 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4352 as_fn_error 77 "C compiler cannot create executables
4353 See 'config.log' for more details" "$LINENO" 5; }
4354 else case e in #(
4355 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 printf "%s\n" "yes" >&6; } ;;
4357 esac
4358 fi
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4360 printf %s "checking for C compiler default output file name... " >&6; }
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4362 printf "%s\n" "$ac_file" >&6; }
4363 ac_exeext=$ac_cv_exeext
4364
4365 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4366 ac_clean_files=$ac_clean_files_save
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4368 printf %s "checking for suffix of executables... " >&6; }
4369 if { { ac_try="$ac_link"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 printf "%s\n" "$ac_try_echo"; } >&5
4376 (eval "$ac_link") 2>&5
4377 ac_status=$?
4378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; }
4380 then :
4381 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4382 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4383 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4384 # 'rm'.
4385 for ac_file in conftest.exe conftest conftest.*; do
4386 test -f "$ac_file" || continue
4387 case $ac_file in
4388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4390 break;;
4391 * ) break;;
4392 esac
4393 done
4394 else case e in #(
4395 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4396 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4397 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4398 See 'config.log' for more details" "$LINENO" 5; } ;;
4399 esac
4400 fi
4401 rm -f conftest conftest$ac_cv_exeext
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4403 printf "%s\n" "$ac_cv_exeext" >&6; }
4404
4405 rm -f conftest.$ac_ext
4406 EXEEXT=$ac_cv_exeext
4407 ac_exeext=$EXEEXT
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #include <stdio.h>
4411 int
4412 main (void)
4413 {
4414 FILE *f = fopen ("conftest.out", "w");
4415 if (!f)
4416 return 1;
4417 return ferror (f) || fclose (f) != 0;
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 ac_clean_files="$ac_clean_files conftest.out"
4424 # Check that the compiler produces executables we can run. If not, either
4425 # the compiler is broken, or we cross compile.
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4427 printf %s "checking whether we are cross compiling... " >&6; }
4428 if test "$cross_compiling" != yes; then
4429 { { ac_try="$ac_link"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 printf "%s\n" "$ac_try_echo"; } >&5
4436 (eval "$ac_link") 2>&5
4437 ac_status=$?
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4440 if { ac_try='./conftest$ac_cv_exeext'
4441 { { case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 printf "%s\n" "$ac_try_echo"; } >&5
4447 (eval "$ac_try") 2>&5
4448 ac_status=$?
4449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }; }; then
4451 cross_compiling=no
4452 else
4453 if test "$cross_compiling" = maybe; then
4454 cross_compiling=yes
4455 else
4456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4457 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4458 as_fn_error 77 "cannot run C compiled programs.
4459 If you meant to cross compile, use '--host'.
4460 See 'config.log' for more details" "$LINENO" 5; }
4461 fi
4462 fi
4463 fi
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4465 printf "%s\n" "$cross_compiling" >&6; }
4466
4467 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4468 conftest.o conftest.obj conftest.out
4469 ac_clean_files=$ac_clean_files_save
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4471 printf %s "checking for suffix of object files... " >&6; }
4472 if test ${ac_cv_objext+y}
4473 then :
4474 printf %s "(cached) " >&6
4475 else case e in #(
4476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478
4479 int
4480 main (void)
4481 {
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.o conftest.obj
4488 if { { ac_try="$ac_compile"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 printf "%s\n" "$ac_try_echo"; } >&5
4495 (eval "$ac_compile") 2>&5
4496 ac_status=$?
4497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4499 then :
4500 for ac_file in conftest.o conftest.obj conftest.*; do
4501 test -f "$ac_file" || continue;
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4505 break;;
4506 esac
4507 done
4508 else case e in #(
4509 e) printf "%s\n" "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4514 as_fn_error $? "cannot compute suffix of object files: cannot compile
4515 See 'config.log' for more details" "$LINENO" 5; } ;;
4516 esac
4517 fi
4518 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4519 esac
4520 fi
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4522 printf "%s\n" "$ac_cv_objext" >&6; }
4523 OBJEXT=$ac_cv_objext
4524 ac_objext=$OBJEXT
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4526 printf %s "checking whether the compiler supports GNU C... " >&6; }
4527 if test ${ac_cv_c_compiler_gnu+y}
4528 then :
4529 printf %s "(cached) " >&6
4530 else case e in #(
4531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533
4534 int
4535 main (void)
4536 {
4537 #ifndef __GNUC__
4538 choke me
4539 #endif
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"
4546 then :
4547 ac_compiler_gnu=yes
4548 else case e in #(
4549 e) ac_compiler_gnu=no ;;
4550 esac
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4554 ;;
4555 esac
4556 fi
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4558 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561 if test $ac_compiler_gnu = yes; then
4562 GCC=yes
4563 else
4564 GCC=
4565 fi
4566 ac_test_CFLAGS=${CFLAGS+y}
4567 ac_save_CFLAGS=$CFLAGS
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4569 printf %s "checking whether $CC accepts -g... " >&6; }
4570 if test ${ac_cv_prog_cc_g+y}
4571 then :
4572 printf %s "(cached) " >&6
4573 else case e in #(
4574 e) ac_save_c_werror_flag=$ac_c_werror_flag
4575 ac_c_werror_flag=yes
4576 ac_cv_prog_cc_g=no
4577 CFLAGS="-g"
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580
4581 int
4582 main (void)
4583 {
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"
4590 then :
4591 ac_cv_prog_cc_g=yes
4592 else case e in #(
4593 e) CFLAGS=""
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596
4597 int
4598 main (void)
4599 {
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_c_try_compile "$LINENO"
4606 then :
4607
4608 else case e in #(
4609 e) ac_c_werror_flag=$ac_save_c_werror_flag
4610 CFLAGS="-g"
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 int
4615 main (void)
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"
4623 then :
4624 ac_cv_prog_cc_g=yes
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4627 esac
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4630 esac
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4633 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4634 esac
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4637 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4638 if test $ac_test_CFLAGS; then
4639 CFLAGS=$ac_save_CFLAGS
4640 elif test $ac_cv_prog_cc_g = yes; then
4641 if test "$GCC" = yes; then
4642 CFLAGS="-g -O2"
4643 else
4644 CFLAGS="-g"
4645 fi
4646 else
4647 if test "$GCC" = yes; then
4648 CFLAGS="-O2"
4649 else
4650 CFLAGS=
4651 fi
4652 fi
4653 ac_prog_cc_stdc=no
4654 if test x$ac_prog_cc_stdc = xno
4655 then :
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4657 printf %s "checking for $CC option to enable C11 features... " >&6; }
4658 if test ${ac_cv_prog_cc_c11+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else case e in #(
4662 e) ac_cv_prog_cc_c11=no
4663 ac_save_CC=$CC
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 $ac_c_conftest_c11_program
4667 _ACEOF
4668 for ac_arg in '' -std=gnu11
4669 do
4670 CC="$ac_save_CC $ac_arg"
4671 if ac_fn_c_try_compile "$LINENO"
4672 then :
4673 ac_cv_prog_cc_c11=$ac_arg
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.beam
4676 test "x$ac_cv_prog_cc_c11" != "xno" && break
4677 done
4678 rm -f conftest.$ac_ext
4679 CC=$ac_save_CC ;;
4680 esac
4681 fi
4682
4683 if test "x$ac_cv_prog_cc_c11" = xno
4684 then :
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4686 printf "%s\n" "unsupported" >&6; }
4687 else case e in #(
4688 e) if test "x$ac_cv_prog_cc_c11" = x
4689 then :
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4691 printf "%s\n" "none needed" >&6; }
4692 else case e in #(
4693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4694 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4695 CC="$CC $ac_cv_prog_cc_c11" ;;
4696 esac
4697 fi
4698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4699 ac_prog_cc_stdc=c11 ;;
4700 esac
4701 fi
4702 fi
4703 if test x$ac_prog_cc_stdc = xno
4704 then :
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4706 printf %s "checking for $CC option to enable C99 features... " >&6; }
4707 if test ${ac_cv_prog_cc_c99+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else case e in #(
4711 e) ac_cv_prog_cc_c99=no
4712 ac_save_CC=$CC
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 $ac_c_conftest_c99_program
4716 _ACEOF
4717 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4718 do
4719 CC="$ac_save_CC $ac_arg"
4720 if ac_fn_c_try_compile "$LINENO"
4721 then :
4722 ac_cv_prog_cc_c99=$ac_arg
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.beam
4725 test "x$ac_cv_prog_cc_c99" != "xno" && break
4726 done
4727 rm -f conftest.$ac_ext
4728 CC=$ac_save_CC ;;
4729 esac
4730 fi
4731
4732 if test "x$ac_cv_prog_cc_c99" = xno
4733 then :
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4735 printf "%s\n" "unsupported" >&6; }
4736 else case e in #(
4737 e) if test "x$ac_cv_prog_cc_c99" = x
4738 then :
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4740 printf "%s\n" "none needed" >&6; }
4741 else case e in #(
4742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4743 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4744 CC="$CC $ac_cv_prog_cc_c99" ;;
4745 esac
4746 fi
4747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4748 ac_prog_cc_stdc=c99 ;;
4749 esac
4750 fi
4751 fi
4752 if test x$ac_prog_cc_stdc = xno
4753 then :
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4755 printf %s "checking for $CC option to enable C89 features... " >&6; }
4756 if test ${ac_cv_prog_cc_c89+y}
4757 then :
4758 printf %s "(cached) " >&6
4759 else case e in #(
4760 e) ac_cv_prog_cc_c89=no
4761 ac_save_CC=$CC
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 $ac_c_conftest_c89_program
4765 _ACEOF
4766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4767 do
4768 CC="$ac_save_CC $ac_arg"
4769 if ac_fn_c_try_compile "$LINENO"
4770 then :
4771 ac_cv_prog_cc_c89=$ac_arg
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext conftest.beam
4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
4775 done
4776 rm -f conftest.$ac_ext
4777 CC=$ac_save_CC ;;
4778 esac
4779 fi
4780
4781 if test "x$ac_cv_prog_cc_c89" = xno
4782 then :
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784 printf "%s\n" "unsupported" >&6; }
4785 else case e in #(
4786 e) if test "x$ac_cv_prog_cc_c89" = x
4787 then :
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4789 printf "%s\n" "none needed" >&6; }
4790 else case e in #(
4791 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4792 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4793 CC="$CC $ac_cv_prog_cc_c89" ;;
4794 esac
4795 fi
4796 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4797 ac_prog_cc_stdc=c89 ;;
4798 esac
4799 fi
4800 fi
4801
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807
4808
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4815 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4816 if test ${am_cv_prog_cc_c_o+y}
4817 then :
4818 printf %s "(cached) " >&6
4819 else case e in #(
4820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822
4823 int
4824 main (void)
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 # Make sure it works both with $CC and with simple cc.
4832 # Following AC_PROG_CC_C_O, we do the test twice because some
4833 # compilers refuse to overwrite an existing .o file with -o,
4834 # though they will create one.
4835 am_cv_prog_cc_c_o=yes
4836 for am_i in 1 2; do
4837 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4838 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } \
4842 && test -f conftest2.$ac_objext; then
4843 : OK
4844 else
4845 am_cv_prog_cc_c_o=no
4846 break
4847 fi
4848 done
4849 # aligned with autoconf, so not including core; see bug#72225.
4850 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4851 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4852 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4853 unset am_i ;;
4854 esac
4855 fi
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4857 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4858 if test "$am_cv_prog_cc_c_o" != yes; then
4859 # Losing compiler, so override with the script.
4860 # FIXME: It is wrong to rewrite CC.
4861 # But if we don't then we get into trouble of one sort or another.
4862 # A longer-term fix would be to have automake use am__CC in this case,
4863 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4864 CC="$am_aux_dir/compile $CC"
4865 fi
4866 ac_ext=c
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872
4873 depcc="$CC" am_compiler_list=
4874
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4876 printf %s "checking dependency style of $depcc... " >&6; }
4877 if test ${am_cv_CC_dependencies_compiler_type+y}
4878 then :
4879 printf %s "(cached) " >&6
4880 else case e in #(
4881 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4882 # We make a subdir and do the tests there. Otherwise we can end up
4883 # making bogus files that we don't know about and never remove. For
4884 # instance it was reported that on HP-UX the gcc test will end up
4885 # making a dummy file named 'D' -- because '-MD' means "put the output
4886 # in D".
4887 rm -rf conftest.dir
4888 mkdir conftest.dir
4889 # Copy depcomp to subdir because otherwise we won't find it if we're
4890 # using a relative directory.
4891 cp "$am_depcomp" conftest.dir
4892 cd conftest.dir
4893 # We will build objects and dependencies in a subdirectory because
4894 # it helps to detect inapplicable dependency modes. For instance
4895 # both Tru64's cc and ICC support -MD to output dependencies as a
4896 # side effect of compilation, but ICC will put the dependencies in
4897 # the current directory while Tru64 will put them in the object
4898 # directory.
4899 mkdir sub
4900
4901 am_cv_CC_dependencies_compiler_type=none
4902 if test "$am_compiler_list" = ""; then
4903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4904 fi
4905 am__universal=false
4906 case " $depcc " in #(
4907 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4908 esac
4909
4910 for depmode in $am_compiler_list; do
4911 # Setup a source with many dependencies, because some compilers
4912 # like to wrap large dependency lists on column 80 (with \), and
4913 # we should not choose a depcomp mode which is confused by this.
4914 #
4915 # We need to recreate these files for each test, as the compiler may
4916 # overwrite some of them when testing with obscure command lines.
4917 # This happens at least with the AIX C compiler.
4918 : > sub/conftest.c
4919 for i in 1 2 3 4 5 6; do
4920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4921 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4922 # Solaris 10 /bin/sh.
4923 echo '/* dummy */' > sub/conftst$i.h
4924 done
4925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4926
4927 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4928 # mode. It turns out that the SunPro C++ compiler does not properly
4929 # handle '-M -o', and we need to detect this. Also, some Intel
4930 # versions had trouble with output in subdirs.
4931 am__obj=sub/conftest.${OBJEXT-o}
4932 am__minus_obj="-o $am__obj"
4933 case $depmode in
4934 gcc)
4935 # This depmode causes a compiler race in universal mode.
4936 test "$am__universal" = false || continue
4937 ;;
4938 nosideeffect)
4939 # After this tag, mechanisms are not by side-effect, so they'll
4940 # only be used when explicitly requested.
4941 if test "x$enable_dependency_tracking" = xyes; then
4942 continue
4943 else
4944 break
4945 fi
4946 ;;
4947 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4948 # This compiler won't grok '-c -o', but also, the minuso test has
4949 # not run yet. These depmodes are late enough in the game, and
4950 # so weak that their functioning should not be impacted.
4951 am__obj=conftest.${OBJEXT-o}
4952 am__minus_obj=
4953 ;;
4954 none) break ;;
4955 esac
4956 if depmode=$depmode \
4957 source=sub/conftest.c object=$am__obj \
4958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4959 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4960 >/dev/null 2>conftest.err &&
4961 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4963 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4965 # icc doesn't choke on unknown options, it will just issue warnings
4966 # or remarks (even with -Werror). So we grep stderr for any message
4967 # that says an option was ignored or not supported.
4968 # When given -MP, icc 7.0 and 7.1 complain thus:
4969 # icc: Command line warning: ignoring option '-M'; no argument required
4970 # The diagnosis changed in icc 8.0:
4971 # icc: Command line remark: option '-MP' not supported
4972 if (grep 'ignoring option' conftest.err ||
4973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4974 am_cv_CC_dependencies_compiler_type=$depmode
4975 break
4976 fi
4977 fi
4978 done
4979
4980 cd ..
4981 rm -rf conftest.dir
4982 else
4983 am_cv_CC_dependencies_compiler_type=none
4984 fi
4985 ;;
4986 esac
4987 fi
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4989 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4990 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4991
4992 if
4993 test "x$enable_dependency_tracking" != xno \
4994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4995 am__fastdepCC_TRUE=
4996 am__fastdepCC_FALSE='#'
4997 else
4998 am__fastdepCC_TRUE='#'
4999 am__fastdepCC_FALSE=
5000 fi
5001
5002
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5004 printf %s "checking for a sed that does not truncate output... " >&6; }
5005 if test ${ac_cv_path_SED+y}
5006 then :
5007 printf %s "(cached) " >&6
5008 else case e in #(
5009 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5010 for ac_i in 1 2 3 4 5 6 7; do
5011 ac_script="$ac_script$as_nl$ac_script"
5012 done
5013 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5014 { ac_script=; unset ac_script;}
5015 if test -z "$SED"; then
5016 ac_path_SED_found=false
5017 # Loop through the user's path and test for each of PROGNAME-LIST
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 case $as_dir in #(((
5023 '') as_dir=./ ;;
5024 */) ;;
5025 *) as_dir=$as_dir/ ;;
5026 esac
5027 for ac_prog in sed gsed
5028 do
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5031 as_fn_executable_p "$ac_path_SED" || continue
5032 # Check for GNU ac_path_SED and select it if it is found.
5033 # Check for GNU $ac_path_SED
5034 case `"$ac_path_SED" --version 2>&1` in #(
5035 *GNU*)
5036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5037 #(
5038 *)
5039 ac_count=0
5040 printf %s 0123456789 >"conftest.in"
5041 while :
5042 do
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 printf "%s\n" '' >> "conftest.nl"
5047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5049 as_fn_arith $ac_count + 1 && ac_count=$as_val
5050 if test $ac_count -gt ${ac_path_SED_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_SED="$ac_path_SED"
5053 ac_path_SED_max=$ac_count
5054 fi
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5057 done
5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 esac
5060
5061 $ac_path_SED_found && break 3
5062 done
5063 done
5064 done
5065 IFS=$as_save_IFS
5066 if test -z "$ac_cv_path_SED"; then
5067 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5068 fi
5069 else
5070 ac_cv_path_SED=$SED
5071 fi
5072 ;;
5073 esac
5074 fi
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5076 printf "%s\n" "$ac_cv_path_SED" >&6; }
5077 SED="$ac_cv_path_SED"
5078 rm -f conftest.sed
5079
5080 test -z "$SED" && SED=sed
5081 Xsed="$SED -e 1s/^X//"
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5094 printf %s "checking for grep that handles long lines and -e... " >&6; }
5095 if test ${ac_cv_path_GREP+y}
5096 then :
5097 printf %s "(cached) " >&6
5098 else case e in #(
5099 e) if test -z "$GREP"; then
5100 ac_path_GREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105 IFS=$as_save_IFS
5106 case $as_dir in #(((
5107 '') as_dir=./ ;;
5108 */) ;;
5109 *) as_dir=$as_dir/ ;;
5110 esac
5111 for ac_prog in grep ggrep
5112 do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5115 as_fn_executable_p "$ac_path_GREP" || continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117 # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in #(
5119 *GNU*)
5120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5121 #(
5122 *)
5123 ac_count=0
5124 printf %s 0123456789 >"conftest.in"
5125 while :
5126 do
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 printf "%s\n" 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP="$ac_path_GREP"
5137 ac_path_GREP_max=$ac_count
5138 fi
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145 $ac_path_GREP_found && break 3
5146 done
5147 done
5148 done
5149 IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 fi
5153 else
5154 ac_cv_path_GREP=$GREP
5155 fi
5156 ;;
5157 esac
5158 fi
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5161 GREP="$ac_cv_path_GREP"
5162
5163
5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 printf %s "checking for egrep... " >&6; }
5166 if test ${ac_cv_path_EGREP+y}
5167 then :
5168 printf %s "(cached) " >&6
5169 else case e in #(
5170 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171 then ac_cv_path_EGREP="$GREP -E"
5172 else
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 do
5179 IFS=$as_save_IFS
5180 case $as_dir in #(((
5181 '') as_dir=./ ;;
5182 */) ;;
5183 *) as_dir=$as_dir/ ;;
5184 esac
5185 for ac_prog in egrep
5186 do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5189 as_fn_executable_p "$ac_path_EGREP" || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in #(
5193 *GNU*)
5194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 #(
5196 *)
5197 ac_count=0
5198 printf %s 0123456789 >"conftest.in"
5199 while :
5200 do
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 printf "%s\n" 'EGREP' >> "conftest.nl"
5205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207 as_fn_arith $ac_count + 1 && ac_count=$as_val
5208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_EGREP="$ac_path_EGREP"
5211 ac_path_EGREP_max=$ac_count
5212 fi
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5215 done
5216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 esac
5218
5219 $ac_path_EGREP_found && break 3
5220 done
5221 done
5222 done
5223 IFS=$as_save_IFS
5224 if test -z "$ac_cv_path_EGREP"; then
5225 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226 fi
5227 else
5228 ac_cv_path_EGREP=$EGREP
5229 fi
5230
5231 fi ;;
5232 esac
5233 fi
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5235 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5236 EGREP="$ac_cv_path_EGREP"
5237
5238 EGREP_TRADITIONAL=$EGREP
5239 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5240
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5242 printf %s "checking for fgrep... " >&6; }
5243 if test ${ac_cv_path_FGREP+y}
5244 then :
5245 printf %s "(cached) " >&6
5246 else case e in #(
5247 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5248 then ac_cv_path_FGREP="$GREP -F"
5249 else
5250 if test -z "$FGREP"; then
5251 ac_path_FGREP_found=false
5252 # Loop through the user's path and test for each of PROGNAME-LIST
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5255 do
5256 IFS=$as_save_IFS
5257 case $as_dir in #(((
5258 '') as_dir=./ ;;
5259 */) ;;
5260 *) as_dir=$as_dir/ ;;
5261 esac
5262 for ac_prog in fgrep
5263 do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5266 as_fn_executable_p "$ac_path_FGREP" || continue
5267 # Check for GNU ac_path_FGREP and select it if it is found.
5268 # Check for GNU $ac_path_FGREP
5269 case `"$ac_path_FGREP" --version 2>&1` in #(
5270 *GNU*)
5271 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5272 #(
5273 *)
5274 ac_count=0
5275 printf %s 0123456789 >"conftest.in"
5276 while :
5277 do
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 printf "%s\n" 'FGREP' >> "conftest.nl"
5282 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_FGREP="$ac_path_FGREP"
5288 ac_path_FGREP_max=$ac_count
5289 fi
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5292 done
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296 $ac_path_FGREP_found && break 3
5297 done
5298 done
5299 done
5300 IFS=$as_save_IFS
5301 if test -z "$ac_cv_path_FGREP"; then
5302 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303 fi
5304 else
5305 ac_cv_path_FGREP=$FGREP
5306 fi
5307
5308 fi ;;
5309 esac
5310 fi
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5312 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5313 FGREP="$ac_cv_path_FGREP"
5314
5315
5316 test -z "$GREP" && GREP=grep
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 # Check whether --with-gnu-ld was given.
5337 if test ${with_gnu_ld+y}
5338 then :
5339 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5340 else case e in #(
5341 e) with_gnu_ld=no ;;
5342 esac
5343 fi
5344
5345 ac_prog=ld
5346 if test yes = "$GCC"; then
5347 # Check if gcc -print-prog-name=ld gives a path.
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5349 printf %s "checking for ld used by $CC... " >&6; }
5350 case $host in
5351 *-*-mingw* | *-*-windows*)
5352 # gcc leaves a trailing carriage return, which upsets mingw
5353 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5354 *)
5355 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5356 esac
5357 case $ac_prog in
5358 # Accept absolute paths.
5359 [\\/]* | ?:[\\/]*)
5360 re_direlt='/[^/][^/]*/\.\./'
5361 # Canonicalize the pathname of ld
5362 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5363 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5364 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5365 done
5366 test -z "$LD" && LD=$ac_prog
5367 ;;
5368 "")
5369 # If it fails, then pretend we aren't using GCC.
5370 ac_prog=ld
5371 ;;
5372 *)
5373 # If it is relative, then search for the first ld in PATH.
5374 with_gnu_ld=unknown
5375 ;;
5376 esac
5377 elif test yes = "$with_gnu_ld"; then
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5379 printf %s "checking for GNU ld... " >&6; }
5380 else
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5382 printf %s "checking for non-GNU ld... " >&6; }
5383 fi
5384 if test ${lt_cv_path_LD+y}
5385 then :
5386 printf %s "(cached) " >&6
5387 else case e in #(
5388 e) if test -z "$LD"; then
5389 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5390 for ac_dir in $PATH; do
5391 IFS=$lt_save_ifs
5392 test -z "$ac_dir" && ac_dir=.
5393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5394 lt_cv_path_LD=$ac_dir/$ac_prog
5395 # Check to see if the program is GNU ld. I'd rather use --version,
5396 # but apparently some variants of GNU ld only accept -v.
5397 # Break only if it was the GNU/non-GNU ld that we prefer.
5398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5399 *GNU* | *'with BFD'*)
5400 test no != "$with_gnu_ld" && break
5401 ;;
5402 *)
5403 test yes != "$with_gnu_ld" && break
5404 ;;
5405 esac
5406 fi
5407 done
5408 IFS=$lt_save_ifs
5409 else
5410 lt_cv_path_LD=$LD # Let the user override the test with a path.
5411 fi ;;
5412 esac
5413 fi
5414
5415 LD=$lt_cv_path_LD
5416 if test -n "$LD"; then
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5418 printf "%s\n" "$LD" >&6; }
5419 else
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 printf "%s\n" "no" >&6; }
5422 fi
5423 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5425 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5426 if test ${lt_cv_prog_gnu_ld+y}
5427 then :
5428 printf %s "(cached) " >&6
5429 else case e in #(
5430 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5431 case `$LD -v 2>&1 </dev/null` in
5432 *GNU* | *'with BFD'*)
5433 lt_cv_prog_gnu_ld=yes
5434 ;;
5435 *)
5436 lt_cv_prog_gnu_ld=no
5437 ;;
5438 esac ;;
5439 esac
5440 fi
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5442 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5443 with_gnu_ld=$lt_cv_prog_gnu_ld
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5454 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5455 if test ${lt_cv_path_NM+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else case e in #(
5459 e) if test -n "$NM"; then
5460 # Let the user override the test.
5461 lt_cv_path_NM=$NM
5462 else
5463 lt_nm_to_check=${ac_tool_prefix}nm
5464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5465 lt_nm_to_check="$lt_nm_to_check nm"
5466 fi
5467 for lt_tmp_nm in $lt_nm_to_check; do
5468 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5470 IFS=$lt_save_ifs
5471 test -z "$ac_dir" && ac_dir=.
5472 tmp_nm=$ac_dir/$lt_tmp_nm
5473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5474 # Check to see if the nm accepts a BSD-compat flag.
5475 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5476 # nm: unknown option "B" ignored
5477 # Tru64's nm complains that /dev/null is an invalid object file
5478 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5479 case $build_os in
5480 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5481 *) lt_bad_file=/dev/null ;;
5482 esac
5483 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5484 *$lt_bad_file* | *'Invalid file or object type'*)
5485 lt_cv_path_NM="$tmp_nm -B"
5486 break 2
5487 ;;
5488 *)
5489 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5490 */dev/null*)
5491 lt_cv_path_NM="$tmp_nm -p"
5492 break 2
5493 ;;
5494 *)
5495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5496 continue # so that we can try to find one that supports BSD flags
5497 ;;
5498 esac
5499 ;;
5500 esac
5501 fi
5502 done
5503 IFS=$lt_save_ifs
5504 done
5505 : ${lt_cv_path_NM=no}
5506 fi ;;
5507 esac
5508 fi
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5510 printf "%s\n" "$lt_cv_path_NM" >&6; }
5511 if test no != "$lt_cv_path_NM"; then
5512 NM=$lt_cv_path_NM
5513 else
5514 # Didn't find any BSD compatible name lister, look for dumpbin.
5515 if test -n "$DUMPBIN"; then :
5516 # Let the user override the test.
5517 else
5518 if test -n "$ac_tool_prefix"; then
5519 for ac_prog in dumpbin "link -dump"
5520 do
5521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 printf %s "checking for $ac_word... " >&6; }
5525 if test ${ac_cv_prog_DUMPBIN+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else case e in #(
5529 e) if test -n "$DUMPBIN"; then
5530 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535 IFS=$as_save_IFS
5536 case $as_dir in #(((
5537 '') as_dir=./ ;;
5538 */) ;;
5539 *) as_dir=$as_dir/ ;;
5540 esac
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547 done
5548 done
5549 IFS=$as_save_IFS
5550
5551 fi ;;
5552 esac
5553 fi
5554 DUMPBIN=$ac_cv_prog_DUMPBIN
5555 if test -n "$DUMPBIN"; then
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5557 printf "%s\n" "$DUMPBIN" >&6; }
5558 else
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 printf "%s\n" "no" >&6; }
5561 fi
5562
5563
5564 test -n "$DUMPBIN" && break
5565 done
5566 fi
5567 if test -z "$DUMPBIN"; then
5568 ac_ct_DUMPBIN=$DUMPBIN
5569 for ac_prog in dumpbin "link -dump"
5570 do
5571 # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 printf %s "checking for $ac_word... " >&6; }
5575 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5576 then :
5577 printf %s "(cached) " >&6
5578 else case e in #(
5579 e) if test -n "$ac_ct_DUMPBIN"; then
5580 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 case $as_dir in #(((
5587 '') as_dir=./ ;;
5588 */) ;;
5589 *) as_dir=$as_dir/ ;;
5590 esac
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi ;;
5602 esac
5603 fi
5604 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5605 if test -n "$ac_ct_DUMPBIN"; then
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5607 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5608 else
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 printf "%s\n" "no" >&6; }
5611 fi
5612
5613
5614 test -n "$ac_ct_DUMPBIN" && break
5615 done
5616
5617 if test "x$ac_ct_DUMPBIN" = x; then
5618 DUMPBIN=":"
5619 else
5620 case $cross_compiling:$ac_tool_warned in
5621 yes:)
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5625 esac
5626 DUMPBIN=$ac_ct_DUMPBIN
5627 fi
5628 fi
5629
5630 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5631 *COFF*)
5632 DUMPBIN="$DUMPBIN -symbols -headers"
5633 ;;
5634 *)
5635 DUMPBIN=:
5636 ;;
5637 esac
5638 fi
5639
5640 if test : != "$DUMPBIN"; then
5641 NM=$DUMPBIN
5642 fi
5643 fi
5644 test -z "$NM" && NM=nm
5645
5646
5647
5648
5649
5650
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5652 printf %s "checking the name lister ($NM) interface... " >&6; }
5653 if test ${lt_cv_nm_interface+y}
5654 then :
5655 printf %s "(cached) " >&6
5656 else case e in #(
5657 e) lt_cv_nm_interface="BSD nm"
5658 echo "int some_variable = 0;" > conftest.$ac_ext
5659 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5660 (eval "$ac_compile" 2>conftest.err)
5661 cat conftest.err >&5
5662 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5663 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5664 cat conftest.err >&5
5665 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5666 cat conftest.out >&5
5667 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5668 lt_cv_nm_interface="MS dumpbin"
5669 fi
5670 rm -f conftest* ;;
5671 esac
5672 fi
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5674 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5675
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5677 printf %s "checking whether ln -s works... " >&6; }
5678 LN_S=$as_ln_s
5679 if test "$LN_S" = "ln -s"; then
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5681 printf "%s\n" "yes" >&6; }
5682 else
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5684 printf "%s\n" "no, using $LN_S" >&6; }
5685 fi
5686
5687 # find the maximum length of command line arguments
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5689 printf %s "checking the maximum length of command line arguments... " >&6; }
5690 if test ${lt_cv_sys_max_cmd_len+y}
5691 then :
5692 printf %s "(cached) " >&6
5693 else case e in #(
5694 e) i=0
5695 teststring=ABCD
5696
5697 case $build_os in
5698 msdosdjgpp*)
5699 # On DJGPP, this test can blow up pretty badly due to problems in libc
5700 # (any single argument exceeding 2000 bytes causes a buffer overrun
5701 # during glob expansion). Even if it were fixed, the result of this
5702 # check would be larger than it should be.
5703 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5704 ;;
5705
5706 gnu* | ironclad*)
5707 # Under GNU Hurd and Ironclad, this test is not required because there
5708 # is no limit to the length of command line arguments.
5709 # Libtool will interpret -1 as no limit whatsoever
5710 lt_cv_sys_max_cmd_len=-1;
5711 ;;
5712
5713 cygwin* | mingw* | windows* | cegcc*)
5714 # On Win9x/ME, this test blows up -- it succeeds, but takes
5715 # about 5 minutes as the teststring grows exponentially.
5716 # Worse, since 9x/ME are not pre-emptively multitasking,
5717 # you end up with a "frozen" computer, even though with patience
5718 # the test eventually succeeds (with a max line length of 256k).
5719 # Instead, let's just punt: use the minimum linelength reported by
5720 # all of the supported platforms: 8192 (on NT/2K/XP).
5721 lt_cv_sys_max_cmd_len=8192;
5722 ;;
5723
5724 mint*)
5725 # On MiNT this can take a long time and run out of memory.
5726 lt_cv_sys_max_cmd_len=8192;
5727 ;;
5728
5729 amigaos*)
5730 # On AmigaOS with pdksh, this test takes hours, literally.
5731 # So we just punt and use a minimum line length of 8192.
5732 lt_cv_sys_max_cmd_len=8192;
5733 ;;
5734
5735 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5736 # This has been around since 386BSD, at least. Likely further.
5737 if test -x /sbin/sysctl; then
5738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5739 elif test -x /usr/sbin/sysctl; then
5740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5741 else
5742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5743 fi
5744 # And add a safety zone
5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747 ;;
5748
5749 interix*)
5750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5751 lt_cv_sys_max_cmd_len=196608
5752 ;;
5753
5754 os2*)
5755 # The test takes a long time on OS/2.
5756 lt_cv_sys_max_cmd_len=8192
5757 ;;
5758
5759 osf*)
5760 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5761 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5762 # nice to cause kernel panics so lets avoid the loop below.
5763 # First set a reasonable default.
5764 lt_cv_sys_max_cmd_len=16384
5765 #
5766 if test -x /sbin/sysconfig; then
5767 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5768 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5769 esac
5770 fi
5771 ;;
5772 sco3.2v5*)
5773 lt_cv_sys_max_cmd_len=102400
5774 ;;
5775 sysv5* | sco5v6* | sysv4.2uw2*)
5776 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5777 if test -n "$kargmax"; then
5778 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5779 else
5780 lt_cv_sys_max_cmd_len=32768
5781 fi
5782 ;;
5783 *)
5784 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5785 if test -n "$lt_cv_sys_max_cmd_len" && \
5786 test undefined != "$lt_cv_sys_max_cmd_len"; then
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5789 else
5790 # Make teststring a little bigger before we do anything with it.
5791 # a 1K string should be a reasonable start.
5792 for i in 1 2 3 4 5 6 7 8; do
5793 teststring=$teststring$teststring
5794 done
5795 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5796 # If test is not a shell built-in, we'll probably end up computing a
5797 # maximum length that is only half of the actual maximum length, but
5798 # we can't tell.
5799 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5800 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5801 test 17 != "$i" # 1/2 MB should be enough
5802 do
5803 i=`expr $i + 1`
5804 teststring=$teststring$teststring
5805 done
5806 # Only check the string length outside the loop.
5807 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5808 teststring=
5809 # Add a significant safety factor because C++ compilers can tack on
5810 # massive amounts of additional arguments before passing them to the
5811 # linker. It appears as though 1/2 is a usable value.
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5813 fi
5814 ;;
5815 esac
5816 ;;
5817 esac
5818 fi
5819
5820 if test -n "$lt_cv_sys_max_cmd_len"; then
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5822 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5823 else
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5825 printf "%s\n" "none" >&6; }
5826 fi
5827 max_cmd_len=$lt_cv_sys_max_cmd_len
5828
5829
5830
5831
5832
5833
5834 : ${CP="cp -f"}
5835 : ${MV="mv -f"}
5836 : ${RM="rm -f"}
5837
5838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5839 lt_unset=unset
5840 else
5841 lt_unset=false
5842 fi
5843
5844
5845
5846
5847
5848 # test EBCDIC or ASCII
5849 case `echo X|tr X '\101'` in
5850 A) # ASCII based system
5851 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5852 lt_SP2NL='tr \040 \012'
5853 lt_NL2SP='tr \015\012 \040\040'
5854 ;;
5855 *) # EBCDIC based system
5856 lt_SP2NL='tr \100 \n'
5857 lt_NL2SP='tr \r\n \100\100'
5858 ;;
5859 esac
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5870 printf %s "checking how to convert $build file names to $host format... " >&6; }
5871 if test ${lt_cv_to_host_file_cmd+y}
5872 then :
5873 printf %s "(cached) " >&6
5874 else case e in #(
5875 e) case $host in
5876 *-*-mingw* )
5877 case $build in
5878 *-*-mingw* | *-*-windows* ) # actually msys
5879 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5880 ;;
5881 *-*-cygwin* )
5882 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5883 ;;
5884 * ) # otherwise, assume *nix
5885 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5886 ;;
5887 esac
5888 ;;
5889 *-*-cygwin* )
5890 case $build in
5891 *-*-mingw* | *-*-windows* ) # actually msys
5892 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5893 ;;
5894 *-*-cygwin* )
5895 lt_cv_to_host_file_cmd=func_convert_file_noop
5896 ;;
5897 * ) # otherwise, assume *nix
5898 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5899 ;;
5900 esac
5901 ;;
5902 * ) # unhandled hosts (and "normal" native builds)
5903 lt_cv_to_host_file_cmd=func_convert_file_noop
5904 ;;
5905 esac
5906 ;;
5907 esac
5908 fi
5909
5910 to_host_file_cmd=$lt_cv_to_host_file_cmd
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5912 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5913
5914
5915
5916
5917
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5919 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5920 if test ${lt_cv_to_tool_file_cmd+y}
5921 then :
5922 printf %s "(cached) " >&6
5923 else case e in #(
5924 e) #assume ordinary cross tools, or native build.
5925 lt_cv_to_tool_file_cmd=func_convert_file_noop
5926 case $host in
5927 *-*-mingw* | *-*-windows* )
5928 case $build in
5929 *-*-mingw* | *-*-windows* ) # actually msys
5930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5931 ;;
5932 esac
5933 ;;
5934 esac
5935 ;;
5936 esac
5937 fi
5938
5939 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5941 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5942
5943
5944
5945
5946
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5948 printf %s "checking for $LD option to reload object files... " >&6; }
5949 if test ${lt_cv_ld_reload_flag+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else case e in #(
5953 e) lt_cv_ld_reload_flag='-r' ;;
5954 esac
5955 fi
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5957 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5958 reload_flag=$lt_cv_ld_reload_flag
5959 case $reload_flag in
5960 "" | " "*) ;;
5961 *) reload_flag=" $reload_flag" ;;
5962 esac
5963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5964 case $host_os in
5965 cygwin* | mingw* | windows* | pw32* | cegcc*)
5966 if test yes != "$GCC"; then
5967 reload_cmds=false
5968 fi
5969 ;;
5970 darwin*)
5971 if test yes = "$GCC"; then
5972 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5973 else
5974 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5975 fi
5976 ;;
5977 esac
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 # Extract the first word of "file", so it can be a program name with args.
5988 set dummy file; ac_word=$2
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 printf %s "checking for $ac_word... " >&6; }
5991 if test ${ac_cv_prog_FILECMD+y}
5992 then :
5993 printf %s "(cached) " >&6
5994 else case e in #(
5995 e) if test -n "$FILECMD"; then
5996 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001 IFS=$as_save_IFS
6002 case $as_dir in #(((
6003 '') as_dir=./ ;;
6004 */) ;;
6005 *) as_dir=$as_dir/ ;;
6006 esac
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_FILECMD="file"
6010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6018 fi ;;
6019 esac
6020 fi
6021 FILECMD=$ac_cv_prog_FILECMD
6022 if test -n "$FILECMD"; then
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6024 printf "%s\n" "$FILECMD" >&6; }
6025 else
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 printf "%s\n" "no" >&6; }
6028 fi
6029
6030
6031
6032
6033
6034
6035
6036
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 printf %s "checking for $ac_word... " >&6; }
6042 if test ${ac_cv_prog_OBJDUMP+y}
6043 then :
6044 printf %s "(cached) " >&6
6045 else case e in #(
6046 e) if test -n "$OBJDUMP"; then
6047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 case $as_dir in #(((
6054 '') as_dir=./ ;;
6055 */) ;;
6056 *) as_dir=$as_dir/ ;;
6057 esac
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi ;;
6069 esac
6070 fi
6071 OBJDUMP=$ac_cv_prog_OBJDUMP
6072 if test -n "$OBJDUMP"; then
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6074 printf "%s\n" "$OBJDUMP" >&6; }
6075 else
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 printf "%s\n" "no" >&6; }
6078 fi
6079
6080
6081 fi
6082 if test -z "$ac_cv_prog_OBJDUMP"; then
6083 ac_ct_OBJDUMP=$OBJDUMP
6084 # Extract the first word of "objdump", so it can be a program name with args.
6085 set dummy objdump; ac_word=$2
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 printf %s "checking for $ac_word... " >&6; }
6088 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else case e in #(
6092 e) if test -n "$ac_ct_OBJDUMP"; then
6093 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 case $as_dir in #(((
6100 '') as_dir=./ ;;
6101 */) ;;
6102 *) as_dir=$as_dir/ ;;
6103 esac
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi ;;
6115 esac
6116 fi
6117 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6118 if test -n "$ac_ct_OBJDUMP"; then
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6120 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6121 else
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 printf "%s\n" "no" >&6; }
6124 fi
6125
6126 if test "x$ac_ct_OBJDUMP" = x; then
6127 OBJDUMP="false"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130 yes:)
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135 OBJDUMP=$ac_ct_OBJDUMP
6136 fi
6137 else
6138 OBJDUMP="$ac_cv_prog_OBJDUMP"
6139 fi
6140
6141 test -z "$OBJDUMP" && OBJDUMP=objdump
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6152 printf %s "checking how to recognize dependent libraries... " >&6; }
6153 if test ${lt_cv_deplibs_check_method+y}
6154 then :
6155 printf %s "(cached) " >&6
6156 else case e in #(
6157 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6158 lt_cv_file_magic_test_file=
6159 lt_cv_deplibs_check_method='unknown'
6160 # Need to set the preceding variable on all platforms that support
6161 # interlibrary dependencies.
6162 # 'none' -- dependencies not supported.
6163 # 'unknown' -- same as none, but documents that we really don't know.
6164 # 'pass_all' -- all dependencies passed with no checks.
6165 # 'file_magic [[regex]]' -- check by looking for files in library path
6166 # that responds to the $file_magic_cmd with a given extended regex.
6167 # If you have 'file' or equivalent on your system and you're not sure
6168 # whether 'pass_all' will *always* work, you probably want this one.
6169
6170 case $host_os in
6171 aix[4-9]*)
6172 lt_cv_deplibs_check_method=pass_all
6173 ;;
6174
6175 beos*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178
6179 bsdi[45]*)
6180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6181 lt_cv_file_magic_cmd='$FILECMD -L'
6182 lt_cv_file_magic_test_file=/shlib/libc.so
6183 ;;
6184
6185 cygwin*)
6186 # func_win32_libid is a shell function defined in ltmain.sh
6187 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6188 lt_cv_file_magic_cmd='func_win32_libid'
6189 ;;
6190
6191 mingw* | windows* | pw32*)
6192 # Base MSYS/MinGW do not provide the 'file' command needed by
6193 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6194 # unless we find 'file', for example because we are cross-compiling.
6195 if ( file / ) >/dev/null 2>&1; then
6196 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6197 lt_cv_file_magic_cmd='func_win32_libid'
6198 else
6199 # Keep this pattern in sync with the one in func_win32_libid.
6200 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6201 lt_cv_file_magic_cmd='$OBJDUMP -f'
6202 fi
6203 ;;
6204
6205 cegcc*)
6206 # use the weaker test based on 'objdump'. See mingw*.
6207 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6208 lt_cv_file_magic_cmd='$OBJDUMP -f'
6209 ;;
6210
6211 darwin* | rhapsody*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214
6215 freebsd* | dragonfly* | midnightbsd*)
6216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6217 case $host_cpu in
6218 i*86 )
6219 # Not sure whether the presence of OpenBSD here was a mistake.
6220 # Let's accept both of them until this is cleared up.
6221 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6222 lt_cv_file_magic_cmd=$FILECMD
6223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6224 ;;
6225 esac
6226 else
6227 lt_cv_deplibs_check_method=pass_all
6228 fi
6229 ;;
6230
6231 haiku*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235 hpux10.20* | hpux11*)
6236 lt_cv_file_magic_cmd=$FILECMD
6237 case $host_cpu in
6238 ia64*)
6239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6240 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6241 ;;
6242 hppa*64*)
6243 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]'
6244 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6245 ;;
6246 *)
6247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6248 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6249 ;;
6250 esac
6251 ;;
6252
6253 interix[3-9]*)
6254 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6256 ;;
6257
6258 irix5* | irix6* | nonstopux*)
6259 case $LD in
6260 *-32|*"-32 ") libmagic=32-bit;;
6261 *-n32|*"-n32 ") libmagic=N32;;
6262 *-64|*"-64 ") libmagic=64-bit;;
6263 *) libmagic=never-match;;
6264 esac
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268 # This must be glibc/ELF.
6269 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272
6273 *-mlibc)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
6277 netbsd* | netbsdelf*-gnu)
6278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6280 else
6281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6282 fi
6283 ;;
6284
6285 newos6*)
6286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6287 lt_cv_file_magic_cmd=$FILECMD
6288 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6289 ;;
6290
6291 *nto* | *qnx*)
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294
6295 openbsd*)
6296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6298 else
6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6300 fi
6301 ;;
6302
6303 osf3* | osf4* | osf5*)
6304 lt_cv_deplibs_check_method=pass_all
6305 ;;
6306
6307 rdos*)
6308 lt_cv_deplibs_check_method=pass_all
6309 ;;
6310
6311 serenity*)
6312 lt_cv_deplibs_check_method=pass_all
6313 ;;
6314
6315 solaris*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318
6319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6320 lt_cv_deplibs_check_method=pass_all
6321 ;;
6322
6323 sysv4 | sysv4.3*)
6324 case $host_vendor in
6325 motorola)
6326 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]'
6327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6328 ;;
6329 ncr)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332 sequent)
6333 lt_cv_file_magic_cmd='/bin/file'
6334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6335 ;;
6336 sni)
6337 lt_cv_file_magic_cmd='/bin/file'
6338 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6339 lt_cv_file_magic_test_file=/lib/libc.so
6340 ;;
6341 siemens)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344 pc)
6345 lt_cv_deplibs_check_method=pass_all
6346 ;;
6347 esac
6348 ;;
6349
6350 tpf*)
6351 lt_cv_deplibs_check_method=pass_all
6352 ;;
6353 os2*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356 esac
6357 ;;
6358 esac
6359 fi
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6361 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6362
6363 file_magic_glob=
6364 want_nocaseglob=no
6365 if test "$build" = "$host"; then
6366 case $host_os in
6367 mingw* | windows* | pw32*)
6368 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6369 want_nocaseglob=yes
6370 else
6371 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6372 fi
6373 ;;
6374 esac
6375 fi
6376
6377 file_magic_cmd=$lt_cv_file_magic_cmd
6378 deplibs_check_method=$lt_cv_deplibs_check_method
6379 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 printf %s "checking for $ac_word... " >&6; }
6407 if test ${ac_cv_prog_DLLTOOL+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else case e in #(
6411 e) if test -n "$DLLTOOL"; then
6412 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 case $as_dir in #(((
6419 '') as_dir=./ ;;
6420 */) ;;
6421 *) as_dir=$as_dir/ ;;
6422 esac
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433 fi ;;
6434 esac
6435 fi
6436 DLLTOOL=$ac_cv_prog_DLLTOOL
6437 if test -n "$DLLTOOL"; then
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6439 printf "%s\n" "$DLLTOOL" >&6; }
6440 else
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 printf "%s\n" "no" >&6; }
6443 fi
6444
6445
6446 fi
6447 if test -z "$ac_cv_prog_DLLTOOL"; then
6448 ac_ct_DLLTOOL=$DLLTOOL
6449 # Extract the first word of "dlltool", so it can be a program name with args.
6450 set dummy dlltool; ac_word=$2
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 printf %s "checking for $ac_word... " >&6; }
6453 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6454 then :
6455 printf %s "(cached) " >&6
6456 else case e in #(
6457 e) if test -n "$ac_ct_DLLTOOL"; then
6458 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463 IFS=$as_save_IFS
6464 case $as_dir in #(((
6465 '') as_dir=./ ;;
6466 */) ;;
6467 *) as_dir=$as_dir/ ;;
6468 esac
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi ;;
6480 esac
6481 fi
6482 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6483 if test -n "$ac_ct_DLLTOOL"; then
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6485 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6486 else
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 printf "%s\n" "no" >&6; }
6489 fi
6490
6491 if test "x$ac_ct_DLLTOOL" = x; then
6492 DLLTOOL="false"
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500 DLLTOOL=$ac_ct_DLLTOOL
6501 fi
6502 else
6503 DLLTOOL="$ac_cv_prog_DLLTOOL"
6504 fi
6505
6506 test -z "$DLLTOOL" && DLLTOOL=dlltool
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6518 printf %s "checking how to associate runtime and link libraries... " >&6; }
6519 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6520 then :
6521 printf %s "(cached) " >&6
6522 else case e in #(
6523 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6524
6525 case $host_os in
6526 cygwin* | mingw* | windows* | pw32* | cegcc*)
6527 # two different shell functions defined in ltmain.sh;
6528 # decide which one to use based on capabilities of $DLLTOOL
6529 case `$DLLTOOL --help 2>&1` in
6530 *--identify-strict*)
6531 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6532 ;;
6533 *)
6534 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6535 ;;
6536 esac
6537 ;;
6538 *)
6539 # fallback: assume linklib IS sharedlib
6540 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6541 ;;
6542 esac
6543 ;;
6544 esac
6545 fi
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6547 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6548 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6549 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6550
6551
6552
6553
6554
6555
6556
6557
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 printf %s "checking for $ac_word... " >&6; }
6563 if test ${ac_cv_prog_RANLIB+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else case e in #(
6567 e) if test -n "$RANLIB"; then
6568 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573 IFS=$as_save_IFS
6574 case $as_dir in #(((
6575 '') as_dir=./ ;;
6576 */) ;;
6577 *) as_dir=$as_dir/ ;;
6578 esac
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi ;;
6590 esac
6591 fi
6592 RANLIB=$ac_cv_prog_RANLIB
6593 if test -n "$RANLIB"; then
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6595 printf "%s\n" "$RANLIB" >&6; }
6596 else
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 printf "%s\n" "no" >&6; }
6599 fi
6600
6601
6602 fi
6603 if test -z "$ac_cv_prog_RANLIB"; then
6604 ac_ct_RANLIB=$RANLIB
6605 # Extract the first word of "ranlib", so it can be a program name with args.
6606 set dummy ranlib; ac_word=$2
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 printf %s "checking for $ac_word... " >&6; }
6609 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6610 then :
6611 printf %s "(cached) " >&6
6612 else case e in #(
6613 e) if test -n "$ac_ct_RANLIB"; then
6614 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6615 else
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619 IFS=$as_save_IFS
6620 case $as_dir in #(((
6621 '') as_dir=./ ;;
6622 */) ;;
6623 *) as_dir=$as_dir/ ;;
6624 esac
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6627 ac_cv_prog_ac_ct_RANLIB="ranlib"
6628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi ;;
6636 esac
6637 fi
6638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6639 if test -n "$ac_ct_RANLIB"; then
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6641 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6642 else
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 printf "%s\n" "no" >&6; }
6645 fi
6646
6647 if test "x$ac_ct_RANLIB" = x; then
6648 RANLIB=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656 RANLIB=$ac_ct_RANLIB
6657 fi
6658 else
6659 RANLIB="$ac_cv_prog_RANLIB"
6660 fi
6661
6662 if test -n "$ac_tool_prefix"; then
6663 for ac_prog in ar
6664 do
6665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 printf %s "checking for $ac_word... " >&6; }
6669 if test ${ac_cv_prog_AR+y}
6670 then :
6671 printf %s "(cached) " >&6
6672 else case e in #(
6673 e) if test -n "$AR"; then
6674 ac_cv_prog_AR="$AR" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 case $as_dir in #(((
6681 '') as_dir=./ ;;
6682 */) ;;
6683 *) as_dir=$as_dir/ ;;
6684 esac
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi ;;
6696 esac
6697 fi
6698 AR=$ac_cv_prog_AR
6699 if test -n "$AR"; then
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6701 printf "%s\n" "$AR" >&6; }
6702 else
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 printf "%s\n" "no" >&6; }
6705 fi
6706
6707
6708 test -n "$AR" && break
6709 done
6710 fi
6711 if test -z "$AR"; then
6712 ac_ct_AR=$AR
6713 for ac_prog in ar
6714 do
6715 # Extract the first word of "$ac_prog", so it can be a program name with args.
6716 set dummy $ac_prog; ac_word=$2
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 printf %s "checking for $ac_word... " >&6; }
6719 if test ${ac_cv_prog_ac_ct_AR+y}
6720 then :
6721 printf %s "(cached) " >&6
6722 else case e in #(
6723 e) if test -n "$ac_ct_AR"; then
6724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 case $as_dir in #(((
6731 '') as_dir=./ ;;
6732 */) ;;
6733 *) as_dir=$as_dir/ ;;
6734 esac
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_ac_ct_AR="$ac_prog"
6738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi ;;
6746 esac
6747 fi
6748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6749 if test -n "$ac_ct_AR"; then
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6751 printf "%s\n" "$ac_ct_AR" >&6; }
6752 else
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 printf "%s\n" "no" >&6; }
6755 fi
6756
6757
6758 test -n "$ac_ct_AR" && break
6759 done
6760
6761 if test "x$ac_ct_AR" = x; then
6762 AR="false"
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770 AR=$ac_ct_AR
6771 fi
6772 fi
6773
6774 : ${AR=ar}
6775
6776
6777
6778
6779
6780
6781 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6782 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6783 # higher priority because that's what people were doing historically (setting
6784 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6785 # variable obsoleted/removed.
6786
6787 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6788 lt_ar_flags=$AR_FLAGS
6789
6790
6791
6792
6793
6794
6795 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6796 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6797
6798
6799
6800
6801
6802
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6804 printf %s "checking for archiver @FILE support... " >&6; }
6805 if test ${lt_cv_ar_at_file+y}
6806 then :
6807 printf %s "(cached) " >&6
6808 else case e in #(
6809 e) lt_cv_ar_at_file=no
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812
6813 int
6814 main (void)
6815 {
6816
6817 ;
6818 return 0;
6819 }
6820 _ACEOF
6821 if ac_fn_c_try_compile "$LINENO"
6822 then :
6823 echo conftest.$ac_objext > conftest.lst
6824 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6826 (eval $lt_ar_try) 2>&5
6827 ac_status=$?
6828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }
6830 if test 0 -eq "$ac_status"; then
6831 # Ensure the archiver fails upon bogus file names.
6832 rm -f conftest.$ac_objext libconftest.a
6833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6834 (eval $lt_ar_try) 2>&5
6835 ac_status=$?
6836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }
6838 if test 0 -ne "$ac_status"; then
6839 lt_cv_ar_at_file=@
6840 fi
6841 fi
6842 rm -f conftest.* libconftest.a
6843
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6846 ;;
6847 esac
6848 fi
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6850 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6851
6852 if test no = "$lt_cv_ar_at_file"; then
6853 archiver_list_spec=
6854 else
6855 archiver_list_spec=$lt_cv_ar_at_file
6856 fi
6857
6858
6859
6860
6861
6862
6863
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}strip; ac_word=$2
6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 printf %s "checking for $ac_word... " >&6; }
6869 if test ${ac_cv_prog_STRIP+y}
6870 then :
6871 printf %s "(cached) " >&6
6872 else case e in #(
6873 e) if test -n "$STRIP"; then
6874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 case $as_dir in #(((
6881 '') as_dir=./ ;;
6882 */) ;;
6883 *) as_dir=$as_dir/ ;;
6884 esac
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi ;;
6896 esac
6897 fi
6898 STRIP=$ac_cv_prog_STRIP
6899 if test -n "$STRIP"; then
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6901 printf "%s\n" "$STRIP" >&6; }
6902 else
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 printf "%s\n" "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_STRIP"; then
6910 ac_ct_STRIP=$STRIP
6911 # Extract the first word of "strip", so it can be a program name with args.
6912 set dummy strip; ac_word=$2
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_ac_ct_STRIP+y}
6916 then :
6917 printf %s "(cached) " >&6
6918 else case e in #(
6919 e) if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 case $as_dir in #(((
6927 '') as_dir=./ ;;
6928 */) ;;
6929 *) as_dir=$as_dir/ ;;
6930 esac
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_STRIP="strip"
6934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi ;;
6942 esac
6943 fi
6944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6945 if test -n "$ac_ct_STRIP"; then
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6947 printf "%s\n" "$ac_ct_STRIP" >&6; }
6948 else
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 printf "%s\n" "no" >&6; }
6951 fi
6952
6953 if test "x$ac_ct_STRIP" = x; then
6954 STRIP=":"
6955 else
6956 case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962 STRIP=$ac_ct_STRIP
6963 fi
6964 else
6965 STRIP="$ac_cv_prog_STRIP"
6966 fi
6967
6968 test -z "$STRIP" && STRIP=:
6969
6970
6971
6972
6973
6974
6975
6976 test -z "$RANLIB" && RANLIB=:
6977
6978
6979
6980
6981
6982
6983 # Determine commands to create old-style static archives.
6984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6985 old_postinstall_cmds='chmod 644 $oldlib'
6986 old_postuninstall_cmds=
6987
6988 if test -n "$RANLIB"; then
6989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6991 fi
6992
6993 case $host_os in
6994 darwin*)
6995 lock_old_archive_extraction=yes ;;
6996 *)
6997 lock_old_archive_extraction=no ;;
6998 esac
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 # If no C compiler was specified, use CC.
7039 LTCC=${LTCC-"$CC"}
7040
7041 # If no C compiler flags were specified, use CFLAGS.
7042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7043
7044 # Allow CC to be a program name with arguments.
7045 compiler=$CC
7046
7047
7048 # Check for command to grab the raw symbol name followed by C symbol from nm.
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7050 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7051 if test ${lt_cv_sys_global_symbol_pipe+y}
7052 then :
7053 printf %s "(cached) " >&6
7054 else case e in #(
7055 e)
7056 # These are sane defaults that work on at least a few old systems.
7057 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7058
7059 # Character class describing NM global symbol codes.
7060 symcode='[BCDEGRST]'
7061
7062 # Regexp to match symbols that can be accessed directly from C.
7063 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7064
7065 # Define system-specific variables.
7066 case $host_os in
7067 aix*)
7068 symcode='[BCDT]'
7069 ;;
7070 cygwin* | mingw* | windows* | pw32* | cegcc*)
7071 symcode='[ABCDGISTW]'
7072 ;;
7073 hpux*)
7074 if test ia64 = "$host_cpu"; then
7075 symcode='[ABCDEGRST]'
7076 fi
7077 ;;
7078 irix* | nonstopux*)
7079 symcode='[BCDEGRST]'
7080 ;;
7081 osf*)
7082 symcode='[BCDEGQRST]'
7083 ;;
7084 solaris*)
7085 symcode='[BCDRT]'
7086 ;;
7087 sco3.2v5*)
7088 symcode='[DT]'
7089 ;;
7090 sysv4.2uw2*)
7091 symcode='[DT]'
7092 ;;
7093 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7094 symcode='[ABDT]'
7095 ;;
7096 sysv4)
7097 symcode='[DFNSTU]'
7098 ;;
7099 esac
7100
7101 # If we're using GNU nm, then use its standard symbol codes.
7102 case `$NM -V 2>&1` in
7103 *GNU* | *'with BFD'*)
7104 symcode='[ABCDGIRSTW]' ;;
7105 esac
7106
7107 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7108 # Gets list of data symbols to import.
7109 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7110 # Adjust the below global symbol transforms to fixup imported variables.
7111 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7112 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7113 lt_c_name_lib_hook="\
7114 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7115 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7116 else
7117 # Disable hooks by default.
7118 lt_cv_sys_global_symbol_to_import=
7119 lt_cdecl_hook=
7120 lt_c_name_hook=
7121 lt_c_name_lib_hook=
7122 fi
7123
7124 # Transform an extracted symbol line into a proper C declaration.
7125 # Some systems (esp. on ia64) link data and code symbols differently,
7126 # so use this general approach.
7127 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7128 $lt_cdecl_hook\
7129 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7130 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7131
7132 # Transform an extracted symbol line into symbol name and symbol address
7133 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7134 $lt_c_name_hook\
7135 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7136 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7137
7138 # Transform an extracted symbol line into symbol name with lib prefix and
7139 # symbol address.
7140 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7141 $lt_c_name_lib_hook\
7142 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7143 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7144 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7145
7146 # Handle CRLF in mingw tool chain
7147 opt_cr=
7148 case $build_os in
7149 mingw* | windows*)
7150 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7151 ;;
7152 esac
7153
7154 # Try without a prefix underscore, then with it.
7155 for ac_symprfx in "" "_"; do
7156
7157 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7158 symxfrm="\\1 $ac_symprfx\\2 \\2"
7159
7160 # Write the raw and C identifiers.
7161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7162 # Fake it for dumpbin and say T for any non-static function,
7163 # D for any global variable and I for any imported variable.
7164 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7165 # which start with @ or ?.
7166 lt_cv_sys_global_symbol_pipe="$AWK '"\
7167 " {last_section=section; section=\$ 3};"\
7168 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7169 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7170 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7171 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7172 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7173 " \$ 0!~/External *\|/{next};"\
7174 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7175 " {if(hide[section]) next};"\
7176 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7177 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7178 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7179 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7180 " ' prfx=^$ac_symprfx"
7181 else
7182 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7183 fi
7184 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7185
7186 # Check to see that the pipe works correctly.
7187 pipe_works=no
7188
7189 rm -f conftest*
7190 cat > conftest.$ac_ext <<_LT_EOF
7191 #ifdef __cplusplus
7192 extern "C" {
7193 #endif
7194 char nm_test_var;
7195 void nm_test_func(void);
7196 void nm_test_func(void){}
7197 #ifdef __cplusplus
7198 }
7199 #endif
7200 int main(void){nm_test_var='a';nm_test_func();return(0);}
7201 _LT_EOF
7202
7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
7206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207 test $ac_status = 0; }; then
7208 # Now try to grab the symbols.
7209 nlist=conftest.nm
7210 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7211 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7212 # Try sorting and uniquifying the output.
7213 if sort "$nlist" | uniq > "$nlist"T; then
7214 mv -f "$nlist"T "$nlist"
7215 else
7216 rm -f "$nlist"T
7217 fi
7218
7219 # Make sure that we snagged all the symbols we need.
7220 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7221 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7222 cat <<_LT_EOF > conftest.$ac_ext
7223 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7224 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7225 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7226 relocations are performed -- see ld's documentation on pseudo-relocs. */
7227 # define LT_DLSYM_CONST
7228 #elif defined __osf__
7229 /* This system does not cope well with relocations in const data. */
7230 # define LT_DLSYM_CONST
7231 #else
7232 # define LT_DLSYM_CONST const
7233 #endif
7234
7235 #ifdef __cplusplus
7236 extern "C" {
7237 #endif
7238
7239 _LT_EOF
7240 # Now generate the symbol file.
7241 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7242
7243 cat <<_LT_EOF >> conftest.$ac_ext
7244
7245 /* The mapping between symbol names and symbols. */
7246 LT_DLSYM_CONST struct {
7247 const char *name;
7248 void *address;
7249 }
7250 lt__PROGRAM__LTX_preloaded_symbols[] =
7251 {
7252 { "@PROGRAM@", (void *) 0 },
7253 _LT_EOF
7254 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7255 cat <<\_LT_EOF >> conftest.$ac_ext
7256 {0, (void *) 0}
7257 };
7258
7259 /* This works around a problem in FreeBSD linker */
7260 #ifdef FREEBSD_WORKAROUND
7261 static const void *lt_preloaded_setup() {
7262 return lt__PROGRAM__LTX_preloaded_symbols;
7263 }
7264 #endif
7265
7266 #ifdef __cplusplus
7267 }
7268 #endif
7269 _LT_EOF
7270 # Now try linking the two files.
7271 mv conftest.$ac_objext conftstm.$ac_objext
7272 lt_globsym_save_LIBS=$LIBS
7273 lt_globsym_save_CFLAGS=$CFLAGS
7274 LIBS=conftstm.$ac_objext
7275 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7277 (eval $ac_link) 2>&5
7278 ac_status=$?
7279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7281 pipe_works=yes
7282 fi
7283 LIBS=$lt_globsym_save_LIBS
7284 CFLAGS=$lt_globsym_save_CFLAGS
7285 else
7286 echo "cannot find nm_test_func in $nlist" >&5
7287 fi
7288 else
7289 echo "cannot find nm_test_var in $nlist" >&5
7290 fi
7291 else
7292 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7293 fi
7294 else
7295 echo "$progname: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7297 fi
7298 rm -rf conftest* conftst*
7299
7300 # Do not use the global_symbol_pipe unless it works.
7301 if test yes = "$pipe_works"; then
7302 break
7303 else
7304 lt_cv_sys_global_symbol_pipe=
7305 fi
7306 done
7307 ;;
7308 esac
7309 fi
7310
7311 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7312 lt_cv_sys_global_symbol_to_cdecl=
7313 fi
7314 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7316 printf "%s\n" "failed" >&6; }
7317 else
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7319 printf "%s\n" "ok" >&6; }
7320 fi
7321
7322 # Response file support.
7323 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7324 nm_file_list_spec='@'
7325 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7326 nm_file_list_spec='@'
7327 fi
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7366 printf %s "checking for sysroot... " >&6; }
7367
7368 # Check whether --with-sysroot was given.
7369 if test ${with_sysroot+y}
7370 then :
7371 withval=$with_sysroot;
7372 else case e in #(
7373 e) with_sysroot=no ;;
7374 esac
7375 fi
7376
7377
7378 lt_sysroot=
7379 case $with_sysroot in #(
7380 yes)
7381 if test yes = "$GCC"; then
7382 # Trim trailing / since we'll always append absolute paths and we want
7383 # to avoid //, if only for less confusing output for the user.
7384 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7385 fi
7386 ;; #(
7387 /*)
7388 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7389 ;; #(
7390 no|'')
7391 ;; #(
7392 *)
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7394 printf "%s\n" "$with_sysroot" >&6; }
7395 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7396 ;;
7397 esac
7398
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7400 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7401
7402
7403
7404
7405
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7407 printf %s "checking for a working dd... " >&6; }
7408 if test ${ac_cv_path_lt_DD+y}
7409 then :
7410 printf %s "(cached) " >&6
7411 else case e in #(
7412 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7413 cat conftest.i conftest.i >conftest2.i
7414 : ${lt_DD:=$DD}
7415 if test -z "$lt_DD"; then
7416 ac_path_lt_DD_found=false
7417 # Loop through the user's path and test for each of PROGNAME-LIST
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421 IFS=$as_save_IFS
7422 case $as_dir in #(((
7423 '') as_dir=./ ;;
7424 */) ;;
7425 *) as_dir=$as_dir/ ;;
7426 esac
7427 for ac_prog in dd
7428 do
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7431 as_fn_executable_p "$ac_path_lt_DD" || continue
7432 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7433 cmp -s conftest.i conftest.out \
7434 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7435 fi
7436 $ac_path_lt_DD_found && break 3
7437 done
7438 done
7439 done
7440 IFS=$as_save_IFS
7441 if test -z "$ac_cv_path_lt_DD"; then
7442 :
7443 fi
7444 else
7445 ac_cv_path_lt_DD=$lt_DD
7446 fi
7447
7448 rm -f conftest.i conftest2.i conftest.out ;;
7449 esac
7450 fi
7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7452 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7453
7454
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7456 printf %s "checking how to truncate binary pipes... " >&6; }
7457 if test ${lt_cv_truncate_bin+y}
7458 then :
7459 printf %s "(cached) " >&6
7460 else case e in #(
7461 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7462 cat conftest.i conftest.i >conftest2.i
7463 lt_cv_truncate_bin=
7464 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7465 cmp -s conftest.i conftest.out \
7466 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7467 fi
7468 rm -f conftest.i conftest2.i conftest.out
7469 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7470 esac
7471 fi
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7473 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7474
7475
7476
7477
7478
7479
7480
7481 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7482 func_cc_basename ()
7483 {
7484 for cc_temp in $*""; do
7485 case $cc_temp in
7486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7488 \-*) ;;
7489 *) break;;
7490 esac
7491 done
7492 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7493 }
7494
7495 # Check whether --enable-libtool-lock was given.
7496 if test ${enable_libtool_lock+y}
7497 then :
7498 enableval=$enable_libtool_lock;
7499 fi
7500
7501 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7502
7503 # Some flags need to be propagated to the compiler or linker for good
7504 # libtool support.
7505 case $host in
7506 ia64-*-hpux*)
7507 # Find out what ABI is being produced by ac_compile, and set mode
7508 # options accordingly.
7509 echo 'int i;' > conftest.$ac_ext
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511 (eval $ac_compile) 2>&5
7512 ac_status=$?
7513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; then
7515 case `$FILECMD conftest.$ac_objext` in
7516 *ELF-32*)
7517 HPUX_IA64_MODE=32
7518 ;;
7519 *ELF-64*)
7520 HPUX_IA64_MODE=64
7521 ;;
7522 esac
7523 fi
7524 rm -rf conftest*
7525 ;;
7526 *-*-irix6*)
7527 # Find out what ABI is being produced by ac_compile, and set linker
7528 # options accordingly.
7529 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7531 (eval $ac_compile) 2>&5
7532 ac_status=$?
7533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; }; then
7535 if test yes = "$lt_cv_prog_gnu_ld"; then
7536 case `$FILECMD conftest.$ac_objext` in
7537 *32-bit*)
7538 LD="${LD-ld} -melf32bsmip"
7539 ;;
7540 *N32*)
7541 LD="${LD-ld} -melf32bmipn32"
7542 ;;
7543 *64-bit*)
7544 LD="${LD-ld} -melf64bmip"
7545 ;;
7546 esac
7547 else
7548 case `$FILECMD conftest.$ac_objext` in
7549 *32-bit*)
7550 LD="${LD-ld} -32"
7551 ;;
7552 *N32*)
7553 LD="${LD-ld} -n32"
7554 ;;
7555 *64-bit*)
7556 LD="${LD-ld} -64"
7557 ;;
7558 esac
7559 fi
7560 fi
7561 rm -rf conftest*
7562 ;;
7563
7564 mips64*-*linux*)
7565 # Find out what ABI is being produced by ac_compile, and set linker
7566 # options accordingly.
7567 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7569 (eval $ac_compile) 2>&5
7570 ac_status=$?
7571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; }; then
7573 emul=elf
7574 case `$FILECMD conftest.$ac_objext` in
7575 *32-bit*)
7576 emul="${emul}32"
7577 ;;
7578 *64-bit*)
7579 emul="${emul}64"
7580 ;;
7581 esac
7582 case `$FILECMD conftest.$ac_objext` in
7583 *MSB*)
7584 emul="${emul}btsmip"
7585 ;;
7586 *LSB*)
7587 emul="${emul}ltsmip"
7588 ;;
7589 esac
7590 case `$FILECMD conftest.$ac_objext` in
7591 *N32*)
7592 emul="${emul}n32"
7593 ;;
7594 esac
7595 LD="${LD-ld} -m $emul"
7596 fi
7597 rm -rf conftest*
7598 ;;
7599
7600 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7601 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7602 # Find out what ABI is being produced by ac_compile, and set linker
7603 # options accordingly. Note that the listed cases only cover the
7604 # situations where additional linker options are needed (such as when
7605 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7606 # vice versa); the common cases where no linker options are needed do
7607 # not appear in the list.
7608 echo 'int i;' > conftest.$ac_ext
7609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7610 (eval $ac_compile) 2>&5
7611 ac_status=$?
7612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7613 test $ac_status = 0; }; then
7614 case `$FILECMD conftest.o` in
7615 *32-bit*)
7616 case $host in
7617 x86_64-*kfreebsd*-gnu)
7618 LD="${LD-ld} -m elf_i386_fbsd"
7619 ;;
7620 x86_64-*linux*|x86_64-gnu*)
7621 case `$FILECMD conftest.o` in
7622 *x86-64*)
7623 LD="${LD-ld} -m elf32_x86_64"
7624 ;;
7625 *)
7626 LD="${LD-ld} -m elf_i386"
7627 ;;
7628 esac
7629 ;;
7630 powerpc64le-*linux*)
7631 LD="${LD-ld} -m elf32lppclinux"
7632 ;;
7633 powerpc64-*linux*)
7634 LD="${LD-ld} -m elf32ppclinux"
7635 ;;
7636 s390x-*linux*)
7637 LD="${LD-ld} -m elf_s390"
7638 ;;
7639 sparc64-*linux*)
7640 LD="${LD-ld} -m elf32_sparc"
7641 ;;
7642 esac
7643 ;;
7644 *64-bit*)
7645 case $host in
7646 x86_64-*kfreebsd*-gnu)
7647 LD="${LD-ld} -m elf_x86_64_fbsd"
7648 ;;
7649 x86_64-*linux*|x86_64-gnu*)
7650 LD="${LD-ld} -m elf_x86_64"
7651 ;;
7652 powerpcle-*linux*)
7653 LD="${LD-ld} -m elf64lppc"
7654 ;;
7655 powerpc-*linux*)
7656 LD="${LD-ld} -m elf64ppc"
7657 ;;
7658 s390*-*linux*|s390*-*tpf*)
7659 LD="${LD-ld} -m elf64_s390"
7660 ;;
7661 sparc*-*linux*)
7662 LD="${LD-ld} -m elf64_sparc"
7663 ;;
7664 esac
7665 ;;
7666 esac
7667 fi
7668 rm -rf conftest*
7669 ;;
7670
7671 *-*-sco3.2v5*)
7672 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7673 SAVE_CFLAGS=$CFLAGS
7674 CFLAGS="$CFLAGS -belf"
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7676 printf %s "checking whether the C compiler needs -belf... " >&6; }
7677 if test ${lt_cv_cc_needs_belf+y}
7678 then :
7679 printf %s "(cached) " >&6
7680 else case e in #(
7681 e) ac_ext=c
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689
7690 int
7691 main (void)
7692 {
7693
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 if ac_fn_c_try_link "$LINENO"
7699 then :
7700 lt_cv_cc_needs_belf=yes
7701 else case e in #(
7702 e) lt_cv_cc_needs_belf=no ;;
7703 esac
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7706 conftest$ac_exeext conftest.$ac_ext
7707 ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712 ;;
7713 esac
7714 fi
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7716 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7717 if test yes != "$lt_cv_cc_needs_belf"; then
7718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7719 CFLAGS=$SAVE_CFLAGS
7720 fi
7721 ;;
7722 *-*solaris*)
7723 # Find out what ABI is being produced by ac_compile, and set linker
7724 # options accordingly.
7725 echo 'int i;' > conftest.$ac_ext
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 case `$FILECMD conftest.o` in
7732 *64-bit*)
7733 case $lt_cv_prog_gnu_ld in
7734 yes*)
7735 case $host in
7736 i?86-*-solaris*|x86_64-*-solaris*)
7737 LD="${LD-ld} -m elf_x86_64"
7738 ;;
7739 sparc*-*-solaris*)
7740 LD="${LD-ld} -m elf64_sparc"
7741 ;;
7742 esac
7743 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7744 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7745 LD=${LD-ld}_sol2
7746 fi
7747 ;;
7748 *)
7749 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7750 LD="${LD-ld} -64"
7751 fi
7752 ;;
7753 esac
7754 ;;
7755 esac
7756 fi
7757 rm -rf conftest*
7758 ;;
7759 esac
7760
7761 need_locks=$enable_libtool_lock
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}mt; ac_word=$2
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 printf %s "checking for $ac_word... " >&6; }
7768 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7769 then :
7770 printf %s "(cached) " >&6
7771 else case e in #(
7772 e) if test -n "$MANIFEST_TOOL"; then
7773 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 case $as_dir in #(((
7780 '') as_dir=./ ;;
7781 */) ;;
7782 *) as_dir=$as_dir/ ;;
7783 esac
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi ;;
7795 esac
7796 fi
7797 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7798 if test -n "$MANIFEST_TOOL"; then
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7800 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7801 else
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 printf "%s\n" "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7809 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7810 # Extract the first word of "mt", so it can be a program name with args.
7811 set dummy mt; ac_word=$2
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 printf %s "checking for $ac_word... " >&6; }
7814 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7815 then :
7816 printf %s "(cached) " >&6
7817 else case e in #(
7818 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7819 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 case $as_dir in #(((
7826 '') as_dir=./ ;;
7827 */) ;;
7828 *) as_dir=$as_dir/ ;;
7829 esac
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840 fi ;;
7841 esac
7842 fi
7843 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7844 if test -n "$ac_ct_MANIFEST_TOOL"; then
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7846 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7847 else
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 printf "%s\n" "no" >&6; }
7850 fi
7851
7852 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7853 MANIFEST_TOOL=":"
7854 else
7855 case $cross_compiling:$ac_tool_warned in
7856 yes:)
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7860 esac
7861 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7862 fi
7863 else
7864 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7865 fi
7866
7867 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7869 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7870 if test ${lt_cv_path_manifest_tool+y}
7871 then :
7872 printf %s "(cached) " >&6
7873 else case e in #(
7874 e) lt_cv_path_manifest_tool=no
7875 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7876 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7877 cat conftest.err >&5
7878 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7879 lt_cv_path_manifest_tool=yes
7880 fi
7881 rm -f conftest* ;;
7882 esac
7883 fi
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7885 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7886 if test yes != "$lt_cv_path_manifest_tool"; then
7887 MANIFEST_TOOL=:
7888 fi
7889
7890
7891
7892
7893
7894
7895 case $host_os in
7896 rhapsody* | darwin*)
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7899 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 printf %s "checking for $ac_word... " >&6; }
7902 if test ${ac_cv_prog_DSYMUTIL+y}
7903 then :
7904 printf %s "(cached) " >&6
7905 else case e in #(
7906 e) if test -n "$DSYMUTIL"; then
7907 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 case $as_dir in #(((
7914 '') as_dir=./ ;;
7915 */) ;;
7916 *) as_dir=$as_dir/ ;;
7917 esac
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924 done
7925 done
7926 IFS=$as_save_IFS
7927
7928 fi ;;
7929 esac
7930 fi
7931 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7932 if test -n "$DSYMUTIL"; then
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7934 printf "%s\n" "$DSYMUTIL" >&6; }
7935 else
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 printf "%s\n" "no" >&6; }
7938 fi
7939
7940
7941 fi
7942 if test -z "$ac_cv_prog_DSYMUTIL"; then
7943 ac_ct_DSYMUTIL=$DSYMUTIL
7944 # Extract the first word of "dsymutil", so it can be a program name with args.
7945 set dummy dsymutil; ac_word=$2
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 printf %s "checking for $ac_word... " >&6; }
7948 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7949 then :
7950 printf %s "(cached) " >&6
7951 else case e in #(
7952 e) if test -n "$ac_ct_DSYMUTIL"; then
7953 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 case $as_dir in #(((
7960 '') as_dir=./ ;;
7961 */) ;;
7962 *) as_dir=$as_dir/ ;;
7963 esac
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi ;;
7975 esac
7976 fi
7977 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7978 if test -n "$ac_ct_DSYMUTIL"; then
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7980 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7981 else
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 printf "%s\n" "no" >&6; }
7984 fi
7985
7986 if test "x$ac_ct_DSYMUTIL" = x; then
7987 DSYMUTIL=":"
7988 else
7989 case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7994 esac
7995 DSYMUTIL=$ac_ct_DSYMUTIL
7996 fi
7997 else
7998 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7999 fi
8000
8001 if test -n "$ac_tool_prefix"; then
8002 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8003 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 printf %s "checking for $ac_word... " >&6; }
8006 if test ${ac_cv_prog_NMEDIT+y}
8007 then :
8008 printf %s "(cached) " >&6
8009 else case e in #(
8010 e) if test -n "$NMEDIT"; then
8011 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016 IFS=$as_save_IFS
8017 case $as_dir in #(((
8018 '') as_dir=./ ;;
8019 */) ;;
8020 *) as_dir=$as_dir/ ;;
8021 esac
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 fi ;;
8033 esac
8034 fi
8035 NMEDIT=$ac_cv_prog_NMEDIT
8036 if test -n "$NMEDIT"; then
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8038 printf "%s\n" "$NMEDIT" >&6; }
8039 else
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 printf "%s\n" "no" >&6; }
8042 fi
8043
8044
8045 fi
8046 if test -z "$ac_cv_prog_NMEDIT"; then
8047 ac_ct_NMEDIT=$NMEDIT
8048 # Extract the first word of "nmedit", so it can be a program name with args.
8049 set dummy nmedit; ac_word=$2
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 printf %s "checking for $ac_word... " >&6; }
8052 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8053 then :
8054 printf %s "(cached) " >&6
8055 else case e in #(
8056 e) if test -n "$ac_ct_NMEDIT"; then
8057 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062 IFS=$as_save_IFS
8063 case $as_dir in #(((
8064 '') as_dir=./ ;;
8065 */) ;;
8066 *) as_dir=$as_dir/ ;;
8067 esac
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8070 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8072 break 2
8073 fi
8074 done
8075 done
8076 IFS=$as_save_IFS
8077
8078 fi ;;
8079 esac
8080 fi
8081 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8082 if test -n "$ac_ct_NMEDIT"; then
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8084 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8085 else
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 printf "%s\n" "no" >&6; }
8088 fi
8089
8090 if test "x$ac_ct_NMEDIT" = x; then
8091 NMEDIT=":"
8092 else
8093 case $cross_compiling:$ac_tool_warned in
8094 yes:)
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8098 esac
8099 NMEDIT=$ac_ct_NMEDIT
8100 fi
8101 else
8102 NMEDIT="$ac_cv_prog_NMEDIT"
8103 fi
8104
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 printf %s "checking for $ac_word... " >&6; }
8110 if test ${ac_cv_prog_LIPO+y}
8111 then :
8112 printf %s "(cached) " >&6
8113 else case e in #(
8114 e) if test -n "$LIPO"; then
8115 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 case $as_dir in #(((
8122 '') as_dir=./ ;;
8123 */) ;;
8124 *) as_dir=$as_dir/ ;;
8125 esac
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi ;;
8137 esac
8138 fi
8139 LIPO=$ac_cv_prog_LIPO
8140 if test -n "$LIPO"; then
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8142 printf "%s\n" "$LIPO" >&6; }
8143 else
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 printf "%s\n" "no" >&6; }
8146 fi
8147
8148
8149 fi
8150 if test -z "$ac_cv_prog_LIPO"; then
8151 ac_ct_LIPO=$LIPO
8152 # Extract the first word of "lipo", so it can be a program name with args.
8153 set dummy lipo; ac_word=$2
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 printf %s "checking for $ac_word... " >&6; }
8156 if test ${ac_cv_prog_ac_ct_LIPO+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else case e in #(
8160 e) if test -n "$ac_ct_LIPO"; then
8161 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166 IFS=$as_save_IFS
8167 case $as_dir in #(((
8168 '') as_dir=./ ;;
8169 */) ;;
8170 *) as_dir=$as_dir/ ;;
8171 esac
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_ac_ct_LIPO="lipo"
8175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi ;;
8183 esac
8184 fi
8185 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8186 if test -n "$ac_ct_LIPO"; then
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8188 printf "%s\n" "$ac_ct_LIPO" >&6; }
8189 else
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 printf "%s\n" "no" >&6; }
8192 fi
8193
8194 if test "x$ac_ct_LIPO" = x; then
8195 LIPO=":"
8196 else
8197 case $cross_compiling:$ac_tool_warned in
8198 yes:)
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201 ac_tool_warned=yes ;;
8202 esac
8203 LIPO=$ac_ct_LIPO
8204 fi
8205 else
8206 LIPO="$ac_cv_prog_LIPO"
8207 fi
8208
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}otool; ac_word=$2
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 printf %s "checking for $ac_word... " >&6; }
8214 if test ${ac_cv_prog_OTOOL+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else case e in #(
8218 e) if test -n "$OTOOL"; then
8219 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 case $as_dir in #(((
8226 '') as_dir=./ ;;
8227 */) ;;
8228 *) as_dir=$as_dir/ ;;
8229 esac
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi ;;
8241 esac
8242 fi
8243 OTOOL=$ac_cv_prog_OTOOL
8244 if test -n "$OTOOL"; then
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8246 printf "%s\n" "$OTOOL" >&6; }
8247 else
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 printf "%s\n" "no" >&6; }
8250 fi
8251
8252
8253 fi
8254 if test -z "$ac_cv_prog_OTOOL"; then
8255 ac_ct_OTOOL=$OTOOL
8256 # Extract the first word of "otool", so it can be a program name with args.
8257 set dummy otool; ac_word=$2
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 printf %s "checking for $ac_word... " >&6; }
8260 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) if test -n "$ac_ct_OTOOL"; then
8265 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 case $as_dir in #(((
8272 '') as_dir=./ ;;
8273 */) ;;
8274 *) as_dir=$as_dir/ ;;
8275 esac
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_ac_ct_OTOOL="otool"
8279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi ;;
8287 esac
8288 fi
8289 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8290 if test -n "$ac_ct_OTOOL"; then
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8292 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8293 else
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 printf "%s\n" "no" >&6; }
8296 fi
8297
8298 if test "x$ac_ct_OTOOL" = x; then
8299 OTOOL=":"
8300 else
8301 case $cross_compiling:$ac_tool_warned in
8302 yes:)
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307 OTOOL=$ac_ct_OTOOL
8308 fi
8309 else
8310 OTOOL="$ac_cv_prog_OTOOL"
8311 fi
8312
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 printf %s "checking for $ac_word... " >&6; }
8318 if test ${ac_cv_prog_OTOOL64+y}
8319 then :
8320 printf %s "(cached) " >&6
8321 else case e in #(
8322 e) if test -n "$OTOOL64"; then
8323 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328 IFS=$as_save_IFS
8329 case $as_dir in #(((
8330 '') as_dir=./ ;;
8331 */) ;;
8332 *) as_dir=$as_dir/ ;;
8333 esac
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8336 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344 fi ;;
8345 esac
8346 fi
8347 OTOOL64=$ac_cv_prog_OTOOL64
8348 if test -n "$OTOOL64"; then
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8350 printf "%s\n" "$OTOOL64" >&6; }
8351 else
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 printf "%s\n" "no" >&6; }
8354 fi
8355
8356
8357 fi
8358 if test -z "$ac_cv_prog_OTOOL64"; then
8359 ac_ct_OTOOL64=$OTOOL64
8360 # Extract the first word of "otool64", so it can be a program name with args.
8361 set dummy otool64; ac_word=$2
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 printf %s "checking for $ac_word... " >&6; }
8364 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else case e in #(
8368 e) if test -n "$ac_ct_OTOOL64"; then
8369 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 case $as_dir in #(((
8376 '') as_dir=./ ;;
8377 */) ;;
8378 *) as_dir=$as_dir/ ;;
8379 esac
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_ac_ct_OTOOL64="otool64"
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi ;;
8391 esac
8392 fi
8393 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8394 if test -n "$ac_ct_OTOOL64"; then
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8396 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8397 else
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 printf "%s\n" "no" >&6; }
8400 fi
8401
8402 if test "x$ac_ct_OTOOL64" = x; then
8403 OTOOL64=":"
8404 else
8405 case $cross_compiling:$ac_tool_warned in
8406 yes:)
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8410 esac
8411 OTOOL64=$ac_ct_OTOOL64
8412 fi
8413 else
8414 OTOOL64="$ac_cv_prog_OTOOL64"
8415 fi
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8444 printf %s "checking for -single_module linker flag... " >&6; }
8445 if test ${lt_cv_apple_cc_single_mod+y}
8446 then :
8447 printf %s "(cached) " >&6
8448 else case e in #(
8449 e) lt_cv_apple_cc_single_mod=no
8450 if test -z "$LT_MULTI_MODULE"; then
8451 # By default we will add the -single_module flag. You can override
8452 # by either setting the environment variable LT_MULTI_MODULE
8453 # non-empty at configure time, or by adding -multi_module to the
8454 # link flags.
8455 rm -rf libconftest.dylib*
8456 echo "int foo(void){return 1;}" > conftest.c
8457 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8458 -dynamiclib -Wl,-single_module conftest.c" >&5
8459 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8460 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8461 _lt_result=$?
8462 # If there is a non-empty error log, and "single_module"
8463 # appears in it, assume the flag caused a linker warning
8464 if test -s conftest.err && $GREP single_module conftest.err; then
8465 cat conftest.err >&5
8466 # Otherwise, if the output was created with a 0 exit code from
8467 # the compiler, it worked.
8468 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8469 lt_cv_apple_cc_single_mod=yes
8470 else
8471 cat conftest.err >&5
8472 fi
8473 rm -rf libconftest.dylib*
8474 rm -f conftest.*
8475 fi ;;
8476 esac
8477 fi
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8479 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8480
8481 # Feature test to disable chained fixups since it is not
8482 # compatible with '-undefined dynamic_lookup'
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8484 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8485 if test ${lt_cv_support_no_fixup_chains+y}
8486 then :
8487 printf %s "(cached) " >&6
8488 else case e in #(
8489 e) save_LDFLAGS=$LDFLAGS
8490 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493
8494 int
8495 main (void)
8496 {
8497
8498 ;
8499 return 0;
8500 }
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"
8503 then :
8504 lt_cv_support_no_fixup_chains=yes
8505 else case e in #(
8506 e) lt_cv_support_no_fixup_chains=no
8507 ;;
8508 esac
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LDFLAGS=$save_LDFLAGS
8513
8514 ;;
8515 esac
8516 fi
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8518 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8519
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8521 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8522 if test ${lt_cv_ld_exported_symbols_list+y}
8523 then :
8524 printf %s "(cached) " >&6
8525 else case e in #(
8526 e) lt_cv_ld_exported_symbols_list=no
8527 save_LDFLAGS=$LDFLAGS
8528 echo "_main" > conftest.sym
8529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532
8533 int
8534 main (void)
8535 {
8536
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"
8542 then :
8543 lt_cv_ld_exported_symbols_list=yes
8544 else case e in #(
8545 e) lt_cv_ld_exported_symbols_list=no ;;
8546 esac
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8549 conftest$ac_exeext conftest.$ac_ext
8550 LDFLAGS=$save_LDFLAGS
8551 ;;
8552 esac
8553 fi
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8555 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8556
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8558 printf %s "checking for -force_load linker flag... " >&6; }
8559 if test ${lt_cv_ld_force_load+y}
8560 then :
8561 printf %s "(cached) " >&6
8562 else case e in #(
8563 e) lt_cv_ld_force_load=no
8564 cat > conftest.c << _LT_EOF
8565 int forced_loaded() { return 2;}
8566 _LT_EOF
8567 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8568 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8569 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8570 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8571 echo "$RANLIB libconftest.a" >&5
8572 $RANLIB libconftest.a 2>&5
8573 cat > conftest.c << _LT_EOF
8574 int main(void) { return 0;}
8575 _LT_EOF
8576 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8577 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8578 _lt_result=$?
8579 if test -s conftest.err && $GREP force_load conftest.err; then
8580 cat conftest.err >&5
8581 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8582 lt_cv_ld_force_load=yes
8583 else
8584 cat conftest.err >&5
8585 fi
8586 rm -f conftest.err libconftest.a conftest conftest.c
8587 rm -rf conftest.dSYM
8588 ;;
8589 esac
8590 fi
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8592 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8593 case $host_os in
8594 rhapsody* | darwin1.[012])
8595 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8596 darwin1.*)
8597 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8598 darwin*)
8599 case $MACOSX_DEPLOYMENT_TARGET,$host in
8600 10.[012],*|,*powerpc*-darwin[5-8]*)
8601 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8602 *)
8603 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8604 if test yes = "$lt_cv_support_no_fixup_chains"; then
8605 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8606 fi
8607 ;;
8608 esac
8609 ;;
8610 esac
8611 if test yes = "$lt_cv_apple_cc_single_mod"; then
8612 _lt_dar_single_mod='$single_module'
8613 fi
8614 _lt_dar_needs_single_mod=no
8615 case $host_os in
8616 rhapsody* | darwin1.*)
8617 _lt_dar_needs_single_mod=yes ;;
8618 darwin*)
8619 # When targeting Mac OS X 10.4 (darwin 8) or later,
8620 # -single_module is the default and -multi_module is unsupported.
8621 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8622 # target any OS version that needs -single_module.
8623 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8624 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8625 _lt_dar_needs_single_mod=yes ;;
8626 esac
8627 ;;
8628 esac
8629 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8630 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8631 else
8632 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8633 fi
8634 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8635 _lt_dsymutil='~$DSYMUTIL $lib || :'
8636 else
8637 _lt_dsymutil=
8638 fi
8639 ;;
8640 esac
8641
8642 # func_munge_path_list VARIABLE PATH
8643 # -----------------------------------
8644 # VARIABLE is name of variable containing _space_ separated list of
8645 # directories to be munged by the contents of PATH, which is string
8646 # having a format:
8647 # "DIR[:DIR]:"
8648 # string "DIR[ DIR]" will be prepended to VARIABLE
8649 # ":DIR[:DIR]"
8650 # string "DIR[ DIR]" will be appended to VARIABLE
8651 # "DIRP[:DIRP]::[DIRA:]DIRA"
8652 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8653 # "DIRA[ DIRA]" will be appended to VARIABLE
8654 # "DIR[:DIR]"
8655 # VARIABLE will be replaced by "DIR[ DIR]"
8656 func_munge_path_list ()
8657 {
8658 case x$2 in
8659 x)
8660 ;;
8661 *:)
8662 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8663 ;;
8664 x:*)
8665 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8666 ;;
8667 *::*)
8668 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8669 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8670 ;;
8671 *)
8672 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8673 ;;
8674 esac
8675 }
8676
8677 ac_header= ac_cache=
8678 for ac_item in $ac_header_c_list
8679 do
8680 if test $ac_cache; then
8681 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8682 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8683 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8684 fi
8685 ac_header= ac_cache=
8686 elif test $ac_header; then
8687 ac_cache=$ac_item
8688 else
8689 ac_header=$ac_item
8690 fi
8691 done
8692
8693
8694
8695
8696
8697
8698
8699
8700 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8701 then :
8702
8703 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8704
8705 fi
8706 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8707 "
8708 if test "x$ac_cv_header_dlfcn_h" = xyes
8709 then :
8710 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8711
8712 fi
8713
8714
8715
8716
8717
8718 # Set options
8719
8720
8721
8722 enable_dlopen=no
8723
8724
8725 enable_win32_dll=no
8726
8727
8728 # Check whether --enable-shared was given.
8729 if test ${enable_shared+y}
8730 then :
8731 enableval=$enable_shared; p=${PACKAGE-default}
8732 case $enableval in
8733 yes) enable_shared=yes ;;
8734 no) enable_shared=no ;;
8735 *)
8736 enable_shared=no
8737 # Look at the argument we got. We use all the common list separators.
8738 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8739 for pkg in $enableval; do
8740 IFS=$lt_save_ifs
8741 if test "X$pkg" = "X$p"; then
8742 enable_shared=yes
8743 fi
8744 done
8745 IFS=$lt_save_ifs
8746 ;;
8747 esac
8748 else case e in #(
8749 e) enable_shared=yes ;;
8750 esac
8751 fi
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 # Check whether --enable-static was given.
8762 if test ${enable_static+y}
8763 then :
8764 enableval=$enable_static; p=${PACKAGE-default}
8765 case $enableval in
8766 yes) enable_static=yes ;;
8767 no) enable_static=no ;;
8768 *)
8769 enable_static=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8772 for pkg in $enableval; do
8773 IFS=$lt_save_ifs
8774 if test "X$pkg" = "X$p"; then
8775 enable_static=yes
8776 fi
8777 done
8778 IFS=$lt_save_ifs
8779 ;;
8780 esac
8781 else case e in #(
8782 e) enable_static=yes ;;
8783 esac
8784 fi
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794 # Check whether --enable-pic was given.
8795 if test ${enable_pic+y}
8796 then :
8797 enableval=$enable_pic; lt_p=${PACKAGE-default}
8798 case $enableval in
8799 yes|no) pic_mode=$enableval ;;
8800 *)
8801 pic_mode=default
8802 # Look at the argument we got. We use all the common list separators.
8803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8804 for lt_pkg in $enableval; do
8805 IFS=$lt_save_ifs
8806 if test "X$lt_pkg" = "X$lt_p"; then
8807 pic_mode=yes
8808 fi
8809 done
8810 IFS=$lt_save_ifs
8811 ;;
8812 esac
8813 else case e in #(
8814 e) # Check whether --with-pic was given.
8815 if test ${with_pic+y}
8816 then :
8817 withval=$with_pic; lt_p=${PACKAGE-default}
8818 case $withval in
8819 yes|no) pic_mode=$withval ;;
8820 *)
8821 pic_mode=default
8822 # Look at the argument we got. We use all the common list separators.
8823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8824 for lt_pkg in $withval; do
8825 IFS=$lt_save_ifs
8826 if test "X$lt_pkg" = "X$lt_p"; then
8827 pic_mode=yes
8828 fi
8829 done
8830 IFS=$lt_save_ifs
8831 ;;
8832 esac
8833 else case e in #(
8834 e) pic_mode=default ;;
8835 esac
8836 fi
8837
8838 ;;
8839 esac
8840 fi
8841
8842
8843
8844
8845
8846
8847
8848
8849 # Check whether --enable-fast-install was given.
8850 if test ${enable_fast_install+y}
8851 then :
8852 enableval=$enable_fast_install; p=${PACKAGE-default}
8853 case $enableval in
8854 yes) enable_fast_install=yes ;;
8855 no) enable_fast_install=no ;;
8856 *)
8857 enable_fast_install=no
8858 # Look at the argument we got. We use all the common list separators.
8859 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8860 for pkg in $enableval; do
8861 IFS=$lt_save_ifs
8862 if test "X$pkg" = "X$p"; then
8863 enable_fast_install=yes
8864 fi
8865 done
8866 IFS=$lt_save_ifs
8867 ;;
8868 esac
8869 else case e in #(
8870 e) enable_fast_install=yes ;;
8871 esac
8872 fi
8873
8874
8875
8876
8877
8878
8879
8880
8881 shared_archive_member_spec=
8882 case $host,$enable_shared in
8883 power*-*-aix[5-9]*,yes)
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8885 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8886 # Check whether --enable-aix-soname was given.
8887 if test ${enable_aix_soname+y}
8888 then :
8889 enableval=$enable_aix_soname; case $enableval in
8890 aix|svr4|both)
8891 ;;
8892 *)
8893 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8894 ;;
8895 esac
8896 lt_cv_with_aix_soname=$enable_aix_soname
8897 else case e in #(
8898 e) # Check whether --with-aix-soname was given.
8899 if test ${with_aix_soname+y}
8900 then :
8901 withval=$with_aix_soname; case $withval in
8902 aix|svr4|both)
8903 ;;
8904 *)
8905 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8906 ;;
8907 esac
8908 lt_cv_with_aix_soname=$with_aix_soname
8909 else case e in #(
8910 e) if test ${lt_cv_with_aix_soname+y}
8911 then :
8912 printf %s "(cached) " >&6
8913 else case e in #(
8914 e) lt_cv_with_aix_soname=aix ;;
8915 esac
8916 fi
8917 ;;
8918 esac
8919 fi
8920
8921 enable_aix_soname=$lt_cv_with_aix_soname ;;
8922 esac
8923 fi
8924
8925 with_aix_soname=$enable_aix_soname
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8927 printf "%s\n" "$with_aix_soname" >&6; }
8928 if test aix != "$with_aix_soname"; then
8929 # For the AIX way of multilib, we name the shared archive member
8930 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8931 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8932 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8933 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8934 if test 64 = "${OBJECT_MODE-32}"; then
8935 shared_archive_member_spec=shr_64
8936 else
8937 shared_archive_member_spec=shr
8938 fi
8939 fi
8940 ;;
8941 *)
8942 with_aix_soname=aix
8943 ;;
8944 esac
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955 # This can be used to rebuild libtool when needed
8956 LIBTOOL_DEPS=$ltmain
8957
8958 # Always use our own libtool.
8959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 test -z "$LN_S" && LN_S="ln -s"
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005 if test -n "${ZSH_VERSION+set}"; then
9006 setopt NO_GLOB_SUBST
9007 fi
9008
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9010 printf %s "checking for objdir... " >&6; }
9011 if test ${lt_cv_objdir+y}
9012 then :
9013 printf %s "(cached) " >&6
9014 else case e in #(
9015 e) rm -f .libs 2>/dev/null
9016 mkdir .libs 2>/dev/null
9017 if test -d .libs; then
9018 lt_cv_objdir=.libs
9019 else
9020 # MS-DOS does not allow filenames that begin with a dot.
9021 lt_cv_objdir=_libs
9022 fi
9023 rmdir .libs 2>/dev/null ;;
9024 esac
9025 fi
9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9027 printf "%s\n" "$lt_cv_objdir" >&6; }
9028 objdir=$lt_cv_objdir
9029
9030
9031
9032
9033
9034 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9035
9036
9037
9038
9039 case $host_os in
9040 aix3*)
9041 # AIX sometimes has problems with the GCC collect2 program. For some
9042 # reason, if we set the COLLECT_NAMES environment variable, the problems
9043 # vanish in a puff of smoke.
9044 if test set != "${COLLECT_NAMES+set}"; then
9045 COLLECT_NAMES=
9046 export COLLECT_NAMES
9047 fi
9048 ;;
9049 esac
9050
9051 # Global variables:
9052 ofile=libtool
9053 can_build_shared=yes
9054
9055 # All known linkers require a '.a' archive for static linking (except MSVC and
9056 # ICC, which need '.lib').
9057 libext=a
9058
9059 with_gnu_ld=$lt_cv_prog_gnu_ld
9060
9061 old_CC=$CC
9062 old_CFLAGS=$CFLAGS
9063
9064 # Set sane defaults for various variables
9065 test -z "$CC" && CC=cc
9066 test -z "$LTCC" && LTCC=$CC
9067 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9068 test -z "$LD" && LD=ld
9069 test -z "$ac_objext" && ac_objext=o
9070
9071 func_cc_basename $compiler
9072 cc_basename=$func_cc_basename_result
9073
9074
9075 # Only perform the check for file, if the check method requires it
9076 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9077 case $deplibs_check_method in
9078 file_magic*)
9079 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9081 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9082 if test ${lt_cv_path_MAGIC_CMD+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else case e in #(
9086 e) case $MAGIC_CMD in
9087 [\\/*] | ?:[\\/]*)
9088 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9089 ;;
9090 *)
9091 lt_save_MAGIC_CMD=$MAGIC_CMD
9092 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9094 for ac_dir in $ac_dummy; do
9095 IFS=$lt_save_ifs
9096 test -z "$ac_dir" && ac_dir=.
9097 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9098 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9099 if test -n "$file_magic_test_file"; then
9100 case $deplibs_check_method in
9101 "file_magic "*)
9102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9103 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9105 $EGREP "$file_magic_regex" > /dev/null; then
9106 :
9107 else
9108 cat <<_LT_EOF 1>&2
9109
9110 *** Warning: the command libtool uses to detect shared libraries,
9111 *** $file_magic_cmd, produces output that libtool cannot recognize.
9112 *** The result is that libtool may fail to recognize shared libraries
9113 *** as such. This will affect the creation of libtool libraries that
9114 *** depend on shared libraries, but programs linked with such libtool
9115 *** libraries will work regardless of this problem. Nevertheless, you
9116 *** may want to report the problem to your system manager and/or to
9117 *** bug-libtool@gnu.org
9118
9119 _LT_EOF
9120 fi ;;
9121 esac
9122 fi
9123 break
9124 fi
9125 done
9126 IFS=$lt_save_ifs
9127 MAGIC_CMD=$lt_save_MAGIC_CMD
9128 ;;
9129 esac ;;
9130 esac
9131 fi
9132
9133 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9134 if test -n "$MAGIC_CMD"; then
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9136 printf "%s\n" "$MAGIC_CMD" >&6; }
9137 else
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 printf "%s\n" "no" >&6; }
9140 fi
9141
9142
9143
9144
9145
9146 if test -z "$lt_cv_path_MAGIC_CMD"; then
9147 if test -n "$ac_tool_prefix"; then
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9149 printf %s "checking for file... " >&6; }
9150 if test ${lt_cv_path_MAGIC_CMD+y}
9151 then :
9152 printf %s "(cached) " >&6
9153 else case e in #(
9154 e) case $MAGIC_CMD in
9155 [\\/*] | ?:[\\/]*)
9156 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9157 ;;
9158 *)
9159 lt_save_MAGIC_CMD=$MAGIC_CMD
9160 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9162 for ac_dir in $ac_dummy; do
9163 IFS=$lt_save_ifs
9164 test -z "$ac_dir" && ac_dir=.
9165 if test -f "$ac_dir/file"; then
9166 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9167 if test -n "$file_magic_test_file"; then
9168 case $deplibs_check_method in
9169 "file_magic "*)
9170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9171 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9173 $EGREP "$file_magic_regex" > /dev/null; then
9174 :
9175 else
9176 cat <<_LT_EOF 1>&2
9177
9178 *** Warning: the command libtool uses to detect shared libraries,
9179 *** $file_magic_cmd, produces output that libtool cannot recognize.
9180 *** The result is that libtool may fail to recognize shared libraries
9181 *** as such. This will affect the creation of libtool libraries that
9182 *** depend on shared libraries, but programs linked with such libtool
9183 *** libraries will work regardless of this problem. Nevertheless, you
9184 *** may want to report the problem to your system manager and/or to
9185 *** bug-libtool@gnu.org
9186
9187 _LT_EOF
9188 fi ;;
9189 esac
9190 fi
9191 break
9192 fi
9193 done
9194 IFS=$lt_save_ifs
9195 MAGIC_CMD=$lt_save_MAGIC_CMD
9196 ;;
9197 esac ;;
9198 esac
9199 fi
9200
9201 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9202 if test -n "$MAGIC_CMD"; then
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9204 printf "%s\n" "$MAGIC_CMD" >&6; }
9205 else
9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 printf "%s\n" "no" >&6; }
9208 fi
9209
9210
9211 else
9212 MAGIC_CMD=:
9213 fi
9214 fi
9215
9216 fi
9217 ;;
9218 esac
9219
9220 # Use C for the default configuration in the libtool script
9221
9222 lt_save_CC=$CC
9223 ac_ext=c
9224 ac_cpp='$CPP $CPPFLAGS'
9225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9228
9229
9230 # Source file extension for C test sources.
9231 ac_ext=c
9232
9233 # Object file extension for compiled C test sources.
9234 objext=o
9235 objext=$objext
9236
9237 # Code to be used in simple compile tests
9238 lt_simple_compile_test_code="int some_variable = 0;"
9239
9240 # Code to be used in simple link tests
9241 lt_simple_link_test_code='int main(void){return(0);}'
9242
9243
9244
9245
9246
9247
9248
9249 # If no C compiler was specified, use CC.
9250 LTCC=${LTCC-"$CC"}
9251
9252 # If no C compiler flags were specified, use CFLAGS.
9253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9254
9255 # Allow CC to be a program name with arguments.
9256 compiler=$CC
9257
9258 # Save the default compiler, since it gets overwritten when the other
9259 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9260 compiler_DEFAULT=$CC
9261
9262 # save warnings/boilerplate of simple test code
9263 ac_outfile=conftest.$ac_objext
9264 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9266 _lt_compiler_boilerplate=`cat conftest.err`
9267 $RM conftest*
9268
9269 ac_outfile=conftest.$ac_objext
9270 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9272 _lt_linker_boilerplate=`cat conftest.err`
9273 $RM -r conftest*
9274
9275
9276 ## CAVEAT EMPTOR:
9277 ## There is no encapsulation within the following macros, do not change
9278 ## the running order or otherwise move them around unless you know exactly
9279 ## what you are doing...
9280 if test -n "$compiler"; then
9281
9282 lt_prog_compiler_no_builtin_flag=
9283
9284 if test yes = "$GCC"; then
9285 case $cc_basename in
9286 nvcc*)
9287 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9288 *)
9289 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9290 esac
9291
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9293 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9294 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9295 then :
9296 printf %s "(cached) " >&6
9297 else case e in #(
9298 e) lt_cv_prog_compiler_rtti_exceptions=no
9299 ac_outfile=conftest.$ac_objext
9300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9301 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9302 # Insert the option either (1) after the last *FLAGS variable, or
9303 # (2) before a word containing "conftest.", or (3) at the end.
9304 # Note that $ac_compile itself does not contain backslashes and begins
9305 # with a dollar sign (not a hyphen), so the echo should work correctly.
9306 # The option is referenced via a variable to avoid confusing sed.
9307 lt_compile=`echo "$ac_compile" | $SED \
9308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310 -e 's:$: $lt_compiler_flag:'`
9311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312 (eval "$lt_compile" 2>conftest.err)
9313 ac_status=$?
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 if (exit $ac_status) && test -s "$ac_outfile"; then
9317 # The compiler can only warn and ignore the option if not recognized
9318 # So say no if there are warnings other than the usual output.
9319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9322 lt_cv_prog_compiler_rtti_exceptions=yes
9323 fi
9324 fi
9325 $RM conftest*
9326 ;;
9327 esac
9328 fi
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9330 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9331
9332 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9333 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9334 else
9335 :
9336 fi
9337
9338 fi
9339
9340
9341
9342
9343
9344
9345 lt_prog_compiler_wl=
9346 lt_prog_compiler_pic=
9347 lt_prog_compiler_static=
9348
9349
9350 if test yes = "$GCC"; then
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_static='-static'
9353
9354 case $host_os in
9355 aix*)
9356 # All AIX code is PIC.
9357 if test ia64 = "$host_cpu"; then
9358 # AIX 5 now supports IA64 processor
9359 lt_prog_compiler_static='-Bstatic'
9360 fi
9361 lt_prog_compiler_pic='-fPIC'
9362 ;;
9363
9364 amigaos*)
9365 case $host_cpu in
9366 powerpc)
9367 # see comment about AmigaOS4 .so support
9368 lt_prog_compiler_pic='-fPIC'
9369 ;;
9370 m68k)
9371 # FIXME: we need at least 68020 code to build shared libraries, but
9372 # adding the '-m68020' flag to GCC prevents building anything better,
9373 # like '-m68040'.
9374 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9375 ;;
9376 esac
9377 ;;
9378
9379 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9380 # PIC is the default for these OSes.
9381 ;;
9382
9383 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9384 # This hack is so that the source file can tell whether it is being
9385 # built for inclusion in a dll (and should export symbols for example).
9386 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9387 # (--disable-auto-import) libraries
9388 lt_prog_compiler_pic='-DDLL_EXPORT'
9389 case $host_os in
9390 os2*)
9391 lt_prog_compiler_static='$wl-static'
9392 ;;
9393 esac
9394 ;;
9395
9396 darwin* | rhapsody*)
9397 # PIC is the default on this platform
9398 # Common symbols not allowed in MH_DYLIB files
9399 lt_prog_compiler_pic='-fno-common'
9400 ;;
9401
9402 haiku*)
9403 # PIC is the default for Haiku.
9404 # The "-static" flag exists, but is broken.
9405 lt_prog_compiler_static=
9406 ;;
9407
9408 hpux*)
9409 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9410 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9411 # sets the default TLS model and affects inlining.
9412 case $host_cpu in
9413 hppa*64*)
9414 # +Z the default
9415 ;;
9416 *)
9417 lt_prog_compiler_pic='-fPIC'
9418 ;;
9419 esac
9420 ;;
9421
9422 interix[3-9]*)
9423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9424 # Instead, we relocate shared libraries at runtime.
9425 ;;
9426
9427 msdosdjgpp*)
9428 # Just because we use GCC doesn't mean we suddenly get shared libraries
9429 # on systems that don't support them.
9430 lt_prog_compiler_can_build_shared=no
9431 enable_shared=no
9432 ;;
9433
9434 *nto* | *qnx*)
9435 # QNX uses GNU C++, but need to define -shared option too, otherwise
9436 # it will coredump.
9437 lt_prog_compiler_pic='-fPIC -shared'
9438 ;;
9439
9440 sysv4*MP*)
9441 if test -d /usr/nec; then
9442 lt_prog_compiler_pic=-Kconform_pic
9443 fi
9444 ;;
9445
9446 *)
9447 lt_prog_compiler_pic='-fPIC'
9448 ;;
9449 esac
9450
9451 case $cc_basename in
9452 nvcc*) # Cuda Compiler Driver 2.2
9453 lt_prog_compiler_wl='-Xlinker '
9454 if test -n "$lt_prog_compiler_pic"; then
9455 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9456 fi
9457 ;;
9458 esac
9459 else
9460 # PORTME Check for flag to pass linker flags through the system compiler.
9461 case $host_os in
9462 aix*)
9463 lt_prog_compiler_wl='-Wl,'
9464 if test ia64 = "$host_cpu"; then
9465 # AIX 5 now supports IA64 processor
9466 lt_prog_compiler_static='-Bstatic'
9467 else
9468 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9469 fi
9470 ;;
9471
9472 darwin* | rhapsody*)
9473 # PIC is the default on this platform
9474 # Common symbols not allowed in MH_DYLIB files
9475 lt_prog_compiler_pic='-fno-common'
9476 case $cc_basename in
9477 nagfor*)
9478 # NAG Fortran compiler
9479 lt_prog_compiler_wl='-Wl,-Wl,,'
9480 lt_prog_compiler_pic='-PIC'
9481 lt_prog_compiler_static='-Bstatic'
9482 ;;
9483 esac
9484 ;;
9485
9486 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9487 # This hack is so that the source file can tell whether it is being
9488 # built for inclusion in a dll (and should export symbols for example).
9489 lt_prog_compiler_pic='-DDLL_EXPORT'
9490 case $host_os in
9491 os2*)
9492 lt_prog_compiler_static='$wl-static'
9493 ;;
9494 esac
9495 ;;
9496
9497 hpux9* | hpux10* | hpux11*)
9498 lt_prog_compiler_wl='-Wl,'
9499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9500 # not for PA HP-UX.
9501 case $host_cpu in
9502 hppa*64*|ia64*)
9503 # +Z the default
9504 ;;
9505 *)
9506 lt_prog_compiler_pic='+Z'
9507 ;;
9508 esac
9509 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9510 lt_prog_compiler_static='$wl-a ${wl}archive'
9511 ;;
9512
9513 irix5* | irix6* | nonstopux*)
9514 lt_prog_compiler_wl='-Wl,'
9515 # PIC (with -KPIC) is the default.
9516 lt_prog_compiler_static='-non_shared'
9517 ;;
9518
9519 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9520 case $cc_basename in
9521 # old Intel for x86_64, which still supported -KPIC.
9522 ecc*)
9523 lt_prog_compiler_wl='-Wl,'
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-static'
9526 ;;
9527 *flang* | ftn | f18* | f95*)
9528 # Flang compiler.
9529 lt_prog_compiler_wl='-Wl,'
9530 lt_prog_compiler_pic='-fPIC'
9531 lt_prog_compiler_static='-static'
9532 ;;
9533 # icc used to be incompatible with GCC.
9534 # ICC 10 doesn't accept -KPIC any more.
9535 icc* | ifort*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_pic='-fPIC'
9538 lt_prog_compiler_static='-static'
9539 ;;
9540 # Lahey Fortran 8.1.
9541 lf95*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='--shared'
9544 lt_prog_compiler_static='--static'
9545 ;;
9546 nagfor*)
9547 # NAG Fortran compiler
9548 lt_prog_compiler_wl='-Wl,-Wl,,'
9549 lt_prog_compiler_pic='-PIC'
9550 lt_prog_compiler_static='-Bstatic'
9551 ;;
9552 tcc*)
9553 # Fabrice Bellard et al's Tiny C Compiler
9554 lt_prog_compiler_wl='-Wl,'
9555 lt_prog_compiler_pic='-fPIC'
9556 lt_prog_compiler_static='-static'
9557 ;;
9558 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9559 # Portland Group compilers (*not* the Pentium gcc compiler,
9560 # which looks to be a dead project)
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_pic='-fpic'
9563 lt_prog_compiler_static='-Bstatic'
9564 ;;
9565 ccc*)
9566 lt_prog_compiler_wl='-Wl,'
9567 # All Alpha code is PIC.
9568 lt_prog_compiler_static='-non_shared'
9569 ;;
9570 xl* | bgxl* | bgf* | mpixl*)
9571 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_pic='-qpic'
9574 lt_prog_compiler_static='-qstaticlink'
9575 ;;
9576 *)
9577 case `$CC -V 2>&1 | $SED 5q` in
9578 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9579 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9580 lt_prog_compiler_pic='-KPIC'
9581 lt_prog_compiler_static='-Bstatic'
9582 lt_prog_compiler_wl=''
9583 ;;
9584 *Sun\ F* | *Sun*Fortran*)
9585 lt_prog_compiler_pic='-KPIC'
9586 lt_prog_compiler_static='-Bstatic'
9587 lt_prog_compiler_wl='-Qoption ld '
9588 ;;
9589 *Sun\ C*)
9590 # Sun C 5.9
9591 lt_prog_compiler_pic='-KPIC'
9592 lt_prog_compiler_static='-Bstatic'
9593 lt_prog_compiler_wl='-Wl,'
9594 ;;
9595 *Intel*\ [CF]*Compiler*)
9596 lt_prog_compiler_wl='-Wl,'
9597 lt_prog_compiler_pic='-fPIC'
9598 lt_prog_compiler_static='-static'
9599 ;;
9600 *Portland\ Group*)
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-fpic'
9603 lt_prog_compiler_static='-Bstatic'
9604 ;;
9605 esac
9606 ;;
9607 esac
9608 ;;
9609
9610 newsos6)
9611 lt_prog_compiler_pic='-KPIC'
9612 lt_prog_compiler_static='-Bstatic'
9613 ;;
9614
9615 *-mlibc)
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='-fPIC'
9618 lt_prog_compiler_static='-static'
9619 ;;
9620
9621 *nto* | *qnx*)
9622 # QNX uses GNU C++, but need to define -shared option too, otherwise
9623 # it will coredump.
9624 lt_prog_compiler_pic='-fPIC -shared'
9625 ;;
9626
9627 osf3* | osf4* | osf5*)
9628 lt_prog_compiler_wl='-Wl,'
9629 # All OSF/1 code is PIC.
9630 lt_prog_compiler_static='-non_shared'
9631 ;;
9632
9633 rdos*)
9634 lt_prog_compiler_static='-non_shared'
9635 ;;
9636
9637 serenity*)
9638 ;;
9639
9640 solaris*)
9641 lt_prog_compiler_pic='-KPIC'
9642 lt_prog_compiler_static='-Bstatic'
9643 case $cc_basename in
9644 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9645 lt_prog_compiler_wl='-Qoption ld ';;
9646 *)
9647 lt_prog_compiler_wl='-Wl,';;
9648 esac
9649 ;;
9650
9651 sunos4*)
9652 lt_prog_compiler_wl='-Qoption ld '
9653 lt_prog_compiler_pic='-PIC'
9654 lt_prog_compiler_static='-Bstatic'
9655 ;;
9656
9657 sysv4 | sysv4.2uw2* | sysv4.3*)
9658 lt_prog_compiler_wl='-Wl,'
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9661 ;;
9662
9663 sysv4*MP*)
9664 if test -d /usr/nec; then
9665 lt_prog_compiler_pic='-Kconform_pic'
9666 lt_prog_compiler_static='-Bstatic'
9667 fi
9668 ;;
9669
9670 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_pic='-KPIC'
9673 lt_prog_compiler_static='-Bstatic'
9674 ;;
9675
9676 unicos*)
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_can_build_shared=no
9679 ;;
9680
9681 uts4*)
9682 lt_prog_compiler_pic='-pic'
9683 lt_prog_compiler_static='-Bstatic'
9684 ;;
9685
9686 *)
9687 lt_prog_compiler_can_build_shared=no
9688 ;;
9689 esac
9690 fi
9691
9692 case $host_os in
9693 # For platforms that do not support PIC, -DPIC is meaningless:
9694 *djgpp*)
9695 lt_prog_compiler_pic=
9696 ;;
9697 *)
9698 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9699 ;;
9700 esac
9701
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9703 printf %s "checking for $compiler option to produce PIC... " >&6; }
9704 if test ${lt_cv_prog_compiler_pic+y}
9705 then :
9706 printf %s "(cached) " >&6
9707 else case e in #(
9708 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9709 esac
9710 fi
9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9712 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9713 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9714
9715 #
9716 # Check to make sure the PIC flag actually works.
9717 #
9718 if test -n "$lt_prog_compiler_pic"; then
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9720 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9721 if test ${lt_cv_prog_compiler_pic_works+y}
9722 then :
9723 printf %s "(cached) " >&6
9724 else case e in #(
9725 e) lt_cv_prog_compiler_pic_works=no
9726 ac_outfile=conftest.$ac_objext
9727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9728 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9729 # Insert the option either (1) after the last *FLAGS variable, or
9730 # (2) before a word containing "conftest.", or (3) at the end.
9731 # Note that $ac_compile itself does not contain backslashes and begins
9732 # with a dollar sign (not a hyphen), so the echo should work correctly.
9733 # The option is referenced via a variable to avoid confusing sed.
9734 lt_compile=`echo "$ac_compile" | $SED \
9735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9737 -e 's:$: $lt_compiler_flag:'`
9738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9739 (eval "$lt_compile" 2>conftest.err)
9740 ac_status=$?
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 if (exit $ac_status) && test -s "$ac_outfile"; then
9744 # The compiler can only warn and ignore the option if not recognized
9745 # So say no if there are warnings other than the usual output.
9746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9749 lt_cv_prog_compiler_pic_works=yes
9750 fi
9751 fi
9752 $RM conftest*
9753 ;;
9754 esac
9755 fi
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9757 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9758
9759 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9760 case $lt_prog_compiler_pic in
9761 "" | " "*) ;;
9762 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9763 esac
9764 else
9765 lt_prog_compiler_pic=
9766 lt_prog_compiler_can_build_shared=no
9767 fi
9768
9769 fi
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781 #
9782 # Check to make sure the static flag actually works.
9783 #
9784 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9786 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9787 if test ${lt_cv_prog_compiler_static_works+y}
9788 then :
9789 printf %s "(cached) " >&6
9790 else case e in #(
9791 e) lt_cv_prog_compiler_static_works=no
9792 save_LDFLAGS=$LDFLAGS
9793 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9794 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9795 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9796 # The linker can only warn and ignore the option if not recognized
9797 # So say no if there are warnings
9798 if test -s conftest.err; then
9799 # Append any errors to the config.log.
9800 cat conftest.err 1>&5
9801 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9803 if diff conftest.exp conftest.er2 >/dev/null; then
9804 lt_cv_prog_compiler_static_works=yes
9805 fi
9806 else
9807 lt_cv_prog_compiler_static_works=yes
9808 fi
9809 fi
9810 $RM -r conftest*
9811 LDFLAGS=$save_LDFLAGS
9812 ;;
9813 esac
9814 fi
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9816 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9817
9818 if test yes = "$lt_cv_prog_compiler_static_works"; then
9819 :
9820 else
9821 lt_prog_compiler_static=
9822 fi
9823
9824
9825
9826
9827
9828
9829
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9831 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9832 if test ${lt_cv_prog_compiler_c_o+y}
9833 then :
9834 printf %s "(cached) " >&6
9835 else case e in #(
9836 e) lt_cv_prog_compiler_c_o=no
9837 $RM -r conftest 2>/dev/null
9838 mkdir conftest
9839 cd conftest
9840 mkdir out
9841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9842
9843 lt_compiler_flag="-o out/conftest2.$ac_objext"
9844 # Insert the option either (1) after the last *FLAGS variable, or
9845 # (2) before a word containing "conftest.", or (3) at the end.
9846 # Note that $ac_compile itself does not contain backslashes and begins
9847 # with a dollar sign (not a hyphen), so the echo should work correctly.
9848 lt_compile=`echo "$ac_compile" | $SED \
9849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9851 -e 's:$: $lt_compiler_flag:'`
9852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9853 (eval "$lt_compile" 2>out/conftest.err)
9854 ac_status=$?
9855 cat out/conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9858 then
9859 # The compiler can only warn and ignore the option if not recognized
9860 # So say no if there are warnings
9861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9864 lt_cv_prog_compiler_c_o=yes
9865 fi
9866 fi
9867 chmod u+w . 2>&5
9868 $RM conftest*
9869 # SGI C++ compiler will create directory out/ii_files/ for
9870 # template instantiation
9871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9872 $RM out/* && rmdir out
9873 cd ..
9874 $RM -r conftest
9875 $RM conftest*
9876 ;;
9877 esac
9878 fi
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9880 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9881
9882
9883
9884
9885
9886
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9888 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9889 if test ${lt_cv_prog_compiler_c_o+y}
9890 then :
9891 printf %s "(cached) " >&6
9892 else case e in #(
9893 e) lt_cv_prog_compiler_c_o=no
9894 $RM -r conftest 2>/dev/null
9895 mkdir conftest
9896 cd conftest
9897 mkdir out
9898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9899
9900 lt_compiler_flag="-o out/conftest2.$ac_objext"
9901 # Insert the option either (1) after the last *FLAGS variable, or
9902 # (2) before a word containing "conftest.", or (3) at the end.
9903 # Note that $ac_compile itself does not contain backslashes and begins
9904 # with a dollar sign (not a hyphen), so the echo should work correctly.
9905 lt_compile=`echo "$ac_compile" | $SED \
9906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9908 -e 's:$: $lt_compiler_flag:'`
9909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9910 (eval "$lt_compile" 2>out/conftest.err)
9911 ac_status=$?
9912 cat out/conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9915 then
9916 # The compiler can only warn and ignore the option if not recognized
9917 # So say no if there are warnings
9918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9921 lt_cv_prog_compiler_c_o=yes
9922 fi
9923 fi
9924 chmod u+w . 2>&5
9925 $RM conftest*
9926 # SGI C++ compiler will create directory out/ii_files/ for
9927 # template instantiation
9928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9929 $RM out/* && rmdir out
9930 cd ..
9931 $RM -r conftest
9932 $RM conftest*
9933 ;;
9934 esac
9935 fi
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9937 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9938
9939
9940
9941
9942 hard_links=nottested
9943 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9944 # do not overwrite the value of need_locks provided by the user
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9946 printf %s "checking if we can lock with hard links... " >&6; }
9947 hard_links=yes
9948 $RM conftest*
9949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9950 touch conftest.a
9951 ln conftest.a conftest.b 2>&5 || hard_links=no
9952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9954 printf "%s\n" "$hard_links" >&6; }
9955 if test no = "$hard_links"; then
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9957 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9958 need_locks=warn
9959 fi
9960 else
9961 need_locks=no
9962 fi
9963
9964
9965
9966
9967
9968
9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9970 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9971
9972 runpath_var=
9973 allow_undefined_flag=
9974 always_export_symbols=no
9975 archive_cmds=
9976 archive_expsym_cmds=
9977 compiler_needs_object=no
9978 enable_shared_with_static_runtimes=no
9979 export_dynamic_flag_spec=
9980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9981 hardcode_automatic=no
9982 hardcode_direct=no
9983 hardcode_direct_absolute=no
9984 hardcode_libdir_flag_spec=
9985 hardcode_libdir_separator=
9986 hardcode_minus_L=no
9987 hardcode_shlibpath_var=unsupported
9988 inherit_rpath=no
9989 link_all_deplibs=unknown
9990 module_cmds=
9991 module_expsym_cmds=
9992 old_archive_from_new_cmds=
9993 old_archive_from_expsyms_cmds=
9994 thread_safe_flag_spec=
9995 whole_archive_flag_spec=
9996 # include_expsyms should be a list of space-separated symbols to be *always*
9997 # included in the symbol list
9998 include_expsyms=
9999 # exclude_expsyms can be an extended regexp of symbols to exclude
10000 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10001 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10002 # as well as any symbol that contains 'd'.
10003 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10005 # platforms (ab)use it in PIC code, but their linkers get confused if
10006 # the symbol is explicitly referenced. Since portable code cannot
10007 # rely on this symbol name, it's probably fine to never include it in
10008 # preloaded symbol tables.
10009 # Exclude shared library initialization/finalization symbols.
10010 extract_expsyms_cmds=
10011
10012 case $host_os in
10013 cygwin* | mingw* | windows* | pw32* | cegcc*)
10014 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10015 # When not using gcc, we currently assume that we are using
10016 # Microsoft Visual C++ or Intel C++ Compiler.
10017 if test yes != "$GCC"; then
10018 with_gnu_ld=no
10019 fi
10020 ;;
10021 interix*)
10022 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10023 with_gnu_ld=yes
10024 ;;
10025 esac
10026
10027 ld_shlibs=yes
10028
10029 # On some targets, GNU ld is compatible enough with the native linker
10030 # that we're better off using the native interface for both.
10031 lt_use_gnu_ld_interface=no
10032 if test yes = "$with_gnu_ld"; then
10033 case $host_os in
10034 aix*)
10035 # The AIX port of GNU ld has always aspired to compatibility
10036 # with the native linker. However, as the warning in the GNU ld
10037 # block says, versions before 2.19.5* couldn't really create working
10038 # shared libraries, regardless of the interface used.
10039 case `$LD -v 2>&1` in
10040 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10041 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10042 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10043 *)
10044 lt_use_gnu_ld_interface=yes
10045 ;;
10046 esac
10047 ;;
10048 *)
10049 lt_use_gnu_ld_interface=yes
10050 ;;
10051 esac
10052 fi
10053
10054 if test yes = "$lt_use_gnu_ld_interface"; then
10055 # If archive_cmds runs LD, not CC, wlarc should be empty
10056 wlarc='$wl'
10057
10058 # Set some defaults for GNU ld with shared library support. These
10059 # are reset later if shared libraries are not supported. Putting them
10060 # here allows them to be overridden if necessary.
10061 runpath_var=LD_RUN_PATH
10062 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10063 export_dynamic_flag_spec='$wl--export-dynamic'
10064 # ancient GNU ld didn't support --whole-archive et. al.
10065 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10066 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10067 else
10068 whole_archive_flag_spec=
10069 fi
10070 supports_anon_versioning=no
10071 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10072 *GNU\ gold*) supports_anon_versioning=yes ;;
10073 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10076 *\ 2.11.*) ;; # other 2.11 versions
10077 *) supports_anon_versioning=yes ;;
10078 esac
10079
10080 # See if GNU ld supports shared libraries.
10081 case $host_os in
10082 aix[3-9]*)
10083 # On AIX/PPC, the GNU linker is very broken
10084 if test ia64 != "$host_cpu"; then
10085 ld_shlibs=no
10086 cat <<_LT_EOF 1>&2
10087
10088 *** Warning: the GNU linker, at least up to release 2.19, is reported
10089 *** to be unable to reliably create shared libraries on AIX.
10090 *** Therefore, libtool is disabling shared libraries support. If you
10091 *** really care for shared libraries, you may want to install binutils
10092 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10093 *** You will then need to restart the configuration process.
10094
10095 _LT_EOF
10096 fi
10097 ;;
10098
10099 amigaos*)
10100 case $host_cpu in
10101 powerpc)
10102 # see comment about AmigaOS4 .so support
10103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10104 archive_expsym_cmds=''
10105 ;;
10106 m68k)
10107 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)'
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 hardcode_minus_L=yes
10110 ;;
10111 esac
10112 ;;
10113
10114 beos*)
10115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10116 allow_undefined_flag=unsupported
10117 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10118 # support --undefined. This deserves some investigation. FIXME
10119 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10120 else
10121 ld_shlibs=no
10122 fi
10123 ;;
10124
10125 cygwin* | mingw* | windows* | pw32* | cegcc*)
10126 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10127 # as there is no search path for DLLs.
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 export_dynamic_flag_spec='$wl--export-all-symbols'
10130 allow_undefined_flag=unsupported
10131 always_export_symbols=no
10132 enable_shared_with_static_runtimes=yes
10133 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'
10134 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10135 file_list_spec='@'
10136
10137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10139 # If the export-symbols file already is a .def file, use it as
10140 # is; otherwise, prepend EXPORTS...
10141 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10142 cp $export_symbols $output_objdir/$soname.def;
10143 else
10144 echo EXPORTS > $output_objdir/$soname.def;
10145 cat $export_symbols >> $output_objdir/$soname.def;
10146 fi~
10147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10148 else
10149 ld_shlibs=no
10150 fi
10151 ;;
10152
10153 haiku*)
10154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10155 link_all_deplibs=no
10156 ;;
10157
10158 os2*)
10159 hardcode_libdir_flag_spec='-L$libdir'
10160 hardcode_minus_L=yes
10161 allow_undefined_flag=unsupported
10162 shrext_cmds=.dll
10163 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10164 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10165 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10166 $ECHO EXPORTS >> $output_objdir/$libname.def~
10167 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10168 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10169 emximp -o $lib $output_objdir/$libname.def'
10170 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10171 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10172 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10173 $ECHO EXPORTS >> $output_objdir/$libname.def~
10174 prefix_cmds="$SED"~
10175 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10176 prefix_cmds="$prefix_cmds -e 1d";
10177 fi~
10178 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10179 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10180 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10181 emximp -o $lib $output_objdir/$libname.def'
10182 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10183 enable_shared_with_static_runtimes=yes
10184 file_list_spec='@'
10185 ;;
10186
10187 interix[3-9]*)
10188 hardcode_direct=no
10189 hardcode_shlibpath_var=no
10190 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10191 export_dynamic_flag_spec='$wl-E'
10192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10193 # Instead, shared libraries are loaded at an image base (0x10000000 by
10194 # default) and relocated if they conflict, which is a slow very memory
10195 # consuming and fragmenting process. To avoid this, we pick a random,
10196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10197 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10199 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'
10200 ;;
10201
10202 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10203 tmp_diet=no
10204 if test linux-dietlibc = "$host_os"; then
10205 case $cc_basename in
10206 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10207 esac
10208 fi
10209 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10210 && test no = "$tmp_diet"
10211 then
10212 tmp_addflag=' $pic_flag'
10213 tmp_sharedflag='-shared'
10214 case $cc_basename,$host_cpu in
10215 pgcc*) # Portland Group C compiler
10216 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'
10217 tmp_addflag=' $pic_flag'
10218 ;;
10219 pgf77* | pgf90* | pgf95* | pgfortran*)
10220 # Portland Group f77 and f90 compilers
10221 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'
10222 tmp_addflag=' $pic_flag -Mnomain' ;;
10223 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10224 tmp_addflag=' -i_dynamic' ;;
10225 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10226 tmp_addflag=' -i_dynamic -nofor_main' ;;
10227 ifc* | ifort*) # Intel Fortran compiler
10228 tmp_addflag=' -nofor_main' ;;
10229 lf95*) # Lahey Fortran 8.1
10230 whole_archive_flag_spec=
10231 tmp_sharedflag='--shared' ;;
10232 nagfor*) # NAGFOR 5.3
10233 tmp_sharedflag='-Wl,-shared' ;;
10234 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10235 tmp_sharedflag='-qmkshrobj'
10236 tmp_addflag= ;;
10237 nvcc*) # Cuda Compiler Driver 2.2
10238 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'
10239 compiler_needs_object=yes
10240 ;;
10241 esac
10242 case `$CC -V 2>&1 | $SED 5q` in
10243 *Sun\ C*) # Sun C 5.9
10244 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'
10245 compiler_needs_object=yes
10246 tmp_sharedflag='-G' ;;
10247 *Sun\ F*) # Sun Fortran 8.3
10248 tmp_sharedflag='-G' ;;
10249 esac
10250 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10251
10252 if test yes = "$supports_anon_versioning"; then
10253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10254 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10255 echo "local: *; };" >> $output_objdir/$libname.ver~
10256 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10257 fi
10258
10259 case $cc_basename in
10260 tcc*)
10261 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10262 export_dynamic_flag_spec='-rdynamic'
10263 ;;
10264 xlf* | bgf* | bgxlf* | mpixlf*)
10265 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10266 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10268 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10269 if test yes = "$supports_anon_versioning"; then
10270 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10271 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10272 echo "local: *; };" >> $output_objdir/$libname.ver~
10273 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10274 fi
10275 ;;
10276 esac
10277 else
10278 ld_shlibs=no
10279 fi
10280 ;;
10281
10282 *-mlibc)
10283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10285 ;;
10286
10287 netbsd* | netbsdelf*-gnu)
10288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10290 wlarc=
10291 else
10292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10294 fi
10295 ;;
10296
10297 solaris*)
10298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10299 ld_shlibs=no
10300 cat <<_LT_EOF 1>&2
10301
10302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10303 *** create shared libraries on Solaris systems. Therefore, libtool
10304 *** is disabling shared libraries support. We urge you to upgrade GNU
10305 *** binutils to release 2.9.1 or newer. Another option is to modify
10306 *** your PATH or compiler configuration so that the native linker is
10307 *** used, and then restart.
10308
10309 _LT_EOF
10310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10312 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10313 else
10314 ld_shlibs=no
10315 fi
10316 ;;
10317
10318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10319 case `$LD -v 2>&1` in
10320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10321 ld_shlibs=no
10322 cat <<_LT_EOF 1>&2
10323
10324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10325 *** reliably create shared libraries on SCO systems. Therefore, libtool
10326 *** is disabling shared libraries support. We urge you to upgrade GNU
10327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10328 *** your PATH or compiler configuration so that the native linker is
10329 *** used, and then restart.
10330
10331 _LT_EOF
10332 ;;
10333 *)
10334 # For security reasons, it is highly recommended that you always
10335 # use absolute paths for naming shared libraries, and exclude the
10336 # DT_RUNPATH tag from executables and libraries. But doing so
10337 # requires that you compile everything twice, which is a pain.
10338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10339 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10342 else
10343 ld_shlibs=no
10344 fi
10345 ;;
10346 esac
10347 ;;
10348
10349 sunos4*)
10350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10351 wlarc=
10352 hardcode_direct=yes
10353 hardcode_shlibpath_var=no
10354 ;;
10355
10356 *)
10357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10360 else
10361 ld_shlibs=no
10362 fi
10363 ;;
10364 esac
10365
10366 if test no = "$ld_shlibs"; then
10367 runpath_var=
10368 hardcode_libdir_flag_spec=
10369 export_dynamic_flag_spec=
10370 whole_archive_flag_spec=
10371 fi
10372 else
10373 # PORTME fill in a description of your system's linker (not GNU ld)
10374 case $host_os in
10375 aix3*)
10376 allow_undefined_flag=unsupported
10377 always_export_symbols=yes
10378 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'
10379 # Note: this linker hardcodes the directories in LIBPATH if there
10380 # are no directories specified by -L.
10381 hardcode_minus_L=yes
10382 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10383 # Neither direct hardcoding nor static linking is supported with a
10384 # broken collect2.
10385 hardcode_direct=unsupported
10386 fi
10387 ;;
10388
10389 aix[4-9]*)
10390 if test ia64 = "$host_cpu"; then
10391 # On IA64, the linker does run time linking by default, so we don't
10392 # have to do anything special.
10393 aix_use_runtimelinking=no
10394 exp_sym_flag='-Bexport'
10395 no_entry_flag=
10396 else
10397 # If we're using GNU nm, then we don't want the "-C" option.
10398 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10399 # Without the "-l" option, or with the "-B" option, AIX nm treats
10400 # weak defined symbols like other global defined symbols, whereas
10401 # GNU nm marks them as "W".
10402 # While the 'weak' keyword is ignored in the Export File, we need
10403 # it in the Import File for the 'aix-soname' feature, so we have
10404 # to replace the "-B" option with "-P" for AIX nm.
10405 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10406 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'
10407 else
10408 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'
10409 fi
10410 aix_use_runtimelinking=no
10411
10412 # Test if we are trying to use run time linking or normal
10413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10414 # have runtime linking enabled, and use it for executables.
10415 # For shared libraries, we enable/disable runtime linking
10416 # depending on the kind of the shared library created -
10417 # when "with_aix_soname,aix_use_runtimelinking" is:
10418 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10419 # "aix,yes" lib.so shared, rtl:yes, for executables
10420 # lib.a static archive
10421 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10422 # lib.a(lib.so.V) shared, rtl:no, for executables
10423 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10424 # lib.a(lib.so.V) shared, rtl:no
10425 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10426 # lib.a static archive
10427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10428 for ld_flag in $LDFLAGS; do
10429 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10430 aix_use_runtimelinking=yes
10431 break
10432 fi
10433 done
10434 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10435 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10436 # so we don't have lib.a shared libs to link our executables.
10437 # We have to force runtime linking in this case.
10438 aix_use_runtimelinking=yes
10439 LDFLAGS="$LDFLAGS -Wl,-brtl"
10440 fi
10441 ;;
10442 esac
10443
10444 exp_sym_flag='-bexport'
10445 no_entry_flag='-bnoentry'
10446 fi
10447
10448 # When large executables or shared objects are built, AIX ld can
10449 # have problems creating the table of contents. If linking a library
10450 # or program results in "error TOC overflow" add -mminimal-toc to
10451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10453
10454 archive_cmds=''
10455 hardcode_direct=yes
10456 hardcode_direct_absolute=yes
10457 hardcode_libdir_separator=':'
10458 link_all_deplibs=yes
10459 file_list_spec='$wl-f,'
10460 case $with_aix_soname,$aix_use_runtimelinking in
10461 aix,*) ;; # traditional, no import file
10462 svr4,* | *,yes) # use import file
10463 # The Import File defines what to hardcode.
10464 hardcode_direct=no
10465 hardcode_direct_absolute=no
10466 ;;
10467 esac
10468
10469 if test yes = "$GCC"; then
10470 case $host_os in aix4.[012]|aix4.[012].*)
10471 # We only want to do this on AIX 4.2 and lower, the check
10472 # below for broken collect2 doesn't work under 4.3+
10473 collect2name=`$CC -print-prog-name=collect2`
10474 if test -f "$collect2name" &&
10475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10476 then
10477 # We have reworked collect2
10478 :
10479 else
10480 # We have old collect2
10481 hardcode_direct=unsupported
10482 # It fails to find uninstalled libraries when the uninstalled
10483 # path is not listed in the libpath. Setting hardcode_minus_L
10484 # to unsupported forces relinking
10485 hardcode_minus_L=yes
10486 hardcode_libdir_flag_spec='-L$libdir'
10487 hardcode_libdir_separator=
10488 fi
10489 ;;
10490 esac
10491 shared_flag='-shared'
10492 if test yes = "$aix_use_runtimelinking"; then
10493 shared_flag="$shared_flag "'$wl-G'
10494 fi
10495 # Need to ensure runtime linking is disabled for the traditional
10496 # shared library, or the linker may eventually find shared libraries
10497 # /with/ Import File - we do not want to mix them.
10498 shared_flag_aix='-shared'
10499 shared_flag_svr4='-shared $wl-G'
10500 else
10501 # not using gcc
10502 if test ia64 = "$host_cpu"; then
10503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10504 # chokes on -Wl,-G. The following line is correct:
10505 shared_flag='-G'
10506 else
10507 if test yes = "$aix_use_runtimelinking"; then
10508 shared_flag='$wl-G'
10509 else
10510 shared_flag='$wl-bM:SRE'
10511 fi
10512 shared_flag_aix='$wl-bM:SRE'
10513 shared_flag_svr4='$wl-G'
10514 fi
10515 fi
10516
10517 export_dynamic_flag_spec='$wl-bexpall'
10518 # It seems that -bexpall does not export symbols beginning with
10519 # underscore (_), so it is better to generate a list of symbols to export.
10520 always_export_symbols=yes
10521 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10522 # Warning - without using the other runtime loading flags (-brtl),
10523 # -berok will link without error, but may produce a broken library.
10524 allow_undefined_flag='-berok'
10525 # Determine the default libpath from the value encoded in an
10526 # empty executable.
10527 if test set = "${lt_cv_aix_libpath+set}"; then
10528 aix_libpath=$lt_cv_aix_libpath
10529 else
10530 if test ${lt_cv_aix_libpath_+y}
10531 then :
10532 printf %s "(cached) " >&6
10533 else case e in #(
10534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536
10537 int
10538 main (void)
10539 {
10540
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 if ac_fn_c_try_link "$LINENO"
10546 then :
10547
10548 lt_aix_libpath_sed='
10549 /Import File Strings/,/^$/ {
10550 /^0/ {
10551 s/^0 *\([^ ]*\) *$/\1/
10552 p
10553 }
10554 }'
10555 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10556 # Check for a 64-bit object if we didn't find anything.
10557 if test -z "$lt_cv_aix_libpath_"; then
10558 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10559 fi
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10562 conftest$ac_exeext conftest.$ac_ext
10563 if test -z "$lt_cv_aix_libpath_"; then
10564 lt_cv_aix_libpath_=/usr/lib:/lib
10565 fi
10566 ;;
10567 esac
10568 fi
10569
10570 aix_libpath=$lt_cv_aix_libpath_
10571 fi
10572
10573 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10574 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
10575 else
10576 if test ia64 = "$host_cpu"; then
10577 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10578 allow_undefined_flag="-z nodefs"
10579 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"
10580 else
10581 # Determine the default libpath from the value encoded in an
10582 # empty executable.
10583 if test set = "${lt_cv_aix_libpath+set}"; then
10584 aix_libpath=$lt_cv_aix_libpath
10585 else
10586 if test ${lt_cv_aix_libpath_+y}
10587 then :
10588 printf %s "(cached) " >&6
10589 else case e in #(
10590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592
10593 int
10594 main (void)
10595 {
10596
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"
10602 then :
10603
10604 lt_aix_libpath_sed='
10605 /Import File Strings/,/^$/ {
10606 /^0/ {
10607 s/^0 *\([^ ]*\) *$/\1/
10608 p
10609 }
10610 }'
10611 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10612 # Check for a 64-bit object if we didn't find anything.
10613 if test -z "$lt_cv_aix_libpath_"; then
10614 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10615 fi
10616 fi
10617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10618 conftest$ac_exeext conftest.$ac_ext
10619 if test -z "$lt_cv_aix_libpath_"; then
10620 lt_cv_aix_libpath_=/usr/lib:/lib
10621 fi
10622 ;;
10623 esac
10624 fi
10625
10626 aix_libpath=$lt_cv_aix_libpath_
10627 fi
10628
10629 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10630 # Warning - without using the other run time loading flags,
10631 # -berok will link without error, but may produce a broken library.
10632 no_undefined_flag=' $wl-bernotok'
10633 allow_undefined_flag=' $wl-berok'
10634 if test yes = "$with_gnu_ld"; then
10635 # We only use this code for GNU lds that support --whole-archive.
10636 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10637 else
10638 # Exported symbols can be pulled into shared objects from archives
10639 whole_archive_flag_spec='$convenience'
10640 fi
10641 archive_cmds_need_lc=yes
10642 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10643 # -brtl affects multiple linker settings, -berok does not and is overridden later
10644 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10645 if test svr4 != "$with_aix_soname"; then
10646 # This is similar to how AIX traditionally builds its shared libraries.
10647 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'
10648 fi
10649 if test aix != "$with_aix_soname"; then
10650 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'
10651 else
10652 # used by -dlpreopen to get the symbols
10653 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10654 fi
10655 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10656 fi
10657 fi
10658 ;;
10659
10660 amigaos*)
10661 case $host_cpu in
10662 powerpc)
10663 # see comment about AmigaOS4 .so support
10664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10665 archive_expsym_cmds=''
10666 ;;
10667 m68k)
10668 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)'
10669 hardcode_libdir_flag_spec='-L$libdir'
10670 hardcode_minus_L=yes
10671 ;;
10672 esac
10673 ;;
10674
10675 bsdi[45]*)
10676 export_dynamic_flag_spec=-rdynamic
10677 ;;
10678
10679 cygwin* | mingw* | windows* | pw32* | cegcc*)
10680 # When not using gcc, we currently assume that we are using
10681 # Microsoft Visual C++ or Intel C++ Compiler.
10682 # hardcode_libdir_flag_spec is actually meaningless, as there is
10683 # no search path for DLLs.
10684 case $cc_basename in
10685 cl* | icl*)
10686 # Native MSVC or ICC
10687 hardcode_libdir_flag_spec=' '
10688 allow_undefined_flag=unsupported
10689 always_export_symbols=yes
10690 file_list_spec='@'
10691 # Tell ltmain to make .lib files, not .a files.
10692 libext=lib
10693 # Tell ltmain to make .dll files, not .so files.
10694 shrext_cmds=.dll
10695 # FIXME: Setting linknames here is a bad hack.
10696 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10697 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10698 cp "$export_symbols" "$output_objdir/$soname.def";
10699 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10700 else
10701 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10702 fi~
10703 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10704 linknames='
10705 # The linker will not automatically build a static lib if we build a DLL.
10706 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10707 enable_shared_with_static_runtimes=yes
10708 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10710 # Don't use ranlib
10711 old_postinstall_cmds='chmod 644 $oldlib'
10712 postlink_cmds='lt_outputfile="@OUTPUT@"~
10713 lt_tool_outputfile="@TOOL_OUTPUT@"~
10714 case $lt_outputfile in
10715 *.exe|*.EXE) ;;
10716 *)
10717 lt_outputfile=$lt_outputfile.exe
10718 lt_tool_outputfile=$lt_tool_outputfile.exe
10719 ;;
10720 esac~
10721 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10722 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10723 $RM "$lt_outputfile.manifest";
10724 fi'
10725 ;;
10726 *)
10727 # Assume MSVC and ICC wrapper
10728 hardcode_libdir_flag_spec=' '
10729 allow_undefined_flag=unsupported
10730 # Tell ltmain to make .lib files, not .a files.
10731 libext=lib
10732 # Tell ltmain to make .dll files, not .so files.
10733 shrext_cmds=.dll
10734 # FIXME: Setting linknames here is a bad hack.
10735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10736 # The linker will automatically build a .lib file if we build a DLL.
10737 old_archive_from_new_cmds='true'
10738 # FIXME: Should let the user specify the lib program.
10739 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10740 enable_shared_with_static_runtimes=yes
10741 ;;
10742 esac
10743 ;;
10744
10745 darwin* | rhapsody*)
10746
10747
10748 archive_cmds_need_lc=no
10749 hardcode_direct=no
10750 hardcode_automatic=yes
10751 hardcode_shlibpath_var=unsupported
10752 if test yes = "$lt_cv_ld_force_load"; then
10753 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\"`'
10754
10755 else
10756 whole_archive_flag_spec=''
10757 fi
10758 link_all_deplibs=yes
10759 allow_undefined_flag=$_lt_dar_allow_undefined
10760 case $cc_basename in
10761 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10762 *) _lt_dar_can_shared=$GCC ;;
10763 esac
10764 if test yes = "$_lt_dar_can_shared"; then
10765 output_verbose_link_cmd=func_echo_all
10766 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10767 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10768 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"
10769 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"
10770
10771 else
10772 ld_shlibs=no
10773 fi
10774
10775 ;;
10776
10777 dgux*)
10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_libdir_flag_spec='-L$libdir'
10780 hardcode_shlibpath_var=no
10781 ;;
10782
10783 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10784 # support. Future versions do this automatically, but an explicit c++rt0.o
10785 # does not break anything, and helps significantly (at the cost of a little
10786 # extra space).
10787 freebsd2.2*)
10788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10789 hardcode_libdir_flag_spec='-R$libdir'
10790 hardcode_direct=yes
10791 hardcode_shlibpath_var=no
10792 ;;
10793
10794 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10795 freebsd2.*)
10796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10797 hardcode_direct=yes
10798 hardcode_minus_L=yes
10799 hardcode_shlibpath_var=no
10800 ;;
10801
10802 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10803 freebsd* | dragonfly* | midnightbsd*)
10804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10805 hardcode_libdir_flag_spec='-R$libdir'
10806 hardcode_direct=yes
10807 hardcode_shlibpath_var=no
10808 ;;
10809
10810 hpux9*)
10811 if test yes = "$GCC"; then
10812 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'
10813 else
10814 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'
10815 fi
10816 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10817 hardcode_libdir_separator=:
10818 hardcode_direct=yes
10819
10820 # hardcode_minus_L: Not really in the search PATH,
10821 # but as the default location of the library.
10822 hardcode_minus_L=yes
10823 export_dynamic_flag_spec='$wl-E'
10824 ;;
10825
10826 hpux10*)
10827 if test yes,no = "$GCC,$with_gnu_ld"; then
10828 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10829 else
10830 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10831 fi
10832 if test no = "$with_gnu_ld"; then
10833 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10834 hardcode_libdir_separator=:
10835 hardcode_direct=yes
10836 hardcode_direct_absolute=yes
10837 export_dynamic_flag_spec='$wl-E'
10838 # hardcode_minus_L: Not really in the search PATH,
10839 # but as the default location of the library.
10840 hardcode_minus_L=yes
10841 fi
10842 ;;
10843
10844 hpux11*)
10845 if test yes,no = "$GCC,$with_gnu_ld"; then
10846 case $host_cpu in
10847 hppa*64*)
10848 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 ;;
10850 ia64*)
10851 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10852 ;;
10853 *)
10854 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10855 ;;
10856 esac
10857 else
10858 case $host_cpu in
10859 hppa*64*)
10860 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10861 ;;
10862 ia64*)
10863 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10864 ;;
10865 *)
10866
10867 # Older versions of the 11.00 compiler do not understand -b yet
10868 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10870 printf %s "checking if $CC understands -b... " >&6; }
10871 if test ${lt_cv_prog_compiler__b+y}
10872 then :
10873 printf %s "(cached) " >&6
10874 else case e in #(
10875 e) lt_cv_prog_compiler__b=no
10876 save_LDFLAGS=$LDFLAGS
10877 LDFLAGS="$LDFLAGS -b"
10878 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10880 # The linker can only warn and ignore the option if not recognized
10881 # So say no if there are warnings
10882 if test -s conftest.err; then
10883 # Append any errors to the config.log.
10884 cat conftest.err 1>&5
10885 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10887 if diff conftest.exp conftest.er2 >/dev/null; then
10888 lt_cv_prog_compiler__b=yes
10889 fi
10890 else
10891 lt_cv_prog_compiler__b=yes
10892 fi
10893 fi
10894 $RM -r conftest*
10895 LDFLAGS=$save_LDFLAGS
10896 ;;
10897 esac
10898 fi
10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10900 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10901
10902 if test yes = "$lt_cv_prog_compiler__b"; then
10903 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10904 else
10905 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10906 fi
10907
10908 ;;
10909 esac
10910 fi
10911 if test no = "$with_gnu_ld"; then
10912 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10913 hardcode_libdir_separator=:
10914
10915 case $host_cpu in
10916 hppa*64*|ia64*)
10917 hardcode_direct=no
10918 hardcode_shlibpath_var=no
10919 ;;
10920 *)
10921 hardcode_direct=yes
10922 hardcode_direct_absolute=yes
10923 export_dynamic_flag_spec='$wl-E'
10924
10925 # hardcode_minus_L: Not really in the search PATH,
10926 # but as the default location of the library.
10927 hardcode_minus_L=yes
10928 ;;
10929 esac
10930 fi
10931 ;;
10932
10933 irix5* | irix6* | nonstopux*)
10934 if test yes = "$GCC"; then
10935 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'
10936 # Try to use the -exported_symbol ld option, if it does not
10937 # work, assume that -exports_file does not work either and
10938 # implicitly export all symbols.
10939 # This should be the same for all languages, so no per-tag cache variable.
10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10941 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10942 if test ${lt_cv_irix_exported_symbol+y}
10943 then :
10944 printf %s "(cached) " >&6
10945 else case e in #(
10946 e) save_LDFLAGS=$LDFLAGS
10947 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950 int foo (void) { return 0; }
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"
10953 then :
10954 lt_cv_irix_exported_symbol=yes
10955 else case e in #(
10956 e) lt_cv_irix_exported_symbol=no ;;
10957 esac
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10960 conftest$ac_exeext conftest.$ac_ext
10961 LDFLAGS=$save_LDFLAGS ;;
10962 esac
10963 fi
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10965 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10966 if test yes = "$lt_cv_irix_exported_symbol"; then
10967 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'
10968 fi
10969 else
10970 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'
10971 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'
10972 fi
10973 archive_cmds_need_lc='no'
10974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10975 hardcode_libdir_separator=:
10976 inherit_rpath=yes
10977 link_all_deplibs=yes
10978 ;;
10979
10980 linux*)
10981 case $cc_basename in
10982 tcc*)
10983 # Fabrice Bellard et al's Tiny C Compiler
10984 ld_shlibs=yes
10985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10987 ;;
10988 esac
10989 ;;
10990
10991 *-mlibc)
10992 ;;
10993
10994 netbsd* | netbsdelf*-gnu)
10995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10997 else
10998 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10999 fi
11000 hardcode_libdir_flag_spec='-R$libdir'
11001 hardcode_direct=yes
11002 hardcode_shlibpath_var=no
11003 ;;
11004
11005 newsos6)
11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_direct=yes
11008 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11009 hardcode_libdir_separator=:
11010 hardcode_shlibpath_var=no
11011 ;;
11012
11013 *nto* | *qnx*)
11014 ;;
11015
11016 openbsd*)
11017 if test -f /usr/libexec/ld.so; then
11018 hardcode_direct=yes
11019 hardcode_shlibpath_var=no
11020 hardcode_direct_absolute=yes
11021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11024 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11025 export_dynamic_flag_spec='$wl-E'
11026 else
11027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11028 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11029 fi
11030 else
11031 ld_shlibs=no
11032 fi
11033 ;;
11034
11035 os2*)
11036 hardcode_libdir_flag_spec='-L$libdir'
11037 hardcode_minus_L=yes
11038 allow_undefined_flag=unsupported
11039 shrext_cmds=.dll
11040 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11041 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11042 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11043 $ECHO EXPORTS >> $output_objdir/$libname.def~
11044 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11045 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11046 emximp -o $lib $output_objdir/$libname.def'
11047 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11048 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11049 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11050 $ECHO EXPORTS >> $output_objdir/$libname.def~
11051 prefix_cmds="$SED"~
11052 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11053 prefix_cmds="$prefix_cmds -e 1d";
11054 fi~
11055 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11056 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11057 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11058 emximp -o $lib $output_objdir/$libname.def'
11059 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11060 enable_shared_with_static_runtimes=yes
11061 file_list_spec='@'
11062 ;;
11063
11064 osf3*)
11065 if test yes = "$GCC"; then
11066 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11067 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'
11068 else
11069 allow_undefined_flag=' -expect_unresolved \*'
11070 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'
11071 fi
11072 archive_cmds_need_lc='no'
11073 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11074 hardcode_libdir_separator=:
11075 ;;
11076
11077 osf4* | osf5*) # as osf3* with the addition of -msym flag
11078 if test yes = "$GCC"; then
11079 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11080 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'
11081 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11082 else
11083 allow_undefined_flag=' -expect_unresolved \*'
11084 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'
11085 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~
11086 $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'
11087
11088 # Both c and cxx compiler support -rpath directly
11089 hardcode_libdir_flag_spec='-rpath $libdir'
11090 fi
11091 archive_cmds_need_lc='no'
11092 hardcode_libdir_separator=:
11093 ;;
11094
11095 serenity*)
11096 ;;
11097
11098 solaris*)
11099 no_undefined_flag=' -z defs'
11100 if test yes = "$GCC"; then
11101 wlarc='$wl'
11102 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11104 $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'
11105 else
11106 case `$CC -V 2>&1` in
11107 *"Compilers 5.0"*)
11108 wlarc=''
11109 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11111 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11112 ;;
11113 *)
11114 wlarc='$wl'
11115 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11117 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11118 ;;
11119 esac
11120 fi
11121 hardcode_libdir_flag_spec='-R$libdir'
11122 hardcode_shlibpath_var=no
11123 case $host_os in
11124 solaris2.[0-5] | solaris2.[0-5].*) ;;
11125 *)
11126 # The compiler driver will combine and reorder linker options,
11127 # but understands '-z linker_flag'. GCC discards it without '$wl',
11128 # but is careful enough not to reorder.
11129 # Supported since Solaris 2.6 (maybe 2.5.1?)
11130 if test yes = "$GCC"; then
11131 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11132 else
11133 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11134 fi
11135 ;;
11136 esac
11137 link_all_deplibs=yes
11138 ;;
11139
11140 sunos4*)
11141 if test sequent = "$host_vendor"; then
11142 # Use $CC to link under sequent, because it throws in some extra .o
11143 # files that make .init and .fini sections work.
11144 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11145 else
11146 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11147 fi
11148 hardcode_libdir_flag_spec='-L$libdir'
11149 hardcode_direct=yes
11150 hardcode_minus_L=yes
11151 hardcode_shlibpath_var=no
11152 ;;
11153
11154 sysv4)
11155 case $host_vendor in
11156 sni)
11157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11158 hardcode_direct=yes # is this really true???
11159 ;;
11160 siemens)
11161 ## LD is ld it makes a PLAMLIB
11162 ## CC just makes a GrossModule.
11163 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11164 reload_cmds='$CC -r -o $output$reload_objs'
11165 hardcode_direct=no
11166 ;;
11167 motorola)
11168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11169 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11170 ;;
11171 esac
11172 runpath_var='LD_RUN_PATH'
11173 hardcode_shlibpath_var=no
11174 ;;
11175
11176 sysv4.3*)
11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 hardcode_shlibpath_var=no
11179 export_dynamic_flag_spec='-Bexport'
11180 ;;
11181
11182 sysv4*MP*)
11183 if test -d /usr/nec; then
11184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11185 hardcode_shlibpath_var=no
11186 runpath_var=LD_RUN_PATH
11187 hardcode_runpath_var=yes
11188 ld_shlibs=yes
11189 fi
11190 ;;
11191
11192 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11193 no_undefined_flag='$wl-z,text'
11194 archive_cmds_need_lc=no
11195 hardcode_shlibpath_var=no
11196 runpath_var='LD_RUN_PATH'
11197
11198 if test yes = "$GCC"; then
11199 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11200 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11201 else
11202 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11203 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11204 fi
11205 ;;
11206
11207 sysv5* | sco3.2v5* | sco5v6*)
11208 # Note: We CANNOT use -z defs as we might desire, because we do not
11209 # link with -lc, and that would cause any symbols used from libc to
11210 # always be unresolved, which means just about no library would
11211 # ever link correctly. If we're not using GNU ld we use -z text
11212 # though, which does catch some bad symbols but isn't as heavy-handed
11213 # as -z defs.
11214 no_undefined_flag='$wl-z,text'
11215 allow_undefined_flag='$wl-z,nodefs'
11216 archive_cmds_need_lc=no
11217 hardcode_shlibpath_var=no
11218 hardcode_libdir_flag_spec='$wl-R,$libdir'
11219 hardcode_libdir_separator=':'
11220 link_all_deplibs=yes
11221 export_dynamic_flag_spec='$wl-Bexport'
11222 runpath_var='LD_RUN_PATH'
11223
11224 if test yes = "$GCC"; then
11225 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11227 else
11228 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11229 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11230 fi
11231 ;;
11232
11233 uts4*)
11234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11235 hardcode_libdir_flag_spec='-L$libdir'
11236 hardcode_shlibpath_var=no
11237 ;;
11238
11239 *)
11240 ld_shlibs=no
11241 ;;
11242 esac
11243
11244 if test sni = "$host_vendor"; then
11245 case $host in
11246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11247 export_dynamic_flag_spec='$wl-Blargedynsym'
11248 ;;
11249 esac
11250 fi
11251 fi
11252
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11254 printf "%s\n" "$ld_shlibs" >&6; }
11255 test no = "$ld_shlibs" && can_build_shared=no
11256
11257 with_gnu_ld=$with_gnu_ld
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273 #
11274 # Do we need to explicitly link libc?
11275 #
11276 case "x$archive_cmds_need_lc" in
11277 x|xyes)
11278 # Assume -lc should be added
11279 archive_cmds_need_lc=yes
11280
11281 if test yes,yes = "$GCC,$enable_shared"; then
11282 case $archive_cmds in
11283 *'~'*)
11284 # FIXME: we may have to deal with multi-command sequences.
11285 ;;
11286 '$CC '*)
11287 # Test whether the compiler implicitly links with -lc since on some
11288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11289 # to ld, don't add -lc before -lgcc.
11290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11291 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11292 if test ${lt_cv_archive_cmds_need_lc+y}
11293 then :
11294 printf %s "(cached) " >&6
11295 else case e in #(
11296 e) $RM conftest*
11297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11298
11299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11300 (eval $ac_compile) 2>&5
11301 ac_status=$?
11302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303 test $ac_status = 0; } 2>conftest.err; then
11304 soname=conftest
11305 lib=conftest
11306 libobjs=conftest.$ac_objext
11307 deplibs=
11308 wl=$lt_prog_compiler_wl
11309 pic_flag=$lt_prog_compiler_pic
11310 compiler_flags=-v
11311 linker_flags=-v
11312 verstring=
11313 output_objdir=.
11314 libname=conftest
11315 lt_save_allow_undefined_flag=$allow_undefined_flag
11316 allow_undefined_flag=
11317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11318 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11319 ac_status=$?
11320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321 test $ac_status = 0; }
11322 then
11323 lt_cv_archive_cmds_need_lc=no
11324 else
11325 lt_cv_archive_cmds_need_lc=yes
11326 fi
11327 allow_undefined_flag=$lt_save_allow_undefined_flag
11328 else
11329 cat conftest.err 1>&5
11330 fi
11331 $RM conftest*
11332 ;;
11333 esac
11334 fi
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11336 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11337 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11338 ;;
11339 esac
11340 fi
11341 ;;
11342 esac
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11496 printf %s "checking dynamic linker characteristics... " >&6; }
11497
11498 if test yes = "$GCC"; then
11499 case $host_os in
11500 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11501 *) lt_awk_arg='/^libraries:/' ;;
11502 esac
11503 case $host_os in
11504 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11505 *) lt_sed_strip_eq='s|=/|/|g' ;;
11506 esac
11507 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11508 case $lt_search_path_spec in
11509 *\;*)
11510 # if the path contains ";" then we assume it to be the separator
11511 # otherwise default to the standard path separator (i.e. ":") - it is
11512 # assumed that no part of a normal pathname contains ";" but that should
11513 # okay in the real world where ";" in dirpaths is itself problematic.
11514 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11515 ;;
11516 *)
11517 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11518 ;;
11519 esac
11520 # Ok, now we have the path, separated by spaces, we can step through it
11521 # and add multilib dir if necessary...
11522 lt_tmp_lt_search_path_spec=
11523 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11524 # ...but if some path component already ends with the multilib dir we assume
11525 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11526 case "$lt_multi_os_dir; $lt_search_path_spec " in
11527 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11528 lt_multi_os_dir=
11529 ;;
11530 esac
11531 for lt_sys_path in $lt_search_path_spec; do
11532 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11533 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11534 elif test -n "$lt_multi_os_dir"; then
11535 test -d "$lt_sys_path" && \
11536 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11537 fi
11538 done
11539 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11540 BEGIN {RS = " "; FS = "/|\n";} {
11541 lt_foo = "";
11542 lt_count = 0;
11543 for (lt_i = NF; lt_i > 0; lt_i--) {
11544 if ($lt_i != "" && $lt_i != ".") {
11545 if ($lt_i == "..") {
11546 lt_count++;
11547 } else {
11548 if (lt_count == 0) {
11549 lt_foo = "/" $lt_i lt_foo;
11550 } else {
11551 lt_count--;
11552 }
11553 }
11554 }
11555 }
11556 if (lt_foo != "") { lt_freq[lt_foo]++; }
11557 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11558 }'`
11559 # AWK program above erroneously prepends '/' to C:/dos/paths
11560 # for these hosts.
11561 case $host_os in
11562 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11563 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11564 esac
11565 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11566 else
11567 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11568 fi
11569 library_names_spec=
11570 libname_spec='lib$name'
11571 soname_spec=
11572 shrext_cmds=.so
11573 postinstall_cmds=
11574 postuninstall_cmds=
11575 finish_cmds=
11576 finish_eval=
11577 shlibpath_var=
11578 shlibpath_overrides_runpath=unknown
11579 version_type=none
11580 dynamic_linker="$host_os ld.so"
11581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11582 need_lib_prefix=unknown
11583 hardcode_into_libs=no
11584
11585 # when you set need_version to no, make sure it does not cause -set_version
11586 # flags to be left without arguments
11587 need_version=unknown
11588
11589
11590
11591 case $host_os in
11592 aix3*)
11593 version_type=linux # correct to gnu/linux during the next big refactor
11594 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11595 shlibpath_var=LIBPATH
11596
11597 # AIX 3 has no versioning support, so we append a major version to the name.
11598 soname_spec='$libname$release$shared_ext$major'
11599 ;;
11600
11601 aix[4-9]*)
11602 version_type=linux # correct to gnu/linux during the next big refactor
11603 need_lib_prefix=no
11604 need_version=no
11605 hardcode_into_libs=yes
11606 if test ia64 = "$host_cpu"; then
11607 # AIX 5 supports IA64
11608 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 else
11611 # With GCC up to 2.95.x, collect2 would create an import file
11612 # for dependence libraries. The import file would start with
11613 # the line '#! .'. This would cause the generated library to
11614 # depend on '.', always an invalid library. This was fixed in
11615 # development snapshots of GCC prior to 3.0.
11616 case $host_os in
11617 aix4 | aix4.[01] | aix4.[01].*)
11618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11619 echo ' yes '
11620 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11621 :
11622 else
11623 can_build_shared=no
11624 fi
11625 ;;
11626 esac
11627 # Using Import Files as archive members, it is possible to support
11628 # filename-based versioning of shared library archives on AIX. While
11629 # this would work for both with and without runtime linking, it will
11630 # prevent static linking of such archives. So we do filename-based
11631 # shared library versioning with .so extension only, which is used
11632 # when both runtime linking and shared linking is enabled.
11633 # Unfortunately, runtime linking may impact performance, so we do
11634 # not want this to be the default eventually. Also, we use the
11635 # versioned .so libs for executables only if there is the -brtl
11636 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11637 # To allow for filename-based versioning support, we need to create
11638 # libNAME.so.V as an archive file, containing:
11639 # *) an Import File, referring to the versioned filename of the
11640 # archive as well as the shared archive member, telling the
11641 # bitwidth (32 or 64) of that shared object, and providing the
11642 # list of exported symbols of that shared object, eventually
11643 # decorated with the 'weak' keyword
11644 # *) the shared object with the F_LOADONLY flag set, to really avoid
11645 # it being seen by the linker.
11646 # At run time we better use the real file rather than another symlink,
11647 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11648
11649 case $with_aix_soname,$aix_use_runtimelinking in
11650 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11651 # soname into executable. Probably we can add versioning support to
11652 # collect2, so additional links can be useful in future.
11653 aix,yes) # traditional libtool
11654 dynamic_linker='AIX unversionable lib.so'
11655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11656 # instead of lib<name>.a to let people know that these are not
11657 # typical AIX shared libraries.
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 ;;
11660 aix,no) # traditional AIX only
11661 dynamic_linker='AIX lib.a(lib.so.V)'
11662 # We preserve .a as extension for shared libraries through AIX4.2
11663 # and later when we are not doing run time linking.
11664 library_names_spec='$libname$release.a $libname.a'
11665 soname_spec='$libname$release$shared_ext$major'
11666 ;;
11667 svr4,*) # full svr4 only
11668 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11669 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11670 # We do not specify a path in Import Files, so LIBPATH fires.
11671 shlibpath_overrides_runpath=yes
11672 ;;
11673 *,yes) # both, prefer svr4
11674 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11675 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11676 # unpreferred sharedlib libNAME.a needs extra handling
11677 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"'
11678 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"'
11679 # We do not specify a path in Import Files, so LIBPATH fires.
11680 shlibpath_overrides_runpath=yes
11681 ;;
11682 *,no) # both, prefer aix
11683 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11684 library_names_spec='$libname$release.a $libname.a'
11685 soname_spec='$libname$release$shared_ext$major'
11686 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11687 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)'
11688 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"'
11689 ;;
11690 esac
11691 shlibpath_var=LIBPATH
11692 fi
11693 ;;
11694
11695 amigaos*)
11696 case $host_cpu in
11697 powerpc)
11698 # Since July 2007 AmigaOS4 officially supports .so libraries.
11699 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11701 ;;
11702 m68k)
11703 library_names_spec='$libname.ixlibrary $libname.a'
11704 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11705 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'
11706 ;;
11707 esac
11708 ;;
11709
11710 beos*)
11711 library_names_spec='$libname$shared_ext'
11712 dynamic_linker="$host_os ld.so"
11713 shlibpath_var=LIBRARY_PATH
11714 ;;
11715
11716 bsdi[45]*)
11717 version_type=linux # correct to gnu/linux during the next big refactor
11718 need_version=no
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 soname_spec='$libname$release$shared_ext$major'
11721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11725 # the default ld.so.conf also contains /usr/contrib/lib and
11726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11727 # libtool to hard-code these into programs
11728 ;;
11729
11730 cygwin* | mingw* | windows* | pw32* | cegcc*)
11731 version_type=windows
11732 shrext_cmds=.dll
11733 need_version=no
11734 need_lib_prefix=no
11735
11736 case $GCC,$cc_basename in
11737 yes,*)
11738 # gcc
11739 library_names_spec='$libname.dll.a'
11740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11741 # If user builds GCC with multilib enabled,
11742 # it should just install on $(libdir)
11743 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11744 if test xyes = x"$multilib"; then
11745 postinstall_cmds='base_file=`basename \$file`~
11746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11747 dldir=$destdir/`dirname \$dlpath`~
11748 $install_prog $dir/$dlname $destdir/$dlname~
11749 chmod a+x $destdir/$dlname~
11750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11751 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11752 fi'
11753 else
11754 postinstall_cmds='base_file=`basename \$file`~
11755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11756 dldir=$destdir/`dirname \$dlpath`~
11757 test -d \$dldir || mkdir -p \$dldir~
11758 $install_prog $dir/$dlname \$dldir/$dlname~
11759 chmod a+x \$dldir/$dlname~
11760 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11761 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11762 fi'
11763 fi
11764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11765 dlpath=$dir/\$dldll~
11766 $RM \$dlpath'
11767 shlibpath_overrides_runpath=yes
11768
11769 case $host_os in
11770 cygwin*)
11771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11772 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11773
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11775 ;;
11776 mingw* | windows* | cegcc*)
11777 # MinGW DLLs use traditional 'lib' prefix
11778 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11779 ;;
11780 pw32*)
11781 # pw32 DLLs use 'pw' prefix rather than 'lib'
11782 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11783 ;;
11784 esac
11785 dynamic_linker='Win32 ld.exe'
11786 ;;
11787
11788 *,cl* | *,icl*)
11789 # Native MSVC or ICC
11790 libname_spec='$name'
11791 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11792 library_names_spec='$libname.dll.lib'
11793
11794 case $build_os in
11795 mingw* | windows*)
11796 sys_lib_search_path_spec=
11797 lt_save_ifs=$IFS
11798 IFS=';'
11799 for lt_path in $LIB
11800 do
11801 IFS=$lt_save_ifs
11802 # Let DOS variable expansion print the short 8.3 style file name.
11803 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11804 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11805 done
11806 IFS=$lt_save_ifs
11807 # Convert to MSYS style.
11808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11809 ;;
11810 cygwin*)
11811 # Convert to unix form, then to dos form, then back to unix form
11812 # but this time dos style (no spaces!) so that the unix form looks
11813 # like /cygdrive/c/PROGRA~1:/cygdr...
11814 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11815 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11816 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11817 ;;
11818 *)
11819 sys_lib_search_path_spec=$LIB
11820 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11821 # It is most probably a Windows format PATH.
11822 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11823 else
11824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11825 fi
11826 # FIXME: find the short name or the path components, as spaces are
11827 # common. (e.g. "Program Files" -> "PROGRA~1")
11828 ;;
11829 esac
11830
11831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11832 postinstall_cmds='base_file=`basename \$file`~
11833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11834 dldir=$destdir/`dirname \$dlpath`~
11835 test -d \$dldir || mkdir -p \$dldir~
11836 $install_prog $dir/$dlname \$dldir/$dlname'
11837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11838 dlpath=$dir/\$dldll~
11839 $RM \$dlpath'
11840 shlibpath_overrides_runpath=yes
11841 dynamic_linker='Win32 link.exe'
11842 ;;
11843
11844 *)
11845 # Assume MSVC and ICC wrapper
11846 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11847 dynamic_linker='Win32 ld.exe'
11848 ;;
11849 esac
11850 # FIXME: first we should search . and the directory the executable is in
11851 shlibpath_var=PATH
11852 ;;
11853
11854 darwin* | rhapsody*)
11855 dynamic_linker="$host_os dyld"
11856 version_type=darwin
11857 need_lib_prefix=no
11858 need_version=no
11859 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11860 soname_spec='$libname$release$major$shared_ext'
11861 shlibpath_overrides_runpath=yes
11862 shlibpath_var=DYLD_LIBRARY_PATH
11863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11864
11865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11867 ;;
11868
11869 dgux*)
11870 version_type=linux # correct to gnu/linux during the next big refactor
11871 need_lib_prefix=no
11872 need_version=no
11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11874 soname_spec='$libname$release$shared_ext$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 ;;
11877
11878 freebsd* | dragonfly* | midnightbsd*)
11879 # DragonFly does not have aout. When/if they implement a new
11880 # versioning mechanism, adjust this.
11881 if test -x /usr/bin/objformat; then
11882 objformat=`/usr/bin/objformat`
11883 else
11884 case $host_os in
11885 freebsd[23].*) objformat=aout ;;
11886 *) objformat=elf ;;
11887 esac
11888 fi
11889 version_type=freebsd-$objformat
11890 case $version_type in
11891 freebsd-elf*)
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11893 soname_spec='$libname$release$shared_ext$major'
11894 need_version=no
11895 need_lib_prefix=no
11896 ;;
11897 freebsd-*)
11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11899 need_version=yes
11900 ;;
11901 esac
11902 case $host_cpu in
11903 powerpc64)
11904 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11905 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 int test_pointer_size[sizeof (void *) - 5];
11909
11910 _ACEOF
11911 if ac_fn_c_try_compile "$LINENO"
11912 then :
11913 shlibpath_var=LD_LIBRARY_PATH
11914 else case e in #(
11915 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11916 esac
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11919 ;;
11920 *)
11921 shlibpath_var=LD_LIBRARY_PATH
11922 ;;
11923 esac
11924 case $host_os in
11925 freebsd2.*)
11926 shlibpath_overrides_runpath=yes
11927 ;;
11928 freebsd3.[01]* | freebsdelf3.[01]*)
11929 shlibpath_overrides_runpath=yes
11930 hardcode_into_libs=yes
11931 ;;
11932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11934 shlibpath_overrides_runpath=no
11935 hardcode_into_libs=yes
11936 ;;
11937 *) # from 4.6 on, and DragonFly
11938 shlibpath_overrides_runpath=yes
11939 hardcode_into_libs=yes
11940 ;;
11941 esac
11942 ;;
11943
11944 haiku*)
11945 version_type=linux # correct to gnu/linux during the next big refactor
11946 need_lib_prefix=no
11947 need_version=no
11948 dynamic_linker="$host_os runtime_loader"
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950 soname_spec='$libname$release$shared_ext$major'
11951 shlibpath_var=LIBRARY_PATH
11952 shlibpath_overrides_runpath=no
11953 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11954 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11955 hardcode_into_libs=no
11956 ;;
11957
11958 hpux9* | hpux10* | hpux11*)
11959 # Give a soname corresponding to the major version so that dld.sl refuses to
11960 # link against other versions.
11961 version_type=sunos
11962 need_lib_prefix=no
11963 need_version=no
11964 case $host_cpu in
11965 ia64*)
11966 shrext_cmds='.so'
11967 hardcode_into_libs=yes
11968 dynamic_linker="$host_os dld.so"
11969 shlibpath_var=LD_LIBRARY_PATH
11970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972 soname_spec='$libname$release$shared_ext$major'
11973 if test 32 = "$HPUX_IA64_MODE"; then
11974 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11975 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11976 else
11977 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11978 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11979 fi
11980 ;;
11981 hppa*64*)
11982 shrext_cmds='.sl'
11983 hardcode_into_libs=yes
11984 dynamic_linker="$host_os dld.sl"
11985 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988 soname_spec='$libname$release$shared_ext$major'
11989 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11991 ;;
11992 *)
11993 shrext_cmds='.sl'
11994 dynamic_linker="$host_os dld.sl"
11995 shlibpath_var=SHLIB_PATH
11996 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11998 soname_spec='$libname$release$shared_ext$major'
11999 ;;
12000 esac
12001 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12002 postinstall_cmds='chmod 555 $lib'
12003 # or fails outright, so override atomically:
12004 install_override_mode=555
12005 ;;
12006
12007 interix[3-9]*)
12008 version_type=linux # correct to gnu/linux during the next big refactor
12009 need_lib_prefix=no
12010 need_version=no
12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012 soname_spec='$libname$release$shared_ext$major'
12013 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12014 shlibpath_var=LD_LIBRARY_PATH
12015 shlibpath_overrides_runpath=no
12016 hardcode_into_libs=yes
12017 ;;
12018
12019 irix5* | irix6* | nonstopux*)
12020 case $host_os in
12021 nonstopux*) version_type=nonstopux ;;
12022 *)
12023 if test yes = "$lt_cv_prog_gnu_ld"; then
12024 version_type=linux # correct to gnu/linux during the next big refactor
12025 else
12026 version_type=irix
12027 fi ;;
12028 esac
12029 need_lib_prefix=no
12030 need_version=no
12031 soname_spec='$libname$release$shared_ext$major'
12032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12033 case $host_os in
12034 irix5* | nonstopux*)
12035 libsuff= shlibsuff=
12036 ;;
12037 *)
12038 case $LD in # libtool.m4 will add one of these switches to LD
12039 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12040 libsuff= shlibsuff= libmagic=32-bit;;
12041 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12042 libsuff=32 shlibsuff=N32 libmagic=N32;;
12043 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12044 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12045 *) libsuff= shlibsuff= libmagic=never-match;;
12046 esac
12047 ;;
12048 esac
12049 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12050 shlibpath_overrides_runpath=no
12051 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12052 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12053 hardcode_into_libs=yes
12054 ;;
12055
12056 # No shared lib support for Linux oldld, aout, or coff.
12057 linux*oldld* | linux*aout* | linux*coff*)
12058 dynamic_linker=no
12059 ;;
12060
12061 linux*android*)
12062 version_type=none # Android doesn't support versioned libraries.
12063 need_lib_prefix=no
12064 need_version=no
12065 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12066 soname_spec='$libname$release$shared_ext'
12067 finish_cmds=
12068 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=yes
12070
12071 # This implies no fast_install, which is unacceptable.
12072 # Some rework will be needed to allow for fast_install
12073 # before this can be enabled.
12074 hardcode_into_libs=yes
12075
12076 dynamic_linker='Android linker'
12077 # -rpath works at least for libraries that are not overridden by
12078 # libraries installed in system locations.
12079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12080 ;;
12081
12082 # This must be glibc/ELF.
12083 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12084 version_type=linux # correct to gnu/linux during the next big refactor
12085 need_lib_prefix=no
12086 need_version=no
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088 soname_spec='$libname$release$shared_ext$major'
12089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=no
12092
12093 # Some binutils ld are patched to set DT_RUNPATH
12094 if test ${lt_cv_shlibpath_overrides_runpath+y}
12095 then :
12096 printf %s "(cached) " >&6
12097 else case e in #(
12098 e) lt_cv_shlibpath_overrides_runpath=no
12099 save_LDFLAGS=$LDFLAGS
12100 save_libdir=$libdir
12101 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12102 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105
12106 int
12107 main (void)
12108 {
12109
12110 ;
12111 return 0;
12112 }
12113 _ACEOF
12114 if ac_fn_c_try_link "$LINENO"
12115 then :
12116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12117 then :
12118 lt_cv_shlibpath_overrides_runpath=yes
12119 fi
12120 fi
12121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12122 conftest$ac_exeext conftest.$ac_ext
12123 LDFLAGS=$save_LDFLAGS
12124 libdir=$save_libdir
12125 ;;
12126 esac
12127 fi
12128
12129 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12130
12131 # This implies no fast_install, which is unacceptable.
12132 # Some rework will be needed to allow for fast_install
12133 # before this can be enabled.
12134 hardcode_into_libs=yes
12135
12136 # Ideally, we could use ldconfig to report *all* directories which are
12137 # searched for libraries, however this is still not possible. Aside from not
12138 # being certain /sbin/ldconfig is available, command
12139 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12140 # even though it is searched at run-time. Try to do the best guess by
12141 # appending ld.so.conf contents (and includes) to the search path.
12142 if test -f /etc/ld.so.conf; then
12143 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' ' '`
12144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12145 fi
12146
12147 # We used to test for /lib/ld.so.1 and disable shared libraries on
12148 # powerpc, because MkLinux only supported shared libraries with the
12149 # GNU dynamic linker. Since this was broken with cross compilers,
12150 # most powerpc-linux boxes support dynamic linking these days and
12151 # people can always --disable-shared, the test was removed, and we
12152 # assume the GNU/Linux dynamic linker is in use.
12153 dynamic_linker='GNU/Linux ld.so'
12154 ;;
12155
12156 netbsdelf*-gnu)
12157 version_type=linux
12158 need_lib_prefix=no
12159 need_version=no
12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12161 soname_spec='$libname$release$shared_ext$major'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 shlibpath_overrides_runpath=no
12164 hardcode_into_libs=yes
12165 dynamic_linker='NetBSD ld.elf_so'
12166 ;;
12167
12168 netbsd*)
12169 version_type=sunos
12170 need_lib_prefix=no
12171 need_version=no
12172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12175 dynamic_linker='NetBSD (a.out) ld.so'
12176 else
12177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12178 soname_spec='$libname$release$shared_ext$major'
12179 dynamic_linker='NetBSD ld.elf_so'
12180 fi
12181 shlibpath_var=LD_LIBRARY_PATH
12182 shlibpath_overrides_runpath=yes
12183 hardcode_into_libs=yes
12184 ;;
12185
12186 *-mlibc)
12187 version_type=linux # correct to gnu/linux during the next big refactor
12188 need_lib_prefix=no
12189 need_version=no
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12191 soname_spec='$libname$release$shared_ext$major'
12192 dynamic_linker='mlibc ld.so'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 shlibpath_overrides_runpath=no
12195 hardcode_into_libs=yes
12196 ;;
12197
12198 newsos6)
12199 version_type=linux # correct to gnu/linux during the next big refactor
12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201 shlibpath_var=LD_LIBRARY_PATH
12202 shlibpath_overrides_runpath=yes
12203 ;;
12204
12205 *nto* | *qnx*)
12206 version_type=qnx
12207 need_lib_prefix=no
12208 need_version=no
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12210 soname_spec='$libname$release$shared_ext$major'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 shlibpath_overrides_runpath=no
12213 hardcode_into_libs=yes
12214 dynamic_linker='ldqnx.so'
12215 ;;
12216
12217 openbsd*)
12218 version_type=sunos
12219 sys_lib_dlsearch_path_spec=/usr/lib
12220 need_lib_prefix=no
12221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12222 need_version=no
12223 else
12224 need_version=yes
12225 fi
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12228 shlibpath_var=LD_LIBRARY_PATH
12229 shlibpath_overrides_runpath=yes
12230 ;;
12231
12232 os2*)
12233 libname_spec='$name'
12234 version_type=windows
12235 shrext_cmds=.dll
12236 need_version=no
12237 need_lib_prefix=no
12238 # OS/2 can only load a DLL with a base name of 8 characters or less.
12239 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12240 v=$($ECHO $release$versuffix | tr -d .-);
12241 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12242 $ECHO $n$v`$shared_ext'
12243 library_names_spec='${libname}_dll.$libext'
12244 dynamic_linker='OS/2 ld.exe'
12245 shlibpath_var=BEGINLIBPATH
12246 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12248 postinstall_cmds='base_file=`basename \$file`~
12249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12250 dldir=$destdir/`dirname \$dlpath`~
12251 test -d \$dldir || mkdir -p \$dldir~
12252 $install_prog $dir/$dlname \$dldir/$dlname~
12253 chmod a+x \$dldir/$dlname~
12254 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12255 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12256 fi'
12257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12258 dlpath=$dir/\$dldll~
12259 $RM \$dlpath'
12260 ;;
12261
12262 osf3* | osf4* | osf5*)
12263 version_type=osf
12264 need_lib_prefix=no
12265 need_version=no
12266 soname_spec='$libname$release$shared_ext$major'
12267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12271 ;;
12272
12273 rdos*)
12274 dynamic_linker=no
12275 ;;
12276
12277 serenity*)
12278 version_type=linux # correct to gnu/linux during the next big refactor
12279 need_lib_prefix=no
12280 need_version=no
12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12282 soname_spec='$libname$release$shared_ext$major'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=no
12285 dynamic_linker='SerenityOS LibELF'
12286 ;;
12287
12288 solaris*)
12289 version_type=linux # correct to gnu/linux during the next big refactor
12290 need_lib_prefix=no
12291 need_version=no
12292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12293 soname_spec='$libname$release$shared_ext$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=yes
12296 hardcode_into_libs=yes
12297 # ldd complains unless libraries are executable
12298 postinstall_cmds='chmod +x $lib'
12299 ;;
12300
12301 sunos4*)
12302 version_type=sunos
12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=yes
12307 if test yes = "$with_gnu_ld"; then
12308 need_lib_prefix=no
12309 fi
12310 need_version=yes
12311 ;;
12312
12313 sysv4 | sysv4.3*)
12314 version_type=linux # correct to gnu/linux during the next big refactor
12315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12316 soname_spec='$libname$release$shared_ext$major'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 case $host_vendor in
12319 sni)
12320 shlibpath_overrides_runpath=no
12321 need_lib_prefix=no
12322 runpath_var=LD_RUN_PATH
12323 ;;
12324 siemens)
12325 need_lib_prefix=no
12326 ;;
12327 motorola)
12328 need_lib_prefix=no
12329 need_version=no
12330 shlibpath_overrides_runpath=no
12331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12332 ;;
12333 esac
12334 ;;
12335
12336 sysv4*MP*)
12337 if test -d /usr/nec; then
12338 version_type=linux # correct to gnu/linux during the next big refactor
12339 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12340 soname_spec='$libname$shared_ext.$major'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 fi
12343 ;;
12344
12345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12346 version_type=sco
12347 need_lib_prefix=no
12348 need_version=no
12349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12350 soname_spec='$libname$release$shared_ext$major'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 shlibpath_overrides_runpath=yes
12353 hardcode_into_libs=yes
12354 if test yes = "$with_gnu_ld"; then
12355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12356 else
12357 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12358 case $host_os in
12359 sco3.2v5*)
12360 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12361 ;;
12362 esac
12363 fi
12364 sys_lib_dlsearch_path_spec='/usr/lib'
12365 ;;
12366
12367 tpf*)
12368 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12369 version_type=linux # correct to gnu/linux during the next big refactor
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 shlibpath_overrides_runpath=no
12375 hardcode_into_libs=yes
12376 ;;
12377
12378 uts4*)
12379 version_type=linux # correct to gnu/linux during the next big refactor
12380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12381 soname_spec='$libname$release$shared_ext$major'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 ;;
12384
12385 emscripten*)
12386 version_type=none
12387 need_lib_prefix=no
12388 need_version=no
12389 library_names_spec='$libname$release$shared_ext'
12390 soname_spec='$libname$release$shared_ext'
12391 finish_cmds=
12392 dynamic_linker="Emscripten linker"
12393 lt_prog_compiler_wl=
12394 lt_prog_compiler_pic=
12395 lt_prog_compiler_static=
12396
12397
12398 if test yes = "$GCC"; then
12399 lt_prog_compiler_wl='-Wl,'
12400 lt_prog_compiler_static='-static'
12401
12402 case $host_os in
12403 aix*)
12404 # All AIX code is PIC.
12405 if test ia64 = "$host_cpu"; then
12406 # AIX 5 now supports IA64 processor
12407 lt_prog_compiler_static='-Bstatic'
12408 fi
12409 lt_prog_compiler_pic='-fPIC'
12410 ;;
12411
12412 amigaos*)
12413 case $host_cpu in
12414 powerpc)
12415 # see comment about AmigaOS4 .so support
12416 lt_prog_compiler_pic='-fPIC'
12417 ;;
12418 m68k)
12419 # FIXME: we need at least 68020 code to build shared libraries, but
12420 # adding the '-m68020' flag to GCC prevents building anything better,
12421 # like '-m68040'.
12422 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12423 ;;
12424 esac
12425 ;;
12426
12427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12428 # PIC is the default for these OSes.
12429 ;;
12430
12431 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12432 # This hack is so that the source file can tell whether it is being
12433 # built for inclusion in a dll (and should export symbols for example).
12434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12435 # (--disable-auto-import) libraries
12436 lt_prog_compiler_pic='-DDLL_EXPORT'
12437 case $host_os in
12438 os2*)
12439 lt_prog_compiler_static='$wl-static'
12440 ;;
12441 esac
12442 ;;
12443
12444 darwin* | rhapsody*)
12445 # PIC is the default on this platform
12446 # Common symbols not allowed in MH_DYLIB files
12447 lt_prog_compiler_pic='-fno-common'
12448 ;;
12449
12450 haiku*)
12451 # PIC is the default for Haiku.
12452 # The "-static" flag exists, but is broken.
12453 lt_prog_compiler_static=
12454 ;;
12455
12456 hpux*)
12457 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12458 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12459 # sets the default TLS model and affects inlining.
12460 case $host_cpu in
12461 hppa*64*)
12462 # +Z the default
12463 ;;
12464 *)
12465 lt_prog_compiler_pic='-fPIC'
12466 ;;
12467 esac
12468 ;;
12469
12470 interix[3-9]*)
12471 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12472 # Instead, we relocate shared libraries at runtime.
12473 ;;
12474
12475 msdosdjgpp*)
12476 # Just because we use GCC doesn't mean we suddenly get shared libraries
12477 # on systems that don't support them.
12478 lt_prog_compiler_can_build_shared=no
12479 enable_shared=no
12480 ;;
12481
12482 *nto* | *qnx*)
12483 # QNX uses GNU C++, but need to define -shared option too, otherwise
12484 # it will coredump.
12485 lt_prog_compiler_pic='-fPIC -shared'
12486 ;;
12487
12488 sysv4*MP*)
12489 if test -d /usr/nec; then
12490 lt_prog_compiler_pic=-Kconform_pic
12491 fi
12492 ;;
12493
12494 *)
12495 lt_prog_compiler_pic='-fPIC'
12496 ;;
12497 esac
12498
12499 case $cc_basename in
12500 nvcc*) # Cuda Compiler Driver 2.2
12501 lt_prog_compiler_wl='-Xlinker '
12502 if test -n "$lt_prog_compiler_pic"; then
12503 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12504 fi
12505 ;;
12506 esac
12507 else
12508 # PORTME Check for flag to pass linker flags through the system compiler.
12509 case $host_os in
12510 aix*)
12511 lt_prog_compiler_wl='-Wl,'
12512 if test ia64 = "$host_cpu"; then
12513 # AIX 5 now supports IA64 processor
12514 lt_prog_compiler_static='-Bstatic'
12515 else
12516 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12517 fi
12518 ;;
12519
12520 darwin* | rhapsody*)
12521 # PIC is the default on this platform
12522 # Common symbols not allowed in MH_DYLIB files
12523 lt_prog_compiler_pic='-fno-common'
12524 case $cc_basename in
12525 nagfor*)
12526 # NAG Fortran compiler
12527 lt_prog_compiler_wl='-Wl,-Wl,,'
12528 lt_prog_compiler_pic='-PIC'
12529 lt_prog_compiler_static='-Bstatic'
12530 ;;
12531 esac
12532 ;;
12533
12534 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12535 # This hack is so that the source file can tell whether it is being
12536 # built for inclusion in a dll (and should export symbols for example).
12537 lt_prog_compiler_pic='-DDLL_EXPORT'
12538 case $host_os in
12539 os2*)
12540 lt_prog_compiler_static='$wl-static'
12541 ;;
12542 esac
12543 ;;
12544
12545 hpux9* | hpux10* | hpux11*)
12546 lt_prog_compiler_wl='-Wl,'
12547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12548 # not for PA HP-UX.
12549 case $host_cpu in
12550 hppa*64*|ia64*)
12551 # +Z the default
12552 ;;
12553 *)
12554 lt_prog_compiler_pic='+Z'
12555 ;;
12556 esac
12557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12558 lt_prog_compiler_static='$wl-a ${wl}archive'
12559 ;;
12560
12561 irix5* | irix6* | nonstopux*)
12562 lt_prog_compiler_wl='-Wl,'
12563 # PIC (with -KPIC) is the default.
12564 lt_prog_compiler_static='-non_shared'
12565 ;;
12566
12567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12568 case $cc_basename in
12569 # old Intel for x86_64, which still supported -KPIC.
12570 ecc*)
12571 lt_prog_compiler_wl='-Wl,'
12572 lt_prog_compiler_pic='-KPIC'
12573 lt_prog_compiler_static='-static'
12574 ;;
12575 *flang* | ftn | f18* | f95*)
12576 # Flang compiler.
12577 lt_prog_compiler_wl='-Wl,'
12578 lt_prog_compiler_pic='-fPIC'
12579 lt_prog_compiler_static='-static'
12580 ;;
12581 # icc used to be incompatible with GCC.
12582 # ICC 10 doesn't accept -KPIC any more.
12583 icc* | ifort*)
12584 lt_prog_compiler_wl='-Wl,'
12585 lt_prog_compiler_pic='-fPIC'
12586 lt_prog_compiler_static='-static'
12587 ;;
12588 # Lahey Fortran 8.1.
12589 lf95*)
12590 lt_prog_compiler_wl='-Wl,'
12591 lt_prog_compiler_pic='--shared'
12592 lt_prog_compiler_static='--static'
12593 ;;
12594 nagfor*)
12595 # NAG Fortran compiler
12596 lt_prog_compiler_wl='-Wl,-Wl,,'
12597 lt_prog_compiler_pic='-PIC'
12598 lt_prog_compiler_static='-Bstatic'
12599 ;;
12600 tcc*)
12601 # Fabrice Bellard et al's Tiny C Compiler
12602 lt_prog_compiler_wl='-Wl,'
12603 lt_prog_compiler_pic='-fPIC'
12604 lt_prog_compiler_static='-static'
12605 ;;
12606 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12607 # Portland Group compilers (*not* the Pentium gcc compiler,
12608 # which looks to be a dead project)
12609 lt_prog_compiler_wl='-Wl,'
12610 lt_prog_compiler_pic='-fpic'
12611 lt_prog_compiler_static='-Bstatic'
12612 ;;
12613 ccc*)
12614 lt_prog_compiler_wl='-Wl,'
12615 # All Alpha code is PIC.
12616 lt_prog_compiler_static='-non_shared'
12617 ;;
12618 xl* | bgxl* | bgf* | mpixl*)
12619 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12620 lt_prog_compiler_wl='-Wl,'
12621 lt_prog_compiler_pic='-qpic'
12622 lt_prog_compiler_static='-qstaticlink'
12623 ;;
12624 *)
12625 case `$CC -V 2>&1 | $SED 5q` in
12626 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12627 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12628 lt_prog_compiler_pic='-KPIC'
12629 lt_prog_compiler_static='-Bstatic'
12630 lt_prog_compiler_wl=''
12631 ;;
12632 *Sun\ F* | *Sun*Fortran*)
12633 lt_prog_compiler_pic='-KPIC'
12634 lt_prog_compiler_static='-Bstatic'
12635 lt_prog_compiler_wl='-Qoption ld '
12636 ;;
12637 *Sun\ C*)
12638 # Sun C 5.9
12639 lt_prog_compiler_pic='-KPIC'
12640 lt_prog_compiler_static='-Bstatic'
12641 lt_prog_compiler_wl='-Wl,'
12642 ;;
12643 *Intel*\ [CF]*Compiler*)
12644 lt_prog_compiler_wl='-Wl,'
12645 lt_prog_compiler_pic='-fPIC'
12646 lt_prog_compiler_static='-static'
12647 ;;
12648 *Portland\ Group*)
12649 lt_prog_compiler_wl='-Wl,'
12650 lt_prog_compiler_pic='-fpic'
12651 lt_prog_compiler_static='-Bstatic'
12652 ;;
12653 esac
12654 ;;
12655 esac
12656 ;;
12657
12658 newsos6)
12659 lt_prog_compiler_pic='-KPIC'
12660 lt_prog_compiler_static='-Bstatic'
12661 ;;
12662
12663 *-mlibc)
12664 lt_prog_compiler_wl='-Wl,'
12665 lt_prog_compiler_pic='-fPIC'
12666 lt_prog_compiler_static='-static'
12667 ;;
12668
12669 *nto* | *qnx*)
12670 # QNX uses GNU C++, but need to define -shared option too, otherwise
12671 # it will coredump.
12672 lt_prog_compiler_pic='-fPIC -shared'
12673 ;;
12674
12675 osf3* | osf4* | osf5*)
12676 lt_prog_compiler_wl='-Wl,'
12677 # All OSF/1 code is PIC.
12678 lt_prog_compiler_static='-non_shared'
12679 ;;
12680
12681 rdos*)
12682 lt_prog_compiler_static='-non_shared'
12683 ;;
12684
12685 serenity*)
12686 ;;
12687
12688 solaris*)
12689 lt_prog_compiler_pic='-KPIC'
12690 lt_prog_compiler_static='-Bstatic'
12691 case $cc_basename in
12692 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12693 lt_prog_compiler_wl='-Qoption ld ';;
12694 *)
12695 lt_prog_compiler_wl='-Wl,';;
12696 esac
12697 ;;
12698
12699 sunos4*)
12700 lt_prog_compiler_wl='-Qoption ld '
12701 lt_prog_compiler_pic='-PIC'
12702 lt_prog_compiler_static='-Bstatic'
12703 ;;
12704
12705 sysv4 | sysv4.2uw2* | sysv4.3*)
12706 lt_prog_compiler_wl='-Wl,'
12707 lt_prog_compiler_pic='-KPIC'
12708 lt_prog_compiler_static='-Bstatic'
12709 ;;
12710
12711 sysv4*MP*)
12712 if test -d /usr/nec; then
12713 lt_prog_compiler_pic='-Kconform_pic'
12714 lt_prog_compiler_static='-Bstatic'
12715 fi
12716 ;;
12717
12718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12719 lt_prog_compiler_wl='-Wl,'
12720 lt_prog_compiler_pic='-KPIC'
12721 lt_prog_compiler_static='-Bstatic'
12722 ;;
12723
12724 unicos*)
12725 lt_prog_compiler_wl='-Wl,'
12726 lt_prog_compiler_can_build_shared=no
12727 ;;
12728
12729 uts4*)
12730 lt_prog_compiler_pic='-pic'
12731 lt_prog_compiler_static='-Bstatic'
12732 ;;
12733
12734 *)
12735 lt_prog_compiler_can_build_shared=no
12736 ;;
12737 esac
12738 fi
12739
12740 case $host_os in
12741 # For platforms that do not support PIC, -DPIC is meaningless:
12742 *djgpp*)
12743 lt_prog_compiler_pic=
12744 ;;
12745 *)
12746 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12747 ;;
12748 esac
12749
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12751 printf %s "checking for $compiler option to produce PIC... " >&6; }
12752 if test ${lt_cv_prog_compiler_pic+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else case e in #(
12756 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12757 esac
12758 fi
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12760 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12761 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12762
12763 #
12764 # Check to make sure the PIC flag actually works.
12765 #
12766 if test -n "$lt_prog_compiler_pic"; then
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12768 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12769 if test ${lt_cv_prog_compiler_pic_works+y}
12770 then :
12771 printf %s "(cached) " >&6
12772 else case e in #(
12773 e) lt_cv_prog_compiler_pic_works=no
12774 ac_outfile=conftest.$ac_objext
12775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12776 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12777 # Insert the option either (1) after the last *FLAGS variable, or
12778 # (2) before a word containing "conftest.", or (3) at the end.
12779 # Note that $ac_compile itself does not contain backslashes and begins
12780 # with a dollar sign (not a hyphen), so the echo should work correctly.
12781 # The option is referenced via a variable to avoid confusing sed.
12782 lt_compile=`echo "$ac_compile" | $SED \
12783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12785 -e 's:$: $lt_compiler_flag:'`
12786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12787 (eval "$lt_compile" 2>conftest.err)
12788 ac_status=$?
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 if (exit $ac_status) && test -s "$ac_outfile"; then
12792 # The compiler can only warn and ignore the option if not recognized
12793 # So say no if there are warnings other than the usual output.
12794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12797 lt_cv_prog_compiler_pic_works=yes
12798 fi
12799 fi
12800 $RM conftest*
12801 ;;
12802 esac
12803 fi
12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12805 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12806
12807 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12808 case $lt_prog_compiler_pic in
12809 "" | " "*) ;;
12810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12811 esac
12812 else
12813 lt_prog_compiler_pic=
12814 lt_prog_compiler_can_build_shared=no
12815 fi
12816
12817 fi
12818
12819
12820
12821
12822
12823 #
12824 # Check to make sure the static flag actually works.
12825 #
12826 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12828 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12829 if test ${lt_cv_prog_compiler_static_works+y}
12830 then :
12831 printf %s "(cached) " >&6
12832 else case e in #(
12833 e) lt_cv_prog_compiler_static_works=no
12834 save_LDFLAGS=$LDFLAGS
12835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12838 # The linker can only warn and ignore the option if not recognized
12839 # So say no if there are warnings
12840 if test -s conftest.err; then
12841 # Append any errors to the config.log.
12842 cat conftest.err 1>&5
12843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12845 if diff conftest.exp conftest.er2 >/dev/null; then
12846 lt_cv_prog_compiler_static_works=yes
12847 fi
12848 else
12849 lt_cv_prog_compiler_static_works=yes
12850 fi
12851 fi
12852 $RM -r conftest*
12853 LDFLAGS=$save_LDFLAGS
12854 ;;
12855 esac
12856 fi
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12858 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12859
12860 if test yes = "$lt_cv_prog_compiler_static_works"; then
12861 :
12862 else
12863 lt_prog_compiler_static=
12864 fi
12865
12866
12867
12868 ='-fPIC'
12869 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12870 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12871 archive_cmds_need_lc=no
12872 no_undefined_flag=
12873 ;;
12874
12875 *)
12876 dynamic_linker=no
12877 ;;
12878 esac
12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12880 printf "%s\n" "$dynamic_linker" >&6; }
12881 test no = "$dynamic_linker" && can_build_shared=no
12882
12883 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12884 if test yes = "$GCC"; then
12885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12886 fi
12887
12888 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12889 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12890 fi
12891
12892 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12893 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12894 fi
12895
12896 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12897 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12898
12899 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12900 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12901
12902 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12903 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13002 printf %s "checking how to hardcode library paths into programs... " >&6; }
13003 hardcode_action=
13004 if test -n "$hardcode_libdir_flag_spec" ||
13005 test -n "$runpath_var" ||
13006 test yes = "$hardcode_automatic"; then
13007
13008 # We can hardcode non-existent directories.
13009 if test no != "$hardcode_direct" &&
13010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13011 # have to relink, otherwise we might link with an installed library
13012 # when we should be linking with a yet-to-be-installed one
13013 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13014 test no != "$hardcode_minus_L"; then
13015 # Linking always hardcodes the temporary library directory.
13016 hardcode_action=relink
13017 else
13018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13019 hardcode_action=immediate
13020 fi
13021 else
13022 # We cannot hardcode anything, or else we can only hardcode existing
13023 # directories.
13024 hardcode_action=unsupported
13025 fi
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13027 printf "%s\n" "$hardcode_action" >&6; }
13028
13029 if test relink = "$hardcode_action" ||
13030 test yes = "$inherit_rpath"; then
13031 # Fast installation is not supported
13032 enable_fast_install=no
13033 elif test yes = "$shlibpath_overrides_runpath" ||
13034 test no = "$enable_shared"; then
13035 # Fast installation is not necessary
13036 enable_fast_install=needless
13037 fi
13038
13039
13040
13041
13042
13043
13044 if test yes != "$enable_dlopen"; then
13045 enable_dlopen=unknown
13046 enable_dlopen_self=unknown
13047 enable_dlopen_self_static=unknown
13048 else
13049 lt_cv_dlopen=no
13050 lt_cv_dlopen_libs=
13051
13052 case $host_os in
13053 beos*)
13054 lt_cv_dlopen=load_add_on
13055 lt_cv_dlopen_libs=
13056 lt_cv_dlopen_self=yes
13057 ;;
13058
13059 mingw* | windows* | pw32* | cegcc*)
13060 lt_cv_dlopen=LoadLibrary
13061 lt_cv_dlopen_libs=
13062 ;;
13063
13064 cygwin*)
13065 lt_cv_dlopen=dlopen
13066 lt_cv_dlopen_libs=
13067 ;;
13068
13069 darwin*)
13070 # if libdl is installed we need to link against it
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13072 printf %s "checking for dlopen in -ldl... " >&6; }
13073 if test ${ac_cv_lib_dl_dlopen+y}
13074 then :
13075 printf %s "(cached) " >&6
13076 else case e in #(
13077 e) ac_check_lib_save_LIBS=$LIBS
13078 LIBS="-ldl $LIBS"
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply.
13085 The 'extern "C"' is for builds by C++ compilers;
13086 although this is not generally supported in C code supporting it here
13087 has little cost and some practical benefit (sr 110532). */
13088 #ifdef __cplusplus
13089 extern "C"
13090 #endif
13091 char dlopen (void);
13092 int
13093 main (void)
13094 {
13095 return dlopen ();
13096 ;
13097 return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_link "$LINENO"
13101 then :
13102 ac_cv_lib_dl_dlopen=yes
13103 else case e in #(
13104 e) ac_cv_lib_dl_dlopen=no ;;
13105 esac
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13108 conftest$ac_exeext conftest.$ac_ext
13109 LIBS=$ac_check_lib_save_LIBS ;;
13110 esac
13111 fi
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13113 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13114 if test "x$ac_cv_lib_dl_dlopen" = xyes
13115 then :
13116 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13117 else case e in #(
13118 e)
13119 lt_cv_dlopen=dyld
13120 lt_cv_dlopen_libs=
13121 lt_cv_dlopen_self=yes
13122 ;;
13123 esac
13124 fi
13125
13126 ;;
13127
13128 tpf*)
13129 # Don't try to run any link tests for TPF. We know it's impossible
13130 # because TPF is a cross-compiler, and we know how we open DSOs.
13131 lt_cv_dlopen=dlopen
13132 lt_cv_dlopen_libs=
13133 lt_cv_dlopen_self=no
13134 ;;
13135
13136 *)
13137 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13138 if test "x$ac_cv_func_shl_load" = xyes
13139 then :
13140 lt_cv_dlopen=shl_load
13141 else case e in #(
13142 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13143 printf %s "checking for shl_load in -ldld... " >&6; }
13144 if test ${ac_cv_lib_dld_shl_load+y}
13145 then :
13146 printf %s "(cached) " >&6
13147 else case e in #(
13148 e) ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-ldld $LIBS"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply.
13156 The 'extern "C"' is for builds by C++ compilers;
13157 although this is not generally supported in C code supporting it here
13158 has little cost and some practical benefit (sr 110532). */
13159 #ifdef __cplusplus
13160 extern "C"
13161 #endif
13162 char shl_load (void);
13163 int
13164 main (void)
13165 {
13166 return shl_load ();
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 if ac_fn_c_try_link "$LINENO"
13172 then :
13173 ac_cv_lib_dld_shl_load=yes
13174 else case e in #(
13175 e) ac_cv_lib_dld_shl_load=no ;;
13176 esac
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS ;;
13181 esac
13182 fi
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13184 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13185 if test "x$ac_cv_lib_dld_shl_load" = xyes
13186 then :
13187 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13188 else case e in #(
13189 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13190 if test "x$ac_cv_func_dlopen" = xyes
13191 then :
13192 lt_cv_dlopen=dlopen
13193 else case e in #(
13194 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13195 printf %s "checking for dlopen in -ldl... " >&6; }
13196 if test ${ac_cv_lib_dl_dlopen+y}
13197 then :
13198 printf %s "(cached) " >&6
13199 else case e in #(
13200 e) ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-ldl $LIBS"
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204
13205 /* Override any GCC internal prototype to avoid an error.
13206 Use char because int might match the return type of a GCC
13207 builtin and then its argument prototype would still apply.
13208 The 'extern "C"' is for builds by C++ compilers;
13209 although this is not generally supported in C code supporting it here
13210 has little cost and some practical benefit (sr 110532). */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char dlopen (void);
13215 int
13216 main (void)
13217 {
13218 return dlopen ();
13219 ;
13220 return 0;
13221 }
13222 _ACEOF
13223 if ac_fn_c_try_link "$LINENO"
13224 then :
13225 ac_cv_lib_dl_dlopen=yes
13226 else case e in #(
13227 e) ac_cv_lib_dl_dlopen=no ;;
13228 esac
13229 fi
13230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS ;;
13233 esac
13234 fi
13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13236 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13237 if test "x$ac_cv_lib_dl_dlopen" = xyes
13238 then :
13239 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13240 else case e in #(
13241 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13242 printf %s "checking for dlopen in -lsvld... " >&6; }
13243 if test ${ac_cv_lib_svld_dlopen+y}
13244 then :
13245 printf %s "(cached) " >&6
13246 else case e in #(
13247 e) ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lsvld $LIBS"
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply.
13255 The 'extern "C"' is for builds by C++ compilers;
13256 although this is not generally supported in C code supporting it here
13257 has little cost and some practical benefit (sr 110532). */
13258 #ifdef __cplusplus
13259 extern "C"
13260 #endif
13261 char dlopen (void);
13262 int
13263 main (void)
13264 {
13265 return dlopen ();
13266 ;
13267 return 0;
13268 }
13269 _ACEOF
13270 if ac_fn_c_try_link "$LINENO"
13271 then :
13272 ac_cv_lib_svld_dlopen=yes
13273 else case e in #(
13274 e) ac_cv_lib_svld_dlopen=no ;;
13275 esac
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS ;;
13280 esac
13281 fi
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13283 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13284 if test "x$ac_cv_lib_svld_dlopen" = xyes
13285 then :
13286 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13287 else case e in #(
13288 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13289 printf %s "checking for dld_link in -ldld... " >&6; }
13290 if test ${ac_cv_lib_dld_dld_link+y}
13291 then :
13292 printf %s "(cached) " >&6
13293 else case e in #(
13294 e) ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-ldld $LIBS"
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298
13299 /* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply.
13302 The 'extern "C"' is for builds by C++ compilers;
13303 although this is not generally supported in C code supporting it here
13304 has little cost and some practical benefit (sr 110532). */
13305 #ifdef __cplusplus
13306 extern "C"
13307 #endif
13308 char dld_link (void);
13309 int
13310 main (void)
13311 {
13312 return dld_link ();
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_link "$LINENO"
13318 then :
13319 ac_cv_lib_dld_dld_link=yes
13320 else case e in #(
13321 e) ac_cv_lib_dld_dld_link=no ;;
13322 esac
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS ;;
13327 esac
13328 fi
13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13330 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13331 if test "x$ac_cv_lib_dld_dld_link" = xyes
13332 then :
13333 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13334 fi
13335
13336 ;;
13337 esac
13338 fi
13339
13340 ;;
13341 esac
13342 fi
13343
13344 ;;
13345 esac
13346 fi
13347
13348 ;;
13349 esac
13350 fi
13351
13352 ;;
13353 esac
13354 fi
13355
13356 ;;
13357 esac
13358
13359 if test no = "$lt_cv_dlopen"; then
13360 enable_dlopen=no
13361 else
13362 enable_dlopen=yes
13363 fi
13364
13365 case $lt_cv_dlopen in
13366 dlopen)
13367 save_CPPFLAGS=$CPPFLAGS
13368 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13369
13370 save_LDFLAGS=$LDFLAGS
13371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13372
13373 save_LIBS=$LIBS
13374 LIBS="$lt_cv_dlopen_libs $LIBS"
13375
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13377 printf %s "checking whether a program can dlopen itself... " >&6; }
13378 if test ${lt_cv_dlopen_self+y}
13379 then :
13380 printf %s "(cached) " >&6
13381 else case e in #(
13382 e) if test yes = "$cross_compiling"; then :
13383 lt_cv_dlopen_self=cross
13384 else
13385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13386 lt_status=$lt_dlunknown
13387 cat > conftest.$ac_ext <<_LT_EOF
13388 #line $LINENO "configure"
13389 #include "confdefs.h"
13390
13391 #if HAVE_DLFCN_H
13392 #include <dlfcn.h>
13393 #endif
13394
13395 #include <stdio.h>
13396
13397 #ifdef RTLD_GLOBAL
13398 # define LT_DLGLOBAL RTLD_GLOBAL
13399 #else
13400 # ifdef DL_GLOBAL
13401 # define LT_DLGLOBAL DL_GLOBAL
13402 # else
13403 # define LT_DLGLOBAL 0
13404 # endif
13405 #endif
13406
13407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13408 find out it does not work in some platform. */
13409 #ifndef LT_DLLAZY_OR_NOW
13410 # ifdef RTLD_LAZY
13411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13412 # else
13413 # ifdef DL_LAZY
13414 # define LT_DLLAZY_OR_NOW DL_LAZY
13415 # else
13416 # ifdef RTLD_NOW
13417 # define LT_DLLAZY_OR_NOW RTLD_NOW
13418 # else
13419 # ifdef DL_NOW
13420 # define LT_DLLAZY_OR_NOW DL_NOW
13421 # else
13422 # define LT_DLLAZY_OR_NOW 0
13423 # endif
13424 # endif
13425 # endif
13426 # endif
13427 #endif
13428
13429 /* When -fvisibility=hidden is used, assume the code has been annotated
13430 correspondingly for the symbols needed. */
13431 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13432 int fnord (void) __attribute__((visibility("default")));
13433 #endif
13434
13435 int fnord (void) { return 42; }
13436 int main (void)
13437 {
13438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13439 int status = $lt_dlunknown;
13440
13441 if (self)
13442 {
13443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13444 else
13445 {
13446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13447 else puts (dlerror ());
13448 }
13449 /* dlclose (self); */
13450 }
13451 else
13452 puts (dlerror ());
13453
13454 return status;
13455 }
13456 _LT_EOF
13457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13458 (eval $ac_link) 2>&5
13459 ac_status=$?
13460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13462 (./conftest; exit; ) >&5 2>/dev/null
13463 lt_status=$?
13464 case x$lt_status in
13465 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13466 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13467 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13468 esac
13469 else :
13470 # compilation failed
13471 lt_cv_dlopen_self=no
13472 fi
13473 fi
13474 rm -fr conftest*
13475
13476 ;;
13477 esac
13478 fi
13479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13480 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13481
13482 if test yes = "$lt_cv_dlopen_self"; then
13483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13485 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13486 if test ${lt_cv_dlopen_self_static+y}
13487 then :
13488 printf %s "(cached) " >&6
13489 else case e in #(
13490 e) if test yes = "$cross_compiling"; then :
13491 lt_cv_dlopen_self_static=cross
13492 else
13493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13494 lt_status=$lt_dlunknown
13495 cat > conftest.$ac_ext <<_LT_EOF
13496 #line $LINENO "configure"
13497 #include "confdefs.h"
13498
13499 #if HAVE_DLFCN_H
13500 #include <dlfcn.h>
13501 #endif
13502
13503 #include <stdio.h>
13504
13505 #ifdef RTLD_GLOBAL
13506 # define LT_DLGLOBAL RTLD_GLOBAL
13507 #else
13508 # ifdef DL_GLOBAL
13509 # define LT_DLGLOBAL DL_GLOBAL
13510 # else
13511 # define LT_DLGLOBAL 0
13512 # endif
13513 #endif
13514
13515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13516 find out it does not work in some platform. */
13517 #ifndef LT_DLLAZY_OR_NOW
13518 # ifdef RTLD_LAZY
13519 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13520 # else
13521 # ifdef DL_LAZY
13522 # define LT_DLLAZY_OR_NOW DL_LAZY
13523 # else
13524 # ifdef RTLD_NOW
13525 # define LT_DLLAZY_OR_NOW RTLD_NOW
13526 # else
13527 # ifdef DL_NOW
13528 # define LT_DLLAZY_OR_NOW DL_NOW
13529 # else
13530 # define LT_DLLAZY_OR_NOW 0
13531 # endif
13532 # endif
13533 # endif
13534 # endif
13535 #endif
13536
13537 /* When -fvisibility=hidden is used, assume the code has been annotated
13538 correspondingly for the symbols needed. */
13539 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13540 int fnord (void) __attribute__((visibility("default")));
13541 #endif
13542
13543 int fnord (void) { return 42; }
13544 int main (void)
13545 {
13546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13547 int status = $lt_dlunknown;
13548
13549 if (self)
13550 {
13551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13552 else
13553 {
13554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13555 else puts (dlerror ());
13556 }
13557 /* dlclose (self); */
13558 }
13559 else
13560 puts (dlerror ());
13561
13562 return status;
13563 }
13564 _LT_EOF
13565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13566 (eval $ac_link) 2>&5
13567 ac_status=$?
13568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13569 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13570 (./conftest; exit; ) >&5 2>/dev/null
13571 lt_status=$?
13572 case x$lt_status in
13573 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13574 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13575 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13576 esac
13577 else :
13578 # compilation failed
13579 lt_cv_dlopen_self_static=no
13580 fi
13581 fi
13582 rm -fr conftest*
13583
13584 ;;
13585 esac
13586 fi
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13588 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13589 fi
13590
13591 CPPFLAGS=$save_CPPFLAGS
13592 LDFLAGS=$save_LDFLAGS
13593 LIBS=$save_LIBS
13594 ;;
13595 esac
13596
13597 case $lt_cv_dlopen_self in
13598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13599 *) enable_dlopen_self=unknown ;;
13600 esac
13601
13602 case $lt_cv_dlopen_self_static in
13603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13604 *) enable_dlopen_self_static=unknown ;;
13605 esac
13606 fi
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624 striplib=
13625 old_striplib=
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13627 printf %s "checking whether stripping libraries is possible... " >&6; }
13628 if test -z "$STRIP"; then
13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 printf "%s\n" "no" >&6; }
13631 else
13632 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13633 old_striplib="$STRIP --strip-debug"
13634 striplib="$STRIP --strip-unneeded"
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 printf "%s\n" "yes" >&6; }
13637 else
13638 case $host_os in
13639 darwin*)
13640 # FIXME - insert some real tests, host_os isn't really good enough
13641 striplib="$STRIP -x"
13642 old_striplib="$STRIP -S"
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13644 printf "%s\n" "yes" >&6; }
13645 ;;
13646 freebsd*)
13647 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13648 old_striplib="$STRIP --strip-debug"
13649 striplib="$STRIP --strip-unneeded"
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13651 printf "%s\n" "yes" >&6; }
13652 else
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 printf "%s\n" "no" >&6; }
13655 fi
13656 ;;
13657 *)
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 printf "%s\n" "no" >&6; }
13660 ;;
13661 esac
13662 fi
13663 fi
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676 # Report what library types will actually be built
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13678 printf %s "checking if libtool supports shared libraries... " >&6; }
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13680 printf "%s\n" "$can_build_shared" >&6; }
13681
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13683 printf %s "checking whether to build shared libraries... " >&6; }
13684 test no = "$can_build_shared" && enable_shared=no
13685
13686 # On AIX, shared libraries and static libraries use the same namespace, and
13687 # are all built from PIC.
13688 case $host_os in
13689 aix3*)
13690 test yes = "$enable_shared" && enable_static=no
13691 if test -n "$RANLIB"; then
13692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13693 postinstall_cmds='$RANLIB $lib'
13694 fi
13695 ;;
13696
13697 aix[4-9]*)
13698 if test ia64 != "$host_cpu"; then
13699 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13700 yes,aix,yes) ;; # shared object as lib.so file only
13701 yes,svr4,*) ;; # shared object as lib.so archive member only
13702 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13703 esac
13704 fi
13705 ;;
13706 esac
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13708 printf "%s\n" "$enable_shared" >&6; }
13709
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13711 printf %s "checking whether to build static libraries... " >&6; }
13712 # Make sure either enable_shared or enable_static is yes.
13713 test yes = "$enable_shared" || enable_static=yes
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13715 printf "%s\n" "$enable_static" >&6; }
13716
13717
13718
13719
13720 fi
13721 ac_ext=c
13722 ac_cpp='$CPP $CPPFLAGS'
13723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13726
13727 CC=$lt_save_CC
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743 ac_config_commands="$ac_config_commands libtool"
13744
13745
13746
13747
13748 # Only expand once:
13749
13750
13751
13752 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13765 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13766 if test ${ac_cv_c_undeclared_builtin_options+y}
13767 then :
13768 printf %s "(cached) " >&6
13769 else case e in #(
13770 e) ac_save_CFLAGS=$CFLAGS
13771 ac_cv_c_undeclared_builtin_options='cannot detect'
13772 for ac_arg in '' -fno-builtin; do
13773 CFLAGS="$ac_save_CFLAGS $ac_arg"
13774 # This test program should *not* compile successfully.
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777
13778 int
13779 main (void)
13780 {
13781 (void) strchr;
13782 ;
13783 return 0;
13784 }
13785 _ACEOF
13786 if ac_fn_c_try_compile "$LINENO"
13787 then :
13788
13789 else case e in #(
13790 e) # This test program should compile successfully.
13791 # No library function is consistently available on
13792 # freestanding implementations, so test against a dummy
13793 # declaration. Include always-available headers on the
13794 # off chance that they somehow elicit warnings.
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13797 #include <float.h>
13798 #include <limits.h>
13799 #include <stdarg.h>
13800 #include <stddef.h>
13801 extern void ac_decl (int, char *);
13802
13803 int
13804 main (void)
13805 {
13806 (void) ac_decl (0, (char *) 0);
13807 (void) ac_decl;
13808
13809 ;
13810 return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_compile "$LINENO"
13814 then :
13815 if test x"$ac_arg" = x
13816 then :
13817 ac_cv_c_undeclared_builtin_options='none needed'
13818 else case e in #(
13819 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13820 esac
13821 fi
13822 break
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13825 esac
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13828 done
13829 CFLAGS=$ac_save_CFLAGS
13830 ;;
13831 esac
13832 fi
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13834 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13835 case $ac_cv_c_undeclared_builtin_options in #(
13836 'cannot detect') :
13837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13838 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13839 as_fn_error $? "cannot make $CC report undeclared builtins
13840 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13841 'none needed') :
13842 ac_c_undeclared_builtin_options='' ;; #(
13843 *) :
13844 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13845 esac
13846
13847
13848
13849
13850
13851 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13852 if test "x$ac_cv_have_decl___clang__" = xyes
13853 then :
13854 CLANGCC="yes"
13855 else case e in #(
13856 e) CLANGCC="no" ;;
13857 esac
13858 fi
13859 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13860 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13861 then :
13862 INTELCC="yes"
13863 else case e in #(
13864 e) INTELCC="no" ;;
13865 esac
13866 fi
13867 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13868 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13869 then :
13870 SUNCC="yes"
13871 else case e in #(
13872 e) SUNCC="no" ;;
13873 esac
13874 fi
13875
13876
13877
13878
13879
13880
13881
13882
13883 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13884 if test -n "$ac_tool_prefix"; then
13885 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13886 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888 printf %s "checking for $ac_word... " >&6; }
13889 if test ${ac_cv_path_PKG_CONFIG+y}
13890 then :
13891 printf %s "(cached) " >&6
13892 else case e in #(
13893 e) case $PKG_CONFIG in
13894 [\\/]* | ?:[\\/]*)
13895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13896 ;;
13897 *)
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13900 do
13901 IFS=$as_save_IFS
13902 case $as_dir in #(((
13903 '') as_dir=./ ;;
13904 */) ;;
13905 *) as_dir=$as_dir/ ;;
13906 esac
13907 for ac_exec_ext in '' $ac_executable_extensions; do
13908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13909 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13911 break 2
13912 fi
13913 done
13914 done
13915 IFS=$as_save_IFS
13916
13917 ;;
13918 esac ;;
13919 esac
13920 fi
13921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13922 if test -n "$PKG_CONFIG"; then
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13924 printf "%s\n" "$PKG_CONFIG" >&6; }
13925 else
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13927 printf "%s\n" "no" >&6; }
13928 fi
13929
13930
13931 fi
13932 if test -z "$ac_cv_path_PKG_CONFIG"; then
13933 ac_pt_PKG_CONFIG=$PKG_CONFIG
13934 # Extract the first word of "pkg-config", so it can be a program name with args.
13935 set dummy pkg-config; ac_word=$2
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 printf %s "checking for $ac_word... " >&6; }
13938 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13939 then :
13940 printf %s "(cached) " >&6
13941 else case e in #(
13942 e) case $ac_pt_PKG_CONFIG in
13943 [\\/]* | ?:[\\/]*)
13944 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13945 ;;
13946 *)
13947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948 for as_dir in $PATH
13949 do
13950 IFS=$as_save_IFS
13951 case $as_dir in #(((
13952 '') as_dir=./ ;;
13953 */) ;;
13954 *) as_dir=$as_dir/ ;;
13955 esac
13956 for ac_exec_ext in '' $ac_executable_extensions; do
13957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13958 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13960 break 2
13961 fi
13962 done
13963 done
13964 IFS=$as_save_IFS
13965
13966 ;;
13967 esac ;;
13968 esac
13969 fi
13970 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13971 if test -n "$ac_pt_PKG_CONFIG"; then
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13973 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13974 else
13975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 printf "%s\n" "no" >&6; }
13977 fi
13978
13979 if test "x$ac_pt_PKG_CONFIG" = x; then
13980 PKG_CONFIG=""
13981 else
13982 case $cross_compiling:$ac_tool_warned in
13983 yes:)
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13986 ac_tool_warned=yes ;;
13987 esac
13988 PKG_CONFIG=$ac_pt_PKG_CONFIG
13989 fi
13990 else
13991 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13992 fi
13993
13994 fi
13995 if test -n "$PKG_CONFIG"; then
13996 _pkg_min_version=0.9.0
13997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13998 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13999 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14001 printf "%s\n" "yes" >&6; }
14002 else
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 printf "%s\n" "no" >&6; }
14005 PKG_CONFIG=""
14006 fi
14007 fi
14008
14009
14010
14011
14012
14013 # Check whether --enable-selective-werror was given.
14014 if test ${enable_selective_werror+y}
14015 then :
14016 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14017 else case e in #(
14018 e) SELECTIVE_WERROR=yes ;;
14019 esac
14020 fi
14021
14022
14023
14024
14025
14026 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14027 if test "x$SUNCC" = "xyes"; then
14028 BASE_CFLAGS="-v"
14029 else
14030 BASE_CFLAGS=""
14031 fi
14032
14033 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047 xorg_testset_save_CFLAGS="$CFLAGS"
14048
14049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14052 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14053 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14054 then :
14055 printf %s "(cached) " >&6
14056 else case e in #(
14057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059 int i;
14060 _ACEOF
14061 if ac_fn_c_try_compile "$LINENO"
14062 then :
14063 xorg_cv_cc_flag_unknown_warning_option=yes
14064 else case e in #(
14065 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14066 esac
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14069 esac
14070 fi
14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14074 CFLAGS="$xorg_testset_save_CFLAGS"
14075 fi
14076
14077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14080 fi
14081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14085 then :
14086 printf %s "(cached) " >&6
14087 else case e in #(
14088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"
14093 then :
14094 xorg_cv_cc_flag_unused_command_line_argument=yes
14095 else case e in #(
14096 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14097 esac
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14100 esac
14101 fi
14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14103 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14105 CFLAGS="$xorg_testset_save_CFLAGS"
14106 fi
14107
14108 found="no"
14109
14110 if test $found = "no" ; then
14111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14113 fi
14114
14115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14117 fi
14118
14119 CFLAGS="$CFLAGS -Wall"
14120
14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14122 printf %s "checking if $CC supports -Wall... " >&6; }
14123 cacheid=xorg_cv_cc_flag__Wall
14124 if eval test \${$cacheid+y}
14125 then :
14126 printf %s "(cached) " >&6
14127 else case e in #(
14128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130 int i;
14131 int
14132 main (void)
14133 {
14134
14135 ;
14136 return 0;
14137 }
14138 _ACEOF
14139 if ac_fn_c_try_link "$LINENO"
14140 then :
14141 eval $cacheid=yes
14142 else case e in #(
14143 e) eval $cacheid=no ;;
14144 esac
14145 fi
14146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14147 conftest$ac_exeext conftest.$ac_ext ;;
14148 esac
14149 fi
14150
14151
14152 CFLAGS="$xorg_testset_save_CFLAGS"
14153
14154 eval supported=\$$cacheid
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14156 printf "%s\n" "$supported" >&6; }
14157 if test "$supported" = "yes" ; then
14158 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14159 found="yes"
14160 fi
14161 fi
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177 xorg_testset_save_CFLAGS="$CFLAGS"
14178
14179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14183 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14184 then :
14185 printf %s "(cached) " >&6
14186 else case e in #(
14187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189 int i;
14190 _ACEOF
14191 if ac_fn_c_try_compile "$LINENO"
14192 then :
14193 xorg_cv_cc_flag_unknown_warning_option=yes
14194 else case e in #(
14195 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14196 esac
14197 fi
14198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14199 esac
14200 fi
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14202 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14204 CFLAGS="$xorg_testset_save_CFLAGS"
14205 fi
14206
14207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14210 fi
14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14215 then :
14216 printf %s "(cached) " >&6
14217 else case e in #(
14218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220 int i;
14221 _ACEOF
14222 if ac_fn_c_try_compile "$LINENO"
14223 then :
14224 xorg_cv_cc_flag_unused_command_line_argument=yes
14225 else case e in #(
14226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14227 esac
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14230 esac
14231 fi
14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14235 CFLAGS="$xorg_testset_save_CFLAGS"
14236 fi
14237
14238 found="no"
14239
14240 if test $found = "no" ; then
14241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14243 fi
14244
14245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14247 fi
14248
14249 CFLAGS="$CFLAGS -Wpointer-arith"
14250
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14252 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14253 cacheid=xorg_cv_cc_flag__Wpointer_arith
14254 if eval test \${$cacheid+y}
14255 then :
14256 printf %s "(cached) " >&6
14257 else case e in #(
14258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260 int i;
14261 int
14262 main (void)
14263 {
14264
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 if ac_fn_c_try_link "$LINENO"
14270 then :
14271 eval $cacheid=yes
14272 else case e in #(
14273 e) eval $cacheid=no ;;
14274 esac
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14277 conftest$ac_exeext conftest.$ac_ext ;;
14278 esac
14279 fi
14280
14281
14282 CFLAGS="$xorg_testset_save_CFLAGS"
14283
14284 eval supported=\$$cacheid
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14286 printf "%s\n" "$supported" >&6; }
14287 if test "$supported" = "yes" ; then
14288 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14289 found="yes"
14290 fi
14291 fi
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307 xorg_testset_save_CFLAGS="$CFLAGS"
14308
14309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14313 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14314 then :
14315 printf %s "(cached) " >&6
14316 else case e in #(
14317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 int i;
14320 _ACEOF
14321 if ac_fn_c_try_compile "$LINENO"
14322 then :
14323 xorg_cv_cc_flag_unknown_warning_option=yes
14324 else case e in #(
14325 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14326 esac
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14329 esac
14330 fi
14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14334 CFLAGS="$xorg_testset_save_CFLAGS"
14335 fi
14336
14337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14340 fi
14341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14345 then :
14346 printf %s "(cached) " >&6
14347 else case e in #(
14348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 int i;
14351 _ACEOF
14352 if ac_fn_c_try_compile "$LINENO"
14353 then :
14354 xorg_cv_cc_flag_unused_command_line_argument=yes
14355 else case e in #(
14356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14357 esac
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14360 esac
14361 fi
14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14365 CFLAGS="$xorg_testset_save_CFLAGS"
14366 fi
14367
14368 found="no"
14369
14370 if test $found = "no" ; then
14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14373 fi
14374
14375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14377 fi
14378
14379 CFLAGS="$CFLAGS -Wmissing-declarations"
14380
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14382 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14383 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14384 if eval test \${$cacheid+y}
14385 then :
14386 printf %s "(cached) " >&6
14387 else case e in #(
14388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 int i;
14391 int
14392 main (void)
14393 {
14394
14395 ;
14396 return 0;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_link "$LINENO"
14400 then :
14401 eval $cacheid=yes
14402 else case e in #(
14403 e) eval $cacheid=no ;;
14404 esac
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14407 conftest$ac_exeext conftest.$ac_ext ;;
14408 esac
14409 fi
14410
14411
14412 CFLAGS="$xorg_testset_save_CFLAGS"
14413
14414 eval supported=\$$cacheid
14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14416 printf "%s\n" "$supported" >&6; }
14417 if test "$supported" = "yes" ; then
14418 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14419 found="yes"
14420 fi
14421 fi
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437 xorg_testset_save_CFLAGS="$CFLAGS"
14438
14439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14444 then :
14445 printf %s "(cached) " >&6
14446 else case e in #(
14447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 int i;
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"
14452 then :
14453 xorg_cv_cc_flag_unknown_warning_option=yes
14454 else case e in #(
14455 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14456 esac
14457 fi
14458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14459 esac
14460 fi
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14464 CFLAGS="$xorg_testset_save_CFLAGS"
14465 fi
14466
14467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14470 fi
14471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14475 then :
14476 printf %s "(cached) " >&6
14477 else case e in #(
14478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 int i;
14481 _ACEOF
14482 if ac_fn_c_try_compile "$LINENO"
14483 then :
14484 xorg_cv_cc_flag_unused_command_line_argument=yes
14485 else case e in #(
14486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14487 esac
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14490 esac
14491 fi
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14495 CFLAGS="$xorg_testset_save_CFLAGS"
14496 fi
14497
14498 found="no"
14499
14500 if test $found = "no" ; then
14501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14503 fi
14504
14505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14507 fi
14508
14509 CFLAGS="$CFLAGS -Wformat=2"
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14512 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14513 cacheid=xorg_cv_cc_flag__Wformat_2
14514 if eval test \${$cacheid+y}
14515 then :
14516 printf %s "(cached) " >&6
14517 else case e in #(
14518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 int i;
14521 int
14522 main (void)
14523 {
14524
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"
14530 then :
14531 eval $cacheid=yes
14532 else case e in #(
14533 e) eval $cacheid=no ;;
14534 esac
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14537 conftest$ac_exeext conftest.$ac_ext ;;
14538 esac
14539 fi
14540
14541
14542 CFLAGS="$xorg_testset_save_CFLAGS"
14543
14544 eval supported=\$$cacheid
14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14546 printf "%s\n" "$supported" >&6; }
14547 if test "$supported" = "yes" ; then
14548 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14549 found="yes"
14550 fi
14551 fi
14552
14553 if test $found = "no" ; then
14554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14556 fi
14557
14558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14560 fi
14561
14562 CFLAGS="$CFLAGS -Wformat"
14563
14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14565 printf %s "checking if $CC supports -Wformat... " >&6; }
14566 cacheid=xorg_cv_cc_flag__Wformat
14567 if eval test \${$cacheid+y}
14568 then :
14569 printf %s "(cached) " >&6
14570 else case e in #(
14571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 int i;
14574 int
14575 main (void)
14576 {
14577
14578 ;
14579 return 0;
14580 }
14581 _ACEOF
14582 if ac_fn_c_try_link "$LINENO"
14583 then :
14584 eval $cacheid=yes
14585 else case e in #(
14586 e) eval $cacheid=no ;;
14587 esac
14588 fi
14589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14590 conftest$ac_exeext conftest.$ac_ext ;;
14591 esac
14592 fi
14593
14594
14595 CFLAGS="$xorg_testset_save_CFLAGS"
14596
14597 eval supported=\$$cacheid
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14599 printf "%s\n" "$supported" >&6; }
14600 if test "$supported" = "yes" ; then
14601 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14602 found="yes"
14603 fi
14604 fi
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622 xorg_testset_save_CFLAGS="$CFLAGS"
14623
14624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14627 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14628 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14629 then :
14630 printf %s "(cached) " >&6
14631 else case e in #(
14632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 int i;
14635 _ACEOF
14636 if ac_fn_c_try_compile "$LINENO"
14637 then :
14638 xorg_cv_cc_flag_unknown_warning_option=yes
14639 else case e in #(
14640 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14641 esac
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14644 esac
14645 fi
14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14649 CFLAGS="$xorg_testset_save_CFLAGS"
14650 fi
14651
14652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14655 fi
14656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14660 then :
14661 printf %s "(cached) " >&6
14662 else case e in #(
14663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665 int i;
14666 _ACEOF
14667 if ac_fn_c_try_compile "$LINENO"
14668 then :
14669 xorg_cv_cc_flag_unused_command_line_argument=yes
14670 else case e in #(
14671 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14672 esac
14673 fi
14674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14675 esac
14676 fi
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14680 CFLAGS="$xorg_testset_save_CFLAGS"
14681 fi
14682
14683 found="no"
14684
14685 if test $found = "no" ; then
14686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14688 fi
14689
14690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14692 fi
14693
14694 CFLAGS="$CFLAGS -Wstrict-prototypes"
14695
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14697 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14698 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14699 if eval test \${$cacheid+y}
14700 then :
14701 printf %s "(cached) " >&6
14702 else case e in #(
14703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705 int i;
14706 int
14707 main (void)
14708 {
14709
14710 ;
14711 return 0;
14712 }
14713 _ACEOF
14714 if ac_fn_c_try_link "$LINENO"
14715 then :
14716 eval $cacheid=yes
14717 else case e in #(
14718 e) eval $cacheid=no ;;
14719 esac
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14722 conftest$ac_exeext conftest.$ac_ext ;;
14723 esac
14724 fi
14725
14726
14727 CFLAGS="$xorg_testset_save_CFLAGS"
14728
14729 eval supported=\$$cacheid
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14731 printf "%s\n" "$supported" >&6; }
14732 if test "$supported" = "yes" ; then
14733 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14734 found="yes"
14735 fi
14736 fi
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752 xorg_testset_save_CFLAGS="$CFLAGS"
14753
14754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14758 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14759 then :
14760 printf %s "(cached) " >&6
14761 else case e in #(
14762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 int i;
14765 _ACEOF
14766 if ac_fn_c_try_compile "$LINENO"
14767 then :
14768 xorg_cv_cc_flag_unknown_warning_option=yes
14769 else case e in #(
14770 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14771 esac
14772 fi
14773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14774 esac
14775 fi
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14777 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14779 CFLAGS="$xorg_testset_save_CFLAGS"
14780 fi
14781
14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14785 fi
14786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14790 then :
14791 printf %s "(cached) " >&6
14792 else case e in #(
14793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14795 int i;
14796 _ACEOF
14797 if ac_fn_c_try_compile "$LINENO"
14798 then :
14799 xorg_cv_cc_flag_unused_command_line_argument=yes
14800 else case e in #(
14801 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14802 esac
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14805 esac
14806 fi
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14810 CFLAGS="$xorg_testset_save_CFLAGS"
14811 fi
14812
14813 found="no"
14814
14815 if test $found = "no" ; then
14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818 fi
14819
14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14822 fi
14823
14824 CFLAGS="$CFLAGS -Wmissing-prototypes"
14825
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14827 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14828 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14829 if eval test \${$cacheid+y}
14830 then :
14831 printf %s "(cached) " >&6
14832 else case e in #(
14833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 int i;
14836 int
14837 main (void)
14838 {
14839
14840 ;
14841 return 0;
14842 }
14843 _ACEOF
14844 if ac_fn_c_try_link "$LINENO"
14845 then :
14846 eval $cacheid=yes
14847 else case e in #(
14848 e) eval $cacheid=no ;;
14849 esac
14850 fi
14851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14852 conftest$ac_exeext conftest.$ac_ext ;;
14853 esac
14854 fi
14855
14856
14857 CFLAGS="$xorg_testset_save_CFLAGS"
14858
14859 eval supported=\$$cacheid
14860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14861 printf "%s\n" "$supported" >&6; }
14862 if test "$supported" = "yes" ; then
14863 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14864 found="yes"
14865 fi
14866 fi
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882 xorg_testset_save_CFLAGS="$CFLAGS"
14883
14884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14889 then :
14890 printf %s "(cached) " >&6
14891 else case e in #(
14892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14894 int i;
14895 _ACEOF
14896 if ac_fn_c_try_compile "$LINENO"
14897 then :
14898 xorg_cv_cc_flag_unknown_warning_option=yes
14899 else case e in #(
14900 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14901 esac
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14904 esac
14905 fi
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14909 CFLAGS="$xorg_testset_save_CFLAGS"
14910 fi
14911
14912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14915 fi
14916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14920 then :
14921 printf %s "(cached) " >&6
14922 else case e in #(
14923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14925 int i;
14926 _ACEOF
14927 if ac_fn_c_try_compile "$LINENO"
14928 then :
14929 xorg_cv_cc_flag_unused_command_line_argument=yes
14930 else case e in #(
14931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14932 esac
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14935 esac
14936 fi
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14940 CFLAGS="$xorg_testset_save_CFLAGS"
14941 fi
14942
14943 found="no"
14944
14945 if test $found = "no" ; then
14946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948 fi
14949
14950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14952 fi
14953
14954 CFLAGS="$CFLAGS -Wnested-externs"
14955
14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14957 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14958 cacheid=xorg_cv_cc_flag__Wnested_externs
14959 if eval test \${$cacheid+y}
14960 then :
14961 printf %s "(cached) " >&6
14962 else case e in #(
14963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14965 int i;
14966 int
14967 main (void)
14968 {
14969
14970 ;
14971 return 0;
14972 }
14973 _ACEOF
14974 if ac_fn_c_try_link "$LINENO"
14975 then :
14976 eval $cacheid=yes
14977 else case e in #(
14978 e) eval $cacheid=no ;;
14979 esac
14980 fi
14981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14982 conftest$ac_exeext conftest.$ac_ext ;;
14983 esac
14984 fi
14985
14986
14987 CFLAGS="$xorg_testset_save_CFLAGS"
14988
14989 eval supported=\$$cacheid
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14991 printf "%s\n" "$supported" >&6; }
14992 if test "$supported" = "yes" ; then
14993 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14994 found="yes"
14995 fi
14996 fi
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012 xorg_testset_save_CFLAGS="$CFLAGS"
15013
15014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15019 then :
15020 printf %s "(cached) " >&6
15021 else case e in #(
15022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024 int i;
15025 _ACEOF
15026 if ac_fn_c_try_compile "$LINENO"
15027 then :
15028 xorg_cv_cc_flag_unknown_warning_option=yes
15029 else case e in #(
15030 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15031 esac
15032 fi
15033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15034 esac
15035 fi
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15039 CFLAGS="$xorg_testset_save_CFLAGS"
15040 fi
15041
15042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15045 fi
15046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15050 then :
15051 printf %s "(cached) " >&6
15052 else case e in #(
15053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055 int i;
15056 _ACEOF
15057 if ac_fn_c_try_compile "$LINENO"
15058 then :
15059 xorg_cv_cc_flag_unused_command_line_argument=yes
15060 else case e in #(
15061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15062 esac
15063 fi
15064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15065 esac
15066 fi
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15070 CFLAGS="$xorg_testset_save_CFLAGS"
15071 fi
15072
15073 found="no"
15074
15075 if test $found = "no" ; then
15076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15078 fi
15079
15080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15082 fi
15083
15084 CFLAGS="$CFLAGS -Wbad-function-cast"
15085
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15087 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15088 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15089 if eval test \${$cacheid+y}
15090 then :
15091 printf %s "(cached) " >&6
15092 else case e in #(
15093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 int i;
15096 int
15097 main (void)
15098 {
15099
15100 ;
15101 return 0;
15102 }
15103 _ACEOF
15104 if ac_fn_c_try_link "$LINENO"
15105 then :
15106 eval $cacheid=yes
15107 else case e in #(
15108 e) eval $cacheid=no ;;
15109 esac
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15112 conftest$ac_exeext conftest.$ac_ext ;;
15113 esac
15114 fi
15115
15116
15117 CFLAGS="$xorg_testset_save_CFLAGS"
15118
15119 eval supported=\$$cacheid
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15121 printf "%s\n" "$supported" >&6; }
15122 if test "$supported" = "yes" ; then
15123 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15124 found="yes"
15125 fi
15126 fi
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142 xorg_testset_save_CFLAGS="$CFLAGS"
15143
15144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15148 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15149 then :
15150 printf %s "(cached) " >&6
15151 else case e in #(
15152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 int i;
15155 _ACEOF
15156 if ac_fn_c_try_compile "$LINENO"
15157 then :
15158 xorg_cv_cc_flag_unknown_warning_option=yes
15159 else case e in #(
15160 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15161 esac
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15164 esac
15165 fi
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15167 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15169 CFLAGS="$xorg_testset_save_CFLAGS"
15170 fi
15171
15172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15175 fi
15176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15178 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15179 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15180 then :
15181 printf %s "(cached) " >&6
15182 else case e in #(
15183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15185 int i;
15186 _ACEOF
15187 if ac_fn_c_try_compile "$LINENO"
15188 then :
15189 xorg_cv_cc_flag_unused_command_line_argument=yes
15190 else case e in #(
15191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15192 esac
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15195 esac
15196 fi
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15200 CFLAGS="$xorg_testset_save_CFLAGS"
15201 fi
15202
15203 found="no"
15204
15205 if test $found = "no" ; then
15206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15208 fi
15209
15210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15212 fi
15213
15214 CFLAGS="$CFLAGS -Wold-style-definition"
15215
15216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15217 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15218 cacheid=xorg_cv_cc_flag__Wold_style_definition
15219 if eval test \${$cacheid+y}
15220 then :
15221 printf %s "(cached) " >&6
15222 else case e in #(
15223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 int i;
15226 int
15227 main (void)
15228 {
15229
15230 ;
15231 return 0;
15232 }
15233 _ACEOF
15234 if ac_fn_c_try_link "$LINENO"
15235 then :
15236 eval $cacheid=yes
15237 else case e in #(
15238 e) eval $cacheid=no ;;
15239 esac
15240 fi
15241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15242 conftest$ac_exeext conftest.$ac_ext ;;
15243 esac
15244 fi
15245
15246
15247 CFLAGS="$xorg_testset_save_CFLAGS"
15248
15249 eval supported=\$$cacheid
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15251 printf "%s\n" "$supported" >&6; }
15252 if test "$supported" = "yes" ; then
15253 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15254 found="yes"
15255 fi
15256 fi
15257
15258 if test $found = "no" ; then
15259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15261 fi
15262
15263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15265 fi
15266
15267 CFLAGS="$CFLAGS -fd"
15268
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15270 printf %s "checking if $CC supports -fd... " >&6; }
15271 cacheid=xorg_cv_cc_flag__fd
15272 if eval test \${$cacheid+y}
15273 then :
15274 printf %s "(cached) " >&6
15275 else case e in #(
15276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278 int i;
15279 int
15280 main (void)
15281 {
15282
15283 ;
15284 return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_c_try_link "$LINENO"
15288 then :
15289 eval $cacheid=yes
15290 else case e in #(
15291 e) eval $cacheid=no ;;
15292 esac
15293 fi
15294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15295 conftest$ac_exeext conftest.$ac_ext ;;
15296 esac
15297 fi
15298
15299
15300 CFLAGS="$xorg_testset_save_CFLAGS"
15301
15302 eval supported=\$$cacheid
15303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15304 printf "%s\n" "$supported" >&6; }
15305 if test "$supported" = "yes" ; then
15306 BASE_CFLAGS="$BASE_CFLAGS -fd"
15307 found="yes"
15308 fi
15309 fi
15310
15311
15312
15313
15314
15315 # This chunk adds additional warnings that could catch undesired effects.
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329 xorg_testset_save_CFLAGS="$CFLAGS"
15330
15331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15334 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15335 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15336 then :
15337 printf %s "(cached) " >&6
15338 else case e in #(
15339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 int i;
15342 _ACEOF
15343 if ac_fn_c_try_compile "$LINENO"
15344 then :
15345 xorg_cv_cc_flag_unknown_warning_option=yes
15346 else case e in #(
15347 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15348 esac
15349 fi
15350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15351 esac
15352 fi
15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15356 CFLAGS="$xorg_testset_save_CFLAGS"
15357 fi
15358
15359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15362 fi
15363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15367 then :
15368 printf %s "(cached) " >&6
15369 else case e in #(
15370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 int i;
15373 _ACEOF
15374 if ac_fn_c_try_compile "$LINENO"
15375 then :
15376 xorg_cv_cc_flag_unused_command_line_argument=yes
15377 else case e in #(
15378 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15379 esac
15380 fi
15381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15382 esac
15383 fi
15384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15385 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15387 CFLAGS="$xorg_testset_save_CFLAGS"
15388 fi
15389
15390 found="no"
15391
15392 if test $found = "no" ; then
15393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15395 fi
15396
15397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15399 fi
15400
15401 CFLAGS="$CFLAGS -Wunused"
15402
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15404 printf %s "checking if $CC supports -Wunused... " >&6; }
15405 cacheid=xorg_cv_cc_flag__Wunused
15406 if eval test \${$cacheid+y}
15407 then :
15408 printf %s "(cached) " >&6
15409 else case e in #(
15410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 int i;
15413 int
15414 main (void)
15415 {
15416
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"
15422 then :
15423 eval $cacheid=yes
15424 else case e in #(
15425 e) eval $cacheid=no ;;
15426 esac
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15429 conftest$ac_exeext conftest.$ac_ext ;;
15430 esac
15431 fi
15432
15433
15434 CFLAGS="$xorg_testset_save_CFLAGS"
15435
15436 eval supported=\$$cacheid
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15438 printf "%s\n" "$supported" >&6; }
15439 if test "$supported" = "yes" ; then
15440 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15441 found="yes"
15442 fi
15443 fi
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459 xorg_testset_save_CFLAGS="$CFLAGS"
15460
15461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15466 then :
15467 printf %s "(cached) " >&6
15468 else case e in #(
15469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471 int i;
15472 _ACEOF
15473 if ac_fn_c_try_compile "$LINENO"
15474 then :
15475 xorg_cv_cc_flag_unknown_warning_option=yes
15476 else case e in #(
15477 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15478 esac
15479 fi
15480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15481 esac
15482 fi
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15486 CFLAGS="$xorg_testset_save_CFLAGS"
15487 fi
15488
15489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15492 fi
15493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15497 then :
15498 printf %s "(cached) " >&6
15499 else case e in #(
15500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502 int i;
15503 _ACEOF
15504 if ac_fn_c_try_compile "$LINENO"
15505 then :
15506 xorg_cv_cc_flag_unused_command_line_argument=yes
15507 else case e in #(
15508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15509 esac
15510 fi
15511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15512 esac
15513 fi
15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15517 CFLAGS="$xorg_testset_save_CFLAGS"
15518 fi
15519
15520 found="no"
15521
15522 if test $found = "no" ; then
15523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525 fi
15526
15527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15529 fi
15530
15531 CFLAGS="$CFLAGS -Wuninitialized"
15532
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15534 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15535 cacheid=xorg_cv_cc_flag__Wuninitialized
15536 if eval test \${$cacheid+y}
15537 then :
15538 printf %s "(cached) " >&6
15539 else case e in #(
15540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542 int i;
15543 int
15544 main (void)
15545 {
15546
15547 ;
15548 return 0;
15549 }
15550 _ACEOF
15551 if ac_fn_c_try_link "$LINENO"
15552 then :
15553 eval $cacheid=yes
15554 else case e in #(
15555 e) eval $cacheid=no ;;
15556 esac
15557 fi
15558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15559 conftest$ac_exeext conftest.$ac_ext ;;
15560 esac
15561 fi
15562
15563
15564 CFLAGS="$xorg_testset_save_CFLAGS"
15565
15566 eval supported=\$$cacheid
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15568 printf "%s\n" "$supported" >&6; }
15569 if test "$supported" = "yes" ; then
15570 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15571 found="yes"
15572 fi
15573 fi
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589 xorg_testset_save_CFLAGS="$CFLAGS"
15590
15591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15595 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15596 then :
15597 printf %s "(cached) " >&6
15598 else case e in #(
15599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 int i;
15602 _ACEOF
15603 if ac_fn_c_try_compile "$LINENO"
15604 then :
15605 xorg_cv_cc_flag_unknown_warning_option=yes
15606 else case e in #(
15607 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15608 esac
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15611 esac
15612 fi
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15614 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15616 CFLAGS="$xorg_testset_save_CFLAGS"
15617 fi
15618
15619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15622 fi
15623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15625 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15626 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15627 then :
15628 printf %s "(cached) " >&6
15629 else case e in #(
15630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 int i;
15633 _ACEOF
15634 if ac_fn_c_try_compile "$LINENO"
15635 then :
15636 xorg_cv_cc_flag_unused_command_line_argument=yes
15637 else case e in #(
15638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15639 esac
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15642 esac
15643 fi
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15647 CFLAGS="$xorg_testset_save_CFLAGS"
15648 fi
15649
15650 found="no"
15651
15652 if test $found = "no" ; then
15653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15655 fi
15656
15657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15659 fi
15660
15661 CFLAGS="$CFLAGS -Wshadow"
15662
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15664 printf %s "checking if $CC supports -Wshadow... " >&6; }
15665 cacheid=xorg_cv_cc_flag__Wshadow
15666 if eval test \${$cacheid+y}
15667 then :
15668 printf %s "(cached) " >&6
15669 else case e in #(
15670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15672 int i;
15673 int
15674 main (void)
15675 {
15676
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 if ac_fn_c_try_link "$LINENO"
15682 then :
15683 eval $cacheid=yes
15684 else case e in #(
15685 e) eval $cacheid=no ;;
15686 esac
15687 fi
15688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15689 conftest$ac_exeext conftest.$ac_ext ;;
15690 esac
15691 fi
15692
15693
15694 CFLAGS="$xorg_testset_save_CFLAGS"
15695
15696 eval supported=\$$cacheid
15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15698 printf "%s\n" "$supported" >&6; }
15699 if test "$supported" = "yes" ; then
15700 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15701 found="yes"
15702 fi
15703 fi
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719 xorg_testset_save_CFLAGS="$CFLAGS"
15720
15721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15724 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15725 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15726 then :
15727 printf %s "(cached) " >&6
15728 else case e in #(
15729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15731 int i;
15732 _ACEOF
15733 if ac_fn_c_try_compile "$LINENO"
15734 then :
15735 xorg_cv_cc_flag_unknown_warning_option=yes
15736 else case e in #(
15737 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15738 esac
15739 fi
15740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15741 esac
15742 fi
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15744 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15746 CFLAGS="$xorg_testset_save_CFLAGS"
15747 fi
15748
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15752 fi
15753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15757 then :
15758 printf %s "(cached) " >&6
15759 else case e in #(
15760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 int i;
15763 _ACEOF
15764 if ac_fn_c_try_compile "$LINENO"
15765 then :
15766 xorg_cv_cc_flag_unused_command_line_argument=yes
15767 else case e in #(
15768 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15769 esac
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15772 esac
15773 fi
15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15777 CFLAGS="$xorg_testset_save_CFLAGS"
15778 fi
15779
15780 found="no"
15781
15782 if test $found = "no" ; then
15783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785 fi
15786
15787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15789 fi
15790
15791 CFLAGS="$CFLAGS -Wmissing-noreturn"
15792
15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15794 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15795 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15796 if eval test \${$cacheid+y}
15797 then :
15798 printf %s "(cached) " >&6
15799 else case e in #(
15800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802 int i;
15803 int
15804 main (void)
15805 {
15806
15807 ;
15808 return 0;
15809 }
15810 _ACEOF
15811 if ac_fn_c_try_link "$LINENO"
15812 then :
15813 eval $cacheid=yes
15814 else case e in #(
15815 e) eval $cacheid=no ;;
15816 esac
15817 fi
15818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15819 conftest$ac_exeext conftest.$ac_ext ;;
15820 esac
15821 fi
15822
15823
15824 CFLAGS="$xorg_testset_save_CFLAGS"
15825
15826 eval supported=\$$cacheid
15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15828 printf "%s\n" "$supported" >&6; }
15829 if test "$supported" = "yes" ; then
15830 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15831 found="yes"
15832 fi
15833 fi
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849 xorg_testset_save_CFLAGS="$CFLAGS"
15850
15851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15854 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15855 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15856 then :
15857 printf %s "(cached) " >&6
15858 else case e in #(
15859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 int i;
15862 _ACEOF
15863 if ac_fn_c_try_compile "$LINENO"
15864 then :
15865 xorg_cv_cc_flag_unknown_warning_option=yes
15866 else case e in #(
15867 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15868 esac
15869 fi
15870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15871 esac
15872 fi
15873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15874 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15876 CFLAGS="$xorg_testset_save_CFLAGS"
15877 fi
15878
15879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15882 fi
15883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15887 then :
15888 printf %s "(cached) " >&6
15889 else case e in #(
15890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 int i;
15893 _ACEOF
15894 if ac_fn_c_try_compile "$LINENO"
15895 then :
15896 xorg_cv_cc_flag_unused_command_line_argument=yes
15897 else case e in #(
15898 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15899 esac
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15902 esac
15903 fi
15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15905 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15907 CFLAGS="$xorg_testset_save_CFLAGS"
15908 fi
15909
15910 found="no"
15911
15912 if test $found = "no" ; then
15913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15915 fi
15916
15917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15919 fi
15920
15921 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15922
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15924 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15925 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15926 if eval test \${$cacheid+y}
15927 then :
15928 printf %s "(cached) " >&6
15929 else case e in #(
15930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 int i;
15933 int
15934 main (void)
15935 {
15936
15937 ;
15938 return 0;
15939 }
15940 _ACEOF
15941 if ac_fn_c_try_link "$LINENO"
15942 then :
15943 eval $cacheid=yes
15944 else case e in #(
15945 e) eval $cacheid=no ;;
15946 esac
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15949 conftest$ac_exeext conftest.$ac_ext ;;
15950 esac
15951 fi
15952
15953
15954 CFLAGS="$xorg_testset_save_CFLAGS"
15955
15956 eval supported=\$$cacheid
15957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15958 printf "%s\n" "$supported" >&6; }
15959 if test "$supported" = "yes" ; then
15960 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15961 found="yes"
15962 fi
15963 fi
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979 xorg_testset_save_CFLAGS="$CFLAGS"
15980
15981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15986 then :
15987 printf %s "(cached) " >&6
15988 else case e in #(
15989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991 int i;
15992 _ACEOF
15993 if ac_fn_c_try_compile "$LINENO"
15994 then :
15995 xorg_cv_cc_flag_unknown_warning_option=yes
15996 else case e in #(
15997 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15998 esac
15999 fi
16000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16001 esac
16002 fi
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16006 CFLAGS="$xorg_testset_save_CFLAGS"
16007 fi
16008
16009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16012 fi
16013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16017 then :
16018 printf %s "(cached) " >&6
16019 else case e in #(
16020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 int i;
16023 _ACEOF
16024 if ac_fn_c_try_compile "$LINENO"
16025 then :
16026 xorg_cv_cc_flag_unused_command_line_argument=yes
16027 else case e in #(
16028 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16029 esac
16030 fi
16031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16032 esac
16033 fi
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16035 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16037 CFLAGS="$xorg_testset_save_CFLAGS"
16038 fi
16039
16040 found="no"
16041
16042 if test $found = "no" ; then
16043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045 fi
16046
16047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16049 fi
16050
16051 CFLAGS="$CFLAGS -Wredundant-decls"
16052
16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16054 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16055 cacheid=xorg_cv_cc_flag__Wredundant_decls
16056 if eval test \${$cacheid+y}
16057 then :
16058 printf %s "(cached) " >&6
16059 else case e in #(
16060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 int i;
16063 int
16064 main (void)
16065 {
16066
16067 ;
16068 return 0;
16069 }
16070 _ACEOF
16071 if ac_fn_c_try_link "$LINENO"
16072 then :
16073 eval $cacheid=yes
16074 else case e in #(
16075 e) eval $cacheid=no ;;
16076 esac
16077 fi
16078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16079 conftest$ac_exeext conftest.$ac_ext ;;
16080 esac
16081 fi
16082
16083
16084 CFLAGS="$xorg_testset_save_CFLAGS"
16085
16086 eval supported=\$$cacheid
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16088 printf "%s\n" "$supported" >&6; }
16089 if test "$supported" = "yes" ; then
16090 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16091 found="yes"
16092 fi
16093 fi
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109 xorg_testset_save_CFLAGS="$CFLAGS"
16110
16111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16116 then :
16117 printf %s "(cached) " >&6
16118 else case e in #(
16119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121 int i;
16122 _ACEOF
16123 if ac_fn_c_try_compile "$LINENO"
16124 then :
16125 xorg_cv_cc_flag_unknown_warning_option=yes
16126 else case e in #(
16127 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16128 esac
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16131 esac
16132 fi
16133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16136 CFLAGS="$xorg_testset_save_CFLAGS"
16137 fi
16138
16139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16142 fi
16143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16147 then :
16148 printf %s "(cached) " >&6
16149 else case e in #(
16150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16152 int i;
16153 _ACEOF
16154 if ac_fn_c_try_compile "$LINENO"
16155 then :
16156 xorg_cv_cc_flag_unused_command_line_argument=yes
16157 else case e in #(
16158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16159 esac
16160 fi
16161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16162 esac
16163 fi
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16167 CFLAGS="$xorg_testset_save_CFLAGS"
16168 fi
16169
16170 found="no"
16171
16172 if test $found = "no" ; then
16173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175 fi
16176
16177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16179 fi
16180
16181 CFLAGS="$CFLAGS -Wlogical-op"
16182
16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16184 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16185 cacheid=xorg_cv_cc_flag__Wlogical_op
16186 if eval test \${$cacheid+y}
16187 then :
16188 printf %s "(cached) " >&6
16189 else case e in #(
16190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 int i;
16193 int
16194 main (void)
16195 {
16196
16197 ;
16198 return 0;
16199 }
16200 _ACEOF
16201 if ac_fn_c_try_link "$LINENO"
16202 then :
16203 eval $cacheid=yes
16204 else case e in #(
16205 e) eval $cacheid=no ;;
16206 esac
16207 fi
16208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16209 conftest$ac_exeext conftest.$ac_ext ;;
16210 esac
16211 fi
16212
16213
16214 CFLAGS="$xorg_testset_save_CFLAGS"
16215
16216 eval supported=\$$cacheid
16217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16218 printf "%s\n" "$supported" >&6; }
16219 if test "$supported" = "yes" ; then
16220 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16221 found="yes"
16222 fi
16223 fi
16224
16225
16226
16227 # These are currently disabled because they are noisy. They will be enabled
16228 # in the future once the codebase is sufficiently modernized to silence
16229 # them. For now, I don't want them to drown out the other warnings.
16230 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16231 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16232 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16233
16234 # Turn some warnings into errors, so we don't accidentally get successful builds
16235 # when there are problems that should be fixed.
16236
16237 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251 xorg_testset_save_CFLAGS="$CFLAGS"
16252
16253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16258 then :
16259 printf %s "(cached) " >&6
16260 else case e in #(
16261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 int i;
16264 _ACEOF
16265 if ac_fn_c_try_compile "$LINENO"
16266 then :
16267 xorg_cv_cc_flag_unknown_warning_option=yes
16268 else case e in #(
16269 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16270 esac
16271 fi
16272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16273 esac
16274 fi
16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16278 CFLAGS="$xorg_testset_save_CFLAGS"
16279 fi
16280
16281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16284 fi
16285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16289 then :
16290 printf %s "(cached) " >&6
16291 else case e in #(
16292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 int i;
16295 _ACEOF
16296 if ac_fn_c_try_compile "$LINENO"
16297 then :
16298 xorg_cv_cc_flag_unused_command_line_argument=yes
16299 else case e in #(
16300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16301 esac
16302 fi
16303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16304 esac
16305 fi
16306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16307 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16309 CFLAGS="$xorg_testset_save_CFLAGS"
16310 fi
16311
16312 found="no"
16313
16314 if test $found = "no" ; then
16315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16317 fi
16318
16319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16321 fi
16322
16323 CFLAGS="$CFLAGS -Werror=implicit"
16324
16325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16326 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16327 cacheid=xorg_cv_cc_flag__Werror_implicit
16328 if eval test \${$cacheid+y}
16329 then :
16330 printf %s "(cached) " >&6
16331 else case e in #(
16332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 int i;
16335 int
16336 main (void)
16337 {
16338
16339 ;
16340 return 0;
16341 }
16342 _ACEOF
16343 if ac_fn_c_try_link "$LINENO"
16344 then :
16345 eval $cacheid=yes
16346 else case e in #(
16347 e) eval $cacheid=no ;;
16348 esac
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16351 conftest$ac_exeext conftest.$ac_ext ;;
16352 esac
16353 fi
16354
16355
16356 CFLAGS="$xorg_testset_save_CFLAGS"
16357
16358 eval supported=\$$cacheid
16359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16360 printf "%s\n" "$supported" >&6; }
16361 if test "$supported" = "yes" ; then
16362 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16363 found="yes"
16364 fi
16365 fi
16366
16367 if test $found = "no" ; then
16368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16370 fi
16371
16372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16374 fi
16375
16376 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16377
16378 { 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
16379 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16380 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16381 if eval test \${$cacheid+y}
16382 then :
16383 printf %s "(cached) " >&6
16384 else case e in #(
16385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 int i;
16388 int
16389 main (void)
16390 {
16391
16392 ;
16393 return 0;
16394 }
16395 _ACEOF
16396 if ac_fn_c_try_link "$LINENO"
16397 then :
16398 eval $cacheid=yes
16399 else case e in #(
16400 e) eval $cacheid=no ;;
16401 esac
16402 fi
16403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16404 conftest$ac_exeext conftest.$ac_ext ;;
16405 esac
16406 fi
16407
16408
16409 CFLAGS="$xorg_testset_save_CFLAGS"
16410
16411 eval supported=\$$cacheid
16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16413 printf "%s\n" "$supported" >&6; }
16414 if test "$supported" = "yes" ; then
16415 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16416 found="yes"
16417 fi
16418 fi
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434 xorg_testset_save_CFLAGS="$CFLAGS"
16435
16436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16439 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16440 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16441 then :
16442 printf %s "(cached) " >&6
16443 else case e in #(
16444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16446 int i;
16447 _ACEOF
16448 if ac_fn_c_try_compile "$LINENO"
16449 then :
16450 xorg_cv_cc_flag_unknown_warning_option=yes
16451 else case e in #(
16452 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16453 esac
16454 fi
16455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16456 esac
16457 fi
16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16459 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16461 CFLAGS="$xorg_testset_save_CFLAGS"
16462 fi
16463
16464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16467 fi
16468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16470 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16471 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16472 then :
16473 printf %s "(cached) " >&6
16474 else case e in #(
16475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 int i;
16478 _ACEOF
16479 if ac_fn_c_try_compile "$LINENO"
16480 then :
16481 xorg_cv_cc_flag_unused_command_line_argument=yes
16482 else case e in #(
16483 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16484 esac
16485 fi
16486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16487 esac
16488 fi
16489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16490 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16492 CFLAGS="$xorg_testset_save_CFLAGS"
16493 fi
16494
16495 found="no"
16496
16497 if test $found = "no" ; then
16498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16500 fi
16501
16502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16504 fi
16505
16506 CFLAGS="$CFLAGS -Werror=nonnull"
16507
16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16509 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16510 cacheid=xorg_cv_cc_flag__Werror_nonnull
16511 if eval test \${$cacheid+y}
16512 then :
16513 printf %s "(cached) " >&6
16514 else case e in #(
16515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h. */
16517 int i;
16518 int
16519 main (void)
16520 {
16521
16522 ;
16523 return 0;
16524 }
16525 _ACEOF
16526 if ac_fn_c_try_link "$LINENO"
16527 then :
16528 eval $cacheid=yes
16529 else case e in #(
16530 e) eval $cacheid=no ;;
16531 esac
16532 fi
16533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16534 conftest$ac_exeext conftest.$ac_ext ;;
16535 esac
16536 fi
16537
16538
16539 CFLAGS="$xorg_testset_save_CFLAGS"
16540
16541 eval supported=\$$cacheid
16542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16543 printf "%s\n" "$supported" >&6; }
16544 if test "$supported" = "yes" ; then
16545 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16546 found="yes"
16547 fi
16548 fi
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564 xorg_testset_save_CFLAGS="$CFLAGS"
16565
16566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16571 then :
16572 printf %s "(cached) " >&6
16573 else case e in #(
16574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16576 int i;
16577 _ACEOF
16578 if ac_fn_c_try_compile "$LINENO"
16579 then :
16580 xorg_cv_cc_flag_unknown_warning_option=yes
16581 else case e in #(
16582 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16583 esac
16584 fi
16585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16586 esac
16587 fi
16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16589 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16591 CFLAGS="$xorg_testset_save_CFLAGS"
16592 fi
16593
16594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597 fi
16598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16600 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16601 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16602 then :
16603 printf %s "(cached) " >&6
16604 else case e in #(
16605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16607 int i;
16608 _ACEOF
16609 if ac_fn_c_try_compile "$LINENO"
16610 then :
16611 xorg_cv_cc_flag_unused_command_line_argument=yes
16612 else case e in #(
16613 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16614 esac
16615 fi
16616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16617 esac
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=init-self"
16637
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16639 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16640 cacheid=xorg_cv_cc_flag__Werror_init_self
16641 if eval test \${$cacheid+y}
16642 then :
16643 printf %s "(cached) " >&6
16644 else case e in #(
16645 e) 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 case e in #(
16660 e) eval $cacheid=no ;;
16661 esac
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16664 conftest$ac_exeext conftest.$ac_ext ;;
16665 esac
16666 fi
16667
16668
16669 CFLAGS="$xorg_testset_save_CFLAGS"
16670
16671 eval supported=\$$cacheid
16672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16673 printf "%s\n" "$supported" >&6; }
16674 if test "$supported" = "yes" ; then
16675 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16676 found="yes"
16677 fi
16678 fi
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694 xorg_testset_save_CFLAGS="$CFLAGS"
16695
16696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16700 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16701 then :
16702 printf %s "(cached) " >&6
16703 else case e in #(
16704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706 int i;
16707 _ACEOF
16708 if ac_fn_c_try_compile "$LINENO"
16709 then :
16710 xorg_cv_cc_flag_unknown_warning_option=yes
16711 else case e in #(
16712 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16713 esac
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16716 esac
16717 fi
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16721 CFLAGS="$xorg_testset_save_CFLAGS"
16722 fi
16723
16724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727 fi
16728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16732 then :
16733 printf %s "(cached) " >&6
16734 else case e in #(
16735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737 int i;
16738 _ACEOF
16739 if ac_fn_c_try_compile "$LINENO"
16740 then :
16741 xorg_cv_cc_flag_unused_command_line_argument=yes
16742 else case e in #(
16743 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16744 esac
16745 fi
16746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16747 esac
16748 fi
16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16750 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16752 CFLAGS="$xorg_testset_save_CFLAGS"
16753 fi
16754
16755 found="no"
16756
16757 if test $found = "no" ; then
16758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16760 fi
16761
16762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16764 fi
16765
16766 CFLAGS="$CFLAGS -Werror=main"
16767
16768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16769 printf %s "checking if $CC supports -Werror=main... " >&6; }
16770 cacheid=xorg_cv_cc_flag__Werror_main
16771 if eval test \${$cacheid+y}
16772 then :
16773 printf %s "(cached) " >&6
16774 else case e in #(
16775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777 int i;
16778 int
16779 main (void)
16780 {
16781
16782 ;
16783 return 0;
16784 }
16785 _ACEOF
16786 if ac_fn_c_try_link "$LINENO"
16787 then :
16788 eval $cacheid=yes
16789 else case e in #(
16790 e) eval $cacheid=no ;;
16791 esac
16792 fi
16793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16794 conftest$ac_exeext conftest.$ac_ext ;;
16795 esac
16796 fi
16797
16798
16799 CFLAGS="$xorg_testset_save_CFLAGS"
16800
16801 eval supported=\$$cacheid
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16803 printf "%s\n" "$supported" >&6; }
16804 if test "$supported" = "yes" ; then
16805 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16806 found="yes"
16807 fi
16808 fi
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824 xorg_testset_save_CFLAGS="$CFLAGS"
16825
16826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16831 then :
16832 printf %s "(cached) " >&6
16833 else case e in #(
16834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16836 int i;
16837 _ACEOF
16838 if ac_fn_c_try_compile "$LINENO"
16839 then :
16840 xorg_cv_cc_flag_unknown_warning_option=yes
16841 else case e in #(
16842 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16843 esac
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16846 esac
16847 fi
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16851 CFLAGS="$xorg_testset_save_CFLAGS"
16852 fi
16853
16854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857 fi
16858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16862 then :
16863 printf %s "(cached) " >&6
16864 else case e in #(
16865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867 int i;
16868 _ACEOF
16869 if ac_fn_c_try_compile "$LINENO"
16870 then :
16871 xorg_cv_cc_flag_unused_command_line_argument=yes
16872 else case e in #(
16873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16874 esac
16875 fi
16876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16877 esac
16878 fi
16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16882 CFLAGS="$xorg_testset_save_CFLAGS"
16883 fi
16884
16885 found="no"
16886
16887 if test $found = "no" ; then
16888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16890 fi
16891
16892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16894 fi
16895
16896 CFLAGS="$CFLAGS -Werror=missing-braces"
16897
16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16899 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16900 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16901 if eval test \${$cacheid+y}
16902 then :
16903 printf %s "(cached) " >&6
16904 else case e in #(
16905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h. */
16907 int i;
16908 int
16909 main (void)
16910 {
16911
16912 ;
16913 return 0;
16914 }
16915 _ACEOF
16916 if ac_fn_c_try_link "$LINENO"
16917 then :
16918 eval $cacheid=yes
16919 else case e in #(
16920 e) eval $cacheid=no ;;
16921 esac
16922 fi
16923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16924 conftest$ac_exeext conftest.$ac_ext ;;
16925 esac
16926 fi
16927
16928
16929 CFLAGS="$xorg_testset_save_CFLAGS"
16930
16931 eval supported=\$$cacheid
16932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16933 printf "%s\n" "$supported" >&6; }
16934 if test "$supported" = "yes" ; then
16935 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16936 found="yes"
16937 fi
16938 fi
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954 xorg_testset_save_CFLAGS="$CFLAGS"
16955
16956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16961 then :
16962 printf %s "(cached) " >&6
16963 else case e in #(
16964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 int i;
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"
16969 then :
16970 xorg_cv_cc_flag_unknown_warning_option=yes
16971 else case e in #(
16972 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16973 esac
16974 fi
16975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16976 esac
16977 fi
16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16981 CFLAGS="$xorg_testset_save_CFLAGS"
16982 fi
16983
16984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16987 fi
16988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16992 then :
16993 printf %s "(cached) " >&6
16994 else case e in #(
16995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h. */
16997 int i;
16998 _ACEOF
16999 if ac_fn_c_try_compile "$LINENO"
17000 then :
17001 xorg_cv_cc_flag_unused_command_line_argument=yes
17002 else case e in #(
17003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17004 esac
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17007 esac
17008 fi
17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17012 CFLAGS="$xorg_testset_save_CFLAGS"
17013 fi
17014
17015 found="no"
17016
17017 if test $found = "no" ; then
17018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17020 fi
17021
17022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17024 fi
17025
17026 CFLAGS="$CFLAGS -Werror=sequence-point"
17027
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17029 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17030 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17031 if eval test \${$cacheid+y}
17032 then :
17033 printf %s "(cached) " >&6
17034 else case e in #(
17035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 int i;
17038 int
17039 main (void)
17040 {
17041
17042 ;
17043 return 0;
17044 }
17045 _ACEOF
17046 if ac_fn_c_try_link "$LINENO"
17047 then :
17048 eval $cacheid=yes
17049 else case e in #(
17050 e) eval $cacheid=no ;;
17051 esac
17052 fi
17053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17054 conftest$ac_exeext conftest.$ac_ext ;;
17055 esac
17056 fi
17057
17058
17059 CFLAGS="$xorg_testset_save_CFLAGS"
17060
17061 eval supported=\$$cacheid
17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17063 printf "%s\n" "$supported" >&6; }
17064 if test "$supported" = "yes" ; then
17065 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17066 found="yes"
17067 fi
17068 fi
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084 xorg_testset_save_CFLAGS="$CFLAGS"
17085
17086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17090 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17091 then :
17092 printf %s "(cached) " >&6
17093 else case e in #(
17094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17096 int i;
17097 _ACEOF
17098 if ac_fn_c_try_compile "$LINENO"
17099 then :
17100 xorg_cv_cc_flag_unknown_warning_option=yes
17101 else case e in #(
17102 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17103 esac
17104 fi
17105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17106 esac
17107 fi
17108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17111 CFLAGS="$xorg_testset_save_CFLAGS"
17112 fi
17113
17114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17117 fi
17118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17122 then :
17123 printf %s "(cached) " >&6
17124 else case e in #(
17125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127 int i;
17128 _ACEOF
17129 if ac_fn_c_try_compile "$LINENO"
17130 then :
17131 xorg_cv_cc_flag_unused_command_line_argument=yes
17132 else case e in #(
17133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17134 esac
17135 fi
17136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17137 esac
17138 fi
17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17142 CFLAGS="$xorg_testset_save_CFLAGS"
17143 fi
17144
17145 found="no"
17146
17147 if test $found = "no" ; then
17148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17150 fi
17151
17152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17154 fi
17155
17156 CFLAGS="$CFLAGS -Werror=return-type"
17157
17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17159 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17160 cacheid=xorg_cv_cc_flag__Werror_return_type
17161 if eval test \${$cacheid+y}
17162 then :
17163 printf %s "(cached) " >&6
17164 else case e in #(
17165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166 /* end confdefs.h. */
17167 int i;
17168 int
17169 main (void)
17170 {
17171
17172 ;
17173 return 0;
17174 }
17175 _ACEOF
17176 if ac_fn_c_try_link "$LINENO"
17177 then :
17178 eval $cacheid=yes
17179 else case e in #(
17180 e) eval $cacheid=no ;;
17181 esac
17182 fi
17183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17184 conftest$ac_exeext conftest.$ac_ext ;;
17185 esac
17186 fi
17187
17188
17189 CFLAGS="$xorg_testset_save_CFLAGS"
17190
17191 eval supported=\$$cacheid
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17193 printf "%s\n" "$supported" >&6; }
17194 if test "$supported" = "yes" ; then
17195 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17196 found="yes"
17197 fi
17198 fi
17199
17200 if test $found = "no" ; then
17201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17203 fi
17204
17205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17207 fi
17208
17209 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17210
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17212 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17213 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17214 if eval test \${$cacheid+y}
17215 then :
17216 printf %s "(cached) " >&6
17217 else case e in #(
17218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 int
17222 main (void)
17223 {
17224
17225 ;
17226 return 0;
17227 }
17228 _ACEOF
17229 if ac_fn_c_try_link "$LINENO"
17230 then :
17231 eval $cacheid=yes
17232 else case e in #(
17233 e) eval $cacheid=no ;;
17234 esac
17235 fi
17236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17237 conftest$ac_exeext conftest.$ac_ext ;;
17238 esac
17239 fi
17240
17241
17242 CFLAGS="$xorg_testset_save_CFLAGS"
17243
17244 eval supported=\$$cacheid
17245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17246 printf "%s\n" "$supported" >&6; }
17247 if test "$supported" = "yes" ; then
17248 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17249 found="yes"
17250 fi
17251 fi
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267 xorg_testset_save_CFLAGS="$CFLAGS"
17268
17269 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17272 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17273 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17274 then :
17275 printf %s "(cached) " >&6
17276 else case e in #(
17277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279 int i;
17280 _ACEOF
17281 if ac_fn_c_try_compile "$LINENO"
17282 then :
17283 xorg_cv_cc_flag_unknown_warning_option=yes
17284 else case e in #(
17285 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17286 esac
17287 fi
17288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17289 esac
17290 fi
17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17292 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17294 CFLAGS="$xorg_testset_save_CFLAGS"
17295 fi
17296
17297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17300 fi
17301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17303 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17304 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17305 then :
17306 printf %s "(cached) " >&6
17307 else case e in #(
17308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 int i;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"
17313 then :
17314 xorg_cv_cc_flag_unused_command_line_argument=yes
17315 else case e in #(
17316 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17317 esac
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17320 esac
17321 fi
17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17323 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17325 CFLAGS="$xorg_testset_save_CFLAGS"
17326 fi
17327
17328 found="no"
17329
17330 if test $found = "no" ; then
17331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333 fi
17334
17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17337 fi
17338
17339 CFLAGS="$CFLAGS -Werror=trigraphs"
17340
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17342 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17343 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17344 if eval test \${$cacheid+y}
17345 then :
17346 printf %s "(cached) " >&6
17347 else case e in #(
17348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 int i;
17351 int
17352 main (void)
17353 {
17354
17355 ;
17356 return 0;
17357 }
17358 _ACEOF
17359 if ac_fn_c_try_link "$LINENO"
17360 then :
17361 eval $cacheid=yes
17362 else case e in #(
17363 e) eval $cacheid=no ;;
17364 esac
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17367 conftest$ac_exeext conftest.$ac_ext ;;
17368 esac
17369 fi
17370
17371
17372 CFLAGS="$xorg_testset_save_CFLAGS"
17373
17374 eval supported=\$$cacheid
17375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17376 printf "%s\n" "$supported" >&6; }
17377 if test "$supported" = "yes" ; then
17378 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17379 found="yes"
17380 fi
17381 fi
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397 xorg_testset_save_CFLAGS="$CFLAGS"
17398
17399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17404 then :
17405 printf %s "(cached) " >&6
17406 else case e in #(
17407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17409 int i;
17410 _ACEOF
17411 if ac_fn_c_try_compile "$LINENO"
17412 then :
17413 xorg_cv_cc_flag_unknown_warning_option=yes
17414 else case e in #(
17415 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17416 esac
17417 fi
17418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17419 esac
17420 fi
17421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17422 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17424 CFLAGS="$xorg_testset_save_CFLAGS"
17425 fi
17426
17427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17430 fi
17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17433 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17434 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17435 then :
17436 printf %s "(cached) " >&6
17437 else case e in #(
17438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17440 int i;
17441 _ACEOF
17442 if ac_fn_c_try_compile "$LINENO"
17443 then :
17444 xorg_cv_cc_flag_unused_command_line_argument=yes
17445 else case e in #(
17446 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17447 esac
17448 fi
17449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17450 esac
17451 fi
17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17453 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17455 CFLAGS="$xorg_testset_save_CFLAGS"
17456 fi
17457
17458 found="no"
17459
17460 if test $found = "no" ; then
17461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17463 fi
17464
17465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17467 fi
17468
17469 CFLAGS="$CFLAGS -Werror=array-bounds"
17470
17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17472 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17473 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17474 if eval test \${$cacheid+y}
17475 then :
17476 printf %s "(cached) " >&6
17477 else case e in #(
17478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 int i;
17481 int
17482 main (void)
17483 {
17484
17485 ;
17486 return 0;
17487 }
17488 _ACEOF
17489 if ac_fn_c_try_link "$LINENO"
17490 then :
17491 eval $cacheid=yes
17492 else case e in #(
17493 e) eval $cacheid=no ;;
17494 esac
17495 fi
17496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17497 conftest$ac_exeext conftest.$ac_ext ;;
17498 esac
17499 fi
17500
17501
17502 CFLAGS="$xorg_testset_save_CFLAGS"
17503
17504 eval supported=\$$cacheid
17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17506 printf "%s\n" "$supported" >&6; }
17507 if test "$supported" = "yes" ; then
17508 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17509 found="yes"
17510 fi
17511 fi
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527 xorg_testset_save_CFLAGS="$CFLAGS"
17528
17529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17532 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17533 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17534 then :
17535 printf %s "(cached) " >&6
17536 else case e in #(
17537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539 int i;
17540 _ACEOF
17541 if ac_fn_c_try_compile "$LINENO"
17542 then :
17543 xorg_cv_cc_flag_unknown_warning_option=yes
17544 else case e in #(
17545 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17546 esac
17547 fi
17548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17549 esac
17550 fi
17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17552 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17554 CFLAGS="$xorg_testset_save_CFLAGS"
17555 fi
17556
17557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17560 fi
17561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17563 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17564 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17565 then :
17566 printf %s "(cached) " >&6
17567 else case e in #(
17568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17570 int i;
17571 _ACEOF
17572 if ac_fn_c_try_compile "$LINENO"
17573 then :
17574 xorg_cv_cc_flag_unused_command_line_argument=yes
17575 else case e in #(
17576 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17577 esac
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17580 esac
17581 fi
17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17583 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17585 CFLAGS="$xorg_testset_save_CFLAGS"
17586 fi
17587
17588 found="no"
17589
17590 if test $found = "no" ; then
17591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17593 fi
17594
17595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17597 fi
17598
17599 CFLAGS="$CFLAGS -Werror=write-strings"
17600
17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17602 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17603 cacheid=xorg_cv_cc_flag__Werror_write_strings
17604 if eval test \${$cacheid+y}
17605 then :
17606 printf %s "(cached) " >&6
17607 else case e in #(
17608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 int i;
17611 int
17612 main (void)
17613 {
17614
17615 ;
17616 return 0;
17617 }
17618 _ACEOF
17619 if ac_fn_c_try_link "$LINENO"
17620 then :
17621 eval $cacheid=yes
17622 else case e in #(
17623 e) eval $cacheid=no ;;
17624 esac
17625 fi
17626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17627 conftest$ac_exeext conftest.$ac_ext ;;
17628 esac
17629 fi
17630
17631
17632 CFLAGS="$xorg_testset_save_CFLAGS"
17633
17634 eval supported=\$$cacheid
17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17636 printf "%s\n" "$supported" >&6; }
17637 if test "$supported" = "yes" ; then
17638 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17639 found="yes"
17640 fi
17641 fi
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657 xorg_testset_save_CFLAGS="$CFLAGS"
17658
17659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17662 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17663 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17664 then :
17665 printf %s "(cached) " >&6
17666 else case e in #(
17667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h. */
17669 int i;
17670 _ACEOF
17671 if ac_fn_c_try_compile "$LINENO"
17672 then :
17673 xorg_cv_cc_flag_unknown_warning_option=yes
17674 else case e in #(
17675 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17676 esac
17677 fi
17678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17679 esac
17680 fi
17681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17682 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17684 CFLAGS="$xorg_testset_save_CFLAGS"
17685 fi
17686
17687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17690 fi
17691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17693 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17694 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17695 then :
17696 printf %s "(cached) " >&6
17697 else case e in #(
17698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 int i;
17701 _ACEOF
17702 if ac_fn_c_try_compile "$LINENO"
17703 then :
17704 xorg_cv_cc_flag_unused_command_line_argument=yes
17705 else case e in #(
17706 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17707 esac
17708 fi
17709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17710 esac
17711 fi
17712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17713 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17715 CFLAGS="$xorg_testset_save_CFLAGS"
17716 fi
17717
17718 found="no"
17719
17720 if test $found = "no" ; then
17721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17723 fi
17724
17725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17727 fi
17728
17729 CFLAGS="$CFLAGS -Werror=address"
17730
17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17732 printf %s "checking if $CC supports -Werror=address... " >&6; }
17733 cacheid=xorg_cv_cc_flag__Werror_address
17734 if eval test \${$cacheid+y}
17735 then :
17736 printf %s "(cached) " >&6
17737 else case e in #(
17738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740 int i;
17741 int
17742 main (void)
17743 {
17744
17745 ;
17746 return 0;
17747 }
17748 _ACEOF
17749 if ac_fn_c_try_link "$LINENO"
17750 then :
17751 eval $cacheid=yes
17752 else case e in #(
17753 e) eval $cacheid=no ;;
17754 esac
17755 fi
17756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17757 conftest$ac_exeext conftest.$ac_ext ;;
17758 esac
17759 fi
17760
17761
17762 CFLAGS="$xorg_testset_save_CFLAGS"
17763
17764 eval supported=\$$cacheid
17765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17766 printf "%s\n" "$supported" >&6; }
17767 if test "$supported" = "yes" ; then
17768 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17769 found="yes"
17770 fi
17771 fi
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787 xorg_testset_save_CFLAGS="$CFLAGS"
17788
17789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17792 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17793 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17794 then :
17795 printf %s "(cached) " >&6
17796 else case e in #(
17797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 int i;
17800 _ACEOF
17801 if ac_fn_c_try_compile "$LINENO"
17802 then :
17803 xorg_cv_cc_flag_unknown_warning_option=yes
17804 else case e in #(
17805 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17806 esac
17807 fi
17808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17809 esac
17810 fi
17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17812 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17814 CFLAGS="$xorg_testset_save_CFLAGS"
17815 fi
17816
17817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17820 fi
17821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17823 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17824 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17825 then :
17826 printf %s "(cached) " >&6
17827 else case e in #(
17828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17829 /* end confdefs.h. */
17830 int i;
17831 _ACEOF
17832 if ac_fn_c_try_compile "$LINENO"
17833 then :
17834 xorg_cv_cc_flag_unused_command_line_argument=yes
17835 else case e in #(
17836 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17837 esac
17838 fi
17839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17840 esac
17841 fi
17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17845 CFLAGS="$xorg_testset_save_CFLAGS"
17846 fi
17847
17848 found="no"
17849
17850 if test $found = "no" ; then
17851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17853 fi
17854
17855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17857 fi
17858
17859 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17860
17861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17862 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17863 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17864 if eval test \${$cacheid+y}
17865 then :
17866 printf %s "(cached) " >&6
17867 else case e in #(
17868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870 int i;
17871 int
17872 main (void)
17873 {
17874
17875 ;
17876 return 0;
17877 }
17878 _ACEOF
17879 if ac_fn_c_try_link "$LINENO"
17880 then :
17881 eval $cacheid=yes
17882 else case e in #(
17883 e) eval $cacheid=no ;;
17884 esac
17885 fi
17886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17887 conftest$ac_exeext conftest.$ac_ext ;;
17888 esac
17889 fi
17890
17891
17892 CFLAGS="$xorg_testset_save_CFLAGS"
17893
17894 eval supported=\$$cacheid
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17896 printf "%s\n" "$supported" >&6; }
17897 if test "$supported" = "yes" ; then
17898 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17899 found="yes"
17900 fi
17901 fi
17902
17903 if test $found = "no" ; then
17904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17906 fi
17907
17908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17910 fi
17911
17912 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17913
17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17915 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17916 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17917 if eval test \${$cacheid+y}
17918 then :
17919 printf %s "(cached) " >&6
17920 else case e in #(
17921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17923 int i;
17924 int
17925 main (void)
17926 {
17927
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_c_try_link "$LINENO"
17933 then :
17934 eval $cacheid=yes
17935 else case e in #(
17936 e) eval $cacheid=no ;;
17937 esac
17938 fi
17939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17940 conftest$ac_exeext conftest.$ac_ext ;;
17941 esac
17942 fi
17943
17944
17945 CFLAGS="$xorg_testset_save_CFLAGS"
17946
17947 eval supported=\$$cacheid
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17949 printf "%s\n" "$supported" >&6; }
17950 if test "$supported" = "yes" ; then
17951 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17952 found="yes"
17953 fi
17954 fi
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970 xorg_testset_save_CFLAGS="$CFLAGS"
17971
17972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17975 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17976 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17977 then :
17978 printf %s "(cached) " >&6
17979 else case e in #(
17980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h. */
17982 int i;
17983 _ACEOF
17984 if ac_fn_c_try_compile "$LINENO"
17985 then :
17986 xorg_cv_cc_flag_unknown_warning_option=yes
17987 else case e in #(
17988 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17989 esac
17990 fi
17991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17992 esac
17993 fi
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17995 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17997 CFLAGS="$xorg_testset_save_CFLAGS"
17998 fi
17999
18000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18003 fi
18004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18006 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18007 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18008 then :
18009 printf %s "(cached) " >&6
18010 else case e in #(
18011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013 int i;
18014 _ACEOF
18015 if ac_fn_c_try_compile "$LINENO"
18016 then :
18017 xorg_cv_cc_flag_unused_command_line_argument=yes
18018 else case e in #(
18019 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18020 esac
18021 fi
18022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18023 esac
18024 fi
18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18028 CFLAGS="$xorg_testset_save_CFLAGS"
18029 fi
18030
18031 found="no"
18032
18033 if test $found = "no" ; then
18034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18036 fi
18037
18038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18040 fi
18041
18042 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18043
18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18045 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18046 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18047 if eval test \${$cacheid+y}
18048 then :
18049 printf %s "(cached) " >&6
18050 else case e in #(
18051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18053 int i;
18054 int
18055 main (void)
18056 {
18057
18058 ;
18059 return 0;
18060 }
18061 _ACEOF
18062 if ac_fn_c_try_link "$LINENO"
18063 then :
18064 eval $cacheid=yes
18065 else case e in #(
18066 e) eval $cacheid=no ;;
18067 esac
18068 fi
18069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18070 conftest$ac_exeext conftest.$ac_ext ;;
18071 esac
18072 fi
18073
18074
18075 CFLAGS="$xorg_testset_save_CFLAGS"
18076
18077 eval supported=\$$cacheid
18078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18079 printf "%s\n" "$supported" >&6; }
18080 if test "$supported" = "yes" ; then
18081 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18082 found="yes"
18083 fi
18084 fi
18085
18086 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18087 else
18088 { 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
18089 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;}
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103 xorg_testset_save_CFLAGS="$CFLAGS"
18104
18105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18109 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18110 then :
18111 printf %s "(cached) " >&6
18112 else case e in #(
18113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115 int i;
18116 _ACEOF
18117 if ac_fn_c_try_compile "$LINENO"
18118 then :
18119 xorg_cv_cc_flag_unknown_warning_option=yes
18120 else case e in #(
18121 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18122 esac
18123 fi
18124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18125 esac
18126 fi
18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18130 CFLAGS="$xorg_testset_save_CFLAGS"
18131 fi
18132
18133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18136 fi
18137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18141 then :
18142 printf %s "(cached) " >&6
18143 else case e in #(
18144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18146 int i;
18147 _ACEOF
18148 if ac_fn_c_try_compile "$LINENO"
18149 then :
18150 xorg_cv_cc_flag_unused_command_line_argument=yes
18151 else case e in #(
18152 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18153 esac
18154 fi
18155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18156 esac
18157 fi
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18159 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18161 CFLAGS="$xorg_testset_save_CFLAGS"
18162 fi
18163
18164 found="no"
18165
18166 if test $found = "no" ; then
18167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18169 fi
18170
18171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18173 fi
18174
18175 CFLAGS="$CFLAGS -Wimplicit"
18176
18177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18178 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18179 cacheid=xorg_cv_cc_flag__Wimplicit
18180 if eval test \${$cacheid+y}
18181 then :
18182 printf %s "(cached) " >&6
18183 else case e in #(
18184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18186 int i;
18187 int
18188 main (void)
18189 {
18190
18191 ;
18192 return 0;
18193 }
18194 _ACEOF
18195 if ac_fn_c_try_link "$LINENO"
18196 then :
18197 eval $cacheid=yes
18198 else case e in #(
18199 e) eval $cacheid=no ;;
18200 esac
18201 fi
18202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18203 conftest$ac_exeext conftest.$ac_ext ;;
18204 esac
18205 fi
18206
18207
18208 CFLAGS="$xorg_testset_save_CFLAGS"
18209
18210 eval supported=\$$cacheid
18211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18212 printf "%s\n" "$supported" >&6; }
18213 if test "$supported" = "yes" ; then
18214 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18215 found="yes"
18216 fi
18217 fi
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233 xorg_testset_save_CFLAGS="$CFLAGS"
18234
18235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18240 then :
18241 printf %s "(cached) " >&6
18242 else case e in #(
18243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18245 int i;
18246 _ACEOF
18247 if ac_fn_c_try_compile "$LINENO"
18248 then :
18249 xorg_cv_cc_flag_unknown_warning_option=yes
18250 else case e in #(
18251 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18252 esac
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18255 esac
18256 fi
18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18260 CFLAGS="$xorg_testset_save_CFLAGS"
18261 fi
18262
18263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18266 fi
18267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18271 then :
18272 printf %s "(cached) " >&6
18273 else case e in #(
18274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18276 int i;
18277 _ACEOF
18278 if ac_fn_c_try_compile "$LINENO"
18279 then :
18280 xorg_cv_cc_flag_unused_command_line_argument=yes
18281 else case e in #(
18282 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18283 esac
18284 fi
18285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18286 esac
18287 fi
18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18289 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18291 CFLAGS="$xorg_testset_save_CFLAGS"
18292 fi
18293
18294 found="no"
18295
18296 if test $found = "no" ; then
18297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18299 fi
18300
18301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18303 fi
18304
18305 CFLAGS="$CFLAGS -Wnonnull"
18306
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18308 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18309 cacheid=xorg_cv_cc_flag__Wnonnull
18310 if eval test \${$cacheid+y}
18311 then :
18312 printf %s "(cached) " >&6
18313 else case e in #(
18314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 int i;
18317 int
18318 main (void)
18319 {
18320
18321 ;
18322 return 0;
18323 }
18324 _ACEOF
18325 if ac_fn_c_try_link "$LINENO"
18326 then :
18327 eval $cacheid=yes
18328 else case e in #(
18329 e) eval $cacheid=no ;;
18330 esac
18331 fi
18332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18333 conftest$ac_exeext conftest.$ac_ext ;;
18334 esac
18335 fi
18336
18337
18338 CFLAGS="$xorg_testset_save_CFLAGS"
18339
18340 eval supported=\$$cacheid
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18342 printf "%s\n" "$supported" >&6; }
18343 if test "$supported" = "yes" ; then
18344 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18345 found="yes"
18346 fi
18347 fi
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363 xorg_testset_save_CFLAGS="$CFLAGS"
18364
18365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18368 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18369 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18370 then :
18371 printf %s "(cached) " >&6
18372 else case e in #(
18373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374 /* end confdefs.h. */
18375 int i;
18376 _ACEOF
18377 if ac_fn_c_try_compile "$LINENO"
18378 then :
18379 xorg_cv_cc_flag_unknown_warning_option=yes
18380 else case e in #(
18381 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18382 esac
18383 fi
18384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18385 esac
18386 fi
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18390 CFLAGS="$xorg_testset_save_CFLAGS"
18391 fi
18392
18393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18396 fi
18397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18401 then :
18402 printf %s "(cached) " >&6
18403 else case e in #(
18404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 int i;
18407 _ACEOF
18408 if ac_fn_c_try_compile "$LINENO"
18409 then :
18410 xorg_cv_cc_flag_unused_command_line_argument=yes
18411 else case e in #(
18412 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18413 esac
18414 fi
18415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18416 esac
18417 fi
18418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18419 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18421 CFLAGS="$xorg_testset_save_CFLAGS"
18422 fi
18423
18424 found="no"
18425
18426 if test $found = "no" ; then
18427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18429 fi
18430
18431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18433 fi
18434
18435 CFLAGS="$CFLAGS -Winit-self"
18436
18437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18438 printf %s "checking if $CC supports -Winit-self... " >&6; }
18439 cacheid=xorg_cv_cc_flag__Winit_self
18440 if eval test \${$cacheid+y}
18441 then :
18442 printf %s "(cached) " >&6
18443 else case e in #(
18444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18446 int i;
18447 int
18448 main (void)
18449 {
18450
18451 ;
18452 return 0;
18453 }
18454 _ACEOF
18455 if ac_fn_c_try_link "$LINENO"
18456 then :
18457 eval $cacheid=yes
18458 else case e in #(
18459 e) eval $cacheid=no ;;
18460 esac
18461 fi
18462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18463 conftest$ac_exeext conftest.$ac_ext ;;
18464 esac
18465 fi
18466
18467
18468 CFLAGS="$xorg_testset_save_CFLAGS"
18469
18470 eval supported=\$$cacheid
18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18472 printf "%s\n" "$supported" >&6; }
18473 if test "$supported" = "yes" ; then
18474 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18475 found="yes"
18476 fi
18477 fi
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493 xorg_testset_save_CFLAGS="$CFLAGS"
18494
18495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18499 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18500 then :
18501 printf %s "(cached) " >&6
18502 else case e in #(
18503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18505 int i;
18506 _ACEOF
18507 if ac_fn_c_try_compile "$LINENO"
18508 then :
18509 xorg_cv_cc_flag_unknown_warning_option=yes
18510 else case e in #(
18511 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18512 esac
18513 fi
18514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18515 esac
18516 fi
18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18518 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18520 CFLAGS="$xorg_testset_save_CFLAGS"
18521 fi
18522
18523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18526 fi
18527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18529 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18530 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18531 then :
18532 printf %s "(cached) " >&6
18533 else case e in #(
18534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536 int i;
18537 _ACEOF
18538 if ac_fn_c_try_compile "$LINENO"
18539 then :
18540 xorg_cv_cc_flag_unused_command_line_argument=yes
18541 else case e in #(
18542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18543 esac
18544 fi
18545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18546 esac
18547 fi
18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18551 CFLAGS="$xorg_testset_save_CFLAGS"
18552 fi
18553
18554 found="no"
18555
18556 if test $found = "no" ; then
18557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18559 fi
18560
18561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18563 fi
18564
18565 CFLAGS="$CFLAGS -Wmain"
18566
18567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18568 printf %s "checking if $CC supports -Wmain... " >&6; }
18569 cacheid=xorg_cv_cc_flag__Wmain
18570 if eval test \${$cacheid+y}
18571 then :
18572 printf %s "(cached) " >&6
18573 else case e in #(
18574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18576 int i;
18577 int
18578 main (void)
18579 {
18580
18581 ;
18582 return 0;
18583 }
18584 _ACEOF
18585 if ac_fn_c_try_link "$LINENO"
18586 then :
18587 eval $cacheid=yes
18588 else case e in #(
18589 e) eval $cacheid=no ;;
18590 esac
18591 fi
18592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18593 conftest$ac_exeext conftest.$ac_ext ;;
18594 esac
18595 fi
18596
18597
18598 CFLAGS="$xorg_testset_save_CFLAGS"
18599
18600 eval supported=\$$cacheid
18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18602 printf "%s\n" "$supported" >&6; }
18603 if test "$supported" = "yes" ; then
18604 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18605 found="yes"
18606 fi
18607 fi
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623 xorg_testset_save_CFLAGS="$CFLAGS"
18624
18625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18630 then :
18631 printf %s "(cached) " >&6
18632 else case e in #(
18633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18635 int i;
18636 _ACEOF
18637 if ac_fn_c_try_compile "$LINENO"
18638 then :
18639 xorg_cv_cc_flag_unknown_warning_option=yes
18640 else case e in #(
18641 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18642 esac
18643 fi
18644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18645 esac
18646 fi
18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18650 CFLAGS="$xorg_testset_save_CFLAGS"
18651 fi
18652
18653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18656 fi
18657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18661 then :
18662 printf %s "(cached) " >&6
18663 else case e in #(
18664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18666 int i;
18667 _ACEOF
18668 if ac_fn_c_try_compile "$LINENO"
18669 then :
18670 xorg_cv_cc_flag_unused_command_line_argument=yes
18671 else case e in #(
18672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18673 esac
18674 fi
18675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18676 esac
18677 fi
18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18681 CFLAGS="$xorg_testset_save_CFLAGS"
18682 fi
18683
18684 found="no"
18685
18686 if test $found = "no" ; then
18687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18689 fi
18690
18691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18693 fi
18694
18695 CFLAGS="$CFLAGS -Wmissing-braces"
18696
18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18698 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18699 cacheid=xorg_cv_cc_flag__Wmissing_braces
18700 if eval test \${$cacheid+y}
18701 then :
18702 printf %s "(cached) " >&6
18703 else case e in #(
18704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18706 int i;
18707 int
18708 main (void)
18709 {
18710
18711 ;
18712 return 0;
18713 }
18714 _ACEOF
18715 if ac_fn_c_try_link "$LINENO"
18716 then :
18717 eval $cacheid=yes
18718 else case e in #(
18719 e) eval $cacheid=no ;;
18720 esac
18721 fi
18722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18723 conftest$ac_exeext conftest.$ac_ext ;;
18724 esac
18725 fi
18726
18727
18728 CFLAGS="$xorg_testset_save_CFLAGS"
18729
18730 eval supported=\$$cacheid
18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18732 printf "%s\n" "$supported" >&6; }
18733 if test "$supported" = "yes" ; then
18734 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18735 found="yes"
18736 fi
18737 fi
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753 xorg_testset_save_CFLAGS="$CFLAGS"
18754
18755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18759 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18760 then :
18761 printf %s "(cached) " >&6
18762 else case e in #(
18763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18765 int i;
18766 _ACEOF
18767 if ac_fn_c_try_compile "$LINENO"
18768 then :
18769 xorg_cv_cc_flag_unknown_warning_option=yes
18770 else case e in #(
18771 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18772 esac
18773 fi
18774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18775 esac
18776 fi
18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18780 CFLAGS="$xorg_testset_save_CFLAGS"
18781 fi
18782
18783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18786 fi
18787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18791 then :
18792 printf %s "(cached) " >&6
18793 else case e in #(
18794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 int i;
18797 _ACEOF
18798 if ac_fn_c_try_compile "$LINENO"
18799 then :
18800 xorg_cv_cc_flag_unused_command_line_argument=yes
18801 else case e in #(
18802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18803 esac
18804 fi
18805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18806 esac
18807 fi
18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18811 CFLAGS="$xorg_testset_save_CFLAGS"
18812 fi
18813
18814 found="no"
18815
18816 if test $found = "no" ; then
18817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18819 fi
18820
18821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18823 fi
18824
18825 CFLAGS="$CFLAGS -Wsequence-point"
18826
18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18828 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18829 cacheid=xorg_cv_cc_flag__Wsequence_point
18830 if eval test \${$cacheid+y}
18831 then :
18832 printf %s "(cached) " >&6
18833 else case e in #(
18834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18836 int i;
18837 int
18838 main (void)
18839 {
18840
18841 ;
18842 return 0;
18843 }
18844 _ACEOF
18845 if ac_fn_c_try_link "$LINENO"
18846 then :
18847 eval $cacheid=yes
18848 else case e in #(
18849 e) eval $cacheid=no ;;
18850 esac
18851 fi
18852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18853 conftest$ac_exeext conftest.$ac_ext ;;
18854 esac
18855 fi
18856
18857
18858 CFLAGS="$xorg_testset_save_CFLAGS"
18859
18860 eval supported=\$$cacheid
18861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18862 printf "%s\n" "$supported" >&6; }
18863 if test "$supported" = "yes" ; then
18864 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18865 found="yes"
18866 fi
18867 fi
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883 xorg_testset_save_CFLAGS="$CFLAGS"
18884
18885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18889 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18890 then :
18891 printf %s "(cached) " >&6
18892 else case e in #(
18893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18895 int i;
18896 _ACEOF
18897 if ac_fn_c_try_compile "$LINENO"
18898 then :
18899 xorg_cv_cc_flag_unknown_warning_option=yes
18900 else case e in #(
18901 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18902 esac
18903 fi
18904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18905 esac
18906 fi
18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18910 CFLAGS="$xorg_testset_save_CFLAGS"
18911 fi
18912
18913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18916 fi
18917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18921 then :
18922 printf %s "(cached) " >&6
18923 else case e in #(
18924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h. */
18926 int i;
18927 _ACEOF
18928 if ac_fn_c_try_compile "$LINENO"
18929 then :
18930 xorg_cv_cc_flag_unused_command_line_argument=yes
18931 else case e in #(
18932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18933 esac
18934 fi
18935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18936 esac
18937 fi
18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18941 CFLAGS="$xorg_testset_save_CFLAGS"
18942 fi
18943
18944 found="no"
18945
18946 if test $found = "no" ; then
18947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18949 fi
18950
18951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18953 fi
18954
18955 CFLAGS="$CFLAGS -Wreturn-type"
18956
18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18958 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18959 cacheid=xorg_cv_cc_flag__Wreturn_type
18960 if eval test \${$cacheid+y}
18961 then :
18962 printf %s "(cached) " >&6
18963 else case e in #(
18964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18966 int i;
18967 int
18968 main (void)
18969 {
18970
18971 ;
18972 return 0;
18973 }
18974 _ACEOF
18975 if ac_fn_c_try_link "$LINENO"
18976 then :
18977 eval $cacheid=yes
18978 else case e in #(
18979 e) eval $cacheid=no ;;
18980 esac
18981 fi
18982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18983 conftest$ac_exeext conftest.$ac_ext ;;
18984 esac
18985 fi
18986
18987
18988 CFLAGS="$xorg_testset_save_CFLAGS"
18989
18990 eval supported=\$$cacheid
18991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18992 printf "%s\n" "$supported" >&6; }
18993 if test "$supported" = "yes" ; then
18994 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18995 found="yes"
18996 fi
18997 fi
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013 xorg_testset_save_CFLAGS="$CFLAGS"
19014
19015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19019 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19020 then :
19021 printf %s "(cached) " >&6
19022 else case e in #(
19023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19025 int i;
19026 _ACEOF
19027 if ac_fn_c_try_compile "$LINENO"
19028 then :
19029 xorg_cv_cc_flag_unknown_warning_option=yes
19030 else case e in #(
19031 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19032 esac
19033 fi
19034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19035 esac
19036 fi
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19040 CFLAGS="$xorg_testset_save_CFLAGS"
19041 fi
19042
19043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19046 fi
19047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19051 then :
19052 printf %s "(cached) " >&6
19053 else case e in #(
19054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h. */
19056 int i;
19057 _ACEOF
19058 if ac_fn_c_try_compile "$LINENO"
19059 then :
19060 xorg_cv_cc_flag_unused_command_line_argument=yes
19061 else case e in #(
19062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19063 esac
19064 fi
19065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19066 esac
19067 fi
19068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19071 CFLAGS="$xorg_testset_save_CFLAGS"
19072 fi
19073
19074 found="no"
19075
19076 if test $found = "no" ; then
19077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19079 fi
19080
19081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19083 fi
19084
19085 CFLAGS="$CFLAGS -Wtrigraphs"
19086
19087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19088 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19089 cacheid=xorg_cv_cc_flag__Wtrigraphs
19090 if eval test \${$cacheid+y}
19091 then :
19092 printf %s "(cached) " >&6
19093 else case e in #(
19094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19096 int i;
19097 int
19098 main (void)
19099 {
19100
19101 ;
19102 return 0;
19103 }
19104 _ACEOF
19105 if ac_fn_c_try_link "$LINENO"
19106 then :
19107 eval $cacheid=yes
19108 else case e in #(
19109 e) eval $cacheid=no ;;
19110 esac
19111 fi
19112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19113 conftest$ac_exeext conftest.$ac_ext ;;
19114 esac
19115 fi
19116
19117
19118 CFLAGS="$xorg_testset_save_CFLAGS"
19119
19120 eval supported=\$$cacheid
19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19122 printf "%s\n" "$supported" >&6; }
19123 if test "$supported" = "yes" ; then
19124 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19125 found="yes"
19126 fi
19127 fi
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143 xorg_testset_save_CFLAGS="$CFLAGS"
19144
19145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19148 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19149 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19150 then :
19151 printf %s "(cached) " >&6
19152 else case e in #(
19153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19155 int i;
19156 _ACEOF
19157 if ac_fn_c_try_compile "$LINENO"
19158 then :
19159 xorg_cv_cc_flag_unknown_warning_option=yes
19160 else case e in #(
19161 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19162 esac
19163 fi
19164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19165 esac
19166 fi
19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19170 CFLAGS="$xorg_testset_save_CFLAGS"
19171 fi
19172
19173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19176 fi
19177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19181 then :
19182 printf %s "(cached) " >&6
19183 else case e in #(
19184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19186 int i;
19187 _ACEOF
19188 if ac_fn_c_try_compile "$LINENO"
19189 then :
19190 xorg_cv_cc_flag_unused_command_line_argument=yes
19191 else case e in #(
19192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19193 esac
19194 fi
19195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19196 esac
19197 fi
19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19201 CFLAGS="$xorg_testset_save_CFLAGS"
19202 fi
19203
19204 found="no"
19205
19206 if test $found = "no" ; then
19207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19209 fi
19210
19211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19213 fi
19214
19215 CFLAGS="$CFLAGS -Warray-bounds"
19216
19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19218 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19219 cacheid=xorg_cv_cc_flag__Warray_bounds
19220 if eval test \${$cacheid+y}
19221 then :
19222 printf %s "(cached) " >&6
19223 else case e in #(
19224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19226 int i;
19227 int
19228 main (void)
19229 {
19230
19231 ;
19232 return 0;
19233 }
19234 _ACEOF
19235 if ac_fn_c_try_link "$LINENO"
19236 then :
19237 eval $cacheid=yes
19238 else case e in #(
19239 e) eval $cacheid=no ;;
19240 esac
19241 fi
19242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19243 conftest$ac_exeext conftest.$ac_ext ;;
19244 esac
19245 fi
19246
19247
19248 CFLAGS="$xorg_testset_save_CFLAGS"
19249
19250 eval supported=\$$cacheid
19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19252 printf "%s\n" "$supported" >&6; }
19253 if test "$supported" = "yes" ; then
19254 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19255 found="yes"
19256 fi
19257 fi
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273 xorg_testset_save_CFLAGS="$CFLAGS"
19274
19275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19278 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19279 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19280 then :
19281 printf %s "(cached) " >&6
19282 else case e in #(
19283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19285 int i;
19286 _ACEOF
19287 if ac_fn_c_try_compile "$LINENO"
19288 then :
19289 xorg_cv_cc_flag_unknown_warning_option=yes
19290 else case e in #(
19291 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19292 esac
19293 fi
19294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19295 esac
19296 fi
19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19298 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19300 CFLAGS="$xorg_testset_save_CFLAGS"
19301 fi
19302
19303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19306 fi
19307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19309 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19310 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19311 then :
19312 printf %s "(cached) " >&6
19313 else case e in #(
19314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19316 int i;
19317 _ACEOF
19318 if ac_fn_c_try_compile "$LINENO"
19319 then :
19320 xorg_cv_cc_flag_unused_command_line_argument=yes
19321 else case e in #(
19322 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19323 esac
19324 fi
19325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19326 esac
19327 fi
19328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19329 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19331 CFLAGS="$xorg_testset_save_CFLAGS"
19332 fi
19333
19334 found="no"
19335
19336 if test $found = "no" ; then
19337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19339 fi
19340
19341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19343 fi
19344
19345 CFLAGS="$CFLAGS -Wwrite-strings"
19346
19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19348 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19349 cacheid=xorg_cv_cc_flag__Wwrite_strings
19350 if eval test \${$cacheid+y}
19351 then :
19352 printf %s "(cached) " >&6
19353 else case e in #(
19354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h. */
19356 int i;
19357 int
19358 main (void)
19359 {
19360
19361 ;
19362 return 0;
19363 }
19364 _ACEOF
19365 if ac_fn_c_try_link "$LINENO"
19366 then :
19367 eval $cacheid=yes
19368 else case e in #(
19369 e) eval $cacheid=no ;;
19370 esac
19371 fi
19372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19373 conftest$ac_exeext conftest.$ac_ext ;;
19374 esac
19375 fi
19376
19377
19378 CFLAGS="$xorg_testset_save_CFLAGS"
19379
19380 eval supported=\$$cacheid
19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19382 printf "%s\n" "$supported" >&6; }
19383 if test "$supported" = "yes" ; then
19384 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19385 found="yes"
19386 fi
19387 fi
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403 xorg_testset_save_CFLAGS="$CFLAGS"
19404
19405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19409 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19410 then :
19411 printf %s "(cached) " >&6
19412 else case e in #(
19413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h. */
19415 int i;
19416 _ACEOF
19417 if ac_fn_c_try_compile "$LINENO"
19418 then :
19419 xorg_cv_cc_flag_unknown_warning_option=yes
19420 else case e in #(
19421 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19422 esac
19423 fi
19424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19425 esac
19426 fi
19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19430 CFLAGS="$xorg_testset_save_CFLAGS"
19431 fi
19432
19433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19436 fi
19437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19441 then :
19442 printf %s "(cached) " >&6
19443 else case e in #(
19444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19446 int i;
19447 _ACEOF
19448 if ac_fn_c_try_compile "$LINENO"
19449 then :
19450 xorg_cv_cc_flag_unused_command_line_argument=yes
19451 else case e in #(
19452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19453 esac
19454 fi
19455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19456 esac
19457 fi
19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19461 CFLAGS="$xorg_testset_save_CFLAGS"
19462 fi
19463
19464 found="no"
19465
19466 if test $found = "no" ; then
19467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19469 fi
19470
19471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19473 fi
19474
19475 CFLAGS="$CFLAGS -Waddress"
19476
19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19478 printf %s "checking if $CC supports -Waddress... " >&6; }
19479 cacheid=xorg_cv_cc_flag__Waddress
19480 if eval test \${$cacheid+y}
19481 then :
19482 printf %s "(cached) " >&6
19483 else case e in #(
19484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19486 int i;
19487 int
19488 main (void)
19489 {
19490
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_link "$LINENO"
19496 then :
19497 eval $cacheid=yes
19498 else case e in #(
19499 e) eval $cacheid=no ;;
19500 esac
19501 fi
19502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19503 conftest$ac_exeext conftest.$ac_ext ;;
19504 esac
19505 fi
19506
19507
19508 CFLAGS="$xorg_testset_save_CFLAGS"
19509
19510 eval supported=\$$cacheid
19511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19512 printf "%s\n" "$supported" >&6; }
19513 if test "$supported" = "yes" ; then
19514 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19515 found="yes"
19516 fi
19517 fi
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533 xorg_testset_save_CFLAGS="$CFLAGS"
19534
19535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19539 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19540 then :
19541 printf %s "(cached) " >&6
19542 else case e in #(
19543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545 int i;
19546 _ACEOF
19547 if ac_fn_c_try_compile "$LINENO"
19548 then :
19549 xorg_cv_cc_flag_unknown_warning_option=yes
19550 else case e in #(
19551 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19552 esac
19553 fi
19554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19555 esac
19556 fi
19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19560 CFLAGS="$xorg_testset_save_CFLAGS"
19561 fi
19562
19563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19566 fi
19567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19571 then :
19572 printf %s "(cached) " >&6
19573 else case e in #(
19574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19576 int i;
19577 _ACEOF
19578 if ac_fn_c_try_compile "$LINENO"
19579 then :
19580 xorg_cv_cc_flag_unused_command_line_argument=yes
19581 else case e in #(
19582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19583 esac
19584 fi
19585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19586 esac
19587 fi
19588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19591 CFLAGS="$xorg_testset_save_CFLAGS"
19592 fi
19593
19594 found="no"
19595
19596 if test $found = "no" ; then
19597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19599 fi
19600
19601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19603 fi
19604
19605 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19606
19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19608 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19609 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19610 if eval test \${$cacheid+y}
19611 then :
19612 printf %s "(cached) " >&6
19613 else case e in #(
19614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h. */
19616 int i;
19617 int
19618 main (void)
19619 {
19620
19621 ;
19622 return 0;
19623 }
19624 _ACEOF
19625 if ac_fn_c_try_link "$LINENO"
19626 then :
19627 eval $cacheid=yes
19628 else case e in #(
19629 e) eval $cacheid=no ;;
19630 esac
19631 fi
19632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19633 conftest$ac_exeext conftest.$ac_ext ;;
19634 esac
19635 fi
19636
19637
19638 CFLAGS="$xorg_testset_save_CFLAGS"
19639
19640 eval supported=\$$cacheid
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19642 printf "%s\n" "$supported" >&6; }
19643 if test "$supported" = "yes" ; then
19644 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19645 found="yes"
19646 fi
19647 fi
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663 xorg_testset_save_CFLAGS="$CFLAGS"
19664
19665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19670 then :
19671 printf %s "(cached) " >&6
19672 else case e in #(
19673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19675 int i;
19676 _ACEOF
19677 if ac_fn_c_try_compile "$LINENO"
19678 then :
19679 xorg_cv_cc_flag_unknown_warning_option=yes
19680 else case e in #(
19681 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19682 esac
19683 fi
19684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19685 esac
19686 fi
19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19688 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19690 CFLAGS="$xorg_testset_save_CFLAGS"
19691 fi
19692
19693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19696 fi
19697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19701 then :
19702 printf %s "(cached) " >&6
19703 else case e in #(
19704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19706 int i;
19707 _ACEOF
19708 if ac_fn_c_try_compile "$LINENO"
19709 then :
19710 xorg_cv_cc_flag_unused_command_line_argument=yes
19711 else case e in #(
19712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19713 esac
19714 fi
19715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19716 esac
19717 fi
19718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19721 CFLAGS="$xorg_testset_save_CFLAGS"
19722 fi
19723
19724 found="no"
19725
19726 if test $found = "no" ; then
19727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19729 fi
19730
19731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19733 fi
19734
19735 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19736
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19738 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19739 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19740 if eval test \${$cacheid+y}
19741 then :
19742 printf %s "(cached) " >&6
19743 else case e in #(
19744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745 /* end confdefs.h. */
19746 int i;
19747 int
19748 main (void)
19749 {
19750
19751 ;
19752 return 0;
19753 }
19754 _ACEOF
19755 if ac_fn_c_try_link "$LINENO"
19756 then :
19757 eval $cacheid=yes
19758 else case e in #(
19759 e) eval $cacheid=no ;;
19760 esac
19761 fi
19762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19763 conftest$ac_exeext conftest.$ac_ext ;;
19764 esac
19765 fi
19766
19767
19768 CFLAGS="$xorg_testset_save_CFLAGS"
19769
19770 eval supported=\$$cacheid
19771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19772 printf "%s\n" "$supported" >&6; }
19773 if test "$supported" = "yes" ; then
19774 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19775 found="yes"
19776 fi
19777 fi
19778
19779
19780 fi
19781
19782
19783
19784
19785
19786
19787
19788 CWARNFLAGS="$BASE_CFLAGS"
19789 if test "x$GCC" = xyes ; then
19790 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19791 fi
19792
19793
19794
19795
19796
19797
19798
19799
19800 # Check whether --enable-strict-compilation was given.
19801 if test ${enable_strict_compilation+y}
19802 then :
19803 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19804 else case e in #(
19805 e) STRICT_COMPILE=no ;;
19806 esac
19807 fi
19808
19809
19810
19811
19812
19813
19814 STRICT_CFLAGS=""
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828 xorg_testset_save_CFLAGS="$CFLAGS"
19829
19830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19834 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19835 then :
19836 printf %s "(cached) " >&6
19837 else case e in #(
19838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19840 int i;
19841 _ACEOF
19842 if ac_fn_c_try_compile "$LINENO"
19843 then :
19844 xorg_cv_cc_flag_unknown_warning_option=yes
19845 else case e in #(
19846 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19847 esac
19848 fi
19849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19850 esac
19851 fi
19852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19853 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19855 CFLAGS="$xorg_testset_save_CFLAGS"
19856 fi
19857
19858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19861 fi
19862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19864 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19865 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19866 then :
19867 printf %s "(cached) " >&6
19868 else case e in #(
19869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h. */
19871 int i;
19872 _ACEOF
19873 if ac_fn_c_try_compile "$LINENO"
19874 then :
19875 xorg_cv_cc_flag_unused_command_line_argument=yes
19876 else case e in #(
19877 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19878 esac
19879 fi
19880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19881 esac
19882 fi
19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19884 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19886 CFLAGS="$xorg_testset_save_CFLAGS"
19887 fi
19888
19889 found="no"
19890
19891 if test $found = "no" ; then
19892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19894 fi
19895
19896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19898 fi
19899
19900 CFLAGS="$CFLAGS -pedantic"
19901
19902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19903 printf %s "checking if $CC supports -pedantic... " >&6; }
19904 cacheid=xorg_cv_cc_flag__pedantic
19905 if eval test \${$cacheid+y}
19906 then :
19907 printf %s "(cached) " >&6
19908 else case e in #(
19909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19910 /* end confdefs.h. */
19911 int i;
19912 int
19913 main (void)
19914 {
19915
19916 ;
19917 return 0;
19918 }
19919 _ACEOF
19920 if ac_fn_c_try_link "$LINENO"
19921 then :
19922 eval $cacheid=yes
19923 else case e in #(
19924 e) eval $cacheid=no ;;
19925 esac
19926 fi
19927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19928 conftest$ac_exeext conftest.$ac_ext ;;
19929 esac
19930 fi
19931
19932
19933 CFLAGS="$xorg_testset_save_CFLAGS"
19934
19935 eval supported=\$$cacheid
19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19937 printf "%s\n" "$supported" >&6; }
19938 if test "$supported" = "yes" ; then
19939 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19940 found="yes"
19941 fi
19942 fi
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958 xorg_testset_save_CFLAGS="$CFLAGS"
19959
19960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19964 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19965 then :
19966 printf %s "(cached) " >&6
19967 else case e in #(
19968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h. */
19970 int i;
19971 _ACEOF
19972 if ac_fn_c_try_compile "$LINENO"
19973 then :
19974 xorg_cv_cc_flag_unknown_warning_option=yes
19975 else case e in #(
19976 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19977 esac
19978 fi
19979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19980 esac
19981 fi
19982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19983 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19985 CFLAGS="$xorg_testset_save_CFLAGS"
19986 fi
19987
19988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19991 fi
19992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19996 then :
19997 printf %s "(cached) " >&6
19998 else case e in #(
19999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20000 /* end confdefs.h. */
20001 int i;
20002 _ACEOF
20003 if ac_fn_c_try_compile "$LINENO"
20004 then :
20005 xorg_cv_cc_flag_unused_command_line_argument=yes
20006 else case e in #(
20007 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20008 esac
20009 fi
20010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20011 esac
20012 fi
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20016 CFLAGS="$xorg_testset_save_CFLAGS"
20017 fi
20018
20019 found="no"
20020
20021 if test $found = "no" ; then
20022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20024 fi
20025
20026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20028 fi
20029
20030 CFLAGS="$CFLAGS -Werror"
20031
20032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20033 printf %s "checking if $CC supports -Werror... " >&6; }
20034 cacheid=xorg_cv_cc_flag__Werror
20035 if eval test \${$cacheid+y}
20036 then :
20037 printf %s "(cached) " >&6
20038 else case e in #(
20039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20041 int i;
20042 int
20043 main (void)
20044 {
20045
20046 ;
20047 return 0;
20048 }
20049 _ACEOF
20050 if ac_fn_c_try_link "$LINENO"
20051 then :
20052 eval $cacheid=yes
20053 else case e in #(
20054 e) eval $cacheid=no ;;
20055 esac
20056 fi
20057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20058 conftest$ac_exeext conftest.$ac_ext ;;
20059 esac
20060 fi
20061
20062
20063 CFLAGS="$xorg_testset_save_CFLAGS"
20064
20065 eval supported=\$$cacheid
20066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20067 printf "%s\n" "$supported" >&6; }
20068 if test "$supported" = "yes" ; then
20069 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20070 found="yes"
20071 fi
20072 fi
20073
20074 if test $found = "no" ; then
20075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20077 fi
20078
20079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20081 fi
20082
20083 CFLAGS="$CFLAGS -errwarn"
20084
20085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20086 printf %s "checking if $CC supports -errwarn... " >&6; }
20087 cacheid=xorg_cv_cc_flag__errwarn
20088 if eval test \${$cacheid+y}
20089 then :
20090 printf %s "(cached) " >&6
20091 else case e in #(
20092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093 /* end confdefs.h. */
20094 int i;
20095 int
20096 main (void)
20097 {
20098
20099 ;
20100 return 0;
20101 }
20102 _ACEOF
20103 if ac_fn_c_try_link "$LINENO"
20104 then :
20105 eval $cacheid=yes
20106 else case e in #(
20107 e) eval $cacheid=no ;;
20108 esac
20109 fi
20110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20111 conftest$ac_exeext conftest.$ac_ext ;;
20112 esac
20113 fi
20114
20115
20116 CFLAGS="$xorg_testset_save_CFLAGS"
20117
20118 eval supported=\$$cacheid
20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20120 printf "%s\n" "$supported" >&6; }
20121 if test "$supported" = "yes" ; then
20122 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20123 found="yes"
20124 fi
20125 fi
20126
20127
20128
20129 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20130 # activate it with -Werror, so we add it here explicitly.
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144 xorg_testset_save_CFLAGS="$CFLAGS"
20145
20146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20149 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20150 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20151 then :
20152 printf %s "(cached) " >&6
20153 else case e in #(
20154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h. */
20156 int i;
20157 _ACEOF
20158 if ac_fn_c_try_compile "$LINENO"
20159 then :
20160 xorg_cv_cc_flag_unknown_warning_option=yes
20161 else case e in #(
20162 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20163 esac
20164 fi
20165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20166 esac
20167 fi
20168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20171 CFLAGS="$xorg_testset_save_CFLAGS"
20172 fi
20173
20174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20177 fi
20178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20182 then :
20183 printf %s "(cached) " >&6
20184 else case e in #(
20185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h. */
20187 int i;
20188 _ACEOF
20189 if ac_fn_c_try_compile "$LINENO"
20190 then :
20191 xorg_cv_cc_flag_unused_command_line_argument=yes
20192 else case e in #(
20193 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20194 esac
20195 fi
20196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20197 esac
20198 fi
20199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20200 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20202 CFLAGS="$xorg_testset_save_CFLAGS"
20203 fi
20204
20205 found="no"
20206
20207 if test $found = "no" ; then
20208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20210 fi
20211
20212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20214 fi
20215
20216 CFLAGS="$CFLAGS -Werror=attributes"
20217
20218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20219 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20220 cacheid=xorg_cv_cc_flag__Werror_attributes
20221 if eval test \${$cacheid+y}
20222 then :
20223 printf %s "(cached) " >&6
20224 else case e in #(
20225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20226 /* end confdefs.h. */
20227 int i;
20228 int
20229 main (void)
20230 {
20231
20232 ;
20233 return 0;
20234 }
20235 _ACEOF
20236 if ac_fn_c_try_link "$LINENO"
20237 then :
20238 eval $cacheid=yes
20239 else case e in #(
20240 e) eval $cacheid=no ;;
20241 esac
20242 fi
20243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20244 conftest$ac_exeext conftest.$ac_ext ;;
20245 esac
20246 fi
20247
20248
20249 CFLAGS="$xorg_testset_save_CFLAGS"
20250
20251 eval supported=\$$cacheid
20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20253 printf "%s\n" "$supported" >&6; }
20254 if test "$supported" = "yes" ; then
20255 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20256 found="yes"
20257 fi
20258 fi
20259
20260
20261
20262 if test "x$STRICT_COMPILE" = "xyes"; then
20263 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20264 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20265 fi
20266
20267
20268
20269
20270
20271
20272
20273
20274 cat >>confdefs.h <<_ACEOF
20275 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20276 _ACEOF
20277
20278 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20279 if test "x$PVM" = "x"; then
20280 PVM="0"
20281 fi
20282
20283 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20284
20285 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20286 if test "x$PVP" = "x"; then
20287 PVP="0"
20288 fi
20289
20290 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20291
20292
20293
20294 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20295 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20296 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20297 touch \$(top_srcdir)/ChangeLog; \
20298 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20299
20300
20301
20302
20303 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20304 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20305 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20306 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20307 touch \$(top_srcdir)/INSTALL; \
20308 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20309
20310
20311
20312
20313
20314
20315 case $host_os in
20316 solaris*)
20317 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20318 # check for a man page file found in later versions that use
20319 # traditional section numbers instead
20320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20321 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20322 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20323 then :
20324 printf %s "(cached) " >&6
20325 else case e in #(
20326 e) test "$cross_compiling" = yes &&
20327 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20328 if test -r "/usr/share/man/man7/attributes.7"; then
20329 ac_cv_file__usr_share_man_man7_attributes_7=yes
20330 else
20331 ac_cv_file__usr_share_man_man7_attributes_7=no
20332 fi ;;
20333 esac
20334 fi
20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20336 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20337 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20338 then :
20339 SYSV_MAN_SECTIONS=false
20340 else case e in #(
20341 e) SYSV_MAN_SECTIONS=true ;;
20342 esac
20343 fi
20344
20345 ;;
20346 *) SYSV_MAN_SECTIONS=false ;;
20347 esac
20348
20349 if test x$APP_MAN_SUFFIX = x ; then
20350 APP_MAN_SUFFIX=1
20351 fi
20352 if test x$APP_MAN_DIR = x ; then
20353 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20354 fi
20355
20356 if test x$LIB_MAN_SUFFIX = x ; then
20357 LIB_MAN_SUFFIX=3
20358 fi
20359 if test x$LIB_MAN_DIR = x ; then
20360 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20361 fi
20362
20363 if test x$FILE_MAN_SUFFIX = x ; then
20364 case $SYSV_MAN_SECTIONS in
20365 true) FILE_MAN_SUFFIX=4 ;;
20366 *) FILE_MAN_SUFFIX=5 ;;
20367 esac
20368 fi
20369 if test x$FILE_MAN_DIR = x ; then
20370 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20371 fi
20372
20373 if test x$MISC_MAN_SUFFIX = x ; then
20374 case $SYSV_MAN_SECTIONS in
20375 true) MISC_MAN_SUFFIX=5 ;;
20376 *) MISC_MAN_SUFFIX=7 ;;
20377 esac
20378 fi
20379 if test x$MISC_MAN_DIR = x ; then
20380 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20381 fi
20382
20383 if test x$DRIVER_MAN_SUFFIX = x ; then
20384 case $SYSV_MAN_SECTIONS in
20385 true) DRIVER_MAN_SUFFIX=7 ;;
20386 *) DRIVER_MAN_SUFFIX=4 ;;
20387 esac
20388 fi
20389 if test x$DRIVER_MAN_DIR = x ; then
20390 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20391 fi
20392
20393 if test x$ADMIN_MAN_SUFFIX = x ; then
20394 case $SYSV_MAN_SECTIONS in
20395 true) ADMIN_MAN_SUFFIX=1m ;;
20396 *) ADMIN_MAN_SUFFIX=8 ;;
20397 esac
20398 fi
20399 if test x$ADMIN_MAN_DIR = x ; then
20400 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20401 fi
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417 XORG_MAN_PAGE="X Version 11"
20418
20419 MAN_SUBSTS="\
20420 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20421 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20422 -e 's|__xservername__|Xorg|g' \
20423 -e 's|__xconfigfile__|xorg.conf|g' \
20424 -e 's|__projectroot__|\$(prefix)|g' \
20425 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20426 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20427 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20428 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20429 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20430 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20431 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20432
20433
20434
20435
20436 AM_DEFAULT_VERBOSITY=0
20437
20438
20439
20440
20441
20442 # Check whether --enable-malloc0returnsnull was given.
20443 if test ${enable_malloc0returnsnull+y}
20444 then :
20445 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20446 else case e in #(
20447 e) MALLOC_ZERO_RETURNS_NULL=yes ;;
20448 esac
20449 fi
20450
20451
20452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5
20453 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; }
20454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20455 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20456
20457 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20458 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20459 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20460 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20461 else
20462 MALLOC_ZERO_CFLAGS=""
20463 XMALLOC_ZERO_CFLAGS=""
20464 XTMALLOC_ZERO_CFLAGS=""
20465 fi
20466
20467
20468
20469
20470
20471
20472 # Obtain compiler/linker options for dependencies
20473
20474 pkg_failed=no
20475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
20476 printf %s "checking for XVMC... " >&6; }
20477
20478 if test -n "$XVMC_CFLAGS"; then
20479 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
20480 elif test -n "$PKG_CONFIG"; then
20481 if test -n "$PKG_CONFIG" && \
20482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
20483 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
20484 ac_status=$?
20485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20486 test $ac_status = 0; }; then
20487 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
20488 test "x$?" != "x0" && pkg_failed=yes
20489 else
20490 pkg_failed=yes
20491 fi
20492 else
20493 pkg_failed=untried
20494 fi
20495 if test -n "$XVMC_LIBS"; then
20496 pkg_cv_XVMC_LIBS="$XVMC_LIBS"
20497 elif test -n "$PKG_CONFIG"; then
20498 if test -n "$PKG_CONFIG" && \
20499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
20500 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
20501 ac_status=$?
20502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20503 test $ac_status = 0; }; then
20504 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
20505 test "x$?" != "x0" && pkg_failed=yes
20506 else
20507 pkg_failed=yes
20508 fi
20509 else
20510 pkg_failed=untried
20511 fi
20512
20513
20514
20515 if test $pkg_failed = yes; then
20516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20517 printf "%s\n" "no" >&6; }
20518
20519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20520 _pkg_short_errors_supported=yes
20521 else
20522 _pkg_short_errors_supported=no
20523 fi
20524 if test $_pkg_short_errors_supported = yes; then
20525 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
20526 else
20527 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
20528 fi
20529 # Put the nasty error message in config.log where it belongs
20530 echo "$XVMC_PKG_ERRORS" >&5
20531
20532 as_fn_error $? "Package requirements (x11 >= 1.6 xext xv xextproto videoproto) were not met:
20533
20534 $XVMC_PKG_ERRORS
20535
20536 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20537 installed software in a non-standard prefix.
20538
20539 Alternatively, you may set the environment variables XVMC_CFLAGS
20540 and XVMC_LIBS to avoid the need to call pkg-config.
20541 See the pkg-config man page for more details." "$LINENO" 5
20542 elif test $pkg_failed = untried; then
20543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20544 printf "%s\n" "no" >&6; }
20545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20546 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20547 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20548 is in your PATH or set the PKG_CONFIG environment variable to the full
20549 path to pkg-config.
20550
20551 Alternatively, you may set the environment variables XVMC_CFLAGS
20552 and XVMC_LIBS to avoid the need to call pkg-config.
20553 See the pkg-config man page for more details.
20554
20555 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20556 See 'config.log' for more details" "$LINENO" 5; }
20557 else
20558 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
20559 XVMC_LIBS=$pkg_cv_XVMC_LIBS
20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20561 printf "%s\n" "yes" >&6; }
20562
20563 fi
20564
20565 # Checks for library functions.
20566 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20567 if test "x$ac_cv_func_shmat" = xyes
20568 then :
20569 printf "%s\n" "#define HAVE_SHMAT 1" >>confdefs.h
20570
20571 fi
20572
20573
20574 # Check to see if dlopen is in default libraries (like Solaris, which
20575 # has it in libc), or if libdl is needed to get it.
20576 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20577 if test "x$ac_cv_func_dlopen" = xyes
20578 then :
20579
20580 else case e in #(
20581 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20582 printf %s "checking for dlopen in -ldl... " >&6; }
20583 if test ${ac_cv_lib_dl_dlopen+y}
20584 then :
20585 printf %s "(cached) " >&6
20586 else case e in #(
20587 e) ac_check_lib_save_LIBS=$LIBS
20588 LIBS="-ldl $LIBS"
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply.
20595 The 'extern "C"' is for builds by C++ compilers;
20596 although this is not generally supported in C code supporting it here
20597 has little cost and some practical benefit (sr 110532). */
20598 #ifdef __cplusplus
20599 extern "C"
20600 #endif
20601 char dlopen (void);
20602 int
20603 main (void)
20604 {
20605 return dlopen ();
20606 ;
20607 return 0;
20608 }
20609 _ACEOF
20610 if ac_fn_c_try_link "$LINENO"
20611 then :
20612 ac_cv_lib_dl_dlopen=yes
20613 else case e in #(
20614 e) ac_cv_lib_dl_dlopen=no ;;
20615 esac
20616 fi
20617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20618 conftest$ac_exeext conftest.$ac_ext
20619 LIBS=$ac_check_lib_save_LIBS ;;
20620 esac
20621 fi
20622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20623 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20624 if test "x$ac_cv_lib_dl_dlopen" = xyes
20625 then :
20626 DLOPEN_LIBS="-ldl"
20627 fi
20628 ;;
20629 esac
20630 fi
20631
20632
20633
20634 # Allow checking code with lint, sparse, etc.
20635
20636
20637
20638
20639
20640 # Check whether --with-lint was given.
20641 if test ${with_lint+y}
20642 then :
20643 withval=$with_lint; use_lint=$withval
20644 else case e in #(
20645 e) use_lint=no ;;
20646 esac
20647 fi
20648
20649
20650 # Obtain platform specific info like program name and options
20651 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20652 case $host_os in
20653 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20654 lint_name=splint
20655 lint_options="-badflag"
20656 ;;
20657 *freebsd* | *netbsd*)
20658 lint_name=lint
20659 lint_options="-u -b"
20660 ;;
20661 *solaris*)
20662 lint_name=lint
20663 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20664 ;;
20665 esac
20666
20667 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20668 if test "x$use_lint" = x"yes" ; then
20669 # Extract the first word of "$lint_name", so it can be a program name with args.
20670 set dummy $lint_name; ac_word=$2
20671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20672 printf %s "checking for $ac_word... " >&6; }
20673 if test ${ac_cv_path_LINT+y}
20674 then :
20675 printf %s "(cached) " >&6
20676 else case e in #(
20677 e) case $LINT in
20678 [\\/]* | ?:[\\/]*)
20679 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20680 ;;
20681 *)
20682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20683 for as_dir in $PATH
20684 do
20685 IFS=$as_save_IFS
20686 case $as_dir in #(((
20687 '') as_dir=./ ;;
20688 */) ;;
20689 *) as_dir=$as_dir/ ;;
20690 esac
20691 for ac_exec_ext in '' $ac_executable_extensions; do
20692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20693 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20695 break 2
20696 fi
20697 done
20698 done
20699 IFS=$as_save_IFS
20700
20701 ;;
20702 esac ;;
20703 esac
20704 fi
20705 LINT=$ac_cv_path_LINT
20706 if test -n "$LINT"; then
20707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20708 printf "%s\n" "$LINT" >&6; }
20709 else
20710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20711 printf "%s\n" "no" >&6; }
20712 fi
20713
20714
20715 if test "x$LINT" = "x"; then
20716 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20717 fi
20718 elif test "x$use_lint" = x"no" ; then
20719 if test "x$LINT" != "x"; then
20720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20721 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20722 fi
20723 else
20724 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20725 fi
20726
20727 # User supplied flags override default flags
20728 if test "x$LINT_FLAGS" != "x"; then
20729 lint_options=$LINT_FLAGS
20730 fi
20731
20732 LINT_FLAGS=$lint_options
20733
20734 if test "x$LINT" != x; then
20735 LINT_TRUE=
20736 LINT_FALSE='#'
20737 else
20738 LINT_TRUE='#'
20739 LINT_FALSE=
20740 fi
20741
20742
20743
20744 LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
20745
20746 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc xvmc-wrapper.pc"
20747
20748 cat >confcache <<\_ACEOF
20749 # This file is a shell script that caches the results of configure
20750 # tests run on this system so they can be shared between configure
20751 # scripts and configure runs, see configure's option --config-cache.
20752 # It is not useful on other systems. If it contains results you don't
20753 # want to keep, you may remove or edit it.
20754 #
20755 # config.status only pays attention to the cache file if you give it
20756 # the --recheck option to rerun configure.
20757 #
20758 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20759 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20760 # following values.
20761
20762 _ACEOF
20763
20764 # The following way of writing the cache mishandles newlines in values,
20765 # but we know of no workaround that is simple, portable, and efficient.
20766 # So, we kill variables containing newlines.
20767 # Ultrix sh set writes to stderr and can't be redirected directly,
20768 # and sets the high bit in the cache file unless we assign to the vars.
20769 (
20770 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20771 eval ac_val=\$$ac_var
20772 case $ac_val in #(
20773 *${as_nl}*)
20774 case $ac_var in #(
20775 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20776 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20777 esac
20778 case $ac_var in #(
20779 _ | IFS | as_nl) ;; #(
20780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20781 *) { eval $ac_var=; unset $ac_var;} ;;
20782 esac ;;
20783 esac
20784 done
20785
20786 (set) 2>&1 |
20787 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20788 *${as_nl}ac_space=\ *)
20789 # 'set' does not quote correctly, so add quotes: double-quote
20790 # substitution turns \\\\ into \\, and sed turns \\ into \.
20791 sed -n \
20792 "s/'/'\\\\''/g;
20793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20794 ;; #(
20795 *)
20796 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20798 ;;
20799 esac |
20800 sort
20801 ) |
20802 sed '
20803 /^ac_cv_env_/b end
20804 t clear
20805 :clear
20806 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20807 t end
20808 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20809 :end' >>confcache
20810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20811 if test -w "$cache_file"; then
20812 if test "x$cache_file" != "x/dev/null"; then
20813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20814 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20815 if test ! -f "$cache_file" || test -h "$cache_file"; then
20816 cat confcache >"$cache_file"
20817 else
20818 case $cache_file in #(
20819 */* | ?:*)
20820 mv -f confcache "$cache_file"$$ &&
20821 mv -f "$cache_file"$$ "$cache_file" ;; #(
20822 *)
20823 mv -f confcache "$cache_file" ;;
20824 esac
20825 fi
20826 fi
20827 else
20828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20829 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20830 fi
20831 fi
20832 rm -f confcache
20833
20834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20835 # Let make expand exec_prefix.
20836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20837
20838 DEFS=-DHAVE_CONFIG_H
20839
20840 ac_libobjs=
20841 ac_ltlibobjs=
20842 U=
20843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20844 # 1. Remove the extension, and $U if already installed.
20845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20846 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20848 # will be set to the directory where LIBOBJS objects are built.
20849 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20850 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20851 done
20852 LIBOBJS=$ac_libobjs
20853
20854 LTLIBOBJS=$ac_ltlibobjs
20855
20856
20857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20858 printf %s "checking that generated files are newer than configure... " >&6; }
20859 if test -n "$am_sleep_pid"; then
20860 # Hide warnings about reused PIDs.
20861 wait $am_sleep_pid 2>/dev/null
20862 fi
20863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20864 printf "%s\n" "done" >&6; }
20865 case $enable_silent_rules in # (((
20866 yes) AM_DEFAULT_VERBOSITY=0;;
20867 no) AM_DEFAULT_VERBOSITY=1;;
20868 esac
20869 if test $am_cv_make_support_nested_variables = yes; then
20870 AM_V='$(V)'
20871 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20872 else
20873 AM_V=$AM_DEFAULT_VERBOSITY
20874 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20875 fi
20876
20877 if test -n "$EXEEXT"; then
20878 am__EXEEXT_TRUE=
20879 am__EXEEXT_FALSE='#'
20880 else
20881 am__EXEEXT_TRUE='#'
20882 am__EXEEXT_FALSE=
20883 fi
20884
20885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20886 as_fn_error $? "conditional \"AMDEP\" was never defined.
20887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20888 fi
20889 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20890 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20892 fi
20893 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20894 as_fn_error $? "conditional \"LINT\" was never defined.
20895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20896 fi
20897
20898 : "${CONFIG_STATUS=./config.status}"
20899 ac_write_fail=0
20900 ac_clean_files_save=$ac_clean_files
20901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20903 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20904 as_write_fail=0
20905 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20906 #! $SHELL
20907 # Generated by $as_me.
20908 # Run this file to recreate the current configuration.
20909 # Compiler output produced by configure, useful for debugging
20910 # configure, is in config.log if it exists.
20911
20912 debug=false
20913 ac_cs_recheck=false
20914 ac_cs_silent=false
20915
20916 SHELL=\${CONFIG_SHELL-$SHELL}
20917 export SHELL
20918 _ASEOF
20919 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20920 ## -------------------- ##
20921 ## M4sh Initialization. ##
20922 ## -------------------- ##
20923
20924 # Be more Bourne compatible
20925 DUALCASE=1; export DUALCASE # for MKS sh
20926 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20927 then :
20928 emulate sh
20929 NULLCMD=:
20930 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20931 # is contrary to our usage. Disable this feature.
20932 alias -g '${1+"$@"}'='"$@"'
20933 setopt NO_GLOB_SUBST
20934 else case e in #(
20935 e) case `(set -o) 2>/dev/null` in #(
20936 *posix*) :
20937 set -o posix ;; #(
20938 *) :
20939 ;;
20940 esac ;;
20941 esac
20942 fi
20943
20944
20945
20946 # Reset variables that may have inherited troublesome values from
20947 # the environment.
20948
20949 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20950 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20951 # side effect of setting IFS to empty, thus disabling word splitting.)
20952 # Quoting is to prevent editors from complaining about space-tab.
20953 as_nl='
20954 '
20955 export as_nl
20956 IFS=" "" $as_nl"
20957
20958 PS1='$ '
20959 PS2='> '
20960 PS4='+ '
20961
20962 # Ensure predictable behavior from utilities with locale-dependent output.
20963 LC_ALL=C
20964 export LC_ALL
20965 LANGUAGE=C
20966 export LANGUAGE
20967
20968 # We cannot yet rely on "unset" to work, but we need these variables
20969 # to be unset--not just set to an empty or harmless value--now, to
20970 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20971 # also avoids known problems related to "unset" and subshell syntax
20972 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20973 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20974 do eval test \${$as_var+y} \
20975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20976 done
20977
20978 # Ensure that fds 0, 1, and 2 are open.
20979 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20980 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20981 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20982
20983 # The user is always right.
20984 if ${PATH_SEPARATOR+false} :; then
20985 PATH_SEPARATOR=:
20986 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20987 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20988 PATH_SEPARATOR=';'
20989 }
20990 fi
20991
20992
20993 # Find who we are. Look in the path if we contain no directory separator.
20994 as_myself=
20995 case $0 in #((
20996 *[\\/]* ) as_myself=$0 ;;
20997 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20998 for as_dir in $PATH
20999 do
21000 IFS=$as_save_IFS
21001 case $as_dir in #(((
21002 '') as_dir=./ ;;
21003 */) ;;
21004 *) as_dir=$as_dir/ ;;
21005 esac
21006 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21007 done
21008 IFS=$as_save_IFS
21009
21010 ;;
21011 esac
21012 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21013 # in which case we are not to be found in the path.
21014 if test "x$as_myself" = x; then
21015 as_myself=$0
21016 fi
21017 if test ! -f "$as_myself"; then
21018 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21019 exit 1
21020 fi
21021
21022
21023
21024 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21025 # ----------------------------------------
21026 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21027 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21028 # script with STATUS, using 1 if that was 0.
21029 as_fn_error ()
21030 {
21031 as_status=$1; test $as_status -eq 0 && as_status=1
21032 if test "$4"; then
21033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21035 fi
21036 printf "%s\n" "$as_me: error: $2" >&2
21037 as_fn_exit $as_status
21038 } # as_fn_error
21039
21040
21041 # as_fn_set_status STATUS
21042 # -----------------------
21043 # Set $? to STATUS, without forking.
21044 as_fn_set_status ()
21045 {
21046 return $1
21047 } # as_fn_set_status
21048
21049 # as_fn_exit STATUS
21050 # -----------------
21051 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21052 as_fn_exit ()
21053 {
21054 set +e
21055 as_fn_set_status $1
21056 exit $1
21057 } # as_fn_exit
21058
21059 # as_fn_unset VAR
21060 # ---------------
21061 # Portably unset VAR.
21062 as_fn_unset ()
21063 {
21064 { eval $1=; unset $1;}
21065 }
21066 as_unset=as_fn_unset
21067
21068 # as_fn_append VAR VALUE
21069 # ----------------------
21070 # Append the text in VALUE to the end of the definition contained in VAR. Take
21071 # advantage of any shell optimizations that allow amortized linear growth over
21072 # repeated appends, instead of the typical quadratic growth present in naive
21073 # implementations.
21074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21075 then :
21076 eval 'as_fn_append ()
21077 {
21078 eval $1+=\$2
21079 }'
21080 else case e in #(
21081 e) as_fn_append ()
21082 {
21083 eval $1=\$$1\$2
21084 } ;;
21085 esac
21086 fi # as_fn_append
21087
21088 # as_fn_arith ARG...
21089 # ------------------
21090 # Perform arithmetic evaluation on the ARGs, and store the result in the
21091 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21092 # must be portable across $(()) and expr.
21093 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21094 then :
21095 eval 'as_fn_arith ()
21096 {
21097 as_val=$(( $* ))
21098 }'
21099 else case e in #(
21100 e) as_fn_arith ()
21101 {
21102 as_val=`expr "$@" || test $? -eq 1`
21103 } ;;
21104 esac
21105 fi # as_fn_arith
21106
21107
21108 if expr a : '\(a\)' >/dev/null 2>&1 &&
21109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21110 as_expr=expr
21111 else
21112 as_expr=false
21113 fi
21114
21115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21116 as_basename=basename
21117 else
21118 as_basename=false
21119 fi
21120
21121 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21122 as_dirname=dirname
21123 else
21124 as_dirname=false
21125 fi
21126
21127 as_me=`$as_basename -- "$0" ||
21128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21129 X"$0" : 'X\(//\)$' \| \
21130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21131 printf "%s\n" X/"$0" |
21132 sed '/^.*\/\([^/][^/]*\)\/*$/{
21133 s//\1/
21134 q
21135 }
21136 /^X\/\(\/\/\)$/{
21137 s//\1/
21138 q
21139 }
21140 /^X\/\(\/\).*/{
21141 s//\1/
21142 q
21143 }
21144 s/.*/./; q'`
21145
21146 # Avoid depending upon Character Ranges.
21147 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21148 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21149 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21150 as_cr_digits='0123456789'
21151 as_cr_alnum=$as_cr_Letters$as_cr_digits
21152
21153
21154 # Determine whether it's possible to make 'echo' print without a newline.
21155 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21156 # for compatibility with existing Makefiles.
21157 ECHO_C= ECHO_N= ECHO_T=
21158 case `echo -n x` in #(((((
21159 -n*)
21160 case `echo 'xy\c'` in
21161 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21162 xy) ECHO_C='\c';;
21163 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21164 ECHO_T=' ';;
21165 esac;;
21166 *)
21167 ECHO_N='-n';;
21168 esac
21169
21170 # For backward compatibility with old third-party macros, we provide
21171 # the shell variables $as_echo and $as_echo_n. New code should use
21172 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21173 as_echo='printf %s\n'
21174 as_echo_n='printf %s'
21175
21176 rm -f conf$$ conf$$.exe conf$$.file
21177 if test -d conf$$.dir; then
21178 rm -f conf$$.dir/conf$$.file
21179 else
21180 rm -f conf$$.dir
21181 mkdir conf$$.dir 2>/dev/null
21182 fi
21183 if (echo >conf$$.file) 2>/dev/null; then
21184 if ln -s conf$$.file conf$$ 2>/dev/null; then
21185 as_ln_s='ln -s'
21186 # ... but there are two gotchas:
21187 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21188 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21189 # In both cases, we have to default to 'cp -pR'.
21190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21191 as_ln_s='cp -pR'
21192 elif ln conf$$.file conf$$ 2>/dev/null; then
21193 as_ln_s=ln
21194 else
21195 as_ln_s='cp -pR'
21196 fi
21197 else
21198 as_ln_s='cp -pR'
21199 fi
21200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21201 rmdir conf$$.dir 2>/dev/null
21202
21203
21204 # as_fn_mkdir_p
21205 # -------------
21206 # Create "$as_dir" as a directory, including parents if necessary.
21207 as_fn_mkdir_p ()
21208 {
21209
21210 case $as_dir in #(
21211 -*) as_dir=./$as_dir;;
21212 esac
21213 test -d "$as_dir" || eval $as_mkdir_p || {
21214 as_dirs=
21215 while :; do
21216 case $as_dir in #(
21217 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21218 *) as_qdir=$as_dir;;
21219 esac
21220 as_dirs="'$as_qdir' $as_dirs"
21221 as_dir=`$as_dirname -- "$as_dir" ||
21222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21223 X"$as_dir" : 'X\(//\)[^/]' \| \
21224 X"$as_dir" : 'X\(//\)$' \| \
21225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21226 printf "%s\n" X"$as_dir" |
21227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21228 s//\1/
21229 q
21230 }
21231 /^X\(\/\/\)[^/].*/{
21232 s//\1/
21233 q
21234 }
21235 /^X\(\/\/\)$/{
21236 s//\1/
21237 q
21238 }
21239 /^X\(\/\).*/{
21240 s//\1/
21241 q
21242 }
21243 s/.*/./; q'`
21244 test -d "$as_dir" && break
21245 done
21246 test -z "$as_dirs" || eval "mkdir $as_dirs"
21247 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21248
21249
21250 } # as_fn_mkdir_p
21251 if mkdir -p . 2>/dev/null; then
21252 as_mkdir_p='mkdir -p "$as_dir"'
21253 else
21254 test -d ./-p && rmdir ./-p
21255 as_mkdir_p=false
21256 fi
21257
21258
21259 # as_fn_executable_p FILE
21260 # -----------------------
21261 # Test if FILE is an executable regular file.
21262 as_fn_executable_p ()
21263 {
21264 test -f "$1" && test -x "$1"
21265 } # as_fn_executable_p
21266 as_test_x='test -x'
21267 as_executable_p=as_fn_executable_p
21268
21269 # Sed expression to map a string onto a valid CPP name.
21270 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21271 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21272
21273 # Sed expression to map a string onto a valid variable name.
21274 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21275 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21276
21277
21278 exec 6>&1
21279 ## ----------------------------------- ##
21280 ## Main body of $CONFIG_STATUS script. ##
21281 ## ----------------------------------- ##
21282 _ASEOF
21283 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21284
21285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21286 # Save the log message, to keep $0 and so on meaningful, and to
21287 # report actual input values of CONFIG_FILES etc. instead of their
21288 # values after options handling.
21289 ac_log="
21290 This file was extended by libXvMC $as_me 1.0.15, which was
21291 generated by GNU Autoconf 2.72. Invocation command line was
21292
21293 CONFIG_FILES = $CONFIG_FILES
21294 CONFIG_HEADERS = $CONFIG_HEADERS
21295 CONFIG_LINKS = $CONFIG_LINKS
21296 CONFIG_COMMANDS = $CONFIG_COMMANDS
21297 $ $0 $@
21298
21299 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21300 "
21301
21302 _ACEOF
21303
21304 case $ac_config_files in *"
21305 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21306 esac
21307
21308 case $ac_config_headers in *"
21309 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21310 esac
21311
21312
21313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21314 # Files that config.status was made for.
21315 config_files="$ac_config_files"
21316 config_headers="$ac_config_headers"
21317 config_commands="$ac_config_commands"
21318
21319 _ACEOF
21320
21321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21322 ac_cs_usage="\
21323 '$as_me' instantiates files and other configuration actions
21324 from templates according to the current configuration. Unless the files
21325 and actions are specified as TAGs, all are instantiated by default.
21326
21327 Usage: $0 [OPTION]... [TAG]...
21328
21329 -h, --help print this help, then exit
21330 -V, --version print version number and configuration settings, then exit
21331 --config print configuration, then exit
21332 -q, --quiet, --silent
21333 do not print progress messages
21334 -d, --debug don't remove temporary files
21335 --recheck update $as_me by reconfiguring in the same conditions
21336 --file=FILE[:TEMPLATE]
21337 instantiate the configuration file FILE
21338 --header=FILE[:TEMPLATE]
21339 instantiate the configuration header FILE
21340
21341 Configuration files:
21342 $config_files
21343
21344 Configuration headers:
21345 $config_headers
21346
21347 Configuration commands:
21348 $config_commands
21349
21350 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>."
21351
21352 _ACEOF
21353 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21354 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21356 ac_cs_config='$ac_cs_config_escaped'
21357 ac_cs_version="\\
21358 libXvMC config.status 1.0.15
21359 configured by $0, generated by GNU Autoconf 2.72,
21360 with options \\"\$ac_cs_config\\"
21361
21362 Copyright (C) 2023 Free Software Foundation, Inc.
21363 This config.status script is free software; the Free Software Foundation
21364 gives unlimited permission to copy, distribute and modify it."
21365
21366 ac_pwd='$ac_pwd'
21367 srcdir='$srcdir'
21368 INSTALL='$INSTALL'
21369 MKDIR_P='$MKDIR_P'
21370 AWK='$AWK'
21371 test -n "\$AWK" || AWK=awk
21372 _ACEOF
21373
21374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21375 # The default lists apply if the user does not specify any file.
21376 ac_need_defaults=:
21377 while test $# != 0
21378 do
21379 case $1 in
21380 --*=?*)
21381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21383 ac_shift=:
21384 ;;
21385 --*=)
21386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21387 ac_optarg=
21388 ac_shift=:
21389 ;;
21390 *)
21391 ac_option=$1
21392 ac_optarg=$2
21393 ac_shift=shift
21394 ;;
21395 esac
21396
21397 case $ac_option in
21398 # Handling of the options.
21399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21400 ac_cs_recheck=: ;;
21401 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21402 printf "%s\n" "$ac_cs_version"; exit ;;
21403 --config | --confi | --conf | --con | --co | --c )
21404 printf "%s\n" "$ac_cs_config"; exit ;;
21405 --debug | --debu | --deb | --de | --d | -d )
21406 debug=: ;;
21407 --file | --fil | --fi | --f )
21408 $ac_shift
21409 case $ac_optarg in
21410 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21411 '') as_fn_error $? "missing file argument" ;;
21412 esac
21413 as_fn_append CONFIG_FILES " '$ac_optarg'"
21414 ac_need_defaults=false;;
21415 --header | --heade | --head | --hea )
21416 $ac_shift
21417 case $ac_optarg in
21418 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21419 esac
21420 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21421 ac_need_defaults=false;;
21422 --he | --h)
21423 # Conflict between --help and --header
21424 as_fn_error $? "ambiguous option: '$1'
21425 Try '$0 --help' for more information.";;
21426 --help | --hel | -h )
21427 printf "%s\n" "$ac_cs_usage"; exit ;;
21428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21430 ac_cs_silent=: ;;
21431
21432 # This is an error.
21433 -*) as_fn_error $? "unrecognized option: '$1'
21434 Try '$0 --help' for more information." ;;
21435
21436 *) as_fn_append ac_config_targets " $1"
21437 ac_need_defaults=false ;;
21438
21439 esac
21440 shift
21441 done
21442
21443 ac_configure_extra_args=
21444
21445 if $ac_cs_silent; then
21446 exec 6>/dev/null
21447 ac_configure_extra_args="$ac_configure_extra_args --silent"
21448 fi
21449
21450 _ACEOF
21451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21452 if \$ac_cs_recheck; then
21453 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21454 shift
21455 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21456 CONFIG_SHELL='$SHELL'
21457 export CONFIG_SHELL
21458 exec "\$@"
21459 fi
21460
21461 _ACEOF
21462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21463 exec 5>>config.log
21464 {
21465 echo
21466 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21467 ## Running $as_me. ##
21468 _ASBOX
21469 printf "%s\n" "$ac_log"
21470 } >&5
21471
21472 _ACEOF
21473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21474 #
21475 # INIT-COMMANDS
21476 #
21477 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21478
21479
21480 # The HP-UX ksh and POSIX shell print the target directory to stdout
21481 # if CDPATH is set.
21482 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21483
21484 sed_quote_subst='$sed_quote_subst'
21485 double_quote_subst='$double_quote_subst'
21486 delay_variable_subst='$delay_variable_subst'
21487 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21488 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21489 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21490 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21491 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21492 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21493 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21494 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21495 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21496 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21497 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21498 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21499 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21500 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21501 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21502 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21503 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21504 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21505 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21506 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21507 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21508 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21509 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21510 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21511 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21512 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21513 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21514 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21515 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21516 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21517 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21518 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21519 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21520 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21521 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21522 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21523 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21524 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21525 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21526 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21527 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21528 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21529 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21530 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21531 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21532 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21533 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21534 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21535 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21536 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21537 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21538 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21539 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21540 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21541 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21542 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21543 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21544 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21545 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21546 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21547 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"`'
21548 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21549 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21550 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21551 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21552 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21553 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21554 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21555 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21556 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21557 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21558 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21559 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21560 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21561 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21562 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21563 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21564 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21565 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21566 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21567 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21568 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21569 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21570 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21571 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21572 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21573 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21574 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21575 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21576 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21577 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21578 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21579 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21580 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21581 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21582 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21583 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21584 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21585 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21586 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21587 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21588 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21589 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21590 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21591 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21592 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21593 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21594 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21595 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21596 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21597 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21598 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21599 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21600 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21601 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21602 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21603 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21604 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21605 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21606 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21607 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21608 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21609 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21610 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21611 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21612 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21613 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21614 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21615 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21616 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21617 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21618 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21619 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21620 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21621 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21622 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21623 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21624
21625 LTCC='$LTCC'
21626 LTCFLAGS='$LTCFLAGS'
21627 compiler='$compiler_DEFAULT'
21628
21629 # A function that is used when there is no print builtin or printf.
21630 func_fallback_echo ()
21631 {
21632 eval 'cat <<_LTECHO_EOF
21633 \$1
21634 _LTECHO_EOF'
21635 }
21636
21637 # Quote evaled strings.
21638 for var in SHELL \
21639 ECHO \
21640 PATH_SEPARATOR \
21641 SED \
21642 GREP \
21643 EGREP \
21644 FGREP \
21645 LD \
21646 NM \
21647 LN_S \
21648 lt_SP2NL \
21649 lt_NL2SP \
21650 reload_flag \
21651 FILECMD \
21652 OBJDUMP \
21653 deplibs_check_method \
21654 file_magic_cmd \
21655 file_magic_glob \
21656 want_nocaseglob \
21657 DLLTOOL \
21658 sharedlib_from_linklib_cmd \
21659 AR \
21660 archiver_list_spec \
21661 STRIP \
21662 RANLIB \
21663 CC \
21664 CFLAGS \
21665 compiler \
21666 lt_cv_sys_global_symbol_pipe \
21667 lt_cv_sys_global_symbol_to_cdecl \
21668 lt_cv_sys_global_symbol_to_import \
21669 lt_cv_sys_global_symbol_to_c_name_address \
21670 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21671 lt_cv_nm_interface \
21672 nm_file_list_spec \
21673 lt_cv_truncate_bin \
21674 lt_prog_compiler_no_builtin_flag \
21675 lt_prog_compiler_pic \
21676 lt_prog_compiler_wl \
21677 lt_prog_compiler_static \
21678 lt_cv_prog_compiler_c_o \
21679 need_locks \
21680 MANIFEST_TOOL \
21681 DSYMUTIL \
21682 NMEDIT \
21683 LIPO \
21684 OTOOL \
21685 OTOOL64 \
21686 shrext_cmds \
21687 export_dynamic_flag_spec \
21688 whole_archive_flag_spec \
21689 compiler_needs_object \
21690 with_gnu_ld \
21691 allow_undefined_flag \
21692 no_undefined_flag \
21693 hardcode_libdir_flag_spec \
21694 hardcode_libdir_separator \
21695 exclude_expsyms \
21696 include_expsyms \
21697 file_list_spec \
21698 variables_saved_for_relink \
21699 libname_spec \
21700 library_names_spec \
21701 soname_spec \
21702 install_override_mode \
21703 finish_eval \
21704 old_striplib \
21705 striplib; do
21706 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21707 *[\\\\\\\`\\"\\\$]*)
21708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21709 ;;
21710 *)
21711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21712 ;;
21713 esac
21714 done
21715
21716 # Double-quote double-evaled strings.
21717 for var in reload_cmds \
21718 old_postinstall_cmds \
21719 old_postuninstall_cmds \
21720 old_archive_cmds \
21721 extract_expsyms_cmds \
21722 old_archive_from_new_cmds \
21723 old_archive_from_expsyms_cmds \
21724 archive_cmds \
21725 archive_expsym_cmds \
21726 module_cmds \
21727 module_expsym_cmds \
21728 export_symbols_cmds \
21729 prelink_cmds \
21730 postlink_cmds \
21731 postinstall_cmds \
21732 postuninstall_cmds \
21733 finish_cmds \
21734 sys_lib_search_path_spec \
21735 configure_time_dlsearch_path \
21736 configure_time_lt_sys_library_path; do
21737 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21738 *[\\\\\\\`\\"\\\$]*)
21739 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21740 ;;
21741 *)
21742 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21743 ;;
21744 esac
21745 done
21746
21747 ac_aux_dir='$ac_aux_dir'
21748
21749 # See if we are running on zsh, and set the options that allow our
21750 # commands through without removal of \ escapes INIT.
21751 if test -n "\${ZSH_VERSION+set}"; then
21752 setopt NO_GLOB_SUBST
21753 fi
21754
21755
21756 PACKAGE='$PACKAGE'
21757 VERSION='$VERSION'
21758 RM='$RM'
21759 ofile='$ofile'
21760
21761
21762
21763
21764 _ACEOF
21765
21766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21767
21768 # Handling of arguments.
21769 for ac_config_target in $ac_config_targets
21770 do
21771 case $ac_config_target in
21772 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21773 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21774 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21775 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21776 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21777 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
21778 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
21779 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21780 "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;;
21781 "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;;
21782 "xvmc-wrapper.pc") CONFIG_FILES="$CONFIG_FILES xvmc-wrapper.pc" ;;
21783
21784 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21785 esac
21786 done
21787
21788
21789 # If the user did not use the arguments to specify the items to instantiate,
21790 # then the envvar interface is used. Set only those that are not.
21791 # We use the long form for the default assignment because of an extremely
21792 # bizarre bug on SunOS 4.1.3.
21793 if $ac_need_defaults; then
21794 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21795 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21796 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21797 fi
21798
21799 # Have a temporary directory for convenience. Make it in the build tree
21800 # simply because there is no reason against having it here, and in addition,
21801 # creating and moving files from /tmp can sometimes cause problems.
21802 # Hook for its removal unless debugging.
21803 # Note that there is a small window in which the directory will not be cleaned:
21804 # after its creation but before its name has been assigned to '$tmp'.
21805 $debug ||
21806 {
21807 tmp= ac_tmp=
21808 trap 'exit_status=$?
21809 : "${ac_tmp:=$tmp}"
21810 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21811 ' 0
21812 trap 'as_fn_exit 1' 1 2 13 15
21813 }
21814 # Create a (secure) tmp directory for tmp files.
21815
21816 {
21817 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21818 test -d "$tmp"
21819 } ||
21820 {
21821 tmp=./conf$$-$RANDOM
21822 (umask 077 && mkdir "$tmp")
21823 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21824 ac_tmp=$tmp
21825
21826 # Set up the scripts for CONFIG_FILES section.
21827 # No need to generate them if there are no CONFIG_FILES.
21828 # This happens for instance with './config.status config.h'.
21829 if test -n "$CONFIG_FILES"; then
21830
21831
21832 ac_cr=`echo X | tr X '\015'`
21833 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21834 # But we know of no other shell where ac_cr would be empty at this
21835 # point, so we can use a bashism as a fallback.
21836 if test "x$ac_cr" = x; then
21837 eval ac_cr=\$\'\\r\'
21838 fi
21839 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21840 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21841 ac_cs_awk_cr='\\r'
21842 else
21843 ac_cs_awk_cr=$ac_cr
21844 fi
21845
21846 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21847 _ACEOF
21848
21849
21850 {
21851 echo "cat >conf$$subs.awk <<_ACEOF" &&
21852 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21853 echo "_ACEOF"
21854 } >conf$$subs.sh ||
21855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21856 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21857 ac_delim='%!_!# '
21858 for ac_last_try in false false false false false :; do
21859 . ./conf$$subs.sh ||
21860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21861
21862 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21863 if test $ac_delim_n = $ac_delim_num; then
21864 break
21865 elif $ac_last_try; then
21866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21867 else
21868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21869 fi
21870 done
21871 rm -f conf$$subs.sh
21872
21873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21874 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21875 _ACEOF
21876 sed -n '
21877 h
21878 s/^/S["/; s/!.*/"]=/
21879 p
21880 g
21881 s/^[^!]*!//
21882 :repl
21883 t repl
21884 s/'"$ac_delim"'$//
21885 t delim
21886 :nl
21887 h
21888 s/\(.\{148\}\)..*/\1/
21889 t more1
21890 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21891 p
21892 n
21893 b repl
21894 :more1
21895 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21896 p
21897 g
21898 s/.\{148\}//
21899 t nl
21900 :delim
21901 h
21902 s/\(.\{148\}\)..*/\1/
21903 t more2
21904 s/["\\]/\\&/g; s/^/"/; s/$/"/
21905 p
21906 b
21907 :more2
21908 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21909 p
21910 g
21911 s/.\{148\}//
21912 t delim
21913 ' <conf$$subs.awk | sed '
21914 /^[^""]/{
21915 N
21916 s/\n//
21917 }
21918 ' >>$CONFIG_STATUS || ac_write_fail=1
21919 rm -f conf$$subs.awk
21920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21921 _ACAWK
21922 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21923 for (key in S) S_is_set[key] = 1
21924 FS = ""
21925
21926 }
21927 {
21928 line = $ 0
21929 nfields = split(line, field, "@")
21930 substed = 0
21931 len = length(field[1])
21932 for (i = 2; i < nfields; i++) {
21933 key = field[i]
21934 keylen = length(key)
21935 if (S_is_set[key]) {
21936 value = S[key]
21937 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21938 len += length(value) + length(field[++i])
21939 substed = 1
21940 } else
21941 len += 1 + keylen
21942 }
21943
21944 print line
21945 }
21946
21947 _ACAWK
21948 _ACEOF
21949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21950 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21951 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21952 else
21953 cat
21954 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21955 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21956 _ACEOF
21957
21958 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21959 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21960 # trailing colons and then remove the whole line if VPATH becomes empty
21961 # (actually we leave an empty line to preserve line numbers).
21962 if test "x$srcdir" = x.; then
21963 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21964 h
21965 s///
21966 s/^/:/
21967 s/[ ]*$/:/
21968 s/:\$(srcdir):/:/g
21969 s/:\${srcdir}:/:/g
21970 s/:@srcdir@:/:/g
21971 s/^:*//
21972 s/:*$//
21973 x
21974 s/\(=[ ]*\).*/\1/
21975 G
21976 s/\n//
21977 s/^[^=]*=[ ]*$//
21978 }'
21979 fi
21980
21981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21982 fi # test -n "$CONFIG_FILES"
21983
21984 # Set up the scripts for CONFIG_HEADERS section.
21985 # No need to generate them if there are no CONFIG_HEADERS.
21986 # This happens for instance with './config.status Makefile'.
21987 if test -n "$CONFIG_HEADERS"; then
21988 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21989 BEGIN {
21990 _ACEOF
21991
21992 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21993 # here-document in config.status, that substitutes the proper values into
21994 # config.h.in to produce config.h.
21995
21996 # Create a delimiter string that does not exist in confdefs.h, to ease
21997 # handling of long lines.
21998 ac_delim='%!_!# '
21999 for ac_last_try in false false :; do
22000 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22001 if test -z "$ac_tt"; then
22002 break
22003 elif $ac_last_try; then
22004 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22005 else
22006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22007 fi
22008 done
22009
22010 # For the awk script, D is an array of macro values keyed by name,
22011 # likewise P contains macro parameters if any. Preserve backslash
22012 # newline sequences.
22013
22014 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22015 sed -n '
22016 s/.\{148\}/&'"$ac_delim"'/g
22017 t rset
22018 :rset
22019 s/^[ ]*#[ ]*define[ ][ ]*/ /
22020 t def
22021 d
22022 :def
22023 s/\\$//
22024 t bsnl
22025 s/["\\]/\\&/g
22026 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22027 D["\1"]=" \3"/p
22028 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22029 d
22030 :bsnl
22031 s/["\\]/\\&/g
22032 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22033 D["\1"]=" \3\\\\\\n"\\/p
22034 t cont
22035 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22036 t cont
22037 d
22038 :cont
22039 n
22040 s/.\{148\}/&'"$ac_delim"'/g
22041 t clear
22042 :clear
22043 s/\\$//
22044 t bsnlc
22045 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22046 d
22047 :bsnlc
22048 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22049 b cont
22050 ' <confdefs.h | sed '
22051 s/'"$ac_delim"'/"\\\
22052 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22053
22054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22055 for (key in D) D_is_set[key] = 1
22056 FS = ""
22057 }
22058 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22059 line = \$ 0
22060 split(line, arg, " ")
22061 if (arg[1] == "#") {
22062 defundef = arg[2]
22063 mac1 = arg[3]
22064 } else {
22065 defundef = substr(arg[1], 2)
22066 mac1 = arg[2]
22067 }
22068 split(mac1, mac2, "(") #)
22069 macro = mac2[1]
22070 prefix = substr(line, 1, index(line, defundef) - 1)
22071 if (D_is_set[macro]) {
22072 # Preserve the white space surrounding the "#".
22073 print prefix "define", macro P[macro] D[macro]
22074 next
22075 } else {
22076 # Replace #undef with comments. This is necessary, for example,
22077 # in the case of _POSIX_SOURCE, which is predefined and required
22078 # on some systems where configure will not decide to define it.
22079 if (defundef == "undef") {
22080 print "/*", prefix defundef, macro, "*/"
22081 next
22082 }
22083 }
22084 }
22085 { print }
22086 _ACAWK
22087 _ACEOF
22088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22089 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22090 fi # test -n "$CONFIG_HEADERS"
22091
22092
22093 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22094 shift
22095 for ac_tag
22096 do
22097 case $ac_tag in
22098 :[FHLC]) ac_mode=$ac_tag; continue;;
22099 esac
22100 case $ac_mode$ac_tag in
22101 :[FHL]*:*);;
22102 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22103 :[FH]-) ac_tag=-:-;;
22104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22105 esac
22106 ac_save_IFS=$IFS
22107 IFS=:
22108 set x $ac_tag
22109 IFS=$ac_save_IFS
22110 shift
22111 ac_file=$1
22112 shift
22113
22114 case $ac_mode in
22115 :L) ac_source=$1;;
22116 :[FH])
22117 ac_file_inputs=
22118 for ac_f
22119 do
22120 case $ac_f in
22121 -) ac_f="$ac_tmp/stdin";;
22122 *) # Look for the file first in the build tree, then in the source tree
22123 # (if the path is not absolute). The absolute path cannot be DOS-style,
22124 # because $ac_f cannot contain ':'.
22125 test -f "$ac_f" ||
22126 case $ac_f in
22127 [\\/$]*) false;;
22128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22129 esac ||
22130 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22131 esac
22132 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22133 as_fn_append ac_file_inputs " '$ac_f'"
22134 done
22135
22136 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22137 # use $as_me), people would be surprised to read:
22138 # /* config.h. Generated by config.status. */
22139 configure_input='Generated from '`
22140 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22141 `' by configure.'
22142 if test x"$ac_file" != x-; then
22143 configure_input="$ac_file. $configure_input"
22144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22145 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22146 fi
22147 # Neutralize special characters interpreted by sed in replacement strings.
22148 case $configure_input in #(
22149 *\&* | *\|* | *\\* )
22150 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22151 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22152 *) ac_sed_conf_input=$configure_input;;
22153 esac
22154
22155 case $ac_tag in
22156 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22158 esac
22159 ;;
22160 esac
22161
22162 ac_dir=`$as_dirname -- "$ac_file" ||
22163 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22164 X"$ac_file" : 'X\(//\)[^/]' \| \
22165 X"$ac_file" : 'X\(//\)$' \| \
22166 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22167 printf "%s\n" X"$ac_file" |
22168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\/\)[^/].*/{
22173 s//\1/
22174 q
22175 }
22176 /^X\(\/\/\)$/{
22177 s//\1/
22178 q
22179 }
22180 /^X\(\/\).*/{
22181 s//\1/
22182 q
22183 }
22184 s/.*/./; q'`
22185 as_dir="$ac_dir"; as_fn_mkdir_p
22186 ac_builddir=.
22187
22188 case "$ac_dir" in
22189 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22190 *)
22191 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22192 # A ".." for each directory in $ac_dir_suffix.
22193 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22194 case $ac_top_builddir_sub in
22195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22197 esac ;;
22198 esac
22199 ac_abs_top_builddir=$ac_pwd
22200 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22201 # for backward compatibility:
22202 ac_top_builddir=$ac_top_build_prefix
22203
22204 case $srcdir in
22205 .) # We are building in place.
22206 ac_srcdir=.
22207 ac_top_srcdir=$ac_top_builddir_sub
22208 ac_abs_top_srcdir=$ac_pwd ;;
22209 [\\/]* | ?:[\\/]* ) # Absolute name.
22210 ac_srcdir=$srcdir$ac_dir_suffix;
22211 ac_top_srcdir=$srcdir
22212 ac_abs_top_srcdir=$srcdir ;;
22213 *) # Relative name.
22214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22215 ac_top_srcdir=$ac_top_build_prefix$srcdir
22216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22217 esac
22218 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22219
22220
22221 case $ac_mode in
22222 :F)
22223 #
22224 # CONFIG_FILE
22225 #
22226
22227 case $INSTALL in
22228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22230 esac
22231 ac_MKDIR_P=$MKDIR_P
22232 case $MKDIR_P in
22233 [\\/$]* | ?:[\\/]* ) ;;
22234 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22235 esac
22236 _ACEOF
22237
22238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22239 # If the template does not know about datarootdir, expand it.
22240 # FIXME: This hack should be removed a few years after 2.60.
22241 ac_datarootdir_hack=; ac_datarootdir_seen=
22242 ac_sed_dataroot='
22243 /datarootdir/ {
22244 p
22245 q
22246 }
22247 /@datadir@/p
22248 /@docdir@/p
22249 /@infodir@/p
22250 /@localedir@/p
22251 /@mandir@/p'
22252 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22253 *datarootdir*) ac_datarootdir_seen=yes;;
22254 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22256 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22257 _ACEOF
22258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22259 ac_datarootdir_hack='
22260 s&@datadir@&$datadir&g
22261 s&@docdir@&$docdir&g
22262 s&@infodir@&$infodir&g
22263 s&@localedir@&$localedir&g
22264 s&@mandir@&$mandir&g
22265 s&\\\${datarootdir}&$datarootdir&g' ;;
22266 esac
22267 _ACEOF
22268
22269 # Neutralize VPATH when '$srcdir' = '.'.
22270 # Shell code in configure.ac might set extrasub.
22271 # FIXME: do we really want to maintain this feature?
22272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22273 ac_sed_extra="$ac_vpsub
22274 $extrasub
22275 _ACEOF
22276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22277 :t
22278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22279 s|@configure_input@|$ac_sed_conf_input|;t t
22280 s&@top_builddir@&$ac_top_builddir_sub&;t t
22281 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22282 s&@srcdir@&$ac_srcdir&;t t
22283 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22284 s&@top_srcdir@&$ac_top_srcdir&;t t
22285 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22286 s&@builddir@&$ac_builddir&;t t
22287 s&@abs_builddir@&$ac_abs_builddir&;t t
22288 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22289 s&@INSTALL@&$ac_INSTALL&;t t
22290 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22291 $ac_datarootdir_hack
22292 "
22293 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22294 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22295
22296 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22297 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22298 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22299 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22301 which seems to be undefined. Please make sure it is defined" >&5
22302 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22303 which seems to be undefined. Please make sure it is defined" >&2;}
22304
22305 rm -f "$ac_tmp/stdin"
22306 case $ac_file in
22307 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22308 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22309 esac \
22310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22311 ;;
22312 :H)
22313 #
22314 # CONFIG_HEADER
22315 #
22316 if test x"$ac_file" != x-; then
22317 {
22318 printf "%s\n" "/* $configure_input */" >&1 \
22319 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22320 } >"$ac_tmp/config.h" \
22321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22322 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22324 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22325 else
22326 rm -f "$ac_file"
22327 mv "$ac_tmp/config.h" "$ac_file" \
22328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22329 fi
22330 else
22331 printf "%s\n" "/* $configure_input */" >&1 \
22332 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22333 || as_fn_error $? "could not create -" "$LINENO" 5
22334 fi
22335 # Compute "$ac_file"'s index in $config_headers.
22336 _am_arg="$ac_file"
22337 _am_stamp_count=1
22338 for _am_header in $config_headers :; do
22339 case $_am_header in
22340 $_am_arg | $_am_arg:* )
22341 break ;;
22342 * )
22343 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22344 esac
22345 done
22346 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22347 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22348 X"$_am_arg" : 'X\(//\)[^/]' \| \
22349 X"$_am_arg" : 'X\(//\)$' \| \
22350 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22351 printf "%s\n" X"$_am_arg" |
22352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22353 s//\1/
22354 q
22355 }
22356 /^X\(\/\/\)[^/].*/{
22357 s//\1/
22358 q
22359 }
22360 /^X\(\/\/\)$/{
22361 s//\1/
22362 q
22363 }
22364 /^X\(\/\).*/{
22365 s//\1/
22366 q
22367 }
22368 s/.*/./; q'`/stamp-h$_am_stamp_count
22369 ;;
22370
22371 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22372 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22373 ;;
22374 esac
22375
22376
22377 case $ac_file$ac_mode in
22378 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22379 # Older Autoconf quotes --file arguments for eval, but not when files
22380 # are listed without --file. Let's play safe and only enable the eval
22381 # if we detect the quoting.
22382 # TODO: see whether this extra hack can be removed once we start
22383 # requiring Autoconf 2.70 or later.
22384 case $CONFIG_FILES in #(
22385 *\'*) :
22386 eval set x "$CONFIG_FILES" ;; #(
22387 *) :
22388 set x $CONFIG_FILES ;; #(
22389 *) :
22390 ;;
22391 esac
22392 shift
22393 # Used to flag and report bootstrapping failures.
22394 am_rc=0
22395 for am_mf
22396 do
22397 # Strip MF so we end up with the name of the file.
22398 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22399 # Check whether this is an Automake generated Makefile which includes
22400 # dependency-tracking related rules and includes.
22401 # Grep'ing the whole file directly is not great: AIX grep has a line
22402 # limit of 2048, but all sed's we know have understand at least 4000.
22403 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22404 || continue
22405 am_dirpart=`$as_dirname -- "$am_mf" ||
22406 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22407 X"$am_mf" : 'X\(//\)[^/]' \| \
22408 X"$am_mf" : 'X\(//\)$' \| \
22409 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22410 printf "%s\n" X"$am_mf" |
22411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22412 s//\1/
22413 q
22414 }
22415 /^X\(\/\/\)[^/].*/{
22416 s//\1/
22417 q
22418 }
22419 /^X\(\/\/\)$/{
22420 s//\1/
22421 q
22422 }
22423 /^X\(\/\).*/{
22424 s//\1/
22425 q
22426 }
22427 s/.*/./; q'`
22428 am_filepart=`$as_basename -- "$am_mf" ||
22429 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22430 X"$am_mf" : 'X\(//\)$' \| \
22431 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22432 printf "%s\n" X/"$am_mf" |
22433 sed '/^.*\/\([^/][^/]*\)\/*$/{
22434 s//\1/
22435 q
22436 }
22437 /^X\/\(\/\/\)$/{
22438 s//\1/
22439 q
22440 }
22441 /^X\/\(\/\).*/{
22442 s//\1/
22443 q
22444 }
22445 s/.*/./; q'`
22446 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22447 && sed -e '/# am--include-marker/d' "$am_filepart" \
22448 | $MAKE -f - am--depfiles" >&5
22449 (cd "$am_dirpart" \
22450 && sed -e '/# am--include-marker/d' "$am_filepart" \
22451 | $MAKE -f - am--depfiles) >&5 2>&5
22452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } || am_rc=$?
22455 done
22456 if test $am_rc -ne 0; then
22457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22458 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22459 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22460 for automatic dependency tracking. If GNU make was not used, consider
22461 re-running the configure script with MAKE=\"gmake\" (or whatever is
22462 necessary). You can also try re-running configure with the
22463 '--disable-dependency-tracking' option to at least be able to build
22464 the package (albeit without support for automatic dependency tracking).
22465 See 'config.log' for more details" "$LINENO" 5; }
22466 fi
22467 { am_dirpart=; unset am_dirpart;}
22468 { am_filepart=; unset am_filepart;}
22469 { am_mf=; unset am_mf;}
22470 { am_rc=; unset am_rc;}
22471 rm -f conftest-deps.mk
22472 }
22473 ;;
22474 "libtool":C)
22475
22476 # See if we are running on zsh, and set the options that allow our
22477 # commands through without removal of \ escapes.
22478 if test -n "${ZSH_VERSION+set}"; then
22479 setopt NO_GLOB_SUBST
22480 fi
22481
22482 cfgfile=${ofile}T
22483 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22484 $RM "$cfgfile"
22485
22486 cat <<_LT_EOF >> "$cfgfile"
22487 #! $SHELL
22488 # Generated automatically by $as_me ($PACKAGE) $VERSION
22489 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22490
22491 # Provide generalized library-building support services.
22492 # Written by Gordon Matzigkeit, 1996
22493
22494 # Copyright (C) 2024 Free Software Foundation, Inc.
22495 # This is free software; see the source for copying conditions. There is NO
22496 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22497
22498 # GNU Libtool is free software; you can redistribute it and/or modify
22499 # it under the terms of the GNU General Public License as published by
22500 # the Free Software Foundation; either version 2 of the License, or
22501 # (at your option) any later version.
22502 #
22503 # As a special exception to the GNU General Public License, if you
22504 # distribute this file as part of a program or library that is built
22505 # using GNU Libtool, you may include this file under the same
22506 # distribution terms that you use for the rest of that program.
22507 #
22508 # GNU Libtool is distributed in the hope that it will be useful, but
22509 # WITHOUT ANY WARRANTY; without even the implied warranty of
22510 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22511 # GNU General Public License for more details.
22512 #
22513 # You should have received a copy of the GNU General Public License
22514 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22515
22516
22517 # The names of the tagged configurations supported by this script.
22518 available_tags=''
22519
22520 # Configured defaults for sys_lib_dlsearch_path munging.
22521 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22522
22523 # ### BEGIN LIBTOOL CONFIG
22524
22525 # Which release of libtool.m4 was used?
22526 macro_version=$macro_version
22527 macro_revision=$macro_revision
22528
22529 # Whether or not to build shared libraries.
22530 build_libtool_libs=$enable_shared
22531
22532 # Whether or not to build static libraries.
22533 build_old_libs=$enable_static
22534
22535 # What type of objects to build.
22536 pic_mode=$pic_mode
22537
22538 # Whether or not to optimize for fast installation.
22539 fast_install=$enable_fast_install
22540
22541 # Shared archive member basename,for filename based shared library versioning on AIX.
22542 shared_archive_member_spec=$shared_archive_member_spec
22543
22544 # Shell to use when invoking shell scripts.
22545 SHELL=$lt_SHELL
22546
22547 # An echo program that protects backslashes.
22548 ECHO=$lt_ECHO
22549
22550 # The PATH separator for the build system.
22551 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22552
22553 # The host system.
22554 host_alias=$host_alias
22555 host=$host
22556 host_os=$host_os
22557
22558 # The build system.
22559 build_alias=$build_alias
22560 build=$build
22561 build_os=$build_os
22562
22563 # A sed program that does not truncate output.
22564 SED=$lt_SED
22565
22566 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22567 Xsed="\$SED -e 1s/^X//"
22568
22569 # A grep program that handles long lines.
22570 GREP=$lt_GREP
22571
22572 # An ERE matcher.
22573 EGREP=$lt_EGREP
22574
22575 # A literal string matcher.
22576 FGREP=$lt_FGREP
22577
22578 # A BSD- or MS-compatible name lister.
22579 NM=$lt_NM
22580
22581 # Whether we need soft or hard links.
22582 LN_S=$lt_LN_S
22583
22584 # What is the maximum length of a command?
22585 max_cmd_len=$max_cmd_len
22586
22587 # Object file suffix (normally "o").
22588 objext=$ac_objext
22589
22590 # Executable file suffix (normally "").
22591 exeext=$exeext
22592
22593 # whether the shell understands "unset".
22594 lt_unset=$lt_unset
22595
22596 # turn spaces into newlines.
22597 SP2NL=$lt_lt_SP2NL
22598
22599 # turn newlines into spaces.
22600 NL2SP=$lt_lt_NL2SP
22601
22602 # convert \$build file names to \$host format.
22603 to_host_file_cmd=$lt_cv_to_host_file_cmd
22604
22605 # convert \$build files to toolchain format.
22606 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22607
22608 # A file(cmd) program that detects file types.
22609 FILECMD=$lt_FILECMD
22610
22611 # An object symbol dumper.
22612 OBJDUMP=$lt_OBJDUMP
22613
22614 # Method to check whether dependent libraries are shared objects.
22615 deplibs_check_method=$lt_deplibs_check_method
22616
22617 # Command to use when deplibs_check_method = "file_magic".
22618 file_magic_cmd=$lt_file_magic_cmd
22619
22620 # How to find potential files when deplibs_check_method = "file_magic".
22621 file_magic_glob=$lt_file_magic_glob
22622
22623 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22624 want_nocaseglob=$lt_want_nocaseglob
22625
22626 # DLL creation program.
22627 DLLTOOL=$lt_DLLTOOL
22628
22629 # Command to associate shared and link libraries.
22630 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22631
22632 # The archiver.
22633 AR=$lt_AR
22634
22635 # Flags to create an archive (by configure).
22636 lt_ar_flags=$lt_ar_flags
22637
22638 # Flags to create an archive.
22639 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22640
22641 # How to feed a file listing to the archiver.
22642 archiver_list_spec=$lt_archiver_list_spec
22643
22644 # A symbol stripping program.
22645 STRIP=$lt_STRIP
22646
22647 # Commands used to install an old-style archive.
22648 RANLIB=$lt_RANLIB
22649 old_postinstall_cmds=$lt_old_postinstall_cmds
22650 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22651
22652 # Whether to use a lock for old archive extraction.
22653 lock_old_archive_extraction=$lock_old_archive_extraction
22654
22655 # A C compiler.
22656 LTCC=$lt_CC
22657
22658 # LTCC compiler flags.
22659 LTCFLAGS=$lt_CFLAGS
22660
22661 # Take the output of nm and produce a listing of raw symbols and C names.
22662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22663
22664 # Transform the output of nm in a proper C declaration.
22665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22666
22667 # Transform the output of nm into a list of symbols to manually relocate.
22668 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22669
22670 # Transform the output of nm in a C name address pair.
22671 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22672
22673 # Transform the output of nm in a C name address pair when lib prefix is needed.
22674 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22675
22676 # The name lister interface.
22677 nm_interface=$lt_lt_cv_nm_interface
22678
22679 # Specify filename containing input files for \$NM.
22680 nm_file_list_spec=$lt_nm_file_list_spec
22681
22682 # The root where to search for dependent libraries,and where our libraries should be installed.
22683 lt_sysroot=$lt_sysroot
22684
22685 # Command to truncate a binary pipe.
22686 lt_truncate_bin=$lt_lt_cv_truncate_bin
22687
22688 # The name of the directory that contains temporary libtool files.
22689 objdir=$objdir
22690
22691 # Used to examine libraries when file_magic_cmd begins with "file".
22692 MAGIC_CMD=$MAGIC_CMD
22693
22694 # Must we lock files when doing compilation?
22695 need_locks=$lt_need_locks
22696
22697 # Manifest tool.
22698 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22699
22700 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22701 DSYMUTIL=$lt_DSYMUTIL
22702
22703 # Tool to change global to local symbols on Mac OS X.
22704 NMEDIT=$lt_NMEDIT
22705
22706 # Tool to manipulate fat objects and archives on Mac OS X.
22707 LIPO=$lt_LIPO
22708
22709 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22710 OTOOL=$lt_OTOOL
22711
22712 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22713 OTOOL64=$lt_OTOOL64
22714
22715 # Old archive suffix (normally "a").
22716 libext=$libext
22717
22718 # Shared library suffix (normally ".so").
22719 shrext_cmds=$lt_shrext_cmds
22720
22721 # The commands to extract the exported symbol list from a shared archive.
22722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22723
22724 # Variables whose values should be saved in libtool wrapper scripts and
22725 # restored at link time.
22726 variables_saved_for_relink=$lt_variables_saved_for_relink
22727
22728 # Do we need the "lib" prefix for modules?
22729 need_lib_prefix=$need_lib_prefix
22730
22731 # Do we need a version for libraries?
22732 need_version=$need_version
22733
22734 # Library versioning type.
22735 version_type=$version_type
22736
22737 # Shared library runtime path variable.
22738 runpath_var=$runpath_var
22739
22740 # Shared library path variable.
22741 shlibpath_var=$shlibpath_var
22742
22743 # Is shlibpath searched before the hard-coded library search path?
22744 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22745
22746 # Format of library name prefix.
22747 libname_spec=$lt_libname_spec
22748
22749 # List of archive names. First name is the real one, the rest are links.
22750 # The last name is the one that the linker finds with -lNAME
22751 library_names_spec=$lt_library_names_spec
22752
22753 # The coded name of the library, if different from the real name.
22754 soname_spec=$lt_soname_spec
22755
22756 # Permission mode override for installation of shared libraries.
22757 install_override_mode=$lt_install_override_mode
22758
22759 # Command to use after installation of a shared archive.
22760 postinstall_cmds=$lt_postinstall_cmds
22761
22762 # Command to use after uninstallation of a shared archive.
22763 postuninstall_cmds=$lt_postuninstall_cmds
22764
22765 # Commands used to finish a libtool library installation in a directory.
22766 finish_cmds=$lt_finish_cmds
22767
22768 # As "finish_cmds", except a single script fragment to be evaled but
22769 # not shown.
22770 finish_eval=$lt_finish_eval
22771
22772 # Whether we should hardcode library paths into libraries.
22773 hardcode_into_libs=$hardcode_into_libs
22774
22775 # Compile-time system search path for libraries.
22776 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22777
22778 # Detected run-time system search path for libraries.
22779 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22780
22781 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22782 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22783
22784 # Whether dlopen is supported.
22785 dlopen_support=$enable_dlopen
22786
22787 # Whether dlopen of programs is supported.
22788 dlopen_self=$enable_dlopen_self
22789
22790 # Whether dlopen of statically linked programs is supported.
22791 dlopen_self_static=$enable_dlopen_self_static
22792
22793 # Commands to strip libraries.
22794 old_striplib=$lt_old_striplib
22795 striplib=$lt_striplib
22796
22797
22798 # The linker used to build libraries.
22799 LD=$lt_LD
22800
22801 # How to create reloadable object files.
22802 reload_flag=$lt_reload_flag
22803 reload_cmds=$lt_reload_cmds
22804
22805 # Commands used to build an old-style archive.
22806 old_archive_cmds=$lt_old_archive_cmds
22807
22808 # A language specific compiler.
22809 CC=$lt_compiler
22810
22811 # Is the compiler the GNU compiler?
22812 with_gcc=$GCC
22813
22814 # Compiler flag to turn off builtin functions.
22815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22816
22817 # Additional compiler flags for building library objects.
22818 pic_flag=$lt_lt_prog_compiler_pic
22819
22820 # How to pass a linker flag through the compiler.
22821 wl=$lt_lt_prog_compiler_wl
22822
22823 # Compiler flag to prevent dynamic linking.
22824 link_static_flag=$lt_lt_prog_compiler_static
22825
22826 # Does compiler simultaneously support -c and -o options?
22827 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22828
22829 # Whether or not to add -lc for building shared libraries.
22830 build_libtool_need_lc=$archive_cmds_need_lc
22831
22832 # Whether or not to disallow shared libs when runtime libs are static.
22833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22834
22835 # Compiler flag to allow reflexive dlopens.
22836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22837
22838 # Compiler flag to generate shared objects directly from archives.
22839 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22840
22841 # Whether the compiler copes with passing no objects directly.
22842 compiler_needs_object=$lt_compiler_needs_object
22843
22844 # Create an old-style archive from a shared archive.
22845 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22846
22847 # Create a temporary old-style archive to link instead of a shared archive.
22848 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22849
22850 # Commands used to build a shared archive.
22851 archive_cmds=$lt_archive_cmds
22852 archive_expsym_cmds=$lt_archive_expsym_cmds
22853
22854 # Commands used to build a loadable module if different from building
22855 # a shared archive.
22856 module_cmds=$lt_module_cmds
22857 module_expsym_cmds=$lt_module_expsym_cmds
22858
22859 # Whether we are building with GNU ld or not.
22860 with_gnu_ld=$lt_with_gnu_ld
22861
22862 # Flag that allows shared libraries with undefined symbols to be built.
22863 allow_undefined_flag=$lt_allow_undefined_flag
22864
22865 # Flag that enforces no undefined symbols.
22866 no_undefined_flag=$lt_no_undefined_flag
22867
22868 # Flag to hardcode \$libdir into a binary during linking.
22869 # This must work even if \$libdir does not exist
22870 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22871
22872 # Whether we need a single "-rpath" flag with a separated argument.
22873 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22874
22875 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22876 # DIR into the resulting binary.
22877 hardcode_direct=$hardcode_direct
22878
22879 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22880 # DIR into the resulting binary and the resulting library dependency is
22881 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22882 # library is relocated.
22883 hardcode_direct_absolute=$hardcode_direct_absolute
22884
22885 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22886 # into the resulting binary.
22887 hardcode_minus_L=$hardcode_minus_L
22888
22889 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22890 # into the resulting binary.
22891 hardcode_shlibpath_var=$hardcode_shlibpath_var
22892
22893 # Set to "yes" if building a shared library automatically hardcodes DIR
22894 # into the library and all subsequent libraries and executables linked
22895 # against it.
22896 hardcode_automatic=$hardcode_automatic
22897
22898 # Set to yes if linker adds runtime paths of dependent libraries
22899 # to runtime path list.
22900 inherit_rpath=$inherit_rpath
22901
22902 # Whether libtool must link a program against all its dependency libraries.
22903 link_all_deplibs=$link_all_deplibs
22904
22905 # Set to "yes" if exported symbols are required.
22906 always_export_symbols=$always_export_symbols
22907
22908 # The commands to list exported symbols.
22909 export_symbols_cmds=$lt_export_symbols_cmds
22910
22911 # Symbols that should not be listed in the preloaded symbols.
22912 exclude_expsyms=$lt_exclude_expsyms
22913
22914 # Symbols that must always be exported.
22915 include_expsyms=$lt_include_expsyms
22916
22917 # Commands necessary for linking programs (against libraries) with templates.
22918 prelink_cmds=$lt_prelink_cmds
22919
22920 # Commands necessary for finishing linking programs.
22921 postlink_cmds=$lt_postlink_cmds
22922
22923 # Specify filename containing input files.
22924 file_list_spec=$lt_file_list_spec
22925
22926 # How to hardcode a shared library path into an executable.
22927 hardcode_action=$hardcode_action
22928
22929 # ### END LIBTOOL CONFIG
22930
22931 _LT_EOF
22932
22933 cat <<'_LT_EOF' >> "$cfgfile"
22934
22935 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22936
22937 # func_munge_path_list VARIABLE PATH
22938 # -----------------------------------
22939 # VARIABLE is name of variable containing _space_ separated list of
22940 # directories to be munged by the contents of PATH, which is string
22941 # having a format:
22942 # "DIR[:DIR]:"
22943 # string "DIR[ DIR]" will be prepended to VARIABLE
22944 # ":DIR[:DIR]"
22945 # string "DIR[ DIR]" will be appended to VARIABLE
22946 # "DIRP[:DIRP]::[DIRA:]DIRA"
22947 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22948 # "DIRA[ DIRA]" will be appended to VARIABLE
22949 # "DIR[:DIR]"
22950 # VARIABLE will be replaced by "DIR[ DIR]"
22951 func_munge_path_list ()
22952 {
22953 case x$2 in
22954 x)
22955 ;;
22956 *:)
22957 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22958 ;;
22959 x:*)
22960 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22961 ;;
22962 *::*)
22963 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22964 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22965 ;;
22966 *)
22967 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22968 ;;
22969 esac
22970 }
22971
22972
22973 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22974 func_cc_basename ()
22975 {
22976 for cc_temp in $*""; do
22977 case $cc_temp in
22978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22980 \-*) ;;
22981 *) break;;
22982 esac
22983 done
22984 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22985 }
22986
22987
22988 # ### END FUNCTIONS SHARED WITH CONFIGURE
22989
22990 _LT_EOF
22991
22992 case $host_os in
22993 aix3*)
22994 cat <<\_LT_EOF >> "$cfgfile"
22995 # AIX sometimes has problems with the GCC collect2 program. For some
22996 # reason, if we set the COLLECT_NAMES environment variable, the problems
22997 # vanish in a puff of smoke.
22998 if test set != "${COLLECT_NAMES+set}"; then
22999 COLLECT_NAMES=
23000 export COLLECT_NAMES
23001 fi
23002 _LT_EOF
23003 ;;
23004 esac
23005
23006
23007
23008 ltmain=$ac_aux_dir/ltmain.sh
23009
23010
23011 # We use sed instead of cat because bash on DJGPP gets confused if
23012 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23013 # text mode, it properly converts lines to CR/LF. This bash problem
23014 # is reportedly fixed, but why not run on old versions too?
23015 $SED '$q' "$ltmain" >> "$cfgfile" \
23016 || (rm -f "$cfgfile"; exit 1)
23017
23018 mv -f "$cfgfile" "$ofile" ||
23019 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23020 chmod +x "$ofile"
23021
23022 ;;
23023
23024 esac
23025 done # for ac_tag
23026
23027
23028 as_fn_exit 0
23029 _ACEOF
23030 ac_clean_files=$ac_clean_files_save
23031
23032 test $ac_write_fail = 0 ||
23033 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23034
23035
23036 # configure is writing to config.log, and then calls config.status.
23037 # config.status does its own redirection, appending to config.log.
23038 # Unfortunately, on DOS this fails, as config.log is still kept open
23039 # by configure, so config.status won't be able to write to it; its
23040 # output is simply discarded. So we exec the FD to /dev/null,
23041 # effectively closing config.log, so it can be properly (re)opened and
23042 # appended to by config.status. When coming back to configure, we
23043 # need to make the FD available again.
23044 if test "$no_create" != yes; then
23045 ac_cs_success=:
23046 ac_config_status_args=
23047 test "$silent" = yes &&
23048 ac_config_status_args="$ac_config_status_args --quiet"
23049 exec 5>/dev/null
23050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23051 exec 5>>config.log
23052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23053 # would make configure fail if this is the last instruction.
23054 $ac_cs_success || as_fn_exit 1
23055 fi
23056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23058 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23059 fi
23060
23061
23062