configure revision 1.1.1.18 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXi 1.8.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libXi/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601 as_awk_strverscmp='
602 # Use only awk features that work with 7th edition Unix awk (1978).
603 # My, what an old awk you have, Mr. Solaris!
604 END {
605 while (length(v1) && length(v2)) {
606 # Set d1 to be the next thing to compare from v1, and likewise for d2.
607 # Normally this is a single character, but if v1 and v2 contain digits,
608 # compare them as integers and fractions as strverscmp does.
609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610 # Split v1 and v2 into their leading digit string components d1 and d2,
611 # and advance v1 and v2 past the leading digit strings.
612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616 if (d1 ~ /^0/) {
617 if (d2 ~ /^0/) {
618 # Compare two fractions.
619 while (d1 ~ /^0/ && d2 ~ /^0/) {
620 d1 = substr(d1, 2); len1--
621 d2 = substr(d2, 2); len2--
622 }
623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624 # The two components differ in length, and the common prefix
625 # contains only leading zeros. Consider the longer to be less.
626 d1 = -len1
627 d2 = -len2
628 } else {
629 # Otherwise, compare as strings.
630 d1 = "x" d1
631 d2 = "x" d2
632 }
633 } else {
634 # A fraction is less than an integer.
635 exit 1
636 }
637 } else {
638 if (d2 ~ /^0/) {
639 # An integer is greater than a fraction.
640 exit 2
641 } else {
642 # Compare two integers.
643 d1 += 0
644 d2 += 0
645 }
646 }
647 } else {
648 # The normal case, without worrying about digits.
649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651 }
652 if (d1 < d2) exit 1
653 if (d1 > d2) exit 2
654 }
655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656 # which mishandles some comparisons of empty strings to integers.
657 if (length(v2)) exit 1
658 if (length(v1)) exit 2
659 }
660 '
661
662 test -n "$DJDIR" || exec 7<&0 </dev/null
663 exec 6>&1
664
665 # Name of the host.
666 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667 # so uname gets run too.
668 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670 #
671 # Initializations.
672 #
673 ac_default_prefix=/usr/local
674 ac_clean_files=
675 ac_config_libobj_dir=.
676 LIBOBJS=
677 cross_compiling=no
678 subdirs=
679 MFLAGS=
680 MAKEFLAGS=
681
682 # Identity of this package.
683 PACKAGE_NAME='libXi'
684 PACKAGE_TARNAME='libXi'
685 PACKAGE_VERSION='1.8.2'
686 PACKAGE_STRING='libXi 1.8.2'
687 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXi/issues'
688 PACKAGE_URL=''
689
690 ac_unique_file="Makefile.am"
691 # Factoring default headers for most tests.
692 ac_includes_default="\
693 #include <stddef.h>
694 #ifdef HAVE_STDIO_H
695 # include <stdio.h>
696 #endif
697 #ifdef HAVE_STDLIB_H
698 # include <stdlib.h>
699 #endif
700 #ifdef HAVE_STRING_H
701 # include <string.h>
702 #endif
703 #ifdef HAVE_INTTYPES_H
704 # include <inttypes.h>
705 #endif
706 #ifdef HAVE_STDINT_H
707 # include <stdint.h>
708 #endif
709 #ifdef HAVE_STRINGS_H
710 # include <strings.h>
711 #endif
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef HAVE_UNISTD_H
719 # include <unistd.h>
720 #endif"
721
722 ac_header_c_list=
723 ac_subst_vars='am__EXEEXT_FALSE
724 am__EXEEXT_TRUE
725 LTLIBOBJS
726 LIBOBJS
727 INSTALL_MANPAGES_FALSE
728 INSTALL_MANPAGES_TRUE
729 HAVE_DOCTOOLS_FALSE
730 HAVE_DOCTOOLS_TRUE
731 XFIXES_LIBS
732 XFIXES_CFLAGS
733 XI_LIBS
734 XI_CFLAGS
735 XTMALLOC_ZERO_CFLAGS
736 XMALLOC_ZERO_CFLAGS
737 MALLOC_ZERO_CFLAGS
738 HAVE_ASCIIDOC_FALSE
739 HAVE_ASCIIDOC_TRUE
740 ASCIIDOC
741 HAVE_STYLESHEETS_FALSE
742 HAVE_STYLESHEETS_TRUE
743 XSL_STYLESHEET
744 STYLESHEET_SRCDIR
745 XORG_SGML_PATH
746 HAVE_XSLTPROC_FALSE
747 HAVE_XSLTPROC_TRUE
748 XSLTPROC
749 HAVE_FOP_FALSE
750 HAVE_FOP_TRUE
751 FOP
752 HAVE_XMLTO_FALSE
753 HAVE_XMLTO_TRUE
754 HAVE_XMLTO_TEXT_FALSE
755 HAVE_XMLTO_TEXT_TRUE
756 XMLTO
757 ENABLE_SPECS_FALSE
758 ENABLE_SPECS_TRUE
759 ENABLE_DOCS_FALSE
760 ENABLE_DOCS_TRUE
761 MAN_SUBSTS
762 XORG_MAN_PAGE
763 ADMIN_MAN_DIR
764 DRIVER_MAN_DIR
765 MISC_MAN_DIR
766 FILE_MAN_DIR
767 LIB_MAN_DIR
768 APP_MAN_DIR
769 ADMIN_MAN_SUFFIX
770 DRIVER_MAN_SUFFIX
771 MISC_MAN_SUFFIX
772 FILE_MAN_SUFFIX
773 LIB_MAN_SUFFIX
774 APP_MAN_SUFFIX
775 INSTALL_CMD
776 PKG_CONFIG_LIBDIR
777 PKG_CONFIG_PATH
778 PKG_CONFIG
779 CHANGELOG_CMD
780 STRICT_CFLAGS
781 CWARNFLAGS
782 BASE_CFLAGS
783 LT_SYS_LIBRARY_PATH
784 OTOOL64
785 OTOOL
786 LIPO
787 NMEDIT
788 DSYMUTIL
789 MANIFEST_TOOL
790 RANLIB
791 ac_ct_AR
792 AR
793 DLLTOOL
794 OBJDUMP
795 FILECMD
796 LN_S
797 NM
798 ac_ct_DUMPBIN
799 DUMPBIN
800 LD
801 FGREP
802 EGREP
803 GREP
804 SED
805 am__fastdepCC_FALSE
806 am__fastdepCC_TRUE
807 CCDEPMODE
808 am__nodep
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__include
813 DEPDIR
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 LIBTOOL
830 AM_BACKSLASH
831 AM_DEFAULT_VERBOSITY
832 AM_DEFAULT_V
833 AM_V
834 CSCOPE
835 ETAGS
836 CTAGS
837 am__untar
838 am__tar
839 AMTAR
840 am__leading_dot
841 SET_MAKE
842 AWK
843 mkdir_p
844 MKDIR_P
845 INSTALL_STRIP_PROGRAM
846 STRIP
847 install_sh
848 MAKEINFO
849 AUTOHEADER
850 AUTOMAKE
851 AUTOCONF
852 ACLOCAL
853 VERSION
854 PACKAGE
855 CYGPATH_W
856 am__isrc
857 INSTALL_DATA
858 INSTALL_SCRIPT
859 INSTALL_PROGRAM
860 target_alias
861 host_alias
862 build_alias
863 LIBS
864 ECHO_T
865 ECHO_N
866 ECHO_C
867 DEFS
868 mandir
869 localedir
870 libdir
871 psdir
872 pdfdir
873 dvidir
874 htmldir
875 infodir
876 docdir
877 oldincludedir
878 includedir
879 runstatedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL
899 am__quote'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_silent_rules
904 enable_shared
905 enable_static
906 with_pic
907 enable_fast_install
908 with_aix_soname
909 enable_dependency_tracking
910 with_gnu_ld
911 with_sysroot
912 enable_libtool_lock
913 enable_selective_werror
914 enable_strict_compilation
915 enable_docs
916 enable_specs
917 with_xmlto
918 with_fop
919 with_xsltproc
920 with_asciidoc
921 enable_malloc0returnsnull
922 '
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 LT_SYS_LIBRARY_PATH
932 PKG_CONFIG
933 PKG_CONFIG_PATH
934 PKG_CONFIG_LIBDIR
935 XMLTO
936 FOP
937 XSLTPROC
938 ASCIIDOC
939 XI_CFLAGS
940 XI_LIBS
941 XFIXES_CFLAGS
942 XFIXES_LIBS'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 runstatedir='${localstatedir}/run'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1001 ac_prev=
1002 continue
1003 fi
1004
1005 case $ac_option in
1006 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *=) ac_optarg= ;;
1008 *) ac_optarg=yes ;;
1009 esac
1010
1011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
1014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1039
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1062
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1067
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1072
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -runstatedir | --runstatedir | --runstatedi | --runstated \
1233 | --runstate | --runstat | --runsta | --runst | --runs \
1234 | --run | --ru | --r)
1235 ac_prev=runstatedir ;;
1236 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1237 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1238 | --run=* | --ru=* | --r=*)
1239 runstatedir=$ac_optarg ;;
1240
1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242 ac_prev=sbindir ;;
1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244 | --sbi=* | --sb=*)
1245 sbindir=$ac_optarg ;;
1246
1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249 | --sharedst | --shareds | --shared | --share | --shar \
1250 | --sha | --sh)
1251 ac_prev=sharedstatedir ;;
1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255 | --sha=* | --sh=*)
1256 sharedstatedir=$ac_optarg ;;
1257
1258 -site | --site | --sit)
1259 ac_prev=site ;;
1260 -site=* | --site=* | --sit=*)
1261 site=$ac_optarg ;;
1262
1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264 ac_prev=srcdir ;;
1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266 srcdir=$ac_optarg ;;
1267
1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269 | --syscon | --sysco | --sysc | --sys | --sy)
1270 ac_prev=sysconfdir ;;
1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273 sysconfdir=$ac_optarg ;;
1274
1275 -target | --target | --targe | --targ | --tar | --ta | --t)
1276 ac_prev=target_alias ;;
1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278 target_alias=$ac_optarg ;;
1279
1280 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 verbose=yes ;;
1282
1283 -version | --version | --versio | --versi | --vers | -V)
1284 ac_init_version=: ;;
1285
1286 -with-* | --with-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid package name: \`$ac_useropt'"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=\$ac_optarg ;;
1301
1302 -without-* | --without-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error $? "invalid package name: \`$ac_useropt'"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1310 *"
1311 "with_$ac_useropt"
1312 "*) ;;
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1315 esac
1316 eval with_$ac_useropt=no ;;
1317
1318 --x)
1319 # Obsolete; use --with-x.
1320 with_x=yes ;;
1321
1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323 | --x-incl | --x-inc | --x-in | --x-i)
1324 ac_prev=x_includes ;;
1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327 x_includes=$ac_optarg ;;
1328
1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331 ac_prev=x_libraries ;;
1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334 x_libraries=$ac_optarg ;;
1335
1336 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1337 Try \`$0 --help' for more information"
1338 ;;
1339
1340 *=*)
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
1343 case $ac_envvar in #(
1344 '' | [0-9]* | *[!_$as_cr_alnum]* )
1345 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1346 esac
1347 eval $ac_envvar=\$ac_optarg
1348 export $ac_envvar ;;
1349
1350 *)
1351 # FIXME: should be removed in autoconf 3.0.
1352 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1355 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1356 ;;
1357
1358 esac
1359 done
1360
1361 if test -n "$ac_prev"; then
1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363 as_fn_error $? "missing argument to $ac_option"
1364 fi
1365
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
1369 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1370 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 esac
1372 fi
1373
1374 # Check all directory arguments for consistency.
1375 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1376 datadir sysconfdir sharedstatedir localstatedir includedir \
1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1378 libdir localedir mandir runstatedir
1379 do
1380 eval ac_val=\$$ac_var
1381 # Remove trailing slashes.
1382 case $ac_val in
1383 */ )
1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1385 eval $ac_var=\$ac_val;;
1386 esac
1387 # Be sure to have absolute directory names.
1388 case $ac_val in
1389 [\\/$]* | ?:[\\/]* ) continue;;
1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1391 esac
1392 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1393 done
1394
1395 # There might be people who depend on the old broken behavior: `$host'
1396 # used to hold the argument of --host etc.
1397 # FIXME: To remove some day.
1398 build=$build_alias
1399 host=$host_alias
1400 target=$target_alias
1401
1402 # FIXME: To remove some day.
1403 if test "x$host_alias" != x; then
1404 if test "x$build_alias" = x; then
1405 cross_compiling=maybe
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1408 fi
1409 fi
1410
1411 ac_tool_prefix=
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413
1414 test "$silent" = yes && exec 6>/dev/null
1415
1416
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error $? "working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error $? "pwd does not report name of working directory"
1423
1424
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 printf "%s\n" X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\/\)[^/].*/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\/\)$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\).*/{
1448 s//\1/
1449 q
1450 }
1451 s/.*/./; q'`
1452 srcdir=$ac_confdir
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 srcdir=..
1455 fi
1456 else
1457 ac_srcdir_defaulted=no
1458 fi
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1462 fi
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1466 pwd)`
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 srcdir=.
1470 fi
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1474 case $srcdir in
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 esac
1477 for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 done
1483
1484 #
1485 # Report the --help message.
1486 #
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1490 cat <<_ACEOF
1491 \`configure' configures libXi 1.8.2 to adapt to many kinds of systems.
1492
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1497
1498 Defaults for the options are specified in brackets.
1499
1500 Configuration:
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking ...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 [PREFIX]
1516
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1521
1522 For better control, use the options below.
1523
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1546
1547 cat <<\_ACEOF
1548
1549 Program names:
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1558 fi
1559
1560 if test -n "$ac_init_help"; then
1561 case $ac_init_help in
1562 short | recursive ) echo "Configuration of libXi 1.8.2:";;
1563 esac
1564 cat <<\_ACEOF
1565
1566 Optional Features:
1567 --disable-option-checking ignore unrecognized --enable/--with options
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --enable-silent-rules less verbose build output (undo: "make V=1")
1571 --disable-silent-rules verbose build output (undo: "make V=0")
1572 --enable-shared[=PKGS] build shared libraries [default=yes]
1573 --enable-static[=PKGS] build static libraries [default=yes]
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation [default=yes]
1576 --enable-dependency-tracking
1577 do not reject slow dependency extractors
1578 --disable-dependency-tracking
1579 speeds up one-time build
1580 --disable-libtool-lock avoid locking (might break parallel builds)
1581 --disable-selective-werror
1582 Turn off selective compiler errors. (default:
1583 enabled)
1584 --enable-strict-compilation
1585 Enable all warnings from compiler and make them
1586 errors (default: disabled)
1587 --enable-docs Enable building the documentation (default: yes)
1588 --enable-specs Enable building the specs (default: yes)
1589 --enable-malloc0returnsnull
1590 malloc(0) returns NULL (default: auto)
1591
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1596 both]
1597 --with-aix-soname=aix|svr4|both
1598 shared library versioning (aka "SONAME") variant to
1599 provide on AIX, [default=aix].
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1602 compiler's sysroot if not specified).
1603 --with-xmlto Use xmlto to regenerate documentation (default:
1604 auto)
1605 --with-fop Use fop to regenerate documentation (default: auto)
1606 --with-xsltproc Use xsltproc for the transformation of XML documents
1607 (default: auto)
1608 --with-asciidoc Use asciidoc to regenerate documentation (default:
1609 auto)
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 LT_SYS_LIBRARY_PATH
1620 User-defined run-time library search path.
1621 PKG_CONFIG path to pkg-config utility
1622 PKG_CONFIG_PATH
1623 directories to add to pkg-config's search path
1624 PKG_CONFIG_LIBDIR
1625 path overriding pkg-config's built-in search path
1626 XMLTO Path to xmlto command
1627 FOP Path to fop command
1628 XSLTPROC Path to xsltproc command
1629 ASCIIDOC Path to asciidoc command
1630 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1631 XI_LIBS linker flags for XI, overriding pkg-config
1632 XFIXES_CFLAGS
1633 C compiler flags for XFIXES, overriding pkg-config
1634 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for configure.gnu first; this name is used for a wrapper for
1686 # Metaconfig's "Configure" on case-insensitive file systems.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1693 else
1694 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1697 done
1698 fi
1699
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702 cat <<\_ACEOF
1703 libXi configure 1.8.2
1704 generated by GNU Autoconf 2.71
1705
1706 Copyright (C) 2021 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1711 fi
1712
1713 ## ------------------------ ##
1714 ## Autoconf initialization. ##
1715 ## ------------------------ ##
1716
1717 # ac_fn_c_try_compile LINENO
1718 # --------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest.beam
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 printf "%s\n" "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext
1743 then :
1744 ac_retval=0
1745 else $as_nop
1746 printf "%s\n" "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_compile
1755
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_link ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 printf "%s\n" "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest$ac_exeext
1784 }
1785 then :
1786 ac_retval=0
1787 else $as_nop
1788 printf "%s\n" "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=1
1792 fi
1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795 # interfere with the next link command; also delete a directory that is
1796 # left behind by Apple's compiler. We do this before executing the actions.
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_link
1802
1803 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804 # -------------------------------------------------------
1805 # Tests whether HEADER exists and can be compiled using the include files in
1806 # INCLUDES, setting the cache variable VAR accordingly.
1807 ac_fn_c_check_header_compile ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 printf %s "checking for $2... " >&6; }
1812 if eval test \${$3+y}
1813 then :
1814 printf %s "(cached) " >&6
1815 else $as_nop
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"
1822 then :
1823 eval "$3=yes"
1824 else $as_nop
1825 eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_header_compile
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 printf %s "checking for $2... " >&6; }
1844 if eval test \${$3+y}
1845 then :
1846 printf %s "(cached) " >&6
1847 else $as_nop
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below. */
1856
1857 #include <limits.h>
1858 #undef $2
1859
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863 #ifdef __cplusplus
1864 extern "C"
1865 #endif
1866 char $2 ();
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1871 choke me
1872 #endif
1873
1874 int
1875 main (void)
1876 {
1877 return $2 ();
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_link "$LINENO"
1883 then :
1884 eval "$3=yes"
1885 else $as_nop
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1889 conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 printf "%s\n" "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897
1898 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1899 # ------------------------------------------------------------------
1900 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1901 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1902 ac_fn_check_decl ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 as_decl_name=`echo $2|sed 's/ *(.*//'`
1906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1907 printf %s "checking whether $as_decl_name is declared... " >&6; }
1908 if eval test \${$3+y}
1909 then :
1910 printf %s "(cached) " >&6
1911 else $as_nop
1912 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1913 eval ac_save_FLAGS=\$$6
1914 as_fn_append $6 " $5"
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $4
1918 int
1919 main (void)
1920 {
1921 #ifndef $as_decl_name
1922 #ifdef __cplusplus
1923 (void) $as_decl_use;
1924 #else
1925 (void) $as_decl_name;
1926 #endif
1927 #endif
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"
1934 then :
1935 eval "$3=yes"
1936 else $as_nop
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1940 eval $6=\$ac_save_FLAGS
1941
1942 fi
1943 eval ac_res=\$$3
1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 printf "%s\n" "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_check_decl
1949
1950 # ac_fn_c_try_run LINENO
1951 # ----------------------
1952 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1953 # executables *can* be run.
1954 ac_fn_c_try_run ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { { ac_try="$ac_link"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 printf "%s\n" "$ac_try_echo"; } >&5
1964 (eval "$ac_link") 2>&5
1965 ac_status=$?
1966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1968 { { case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 printf "%s\n" "$ac_try_echo"; } >&5
1974 (eval "$ac_try") 2>&5
1975 ac_status=$?
1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; }; }
1978 then :
1979 ac_retval=0
1980 else $as_nop
1981 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1982 printf "%s\n" "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=$ac_status
1986 fi
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1990
1991 } # ac_fn_c_try_run
1992 ac_configure_args_raw=
1993 for ac_arg
1994 do
1995 case $ac_arg in
1996 *\'*)
1997 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1998 esac
1999 as_fn_append ac_configure_args_raw " '$ac_arg'"
2000 done
2001
2002 case $ac_configure_args_raw in
2003 *$as_nl*)
2004 ac_safe_unquote= ;;
2005 *)
2006 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2007 ac_unsafe_a="$ac_unsafe_z#~"
2008 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2009 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2010 esac
2011
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2015
2016 It was created by libXi $as_me 1.8.2, which was
2017 generated by GNU Autoconf 2.71. Invocation command line was
2018
2019 $ $0$ac_configure_args_raw
2020
2021 _ACEOF
2022 exec 5>>config.log
2023 {
2024 cat <<_ASUNAME
2025 ## --------- ##
2026 ## Platform. ##
2027 ## --------- ##
2028
2029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034
2035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2037
2038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2041 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2045
2046 _ASUNAME
2047
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051 IFS=$as_save_IFS
2052 case $as_dir in #(((
2053 '') as_dir=./ ;;
2054 */) ;;
2055 *) as_dir=$as_dir/ ;;
2056 esac
2057 printf "%s\n" "PATH: $as_dir"
2058 done
2059 IFS=$as_save_IFS
2060
2061 } >&5
2062
2063 cat >&5 <<_ACEOF
2064
2065
2066 ## ----------- ##
2067 ## Core tests. ##
2068 ## ----------- ##
2069
2070 _ACEOF
2071
2072
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2078 ac_configure_args=
2079 ac_configure_args0=
2080 ac_configure_args1=
2081 ac_must_keep_next=false
2082 for ac_pass in 1 2
2083 do
2084 for ac_arg
2085 do
2086 case $ac_arg in
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2090 continue ;;
2091 *\'*)
2092 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2093 esac
2094 case $ac_pass in
2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2096 2)
2097 as_fn_append ac_configure_args1 " '$ac_arg'"
2098 if test $ac_must_keep_next = true; then
2099 ac_must_keep_next=false # Got value, back to normal.
2100 else
2101 case $ac_arg in
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108 esac
2109 ;;
2110 -* ) ac_must_keep_next=true ;;
2111 esac
2112 fi
2113 as_fn_append ac_configure_args " '$ac_arg'"
2114 ;;
2115 esac
2116 done
2117 done
2118 { ac_configure_args0=; unset ac_configure_args0;}
2119 { ac_configure_args1=; unset ac_configure_args1;}
2120
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log. We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127 # Sanitize IFS.
2128 IFS=" "" $as_nl"
2129 # Save into config.log some information that might help in debugging.
2130 {
2131 echo
2132
2133 printf "%s\n" "## ---------------- ##
2134 ## Cache variables. ##
2135 ## ---------------- ##"
2136 echo
2137 # The following way of writing the cache mishandles newlines in values,
2138 (
2139 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in #(
2142 *${as_nl}*)
2143 case $ac_var in #(
2144 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2145 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146 esac
2147 case $ac_var in #(
2148 _ | IFS | as_nl) ;; #(
2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150 *) { eval $ac_var=; unset $ac_var;} ;;
2151 esac ;;
2152 esac
2153 done
2154 (set) 2>&1 |
2155 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2156 *${as_nl}ac_space=\ *)
2157 sed -n \
2158 "s/'\''/'\''\\\\'\'''\''/g;
2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160 ;; #(
2161 *)
2162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2163 ;;
2164 esac |
2165 sort
2166 )
2167 echo
2168
2169 printf "%s\n" "## ----------------- ##
2170 ## Output variables. ##
2171 ## ----------------- ##"
2172 echo
2173 for ac_var in $ac_subst_vars
2174 do
2175 eval ac_val=\$$ac_var
2176 case $ac_val in
2177 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 esac
2179 printf "%s\n" "$ac_var='\''$ac_val'\''"
2180 done | sort
2181 echo
2182
2183 if test -n "$ac_subst_files"; then
2184 printf "%s\n" "## ------------------- ##
2185 ## File substitutions. ##
2186 ## ------------------- ##"
2187 echo
2188 for ac_var in $ac_subst_files
2189 do
2190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 printf "%s\n" "$ac_var='\''$ac_val'\''"
2195 done | sort
2196 echo
2197 fi
2198
2199 if test -s confdefs.h; then
2200 printf "%s\n" "## ----------- ##
2201 ## confdefs.h. ##
2202 ## ----------- ##"
2203 echo
2204 cat confdefs.h
2205 echo
2206 fi
2207 test "$ac_signal" != 0 &&
2208 printf "%s\n" "$as_me: caught signal $ac_signal"
2209 printf "%s\n" "$as_me: exit $exit_status"
2210 } >&5
2211 rm -f core *.core core.conftest.* &&
2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2213 exit $exit_status
2214 ' 0
2215 for ac_signal in 1 2 13 15; do
2216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2217 done
2218 ac_signal=0
2219
2220 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2221 rm -f -r conftest* confdefs.h
2222
2223 printf "%s\n" "/* confdefs.h */" > confdefs.h
2224
2225 # Predefined preprocessor variables.
2226
2227 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2228
2229 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2230
2231 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2232
2233 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2234
2235 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2236
2237 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2238
2239
2240 # Let the site file select an alternate cache file if it wants to.
2241 # Prefer an explicitly selected file to automatically selected ones.
2242 if test -n "$CONFIG_SITE"; then
2243 ac_site_files="$CONFIG_SITE"
2244 elif test "x$prefix" != xNONE; then
2245 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2246 else
2247 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2248 fi
2249
2250 for ac_site_file in $ac_site_files
2251 do
2252 case $ac_site_file in #(
2253 */*) :
2254 ;; #(
2255 *) :
2256 ac_site_file=./$ac_site_file ;;
2257 esac
2258 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2260 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2261 sed 's/^/| /' "$ac_site_file" >&5
2262 . "$ac_site_file" \
2263 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2265 as_fn_error $? "failed to load site script $ac_site_file
2266 See \`config.log' for more details" "$LINENO" 5; }
2267 fi
2268 done
2269
2270 if test -r "$cache_file"; then
2271 # Some versions of bash will fail to source /dev/null (special files
2272 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2273 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2275 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2276 case $cache_file in
2277 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2278 *) . "./$cache_file";;
2279 esac
2280 fi
2281 else
2282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2283 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2284 >$cache_file
2285 fi
2286
2287 # Test code for whether the C compiler supports C89 (global declarations)
2288 ac_c_conftest_c89_globals='
2289 /* Does the compiler advertise C89 conformance?
2290 Do not test the value of __STDC__, because some compilers set it to 0
2291 while being otherwise adequately conformant. */
2292 #if !defined __STDC__
2293 # error "Compiler does not advertise C89 conformance"
2294 #endif
2295
2296 #include <stddef.h>
2297 #include <stdarg.h>
2298 struct stat;
2299 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2300 struct buf { int x; };
2301 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2302 static char *e (p, i)
2303 char **p;
2304 int i;
2305 {
2306 return p[i];
2307 }
2308 static char *f (char * (*g) (char **, int), char **p, ...)
2309 {
2310 char *s;
2311 va_list v;
2312 va_start (v,p);
2313 s = g (p, va_arg (v,int));
2314 va_end (v);
2315 return s;
2316 }
2317
2318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2319 function prototypes and stuff, but not \xHH hex character constants.
2320 These do not provoke an error unfortunately, instead are silently treated
2321 as an "x". The following induces an error, until -std is added to get
2322 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2323 array size at least. It is necessary to write \x00 == 0 to get something
2324 that is true only with -std. */
2325 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2326
2327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2328 inside strings and character constants. */
2329 #define FOO(x) '\''x'\''
2330 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2331
2332 int test (int i, double x);
2333 struct s1 {int (*f) (int a);};
2334 struct s2 {int (*f) (double a);};
2335 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2336 int, int);'
2337
2338 # Test code for whether the C compiler supports C89 (body of main).
2339 ac_c_conftest_c89_main='
2340 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2341 '
2342
2343 # Test code for whether the C compiler supports C99 (global declarations)
2344 ac_c_conftest_c99_globals='
2345 // Does the compiler advertise C99 conformance?
2346 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2347 # error "Compiler does not advertise C99 conformance"
2348 #endif
2349
2350 #include <stdbool.h>
2351 extern int puts (const char *);
2352 extern int printf (const char *, ...);
2353 extern int dprintf (int, const char *, ...);
2354 extern void *malloc (size_t);
2355
2356 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2357 // dprintf is used instead of fprintf to avoid needing to declare
2358 // FILE and stderr.
2359 #define debug(...) dprintf (2, __VA_ARGS__)
2360 #define showlist(...) puts (#__VA_ARGS__)
2361 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2362 static void
2363 test_varargs_macros (void)
2364 {
2365 int x = 1234;
2366 int y = 5678;
2367 debug ("Flag");
2368 debug ("X = %d\n", x);
2369 showlist (The first, second, and third items.);
2370 report (x>y, "x is %d but y is %d", x, y);
2371 }
2372
2373 // Check long long types.
2374 #define BIG64 18446744073709551615ull
2375 #define BIG32 4294967295ul
2376 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2377 #if !BIG_OK
2378 #error "your preprocessor is broken"
2379 #endif
2380 #if BIG_OK
2381 #else
2382 #error "your preprocessor is broken"
2383 #endif
2384 static long long int bignum = -9223372036854775807LL;
2385 static unsigned long long int ubignum = BIG64;
2386
2387 struct incomplete_array
2388 {
2389 int datasize;
2390 double data[];
2391 };
2392
2393 struct named_init {
2394 int number;
2395 const wchar_t *name;
2396 double average;
2397 };
2398
2399 typedef const char *ccp;
2400
2401 static inline int
2402 test_restrict (ccp restrict text)
2403 {
2404 // See if C++-style comments work.
2405 // Iterate through items via the restricted pointer.
2406 // Also check for declarations in for loops.
2407 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2408 continue;
2409 return 0;
2410 }
2411
2412 // Check varargs and va_copy.
2413 static bool
2414 test_varargs (const char *format, ...)
2415 {
2416 va_list args;
2417 va_start (args, format);
2418 va_list args_copy;
2419 va_copy (args_copy, args);
2420
2421 const char *str = "";
2422 int number = 0;
2423 float fnumber = 0;
2424
2425 while (*format)
2426 {
2427 switch (*format++)
2428 {
2429 case '\''s'\'': // string
2430 str = va_arg (args_copy, const char *);
2431 break;
2432 case '\''d'\'': // int
2433 number = va_arg (args_copy, int);
2434 break;
2435 case '\''f'\'': // float
2436 fnumber = va_arg (args_copy, double);
2437 break;
2438 default:
2439 break;
2440 }
2441 }
2442 va_end (args_copy);
2443 va_end (args);
2444
2445 return *str && number && fnumber;
2446 }
2447 '
2448
2449 # Test code for whether the C compiler supports C99 (body of main).
2450 ac_c_conftest_c99_main='
2451 // Check bool.
2452 _Bool success = false;
2453 success |= (argc != 0);
2454
2455 // Check restrict.
2456 if (test_restrict ("String literal") == 0)
2457 success = true;
2458 char *restrict newvar = "Another string";
2459
2460 // Check varargs.
2461 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2462 test_varargs_macros ();
2463
2464 // Check flexible array members.
2465 struct incomplete_array *ia =
2466 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2467 ia->datasize = 10;
2468 for (int i = 0; i < ia->datasize; ++i)
2469 ia->data[i] = i * 1.234;
2470
2471 // Check named initializers.
2472 struct named_init ni = {
2473 .number = 34,
2474 .name = L"Test wide string",
2475 .average = 543.34343,
2476 };
2477
2478 ni.number = 58;
2479
2480 int dynamic_array[ni.number];
2481 dynamic_array[0] = argv[0][0];
2482 dynamic_array[ni.number - 1] = 543;
2483
2484 // work around unused variable warnings
2485 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2486 || dynamic_array[ni.number - 1] != 543);
2487 '
2488
2489 # Test code for whether the C compiler supports C11 (global declarations)
2490 ac_c_conftest_c11_globals='
2491 // Does the compiler advertise C11 conformance?
2492 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2493 # error "Compiler does not advertise C11 conformance"
2494 #endif
2495
2496 // Check _Alignas.
2497 char _Alignas (double) aligned_as_double;
2498 char _Alignas (0) no_special_alignment;
2499 extern char aligned_as_int;
2500 char _Alignas (0) _Alignas (int) aligned_as_int;
2501
2502 // Check _Alignof.
2503 enum
2504 {
2505 int_alignment = _Alignof (int),
2506 int_array_alignment = _Alignof (int[100]),
2507 char_alignment = _Alignof (char)
2508 };
2509 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2510
2511 // Check _Noreturn.
2512 int _Noreturn does_not_return (void) { for (;;) continue; }
2513
2514 // Check _Static_assert.
2515 struct test_static_assert
2516 {
2517 int x;
2518 _Static_assert (sizeof (int) <= sizeof (long int),
2519 "_Static_assert does not work in struct");
2520 long int y;
2521 };
2522
2523 // Check UTF-8 literals.
2524 #define u8 syntax error!
2525 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2526
2527 // Check duplicate typedefs.
2528 typedef long *long_ptr;
2529 typedef long int *long_ptr;
2530 typedef long_ptr long_ptr;
2531
2532 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2533 struct anonymous
2534 {
2535 union {
2536 struct { int i; int j; };
2537 struct { int k; long int l; } w;
2538 };
2539 int m;
2540 } v1;
2541 '
2542
2543 # Test code for whether the C compiler supports C11 (body of main).
2544 ac_c_conftest_c11_main='
2545 _Static_assert ((offsetof (struct anonymous, i)
2546 == offsetof (struct anonymous, w.k)),
2547 "Anonymous union alignment botch");
2548 v1.i = 2;
2549 v1.w.k = 5;
2550 ok |= v1.i != 5;
2551 '
2552
2553 # Test code for whether the C compiler supports C11 (complete).
2554 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2555 ${ac_c_conftest_c99_globals}
2556 ${ac_c_conftest_c11_globals}
2557
2558 int
2559 main (int argc, char **argv)
2560 {
2561 int ok = 0;
2562 ${ac_c_conftest_c89_main}
2563 ${ac_c_conftest_c99_main}
2564 ${ac_c_conftest_c11_main}
2565 return ok;
2566 }
2567 "
2568
2569 # Test code for whether the C compiler supports C99 (complete).
2570 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2571 ${ac_c_conftest_c99_globals}
2572
2573 int
2574 main (int argc, char **argv)
2575 {
2576 int ok = 0;
2577 ${ac_c_conftest_c89_main}
2578 ${ac_c_conftest_c99_main}
2579 return ok;
2580 }
2581 "
2582
2583 # Test code for whether the C compiler supports C89 (complete).
2584 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2585
2586 int
2587 main (int argc, char **argv)
2588 {
2589 int ok = 0;
2590 ${ac_c_conftest_c89_main}
2591 return ok;
2592 }
2593 "
2594
2595 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2596 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2597 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2598 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2599 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2600 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2601 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2602 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2603 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2604
2605 # Auxiliary files required by this configure script.
2606 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2607
2608 # Locations in which to look for auxiliary files.
2609 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2610
2611 # Search for a directory containing all of the required auxiliary files,
2612 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2613 # If we don't find one directory that contains all the files we need,
2614 # we report the set of missing files from the *first* directory in
2615 # $ac_aux_dir_candidates and give up.
2616 ac_missing_aux_files=""
2617 ac_first_candidate=:
2618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 as_found=false
2621 for as_dir in $ac_aux_dir_candidates
2622 do
2623 IFS=$as_save_IFS
2624 case $as_dir in #(((
2625 '') as_dir=./ ;;
2626 */) ;;
2627 *) as_dir=$as_dir/ ;;
2628 esac
2629 as_found=:
2630
2631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2632 ac_aux_dir_found=yes
2633 ac_install_sh=
2634 for ac_aux in $ac_aux_files
2635 do
2636 # As a special case, if "install-sh" is required, that requirement
2637 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2638 # and $ac_install_sh is set appropriately for whichever one is found.
2639 if test x"$ac_aux" = x"install-sh"
2640 then
2641 if test -f "${as_dir}install-sh"; then
2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2643 ac_install_sh="${as_dir}install-sh -c"
2644 elif test -f "${as_dir}install.sh"; then
2645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2646 ac_install_sh="${as_dir}install.sh -c"
2647 elif test -f "${as_dir}shtool"; then
2648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2649 ac_install_sh="${as_dir}shtool install -c"
2650 else
2651 ac_aux_dir_found=no
2652 if $ac_first_candidate; then
2653 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2654 else
2655 break
2656 fi
2657 fi
2658 else
2659 if test -f "${as_dir}${ac_aux}"; then
2660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2661 else
2662 ac_aux_dir_found=no
2663 if $ac_first_candidate; then
2664 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2665 else
2666 break
2667 fi
2668 fi
2669 fi
2670 done
2671 if test "$ac_aux_dir_found" = yes; then
2672 ac_aux_dir="$as_dir"
2673 break
2674 fi
2675 ac_first_candidate=false
2676
2677 as_found=false
2678 done
2679 IFS=$as_save_IFS
2680 if $as_found
2681 then :
2682
2683 else $as_nop
2684 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2685 fi
2686
2687
2688 # These three variables are undocumented and unsupported,
2689 # and are intended to be withdrawn in a future Autoconf release.
2690 # They can cause serious problems if a builder's source tree is in a directory
2691 # whose full name contains unusual characters.
2692 if test -f "${ac_aux_dir}config.guess"; then
2693 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2694 fi
2695 if test -f "${ac_aux_dir}config.sub"; then
2696 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2697 fi
2698 if test -f "$ac_aux_dir/configure"; then
2699 ac_configure="$SHELL ${ac_aux_dir}configure"
2700 fi
2701
2702 # Check that the precious variables saved in the cache have kept the same
2703 # value.
2704 ac_cache_corrupted=false
2705 for ac_var in $ac_precious_vars; do
2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2707 eval ac_new_set=\$ac_env_${ac_var}_set
2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2709 eval ac_new_val=\$ac_env_${ac_var}_value
2710 case $ac_old_set,$ac_new_set in
2711 set,)
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2713 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2715 ,set)
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2717 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2719 ,);;
2720 *)
2721 if test "x$ac_old_val" != "x$ac_new_val"; then
2722 # differences in whitespace do not lead to failure.
2723 ac_old_val_w=`echo x $ac_old_val`
2724 ac_new_val_w=`echo x $ac_new_val`
2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2727 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2728 ac_cache_corrupted=:
2729 else
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2731 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2732 eval $ac_var=\$ac_old_val
2733 fi
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2735 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2737 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2738 fi;;
2739 esac
2740 # Pass precious variables to config.status.
2741 if test "$ac_new_set" = set; then
2742 case $ac_new_val in
2743 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2744 *) ac_arg=$ac_var=$ac_new_val ;;
2745 esac
2746 case " $ac_configure_args " in
2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2749 esac
2750 fi
2751 done
2752 if $ac_cache_corrupted; then
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2756 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2757 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2758 and start over" "$LINENO" 5
2759 fi
2760 ## -------------------- ##
2761 ## Main body of script. ##
2762 ## -------------------- ##
2763
2764 ac_ext=c
2765 ac_cpp='$CPP $CPPFLAGS'
2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770
2771
2772 ac_config_headers="$ac_config_headers src/config.h"
2773
2774
2775
2776 # Initialize Automake
2777 am__api_version='1.16'
2778
2779
2780
2781 # Find a good install program. We prefer a C program (faster),
2782 # so one script is as good as another. But avoid the broken or
2783 # incompatible versions:
2784 # SysV /etc/install, /usr/sbin/install
2785 # SunOS /usr/etc/install
2786 # IRIX /sbin/install
2787 # AIX /bin/install
2788 # AmigaOS /C/install, which installs bootblocks on floppy discs
2789 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2792 # OS/2's system install, which has a completely different semantic
2793 # ./install, which can be erroneously created by make from ./install.sh.
2794 # Reject install programs that cannot install multiple files.
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2796 printf %s "checking for a BSD-compatible install... " >&6; }
2797 if test -z "$INSTALL"; then
2798 if test ${ac_cv_path_install+y}
2799 then :
2800 printf %s "(cached) " >&6
2801 else $as_nop
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 case $as_dir in #(((
2807 '') as_dir=./ ;;
2808 */) ;;
2809 *) as_dir=$as_dir/ ;;
2810 esac
2811 # Account for fact that we put trailing slashes in our PATH walk.
2812 case $as_dir in #((
2813 ./ | /[cC]/* | \
2814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2816 /usr/ucb/* ) ;;
2817 *)
2818 # OSF1 and SCO ODT 3.0 have their own names for install.
2819 # Don't use installbsd from OSF since it installs stuff as root
2820 # by default.
2821 for ac_prog in ginstall scoinst install; do
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2824 if test $ac_prog = install &&
2825 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2826 # AIX install. It has an incompatible calling convention.
2827 :
2828 elif test $ac_prog = install &&
2829 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2830 # program-specific install script used by HP pwplus--don't use.
2831 :
2832 else
2833 rm -rf conftest.one conftest.two conftest.dir
2834 echo one > conftest.one
2835 echo two > conftest.two
2836 mkdir conftest.dir
2837 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2838 test -s conftest.one && test -s conftest.two &&
2839 test -s conftest.dir/conftest.one &&
2840 test -s conftest.dir/conftest.two
2841 then
2842 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2843 break 3
2844 fi
2845 fi
2846 fi
2847 done
2848 done
2849 ;;
2850 esac
2851
2852 done
2853 IFS=$as_save_IFS
2854
2855 rm -rf conftest.one conftest.two conftest.dir
2856
2857 fi
2858 if test ${ac_cv_path_install+y}; then
2859 INSTALL=$ac_cv_path_install
2860 else
2861 # As a last resort, use the slow shell script. Don't cache a
2862 # value for INSTALL within a source directory, because that will
2863 # break other packages using the cache if that directory is
2864 # removed, or if the value is a relative name.
2865 INSTALL=$ac_install_sh
2866 fi
2867 fi
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2869 printf "%s\n" "$INSTALL" >&6; }
2870
2871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2872 # It thinks the first close brace ends the variable substitution.
2873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2874
2875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2876
2877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2878
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2880 printf %s "checking whether build environment is sane... " >&6; }
2881 # Reject unsafe characters in $srcdir or the absolute working directory
2882 # name. Accept space and tab only in the latter.
2883 am_lf='
2884 '
2885 case `pwd` in
2886 *[\\\"\#\$\&\'\`$am_lf]*)
2887 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2888 esac
2889 case $srcdir in
2890 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2891 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2892 esac
2893
2894 # Do 'set' in a subshell so we don't clobber the current shell's
2895 # arguments. Must try -L first in case configure is actually a
2896 # symlink; some systems play weird games with the mod time of symlinks
2897 # (eg FreeBSD returns the mod time of the symlink's containing
2898 # directory).
2899 if (
2900 am_has_slept=no
2901 for am_try in 1 2; do
2902 echo "timestamp, slept: $am_has_slept" > conftest.file
2903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2904 if test "$*" = "X"; then
2905 # -L didn't work.
2906 set X `ls -t "$srcdir/configure" conftest.file`
2907 fi
2908 if test "$*" != "X $srcdir/configure conftest.file" \
2909 && test "$*" != "X conftest.file $srcdir/configure"; then
2910
2911 # If neither matched, then we have a broken ls. This can happen
2912 # if, for instance, CONFIG_SHELL is bash and it inherits a
2913 # broken ls alias from the environment. This has actually
2914 # happened. Such a system could not be considered "sane".
2915 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2916 alias in your environment" "$LINENO" 5
2917 fi
2918 if test "$2" = conftest.file || test $am_try -eq 2; then
2919 break
2920 fi
2921 # Just in case.
2922 sleep 1
2923 am_has_slept=yes
2924 done
2925 test "$2" = conftest.file
2926 )
2927 then
2928 # Ok.
2929 :
2930 else
2931 as_fn_error $? "newly created file is older than distributed files!
2932 Check your system clock" "$LINENO" 5
2933 fi
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 printf "%s\n" "yes" >&6; }
2936 # If we didn't sleep, we still need to ensure time stamps of config.status and
2937 # generated files are strictly newer.
2938 am_sleep_pid=
2939 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2940 ( sleep 1 ) &
2941 am_sleep_pid=$!
2942 fi
2943
2944 rm -f conftest.file
2945
2946 test "$program_prefix" != NONE &&
2947 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2948 # Use a double $ so make ignores it.
2949 test "$program_suffix" != NONE &&
2950 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2951 # Double any \ or $.
2952 # By default was `s,x,x', remove it if useless.
2953 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2954 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2955
2956
2957 # Expand $ac_aux_dir to an absolute path.
2958 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2959
2960
2961 if test x"${MISSING+set}" != xset; then
2962 MISSING="\${SHELL} '$am_aux_dir/missing'"
2963 fi
2964 # Use eval to expand $SHELL
2965 if eval "$MISSING --is-lightweight"; then
2966 am_missing_run="$MISSING "
2967 else
2968 am_missing_run=
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2970 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2971 fi
2972
2973 if test x"${install_sh+set}" != xset; then
2974 case $am_aux_dir in
2975 *\ * | *\ *)
2976 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2977 *)
2978 install_sh="\${SHELL} $am_aux_dir/install-sh"
2979 esac
2980 fi
2981
2982 # Installed binaries are usually stripped using 'strip' when the user
2983 # run "make install-strip". However 'strip' might not be the right
2984 # tool to use in cross-compilation environments, therefore Automake
2985 # will honor the 'STRIP' environment variable to overrule this program.
2986 if test "$cross_compiling" != no; then
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}strip; ac_word=$2
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 printf %s "checking for $ac_word... " >&6; }
2992 if test ${ac_cv_prog_STRIP+y}
2993 then :
2994 printf %s "(cached) " >&6
2995 else $as_nop
2996 if test -n "$STRIP"; then
2997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 case $as_dir in #(((
3004 '') as_dir=./ ;;
3005 */) ;;
3006 *) as_dir=$as_dir/ ;;
3007 esac
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 STRIP=$ac_cv_prog_STRIP
3021 if test -n "$STRIP"; then
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3023 printf "%s\n" "$STRIP" >&6; }
3024 else
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 printf "%s\n" "no" >&6; }
3027 fi
3028
3029
3030 fi
3031 if test -z "$ac_cv_prog_STRIP"; then
3032 ac_ct_STRIP=$STRIP
3033 # Extract the first word of "strip", so it can be a program name with args.
3034 set dummy strip; ac_word=$2
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 printf %s "checking for $ac_word... " >&6; }
3037 if test ${ac_cv_prog_ac_ct_STRIP+y}
3038 then :
3039 printf %s "(cached) " >&6
3040 else $as_nop
3041 if test -n "$ac_ct_STRIP"; then
3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047 IFS=$as_save_IFS
3048 case $as_dir in #(((
3049 '') as_dir=./ ;;
3050 */) ;;
3051 *) as_dir=$as_dir/ ;;
3052 esac
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_ac_ct_STRIP="strip"
3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3066 if test -n "$ac_ct_STRIP"; then
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3068 printf "%s\n" "$ac_ct_STRIP" >&6; }
3069 else
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 printf "%s\n" "no" >&6; }
3072 fi
3073
3074 if test "x$ac_ct_STRIP" = x; then
3075 STRIP=":"
3076 else
3077 case $cross_compiling:$ac_tool_warned in
3078 yes:)
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3080 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3081 ac_tool_warned=yes ;;
3082 esac
3083 STRIP=$ac_ct_STRIP
3084 fi
3085 else
3086 STRIP="$ac_cv_prog_STRIP"
3087 fi
3088
3089 fi
3090 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3091
3092
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3094 printf %s "checking for a race-free mkdir -p... " >&6; }
3095 if test -z "$MKDIR_P"; then
3096 if test ${ac_cv_path_mkdir+y}
3097 then :
3098 printf %s "(cached) " >&6
3099 else $as_nop
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3102 do
3103 IFS=$as_save_IFS
3104 case $as_dir in #(((
3105 '') as_dir=./ ;;
3106 */) ;;
3107 *) as_dir=$as_dir/ ;;
3108 esac
3109 for ac_prog in mkdir gmkdir; do
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3112 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3113 'mkdir ('*'coreutils) '* | \
3114 'BusyBox '* | \
3115 'mkdir (fileutils) '4.1*)
3116 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3117 break 3;;
3118 esac
3119 done
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125
3126 test -d ./--version && rmdir ./--version
3127 if test ${ac_cv_path_mkdir+y}; then
3128 MKDIR_P="$ac_cv_path_mkdir -p"
3129 else
3130 # As a last resort, use the slow shell script. Don't cache a
3131 # value for MKDIR_P within a source directory, because that will
3132 # break other packages using the cache if that directory is
3133 # removed, or if the value is a relative name.
3134 MKDIR_P="$ac_install_sh -d"
3135 fi
3136 fi
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3138 printf "%s\n" "$MKDIR_P" >&6; }
3139
3140 for ac_prog in gawk mawk nawk awk
3141 do
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 printf %s "checking for $ac_word... " >&6; }
3146 if test ${ac_cv_prog_AWK+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else $as_nop
3150 if test -n "$AWK"; then
3151 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 case $as_dir in #(((
3158 '') as_dir=./ ;;
3159 */) ;;
3160 *) as_dir=$as_dir/ ;;
3161 esac
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_AWK="$ac_prog"
3165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 AWK=$ac_cv_prog_AWK
3175 if test -n "$AWK"; then
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3177 printf "%s\n" "$AWK" >&6; }
3178 else
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 printf "%s\n" "no" >&6; }
3181 fi
3182
3183
3184 test -n "$AWK" && break
3185 done
3186
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3188 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3189 set x ${MAKE-make}
3190 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3191 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3192 then :
3193 printf %s "(cached) " >&6
3194 else $as_nop
3195 cat >conftest.make <<\_ACEOF
3196 SHELL = /bin/sh
3197 all:
3198 @echo '@@@%%%=$(MAKE)=@@@%%%'
3199 _ACEOF
3200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3202 *@@@%%%=?*=@@@%%%*)
3203 eval ac_cv_prog_make_${ac_make}_set=yes;;
3204 *)
3205 eval ac_cv_prog_make_${ac_make}_set=no;;
3206 esac
3207 rm -f conftest.make
3208 fi
3209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211 printf "%s\n" "yes" >&6; }
3212 SET_MAKE=
3213 else
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 printf "%s\n" "no" >&6; }
3216 SET_MAKE="MAKE=${MAKE-make}"
3217 fi
3218
3219 rm -rf .tst 2>/dev/null
3220 mkdir .tst 2>/dev/null
3221 if test -d .tst; then
3222 am__leading_dot=.
3223 else
3224 am__leading_dot=_
3225 fi
3226 rmdir .tst 2>/dev/null
3227
3228 # Check whether --enable-silent-rules was given.
3229 if test ${enable_silent_rules+y}
3230 then :
3231 enableval=$enable_silent_rules;
3232 fi
3233
3234 case $enable_silent_rules in # (((
3235 yes) AM_DEFAULT_VERBOSITY=0;;
3236 no) AM_DEFAULT_VERBOSITY=1;;
3237 *) AM_DEFAULT_VERBOSITY=1;;
3238 esac
3239 am_make=${MAKE-make}
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3241 printf %s "checking whether $am_make supports nested variables... " >&6; }
3242 if test ${am_cv_make_support_nested_variables+y}
3243 then :
3244 printf %s "(cached) " >&6
3245 else $as_nop
3246 if printf "%s\n" 'TRUE=$(BAR$(V))
3247 BAR0=false
3248 BAR1=true
3249 V=1
3250 am__doit:
3251 @$(TRUE)
3252 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3253 am_cv_make_support_nested_variables=yes
3254 else
3255 am_cv_make_support_nested_variables=no
3256 fi
3257 fi
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3259 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3260 if test $am_cv_make_support_nested_variables = yes; then
3261 AM_V='$(V)'
3262 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3263 else
3264 AM_V=$AM_DEFAULT_VERBOSITY
3265 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3266 fi
3267 AM_BACKSLASH='\'
3268
3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271 # is not polluted with repeated "-I."
3272 am__isrc=' -I$(srcdir)'
3273 # test to see if srcdir already configured
3274 if test -f $srcdir/config.status; then
3275 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3276 fi
3277 fi
3278
3279 # test whether we have cygpath
3280 if test -z "$CYGPATH_W"; then
3281 if (cygpath --version) >/dev/null 2>/dev/null; then
3282 CYGPATH_W='cygpath -w'
3283 else
3284 CYGPATH_W=echo
3285 fi
3286 fi
3287
3288
3289 # Define the identity of the package.
3290 PACKAGE='libXi'
3291 VERSION='1.8.2'
3292
3293
3294 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3295
3296
3297 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3298
3299 # Some tools Automake needs.
3300
3301 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3302
3303
3304 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3305
3306
3307 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3308
3309
3310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3311
3312
3313 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3314
3315 # For better backward compatibility. To be removed once Automake 1.9.x
3316 # dies out for good. For more background, see:
3317 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3318 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3319 mkdir_p='$(MKDIR_P)'
3320
3321 # We need awk for the "check" target (and possibly the TAP driver). The
3322 # system "awk" is bad on some platforms.
3323 # Always define AMTAR for backward compatibility. Yes, it's still used
3324 # in the wild :-( We should find a proper way to deprecate it ...
3325 AMTAR='$${TAR-tar}'
3326
3327
3328 # We'll loop over all known methods to create a tar archive until one works.
3329 _am_tools='gnutar pax cpio none'
3330
3331 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3332
3333
3334
3335
3336
3337 # Variables for tags utilities; see am/tags.am
3338 if test -z "$CTAGS"; then
3339 CTAGS=ctags
3340 fi
3341
3342 if test -z "$ETAGS"; then
3343 ETAGS=etags
3344 fi
3345
3346 if test -z "$CSCOPE"; then
3347 CSCOPE=cscope
3348 fi
3349
3350
3351
3352 # POSIX will say in a future version that running "rm -f" with no argument
3353 # is OK; and we want to be able to make that assumption in our Makefile
3354 # recipes. So use an aggressive probe to check that the usage we want is
3355 # actually supported "in the wild" to an acceptable degree.
3356 # See automake bug#10828.
3357 # To make any issue more visible, cause the running configure to be aborted
3358 # by default if the 'rm' program in use doesn't match our expectations; the
3359 # user can still override this though.
3360 if rm -f && rm -fr && rm -rf; then : OK; else
3361 cat >&2 <<'END'
3362 Oops!
3363
3364 Your 'rm' program seems unable to run without file operands specified
3365 on the command line, even when the '-f' option is present. This is contrary
3366 to the behaviour of most rm programs out there, and not conforming with
3367 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3368
3369 Please tell bug-automake@gnu.org about your system, including the value
3370 of your $PATH and any error possibly output before this message. This
3371 can help us improve future automake versions.
3372
3373 END
3374 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3375 echo 'Configuration will proceed anyway, since you have set the' >&2
3376 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3377 echo >&2
3378 else
3379 cat >&2 <<'END'
3380 Aborting the configuration process, to ensure you take notice of the issue.
3381
3382 You can download and install GNU coreutils to get an 'rm' implementation
3383 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3384
3385 If you want to complete the configuration process using your problematic
3386 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3387 to "yes", and re-run configure.
3388
3389 END
3390 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3391 fi
3392 fi
3393
3394
3395 # Initialize libtool
3396 case `pwd` in
3397 *\ * | *\ *)
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3399 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3400 esac
3401
3402
3403
3404 macro_version='2.4.7'
3405 macro_revision='2.4.7'
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420 ltmain=$ac_aux_dir/ltmain.sh
3421
3422
3423
3424 # Make sure we can run config.sub.
3425 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3426 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3427
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3429 printf %s "checking build system type... " >&6; }
3430 if test ${ac_cv_build+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else $as_nop
3434 ac_build_alias=$build_alias
3435 test "x$ac_build_alias" = x &&
3436 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3437 test "x$ac_build_alias" = x &&
3438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3439 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3440 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3441
3442 fi
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3444 printf "%s\n" "$ac_cv_build" >&6; }
3445 case $ac_cv_build in
3446 *-*-*) ;;
3447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3448 esac
3449 build=$ac_cv_build
3450 ac_save_IFS=$IFS; IFS='-'
3451 set x $ac_cv_build
3452 shift
3453 build_cpu=$1
3454 build_vendor=$2
3455 shift; shift
3456 # Remember, the first character of IFS is used to create $*,
3457 # except with old shells:
3458 build_os=$*
3459 IFS=$ac_save_IFS
3460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3461
3462
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3464 printf %s "checking host system type... " >&6; }
3465 if test ${ac_cv_host+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else $as_nop
3469 if test "x$host_alias" = x; then
3470 ac_cv_host=$ac_cv_build
3471 else
3472 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3473 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3474 fi
3475
3476 fi
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3478 printf "%s\n" "$ac_cv_host" >&6; }
3479 case $ac_cv_host in
3480 *-*-*) ;;
3481 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3482 esac
3483 host=$ac_cv_host
3484 ac_save_IFS=$IFS; IFS='-'
3485 set x $ac_cv_host
3486 shift
3487 host_cpu=$1
3488 host_vendor=$2
3489 shift; shift
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3492 host_os=$*
3493 IFS=$ac_save_IFS
3494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3495
3496
3497 # Backslashify metacharacters that are still active within
3498 # double-quoted strings.
3499 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3500
3501 # Same as above, but do not quote variable references.
3502 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3503
3504 # Sed substitution to delay expansion of an escaped shell variable in a
3505 # double_quote_subst'ed string.
3506 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3507
3508 # Sed substitution to delay expansion of an escaped single quote.
3509 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3510
3511 # Sed substitution to avoid accidental globbing in evaled expressions
3512 no_glob_subst='s/\*/\\\*/g'
3513
3514 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3515 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3516 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3517
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3519 printf %s "checking how to print strings... " >&6; }
3520 # Test print first, because it will be a builtin if present.
3521 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3522 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3523 ECHO='print -r --'
3524 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3525 ECHO='printf %s\n'
3526 else
3527 # Use this function as a fallback that always works.
3528 func_fallback_echo ()
3529 {
3530 eval 'cat <<_LTECHO_EOF
3531 $1
3532 _LTECHO_EOF'
3533 }
3534 ECHO='func_fallback_echo'
3535 fi
3536
3537 # func_echo_all arg...
3538 # Invoke $ECHO with all args, space-separated.
3539 func_echo_all ()
3540 {
3541 $ECHO ""
3542 }
3543
3544 case $ECHO in
3545 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3546 printf "%s\n" "printf" >&6; } ;;
3547 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3548 printf "%s\n" "print -r" >&6; } ;;
3549 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3550 printf "%s\n" "cat" >&6; } ;;
3551 esac
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575 DEPDIR="${am__leading_dot}deps"
3576
3577 ac_config_commands="$ac_config_commands depfiles"
3578
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3580 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3581 cat > confinc.mk << 'END'
3582 am__doit:
3583 @echo this is the am__doit target >confinc.out
3584 .PHONY: am__doit
3585 END
3586 am__include="#"
3587 am__quote=
3588 # BSD make does it like this.
3589 echo '.include "confinc.mk" # ignored' > confmf.BSD
3590 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3591 echo 'include confinc.mk # ignored' > confmf.GNU
3592 _am_result=no
3593 for s in GNU BSD; do
3594 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3595 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 case $?:`cat confinc.out 2>/dev/null` in #(
3600 '0:this is the am__doit target') :
3601 case $s in #(
3602 BSD) :
3603 am__include='.include' am__quote='"' ;; #(
3604 *) :
3605 am__include='include' am__quote='' ;;
3606 esac ;; #(
3607 *) :
3608 ;;
3609 esac
3610 if test "$am__include" != "#"; then
3611 _am_result="yes ($s style)"
3612 break
3613 fi
3614 done
3615 rm -f confinc.* confmf.*
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3617 printf "%s\n" "${_am_result}" >&6; }
3618
3619 # Check whether --enable-dependency-tracking was given.
3620 if test ${enable_dependency_tracking+y}
3621 then :
3622 enableval=$enable_dependency_tracking;
3623 fi
3624
3625 if test "x$enable_dependency_tracking" != xno; then
3626 am_depcomp="$ac_aux_dir/depcomp"
3627 AMDEPBACKSLASH='\'
3628 am__nodep='_no'
3629 fi
3630 if test "x$enable_dependency_tracking" != xno; then
3631 AMDEP_TRUE=
3632 AMDEP_FALSE='#'
3633 else
3634 AMDEP_TRUE='#'
3635 AMDEP_FALSE=
3636 fi
3637
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else $as_nop
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 case $as_dir in #(((
3661 '') as_dir=./ ;;
3662 */) ;;
3663 *) as_dir=$as_dir/ ;;
3664 esac
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686
3687 fi
3688 if test -z "$ac_cv_prog_CC"; then
3689 ac_ct_CC=$CC
3690 # Extract the first word of "gcc", so it can be a program name with args.
3691 set dummy gcc; ac_word=$2
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 printf %s "checking for $ac_word... " >&6; }
3694 if test ${ac_cv_prog_ac_ct_CC+y}
3695 then :
3696 printf %s "(cached) " >&6
3697 else $as_nop
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 case $as_dir in #(((
3706 '') as_dir=./ ;;
3707 */) ;;
3708 *) as_dir=$as_dir/ ;;
3709 esac
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="gcc"
3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 printf "%s\n" "$ac_ct_CC" >&6; }
3726 else
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 printf "%s\n" "no" >&6; }
3729 fi
3730
3731 if test "x$ac_ct_CC" = x; then
3732 CC=""
3733 else
3734 case $cross_compiling:$ac_tool_warned in
3735 yes:)
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned=yes ;;
3739 esac
3740 CC=$ac_ct_CC
3741 fi
3742 else
3743 CC="$ac_cv_prog_CC"
3744 fi
3745
3746 if test -z "$CC"; then
3747 if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3749 set dummy ${ac_tool_prefix}cc; ac_word=$2
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 printf %s "checking for $ac_word... " >&6; }
3752 if test ${ac_cv_prog_CC+y}
3753 then :
3754 printf %s "(cached) " >&6
3755 else $as_nop
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 case $as_dir in #(((
3764 '') as_dir=./ ;;
3765 */) ;;
3766 *) as_dir=$as_dir/ ;;
3767 esac
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_CC="${ac_tool_prefix}cc"
3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 printf "%s\n" "$CC" >&6; }
3784 else
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 printf "%s\n" "no" >&6; }
3787 fi
3788
3789
3790 fi
3791 fi
3792 if test -z "$CC"; then
3793 # Extract the first word of "cc", so it can be a program name with args.
3794 set dummy cc; ac_word=$2
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 printf %s "checking for $ac_word... " >&6; }
3797 if test ${ac_cv_prog_CC+y}
3798 then :
3799 printf %s "(cached) " >&6
3800 else $as_nop
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 ac_prog_rejected=no
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 case $as_dir in #(((
3810 '') as_dir=./ ;;
3811 */) ;;
3812 *) as_dir=$as_dir/ ;;
3813 esac
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3816 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3817 ac_prog_rejected=yes
3818 continue
3819 fi
3820 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3829 # We found a bogon in the path, so make sure we never use it.
3830 set dummy $ac_cv_prog_CC
3831 shift
3832 if test $# != 0; then
3833 # We chose a different compiler from the bogus one.
3834 # However, it has the same basename, so the bogon will be chosen
3835 # first if we set CC to just the basename; use the full file name.
3836 shift
3837 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3838 fi
3839 fi
3840 fi
3841 fi
3842 CC=$ac_cv_prog_CC
3843 if test -n "$CC"; then
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845 printf "%s\n" "$CC" >&6; }
3846 else
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 printf "%s\n" "no" >&6; }
3849 fi
3850
3851
3852 fi
3853 if test -z "$CC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 for ac_prog in cl.exe
3856 do
3857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 printf %s "checking for $ac_word... " >&6; }
3861 if test ${ac_cv_prog_CC+y}
3862 then :
3863 printf %s "(cached) " >&6
3864 else $as_nop
3865 if test -n "$CC"; then
3866 ac_cv_prog_CC="$CC" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871 IFS=$as_save_IFS
3872 case $as_dir in #(((
3873 '') as_dir=./ ;;
3874 */) ;;
3875 *) as_dir=$as_dir/ ;;
3876 esac
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883 done
3884 done
3885 IFS=$as_save_IFS
3886
3887 fi
3888 fi
3889 CC=$ac_cv_prog_CC
3890 if test -n "$CC"; then
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3892 printf "%s\n" "$CC" >&6; }
3893 else
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 printf "%s\n" "no" >&6; }
3896 fi
3897
3898
3899 test -n "$CC" && break
3900 done
3901 fi
3902 if test -z "$CC"; then
3903 ac_ct_CC=$CC
3904 for ac_prog in cl.exe
3905 do
3906 # Extract the first word of "$ac_prog", so it can be a program name with args.
3907 set dummy $ac_prog; ac_word=$2
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 printf %s "checking for $ac_word... " >&6; }
3910 if test ${ac_cv_prog_ac_ct_CC+y}
3911 then :
3912 printf %s "(cached) " >&6
3913 else $as_nop
3914 if test -n "$ac_ct_CC"; then
3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 case $as_dir in #(((
3922 '') as_dir=./ ;;
3923 */) ;;
3924 *) as_dir=$as_dir/ ;;
3925 esac
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_ac_ct_CC="$ac_prog"
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939 if test -n "$ac_ct_CC"; then
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941 printf "%s\n" "$ac_ct_CC" >&6; }
3942 else
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 printf "%s\n" "no" >&6; }
3945 fi
3946
3947
3948 test -n "$ac_ct_CC" && break
3949 done
3950
3951 if test "x$ac_ct_CC" = x; then
3952 CC=""
3953 else
3954 case $cross_compiling:$ac_tool_warned in
3955 yes:)
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958 ac_tool_warned=yes ;;
3959 esac
3960 CC=$ac_ct_CC
3961 fi
3962 fi
3963
3964 fi
3965 if test -z "$CC"; then
3966 if test -n "$ac_tool_prefix"; then
3967 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}clang; ac_word=$2
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 printf %s "checking for $ac_word... " >&6; }
3971 if test ${ac_cv_prog_CC+y}
3972 then :
3973 printf %s "(cached) " >&6
3974 else $as_nop
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 case $as_dir in #(((
3983 '') as_dir=./ ;;
3984 */) ;;
3985 *) as_dir=$as_dir/ ;;
3986 esac
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="${ac_tool_prefix}clang"
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi
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 "$ac_cv_prog_CC"; then
4011 ac_ct_CC=$CC
4012 # Extract the first word of "clang", so it can be a program name with args.
4013 set dummy clang; ac_word=$2
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 printf %s "checking for $ac_word... " >&6; }
4016 if test ${ac_cv_prog_ac_ct_CC+y}
4017 then :
4018 printf %s "(cached) " >&6
4019 else $as_nop
4020 if test -n "$ac_ct_CC"; then
4021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026 IFS=$as_save_IFS
4027 case $as_dir in #(((
4028 '') as_dir=./ ;;
4029 */) ;;
4030 *) as_dir=$as_dir/ ;;
4031 esac
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_ac_ct_CC="clang"
4035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040 IFS=$as_save_IFS
4041
4042 fi
4043 fi
4044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4045 if test -n "$ac_ct_CC"; then
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4047 printf "%s\n" "$ac_ct_CC" >&6; }
4048 else
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 printf "%s\n" "no" >&6; }
4051 fi
4052
4053 if test "x$ac_ct_CC" = x; then
4054 CC=""
4055 else
4056 case $cross_compiling:$ac_tool_warned in
4057 yes:)
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4060 ac_tool_warned=yes ;;
4061 esac
4062 CC=$ac_ct_CC
4063 fi
4064 else
4065 CC="$ac_cv_prog_CC"
4066 fi
4067
4068 fi
4069
4070
4071 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error $? "no acceptable C compiler found in \$PATH
4074 See \`config.log' for more details" "$LINENO" 5; }
4075
4076 # Provide some information about the compiler.
4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4078 set X $ac_compile
4079 ac_compiler=$2
4080 for ac_option in --version -v -V -qversion -version; do
4081 { { ac_try="$ac_compiler $ac_option >&5"
4082 case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085 esac
4086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087 printf "%s\n" "$ac_try_echo"; } >&5
4088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4089 ac_status=$?
4090 if test -s conftest.err; then
4091 sed '10a\
4092 ... rest of stderr output deleted ...
4093 10q' conftest.err >conftest.er1
4094 cat conftest.er1 >&5
4095 fi
4096 rm -f conftest.er1 conftest.err
4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }
4099 done
4100
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main (void)
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 ac_clean_files_save=$ac_clean_files
4113 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4114 # Try to create an executable without -o first, disregard a.out.
4115 # It will help us diagnose broken compilers, and finding out an intuition
4116 # of exeext.
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4118 printf %s "checking whether the C compiler works... " >&6; }
4119 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4120
4121 # The possible output files:
4122 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4123
4124 ac_rmfiles=
4125 for ac_file in $ac_files
4126 do
4127 case $ac_file in
4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4129 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4130 esac
4131 done
4132 rm -f $ac_rmfiles
4133
4134 if { { ac_try="$ac_link_default"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 printf "%s\n" "$ac_try_echo"; } >&5
4141 (eval "$ac_link_default") 2>&5
4142 ac_status=$?
4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }
4145 then :
4146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4147 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4148 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4149 # so that the user can short-circuit this test for compilers unknown to
4150 # Autoconf.
4151 for ac_file in $ac_files ''
4152 do
4153 test -f "$ac_file" || continue
4154 case $ac_file in
4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4156 ;;
4157 [ab].out )
4158 # We found the default executable, but exeext='' is most
4159 # certainly right.
4160 break;;
4161 *.* )
4162 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4163 then :; else
4164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4165 fi
4166 # We set ac_cv_exeext here because the later test for it is not
4167 # safe: cross compilers may not add the suffix if given an `-o'
4168 # argument, so we may need to know it at that point already.
4169 # Even if this section looks crufty: it has the advantage of
4170 # actually working.
4171 break;;
4172 * )
4173 break;;
4174 esac
4175 done
4176 test "$ac_cv_exeext" = no && ac_cv_exeext=
4177
4178 else $as_nop
4179 ac_file=''
4180 fi
4181 if test -z "$ac_file"
4182 then :
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 printf "%s\n" "no" >&6; }
4185 printf "%s\n" "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4189 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4190 as_fn_error 77 "C compiler cannot create executables
4191 See \`config.log' for more details" "$LINENO" 5; }
4192 else $as_nop
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4194 printf "%s\n" "yes" >&6; }
4195 fi
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4197 printf %s "checking for C compiler default output file name... " >&6; }
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4199 printf "%s\n" "$ac_file" >&6; }
4200 ac_exeext=$ac_cv_exeext
4201
4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4203 ac_clean_files=$ac_clean_files_save
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 printf %s "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 printf "%s\n" "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4214 ac_status=$?
4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }
4217 then :
4218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4220 # work properly (i.e., refer to `conftest.exe'), while it won't with
4221 # `rm'.
4222 for ac_file in conftest.exe conftest conftest.*; do
4223 test -f "$ac_file" || continue
4224 case $ac_file in
4225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4227 break;;
4228 * ) break;;
4229 esac
4230 done
4231 else $as_nop
4232 { { 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 $? "cannot compute suffix of executables: cannot compile and link
4235 See \`config.log' for more details" "$LINENO" 5; }
4236 fi
4237 rm -f conftest conftest$ac_cv_exeext
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4239 printf "%s\n" "$ac_cv_exeext" >&6; }
4240
4241 rm -f conftest.$ac_ext
4242 EXEEXT=$ac_cv_exeext
4243 ac_exeext=$EXEEXT
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <stdio.h>
4247 int
4248 main (void)
4249 {
4250 FILE *f = fopen ("conftest.out", "w");
4251 return ferror (f) || fclose (f) != 0;
4252
4253 ;
4254 return 0;
4255 }
4256 _ACEOF
4257 ac_clean_files="$ac_clean_files conftest.out"
4258 # Check that the compiler produces executables we can run. If not, either
4259 # the compiler is broken, or we cross compile.
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4261 printf %s "checking whether we are cross compiling... " >&6; }
4262 if test "$cross_compiling" != yes; then
4263 { { ac_try="$ac_link"
4264 case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 printf "%s\n" "$ac_try_echo"; } >&5
4270 (eval "$ac_link") 2>&5
4271 ac_status=$?
4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }
4274 if { ac_try='./conftest$ac_cv_exeext'
4275 { { case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 printf "%s\n" "$ac_try_echo"; } >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }; }; then
4285 cross_compiling=no
4286 else
4287 if test "$cross_compiling" = maybe; then
4288 cross_compiling=yes
4289 else
4290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error 77 "cannot run C compiled programs.
4293 If you meant to cross compile, use \`--host'.
4294 See \`config.log' for more details" "$LINENO" 5; }
4295 fi
4296 fi
4297 fi
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4299 printf "%s\n" "$cross_compiling" >&6; }
4300
4301 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4302 ac_clean_files=$ac_clean_files_save
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4304 printf %s "checking for suffix of object files... " >&6; }
4305 if test ${ac_cv_objext+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else $as_nop
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311
4312 int
4313 main (void)
4314 {
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest.o conftest.obj
4321 if { { ac_try="$ac_compile"
4322 case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 printf "%s\n" "$ac_try_echo"; } >&5
4328 (eval "$ac_compile") 2>&5
4329 ac_status=$?
4330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }
4332 then :
4333 for ac_file in conftest.o conftest.obj conftest.*; do
4334 test -f "$ac_file" || continue;
4335 case $ac_file in
4336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4338 break;;
4339 esac
4340 done
4341 else $as_nop
4342 printf "%s\n" "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $? "cannot compute suffix of object files: cannot compile
4348 See \`config.log' for more details" "$LINENO" 5; }
4349 fi
4350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4351 fi
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4353 printf "%s\n" "$ac_cv_objext" >&6; }
4354 OBJEXT=$ac_cv_objext
4355 ac_objext=$OBJEXT
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4357 printf %s "checking whether the compiler supports GNU C... " >&6; }
4358 if test ${ac_cv_c_compiler_gnu+y}
4359 then :
4360 printf %s "(cached) " >&6
4361 else $as_nop
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364
4365 int
4366 main (void)
4367 {
4368 #ifndef __GNUC__
4369 choke me
4370 #endif
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"
4377 then :
4378 ac_compiler_gnu=yes
4379 else $as_nop
4380 ac_compiler_gnu=no
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4384
4385 fi
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4387 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390 if test $ac_compiler_gnu = yes; then
4391 GCC=yes
4392 else
4393 GCC=
4394 fi
4395 ac_test_CFLAGS=${CFLAGS+y}
4396 ac_save_CFLAGS=$CFLAGS
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4398 printf %s "checking whether $CC accepts -g... " >&6; }
4399 if test ${ac_cv_prog_cc_g+y}
4400 then :
4401 printf %s "(cached) " >&6
4402 else $as_nop
4403 ac_save_c_werror_flag=$ac_c_werror_flag
4404 ac_c_werror_flag=yes
4405 ac_cv_prog_cc_g=no
4406 CFLAGS="-g"
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409
4410 int
4411 main (void)
4412 {
4413
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"
4419 then :
4420 ac_cv_prog_cc_g=yes
4421 else $as_nop
4422 CFLAGS=""
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425
4426 int
4427 main (void)
4428 {
4429
4430 ;
4431 return 0;
4432 }
4433 _ACEOF
4434 if ac_fn_c_try_compile "$LINENO"
4435 then :
4436
4437 else $as_nop
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4439 CFLAGS="-g"
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main (void)
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"
4452 then :
4453 ac_cv_prog_cc_g=yes
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 fi
4457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4460 ac_c_werror_flag=$ac_save_c_werror_flag
4461 fi
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4463 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4464 if test $ac_test_CFLAGS; then
4465 CFLAGS=$ac_save_CFLAGS
4466 elif test $ac_cv_prog_cc_g = yes; then
4467 if test "$GCC" = yes; then
4468 CFLAGS="-g -O2"
4469 else
4470 CFLAGS="-g"
4471 fi
4472 else
4473 if test "$GCC" = yes; then
4474 CFLAGS="-O2"
4475 else
4476 CFLAGS=
4477 fi
4478 fi
4479 ac_prog_cc_stdc=no
4480 if test x$ac_prog_cc_stdc = xno
4481 then :
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4483 printf %s "checking for $CC option to enable C11 features... " >&6; }
4484 if test ${ac_cv_prog_cc_c11+y}
4485 then :
4486 printf %s "(cached) " >&6
4487 else $as_nop
4488 ac_cv_prog_cc_c11=no
4489 ac_save_CC=$CC
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 $ac_c_conftest_c11_program
4493 _ACEOF
4494 for ac_arg in '' -std=gnu11
4495 do
4496 CC="$ac_save_CC $ac_arg"
4497 if ac_fn_c_try_compile "$LINENO"
4498 then :
4499 ac_cv_prog_cc_c11=$ac_arg
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.beam
4502 test "x$ac_cv_prog_cc_c11" != "xno" && break
4503 done
4504 rm -f conftest.$ac_ext
4505 CC=$ac_save_CC
4506 fi
4507
4508 if test "x$ac_cv_prog_cc_c11" = xno
4509 then :
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4511 printf "%s\n" "unsupported" >&6; }
4512 else $as_nop
4513 if test "x$ac_cv_prog_cc_c11" = x
4514 then :
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4516 printf "%s\n" "none needed" >&6; }
4517 else $as_nop
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4519 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4520 CC="$CC $ac_cv_prog_cc_c11"
4521 fi
4522 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4523 ac_prog_cc_stdc=c11
4524 fi
4525 fi
4526 if test x$ac_prog_cc_stdc = xno
4527 then :
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4529 printf %s "checking for $CC option to enable C99 features... " >&6; }
4530 if test ${ac_cv_prog_cc_c99+y}
4531 then :
4532 printf %s "(cached) " >&6
4533 else $as_nop
4534 ac_cv_prog_cc_c99=no
4535 ac_save_CC=$CC
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 $ac_c_conftest_c99_program
4539 _ACEOF
4540 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4541 do
4542 CC="$ac_save_CC $ac_arg"
4543 if ac_fn_c_try_compile "$LINENO"
4544 then :
4545 ac_cv_prog_cc_c99=$ac_arg
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.beam
4548 test "x$ac_cv_prog_cc_c99" != "xno" && break
4549 done
4550 rm -f conftest.$ac_ext
4551 CC=$ac_save_CC
4552 fi
4553
4554 if test "x$ac_cv_prog_cc_c99" = xno
4555 then :
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4557 printf "%s\n" "unsupported" >&6; }
4558 else $as_nop
4559 if test "x$ac_cv_prog_cc_c99" = x
4560 then :
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4562 printf "%s\n" "none needed" >&6; }
4563 else $as_nop
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4565 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4566 CC="$CC $ac_cv_prog_cc_c99"
4567 fi
4568 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4569 ac_prog_cc_stdc=c99
4570 fi
4571 fi
4572 if test x$ac_prog_cc_stdc = xno
4573 then :
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4575 printf %s "checking for $CC option to enable C89 features... " >&6; }
4576 if test ${ac_cv_prog_cc_c89+y}
4577 then :
4578 printf %s "(cached) " >&6
4579 else $as_nop
4580 ac_cv_prog_cc_c89=no
4581 ac_save_CC=$CC
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 $ac_c_conftest_c89_program
4585 _ACEOF
4586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4587 do
4588 CC="$ac_save_CC $ac_arg"
4589 if ac_fn_c_try_compile "$LINENO"
4590 then :
4591 ac_cv_prog_cc_c89=$ac_arg
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam
4594 test "x$ac_cv_prog_cc_c89" != "xno" && break
4595 done
4596 rm -f conftest.$ac_ext
4597 CC=$ac_save_CC
4598 fi
4599
4600 if test "x$ac_cv_prog_cc_c89" = xno
4601 then :
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4603 printf "%s\n" "unsupported" >&6; }
4604 else $as_nop
4605 if test "x$ac_cv_prog_cc_c89" = x
4606 then :
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4608 printf "%s\n" "none needed" >&6; }
4609 else $as_nop
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4611 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4612 CC="$CC $ac_cv_prog_cc_c89"
4613 fi
4614 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4615 ac_prog_cc_stdc=c89
4616 fi
4617 fi
4618
4619 ac_ext=c
4620 ac_cpp='$CPP $CPPFLAGS'
4621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4632 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4633 if test ${am_cv_prog_cc_c_o+y}
4634 then :
4635 printf %s "(cached) " >&6
4636 else $as_nop
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639
4640 int
4641 main (void)
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 # Make sure it works both with $CC and with simple cc.
4649 # Following AC_PROG_CC_C_O, we do the test twice because some
4650 # compilers refuse to overwrite an existing .o file with -o,
4651 # though they will create one.
4652 am_cv_prog_cc_c_o=yes
4653 for am_i in 1 2; do
4654 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4655 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } \
4659 && test -f conftest2.$ac_objext; then
4660 : OK
4661 else
4662 am_cv_prog_cc_c_o=no
4663 break
4664 fi
4665 done
4666 rm -f core conftest*
4667 unset am_i
4668 fi
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4670 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4671 if test "$am_cv_prog_cc_c_o" != yes; then
4672 # Losing compiler, so override with the script.
4673 # FIXME: It is wrong to rewrite CC.
4674 # But if we don't then we get into trouble of one sort or another.
4675 # A longer-term fix would be to have automake use am__CC in this case,
4676 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4677 CC="$am_aux_dir/compile $CC"
4678 fi
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685
4686 depcc="$CC" am_compiler_list=
4687
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4689 printf %s "checking dependency style of $depcc... " >&6; }
4690 if test ${am_cv_CC_dependencies_compiler_type+y}
4691 then :
4692 printf %s "(cached) " >&6
4693 else $as_nop
4694 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4695 # We make a subdir and do the tests there. Otherwise we can end up
4696 # making bogus files that we don't know about and never remove. For
4697 # instance it was reported that on HP-UX the gcc test will end up
4698 # making a dummy file named 'D' -- because '-MD' means "put the output
4699 # in D".
4700 rm -rf conftest.dir
4701 mkdir conftest.dir
4702 # Copy depcomp to subdir because otherwise we won't find it if we're
4703 # using a relative directory.
4704 cp "$am_depcomp" conftest.dir
4705 cd conftest.dir
4706 # We will build objects and dependencies in a subdirectory because
4707 # it helps to detect inapplicable dependency modes. For instance
4708 # both Tru64's cc and ICC support -MD to output dependencies as a
4709 # side effect of compilation, but ICC will put the dependencies in
4710 # the current directory while Tru64 will put them in the object
4711 # directory.
4712 mkdir sub
4713
4714 am_cv_CC_dependencies_compiler_type=none
4715 if test "$am_compiler_list" = ""; then
4716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4717 fi
4718 am__universal=false
4719 case " $depcc " in #(
4720 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4721 esac
4722
4723 for depmode in $am_compiler_list; do
4724 # Setup a source with many dependencies, because some compilers
4725 # like to wrap large dependency lists on column 80 (with \), and
4726 # we should not choose a depcomp mode which is confused by this.
4727 #
4728 # We need to recreate these files for each test, as the compiler may
4729 # overwrite some of them when testing with obscure command lines.
4730 # This happens at least with the AIX C compiler.
4731 : > sub/conftest.c
4732 for i in 1 2 3 4 5 6; do
4733 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4734 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4735 # Solaris 10 /bin/sh.
4736 echo '/* dummy */' > sub/conftst$i.h
4737 done
4738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4739
4740 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4741 # mode. It turns out that the SunPro C++ compiler does not properly
4742 # handle '-M -o', and we need to detect this. Also, some Intel
4743 # versions had trouble with output in subdirs.
4744 am__obj=sub/conftest.${OBJEXT-o}
4745 am__minus_obj="-o $am__obj"
4746 case $depmode in
4747 gcc)
4748 # This depmode causes a compiler race in universal mode.
4749 test "$am__universal" = false || continue
4750 ;;
4751 nosideeffect)
4752 # After this tag, mechanisms are not by side-effect, so they'll
4753 # only be used when explicitly requested.
4754 if test "x$enable_dependency_tracking" = xyes; then
4755 continue
4756 else
4757 break
4758 fi
4759 ;;
4760 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4761 # This compiler won't grok '-c -o', but also, the minuso test has
4762 # not run yet. These depmodes are late enough in the game, and
4763 # so weak that their functioning should not be impacted.
4764 am__obj=conftest.${OBJEXT-o}
4765 am__minus_obj=
4766 ;;
4767 none) break ;;
4768 esac
4769 if depmode=$depmode \
4770 source=sub/conftest.c object=$am__obj \
4771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4772 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4773 >/dev/null 2>conftest.err &&
4774 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4776 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4778 # icc doesn't choke on unknown options, it will just issue warnings
4779 # or remarks (even with -Werror). So we grep stderr for any message
4780 # that says an option was ignored or not supported.
4781 # When given -MP, icc 7.0 and 7.1 complain thusly:
4782 # icc: Command line warning: ignoring option '-M'; no argument required
4783 # The diagnosis changed in icc 8.0:
4784 # icc: Command line remark: option '-MP' not supported
4785 if (grep 'ignoring option' conftest.err ||
4786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4787 am_cv_CC_dependencies_compiler_type=$depmode
4788 break
4789 fi
4790 fi
4791 done
4792
4793 cd ..
4794 rm -rf conftest.dir
4795 else
4796 am_cv_CC_dependencies_compiler_type=none
4797 fi
4798
4799 fi
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4801 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4803
4804 if
4805 test "x$enable_dependency_tracking" != xno \
4806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4807 am__fastdepCC_TRUE=
4808 am__fastdepCC_FALSE='#'
4809 else
4810 am__fastdepCC_TRUE='#'
4811 am__fastdepCC_FALSE=
4812 fi
4813
4814
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4816 printf %s "checking for a sed that does not truncate output... " >&6; }
4817 if test ${ac_cv_path_SED+y}
4818 then :
4819 printf %s "(cached) " >&6
4820 else $as_nop
4821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4822 for ac_i in 1 2 3 4 5 6 7; do
4823 ac_script="$ac_script$as_nl$ac_script"
4824 done
4825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4826 { ac_script=; unset ac_script;}
4827 if test -z "$SED"; then
4828 ac_path_SED_found=false
4829 # Loop through the user's path and test for each of PROGNAME-LIST
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 case $as_dir in #(((
4835 '') as_dir=./ ;;
4836 */) ;;
4837 *) as_dir=$as_dir/ ;;
4838 esac
4839 for ac_prog in sed gsed
4840 do
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4843 as_fn_executable_p "$ac_path_SED" || continue
4844 # Check for GNU ac_path_SED and select it if it is found.
4845 # Check for GNU $ac_path_SED
4846 case `"$ac_path_SED" --version 2>&1` in
4847 *GNU*)
4848 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4849 *)
4850 ac_count=0
4851 printf %s 0123456789 >"conftest.in"
4852 while :
4853 do
4854 cat "conftest.in" "conftest.in" >"conftest.tmp"
4855 mv "conftest.tmp" "conftest.in"
4856 cp "conftest.in" "conftest.nl"
4857 printf "%s\n" '' >> "conftest.nl"
4858 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4860 as_fn_arith $ac_count + 1 && ac_count=$as_val
4861 if test $ac_count -gt ${ac_path_SED_max-0}; then
4862 # Best one so far, save it but keep looking for a better one
4863 ac_cv_path_SED="$ac_path_SED"
4864 ac_path_SED_max=$ac_count
4865 fi
4866 # 10*(2^10) chars as input seems more than enough
4867 test $ac_count -gt 10 && break
4868 done
4869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870 esac
4871
4872 $ac_path_SED_found && break 3
4873 done
4874 done
4875 done
4876 IFS=$as_save_IFS
4877 if test -z "$ac_cv_path_SED"; then
4878 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4879 fi
4880 else
4881 ac_cv_path_SED=$SED
4882 fi
4883
4884 fi
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4886 printf "%s\n" "$ac_cv_path_SED" >&6; }
4887 SED="$ac_cv_path_SED"
4888 rm -f conftest.sed
4889
4890 test -z "$SED" && SED=sed
4891 Xsed="$SED -e 1s/^X//"
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4904 printf %s "checking for grep that handles long lines and -e... " >&6; }
4905 if test ${ac_cv_path_GREP+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else $as_nop
4909 if test -z "$GREP"; then
4910 ac_path_GREP_found=false
4911 # Loop through the user's path and test for each of PROGNAME-LIST
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4914 do
4915 IFS=$as_save_IFS
4916 case $as_dir in #(((
4917 '') as_dir=./ ;;
4918 */) ;;
4919 *) as_dir=$as_dir/ ;;
4920 esac
4921 for ac_prog in grep ggrep
4922 do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4925 as_fn_executable_p "$ac_path_GREP" || continue
4926 # Check for GNU ac_path_GREP and select it if it is found.
4927 # Check for GNU $ac_path_GREP
4928 case `"$ac_path_GREP" --version 2>&1` in
4929 *GNU*)
4930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4931 *)
4932 ac_count=0
4933 printf %s 0123456789 >"conftest.in"
4934 while :
4935 do
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 printf "%s\n" 'GREP' >> "conftest.nl"
4940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942 as_fn_arith $ac_count + 1 && ac_count=$as_val
4943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_GREP="$ac_path_GREP"
4946 ac_path_GREP_max=$ac_count
4947 fi
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4950 done
4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952 esac
4953
4954 $ac_path_GREP_found && break 3
4955 done
4956 done
4957 done
4958 IFS=$as_save_IFS
4959 if test -z "$ac_cv_path_GREP"; then
4960 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4961 fi
4962 else
4963 ac_cv_path_GREP=$GREP
4964 fi
4965
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4968 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4969 GREP="$ac_cv_path_GREP"
4970
4971
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4973 printf %s "checking for egrep... " >&6; }
4974 if test ${ac_cv_path_EGREP+y}
4975 then :
4976 printf %s "(cached) " >&6
4977 else $as_nop
4978 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4979 then ac_cv_path_EGREP="$GREP -E"
4980 else
4981 if test -z "$EGREP"; then
4982 ac_path_EGREP_found=false
4983 # Loop through the user's path and test for each of PROGNAME-LIST
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 do
4987 IFS=$as_save_IFS
4988 case $as_dir in #(((
4989 '') as_dir=./ ;;
4990 */) ;;
4991 *) as_dir=$as_dir/ ;;
4992 esac
4993 for ac_prog in egrep
4994 do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4997 as_fn_executable_p "$ac_path_EGREP" || continue
4998 # Check for GNU ac_path_EGREP and select it if it is found.
4999 # Check for GNU $ac_path_EGREP
5000 case `"$ac_path_EGREP" --version 2>&1` in
5001 *GNU*)
5002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5003 *)
5004 ac_count=0
5005 printf %s 0123456789 >"conftest.in"
5006 while :
5007 do
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 printf "%s\n" 'EGREP' >> "conftest.nl"
5012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014 as_fn_arith $ac_count + 1 && ac_count=$as_val
5015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_EGREP="$ac_path_EGREP"
5018 ac_path_EGREP_max=$ac_count
5019 fi
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5022 done
5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024 esac
5025
5026 $ac_path_EGREP_found && break 3
5027 done
5028 done
5029 done
5030 IFS=$as_save_IFS
5031 if test -z "$ac_cv_path_EGREP"; then
5032 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033 fi
5034 else
5035 ac_cv_path_EGREP=$EGREP
5036 fi
5037
5038 fi
5039 fi
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5041 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5042 EGREP="$ac_cv_path_EGREP"
5043
5044
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5046 printf %s "checking for fgrep... " >&6; }
5047 if test ${ac_cv_path_FGREP+y}
5048 then :
5049 printf %s "(cached) " >&6
5050 else $as_nop
5051 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5052 then ac_cv_path_FGREP="$GREP -F"
5053 else
5054 if test -z "$FGREP"; then
5055 ac_path_FGREP_found=false
5056 # Loop through the user's path and test for each of PROGNAME-LIST
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 do
5060 IFS=$as_save_IFS
5061 case $as_dir in #(((
5062 '') as_dir=./ ;;
5063 */) ;;
5064 *) as_dir=$as_dir/ ;;
5065 esac
5066 for ac_prog in fgrep
5067 do
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5070 as_fn_executable_p "$ac_path_FGREP" || continue
5071 # Check for GNU ac_path_FGREP and select it if it is found.
5072 # Check for GNU $ac_path_FGREP
5073 case `"$ac_path_FGREP" --version 2>&1` in
5074 *GNU*)
5075 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5076 *)
5077 ac_count=0
5078 printf %s 0123456789 >"conftest.in"
5079 while :
5080 do
5081 cat "conftest.in" "conftest.in" >"conftest.tmp"
5082 mv "conftest.tmp" "conftest.in"
5083 cp "conftest.in" "conftest.nl"
5084 printf "%s\n" 'FGREP' >> "conftest.nl"
5085 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5087 as_fn_arith $ac_count + 1 && ac_count=$as_val
5088 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5089 # Best one so far, save it but keep looking for a better one
5090 ac_cv_path_FGREP="$ac_path_FGREP"
5091 ac_path_FGREP_max=$ac_count
5092 fi
5093 # 10*(2^10) chars as input seems more than enough
5094 test $ac_count -gt 10 && break
5095 done
5096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5097 esac
5098
5099 $ac_path_FGREP_found && break 3
5100 done
5101 done
5102 done
5103 IFS=$as_save_IFS
5104 if test -z "$ac_cv_path_FGREP"; then
5105 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5106 fi
5107 else
5108 ac_cv_path_FGREP=$FGREP
5109 fi
5110
5111 fi
5112 fi
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5114 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5115 FGREP="$ac_cv_path_FGREP"
5116
5117
5118 test -z "$GREP" && GREP=grep
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138 # Check whether --with-gnu-ld was given.
5139 if test ${with_gnu_ld+y}
5140 then :
5141 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5142 else $as_nop
5143 with_gnu_ld=no
5144 fi
5145
5146 ac_prog=ld
5147 if test yes = "$GCC"; then
5148 # Check if gcc -print-prog-name=ld gives a path.
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5150 printf %s "checking for ld used by $CC... " >&6; }
5151 case $host in
5152 *-*-mingw*)
5153 # gcc leaves a trailing carriage return, which upsets mingw
5154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5155 *)
5156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5157 esac
5158 case $ac_prog in
5159 # Accept absolute paths.
5160 [\\/]* | ?:[\\/]*)
5161 re_direlt='/[^/][^/]*/\.\./'
5162 # Canonicalize the pathname of ld
5163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5166 done
5167 test -z "$LD" && LD=$ac_prog
5168 ;;
5169 "")
5170 # If it fails, then pretend we aren't using GCC.
5171 ac_prog=ld
5172 ;;
5173 *)
5174 # If it is relative, then search for the first ld in PATH.
5175 with_gnu_ld=unknown
5176 ;;
5177 esac
5178 elif test yes = "$with_gnu_ld"; then
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5180 printf %s "checking for GNU ld... " >&6; }
5181 else
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5183 printf %s "checking for non-GNU ld... " >&6; }
5184 fi
5185 if test ${lt_cv_path_LD+y}
5186 then :
5187 printf %s "(cached) " >&6
5188 else $as_nop
5189 if test -z "$LD"; then
5190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5191 for ac_dir in $PATH; do
5192 IFS=$lt_save_ifs
5193 test -z "$ac_dir" && ac_dir=.
5194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5195 lt_cv_path_LD=$ac_dir/$ac_prog
5196 # Check to see if the program is GNU ld. I'd rather use --version,
5197 # but apparently some variants of GNU ld only accept -v.
5198 # Break only if it was the GNU/non-GNU ld that we prefer.
5199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5200 *GNU* | *'with BFD'*)
5201 test no != "$with_gnu_ld" && break
5202 ;;
5203 *)
5204 test yes != "$with_gnu_ld" && break
5205 ;;
5206 esac
5207 fi
5208 done
5209 IFS=$lt_save_ifs
5210 else
5211 lt_cv_path_LD=$LD # Let the user override the test with a path.
5212 fi
5213 fi
5214
5215 LD=$lt_cv_path_LD
5216 if test -n "$LD"; then
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5218 printf "%s\n" "$LD" >&6; }
5219 else
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 printf "%s\n" "no" >&6; }
5222 fi
5223 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5225 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5226 if test ${lt_cv_prog_gnu_ld+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else $as_nop
5230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5231 case `$LD -v 2>&1 </dev/null` in
5232 *GNU* | *'with BFD'*)
5233 lt_cv_prog_gnu_ld=yes
5234 ;;
5235 *)
5236 lt_cv_prog_gnu_ld=no
5237 ;;
5238 esac
5239 fi
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5241 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5242 with_gnu_ld=$lt_cv_prog_gnu_ld
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5253 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5254 if test ${lt_cv_path_NM+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else $as_nop
5258 if test -n "$NM"; then
5259 # Let the user override the test.
5260 lt_cv_path_NM=$NM
5261 else
5262 lt_nm_to_check=${ac_tool_prefix}nm
5263 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5264 lt_nm_to_check="$lt_nm_to_check nm"
5265 fi
5266 for lt_tmp_nm in $lt_nm_to_check; do
5267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5268 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5269 IFS=$lt_save_ifs
5270 test -z "$ac_dir" && ac_dir=.
5271 tmp_nm=$ac_dir/$lt_tmp_nm
5272 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5273 # Check to see if the nm accepts a BSD-compat flag.
5274 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5275 # nm: unknown option "B" ignored
5276 # Tru64's nm complains that /dev/null is an invalid object file
5277 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5278 case $build_os in
5279 mingw*) lt_bad_file=conftest.nm/nofile ;;
5280 *) lt_bad_file=/dev/null ;;
5281 esac
5282 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5283 *$lt_bad_file* | *'Invalid file or object type'*)
5284 lt_cv_path_NM="$tmp_nm -B"
5285 break 2
5286 ;;
5287 *)
5288 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5289 */dev/null*)
5290 lt_cv_path_NM="$tmp_nm -p"
5291 break 2
5292 ;;
5293 *)
5294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5295 continue # so that we can try to find one that supports BSD flags
5296 ;;
5297 esac
5298 ;;
5299 esac
5300 fi
5301 done
5302 IFS=$lt_save_ifs
5303 done
5304 : ${lt_cv_path_NM=no}
5305 fi
5306 fi
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5308 printf "%s\n" "$lt_cv_path_NM" >&6; }
5309 if test no != "$lt_cv_path_NM"; then
5310 NM=$lt_cv_path_NM
5311 else
5312 # Didn't find any BSD compatible name lister, look for dumpbin.
5313 if test -n "$DUMPBIN"; then :
5314 # Let the user override the test.
5315 else
5316 if test -n "$ac_tool_prefix"; then
5317 for ac_prog in dumpbin "link -dump"
5318 do
5319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 printf %s "checking for $ac_word... " >&6; }
5323 if test ${ac_cv_prog_DUMPBIN+y}
5324 then :
5325 printf %s "(cached) " >&6
5326 else $as_nop
5327 if test -n "$DUMPBIN"; then
5328 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 case $as_dir in #(((
5335 '') as_dir=./ ;;
5336 */) ;;
5337 *) as_dir=$as_dir/ ;;
5338 esac
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 DUMPBIN=$ac_cv_prog_DUMPBIN
5352 if test -n "$DUMPBIN"; then
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5354 printf "%s\n" "$DUMPBIN" >&6; }
5355 else
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 printf "%s\n" "no" >&6; }
5358 fi
5359
5360
5361 test -n "$DUMPBIN" && break
5362 done
5363 fi
5364 if test -z "$DUMPBIN"; then
5365 ac_ct_DUMPBIN=$DUMPBIN
5366 for ac_prog in dumpbin "link -dump"
5367 do
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 printf %s "checking for $ac_word... " >&6; }
5372 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5373 then :
5374 printf %s "(cached) " >&6
5375 else $as_nop
5376 if test -n "$ac_ct_DUMPBIN"; then
5377 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 case $as_dir in #(((
5384 '') as_dir=./ ;;
5385 */) ;;
5386 *) as_dir=$as_dir/ ;;
5387 esac
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5392 break 2
5393 fi
5394 done
5395 done
5396 IFS=$as_save_IFS
5397
5398 fi
5399 fi
5400 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5401 if test -n "$ac_ct_DUMPBIN"; then
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5403 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5404 else
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 printf "%s\n" "no" >&6; }
5407 fi
5408
5409
5410 test -n "$ac_ct_DUMPBIN" && break
5411 done
5412
5413 if test "x$ac_ct_DUMPBIN" = x; then
5414 DUMPBIN=":"
5415 else
5416 case $cross_compiling:$ac_tool_warned in
5417 yes:)
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5419 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420 ac_tool_warned=yes ;;
5421 esac
5422 DUMPBIN=$ac_ct_DUMPBIN
5423 fi
5424 fi
5425
5426 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5427 *COFF*)
5428 DUMPBIN="$DUMPBIN -symbols -headers"
5429 ;;
5430 *)
5431 DUMPBIN=:
5432 ;;
5433 esac
5434 fi
5435
5436 if test : != "$DUMPBIN"; then
5437 NM=$DUMPBIN
5438 fi
5439 fi
5440 test -z "$NM" && NM=nm
5441
5442
5443
5444
5445
5446
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5448 printf %s "checking the name lister ($NM) interface... " >&6; }
5449 if test ${lt_cv_nm_interface+y}
5450 then :
5451 printf %s "(cached) " >&6
5452 else $as_nop
5453 lt_cv_nm_interface="BSD nm"
5454 echo "int some_variable = 0;" > conftest.$ac_ext
5455 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5456 (eval "$ac_compile" 2>conftest.err)
5457 cat conftest.err >&5
5458 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5459 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5460 cat conftest.err >&5
5461 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5462 cat conftest.out >&5
5463 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5464 lt_cv_nm_interface="MS dumpbin"
5465 fi
5466 rm -f conftest*
5467 fi
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5469 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5470
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5472 printf %s "checking whether ln -s works... " >&6; }
5473 LN_S=$as_ln_s
5474 if test "$LN_S" = "ln -s"; then
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 printf "%s\n" "yes" >&6; }
5477 else
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5479 printf "%s\n" "no, using $LN_S" >&6; }
5480 fi
5481
5482 # find the maximum length of command line arguments
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5484 printf %s "checking the maximum length of command line arguments... " >&6; }
5485 if test ${lt_cv_sys_max_cmd_len+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else $as_nop
5489 i=0
5490 teststring=ABCD
5491
5492 case $build_os in
5493 msdosdjgpp*)
5494 # On DJGPP, this test can blow up pretty badly due to problems in libc
5495 # (any single argument exceeding 2000 bytes causes a buffer overrun
5496 # during glob expansion). Even if it were fixed, the result of this
5497 # check would be larger than it should be.
5498 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5499 ;;
5500
5501 gnu*)
5502 # Under GNU Hurd, this test is not required because there is
5503 # no limit to the length of command line arguments.
5504 # Libtool will interpret -1 as no limit whatsoever
5505 lt_cv_sys_max_cmd_len=-1;
5506 ;;
5507
5508 cygwin* | mingw* | cegcc*)
5509 # On Win9x/ME, this test blows up -- it succeeds, but takes
5510 # about 5 minutes as the teststring grows exponentially.
5511 # Worse, since 9x/ME are not pre-emptively multitasking,
5512 # you end up with a "frozen" computer, even though with patience
5513 # the test eventually succeeds (with a max line length of 256k).
5514 # Instead, let's just punt: use the minimum linelength reported by
5515 # all of the supported platforms: 8192 (on NT/2K/XP).
5516 lt_cv_sys_max_cmd_len=8192;
5517 ;;
5518
5519 mint*)
5520 # On MiNT this can take a long time and run out of memory.
5521 lt_cv_sys_max_cmd_len=8192;
5522 ;;
5523
5524 amigaos*)
5525 # On AmigaOS with pdksh, this test takes hours, literally.
5526 # So we just punt and use a minimum line length of 8192.
5527 lt_cv_sys_max_cmd_len=8192;
5528 ;;
5529
5530 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5531 # This has been around since 386BSD, at least. Likely further.
5532 if test -x /sbin/sysctl; then
5533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5534 elif test -x /usr/sbin/sysctl; then
5535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5536 else
5537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5538 fi
5539 # And add a safety zone
5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5542 ;;
5543
5544 interix*)
5545 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5546 lt_cv_sys_max_cmd_len=196608
5547 ;;
5548
5549 os2*)
5550 # The test takes a long time on OS/2.
5551 lt_cv_sys_max_cmd_len=8192
5552 ;;
5553
5554 osf*)
5555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5557 # nice to cause kernel panics so lets avoid the loop below.
5558 # First set a reasonable default.
5559 lt_cv_sys_max_cmd_len=16384
5560 #
5561 if test -x /sbin/sysconfig; then
5562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5564 esac
5565 fi
5566 ;;
5567 sco3.2v5*)
5568 lt_cv_sys_max_cmd_len=102400
5569 ;;
5570 sysv5* | sco5v6* | sysv4.2uw2*)
5571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5572 if test -n "$kargmax"; then
5573 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5574 else
5575 lt_cv_sys_max_cmd_len=32768
5576 fi
5577 ;;
5578 *)
5579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5580 if test -n "$lt_cv_sys_max_cmd_len" && \
5581 test undefined != "$lt_cv_sys_max_cmd_len"; then
5582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5584 else
5585 # Make teststring a little bigger before we do anything with it.
5586 # a 1K string should be a reasonable start.
5587 for i in 1 2 3 4 5 6 7 8; do
5588 teststring=$teststring$teststring
5589 done
5590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5591 # If test is not a shell built-in, we'll probably end up computing a
5592 # maximum length that is only half of the actual maximum length, but
5593 # we can't tell.
5594 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5595 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5596 test 17 != "$i" # 1/2 MB should be enough
5597 do
5598 i=`expr $i + 1`
5599 teststring=$teststring$teststring
5600 done
5601 # Only check the string length outside the loop.
5602 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5603 teststring=
5604 # Add a significant safety factor because C++ compilers can tack on
5605 # massive amounts of additional arguments before passing them to the
5606 # linker. It appears as though 1/2 is a usable value.
5607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5608 fi
5609 ;;
5610 esac
5611
5612 fi
5613
5614 if test -n "$lt_cv_sys_max_cmd_len"; then
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5616 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5617 else
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5619 printf "%s\n" "none" >&6; }
5620 fi
5621 max_cmd_len=$lt_cv_sys_max_cmd_len
5622
5623
5624
5625
5626
5627
5628 : ${CP="cp -f"}
5629 : ${MV="mv -f"}
5630 : ${RM="rm -f"}
5631
5632 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5633 lt_unset=unset
5634 else
5635 lt_unset=false
5636 fi
5637
5638
5639
5640
5641
5642 # test EBCDIC or ASCII
5643 case `echo X|tr X '\101'` in
5644 A) # ASCII based system
5645 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5646 lt_SP2NL='tr \040 \012'
5647 lt_NL2SP='tr \015\012 \040\040'
5648 ;;
5649 *) # EBCDIC based system
5650 lt_SP2NL='tr \100 \n'
5651 lt_NL2SP='tr \r\n \100\100'
5652 ;;
5653 esac
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5664 printf %s "checking how to convert $build file names to $host format... " >&6; }
5665 if test ${lt_cv_to_host_file_cmd+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else $as_nop
5669 case $host in
5670 *-*-mingw* )
5671 case $build in
5672 *-*-mingw* ) # actually msys
5673 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5674 ;;
5675 *-*-cygwin* )
5676 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5677 ;;
5678 * ) # otherwise, assume *nix
5679 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5680 ;;
5681 esac
5682 ;;
5683 *-*-cygwin* )
5684 case $build in
5685 *-*-mingw* ) # actually msys
5686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5687 ;;
5688 *-*-cygwin* )
5689 lt_cv_to_host_file_cmd=func_convert_file_noop
5690 ;;
5691 * ) # otherwise, assume *nix
5692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5693 ;;
5694 esac
5695 ;;
5696 * ) # unhandled hosts (and "normal" native builds)
5697 lt_cv_to_host_file_cmd=func_convert_file_noop
5698 ;;
5699 esac
5700
5701 fi
5702
5703 to_host_file_cmd=$lt_cv_to_host_file_cmd
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5705 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5706
5707
5708
5709
5710
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5712 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5713 if test ${lt_cv_to_tool_file_cmd+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else $as_nop
5717 #assume ordinary cross tools, or native build.
5718 lt_cv_to_tool_file_cmd=func_convert_file_noop
5719 case $host in
5720 *-*-mingw* )
5721 case $build in
5722 *-*-mingw* ) # actually msys
5723 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5724 ;;
5725 esac
5726 ;;
5727 esac
5728
5729 fi
5730
5731 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5733 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5734
5735
5736
5737
5738
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5740 printf %s "checking for $LD option to reload object files... " >&6; }
5741 if test ${lt_cv_ld_reload_flag+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else $as_nop
5745 lt_cv_ld_reload_flag='-r'
5746 fi
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5748 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5749 reload_flag=$lt_cv_ld_reload_flag
5750 case $reload_flag in
5751 "" | " "*) ;;
5752 *) reload_flag=" $reload_flag" ;;
5753 esac
5754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5755 case $host_os in
5756 cygwin* | mingw* | pw32* | cegcc*)
5757 if test yes != "$GCC"; then
5758 reload_cmds=false
5759 fi
5760 ;;
5761 darwin*)
5762 if test yes = "$GCC"; then
5763 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5764 else
5765 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5766 fi
5767 ;;
5768 esac
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 if test -n "$ac_tool_prefix"; then
5779 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5780 set dummy ${ac_tool_prefix}file; ac_word=$2
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 printf %s "checking for $ac_word... " >&6; }
5783 if test ${ac_cv_prog_FILECMD+y}
5784 then :
5785 printf %s "(cached) " >&6
5786 else $as_nop
5787 if test -n "$FILECMD"; then
5788 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793 IFS=$as_save_IFS
5794 case $as_dir in #(((
5795 '') as_dir=./ ;;
5796 */) ;;
5797 *) as_dir=$as_dir/ ;;
5798 esac
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809 fi
5810 fi
5811 FILECMD=$ac_cv_prog_FILECMD
5812 if test -n "$FILECMD"; then
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5814 printf "%s\n" "$FILECMD" >&6; }
5815 else
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 printf "%s\n" "no" >&6; }
5818 fi
5819
5820
5821 fi
5822 if test -z "$ac_cv_prog_FILECMD"; then
5823 ac_ct_FILECMD=$FILECMD
5824 # Extract the first word of "file", so it can be a program name with args.
5825 set dummy file; ac_word=$2
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 printf %s "checking for $ac_word... " >&6; }
5828 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5829 then :
5830 printf %s "(cached) " >&6
5831 else $as_nop
5832 if test -n "$ac_ct_FILECMD"; then
5833 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838 IFS=$as_save_IFS
5839 case $as_dir in #(((
5840 '') as_dir=./ ;;
5841 */) ;;
5842 *) as_dir=$as_dir/ ;;
5843 esac
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5846 ac_cv_prog_ac_ct_FILECMD="file"
5847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5857 if test -n "$ac_ct_FILECMD"; then
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5859 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5860 else
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 printf "%s\n" "no" >&6; }
5863 fi
5864
5865 if test "x$ac_ct_FILECMD" = x; then
5866 FILECMD=":"
5867 else
5868 case $cross_compiling:$ac_tool_warned in
5869 yes:)
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5873 esac
5874 FILECMD=$ac_ct_FILECMD
5875 fi
5876 else
5877 FILECMD="$ac_cv_prog_FILECMD"
5878 fi
5879
5880
5881
5882
5883
5884
5885
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 printf %s "checking for $ac_word... " >&6; }
5891 if test ${ac_cv_prog_OBJDUMP+y}
5892 then :
5893 printf %s "(cached) " >&6
5894 else $as_nop
5895 if test -n "$OBJDUMP"; then
5896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901 IFS=$as_save_IFS
5902 case $as_dir in #(((
5903 '') as_dir=./ ;;
5904 */) ;;
5905 *) as_dir=$as_dir/ ;;
5906 esac
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5911 break 2
5912 fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 OBJDUMP=$ac_cv_prog_OBJDUMP
5920 if test -n "$OBJDUMP"; then
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5922 printf "%s\n" "$OBJDUMP" >&6; }
5923 else
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 printf "%s\n" "no" >&6; }
5926 fi
5927
5928
5929 fi
5930 if test -z "$ac_cv_prog_OBJDUMP"; then
5931 ac_ct_OBJDUMP=$OBJDUMP
5932 # Extract the first word of "objdump", so it can be a program name with args.
5933 set dummy objdump; ac_word=$2
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 printf %s "checking for $ac_word... " >&6; }
5936 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5937 then :
5938 printf %s "(cached) " >&6
5939 else $as_nop
5940 if test -n "$ac_ct_OBJDUMP"; then
5941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 case $as_dir in #(((
5948 '') as_dir=./ ;;
5949 */) ;;
5950 *) as_dir=$as_dir/ ;;
5951 esac
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5965 if test -n "$ac_ct_OBJDUMP"; then
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5967 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5968 else
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 printf "%s\n" "no" >&6; }
5971 fi
5972
5973 if test "x$ac_ct_OBJDUMP" = x; then
5974 OBJDUMP="false"
5975 else
5976 case $cross_compiling:$ac_tool_warned in
5977 yes:)
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980 ac_tool_warned=yes ;;
5981 esac
5982 OBJDUMP=$ac_ct_OBJDUMP
5983 fi
5984 else
5985 OBJDUMP="$ac_cv_prog_OBJDUMP"
5986 fi
5987
5988 test -z "$OBJDUMP" && OBJDUMP=objdump
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5999 printf %s "checking how to recognize dependent libraries... " >&6; }
6000 if test ${lt_cv_deplibs_check_method+y}
6001 then :
6002 printf %s "(cached) " >&6
6003 else $as_nop
6004 lt_cv_file_magic_cmd='$MAGIC_CMD'
6005 lt_cv_file_magic_test_file=
6006 lt_cv_deplibs_check_method='unknown'
6007 # Need to set the preceding variable on all platforms that support
6008 # interlibrary dependencies.
6009 # 'none' -- dependencies not supported.
6010 # 'unknown' -- same as none, but documents that we really don't know.
6011 # 'pass_all' -- all dependencies passed with no checks.
6012 # 'test_compile' -- check by making test program.
6013 # 'file_magic [[regex]]' -- check by looking for files in library path
6014 # that responds to the $file_magic_cmd with a given extended regex.
6015 # If you have 'file' or equivalent on your system and you're not sure
6016 # whether 'pass_all' will *always* work, you probably want this one.
6017
6018 case $host_os in
6019 aix[4-9]*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023 beos*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 bsdi[45]*)
6028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6029 lt_cv_file_magic_cmd='$FILECMD -L'
6030 lt_cv_file_magic_test_file=/shlib/libc.so
6031 ;;
6032
6033 cygwin*)
6034 # func_win32_libid is a shell function defined in ltmain.sh
6035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6036 lt_cv_file_magic_cmd='func_win32_libid'
6037 ;;
6038
6039 mingw* | pw32*)
6040 # Base MSYS/MinGW do not provide the 'file' command needed by
6041 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6042 # unless we find 'file', for example because we are cross-compiling.
6043 if ( file / ) >/dev/null 2>&1; then
6044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6045 lt_cv_file_magic_cmd='func_win32_libid'
6046 else
6047 # Keep this pattern in sync with the one in func_win32_libid.
6048 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6049 lt_cv_file_magic_cmd='$OBJDUMP -f'
6050 fi
6051 ;;
6052
6053 cegcc*)
6054 # use the weaker test based on 'objdump'. See mingw*.
6055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6056 lt_cv_file_magic_cmd='$OBJDUMP -f'
6057 ;;
6058
6059 darwin* | rhapsody*)
6060 lt_cv_deplibs_check_method=pass_all
6061 ;;
6062
6063 freebsd* | dragonfly* | midnightbsd*)
6064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6065 case $host_cpu in
6066 i*86 )
6067 # Not sure whether the presence of OpenBSD here was a mistake.
6068 # Let's accept both of them until this is cleared up.
6069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6070 lt_cv_file_magic_cmd=$FILECMD
6071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6072 ;;
6073 esac
6074 else
6075 lt_cv_deplibs_check_method=pass_all
6076 fi
6077 ;;
6078
6079 haiku*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 hpux10.20* | hpux11*)
6084 lt_cv_file_magic_cmd=$FILECMD
6085 case $host_cpu in
6086 ia64*)
6087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6089 ;;
6090 hppa*64*)
6091 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]'
6092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6093 ;;
6094 *)
6095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6097 ;;
6098 esac
6099 ;;
6100
6101 interix[3-9]*)
6102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6104 ;;
6105
6106 irix5* | irix6* | nonstopux*)
6107 case $LD in
6108 *-32|*"-32 ") libmagic=32-bit;;
6109 *-n32|*"-n32 ") libmagic=N32;;
6110 *-64|*"-64 ") libmagic=64-bit;;
6111 *) libmagic=never-match;;
6112 esac
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116 # This must be glibc/ELF.
6117 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121 netbsd*)
6122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6124 else
6125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6126 fi
6127 ;;
6128
6129 newos6*)
6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6131 lt_cv_file_magic_cmd=$FILECMD
6132 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6133 ;;
6134
6135 *nto* | *qnx*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138
6139 openbsd* | bitrig*)
6140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6142 else
6143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6144 fi
6145 ;;
6146
6147 osf3* | osf4* | osf5*)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150
6151 rdos*)
6152 lt_cv_deplibs_check_method=pass_all
6153 ;;
6154
6155 solaris*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162
6163 sysv4 | sysv4.3*)
6164 case $host_vendor in
6165 motorola)
6166 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]'
6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6168 ;;
6169 ncr)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172 sequent)
6173 lt_cv_file_magic_cmd='/bin/file'
6174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6175 ;;
6176 sni)
6177 lt_cv_file_magic_cmd='/bin/file'
6178 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6179 lt_cv_file_magic_test_file=/lib/libc.so
6180 ;;
6181 siemens)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184 pc)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187 esac
6188 ;;
6189
6190 tpf*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193 os2*)
6194 lt_cv_deplibs_check_method=pass_all
6195 ;;
6196 esac
6197
6198 fi
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6200 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6201
6202 file_magic_glob=
6203 want_nocaseglob=no
6204 if test "$build" = "$host"; then
6205 case $host_os in
6206 mingw* | pw32*)
6207 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6208 want_nocaseglob=yes
6209 else
6210 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6211 fi
6212 ;;
6213 esac
6214 fi
6215
6216 file_magic_cmd=$lt_cv_file_magic_cmd
6217 deplibs_check_method=$lt_cv_deplibs_check_method
6218 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 printf %s "checking for $ac_word... " >&6; }
6246 if test ${ac_cv_prog_DLLTOOL+y}
6247 then :
6248 printf %s "(cached) " >&6
6249 else $as_nop
6250 if test -n "$DLLTOOL"; then
6251 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 case $as_dir in #(((
6258 '') as_dir=./ ;;
6259 */) ;;
6260 *) as_dir=$as_dir/ ;;
6261 esac
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 DLLTOOL=$ac_cv_prog_DLLTOOL
6275 if test -n "$DLLTOOL"; then
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6277 printf "%s\n" "$DLLTOOL" >&6; }
6278 else
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 printf "%s\n" "no" >&6; }
6281 fi
6282
6283
6284 fi
6285 if test -z "$ac_cv_prog_DLLTOOL"; then
6286 ac_ct_DLLTOOL=$DLLTOOL
6287 # Extract the first word of "dlltool", so it can be a program name with args.
6288 set dummy dlltool; ac_word=$2
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 printf %s "checking for $ac_word... " >&6; }
6291 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6292 then :
6293 printf %s "(cached) " >&6
6294 else $as_nop
6295 if test -n "$ac_ct_DLLTOOL"; then
6296 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 case $as_dir in #(((
6303 '') as_dir=./ ;;
6304 */) ;;
6305 *) as_dir=$as_dir/ ;;
6306 esac
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6320 if test -n "$ac_ct_DLLTOOL"; then
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6322 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6323 else
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 printf "%s\n" "no" >&6; }
6326 fi
6327
6328 if test "x$ac_ct_DLLTOOL" = x; then
6329 DLLTOOL="false"
6330 else
6331 case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337 DLLTOOL=$ac_ct_DLLTOOL
6338 fi
6339 else
6340 DLLTOOL="$ac_cv_prog_DLLTOOL"
6341 fi
6342
6343 test -z "$DLLTOOL" && DLLTOOL=dlltool
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6355 printf %s "checking how to associate runtime and link libraries... " >&6; }
6356 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6357 then :
6358 printf %s "(cached) " >&6
6359 else $as_nop
6360 lt_cv_sharedlib_from_linklib_cmd='unknown'
6361
6362 case $host_os in
6363 cygwin* | mingw* | pw32* | cegcc*)
6364 # two different shell functions defined in ltmain.sh;
6365 # decide which one to use based on capabilities of $DLLTOOL
6366 case `$DLLTOOL --help 2>&1` in
6367 *--identify-strict*)
6368 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6369 ;;
6370 *)
6371 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6372 ;;
6373 esac
6374 ;;
6375 *)
6376 # fallback: assume linklib IS sharedlib
6377 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6378 ;;
6379 esac
6380
6381 fi
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6383 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6384 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6385 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6386
6387
6388
6389
6390
6391
6392
6393
6394 if test -n "$ac_tool_prefix"; then
6395 for ac_prog in ar
6396 do
6397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 printf %s "checking for $ac_word... " >&6; }
6401 if test ${ac_cv_prog_AR+y}
6402 then :
6403 printf %s "(cached) " >&6
6404 else $as_nop
6405 if test -n "$AR"; then
6406 ac_cv_prog_AR="$AR" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 case $as_dir in #(((
6413 '') as_dir=./ ;;
6414 */) ;;
6415 *) as_dir=$as_dir/ ;;
6416 esac
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6419 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 AR=$ac_cv_prog_AR
6430 if test -n "$AR"; then
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6432 printf "%s\n" "$AR" >&6; }
6433 else
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 printf "%s\n" "no" >&6; }
6436 fi
6437
6438
6439 test -n "$AR" && break
6440 done
6441 fi
6442 if test -z "$AR"; then
6443 ac_ct_AR=$AR
6444 for ac_prog in ar
6445 do
6446 # Extract the first word of "$ac_prog", so it can be a program name with args.
6447 set dummy $ac_prog; ac_word=$2
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 printf %s "checking for $ac_word... " >&6; }
6450 if test ${ac_cv_prog_ac_ct_AR+y}
6451 then :
6452 printf %s "(cached) " >&6
6453 else $as_nop
6454 if test -n "$ac_ct_AR"; then
6455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 case $as_dir in #(((
6462 '') as_dir=./ ;;
6463 */) ;;
6464 *) as_dir=$as_dir/ ;;
6465 esac
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_ac_ct_AR="$ac_prog"
6469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6479 if test -n "$ac_ct_AR"; then
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6481 printf "%s\n" "$ac_ct_AR" >&6; }
6482 else
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 printf "%s\n" "no" >&6; }
6485 fi
6486
6487
6488 test -n "$ac_ct_AR" && break
6489 done
6490
6491 if test "x$ac_ct_AR" = x; then
6492 AR="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 AR=$ac_ct_AR
6501 fi
6502 fi
6503
6504 : ${AR=ar}
6505
6506
6507
6508
6509
6510
6511 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6512 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6513 # higher priority because thats what people were doing historically (setting
6514 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6515 # variable obsoleted/removed.
6516
6517 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6518 lt_ar_flags=$AR_FLAGS
6519
6520
6521
6522
6523
6524
6525 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6526 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6527
6528
6529
6530
6531
6532
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6534 printf %s "checking for archiver @FILE support... " >&6; }
6535 if test ${lt_cv_ar_at_file+y}
6536 then :
6537 printf %s "(cached) " >&6
6538 else $as_nop
6539 lt_cv_ar_at_file=no
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542
6543 int
6544 main (void)
6545 {
6546
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"
6552 then :
6553 echo conftest.$ac_objext > conftest.lst
6554 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6556 (eval $lt_ar_try) 2>&5
6557 ac_status=$?
6558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }
6560 if test 0 -eq "$ac_status"; then
6561 # Ensure the archiver fails upon bogus file names.
6562 rm -f conftest.$ac_objext libconftest.a
6563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6564 (eval $lt_ar_try) 2>&5
6565 ac_status=$?
6566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6567 test $ac_status = 0; }
6568 if test 0 -ne "$ac_status"; then
6569 lt_cv_ar_at_file=@
6570 fi
6571 fi
6572 rm -f conftest.* libconftest.a
6573
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6576
6577 fi
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6579 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6580
6581 if test no = "$lt_cv_ar_at_file"; then
6582 archiver_list_spec=
6583 else
6584 archiver_list_spec=$lt_cv_ar_at_file
6585 fi
6586
6587
6588
6589
6590
6591
6592
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}strip; ac_word=$2
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 printf %s "checking for $ac_word... " >&6; }
6598 if test ${ac_cv_prog_STRIP+y}
6599 then :
6600 printf %s "(cached) " >&6
6601 else $as_nop
6602 if test -n "$STRIP"; then
6603 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 case $as_dir in #(((
6610 '') as_dir=./ ;;
6611 */) ;;
6612 *) as_dir=$as_dir/ ;;
6613 esac
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 STRIP=$ac_cv_prog_STRIP
6627 if test -n "$STRIP"; then
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6629 printf "%s\n" "$STRIP" >&6; }
6630 else
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 printf "%s\n" "no" >&6; }
6633 fi
6634
6635
6636 fi
6637 if test -z "$ac_cv_prog_STRIP"; then
6638 ac_ct_STRIP=$STRIP
6639 # Extract the first word of "strip", so it can be a program name with args.
6640 set dummy strip; ac_word=$2
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 printf %s "checking for $ac_word... " >&6; }
6643 if test ${ac_cv_prog_ac_ct_STRIP+y}
6644 then :
6645 printf %s "(cached) " >&6
6646 else $as_nop
6647 if test -n "$ac_ct_STRIP"; then
6648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653 IFS=$as_save_IFS
6654 case $as_dir in #(((
6655 '') as_dir=./ ;;
6656 */) ;;
6657 *) as_dir=$as_dir/ ;;
6658 esac
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6661 ac_cv_prog_ac_ct_STRIP="strip"
6662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6672 if test -n "$ac_ct_STRIP"; then
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6674 printf "%s\n" "$ac_ct_STRIP" >&6; }
6675 else
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 printf "%s\n" "no" >&6; }
6678 fi
6679
6680 if test "x$ac_ct_STRIP" = x; then
6681 STRIP=":"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689 STRIP=$ac_ct_STRIP
6690 fi
6691 else
6692 STRIP="$ac_cv_prog_STRIP"
6693 fi
6694
6695 test -z "$STRIP" && STRIP=:
6696
6697
6698
6699
6700
6701
6702 if test -n "$ac_tool_prefix"; then
6703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 printf %s "checking for $ac_word... " >&6; }
6707 if test ${ac_cv_prog_RANLIB+y}
6708 then :
6709 printf %s "(cached) " >&6
6710 else $as_nop
6711 if test -n "$RANLIB"; then
6712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 case $as_dir in #(((
6719 '') as_dir=./ ;;
6720 */) ;;
6721 *) as_dir=$as_dir/ ;;
6722 esac
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 RANLIB=$ac_cv_prog_RANLIB
6736 if test -n "$RANLIB"; then
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6738 printf "%s\n" "$RANLIB" >&6; }
6739 else
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 printf "%s\n" "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_RANLIB"; then
6747 ac_ct_RANLIB=$RANLIB
6748 # Extract the first word of "ranlib", so it can be a program name with args.
6749 set dummy ranlib; ac_word=$2
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 printf %s "checking for $ac_word... " >&6; }
6752 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6753 then :
6754 printf %s "(cached) " >&6
6755 else $as_nop
6756 if test -n "$ac_ct_RANLIB"; then
6757 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762 IFS=$as_save_IFS
6763 case $as_dir in #(((
6764 '') as_dir=./ ;;
6765 */) ;;
6766 *) as_dir=$as_dir/ ;;
6767 esac
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6770 ac_cv_prog_ac_ct_RANLIB="ranlib"
6771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6781 if test -n "$ac_ct_RANLIB"; then
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6783 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6784 else
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 printf "%s\n" "no" >&6; }
6787 fi
6788
6789 if test "x$ac_ct_RANLIB" = x; then
6790 RANLIB=":"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 RANLIB=$ac_ct_RANLIB
6799 fi
6800 else
6801 RANLIB="$ac_cv_prog_RANLIB"
6802 fi
6803
6804 test -z "$RANLIB" && RANLIB=:
6805
6806
6807
6808
6809
6810
6811 # Determine commands to create old-style static archives.
6812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6813 old_postinstall_cmds='chmod 644 $oldlib'
6814 old_postuninstall_cmds=
6815
6816 if test -n "$RANLIB"; then
6817 case $host_os in
6818 bitrig* | openbsd*)
6819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6820 ;;
6821 *)
6822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6823 ;;
6824 esac
6825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6826 fi
6827
6828 case $host_os in
6829 darwin*)
6830 lock_old_archive_extraction=yes ;;
6831 *)
6832 lock_old_archive_extraction=no ;;
6833 esac
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 # If no C compiler was specified, use CC.
6874 LTCC=${LTCC-"$CC"}
6875
6876 # If no C compiler flags were specified, use CFLAGS.
6877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6878
6879 # Allow CC to be a program name with arguments.
6880 compiler=$CC
6881
6882
6883 # Check for command to grab the raw symbol name followed by C symbol from nm.
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6885 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6886 if test ${lt_cv_sys_global_symbol_pipe+y}
6887 then :
6888 printf %s "(cached) " >&6
6889 else $as_nop
6890
6891 # These are sane defaults that work on at least a few old systems.
6892 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6893
6894 # Character class describing NM global symbol codes.
6895 symcode='[BCDEGRST]'
6896
6897 # Regexp to match symbols that can be accessed directly from C.
6898 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6899
6900 # Define system-specific variables.
6901 case $host_os in
6902 aix*)
6903 symcode='[BCDT]'
6904 ;;
6905 cygwin* | mingw* | pw32* | cegcc*)
6906 symcode='[ABCDGISTW]'
6907 ;;
6908 hpux*)
6909 if test ia64 = "$host_cpu"; then
6910 symcode='[ABCDEGRST]'
6911 fi
6912 ;;
6913 irix* | nonstopux*)
6914 symcode='[BCDEGRST]'
6915 ;;
6916 osf*)
6917 symcode='[BCDEGQRST]'
6918 ;;
6919 solaris*)
6920 symcode='[BDRT]'
6921 ;;
6922 sco3.2v5*)
6923 symcode='[DT]'
6924 ;;
6925 sysv4.2uw2*)
6926 symcode='[DT]'
6927 ;;
6928 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929 symcode='[ABDT]'
6930 ;;
6931 sysv4)
6932 symcode='[DFNSTU]'
6933 ;;
6934 esac
6935
6936 # If we're using GNU nm, then use its standard symbol codes.
6937 case `$NM -V 2>&1` in
6938 *GNU* | *'with BFD'*)
6939 symcode='[ABCDGIRSTW]' ;;
6940 esac
6941
6942 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6943 # Gets list of data symbols to import.
6944 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6945 # Adjust the below global symbol transforms to fixup imported variables.
6946 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6947 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6948 lt_c_name_lib_hook="\
6949 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6950 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6951 else
6952 # Disable hooks by default.
6953 lt_cv_sys_global_symbol_to_import=
6954 lt_cdecl_hook=
6955 lt_c_name_hook=
6956 lt_c_name_lib_hook=
6957 fi
6958
6959 # Transform an extracted symbol line into a proper C declaration.
6960 # Some systems (esp. on ia64) link data and code symbols differently,
6961 # so use this general approach.
6962 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6963 $lt_cdecl_hook\
6964 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6965 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6966
6967 # Transform an extracted symbol line into symbol name and symbol address
6968 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6969 $lt_c_name_hook\
6970 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6971 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6972
6973 # Transform an extracted symbol line into symbol name with lib prefix and
6974 # symbol address.
6975 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6976 $lt_c_name_lib_hook\
6977 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6978 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6979 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6980
6981 # Handle CRLF in mingw tool chain
6982 opt_cr=
6983 case $build_os in
6984 mingw*)
6985 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6986 ;;
6987 esac
6988
6989 # Try without a prefix underscore, then with it.
6990 for ac_symprfx in "" "_"; do
6991
6992 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6993 symxfrm="\\1 $ac_symprfx\\2 \\2"
6994
6995 # Write the raw and C identifiers.
6996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6997 # Fake it for dumpbin and say T for any non-static function,
6998 # D for any global variable and I for any imported variable.
6999 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7000 # which start with @ or ?.
7001 lt_cv_sys_global_symbol_pipe="$AWK '"\
7002 " {last_section=section; section=\$ 3};"\
7003 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7004 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7005 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7006 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7007 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7008 " \$ 0!~/External *\|/{next};"\
7009 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7010 " {if(hide[section]) next};"\
7011 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7012 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7013 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7014 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7015 " ' prfx=^$ac_symprfx"
7016 else
7017 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7018 fi
7019 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7020
7021 # Check to see that the pipe works correctly.
7022 pipe_works=no
7023
7024 rm -f conftest*
7025 cat > conftest.$ac_ext <<_LT_EOF
7026 #ifdef __cplusplus
7027 extern "C" {
7028 #endif
7029 char nm_test_var;
7030 void nm_test_func(void);
7031 void nm_test_func(void){}
7032 #ifdef __cplusplus
7033 }
7034 #endif
7035 int main(){nm_test_var='a';nm_test_func();return(0);}
7036 _LT_EOF
7037
7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7039 (eval $ac_compile) 2>&5
7040 ac_status=$?
7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }; then
7043 # Now try to grab the symbols.
7044 nlist=conftest.nm
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7046 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7047 ac_status=$?
7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; } && test -s "$nlist"; then
7050 # Try sorting and uniquifying the output.
7051 if sort "$nlist" | uniq > "$nlist"T; then
7052 mv -f "$nlist"T "$nlist"
7053 else
7054 rm -f "$nlist"T
7055 fi
7056
7057 # Make sure that we snagged all the symbols we need.
7058 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7059 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7060 cat <<_LT_EOF > conftest.$ac_ext
7061 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7062 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7063 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7064 relocations are performed -- see ld's documentation on pseudo-relocs. */
7065 # define LT_DLSYM_CONST
7066 #elif defined __osf__
7067 /* This system does not cope well with relocations in const data. */
7068 # define LT_DLSYM_CONST
7069 #else
7070 # define LT_DLSYM_CONST const
7071 #endif
7072
7073 #ifdef __cplusplus
7074 extern "C" {
7075 #endif
7076
7077 _LT_EOF
7078 # Now generate the symbol file.
7079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7080
7081 cat <<_LT_EOF >> conftest.$ac_ext
7082
7083 /* The mapping between symbol names and symbols. */
7084 LT_DLSYM_CONST struct {
7085 const char *name;
7086 void *address;
7087 }
7088 lt__PROGRAM__LTX_preloaded_symbols[] =
7089 {
7090 { "@PROGRAM@", (void *) 0 },
7091 _LT_EOF
7092 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7093 cat <<\_LT_EOF >> conftest.$ac_ext
7094 {0, (void *) 0}
7095 };
7096
7097 /* This works around a problem in FreeBSD linker */
7098 #ifdef FREEBSD_WORKAROUND
7099 static const void *lt_preloaded_setup() {
7100 return lt__PROGRAM__LTX_preloaded_symbols;
7101 }
7102 #endif
7103
7104 #ifdef __cplusplus
7105 }
7106 #endif
7107 _LT_EOF
7108 # Now try linking the two files.
7109 mv conftest.$ac_objext conftstm.$ac_objext
7110 lt_globsym_save_LIBS=$LIBS
7111 lt_globsym_save_CFLAGS=$CFLAGS
7112 LIBS=conftstm.$ac_objext
7113 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7115 (eval $ac_link) 2>&5
7116 ac_status=$?
7117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7119 pipe_works=yes
7120 fi
7121 LIBS=$lt_globsym_save_LIBS
7122 CFLAGS=$lt_globsym_save_CFLAGS
7123 else
7124 echo "cannot find nm_test_func in $nlist" >&5
7125 fi
7126 else
7127 echo "cannot find nm_test_var in $nlist" >&5
7128 fi
7129 else
7130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7131 fi
7132 else
7133 echo "$progname: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7135 fi
7136 rm -rf conftest* conftst*
7137
7138 # Do not use the global_symbol_pipe unless it works.
7139 if test yes = "$pipe_works"; then
7140 break
7141 else
7142 lt_cv_sys_global_symbol_pipe=
7143 fi
7144 done
7145
7146 fi
7147
7148 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7149 lt_cv_sys_global_symbol_to_cdecl=
7150 fi
7151 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7153 printf "%s\n" "failed" >&6; }
7154 else
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7156 printf "%s\n" "ok" >&6; }
7157 fi
7158
7159 # Response file support.
7160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7161 nm_file_list_spec='@'
7162 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7163 nm_file_list_spec='@'
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7203 printf %s "checking for sysroot... " >&6; }
7204
7205 # Check whether --with-sysroot was given.
7206 if test ${with_sysroot+y}
7207 then :
7208 withval=$with_sysroot;
7209 else $as_nop
7210 with_sysroot=no
7211 fi
7212
7213
7214 lt_sysroot=
7215 case $with_sysroot in #(
7216 yes)
7217 if test yes = "$GCC"; then
7218 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7219 fi
7220 ;; #(
7221 /*)
7222 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7223 ;; #(
7224 no|'')
7225 ;; #(
7226 *)
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7228 printf "%s\n" "$with_sysroot" >&6; }
7229 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7230 ;;
7231 esac
7232
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7234 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7235
7236
7237
7238
7239
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7241 printf %s "checking for a working dd... " >&6; }
7242 if test ${ac_cv_path_lt_DD+y}
7243 then :
7244 printf %s "(cached) " >&6
7245 else $as_nop
7246 printf 0123456789abcdef0123456789abcdef >conftest.i
7247 cat conftest.i conftest.i >conftest2.i
7248 : ${lt_DD:=$DD}
7249 if test -z "$lt_DD"; then
7250 ac_path_lt_DD_found=false
7251 # Loop through the user's path and test for each of PROGNAME-LIST
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 case $as_dir in #(((
7257 '') as_dir=./ ;;
7258 */) ;;
7259 *) as_dir=$as_dir/ ;;
7260 esac
7261 for ac_prog in dd
7262 do
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7265 as_fn_executable_p "$ac_path_lt_DD" || continue
7266 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7267 cmp -s conftest.i conftest.out \
7268 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7269 fi
7270 $ac_path_lt_DD_found && break 3
7271 done
7272 done
7273 done
7274 IFS=$as_save_IFS
7275 if test -z "$ac_cv_path_lt_DD"; then
7276 :
7277 fi
7278 else
7279 ac_cv_path_lt_DD=$lt_DD
7280 fi
7281
7282 rm -f conftest.i conftest2.i conftest.out
7283 fi
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7285 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7286
7287
7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7289 printf %s "checking how to truncate binary pipes... " >&6; }
7290 if test ${lt_cv_truncate_bin+y}
7291 then :
7292 printf %s "(cached) " >&6
7293 else $as_nop
7294 printf 0123456789abcdef0123456789abcdef >conftest.i
7295 cat conftest.i conftest.i >conftest2.i
7296 lt_cv_truncate_bin=
7297 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7298 cmp -s conftest.i conftest.out \
7299 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7300 fi
7301 rm -f conftest.i conftest2.i conftest.out
7302 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7303 fi
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7305 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7306
7307
7308
7309
7310
7311
7312
7313 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7314 func_cc_basename ()
7315 {
7316 for cc_temp in $*""; do
7317 case $cc_temp in
7318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7320 \-*) ;;
7321 *) break;;
7322 esac
7323 done
7324 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7325 }
7326
7327 # Check whether --enable-libtool-lock was given.
7328 if test ${enable_libtool_lock+y}
7329 then :
7330 enableval=$enable_libtool_lock;
7331 fi
7332
7333 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7334
7335 # Some flags need to be propagated to the compiler or linker for good
7336 # libtool support.
7337 case $host in
7338 ia64-*-hpux*)
7339 # Find out what ABI is being produced by ac_compile, and set mode
7340 # options accordingly.
7341 echo 'int i;' > conftest.$ac_ext
7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
7345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346 test $ac_status = 0; }; then
7347 case `$FILECMD conftest.$ac_objext` in
7348 *ELF-32*)
7349 HPUX_IA64_MODE=32
7350 ;;
7351 *ELF-64*)
7352 HPUX_IA64_MODE=64
7353 ;;
7354 esac
7355 fi
7356 rm -rf conftest*
7357 ;;
7358 *-*-irix6*)
7359 # Find out what ABI is being produced by ac_compile, and set linker
7360 # options accordingly.
7361 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7363 (eval $ac_compile) 2>&5
7364 ac_status=$?
7365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366 test $ac_status = 0; }; then
7367 if test yes = "$lt_cv_prog_gnu_ld"; then
7368 case `$FILECMD conftest.$ac_objext` in
7369 *32-bit*)
7370 LD="${LD-ld} -melf32bsmip"
7371 ;;
7372 *N32*)
7373 LD="${LD-ld} -melf32bmipn32"
7374 ;;
7375 *64-bit*)
7376 LD="${LD-ld} -melf64bmip"
7377 ;;
7378 esac
7379 else
7380 case `$FILECMD conftest.$ac_objext` in
7381 *32-bit*)
7382 LD="${LD-ld} -32"
7383 ;;
7384 *N32*)
7385 LD="${LD-ld} -n32"
7386 ;;
7387 *64-bit*)
7388 LD="${LD-ld} -64"
7389 ;;
7390 esac
7391 fi
7392 fi
7393 rm -rf conftest*
7394 ;;
7395
7396 mips64*-*linux*)
7397 # Find out what ABI is being produced by ac_compile, and set linker
7398 # options accordingly.
7399 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7401 (eval $ac_compile) 2>&5
7402 ac_status=$?
7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404 test $ac_status = 0; }; then
7405 emul=elf
7406 case `$FILECMD conftest.$ac_objext` in
7407 *32-bit*)
7408 emul="${emul}32"
7409 ;;
7410 *64-bit*)
7411 emul="${emul}64"
7412 ;;
7413 esac
7414 case `$FILECMD conftest.$ac_objext` in
7415 *MSB*)
7416 emul="${emul}btsmip"
7417 ;;
7418 *LSB*)
7419 emul="${emul}ltsmip"
7420 ;;
7421 esac
7422 case `$FILECMD conftest.$ac_objext` in
7423 *N32*)
7424 emul="${emul}n32"
7425 ;;
7426 esac
7427 LD="${LD-ld} -m $emul"
7428 fi
7429 rm -rf conftest*
7430 ;;
7431
7432 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7433 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7434 # Find out what ABI is being produced by ac_compile, and set linker
7435 # options accordingly. Note that the listed cases only cover the
7436 # situations where additional linker options are needed (such as when
7437 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7438 # vice versa); the common cases where no linker options are needed do
7439 # not appear in the list.
7440 echo 'int i;' > conftest.$ac_ext
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
7444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
7446 case `$FILECMD conftest.o` in
7447 *32-bit*)
7448 case $host in
7449 x86_64-*kfreebsd*-gnu)
7450 LD="${LD-ld} -m elf_i386_fbsd"
7451 ;;
7452 x86_64-*linux*)
7453 case `$FILECMD conftest.o` in
7454 *x86-64*)
7455 LD="${LD-ld} -m elf32_x86_64"
7456 ;;
7457 *)
7458 LD="${LD-ld} -m elf_i386"
7459 ;;
7460 esac
7461 ;;
7462 powerpc64le-*linux*)
7463 LD="${LD-ld} -m elf32lppclinux"
7464 ;;
7465 powerpc64-*linux*)
7466 LD="${LD-ld} -m elf32ppclinux"
7467 ;;
7468 s390x-*linux*)
7469 LD="${LD-ld} -m elf_s390"
7470 ;;
7471 sparc64-*linux*)
7472 LD="${LD-ld} -m elf32_sparc"
7473 ;;
7474 esac
7475 ;;
7476 *64-bit*)
7477 case $host in
7478 x86_64-*kfreebsd*-gnu)
7479 LD="${LD-ld} -m elf_x86_64_fbsd"
7480 ;;
7481 x86_64-*linux*)
7482 LD="${LD-ld} -m elf_x86_64"
7483 ;;
7484 powerpcle-*linux*)
7485 LD="${LD-ld} -m elf64lppc"
7486 ;;
7487 powerpc-*linux*)
7488 LD="${LD-ld} -m elf64ppc"
7489 ;;
7490 s390*-*linux*|s390*-*tpf*)
7491 LD="${LD-ld} -m elf64_s390"
7492 ;;
7493 sparc*-*linux*)
7494 LD="${LD-ld} -m elf64_sparc"
7495 ;;
7496 esac
7497 ;;
7498 esac
7499 fi
7500 rm -rf conftest*
7501 ;;
7502
7503 *-*-sco3.2v5*)
7504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7505 SAVE_CFLAGS=$CFLAGS
7506 CFLAGS="$CFLAGS -belf"
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7508 printf %s "checking whether the C compiler needs -belf... " >&6; }
7509 if test ${lt_cv_cc_needs_belf+y}
7510 then :
7511 printf %s "(cached) " >&6
7512 else $as_nop
7513 ac_ext=c
7514 ac_cpp='$CPP $CPPFLAGS'
7515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521
7522 int
7523 main (void)
7524 {
7525
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"
7531 then :
7532 lt_cv_cc_needs_belf=yes
7533 else $as_nop
7534 lt_cv_cc_needs_belf=no
7535 fi
7536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7537 conftest$ac_exeext conftest.$ac_ext
7538 ac_ext=c
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543
7544 fi
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7546 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7547 if test yes != "$lt_cv_cc_needs_belf"; then
7548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7549 CFLAGS=$SAVE_CFLAGS
7550 fi
7551 ;;
7552 *-*solaris*)
7553 # Find out what ABI is being produced by ac_compile, and set linker
7554 # options accordingly.
7555 echo 'int i;' > conftest.$ac_ext
7556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7557 (eval $ac_compile) 2>&5
7558 ac_status=$?
7559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7560 test $ac_status = 0; }; then
7561 case `$FILECMD conftest.o` in
7562 *64-bit*)
7563 case $lt_cv_prog_gnu_ld in
7564 yes*)
7565 case $host in
7566 i?86-*-solaris*|x86_64-*-solaris*)
7567 LD="${LD-ld} -m elf_x86_64"
7568 ;;
7569 sparc*-*-solaris*)
7570 LD="${LD-ld} -m elf64_sparc"
7571 ;;
7572 esac
7573 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7574 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7575 LD=${LD-ld}_sol2
7576 fi
7577 ;;
7578 *)
7579 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7580 LD="${LD-ld} -64"
7581 fi
7582 ;;
7583 esac
7584 ;;
7585 esac
7586 fi
7587 rm -rf conftest*
7588 ;;
7589 esac
7590
7591 need_locks=$enable_libtool_lock
7592
7593 if test -n "$ac_tool_prefix"; then
7594 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7595 set dummy ${ac_tool_prefix}mt; ac_word=$2
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 printf %s "checking for $ac_word... " >&6; }
7598 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7599 then :
7600 printf %s "(cached) " >&6
7601 else $as_nop
7602 if test -n "$MANIFEST_TOOL"; then
7603 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608 IFS=$as_save_IFS
7609 case $as_dir in #(((
7610 '') as_dir=./ ;;
7611 */) ;;
7612 *) as_dir=$as_dir/ ;;
7613 esac
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7627 if test -n "$MANIFEST_TOOL"; then
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7629 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7630 else
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 printf "%s\n" "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7638 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7639 # Extract the first word of "mt", so it can be a program name with args.
7640 set dummy mt; ac_word=$2
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 printf %s "checking for $ac_word... " >&6; }
7643 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7644 then :
7645 printf %s "(cached) " >&6
7646 else $as_nop
7647 if test -n "$ac_ct_MANIFEST_TOOL"; then
7648 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653 IFS=$as_save_IFS
7654 case $as_dir in #(((
7655 '') as_dir=./ ;;
7656 */) ;;
7657 *) as_dir=$as_dir/ ;;
7658 esac
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7663 break 2
7664 fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7672 if test -n "$ac_ct_MANIFEST_TOOL"; then
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7674 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7675 else
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 printf "%s\n" "no" >&6; }
7678 fi
7679
7680 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7681 MANIFEST_TOOL=":"
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7688 esac
7689 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7690 fi
7691 else
7692 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7693 fi
7694
7695 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7697 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7698 if test ${lt_cv_path_mainfest_tool+y}
7699 then :
7700 printf %s "(cached) " >&6
7701 else $as_nop
7702 lt_cv_path_mainfest_tool=no
7703 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7704 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7705 cat conftest.err >&5
7706 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7707 lt_cv_path_mainfest_tool=yes
7708 fi
7709 rm -f conftest*
7710 fi
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7712 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7713 if test yes != "$lt_cv_path_mainfest_tool"; then
7714 MANIFEST_TOOL=:
7715 fi
7716
7717
7718
7719
7720
7721
7722 case $host_os in
7723 rhapsody* | darwin*)
7724 if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 printf %s "checking for $ac_word... " >&6; }
7729 if test ${ac_cv_prog_DSYMUTIL+y}
7730 then :
7731 printf %s "(cached) " >&6
7732 else $as_nop
7733 if test -n "$DSYMUTIL"; then
7734 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 case $as_dir in #(((
7741 '') as_dir=./ ;;
7742 */) ;;
7743 *) as_dir=$as_dir/ ;;
7744 esac
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7758 if test -n "$DSYMUTIL"; then
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7760 printf "%s\n" "$DSYMUTIL" >&6; }
7761 else
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 printf "%s\n" "no" >&6; }
7764 fi
7765
7766
7767 fi
7768 if test -z "$ac_cv_prog_DSYMUTIL"; then
7769 ac_ct_DSYMUTIL=$DSYMUTIL
7770 # Extract the first word of "dsymutil", so it can be a program name with args.
7771 set dummy dsymutil; ac_word=$2
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 printf %s "checking for $ac_word... " >&6; }
7774 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7775 then :
7776 printf %s "(cached) " >&6
7777 else $as_nop
7778 if test -n "$ac_ct_DSYMUTIL"; then
7779 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 case $as_dir in #(((
7786 '') as_dir=./ ;;
7787 */) ;;
7788 *) as_dir=$as_dir/ ;;
7789 esac
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7803 if test -n "$ac_ct_DSYMUTIL"; then
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7805 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7806 else
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 printf "%s\n" "no" >&6; }
7809 fi
7810
7811 if test "x$ac_ct_DSYMUTIL" = x; then
7812 DSYMUTIL=":"
7813 else
7814 case $cross_compiling:$ac_tool_warned in
7815 yes:)
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818 ac_tool_warned=yes ;;
7819 esac
7820 DSYMUTIL=$ac_ct_DSYMUTIL
7821 fi
7822 else
7823 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7824 fi
7825
7826 if test -n "$ac_tool_prefix"; then
7827 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7828 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 printf %s "checking for $ac_word... " >&6; }
7831 if test ${ac_cv_prog_NMEDIT+y}
7832 then :
7833 printf %s "(cached) " >&6
7834 else $as_nop
7835 if test -n "$NMEDIT"; then
7836 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841 IFS=$as_save_IFS
7842 case $as_dir in #(((
7843 '') as_dir=./ ;;
7844 */) ;;
7845 *) as_dir=$as_dir/ ;;
7846 esac
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 NMEDIT=$ac_cv_prog_NMEDIT
7860 if test -n "$NMEDIT"; then
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7862 printf "%s\n" "$NMEDIT" >&6; }
7863 else
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 printf "%s\n" "no" >&6; }
7866 fi
7867
7868
7869 fi
7870 if test -z "$ac_cv_prog_NMEDIT"; then
7871 ac_ct_NMEDIT=$NMEDIT
7872 # Extract the first word of "nmedit", so it can be a program name with args.
7873 set dummy nmedit; ac_word=$2
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 printf %s "checking for $ac_word... " >&6; }
7876 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7877 then :
7878 printf %s "(cached) " >&6
7879 else $as_nop
7880 if test -n "$ac_ct_NMEDIT"; then
7881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886 IFS=$as_save_IFS
7887 case $as_dir in #(((
7888 '') as_dir=./ ;;
7889 */) ;;
7890 *) as_dir=$as_dir/ ;;
7891 esac
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7896 break 2
7897 fi
7898 done
7899 done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7905 if test -n "$ac_ct_NMEDIT"; then
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7907 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7908 else
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 printf "%s\n" "no" >&6; }
7911 fi
7912
7913 if test "x$ac_ct_NMEDIT" = x; then
7914 NMEDIT=":"
7915 else
7916 case $cross_compiling:$ac_tool_warned in
7917 yes:)
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920 ac_tool_warned=yes ;;
7921 esac
7922 NMEDIT=$ac_ct_NMEDIT
7923 fi
7924 else
7925 NMEDIT="$ac_cv_prog_NMEDIT"
7926 fi
7927
7928 if test -n "$ac_tool_prefix"; then
7929 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7930 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 printf %s "checking for $ac_word... " >&6; }
7933 if test ${ac_cv_prog_LIPO+y}
7934 then :
7935 printf %s "(cached) " >&6
7936 else $as_nop
7937 if test -n "$LIPO"; then
7938 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943 IFS=$as_save_IFS
7944 case $as_dir in #(((
7945 '') as_dir=./ ;;
7946 */) ;;
7947 *) as_dir=$as_dir/ ;;
7948 esac
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7953 break 2
7954 fi
7955 done
7956 done
7957 IFS=$as_save_IFS
7958
7959 fi
7960 fi
7961 LIPO=$ac_cv_prog_LIPO
7962 if test -n "$LIPO"; then
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7964 printf "%s\n" "$LIPO" >&6; }
7965 else
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 printf "%s\n" "no" >&6; }
7968 fi
7969
7970
7971 fi
7972 if test -z "$ac_cv_prog_LIPO"; then
7973 ac_ct_LIPO=$LIPO
7974 # Extract the first word of "lipo", so it can be a program name with args.
7975 set dummy lipo; ac_word=$2
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 printf %s "checking for $ac_word... " >&6; }
7978 if test ${ac_cv_prog_ac_ct_LIPO+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else $as_nop
7982 if test -n "$ac_ct_LIPO"; then
7983 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 case $as_dir in #(((
7990 '') as_dir=./ ;;
7991 */) ;;
7992 *) as_dir=$as_dir/ ;;
7993 esac
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_ac_ct_LIPO="lipo"
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8007 if test -n "$ac_ct_LIPO"; then
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8009 printf "%s\n" "$ac_ct_LIPO" >&6; }
8010 else
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 printf "%s\n" "no" >&6; }
8013 fi
8014
8015 if test "x$ac_ct_LIPO" = x; then
8016 LIPO=":"
8017 else
8018 case $cross_compiling:$ac_tool_warned in
8019 yes:)
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022 ac_tool_warned=yes ;;
8023 esac
8024 LIPO=$ac_ct_LIPO
8025 fi
8026 else
8027 LIPO="$ac_cv_prog_LIPO"
8028 fi
8029
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}otool; ac_word=$2
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 printf %s "checking for $ac_word... " >&6; }
8035 if test ${ac_cv_prog_OTOOL+y}
8036 then :
8037 printf %s "(cached) " >&6
8038 else $as_nop
8039 if test -n "$OTOOL"; then
8040 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 case $as_dir in #(((
8047 '') as_dir=./ ;;
8048 */) ;;
8049 *) as_dir=$as_dir/ ;;
8050 esac
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057 done
8058 done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 OTOOL=$ac_cv_prog_OTOOL
8064 if test -n "$OTOOL"; then
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8066 printf "%s\n" "$OTOOL" >&6; }
8067 else
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 printf "%s\n" "no" >&6; }
8070 fi
8071
8072
8073 fi
8074 if test -z "$ac_cv_prog_OTOOL"; then
8075 ac_ct_OTOOL=$OTOOL
8076 # Extract the first word of "otool", so it can be a program name with args.
8077 set dummy otool; ac_word=$2
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 printf %s "checking for $ac_word... " >&6; }
8080 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8081 then :
8082 printf %s "(cached) " >&6
8083 else $as_nop
8084 if test -n "$ac_ct_OTOOL"; then
8085 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090 IFS=$as_save_IFS
8091 case $as_dir in #(((
8092 '') as_dir=./ ;;
8093 */) ;;
8094 *) as_dir=$as_dir/ ;;
8095 esac
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_ac_ct_OTOOL="otool"
8099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8109 if test -n "$ac_ct_OTOOL"; then
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8111 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8112 else
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 printf "%s\n" "no" >&6; }
8115 fi
8116
8117 if test "x$ac_ct_OTOOL" = x; then
8118 OTOOL=":"
8119 else
8120 case $cross_compiling:$ac_tool_warned in
8121 yes:)
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124 ac_tool_warned=yes ;;
8125 esac
8126 OTOOL=$ac_ct_OTOOL
8127 fi
8128 else
8129 OTOOL="$ac_cv_prog_OTOOL"
8130 fi
8131
8132 if test -n "$ac_tool_prefix"; then
8133 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8134 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 printf %s "checking for $ac_word... " >&6; }
8137 if test ${ac_cv_prog_OTOOL64+y}
8138 then :
8139 printf %s "(cached) " >&6
8140 else $as_nop
8141 if test -n "$OTOOL64"; then
8142 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147 IFS=$as_save_IFS
8148 case $as_dir in #(((
8149 '') as_dir=./ ;;
8150 */) ;;
8151 *) as_dir=$as_dir/ ;;
8152 esac
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159 done
8160 done
8161 IFS=$as_save_IFS
8162
8163 fi
8164 fi
8165 OTOOL64=$ac_cv_prog_OTOOL64
8166 if test -n "$OTOOL64"; then
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8168 printf "%s\n" "$OTOOL64" >&6; }
8169 else
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 printf "%s\n" "no" >&6; }
8172 fi
8173
8174
8175 fi
8176 if test -z "$ac_cv_prog_OTOOL64"; then
8177 ac_ct_OTOOL64=$OTOOL64
8178 # Extract the first word of "otool64", so it can be a program name with args.
8179 set dummy otool64; ac_word=$2
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 printf %s "checking for $ac_word... " >&6; }
8182 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8183 then :
8184 printf %s "(cached) " >&6
8185 else $as_nop
8186 if test -n "$ac_ct_OTOOL64"; then
8187 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 case $as_dir in #(((
8194 '') as_dir=./ ;;
8195 */) ;;
8196 *) as_dir=$as_dir/ ;;
8197 esac
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_ac_ct_OTOOL64="otool64"
8201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8211 if test -n "$ac_ct_OTOOL64"; then
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8213 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8214 else
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 printf "%s\n" "no" >&6; }
8217 fi
8218
8219 if test "x$ac_ct_OTOOL64" = x; then
8220 OTOOL64=":"
8221 else
8222 case $cross_compiling:$ac_tool_warned in
8223 yes:)
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8225 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8226 ac_tool_warned=yes ;;
8227 esac
8228 OTOOL64=$ac_ct_OTOOL64
8229 fi
8230 else
8231 OTOOL64="$ac_cv_prog_OTOOL64"
8232 fi
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8261 printf %s "checking for -single_module linker flag... " >&6; }
8262 if test ${lt_cv_apple_cc_single_mod+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else $as_nop
8266 lt_cv_apple_cc_single_mod=no
8267 if test -z "$LT_MULTI_MODULE"; then
8268 # By default we will add the -single_module flag. You can override
8269 # by either setting the environment variable LT_MULTI_MODULE
8270 # non-empty at configure time, or by adding -multi_module to the
8271 # link flags.
8272 rm -rf libconftest.dylib*
8273 echo "int foo(void){return 1;}" > conftest.c
8274 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8275 -dynamiclib -Wl,-single_module conftest.c" >&5
8276 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8277 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8278 _lt_result=$?
8279 # If there is a non-empty error log, and "single_module"
8280 # appears in it, assume the flag caused a linker warning
8281 if test -s conftest.err && $GREP single_module conftest.err; then
8282 cat conftest.err >&5
8283 # Otherwise, if the output was created with a 0 exit code from
8284 # the compiler, it worked.
8285 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8286 lt_cv_apple_cc_single_mod=yes
8287 else
8288 cat conftest.err >&5
8289 fi
8290 rm -rf libconftest.dylib*
8291 rm -f conftest.*
8292 fi
8293 fi
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8295 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8296
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8298 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8299 if test ${lt_cv_ld_exported_symbols_list+y}
8300 then :
8301 printf %s "(cached) " >&6
8302 else $as_nop
8303 lt_cv_ld_exported_symbols_list=no
8304 save_LDFLAGS=$LDFLAGS
8305 echo "_main" > conftest.sym
8306 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309
8310 int
8311 main (void)
8312 {
8313
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 if ac_fn_c_try_link "$LINENO"
8319 then :
8320 lt_cv_ld_exported_symbols_list=yes
8321 else $as_nop
8322 lt_cv_ld_exported_symbols_list=no
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8325 conftest$ac_exeext conftest.$ac_ext
8326 LDFLAGS=$save_LDFLAGS
8327
8328 fi
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8330 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8331
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8333 printf %s "checking for -force_load linker flag... " >&6; }
8334 if test ${lt_cv_ld_force_load+y}
8335 then :
8336 printf %s "(cached) " >&6
8337 else $as_nop
8338 lt_cv_ld_force_load=no
8339 cat > conftest.c << _LT_EOF
8340 int forced_loaded() { return 2;}
8341 _LT_EOF
8342 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8343 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8344 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8345 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8346 echo "$RANLIB libconftest.a" >&5
8347 $RANLIB libconftest.a 2>&5
8348 cat > conftest.c << _LT_EOF
8349 int main() { return 0;}
8350 _LT_EOF
8351 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8352 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8353 _lt_result=$?
8354 if test -s conftest.err && $GREP force_load conftest.err; then
8355 cat conftest.err >&5
8356 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8357 lt_cv_ld_force_load=yes
8358 else
8359 cat conftest.err >&5
8360 fi
8361 rm -f conftest.err libconftest.a conftest conftest.c
8362 rm -rf conftest.dSYM
8363
8364 fi
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8366 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8367 case $host_os in
8368 rhapsody* | darwin1.[012])
8369 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8370 darwin1.*)
8371 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8372 darwin*)
8373 case $MACOSX_DEPLOYMENT_TARGET,$host in
8374 10.[012],*|,*powerpc*-darwin[5-8]*)
8375 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8376 *)
8377 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8378 esac
8379 ;;
8380 esac
8381 if test yes = "$lt_cv_apple_cc_single_mod"; then
8382 _lt_dar_single_mod='$single_module'
8383 fi
8384 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8385 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8386 else
8387 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8388 fi
8389 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8390 _lt_dsymutil='~$DSYMUTIL $lib || :'
8391 else
8392 _lt_dsymutil=
8393 fi
8394 ;;
8395 esac
8396
8397 # func_munge_path_list VARIABLE PATH
8398 # -----------------------------------
8399 # VARIABLE is name of variable containing _space_ separated list of
8400 # directories to be munged by the contents of PATH, which is string
8401 # having a format:
8402 # "DIR[:DIR]:"
8403 # string "DIR[ DIR]" will be prepended to VARIABLE
8404 # ":DIR[:DIR]"
8405 # string "DIR[ DIR]" will be appended to VARIABLE
8406 # "DIRP[:DIRP]::[DIRA:]DIRA"
8407 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8408 # "DIRA[ DIRA]" will be appended to VARIABLE
8409 # "DIR[:DIR]"
8410 # VARIABLE will be replaced by "DIR[ DIR]"
8411 func_munge_path_list ()
8412 {
8413 case x$2 in
8414 x)
8415 ;;
8416 *:)
8417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8418 ;;
8419 x:*)
8420 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8421 ;;
8422 *::*)
8423 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8424 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8425 ;;
8426 *)
8427 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8428 ;;
8429 esac
8430 }
8431
8432 ac_header= ac_cache=
8433 for ac_item in $ac_header_c_list
8434 do
8435 if test $ac_cache; then
8436 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8437 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8438 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8439 fi
8440 ac_header= ac_cache=
8441 elif test $ac_header; then
8442 ac_cache=$ac_item
8443 else
8444 ac_header=$ac_item
8445 fi
8446 done
8447
8448
8449
8450
8451
8452
8453
8454
8455 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8456 then :
8457
8458 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8459
8460 fi
8461 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8462 "
8463 if test "x$ac_cv_header_dlfcn_h" = xyes
8464 then :
8465 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8466
8467 fi
8468
8469
8470
8471
8472
8473 # Set options
8474
8475
8476
8477 enable_dlopen=no
8478
8479
8480 enable_win32_dll=no
8481
8482
8483 # Check whether --enable-shared was given.
8484 if test ${enable_shared+y}
8485 then :
8486 enableval=$enable_shared; p=${PACKAGE-default}
8487 case $enableval in
8488 yes) enable_shared=yes ;;
8489 no) enable_shared=no ;;
8490 *)
8491 enable_shared=no
8492 # Look at the argument we got. We use all the common list separators.
8493 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8494 for pkg in $enableval; do
8495 IFS=$lt_save_ifs
8496 if test "X$pkg" = "X$p"; then
8497 enable_shared=yes
8498 fi
8499 done
8500 IFS=$lt_save_ifs
8501 ;;
8502 esac
8503 else $as_nop
8504 enable_shared=yes
8505 fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515 # Check whether --enable-static was given.
8516 if test ${enable_static+y}
8517 then :
8518 enableval=$enable_static; p=${PACKAGE-default}
8519 case $enableval in
8520 yes) enable_static=yes ;;
8521 no) enable_static=no ;;
8522 *)
8523 enable_static=no
8524 # Look at the argument we got. We use all the common list separators.
8525 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8526 for pkg in $enableval; do
8527 IFS=$lt_save_ifs
8528 if test "X$pkg" = "X$p"; then
8529 enable_static=yes
8530 fi
8531 done
8532 IFS=$lt_save_ifs
8533 ;;
8534 esac
8535 else $as_nop
8536 enable_static=yes
8537 fi
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 # Check whether --with-pic was given.
8549 if test ${with_pic+y}
8550 then :
8551 withval=$with_pic; lt_p=${PACKAGE-default}
8552 case $withval in
8553 yes|no) pic_mode=$withval ;;
8554 *)
8555 pic_mode=default
8556 # Look at the argument we got. We use all the common list separators.
8557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8558 for lt_pkg in $withval; do
8559 IFS=$lt_save_ifs
8560 if test "X$lt_pkg" = "X$lt_p"; then
8561 pic_mode=yes
8562 fi
8563 done
8564 IFS=$lt_save_ifs
8565 ;;
8566 esac
8567 else $as_nop
8568 pic_mode=default
8569 fi
8570
8571
8572
8573
8574
8575
8576
8577
8578 # Check whether --enable-fast-install was given.
8579 if test ${enable_fast_install+y}
8580 then :
8581 enableval=$enable_fast_install; p=${PACKAGE-default}
8582 case $enableval in
8583 yes) enable_fast_install=yes ;;
8584 no) enable_fast_install=no ;;
8585 *)
8586 enable_fast_install=no
8587 # Look at the argument we got. We use all the common list separators.
8588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8589 for pkg in $enableval; do
8590 IFS=$lt_save_ifs
8591 if test "X$pkg" = "X$p"; then
8592 enable_fast_install=yes
8593 fi
8594 done
8595 IFS=$lt_save_ifs
8596 ;;
8597 esac
8598 else $as_nop
8599 enable_fast_install=yes
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609 shared_archive_member_spec=
8610 case $host,$enable_shared in
8611 power*-*-aix[5-9]*,yes)
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8613 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8614
8615 # Check whether --with-aix-soname was given.
8616 if test ${with_aix_soname+y}
8617 then :
8618 withval=$with_aix_soname; case $withval in
8619 aix|svr4|both)
8620 ;;
8621 *)
8622 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8623 ;;
8624 esac
8625 lt_cv_with_aix_soname=$with_aix_soname
8626 else $as_nop
8627 if test ${lt_cv_with_aix_soname+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else $as_nop
8631 lt_cv_with_aix_soname=aix
8632 fi
8633
8634 with_aix_soname=$lt_cv_with_aix_soname
8635 fi
8636
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8638 printf "%s\n" "$with_aix_soname" >&6; }
8639 if test aix != "$with_aix_soname"; then
8640 # For the AIX way of multilib, we name the shared archive member
8641 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8642 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8643 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8644 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8645 if test 64 = "${OBJECT_MODE-32}"; then
8646 shared_archive_member_spec=shr_64
8647 else
8648 shared_archive_member_spec=shr
8649 fi
8650 fi
8651 ;;
8652 *)
8653 with_aix_soname=aix
8654 ;;
8655 esac
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666 # This can be used to rebuild libtool when needed
8667 LIBTOOL_DEPS=$ltmain
8668
8669 # Always use our own libtool.
8670 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701 test -z "$LN_S" && LN_S="ln -s"
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 if test -n "${ZSH_VERSION+set}"; then
8717 setopt NO_GLOB_SUBST
8718 fi
8719
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8721 printf %s "checking for objdir... " >&6; }
8722 if test ${lt_cv_objdir+y}
8723 then :
8724 printf %s "(cached) " >&6
8725 else $as_nop
8726 rm -f .libs 2>/dev/null
8727 mkdir .libs 2>/dev/null
8728 if test -d .libs; then
8729 lt_cv_objdir=.libs
8730 else
8731 # MS-DOS does not allow filenames that begin with a dot.
8732 lt_cv_objdir=_libs
8733 fi
8734 rmdir .libs 2>/dev/null
8735 fi
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8737 printf "%s\n" "$lt_cv_objdir" >&6; }
8738 objdir=$lt_cv_objdir
8739
8740
8741
8742
8743
8744 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8745
8746
8747
8748
8749 case $host_os in
8750 aix3*)
8751 # AIX sometimes has problems with the GCC collect2 program. For some
8752 # reason, if we set the COLLECT_NAMES environment variable, the problems
8753 # vanish in a puff of smoke.
8754 if test set != "${COLLECT_NAMES+set}"; then
8755 COLLECT_NAMES=
8756 export COLLECT_NAMES
8757 fi
8758 ;;
8759 esac
8760
8761 # Global variables:
8762 ofile=libtool
8763 can_build_shared=yes
8764
8765 # All known linkers require a '.a' archive for static linking (except MSVC and
8766 # ICC, which need '.lib').
8767 libext=a
8768
8769 with_gnu_ld=$lt_cv_prog_gnu_ld
8770
8771 old_CC=$CC
8772 old_CFLAGS=$CFLAGS
8773
8774 # Set sane defaults for various variables
8775 test -z "$CC" && CC=cc
8776 test -z "$LTCC" && LTCC=$CC
8777 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8778 test -z "$LD" && LD=ld
8779 test -z "$ac_objext" && ac_objext=o
8780
8781 func_cc_basename $compiler
8782 cc_basename=$func_cc_basename_result
8783
8784
8785 # Only perform the check for file, if the check method requires it
8786 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8787 case $deplibs_check_method in
8788 file_magic*)
8789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8791 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8792 if test ${lt_cv_path_MAGIC_CMD+y}
8793 then :
8794 printf %s "(cached) " >&6
8795 else $as_nop
8796 case $MAGIC_CMD in
8797 [\\/*] | ?:[\\/]*)
8798 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8799 ;;
8800 *)
8801 lt_save_MAGIC_CMD=$MAGIC_CMD
8802 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8804 for ac_dir in $ac_dummy; do
8805 IFS=$lt_save_ifs
8806 test -z "$ac_dir" && ac_dir=.
8807 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8808 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8809 if test -n "$file_magic_test_file"; then
8810 case $deplibs_check_method in
8811 "file_magic "*)
8812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8815 $EGREP "$file_magic_regex" > /dev/null; then
8816 :
8817 else
8818 cat <<_LT_EOF 1>&2
8819
8820 *** Warning: the command libtool uses to detect shared libraries,
8821 *** $file_magic_cmd, produces output that libtool cannot recognize.
8822 *** The result is that libtool may fail to recognize shared libraries
8823 *** as such. This will affect the creation of libtool libraries that
8824 *** depend on shared libraries, but programs linked with such libtool
8825 *** libraries will work regardless of this problem. Nevertheless, you
8826 *** may want to report the problem to your system manager and/or to
8827 *** bug-libtool@gnu.org
8828
8829 _LT_EOF
8830 fi ;;
8831 esac
8832 fi
8833 break
8834 fi
8835 done
8836 IFS=$lt_save_ifs
8837 MAGIC_CMD=$lt_save_MAGIC_CMD
8838 ;;
8839 esac
8840 fi
8841
8842 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8843 if test -n "$MAGIC_CMD"; then
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8845 printf "%s\n" "$MAGIC_CMD" >&6; }
8846 else
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 printf "%s\n" "no" >&6; }
8849 fi
8850
8851
8852
8853
8854
8855 if test -z "$lt_cv_path_MAGIC_CMD"; then
8856 if test -n "$ac_tool_prefix"; then
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8858 printf %s "checking for file... " >&6; }
8859 if test ${lt_cv_path_MAGIC_CMD+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else $as_nop
8863 case $MAGIC_CMD in
8864 [\\/*] | ?:[\\/]*)
8865 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8866 ;;
8867 *)
8868 lt_save_MAGIC_CMD=$MAGIC_CMD
8869 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8871 for ac_dir in $ac_dummy; do
8872 IFS=$lt_save_ifs
8873 test -z "$ac_dir" && ac_dir=.
8874 if test -f "$ac_dir/file"; then
8875 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8876 if test -n "$file_magic_test_file"; then
8877 case $deplibs_check_method in
8878 "file_magic "*)
8879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8880 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8882 $EGREP "$file_magic_regex" > /dev/null; then
8883 :
8884 else
8885 cat <<_LT_EOF 1>&2
8886
8887 *** Warning: the command libtool uses to detect shared libraries,
8888 *** $file_magic_cmd, produces output that libtool cannot recognize.
8889 *** The result is that libtool may fail to recognize shared libraries
8890 *** as such. This will affect the creation of libtool libraries that
8891 *** depend on shared libraries, but programs linked with such libtool
8892 *** libraries will work regardless of this problem. Nevertheless, you
8893 *** may want to report the problem to your system manager and/or to
8894 *** bug-libtool@gnu.org
8895
8896 _LT_EOF
8897 fi ;;
8898 esac
8899 fi
8900 break
8901 fi
8902 done
8903 IFS=$lt_save_ifs
8904 MAGIC_CMD=$lt_save_MAGIC_CMD
8905 ;;
8906 esac
8907 fi
8908
8909 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8910 if test -n "$MAGIC_CMD"; then
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8912 printf "%s\n" "$MAGIC_CMD" >&6; }
8913 else
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 printf "%s\n" "no" >&6; }
8916 fi
8917
8918
8919 else
8920 MAGIC_CMD=:
8921 fi
8922 fi
8923
8924 fi
8925 ;;
8926 esac
8927
8928 # Use C for the default configuration in the libtool script
8929
8930 lt_save_CC=$CC
8931 ac_ext=c
8932 ac_cpp='$CPP $CPPFLAGS'
8933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936
8937
8938 # Source file extension for C test sources.
8939 ac_ext=c
8940
8941 # Object file extension for compiled C test sources.
8942 objext=o
8943 objext=$objext
8944
8945 # Code to be used in simple compile tests
8946 lt_simple_compile_test_code="int some_variable = 0;"
8947
8948 # Code to be used in simple link tests
8949 lt_simple_link_test_code='int main(){return(0);}'
8950
8951
8952
8953
8954
8955
8956
8957 # If no C compiler was specified, use CC.
8958 LTCC=${LTCC-"$CC"}
8959
8960 # If no C compiler flags were specified, use CFLAGS.
8961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8962
8963 # Allow CC to be a program name with arguments.
8964 compiler=$CC
8965
8966 # Save the default compiler, since it gets overwritten when the other
8967 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8968 compiler_DEFAULT=$CC
8969
8970 # save warnings/boilerplate of simple test code
8971 ac_outfile=conftest.$ac_objext
8972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8974 _lt_compiler_boilerplate=`cat conftest.err`
8975 $RM conftest*
8976
8977 ac_outfile=conftest.$ac_objext
8978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8980 _lt_linker_boilerplate=`cat conftest.err`
8981 $RM -r conftest*
8982
8983
8984 ## CAVEAT EMPTOR:
8985 ## There is no encapsulation within the following macros, do not change
8986 ## the running order or otherwise move them around unless you know exactly
8987 ## what you are doing...
8988 if test -n "$compiler"; then
8989
8990 lt_prog_compiler_no_builtin_flag=
8991
8992 if test yes = "$GCC"; then
8993 case $cc_basename in
8994 nvcc*)
8995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8996 *)
8997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8998 esac
8999
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9001 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9002 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9003 then :
9004 printf %s "(cached) " >&6
9005 else $as_nop
9006 lt_cv_prog_compiler_rtti_exceptions=no
9007 ac_outfile=conftest.$ac_objext
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9010 # Insert the option either (1) after the last *FLAGS variable, or
9011 # (2) before a word containing "conftest.", or (3) at the end.
9012 # Note that $ac_compile itself does not contain backslashes and begins
9013 # with a dollar sign (not a hyphen), so the echo should work correctly.
9014 # The option is referenced via a variable to avoid confusing sed.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9020 (eval "$lt_compile" 2>conftest.err)
9021 ac_status=$?
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 if (exit $ac_status) && test -s "$ac_outfile"; then
9025 # The compiler can only warn and ignore the option if not recognized
9026 # So say no if there are warnings other than the usual output.
9027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9030 lt_cv_prog_compiler_rtti_exceptions=yes
9031 fi
9032 fi
9033 $RM conftest*
9034
9035 fi
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9037 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9038
9039 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9040 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9041 else
9042 :
9043 fi
9044
9045 fi
9046
9047
9048
9049
9050
9051
9052 lt_prog_compiler_wl=
9053 lt_prog_compiler_pic=
9054 lt_prog_compiler_static=
9055
9056
9057 if test yes = "$GCC"; then
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_static='-static'
9060
9061 case $host_os in
9062 aix*)
9063 # All AIX code is PIC.
9064 if test ia64 = "$host_cpu"; then
9065 # AIX 5 now supports IA64 processor
9066 lt_prog_compiler_static='-Bstatic'
9067 fi
9068 lt_prog_compiler_pic='-fPIC'
9069 ;;
9070
9071 amigaos*)
9072 case $host_cpu in
9073 powerpc)
9074 # see comment about AmigaOS4 .so support
9075 lt_prog_compiler_pic='-fPIC'
9076 ;;
9077 m68k)
9078 # FIXME: we need at least 68020 code to build shared libraries, but
9079 # adding the '-m68020' flag to GCC prevents building anything better,
9080 # like '-m68040'.
9081 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9082 ;;
9083 esac
9084 ;;
9085
9086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9087 # PIC is the default for these OSes.
9088 ;;
9089
9090 mingw* | cygwin* | pw32* | os2* | cegcc*)
9091 # This hack is so that the source file can tell whether it is being
9092 # built for inclusion in a dll (and should export symbols for example).
9093 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9094 # (--disable-auto-import) libraries
9095 lt_prog_compiler_pic='-DDLL_EXPORT'
9096 case $host_os in
9097 os2*)
9098 lt_prog_compiler_static='$wl-static'
9099 ;;
9100 esac
9101 ;;
9102
9103 darwin* | rhapsody*)
9104 # PIC is the default on this platform
9105 # Common symbols not allowed in MH_DYLIB files
9106 lt_prog_compiler_pic='-fno-common'
9107 ;;
9108
9109 haiku*)
9110 # PIC is the default for Haiku.
9111 # The "-static" flag exists, but is broken.
9112 lt_prog_compiler_static=
9113 ;;
9114
9115 hpux*)
9116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9118 # sets the default TLS model and affects inlining.
9119 case $host_cpu in
9120 hppa*64*)
9121 # +Z the default
9122 ;;
9123 *)
9124 lt_prog_compiler_pic='-fPIC'
9125 ;;
9126 esac
9127 ;;
9128
9129 interix[3-9]*)
9130 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9131 # Instead, we relocate shared libraries at runtime.
9132 ;;
9133
9134 msdosdjgpp*)
9135 # Just because we use GCC doesn't mean we suddenly get shared libraries
9136 # on systems that don't support them.
9137 lt_prog_compiler_can_build_shared=no
9138 enable_shared=no
9139 ;;
9140
9141 *nto* | *qnx*)
9142 # QNX uses GNU C++, but need to define -shared option too, otherwise
9143 # it will coredump.
9144 lt_prog_compiler_pic='-fPIC -shared'
9145 ;;
9146
9147 sysv4*MP*)
9148 if test -d /usr/nec; then
9149 lt_prog_compiler_pic=-Kconform_pic
9150 fi
9151 ;;
9152
9153 *)
9154 lt_prog_compiler_pic='-fPIC'
9155 ;;
9156 esac
9157
9158 case $cc_basename in
9159 nvcc*) # Cuda Compiler Driver 2.2
9160 lt_prog_compiler_wl='-Xlinker '
9161 if test -n "$lt_prog_compiler_pic"; then
9162 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9163 fi
9164 ;;
9165 esac
9166 else
9167 # PORTME Check for flag to pass linker flags through the system compiler.
9168 case $host_os in
9169 aix*)
9170 lt_prog_compiler_wl='-Wl,'
9171 if test ia64 = "$host_cpu"; then
9172 # AIX 5 now supports IA64 processor
9173 lt_prog_compiler_static='-Bstatic'
9174 else
9175 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9176 fi
9177 ;;
9178
9179 darwin* | rhapsody*)
9180 # PIC is the default on this platform
9181 # Common symbols not allowed in MH_DYLIB files
9182 lt_prog_compiler_pic='-fno-common'
9183 case $cc_basename in
9184 nagfor*)
9185 # NAG Fortran compiler
9186 lt_prog_compiler_wl='-Wl,-Wl,,'
9187 lt_prog_compiler_pic='-PIC'
9188 lt_prog_compiler_static='-Bstatic'
9189 ;;
9190 esac
9191 ;;
9192
9193 mingw* | cygwin* | pw32* | os2* | cegcc*)
9194 # This hack is so that the source file can tell whether it is being
9195 # built for inclusion in a dll (and should export symbols for example).
9196 lt_prog_compiler_pic='-DDLL_EXPORT'
9197 case $host_os in
9198 os2*)
9199 lt_prog_compiler_static='$wl-static'
9200 ;;
9201 esac
9202 ;;
9203
9204 hpux9* | hpux10* | hpux11*)
9205 lt_prog_compiler_wl='-Wl,'
9206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9207 # not for PA HP-UX.
9208 case $host_cpu in
9209 hppa*64*|ia64*)
9210 # +Z the default
9211 ;;
9212 *)
9213 lt_prog_compiler_pic='+Z'
9214 ;;
9215 esac
9216 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9217 lt_prog_compiler_static='$wl-a ${wl}archive'
9218 ;;
9219
9220 irix5* | irix6* | nonstopux*)
9221 lt_prog_compiler_wl='-Wl,'
9222 # PIC (with -KPIC) is the default.
9223 lt_prog_compiler_static='-non_shared'
9224 ;;
9225
9226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9227 case $cc_basename in
9228 # old Intel for x86_64, which still supported -KPIC.
9229 ecc*)
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_pic='-KPIC'
9232 lt_prog_compiler_static='-static'
9233 ;;
9234 # icc used to be incompatible with GCC.
9235 # ICC 10 doesn't accept -KPIC any more.
9236 icc* | ifort*)
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='-fPIC'
9239 lt_prog_compiler_static='-static'
9240 ;;
9241 # Lahey Fortran 8.1.
9242 lf95*)
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='--shared'
9245 lt_prog_compiler_static='--static'
9246 ;;
9247 nagfor*)
9248 # NAG Fortran compiler
9249 lt_prog_compiler_wl='-Wl,-Wl,,'
9250 lt_prog_compiler_pic='-PIC'
9251 lt_prog_compiler_static='-Bstatic'
9252 ;;
9253 tcc*)
9254 # Fabrice Bellard et al's Tiny C Compiler
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-fPIC'
9257 lt_prog_compiler_static='-static'
9258 ;;
9259 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9260 # Portland Group compilers (*not* the Pentium gcc compiler,
9261 # which looks to be a dead project)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-fpic'
9264 lt_prog_compiler_static='-Bstatic'
9265 ;;
9266 ccc*)
9267 lt_prog_compiler_wl='-Wl,'
9268 # All Alpha code is PIC.
9269 lt_prog_compiler_static='-non_shared'
9270 ;;
9271 xl* | bgxl* | bgf* | mpixl*)
9272 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-qpic'
9275 lt_prog_compiler_static='-qstaticlink'
9276 ;;
9277 *)
9278 case `$CC -V 2>&1 | $SED 5q` in
9279 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9280 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9281 lt_prog_compiler_pic='-KPIC'
9282 lt_prog_compiler_static='-Bstatic'
9283 lt_prog_compiler_wl=''
9284 ;;
9285 *Sun\ F* | *Sun*Fortran*)
9286 lt_prog_compiler_pic='-KPIC'
9287 lt_prog_compiler_static='-Bstatic'
9288 lt_prog_compiler_wl='-Qoption ld '
9289 ;;
9290 *Sun\ C*)
9291 # Sun C 5.9
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 lt_prog_compiler_wl='-Wl,'
9295 ;;
9296 *Intel*\ [CF]*Compiler*)
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_pic='-fPIC'
9299 lt_prog_compiler_static='-static'
9300 ;;
9301 *Portland\ Group*)
9302 lt_prog_compiler_wl='-Wl,'
9303 lt_prog_compiler_pic='-fpic'
9304 lt_prog_compiler_static='-Bstatic'
9305 ;;
9306 esac
9307 ;;
9308 esac
9309 ;;
9310
9311 newsos6)
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 ;;
9315
9316 *nto* | *qnx*)
9317 # QNX uses GNU C++, but need to define -shared option too, otherwise
9318 # it will coredump.
9319 lt_prog_compiler_pic='-fPIC -shared'
9320 ;;
9321
9322 osf3* | osf4* | osf5*)
9323 lt_prog_compiler_wl='-Wl,'
9324 # All OSF/1 code is PIC.
9325 lt_prog_compiler_static='-non_shared'
9326 ;;
9327
9328 rdos*)
9329 lt_prog_compiler_static='-non_shared'
9330 ;;
9331
9332 solaris*)
9333 lt_prog_compiler_pic='-KPIC'
9334 lt_prog_compiler_static='-Bstatic'
9335 case $cc_basename in
9336 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9337 lt_prog_compiler_wl='-Qoption ld ';;
9338 *)
9339 lt_prog_compiler_wl='-Wl,';;
9340 esac
9341 ;;
9342
9343 sunos4*)
9344 lt_prog_compiler_wl='-Qoption ld '
9345 lt_prog_compiler_pic='-PIC'
9346 lt_prog_compiler_static='-Bstatic'
9347 ;;
9348
9349 sysv4 | sysv4.2uw2* | sysv4.3*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354
9355 sysv4*MP*)
9356 if test -d /usr/nec; then
9357 lt_prog_compiler_pic='-Kconform_pic'
9358 lt_prog_compiler_static='-Bstatic'
9359 fi
9360 ;;
9361
9362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9363 lt_prog_compiler_wl='-Wl,'
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 ;;
9367
9368 unicos*)
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_can_build_shared=no
9371 ;;
9372
9373 uts4*)
9374 lt_prog_compiler_pic='-pic'
9375 lt_prog_compiler_static='-Bstatic'
9376 ;;
9377
9378 *)
9379 lt_prog_compiler_can_build_shared=no
9380 ;;
9381 esac
9382 fi
9383
9384 case $host_os in
9385 # For platforms that do not support PIC, -DPIC is meaningless:
9386 *djgpp*)
9387 lt_prog_compiler_pic=
9388 ;;
9389 *)
9390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9391 ;;
9392 esac
9393
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9395 printf %s "checking for $compiler option to produce PIC... " >&6; }
9396 if test ${lt_cv_prog_compiler_pic+y}
9397 then :
9398 printf %s "(cached) " >&6
9399 else $as_nop
9400 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9401 fi
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9403 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9404 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9405
9406 #
9407 # Check to make sure the PIC flag actually works.
9408 #
9409 if test -n "$lt_prog_compiler_pic"; then
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9411 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9412 if test ${lt_cv_prog_compiler_pic_works+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else $as_nop
9416 lt_cv_prog_compiler_pic_works=no
9417 ac_outfile=conftest.$ac_objext
9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9420 # Insert the option either (1) after the last *FLAGS variable, or
9421 # (2) before a word containing "conftest.", or (3) at the end.
9422 # Note that $ac_compile itself does not contain backslashes and begins
9423 # with a dollar sign (not a hyphen), so the echo should work correctly.
9424 # The option is referenced via a variable to avoid confusing sed.
9425 lt_compile=`echo "$ac_compile" | $SED \
9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428 -e 's:$: $lt_compiler_flag:'`
9429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9430 (eval "$lt_compile" 2>conftest.err)
9431 ac_status=$?
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 if (exit $ac_status) && test -s "$ac_outfile"; then
9435 # The compiler can only warn and ignore the option if not recognized
9436 # So say no if there are warnings other than the usual output.
9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9440 lt_cv_prog_compiler_pic_works=yes
9441 fi
9442 fi
9443 $RM conftest*
9444
9445 fi
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9447 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9448
9449 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9450 case $lt_prog_compiler_pic in
9451 "" | " "*) ;;
9452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9453 esac
9454 else
9455 lt_prog_compiler_pic=
9456 lt_prog_compiler_can_build_shared=no
9457 fi
9458
9459 fi
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471 #
9472 # Check to make sure the static flag actually works.
9473 #
9474 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9476 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9477 if test ${lt_cv_prog_compiler_static_works+y}
9478 then :
9479 printf %s "(cached) " >&6
9480 else $as_nop
9481 lt_cv_prog_compiler_static_works=no
9482 save_LDFLAGS=$LDFLAGS
9483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9484 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9486 # The linker can only warn and ignore the option if not recognized
9487 # So say no if there are warnings
9488 if test -s conftest.err; then
9489 # Append any errors to the config.log.
9490 cat conftest.err 1>&5
9491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9493 if diff conftest.exp conftest.er2 >/dev/null; then
9494 lt_cv_prog_compiler_static_works=yes
9495 fi
9496 else
9497 lt_cv_prog_compiler_static_works=yes
9498 fi
9499 fi
9500 $RM -r conftest*
9501 LDFLAGS=$save_LDFLAGS
9502
9503 fi
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9505 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9506
9507 if test yes = "$lt_cv_prog_compiler_static_works"; then
9508 :
9509 else
9510 lt_prog_compiler_static=
9511 fi
9512
9513
9514
9515
9516
9517
9518
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9520 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9521 if test ${lt_cv_prog_compiler_c_o+y}
9522 then :
9523 printf %s "(cached) " >&6
9524 else $as_nop
9525 lt_cv_prog_compiler_c_o=no
9526 $RM -r conftest 2>/dev/null
9527 mkdir conftest
9528 cd conftest
9529 mkdir out
9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531
9532 lt_compiler_flag="-o out/conftest2.$ac_objext"
9533 # Insert the option either (1) after the last *FLAGS variable, or
9534 # (2) before a word containing "conftest.", or (3) at the end.
9535 # Note that $ac_compile itself does not contain backslashes and begins
9536 # with a dollar sign (not a hyphen), so the echo should work correctly.
9537 lt_compile=`echo "$ac_compile" | $SED \
9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540 -e 's:$: $lt_compiler_flag:'`
9541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542 (eval "$lt_compile" 2>out/conftest.err)
9543 ac_status=$?
9544 cat out/conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9547 then
9548 # The compiler can only warn and ignore the option if not recognized
9549 # So say no if there are warnings
9550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9553 lt_cv_prog_compiler_c_o=yes
9554 fi
9555 fi
9556 chmod u+w . 2>&5
9557 $RM conftest*
9558 # SGI C++ compiler will create directory out/ii_files/ for
9559 # template instantiation
9560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9561 $RM out/* && rmdir out
9562 cd ..
9563 $RM -r conftest
9564 $RM conftest*
9565
9566 fi
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9568 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9569
9570
9571
9572
9573
9574
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9576 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9577 if test ${lt_cv_prog_compiler_c_o+y}
9578 then :
9579 printf %s "(cached) " >&6
9580 else $as_nop
9581 lt_cv_prog_compiler_c_o=no
9582 $RM -r conftest 2>/dev/null
9583 mkdir conftest
9584 cd conftest
9585 mkdir out
9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587
9588 lt_compiler_flag="-o out/conftest2.$ac_objext"
9589 # Insert the option either (1) after the last *FLAGS variable, or
9590 # (2) before a word containing "conftest.", or (3) at the end.
9591 # Note that $ac_compile itself does not contain backslashes and begins
9592 # with a dollar sign (not a hyphen), so the echo should work correctly.
9593 lt_compile=`echo "$ac_compile" | $SED \
9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596 -e 's:$: $lt_compiler_flag:'`
9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598 (eval "$lt_compile" 2>out/conftest.err)
9599 ac_status=$?
9600 cat out/conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9603 then
9604 # The compiler can only warn and ignore the option if not recognized
9605 # So say no if there are warnings
9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9609 lt_cv_prog_compiler_c_o=yes
9610 fi
9611 fi
9612 chmod u+w . 2>&5
9613 $RM conftest*
9614 # SGI C++ compiler will create directory out/ii_files/ for
9615 # template instantiation
9616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9617 $RM out/* && rmdir out
9618 cd ..
9619 $RM -r conftest
9620 $RM conftest*
9621
9622 fi
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9624 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9625
9626
9627
9628
9629 hard_links=nottested
9630 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9631 # do not overwrite the value of need_locks provided by the user
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9633 printf %s "checking if we can lock with hard links... " >&6; }
9634 hard_links=yes
9635 $RM conftest*
9636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9637 touch conftest.a
9638 ln conftest.a conftest.b 2>&5 || hard_links=no
9639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9641 printf "%s\n" "$hard_links" >&6; }
9642 if test no = "$hard_links"; then
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9644 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9645 need_locks=warn
9646 fi
9647 else
9648 need_locks=no
9649 fi
9650
9651
9652
9653
9654
9655
9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9657 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9658
9659 runpath_var=
9660 allow_undefined_flag=
9661 always_export_symbols=no
9662 archive_cmds=
9663 archive_expsym_cmds=
9664 compiler_needs_object=no
9665 enable_shared_with_static_runtimes=no
9666 export_dynamic_flag_spec=
9667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9668 hardcode_automatic=no
9669 hardcode_direct=no
9670 hardcode_direct_absolute=no
9671 hardcode_libdir_flag_spec=
9672 hardcode_libdir_separator=
9673 hardcode_minus_L=no
9674 hardcode_shlibpath_var=unsupported
9675 inherit_rpath=no
9676 link_all_deplibs=unknown
9677 module_cmds=
9678 module_expsym_cmds=
9679 old_archive_from_new_cmds=
9680 old_archive_from_expsyms_cmds=
9681 thread_safe_flag_spec=
9682 whole_archive_flag_spec=
9683 # include_expsyms should be a list of space-separated symbols to be *always*
9684 # included in the symbol list
9685 include_expsyms=
9686 # exclude_expsyms can be an extended regexp of symbols to exclude
9687 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9688 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9689 # as well as any symbol that contains 'd'.
9690 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9692 # platforms (ab)use it in PIC code, but their linkers get confused if
9693 # the symbol is explicitly referenced. Since portable code cannot
9694 # rely on this symbol name, it's probably fine to never include it in
9695 # preloaded symbol tables.
9696 # Exclude shared library initialization/finalization symbols.
9697 extract_expsyms_cmds=
9698
9699 case $host_os in
9700 cygwin* | mingw* | pw32* | cegcc*)
9701 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9702 # When not using gcc, we currently assume that we are using
9703 # Microsoft Visual C++ or Intel C++ Compiler.
9704 if test yes != "$GCC"; then
9705 with_gnu_ld=no
9706 fi
9707 ;;
9708 interix*)
9709 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9710 with_gnu_ld=yes
9711 ;;
9712 openbsd* | bitrig*)
9713 with_gnu_ld=no
9714 ;;
9715 esac
9716
9717 ld_shlibs=yes
9718
9719 # On some targets, GNU ld is compatible enough with the native linker
9720 # that we're better off using the native interface for both.
9721 lt_use_gnu_ld_interface=no
9722 if test yes = "$with_gnu_ld"; then
9723 case $host_os in
9724 aix*)
9725 # The AIX port of GNU ld has always aspired to compatibility
9726 # with the native linker. However, as the warning in the GNU ld
9727 # block says, versions before 2.19.5* couldn't really create working
9728 # shared libraries, regardless of the interface used.
9729 case `$LD -v 2>&1` in
9730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9732 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9733 *)
9734 lt_use_gnu_ld_interface=yes
9735 ;;
9736 esac
9737 ;;
9738 *)
9739 lt_use_gnu_ld_interface=yes
9740 ;;
9741 esac
9742 fi
9743
9744 if test yes = "$lt_use_gnu_ld_interface"; then
9745 # If archive_cmds runs LD, not CC, wlarc should be empty
9746 wlarc='$wl'
9747
9748 # Set some defaults for GNU ld with shared library support. These
9749 # are reset later if shared libraries are not supported. Putting them
9750 # here allows them to be overridden if necessary.
9751 runpath_var=LD_RUN_PATH
9752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9753 export_dynamic_flag_spec='$wl--export-dynamic'
9754 # ancient GNU ld didn't support --whole-archive et. al.
9755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9756 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9757 else
9758 whole_archive_flag_spec=
9759 fi
9760 supports_anon_versioning=no
9761 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9762 *GNU\ gold*) supports_anon_versioning=yes ;;
9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9766 *\ 2.11.*) ;; # other 2.11 versions
9767 *) supports_anon_versioning=yes ;;
9768 esac
9769
9770 # See if GNU ld supports shared libraries.
9771 case $host_os in
9772 aix[3-9]*)
9773 # On AIX/PPC, the GNU linker is very broken
9774 if test ia64 != "$host_cpu"; then
9775 ld_shlibs=no
9776 cat <<_LT_EOF 1>&2
9777
9778 *** Warning: the GNU linker, at least up to release 2.19, is reported
9779 *** to be unable to reliably create shared libraries on AIX.
9780 *** Therefore, libtool is disabling shared libraries support. If you
9781 *** really care for shared libraries, you may want to install binutils
9782 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9783 *** You will then need to restart the configuration process.
9784
9785 _LT_EOF
9786 fi
9787 ;;
9788
9789 amigaos*)
9790 case $host_cpu in
9791 powerpc)
9792 # see comment about AmigaOS4 .so support
9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9794 archive_expsym_cmds=''
9795 ;;
9796 m68k)
9797 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)'
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 hardcode_minus_L=yes
9800 ;;
9801 esac
9802 ;;
9803
9804 beos*)
9805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9806 allow_undefined_flag=unsupported
9807 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9808 # support --undefined. This deserves some investigation. FIXME
9809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9810 else
9811 ld_shlibs=no
9812 fi
9813 ;;
9814
9815 cygwin* | mingw* | pw32* | cegcc*)
9816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9817 # as there is no search path for DLLs.
9818 hardcode_libdir_flag_spec='-L$libdir'
9819 export_dynamic_flag_spec='$wl--export-all-symbols'
9820 allow_undefined_flag=unsupported
9821 always_export_symbols=no
9822 enable_shared_with_static_runtimes=yes
9823 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'
9824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9825
9826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828 # If the export-symbols file already is a .def file, use it as
9829 # is; otherwise, prepend EXPORTS...
9830 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9831 cp $export_symbols $output_objdir/$soname.def;
9832 else
9833 echo EXPORTS > $output_objdir/$soname.def;
9834 cat $export_symbols >> $output_objdir/$soname.def;
9835 fi~
9836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9837 else
9838 ld_shlibs=no
9839 fi
9840 ;;
9841
9842 haiku*)
9843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9844 link_all_deplibs=yes
9845 ;;
9846
9847 os2*)
9848 hardcode_libdir_flag_spec='-L$libdir'
9849 hardcode_minus_L=yes
9850 allow_undefined_flag=unsupported
9851 shrext_cmds=.dll
9852 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9855 $ECHO EXPORTS >> $output_objdir/$libname.def~
9856 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9858 emximp -o $lib $output_objdir/$libname.def'
9859 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9862 $ECHO EXPORTS >> $output_objdir/$libname.def~
9863 prefix_cmds="$SED"~
9864 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9865 prefix_cmds="$prefix_cmds -e 1d";
9866 fi~
9867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9868 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9870 emximp -o $lib $output_objdir/$libname.def'
9871 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9872 enable_shared_with_static_runtimes=yes
9873 file_list_spec='@'
9874 ;;
9875
9876 interix[3-9]*)
9877 hardcode_direct=no
9878 hardcode_shlibpath_var=no
9879 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9880 export_dynamic_flag_spec='$wl-E'
9881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9882 # Instead, shared libraries are loaded at an image base (0x10000000 by
9883 # default) and relocated if they conflict, which is a slow very memory
9884 # consuming and fragmenting process. To avoid this, we pick a random,
9885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9888 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'
9889 ;;
9890
9891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9892 tmp_diet=no
9893 if test linux-dietlibc = "$host_os"; then
9894 case $cc_basename in
9895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9896 esac
9897 fi
9898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9899 && test no = "$tmp_diet"
9900 then
9901 tmp_addflag=' $pic_flag'
9902 tmp_sharedflag='-shared'
9903 case $cc_basename,$host_cpu in
9904 pgcc*) # Portland Group C compiler
9905 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'
9906 tmp_addflag=' $pic_flag'
9907 ;;
9908 pgf77* | pgf90* | pgf95* | pgfortran*)
9909 # Portland Group f77 and f90 compilers
9910 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'
9911 tmp_addflag=' $pic_flag -Mnomain' ;;
9912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9913 tmp_addflag=' -i_dynamic' ;;
9914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9915 tmp_addflag=' -i_dynamic -nofor_main' ;;
9916 ifc* | ifort*) # Intel Fortran compiler
9917 tmp_addflag=' -nofor_main' ;;
9918 lf95*) # Lahey Fortran 8.1
9919 whole_archive_flag_spec=
9920 tmp_sharedflag='--shared' ;;
9921 nagfor*) # NAGFOR 5.3
9922 tmp_sharedflag='-Wl,-shared' ;;
9923 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9924 tmp_sharedflag='-qmkshrobj'
9925 tmp_addflag= ;;
9926 nvcc*) # Cuda Compiler Driver 2.2
9927 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'
9928 compiler_needs_object=yes
9929 ;;
9930 esac
9931 case `$CC -V 2>&1 | $SED 5q` in
9932 *Sun\ C*) # Sun C 5.9
9933 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'
9934 compiler_needs_object=yes
9935 tmp_sharedflag='-G' ;;
9936 *Sun\ F*) # Sun Fortran 8.3
9937 tmp_sharedflag='-G' ;;
9938 esac
9939 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9940
9941 if test yes = "$supports_anon_versioning"; then
9942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9943 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9944 echo "local: *; };" >> $output_objdir/$libname.ver~
9945 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9946 fi
9947
9948 case $cc_basename in
9949 tcc*)
9950 export_dynamic_flag_spec='-rdynamic'
9951 ;;
9952 xlf* | bgf* | bgxlf* | mpixlf*)
9953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9956 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9957 if test yes = "$supports_anon_versioning"; then
9958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9959 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9960 echo "local: *; };" >> $output_objdir/$libname.ver~
9961 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9962 fi
9963 ;;
9964 esac
9965 else
9966 ld_shlibs=no
9967 fi
9968 ;;
9969
9970 netbsd*)
9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9973 wlarc=
9974 else
9975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9977 fi
9978 ;;
9979
9980 solaris*)
9981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9982 ld_shlibs=no
9983 cat <<_LT_EOF 1>&2
9984
9985 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9986 *** create shared libraries on Solaris systems. Therefore, libtool
9987 *** is disabling shared libraries support. We urge you to upgrade GNU
9988 *** binutils to release 2.9.1 or newer. Another option is to modify
9989 *** your PATH or compiler configuration so that the native linker is
9990 *** used, and then restart.
9991
9992 _LT_EOF
9993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9996 else
9997 ld_shlibs=no
9998 fi
9999 ;;
10000
10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10002 case `$LD -v 2>&1` in
10003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10004 ld_shlibs=no
10005 cat <<_LT_EOF 1>&2
10006
10007 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10008 *** reliably create shared libraries on SCO systems. Therefore, libtool
10009 *** is disabling shared libraries support. We urge you to upgrade GNU
10010 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10011 *** your PATH or compiler configuration so that the native linker is
10012 *** used, and then restart.
10013
10014 _LT_EOF
10015 ;;
10016 *)
10017 # For security reasons, it is highly recommended that you always
10018 # use absolute paths for naming shared libraries, and exclude the
10019 # DT_RUNPATH tag from executables and libraries. But doing so
10020 # requires that you compile everything twice, which is a pain.
10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10025 else
10026 ld_shlibs=no
10027 fi
10028 ;;
10029 esac
10030 ;;
10031
10032 sunos4*)
10033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 wlarc=
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 *)
10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10043 else
10044 ld_shlibs=no
10045 fi
10046 ;;
10047 esac
10048
10049 if test no = "$ld_shlibs"; then
10050 runpath_var=
10051 hardcode_libdir_flag_spec=
10052 export_dynamic_flag_spec=
10053 whole_archive_flag_spec=
10054 fi
10055 else
10056 # PORTME fill in a description of your system's linker (not GNU ld)
10057 case $host_os in
10058 aix3*)
10059 allow_undefined_flag=unsupported
10060 always_export_symbols=yes
10061 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'
10062 # Note: this linker hardcodes the directories in LIBPATH if there
10063 # are no directories specified by -L.
10064 hardcode_minus_L=yes
10065 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10066 # Neither direct hardcoding nor static linking is supported with a
10067 # broken collect2.
10068 hardcode_direct=unsupported
10069 fi
10070 ;;
10071
10072 aix[4-9]*)
10073 if test ia64 = "$host_cpu"; then
10074 # On IA64, the linker does run time linking by default, so we don't
10075 # have to do anything special.
10076 aix_use_runtimelinking=no
10077 exp_sym_flag='-Bexport'
10078 no_entry_flag=
10079 else
10080 # If we're using GNU nm, then we don't want the "-C" option.
10081 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10082 # Without the "-l" option, or with the "-B" option, AIX nm treats
10083 # weak defined symbols like other global defined symbols, whereas
10084 # GNU nm marks them as "W".
10085 # While the 'weak' keyword is ignored in the Export File, we need
10086 # it in the Import File for the 'aix-soname' feature, so we have
10087 # to replace the "-B" option with "-P" for AIX nm.
10088 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10089 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'
10090 else
10091 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'
10092 fi
10093 aix_use_runtimelinking=no
10094
10095 # Test if we are trying to use run time linking or normal
10096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10097 # have runtime linking enabled, and use it for executables.
10098 # For shared libraries, we enable/disable runtime linking
10099 # depending on the kind of the shared library created -
10100 # when "with_aix_soname,aix_use_runtimelinking" is:
10101 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10102 # "aix,yes" lib.so shared, rtl:yes, for executables
10103 # lib.a static archive
10104 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10105 # lib.a(lib.so.V) shared, rtl:no, for executables
10106 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10107 # lib.a(lib.so.V) shared, rtl:no
10108 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10109 # lib.a static archive
10110 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10111 for ld_flag in $LDFLAGS; do
10112 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10113 aix_use_runtimelinking=yes
10114 break
10115 fi
10116 done
10117 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10118 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10119 # so we don't have lib.a shared libs to link our executables.
10120 # We have to force runtime linking in this case.
10121 aix_use_runtimelinking=yes
10122 LDFLAGS="$LDFLAGS -Wl,-brtl"
10123 fi
10124 ;;
10125 esac
10126
10127 exp_sym_flag='-bexport'
10128 no_entry_flag='-bnoentry'
10129 fi
10130
10131 # When large executables or shared objects are built, AIX ld can
10132 # have problems creating the table of contents. If linking a library
10133 # or program results in "error TOC overflow" add -mminimal-toc to
10134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10136
10137 archive_cmds=''
10138 hardcode_direct=yes
10139 hardcode_direct_absolute=yes
10140 hardcode_libdir_separator=':'
10141 link_all_deplibs=yes
10142 file_list_spec='$wl-f,'
10143 case $with_aix_soname,$aix_use_runtimelinking in
10144 aix,*) ;; # traditional, no import file
10145 svr4,* | *,yes) # use import file
10146 # The Import File defines what to hardcode.
10147 hardcode_direct=no
10148 hardcode_direct_absolute=no
10149 ;;
10150 esac
10151
10152 if test yes = "$GCC"; then
10153 case $host_os in aix4.[012]|aix4.[012].*)
10154 # We only want to do this on AIX 4.2 and lower, the check
10155 # below for broken collect2 doesn't work under 4.3+
10156 collect2name=`$CC -print-prog-name=collect2`
10157 if test -f "$collect2name" &&
10158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10159 then
10160 # We have reworked collect2
10161 :
10162 else
10163 # We have old collect2
10164 hardcode_direct=unsupported
10165 # It fails to find uninstalled libraries when the uninstalled
10166 # path is not listed in the libpath. Setting hardcode_minus_L
10167 # to unsupported forces relinking
10168 hardcode_minus_L=yes
10169 hardcode_libdir_flag_spec='-L$libdir'
10170 hardcode_libdir_separator=
10171 fi
10172 ;;
10173 esac
10174 shared_flag='-shared'
10175 if test yes = "$aix_use_runtimelinking"; then
10176 shared_flag="$shared_flag "'$wl-G'
10177 fi
10178 # Need to ensure runtime linking is disabled for the traditional
10179 # shared library, or the linker may eventually find shared libraries
10180 # /with/ Import File - we do not want to mix them.
10181 shared_flag_aix='-shared'
10182 shared_flag_svr4='-shared $wl-G'
10183 else
10184 # not using gcc
10185 if test ia64 = "$host_cpu"; then
10186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10187 # chokes on -Wl,-G. The following line is correct:
10188 shared_flag='-G'
10189 else
10190 if test yes = "$aix_use_runtimelinking"; then
10191 shared_flag='$wl-G'
10192 else
10193 shared_flag='$wl-bM:SRE'
10194 fi
10195 shared_flag_aix='$wl-bM:SRE'
10196 shared_flag_svr4='$wl-G'
10197 fi
10198 fi
10199
10200 export_dynamic_flag_spec='$wl-bexpall'
10201 # It seems that -bexpall does not export symbols beginning with
10202 # underscore (_), so it is better to generate a list of symbols to export.
10203 always_export_symbols=yes
10204 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10205 # Warning - without using the other runtime loading flags (-brtl),
10206 # -berok will link without error, but may produce a broken library.
10207 allow_undefined_flag='-berok'
10208 # Determine the default libpath from the value encoded in an
10209 # empty executable.
10210 if test set = "${lt_cv_aix_libpath+set}"; then
10211 aix_libpath=$lt_cv_aix_libpath
10212 else
10213 if test ${lt_cv_aix_libpath_+y}
10214 then :
10215 printf %s "(cached) " >&6
10216 else $as_nop
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219
10220 int
10221 main (void)
10222 {
10223
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"
10229 then :
10230
10231 lt_aix_libpath_sed='
10232 /Import File Strings/,/^$/ {
10233 /^0/ {
10234 s/^0 *\([^ ]*\) *$/\1/
10235 p
10236 }
10237 }'
10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10239 # Check for a 64-bit object if we didn't find anything.
10240 if test -z "$lt_cv_aix_libpath_"; then
10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10242 fi
10243 fi
10244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10245 conftest$ac_exeext conftest.$ac_ext
10246 if test -z "$lt_cv_aix_libpath_"; then
10247 lt_cv_aix_libpath_=/usr/lib:/lib
10248 fi
10249
10250 fi
10251
10252 aix_libpath=$lt_cv_aix_libpath_
10253 fi
10254
10255 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10256 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
10257 else
10258 if test ia64 = "$host_cpu"; then
10259 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10260 allow_undefined_flag="-z nodefs"
10261 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"
10262 else
10263 # Determine the default libpath from the value encoded in an
10264 # empty executable.
10265 if test set = "${lt_cv_aix_libpath+set}"; then
10266 aix_libpath=$lt_cv_aix_libpath
10267 else
10268 if test ${lt_cv_aix_libpath_+y}
10269 then :
10270 printf %s "(cached) " >&6
10271 else $as_nop
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274
10275 int
10276 main (void)
10277 {
10278
10279 ;
10280 return 0;
10281 }
10282 _ACEOF
10283 if ac_fn_c_try_link "$LINENO"
10284 then :
10285
10286 lt_aix_libpath_sed='
10287 /Import File Strings/,/^$/ {
10288 /^0/ {
10289 s/^0 *\([^ ]*\) *$/\1/
10290 p
10291 }
10292 }'
10293 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10294 # Check for a 64-bit object if we didn't find anything.
10295 if test -z "$lt_cv_aix_libpath_"; then
10296 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10297 fi
10298 fi
10299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10300 conftest$ac_exeext conftest.$ac_ext
10301 if test -z "$lt_cv_aix_libpath_"; then
10302 lt_cv_aix_libpath_=/usr/lib:/lib
10303 fi
10304
10305 fi
10306
10307 aix_libpath=$lt_cv_aix_libpath_
10308 fi
10309
10310 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10311 # Warning - without using the other run time loading flags,
10312 # -berok will link without error, but may produce a broken library.
10313 no_undefined_flag=' $wl-bernotok'
10314 allow_undefined_flag=' $wl-berok'
10315 if test yes = "$with_gnu_ld"; then
10316 # We only use this code for GNU lds that support --whole-archive.
10317 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10318 else
10319 # Exported symbols can be pulled into shared objects from archives
10320 whole_archive_flag_spec='$convenience'
10321 fi
10322 archive_cmds_need_lc=yes
10323 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10324 # -brtl affects multiple linker settings, -berok does not and is overridden later
10325 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10326 if test svr4 != "$with_aix_soname"; then
10327 # This is similar to how AIX traditionally builds its shared libraries.
10328 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'
10329 fi
10330 if test aix != "$with_aix_soname"; then
10331 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'
10332 else
10333 # used by -dlpreopen to get the symbols
10334 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10335 fi
10336 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10337 fi
10338 fi
10339 ;;
10340
10341 amigaos*)
10342 case $host_cpu in
10343 powerpc)
10344 # see comment about AmigaOS4 .so support
10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10346 archive_expsym_cmds=''
10347 ;;
10348 m68k)
10349 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)'
10350 hardcode_libdir_flag_spec='-L$libdir'
10351 hardcode_minus_L=yes
10352 ;;
10353 esac
10354 ;;
10355
10356 bsdi[45]*)
10357 export_dynamic_flag_spec=-rdynamic
10358 ;;
10359
10360 cygwin* | mingw* | pw32* | cegcc*)
10361 # When not using gcc, we currently assume that we are using
10362 # Microsoft Visual C++ or Intel C++ Compiler.
10363 # hardcode_libdir_flag_spec is actually meaningless, as there is
10364 # no search path for DLLs.
10365 case $cc_basename in
10366 cl* | icl*)
10367 # Native MSVC or ICC
10368 hardcode_libdir_flag_spec=' '
10369 allow_undefined_flag=unsupported
10370 always_export_symbols=yes
10371 file_list_spec='@'
10372 # Tell ltmain to make .lib files, not .a files.
10373 libext=lib
10374 # Tell ltmain to make .dll files, not .so files.
10375 shrext_cmds=.dll
10376 # FIXME: Setting linknames here is a bad hack.
10377 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10378 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10379 cp "$export_symbols" "$output_objdir/$soname.def";
10380 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10381 else
10382 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10383 fi~
10384 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10385 linknames='
10386 # The linker will not automatically build a static lib if we build a DLL.
10387 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10388 enable_shared_with_static_runtimes=yes
10389 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10391 # Don't use ranlib
10392 old_postinstall_cmds='chmod 644 $oldlib'
10393 postlink_cmds='lt_outputfile="@OUTPUT@"~
10394 lt_tool_outputfile="@TOOL_OUTPUT@"~
10395 case $lt_outputfile in
10396 *.exe|*.EXE) ;;
10397 *)
10398 lt_outputfile=$lt_outputfile.exe
10399 lt_tool_outputfile=$lt_tool_outputfile.exe
10400 ;;
10401 esac~
10402 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10403 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10404 $RM "$lt_outputfile.manifest";
10405 fi'
10406 ;;
10407 *)
10408 # Assume MSVC and ICC wrapper
10409 hardcode_libdir_flag_spec=' '
10410 allow_undefined_flag=unsupported
10411 # Tell ltmain to make .lib files, not .a files.
10412 libext=lib
10413 # Tell ltmain to make .dll files, not .so files.
10414 shrext_cmds=.dll
10415 # FIXME: Setting linknames here is a bad hack.
10416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10417 # The linker will automatically build a .lib file if we build a DLL.
10418 old_archive_from_new_cmds='true'
10419 # FIXME: Should let the user specify the lib program.
10420 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10421 enable_shared_with_static_runtimes=yes
10422 ;;
10423 esac
10424 ;;
10425
10426 darwin* | rhapsody*)
10427
10428
10429 archive_cmds_need_lc=no
10430 hardcode_direct=no
10431 hardcode_automatic=yes
10432 hardcode_shlibpath_var=unsupported
10433 if test yes = "$lt_cv_ld_force_load"; then
10434 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\"`'
10435
10436 else
10437 whole_archive_flag_spec=''
10438 fi
10439 link_all_deplibs=yes
10440 allow_undefined_flag=$_lt_dar_allow_undefined
10441 case $cc_basename in
10442 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10443 *) _lt_dar_can_shared=$GCC ;;
10444 esac
10445 if test yes = "$_lt_dar_can_shared"; then
10446 output_verbose_link_cmd=func_echo_all
10447 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10448 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10449 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"
10450 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"
10451
10452 else
10453 ld_shlibs=no
10454 fi
10455
10456 ;;
10457
10458 dgux*)
10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_libdir_flag_spec='-L$libdir'
10461 hardcode_shlibpath_var=no
10462 ;;
10463
10464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10465 # support. Future versions do this automatically, but an explicit c++rt0.o
10466 # does not break anything, and helps significantly (at the cost of a little
10467 # extra space).
10468 freebsd2.2*)
10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10470 hardcode_libdir_flag_spec='-R$libdir'
10471 hardcode_direct=yes
10472 hardcode_shlibpath_var=no
10473 ;;
10474
10475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10476 freebsd2.*)
10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10478 hardcode_direct=yes
10479 hardcode_minus_L=yes
10480 hardcode_shlibpath_var=no
10481 ;;
10482
10483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10484 freebsd* | dragonfly* | midnightbsd*)
10485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10486 hardcode_libdir_flag_spec='-R$libdir'
10487 hardcode_direct=yes
10488 hardcode_shlibpath_var=no
10489 ;;
10490
10491 hpux9*)
10492 if test yes = "$GCC"; then
10493 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'
10494 else
10495 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'
10496 fi
10497 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10498 hardcode_libdir_separator=:
10499 hardcode_direct=yes
10500
10501 # hardcode_minus_L: Not really in the search PATH,
10502 # but as the default location of the library.
10503 hardcode_minus_L=yes
10504 export_dynamic_flag_spec='$wl-E'
10505 ;;
10506
10507 hpux10*)
10508 if test yes,no = "$GCC,$with_gnu_ld"; then
10509 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10510 else
10511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10512 fi
10513 if test no = "$with_gnu_ld"; then
10514 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10515 hardcode_libdir_separator=:
10516 hardcode_direct=yes
10517 hardcode_direct_absolute=yes
10518 export_dynamic_flag_spec='$wl-E'
10519 # hardcode_minus_L: Not really in the search PATH,
10520 # but as the default location of the library.
10521 hardcode_minus_L=yes
10522 fi
10523 ;;
10524
10525 hpux11*)
10526 if test yes,no = "$GCC,$with_gnu_ld"; then
10527 case $host_cpu in
10528 hppa*64*)
10529 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10530 ;;
10531 ia64*)
10532 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10533 ;;
10534 *)
10535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10536 ;;
10537 esac
10538 else
10539 case $host_cpu in
10540 hppa*64*)
10541 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10542 ;;
10543 ia64*)
10544 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10545 ;;
10546 *)
10547
10548 # Older versions of the 11.00 compiler do not understand -b yet
10549 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10551 printf %s "checking if $CC understands -b... " >&6; }
10552 if test ${lt_cv_prog_compiler__b+y}
10553 then :
10554 printf %s "(cached) " >&6
10555 else $as_nop
10556 lt_cv_prog_compiler__b=no
10557 save_LDFLAGS=$LDFLAGS
10558 LDFLAGS="$LDFLAGS -b"
10559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10561 # The linker can only warn and ignore the option if not recognized
10562 # So say no if there are warnings
10563 if test -s conftest.err; then
10564 # Append any errors to the config.log.
10565 cat conftest.err 1>&5
10566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10568 if diff conftest.exp conftest.er2 >/dev/null; then
10569 lt_cv_prog_compiler__b=yes
10570 fi
10571 else
10572 lt_cv_prog_compiler__b=yes
10573 fi
10574 fi
10575 $RM -r conftest*
10576 LDFLAGS=$save_LDFLAGS
10577
10578 fi
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10580 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10581
10582 if test yes = "$lt_cv_prog_compiler__b"; then
10583 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10584 else
10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10586 fi
10587
10588 ;;
10589 esac
10590 fi
10591 if test no = "$with_gnu_ld"; then
10592 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10593 hardcode_libdir_separator=:
10594
10595 case $host_cpu in
10596 hppa*64*|ia64*)
10597 hardcode_direct=no
10598 hardcode_shlibpath_var=no
10599 ;;
10600 *)
10601 hardcode_direct=yes
10602 hardcode_direct_absolute=yes
10603 export_dynamic_flag_spec='$wl-E'
10604
10605 # hardcode_minus_L: Not really in the search PATH,
10606 # but as the default location of the library.
10607 hardcode_minus_L=yes
10608 ;;
10609 esac
10610 fi
10611 ;;
10612
10613 irix5* | irix6* | nonstopux*)
10614 if test yes = "$GCC"; then
10615 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'
10616 # Try to use the -exported_symbol ld option, if it does not
10617 # work, assume that -exports_file does not work either and
10618 # implicitly export all symbols.
10619 # This should be the same for all languages, so no per-tag cache variable.
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10621 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10622 if test ${lt_cv_irix_exported_symbol+y}
10623 then :
10624 printf %s "(cached) " >&6
10625 else $as_nop
10626 save_LDFLAGS=$LDFLAGS
10627 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 int foo (void) { return 0; }
10631 _ACEOF
10632 if ac_fn_c_try_link "$LINENO"
10633 then :
10634 lt_cv_irix_exported_symbol=yes
10635 else $as_nop
10636 lt_cv_irix_exported_symbol=no
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LDFLAGS=$save_LDFLAGS
10641 fi
10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10643 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10644 if test yes = "$lt_cv_irix_exported_symbol"; then
10645 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'
10646 fi
10647 else
10648 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'
10649 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'
10650 fi
10651 archive_cmds_need_lc='no'
10652 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10653 hardcode_libdir_separator=:
10654 inherit_rpath=yes
10655 link_all_deplibs=yes
10656 ;;
10657
10658 linux*)
10659 case $cc_basename in
10660 tcc*)
10661 # Fabrice Bellard et al's Tiny C Compiler
10662 ld_shlibs=yes
10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10664 ;;
10665 esac
10666 ;;
10667
10668 netbsd*)
10669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10671 else
10672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10673 fi
10674 hardcode_libdir_flag_spec='-R$libdir'
10675 hardcode_direct=yes
10676 hardcode_shlibpath_var=no
10677 ;;
10678
10679 newsos6)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_direct=yes
10682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10683 hardcode_libdir_separator=:
10684 hardcode_shlibpath_var=no
10685 ;;
10686
10687 *nto* | *qnx*)
10688 ;;
10689
10690 openbsd* | bitrig*)
10691 if test -f /usr/libexec/ld.so; then
10692 hardcode_direct=yes
10693 hardcode_shlibpath_var=no
10694 hardcode_direct_absolute=yes
10695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10698 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10699 export_dynamic_flag_spec='$wl-E'
10700 else
10701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10702 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10703 fi
10704 else
10705 ld_shlibs=no
10706 fi
10707 ;;
10708
10709 os2*)
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_minus_L=yes
10712 allow_undefined_flag=unsupported
10713 shrext_cmds=.dll
10714 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10717 $ECHO EXPORTS >> $output_objdir/$libname.def~
10718 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10720 emximp -o $lib $output_objdir/$libname.def'
10721 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10724 $ECHO EXPORTS >> $output_objdir/$libname.def~
10725 prefix_cmds="$SED"~
10726 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10727 prefix_cmds="$prefix_cmds -e 1d";
10728 fi~
10729 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10730 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10732 emximp -o $lib $output_objdir/$libname.def'
10733 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10734 enable_shared_with_static_runtimes=yes
10735 file_list_spec='@'
10736 ;;
10737
10738 osf3*)
10739 if test yes = "$GCC"; then
10740 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10741 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'
10742 else
10743 allow_undefined_flag=' -expect_unresolved \*'
10744 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'
10745 fi
10746 archive_cmds_need_lc='no'
10747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10748 hardcode_libdir_separator=:
10749 ;;
10750
10751 osf4* | osf5*) # as osf3* with the addition of -msym flag
10752 if test yes = "$GCC"; then
10753 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10754 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'
10755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10756 else
10757 allow_undefined_flag=' -expect_unresolved \*'
10758 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'
10759 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~
10760 $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'
10761
10762 # Both c and cxx compiler support -rpath directly
10763 hardcode_libdir_flag_spec='-rpath $libdir'
10764 fi
10765 archive_cmds_need_lc='no'
10766 hardcode_libdir_separator=:
10767 ;;
10768
10769 solaris*)
10770 no_undefined_flag=' -z defs'
10771 if test yes = "$GCC"; then
10772 wlarc='$wl'
10773 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10775 $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'
10776 else
10777 case `$CC -V 2>&1` in
10778 *"Compilers 5.0"*)
10779 wlarc=''
10780 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10782 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10783 ;;
10784 *)
10785 wlarc='$wl'
10786 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10788 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10789 ;;
10790 esac
10791 fi
10792 hardcode_libdir_flag_spec='-R$libdir'
10793 hardcode_shlibpath_var=no
10794 case $host_os in
10795 solaris2.[0-5] | solaris2.[0-5].*) ;;
10796 *)
10797 # The compiler driver will combine and reorder linker options,
10798 # but understands '-z linker_flag'. GCC discards it without '$wl',
10799 # but is careful enough not to reorder.
10800 # Supported since Solaris 2.6 (maybe 2.5.1?)
10801 if test yes = "$GCC"; then
10802 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10803 else
10804 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10805 fi
10806 ;;
10807 esac
10808 link_all_deplibs=yes
10809 ;;
10810
10811 sunos4*)
10812 if test sequent = "$host_vendor"; then
10813 # Use $CC to link under sequent, because it throws in some extra .o
10814 # files that make .init and .fini sections work.
10815 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10816 else
10817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10818 fi
10819 hardcode_libdir_flag_spec='-L$libdir'
10820 hardcode_direct=yes
10821 hardcode_minus_L=yes
10822 hardcode_shlibpath_var=no
10823 ;;
10824
10825 sysv4)
10826 case $host_vendor in
10827 sni)
10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_direct=yes # is this really true???
10830 ;;
10831 siemens)
10832 ## LD is ld it makes a PLAMLIB
10833 ## CC just makes a GrossModule.
10834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10835 reload_cmds='$CC -r -o $output$reload_objs'
10836 hardcode_direct=no
10837 ;;
10838 motorola)
10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10841 ;;
10842 esac
10843 runpath_var='LD_RUN_PATH'
10844 hardcode_shlibpath_var=no
10845 ;;
10846
10847 sysv4.3*)
10848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_shlibpath_var=no
10850 export_dynamic_flag_spec='-Bexport'
10851 ;;
10852
10853 sysv4*MP*)
10854 if test -d /usr/nec; then
10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856 hardcode_shlibpath_var=no
10857 runpath_var=LD_RUN_PATH
10858 hardcode_runpath_var=yes
10859 ld_shlibs=yes
10860 fi
10861 ;;
10862
10863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10864 no_undefined_flag='$wl-z,text'
10865 archive_cmds_need_lc=no
10866 hardcode_shlibpath_var=no
10867 runpath_var='LD_RUN_PATH'
10868
10869 if test yes = "$GCC"; then
10870 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 else
10873 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10874 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10875 fi
10876 ;;
10877
10878 sysv5* | sco3.2v5* | sco5v6*)
10879 # Note: We CANNOT use -z defs as we might desire, because we do not
10880 # link with -lc, and that would cause any symbols used from libc to
10881 # always be unresolved, which means just about no library would
10882 # ever link correctly. If we're not using GNU ld we use -z text
10883 # though, which does catch some bad symbols but isn't as heavy-handed
10884 # as -z defs.
10885 no_undefined_flag='$wl-z,text'
10886 allow_undefined_flag='$wl-z,nodefs'
10887 archive_cmds_need_lc=no
10888 hardcode_shlibpath_var=no
10889 hardcode_libdir_flag_spec='$wl-R,$libdir'
10890 hardcode_libdir_separator=':'
10891 link_all_deplibs=yes
10892 export_dynamic_flag_spec='$wl-Bexport'
10893 runpath_var='LD_RUN_PATH'
10894
10895 if test yes = "$GCC"; then
10896 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 else
10899 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10900 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 fi
10902 ;;
10903
10904 uts4*)
10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_libdir_flag_spec='-L$libdir'
10907 hardcode_shlibpath_var=no
10908 ;;
10909
10910 *)
10911 ld_shlibs=no
10912 ;;
10913 esac
10914
10915 if test sni = "$host_vendor"; then
10916 case $host in
10917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10918 export_dynamic_flag_spec='$wl-Blargedynsym'
10919 ;;
10920 esac
10921 fi
10922 fi
10923
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10925 printf "%s\n" "$ld_shlibs" >&6; }
10926 test no = "$ld_shlibs" && can_build_shared=no
10927
10928 with_gnu_ld=$with_gnu_ld
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944 #
10945 # Do we need to explicitly link libc?
10946 #
10947 case "x$archive_cmds_need_lc" in
10948 x|xyes)
10949 # Assume -lc should be added
10950 archive_cmds_need_lc=yes
10951
10952 if test yes,yes = "$GCC,$enable_shared"; then
10953 case $archive_cmds in
10954 *'~'*)
10955 # FIXME: we may have to deal with multi-command sequences.
10956 ;;
10957 '$CC '*)
10958 # Test whether the compiler implicitly links with -lc since on some
10959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10960 # to ld, don't add -lc before -lgcc.
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10962 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10963 if test ${lt_cv_archive_cmds_need_lc+y}
10964 then :
10965 printf %s "(cached) " >&6
10966 else $as_nop
10967 $RM conftest*
10968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10969
10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10971 (eval $ac_compile) 2>&5
10972 ac_status=$?
10973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; } 2>conftest.err; then
10975 soname=conftest
10976 lib=conftest
10977 libobjs=conftest.$ac_objext
10978 deplibs=
10979 wl=$lt_prog_compiler_wl
10980 pic_flag=$lt_prog_compiler_pic
10981 compiler_flags=-v
10982 linker_flags=-v
10983 verstring=
10984 output_objdir=.
10985 libname=conftest
10986 lt_save_allow_undefined_flag=$allow_undefined_flag
10987 allow_undefined_flag=
10988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10989 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10990 ac_status=$?
10991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10992 test $ac_status = 0; }
10993 then
10994 lt_cv_archive_cmds_need_lc=no
10995 else
10996 lt_cv_archive_cmds_need_lc=yes
10997 fi
10998 allow_undefined_flag=$lt_save_allow_undefined_flag
10999 else
11000 cat conftest.err 1>&5
11001 fi
11002 $RM conftest*
11003
11004 fi
11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11006 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11007 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11008 ;;
11009 esac
11010 fi
11011 ;;
11012 esac
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11166 printf %s "checking dynamic linker characteristics... " >&6; }
11167
11168 if test yes = "$GCC"; then
11169 case $host_os in
11170 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11171 *) lt_awk_arg='/^libraries:/' ;;
11172 esac
11173 case $host_os in
11174 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11175 *) lt_sed_strip_eq='s|=/|/|g' ;;
11176 esac
11177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11178 case $lt_search_path_spec in
11179 *\;*)
11180 # if the path contains ";" then we assume it to be the separator
11181 # otherwise default to the standard path separator (i.e. ":") - it is
11182 # assumed that no part of a normal pathname contains ";" but that should
11183 # okay in the real world where ";" in dirpaths is itself problematic.
11184 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11185 ;;
11186 *)
11187 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11188 ;;
11189 esac
11190 # Ok, now we have the path, separated by spaces, we can step through it
11191 # and add multilib dir if necessary...
11192 lt_tmp_lt_search_path_spec=
11193 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11194 # ...but if some path component already ends with the multilib dir we assume
11195 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11196 case "$lt_multi_os_dir; $lt_search_path_spec " in
11197 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11198 lt_multi_os_dir=
11199 ;;
11200 esac
11201 for lt_sys_path in $lt_search_path_spec; do
11202 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11204 elif test -n "$lt_multi_os_dir"; then
11205 test -d "$lt_sys_path" && \
11206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11207 fi
11208 done
11209 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11210 BEGIN {RS = " "; FS = "/|\n";} {
11211 lt_foo = "";
11212 lt_count = 0;
11213 for (lt_i = NF; lt_i > 0; lt_i--) {
11214 if ($lt_i != "" && $lt_i != ".") {
11215 if ($lt_i == "..") {
11216 lt_count++;
11217 } else {
11218 if (lt_count == 0) {
11219 lt_foo = "/" $lt_i lt_foo;
11220 } else {
11221 lt_count--;
11222 }
11223 }
11224 }
11225 }
11226 if (lt_foo != "") { lt_freq[lt_foo]++; }
11227 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11228 }'`
11229 # AWK program above erroneously prepends '/' to C:/dos/paths
11230 # for these hosts.
11231 case $host_os in
11232 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11233 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11234 esac
11235 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11236 else
11237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11238 fi
11239 library_names_spec=
11240 libname_spec='lib$name'
11241 soname_spec=
11242 shrext_cmds=.so
11243 postinstall_cmds=
11244 postuninstall_cmds=
11245 finish_cmds=
11246 finish_eval=
11247 shlibpath_var=
11248 shlibpath_overrides_runpath=unknown
11249 version_type=none
11250 dynamic_linker="$host_os ld.so"
11251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11252 need_lib_prefix=unknown
11253 hardcode_into_libs=no
11254
11255 # when you set need_version to no, make sure it does not cause -set_version
11256 # flags to be left without arguments
11257 need_version=unknown
11258
11259
11260
11261 case $host_os in
11262 aix3*)
11263 version_type=linux # correct to gnu/linux during the next big refactor
11264 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11265 shlibpath_var=LIBPATH
11266
11267 # AIX 3 has no versioning support, so we append a major version to the name.
11268 soname_spec='$libname$release$shared_ext$major'
11269 ;;
11270
11271 aix[4-9]*)
11272 version_type=linux # correct to gnu/linux during the next big refactor
11273 need_lib_prefix=no
11274 need_version=no
11275 hardcode_into_libs=yes
11276 if test ia64 = "$host_cpu"; then
11277 # AIX 5 supports IA64
11278 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 else
11281 # With GCC up to 2.95.x, collect2 would create an import file
11282 # for dependence libraries. The import file would start with
11283 # the line '#! .'. This would cause the generated library to
11284 # depend on '.', always an invalid library. This was fixed in
11285 # development snapshots of GCC prior to 3.0.
11286 case $host_os in
11287 aix4 | aix4.[01] | aix4.[01].*)
11288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11289 echo ' yes '
11290 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11291 :
11292 else
11293 can_build_shared=no
11294 fi
11295 ;;
11296 esac
11297 # Using Import Files as archive members, it is possible to support
11298 # filename-based versioning of shared library archives on AIX. While
11299 # this would work for both with and without runtime linking, it will
11300 # prevent static linking of such archives. So we do filename-based
11301 # shared library versioning with .so extension only, which is used
11302 # when both runtime linking and shared linking is enabled.
11303 # Unfortunately, runtime linking may impact performance, so we do
11304 # not want this to be the default eventually. Also, we use the
11305 # versioned .so libs for executables only if there is the -brtl
11306 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11307 # To allow for filename-based versioning support, we need to create
11308 # libNAME.so.V as an archive file, containing:
11309 # *) an Import File, referring to the versioned filename of the
11310 # archive as well as the shared archive member, telling the
11311 # bitwidth (32 or 64) of that shared object, and providing the
11312 # list of exported symbols of that shared object, eventually
11313 # decorated with the 'weak' keyword
11314 # *) the shared object with the F_LOADONLY flag set, to really avoid
11315 # it being seen by the linker.
11316 # At run time we better use the real file rather than another symlink,
11317 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11318
11319 case $with_aix_soname,$aix_use_runtimelinking in
11320 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11321 # soname into executable. Probably we can add versioning support to
11322 # collect2, so additional links can be useful in future.
11323 aix,yes) # traditional libtool
11324 dynamic_linker='AIX unversionable lib.so'
11325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11326 # instead of lib<name>.a to let people know that these are not
11327 # typical AIX shared libraries.
11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11329 ;;
11330 aix,no) # traditional AIX only
11331 dynamic_linker='AIX lib.a(lib.so.V)'
11332 # We preserve .a as extension for shared libraries through AIX4.2
11333 # and later when we are not doing run time linking.
11334 library_names_spec='$libname$release.a $libname.a'
11335 soname_spec='$libname$release$shared_ext$major'
11336 ;;
11337 svr4,*) # full svr4 only
11338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11340 # We do not specify a path in Import Files, so LIBPATH fires.
11341 shlibpath_overrides_runpath=yes
11342 ;;
11343 *,yes) # both, prefer svr4
11344 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11345 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11346 # unpreferred sharedlib libNAME.a needs extra handling
11347 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"'
11348 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"'
11349 # We do not specify a path in Import Files, so LIBPATH fires.
11350 shlibpath_overrides_runpath=yes
11351 ;;
11352 *,no) # both, prefer aix
11353 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11354 library_names_spec='$libname$release.a $libname.a'
11355 soname_spec='$libname$release$shared_ext$major'
11356 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11357 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)'
11358 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"'
11359 ;;
11360 esac
11361 shlibpath_var=LIBPATH
11362 fi
11363 ;;
11364
11365 amigaos*)
11366 case $host_cpu in
11367 powerpc)
11368 # Since July 2007 AmigaOS4 officially supports .so libraries.
11369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11371 ;;
11372 m68k)
11373 library_names_spec='$libname.ixlibrary $libname.a'
11374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11375 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'
11376 ;;
11377 esac
11378 ;;
11379
11380 beos*)
11381 library_names_spec='$libname$shared_ext'
11382 dynamic_linker="$host_os ld.so"
11383 shlibpath_var=LIBRARY_PATH
11384 ;;
11385
11386 bsdi[45]*)
11387 version_type=linux # correct to gnu/linux during the next big refactor
11388 need_version=no
11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11390 soname_spec='$libname$release$shared_ext$major'
11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11395 # the default ld.so.conf also contains /usr/contrib/lib and
11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11397 # libtool to hard-code these into programs
11398 ;;
11399
11400 cygwin* | mingw* | pw32* | cegcc*)
11401 version_type=windows
11402 shrext_cmds=.dll
11403 need_version=no
11404 need_lib_prefix=no
11405
11406 case $GCC,$cc_basename in
11407 yes,*)
11408 # gcc
11409 library_names_spec='$libname.dll.a'
11410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11411 postinstall_cmds='base_file=`basename \$file`~
11412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11413 dldir=$destdir/`dirname \$dlpath`~
11414 test -d \$dldir || mkdir -p \$dldir~
11415 $install_prog $dir/$dlname \$dldir/$dlname~
11416 chmod a+x \$dldir/$dlname~
11417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11419 fi'
11420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11421 dlpath=$dir/\$dldll~
11422 $RM \$dlpath'
11423 shlibpath_overrides_runpath=yes
11424
11425 case $host_os in
11426 cygwin*)
11427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11428 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11429
11430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11431 ;;
11432 mingw* | cegcc*)
11433 # MinGW DLLs use traditional 'lib' prefix
11434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11435 ;;
11436 pw32*)
11437 # pw32 DLLs use 'pw' prefix rather than 'lib'
11438 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11439 ;;
11440 esac
11441 dynamic_linker='Win32 ld.exe'
11442 ;;
11443
11444 *,cl* | *,icl*)
11445 # Native MSVC or ICC
11446 libname_spec='$name'
11447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11448 library_names_spec='$libname.dll.lib'
11449
11450 case $build_os in
11451 mingw*)
11452 sys_lib_search_path_spec=
11453 lt_save_ifs=$IFS
11454 IFS=';'
11455 for lt_path in $LIB
11456 do
11457 IFS=$lt_save_ifs
11458 # Let DOS variable expansion print the short 8.3 style file name.
11459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11461 done
11462 IFS=$lt_save_ifs
11463 # Convert to MSYS style.
11464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11465 ;;
11466 cygwin*)
11467 # Convert to unix form, then to dos form, then back to unix form
11468 # but this time dos style (no spaces!) so that the unix form looks
11469 # like /cygdrive/c/PROGRA~1:/cygdr...
11470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11473 ;;
11474 *)
11475 sys_lib_search_path_spec=$LIB
11476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11477 # It is most probably a Windows format PATH.
11478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11479 else
11480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11481 fi
11482 # FIXME: find the short name or the path components, as spaces are
11483 # common. (e.g. "Program Files" -> "PROGRA~1")
11484 ;;
11485 esac
11486
11487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11488 postinstall_cmds='base_file=`basename \$file`~
11489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11490 dldir=$destdir/`dirname \$dlpath`~
11491 test -d \$dldir || mkdir -p \$dldir~
11492 $install_prog $dir/$dlname \$dldir/$dlname'
11493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11494 dlpath=$dir/\$dldll~
11495 $RM \$dlpath'
11496 shlibpath_overrides_runpath=yes
11497 dynamic_linker='Win32 link.exe'
11498 ;;
11499
11500 *)
11501 # Assume MSVC and ICC wrapper
11502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11503 dynamic_linker='Win32 ld.exe'
11504 ;;
11505 esac
11506 # FIXME: first we should search . and the directory the executable is in
11507 shlibpath_var=PATH
11508 ;;
11509
11510 darwin* | rhapsody*)
11511 dynamic_linker="$host_os dyld"
11512 version_type=darwin
11513 need_lib_prefix=no
11514 need_version=no
11515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11516 soname_spec='$libname$release$major$shared_ext'
11517 shlibpath_overrides_runpath=yes
11518 shlibpath_var=DYLD_LIBRARY_PATH
11519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11520
11521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11523 ;;
11524
11525 dgux*)
11526 version_type=linux # correct to gnu/linux during the next big refactor
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530 soname_spec='$libname$release$shared_ext$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 ;;
11533
11534 freebsd* | dragonfly* | midnightbsd*)
11535 # DragonFly does not have aout. When/if they implement a new
11536 # versioning mechanism, adjust this.
11537 if test -x /usr/bin/objformat; then
11538 objformat=`/usr/bin/objformat`
11539 else
11540 case $host_os in
11541 freebsd[23].*) objformat=aout ;;
11542 *) objformat=elf ;;
11543 esac
11544 fi
11545 version_type=freebsd-$objformat
11546 case $version_type in
11547 freebsd-elf*)
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 soname_spec='$libname$release$shared_ext$major'
11550 need_version=no
11551 need_lib_prefix=no
11552 ;;
11553 freebsd-*)
11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11555 need_version=yes
11556 ;;
11557 esac
11558 shlibpath_var=LD_LIBRARY_PATH
11559 case $host_os in
11560 freebsd2.*)
11561 shlibpath_overrides_runpath=yes
11562 ;;
11563 freebsd3.[01]* | freebsdelf3.[01]*)
11564 shlibpath_overrides_runpath=yes
11565 hardcode_into_libs=yes
11566 ;;
11567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11569 shlibpath_overrides_runpath=no
11570 hardcode_into_libs=yes
11571 ;;
11572 *) # from 4.6 on, and DragonFly
11573 shlibpath_overrides_runpath=yes
11574 hardcode_into_libs=yes
11575 ;;
11576 esac
11577 ;;
11578
11579 haiku*)
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 need_lib_prefix=no
11582 need_version=no
11583 dynamic_linker="$host_os runtime_loader"
11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11585 soname_spec='$libname$release$shared_ext$major'
11586 shlibpath_var=LIBRARY_PATH
11587 shlibpath_overrides_runpath=no
11588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11589 hardcode_into_libs=yes
11590 ;;
11591
11592 hpux9* | hpux10* | hpux11*)
11593 # Give a soname corresponding to the major version so that dld.sl refuses to
11594 # link against other versions.
11595 version_type=sunos
11596 need_lib_prefix=no
11597 need_version=no
11598 case $host_cpu in
11599 ia64*)
11600 shrext_cmds='.so'
11601 hardcode_into_libs=yes
11602 dynamic_linker="$host_os dld.so"
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11606 soname_spec='$libname$release$shared_ext$major'
11607 if test 32 = "$HPUX_IA64_MODE"; then
11608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11609 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11610 else
11611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11612 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11613 fi
11614 ;;
11615 hppa*64*)
11616 shrext_cmds='.sl'
11617 hardcode_into_libs=yes
11618 dynamic_linker="$host_os dld.sl"
11619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11625 ;;
11626 *)
11627 shrext_cmds='.sl'
11628 dynamic_linker="$host_os dld.sl"
11629 shlibpath_var=SHLIB_PATH
11630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11632 soname_spec='$libname$release$shared_ext$major'
11633 ;;
11634 esac
11635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11636 postinstall_cmds='chmod 555 $lib'
11637 # or fails outright, so override atomically:
11638 install_override_mode=555
11639 ;;
11640
11641 interix[3-9]*)
11642 version_type=linux # correct to gnu/linux during the next big refactor
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646 soname_spec='$libname$release$shared_ext$major'
11647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=no
11650 hardcode_into_libs=yes
11651 ;;
11652
11653 irix5* | irix6* | nonstopux*)
11654 case $host_os in
11655 nonstopux*) version_type=nonstopux ;;
11656 *)
11657 if test yes = "$lt_cv_prog_gnu_ld"; then
11658 version_type=linux # correct to gnu/linux during the next big refactor
11659 else
11660 version_type=irix
11661 fi ;;
11662 esac
11663 need_lib_prefix=no
11664 need_version=no
11665 soname_spec='$libname$release$shared_ext$major'
11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11667 case $host_os in
11668 irix5* | nonstopux*)
11669 libsuff= shlibsuff=
11670 ;;
11671 *)
11672 case $LD in # libtool.m4 will add one of these switches to LD
11673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11674 libsuff= shlibsuff= libmagic=32-bit;;
11675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11676 libsuff=32 shlibsuff=N32 libmagic=N32;;
11677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11679 *) libsuff= shlibsuff= libmagic=never-match;;
11680 esac
11681 ;;
11682 esac
11683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11684 shlibpath_overrides_runpath=no
11685 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11686 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11687 hardcode_into_libs=yes
11688 ;;
11689
11690 # No shared lib support for Linux oldld, aout, or coff.
11691 linux*oldld* | linux*aout* | linux*coff*)
11692 dynamic_linker=no
11693 ;;
11694
11695 linux*android*)
11696 version_type=none # Android doesn't support versioned libraries.
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='$libname$release$shared_ext'
11700 soname_spec='$libname$release$shared_ext'
11701 finish_cmds=
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=yes
11704
11705 # This implies no fast_install, which is unacceptable.
11706 # Some rework will be needed to allow for fast_install
11707 # before this can be enabled.
11708 hardcode_into_libs=yes
11709
11710 dynamic_linker='Android linker'
11711 # Don't embed -rpath directories since the linker doesn't support them.
11712 hardcode_libdir_flag_spec='-L$libdir'
11713 ;;
11714
11715 # This must be glibc/ELF.
11716 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11717 version_type=linux # correct to gnu/linux during the next big refactor
11718 need_lib_prefix=no
11719 need_version=no
11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721 soname_spec='$libname$release$shared_ext$major'
11722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 shlibpath_overrides_runpath=no
11725
11726 # Some binutils ld are patched to set DT_RUNPATH
11727 if test ${lt_cv_shlibpath_overrides_runpath+y}
11728 then :
11729 printf %s "(cached) " >&6
11730 else $as_nop
11731 lt_cv_shlibpath_overrides_runpath=no
11732 save_LDFLAGS=$LDFLAGS
11733 save_libdir=$libdir
11734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11738
11739 int
11740 main (void)
11741 {
11742
11743 ;
11744 return 0;
11745 }
11746 _ACEOF
11747 if ac_fn_c_try_link "$LINENO"
11748 then :
11749 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11750 then :
11751 lt_cv_shlibpath_overrides_runpath=yes
11752 fi
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11755 conftest$ac_exeext conftest.$ac_ext
11756 LDFLAGS=$save_LDFLAGS
11757 libdir=$save_libdir
11758
11759 fi
11760
11761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11762
11763 # This implies no fast_install, which is unacceptable.
11764 # Some rework will be needed to allow for fast_install
11765 # before this can be enabled.
11766 hardcode_into_libs=yes
11767
11768 # Add ABI-specific directories to the system library path.
11769 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11770
11771 # Ideally, we could use ldconfig to report *all* directores which are
11772 # searched for libraries, however this is still not possible. Aside from not
11773 # being certain /sbin/ldconfig is available, command
11774 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11775 # even though it is searched at run-time. Try to do the best guess by
11776 # appending ld.so.conf contents (and includes) to the search path.
11777 if test -f /etc/ld.so.conf; then
11778 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' ' '`
11779 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11780 fi
11781
11782 # We used to test for /lib/ld.so.1 and disable shared libraries on
11783 # powerpc, because MkLinux only supported shared libraries with the
11784 # GNU dynamic linker. Since this was broken with cross compilers,
11785 # most powerpc-linux boxes support dynamic linking these days and
11786 # people can always --disable-shared, the test was removed, and we
11787 # assume the GNU/Linux dynamic linker is in use.
11788 dynamic_linker='GNU/Linux ld.so'
11789 ;;
11790
11791 netbsd*)
11792 version_type=sunos
11793 need_lib_prefix=no
11794 need_version=no
11795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11798 dynamic_linker='NetBSD (a.out) ld.so'
11799 else
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 soname_spec='$libname$release$shared_ext$major'
11802 dynamic_linker='NetBSD ld.elf_so'
11803 fi
11804 shlibpath_var=LD_LIBRARY_PATH
11805 shlibpath_overrides_runpath=yes
11806 hardcode_into_libs=yes
11807 ;;
11808
11809 newsos6)
11810 version_type=linux # correct to gnu/linux during the next big refactor
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=yes
11814 ;;
11815
11816 *nto* | *qnx*)
11817 version_type=qnx
11818 need_lib_prefix=no
11819 need_version=no
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821 soname_spec='$libname$release$shared_ext$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 shlibpath_overrides_runpath=no
11824 hardcode_into_libs=yes
11825 dynamic_linker='ldqnx.so'
11826 ;;
11827
11828 openbsd* | bitrig*)
11829 version_type=sunos
11830 sys_lib_dlsearch_path_spec=/usr/lib
11831 need_lib_prefix=no
11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11833 need_version=no
11834 else
11835 need_version=yes
11836 fi
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 shlibpath_overrides_runpath=yes
11841 ;;
11842
11843 os2*)
11844 libname_spec='$name'
11845 version_type=windows
11846 shrext_cmds=.dll
11847 need_version=no
11848 need_lib_prefix=no
11849 # OS/2 can only load a DLL with a base name of 8 characters or less.
11850 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11851 v=$($ECHO $release$versuffix | tr -d .-);
11852 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11853 $ECHO $n$v`$shared_ext'
11854 library_names_spec='${libname}_dll.$libext'
11855 dynamic_linker='OS/2 ld.exe'
11856 shlibpath_var=BEGINLIBPATH
11857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11859 postinstall_cmds='base_file=`basename \$file`~
11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11861 dldir=$destdir/`dirname \$dlpath`~
11862 test -d \$dldir || mkdir -p \$dldir~
11863 $install_prog $dir/$dlname \$dldir/$dlname~
11864 chmod a+x \$dldir/$dlname~
11865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11867 fi'
11868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11869 dlpath=$dir/\$dldll~
11870 $RM \$dlpath'
11871 ;;
11872
11873 osf3* | osf4* | osf5*)
11874 version_type=osf
11875 need_lib_prefix=no
11876 need_version=no
11877 soname_spec='$libname$release$shared_ext$major'
11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11882 ;;
11883
11884 rdos*)
11885 dynamic_linker=no
11886 ;;
11887
11888 solaris*)
11889 version_type=linux # correct to gnu/linux during the next big refactor
11890 need_lib_prefix=no
11891 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
11895 shlibpath_overrides_runpath=yes
11896 hardcode_into_libs=yes
11897 # ldd complains unless libraries are executable
11898 postinstall_cmds='chmod +x $lib'
11899 ;;
11900
11901 sunos4*)
11902 version_type=sunos
11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=yes
11907 if test yes = "$with_gnu_ld"; then
11908 need_lib_prefix=no
11909 fi
11910 need_version=yes
11911 ;;
11912
11913 sysv4 | sysv4.3*)
11914 version_type=linux # correct to gnu/linux during the next big refactor
11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11916 soname_spec='$libname$release$shared_ext$major'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 case $host_vendor in
11919 sni)
11920 shlibpath_overrides_runpath=no
11921 need_lib_prefix=no
11922 runpath_var=LD_RUN_PATH
11923 ;;
11924 siemens)
11925 need_lib_prefix=no
11926 ;;
11927 motorola)
11928 need_lib_prefix=no
11929 need_version=no
11930 shlibpath_overrides_runpath=no
11931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11932 ;;
11933 esac
11934 ;;
11935
11936 sysv4*MP*)
11937 if test -d /usr/nec; then
11938 version_type=linux # correct to gnu/linux during the next big refactor
11939 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11940 soname_spec='$libname$shared_ext.$major'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 fi
11943 ;;
11944
11945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11946 version_type=sco
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11950 soname_spec='$libname$release$shared_ext$major'
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=yes
11953 hardcode_into_libs=yes
11954 if test yes = "$with_gnu_ld"; then
11955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11956 else
11957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11958 case $host_os in
11959 sco3.2v5*)
11960 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11961 ;;
11962 esac
11963 fi
11964 sys_lib_dlsearch_path_spec='/usr/lib'
11965 ;;
11966
11967 tpf*)
11968 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11969 version_type=linux # correct to gnu/linux during the next big refactor
11970 need_lib_prefix=no
11971 need_version=no
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 shlibpath_overrides_runpath=no
11975 hardcode_into_libs=yes
11976 ;;
11977
11978 uts4*)
11979 version_type=linux # correct to gnu/linux during the next big refactor
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981 soname_spec='$libname$release$shared_ext$major'
11982 shlibpath_var=LD_LIBRARY_PATH
11983 ;;
11984
11985 *)
11986 dynamic_linker=no
11987 ;;
11988 esac
11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11990 printf "%s\n" "$dynamic_linker" >&6; }
11991 test no = "$dynamic_linker" && can_build_shared=no
11992
11993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11994 if test yes = "$GCC"; then
11995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11996 fi
11997
11998 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11999 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12000 fi
12001
12002 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12003 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12004 fi
12005
12006 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12007 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12008
12009 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12010 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12011
12012 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12013 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12112 printf %s "checking how to hardcode library paths into programs... " >&6; }
12113 hardcode_action=
12114 if test -n "$hardcode_libdir_flag_spec" ||
12115 test -n "$runpath_var" ||
12116 test yes = "$hardcode_automatic"; then
12117
12118 # We can hardcode non-existent directories.
12119 if test no != "$hardcode_direct" &&
12120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12121 # have to relink, otherwise we might link with an installed library
12122 # when we should be linking with a yet-to-be-installed one
12123 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12124 test no != "$hardcode_minus_L"; then
12125 # Linking always hardcodes the temporary library directory.
12126 hardcode_action=relink
12127 else
12128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12129 hardcode_action=immediate
12130 fi
12131 else
12132 # We cannot hardcode anything, or else we can only hardcode existing
12133 # directories.
12134 hardcode_action=unsupported
12135 fi
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12137 printf "%s\n" "$hardcode_action" >&6; }
12138
12139 if test relink = "$hardcode_action" ||
12140 test yes = "$inherit_rpath"; then
12141 # Fast installation is not supported
12142 enable_fast_install=no
12143 elif test yes = "$shlibpath_overrides_runpath" ||
12144 test no = "$enable_shared"; then
12145 # Fast installation is not necessary
12146 enable_fast_install=needless
12147 fi
12148
12149
12150
12151
12152
12153
12154 if test yes != "$enable_dlopen"; then
12155 enable_dlopen=unknown
12156 enable_dlopen_self=unknown
12157 enable_dlopen_self_static=unknown
12158 else
12159 lt_cv_dlopen=no
12160 lt_cv_dlopen_libs=
12161
12162 case $host_os in
12163 beos*)
12164 lt_cv_dlopen=load_add_on
12165 lt_cv_dlopen_libs=
12166 lt_cv_dlopen_self=yes
12167 ;;
12168
12169 mingw* | pw32* | cegcc*)
12170 lt_cv_dlopen=LoadLibrary
12171 lt_cv_dlopen_libs=
12172 ;;
12173
12174 cygwin*)
12175 lt_cv_dlopen=dlopen
12176 lt_cv_dlopen_libs=
12177 ;;
12178
12179 darwin*)
12180 # if libdl is installed we need to link against it
12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12182 printf %s "checking for dlopen in -ldl... " >&6; }
12183 if test ${ac_cv_lib_dl_dlopen+y}
12184 then :
12185 printf %s "(cached) " >&6
12186 else $as_nop
12187 ac_check_lib_save_LIBS=$LIBS
12188 LIBS="-ldl $LIBS"
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12191
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12195 char dlopen ();
12196 int
12197 main (void)
12198 {
12199 return dlopen ();
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"
12205 then :
12206 ac_cv_lib_dl_dlopen=yes
12207 else $as_nop
12208 ac_cv_lib_dl_dlopen=no
12209 fi
12210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12211 conftest$ac_exeext conftest.$ac_ext
12212 LIBS=$ac_check_lib_save_LIBS
12213 fi
12214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12215 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12216 if test "x$ac_cv_lib_dl_dlopen" = xyes
12217 then :
12218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12219 else $as_nop
12220
12221 lt_cv_dlopen=dyld
12222 lt_cv_dlopen_libs=
12223 lt_cv_dlopen_self=yes
12224
12225 fi
12226
12227 ;;
12228
12229 tpf*)
12230 # Don't try to run any link tests for TPF. We know it's impossible
12231 # because TPF is a cross-compiler, and we know how we open DSOs.
12232 lt_cv_dlopen=dlopen
12233 lt_cv_dlopen_libs=
12234 lt_cv_dlopen_self=no
12235 ;;
12236
12237 *)
12238 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12239 if test "x$ac_cv_func_shl_load" = xyes
12240 then :
12241 lt_cv_dlopen=shl_load
12242 else $as_nop
12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12244 printf %s "checking for shl_load in -ldld... " >&6; }
12245 if test ${ac_cv_lib_dld_shl_load+y}
12246 then :
12247 printf %s "(cached) " >&6
12248 else $as_nop
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-ldld $LIBS"
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 char shl_load ();
12258 int
12259 main (void)
12260 {
12261 return shl_load ();
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"
12267 then :
12268 ac_cv_lib_dld_shl_load=yes
12269 else $as_nop
12270 ac_cv_lib_dld_shl_load=no
12271 fi
12272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12273 conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12275 fi
12276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12277 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12278 if test "x$ac_cv_lib_dld_shl_load" = xyes
12279 then :
12280 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12281 else $as_nop
12282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12283 if test "x$ac_cv_func_dlopen" = xyes
12284 then :
12285 lt_cv_dlopen=dlopen
12286 else $as_nop
12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12288 printf %s "checking for dlopen in -ldl... " >&6; }
12289 if test ${ac_cv_lib_dl_dlopen+y}
12290 then :
12291 printf %s "(cached) " >&6
12292 else $as_nop
12293 ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-ldl $LIBS"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12301 char dlopen ();
12302 int
12303 main (void)
12304 {
12305 return dlopen ();
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"
12311 then :
12312 ac_cv_lib_dl_dlopen=yes
12313 else $as_nop
12314 ac_cv_lib_dl_dlopen=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12319 fi
12320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12321 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12322 if test "x$ac_cv_lib_dl_dlopen" = xyes
12323 then :
12324 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12325 else $as_nop
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12327 printf %s "checking for dlopen in -lsvld... " >&6; }
12328 if test ${ac_cv_lib_svld_dlopen+y}
12329 then :
12330 printf %s "(cached) " >&6
12331 else $as_nop
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-lsvld $LIBS"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12340 char dlopen ();
12341 int
12342 main (void)
12343 {
12344 return dlopen ();
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"
12350 then :
12351 ac_cv_lib_svld_dlopen=yes
12352 else $as_nop
12353 ac_cv_lib_svld_dlopen=no
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12356 conftest$ac_exeext conftest.$ac_ext
12357 LIBS=$ac_check_lib_save_LIBS
12358 fi
12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12360 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12361 if test "x$ac_cv_lib_svld_dlopen" = xyes
12362 then :
12363 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12364 else $as_nop
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12366 printf %s "checking for dld_link in -ldld... " >&6; }
12367 if test ${ac_cv_lib_dld_dld_link+y}
12368 then :
12369 printf %s "(cached) " >&6
12370 else $as_nop
12371 ac_check_lib_save_LIBS=$LIBS
12372 LIBS="-ldld $LIBS"
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12379 char dld_link ();
12380 int
12381 main (void)
12382 {
12383 return dld_link ();
12384 ;
12385 return 0;
12386 }
12387 _ACEOF
12388 if ac_fn_c_try_link "$LINENO"
12389 then :
12390 ac_cv_lib_dld_dld_link=yes
12391 else $as_nop
12392 ac_cv_lib_dld_dld_link=no
12393 fi
12394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12397 fi
12398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12399 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12400 if test "x$ac_cv_lib_dld_dld_link" = xyes
12401 then :
12402 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12403 fi
12404
12405
12406 fi
12407
12408
12409 fi
12410
12411
12412 fi
12413
12414
12415 fi
12416
12417
12418 fi
12419
12420 ;;
12421 esac
12422
12423 if test no = "$lt_cv_dlopen"; then
12424 enable_dlopen=no
12425 else
12426 enable_dlopen=yes
12427 fi
12428
12429 case $lt_cv_dlopen in
12430 dlopen)
12431 save_CPPFLAGS=$CPPFLAGS
12432 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12433
12434 save_LDFLAGS=$LDFLAGS
12435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12436
12437 save_LIBS=$LIBS
12438 LIBS="$lt_cv_dlopen_libs $LIBS"
12439
12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12441 printf %s "checking whether a program can dlopen itself... " >&6; }
12442 if test ${lt_cv_dlopen_self+y}
12443 then :
12444 printf %s "(cached) " >&6
12445 else $as_nop
12446 if test yes = "$cross_compiling"; then :
12447 lt_cv_dlopen_self=cross
12448 else
12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12450 lt_status=$lt_dlunknown
12451 cat > conftest.$ac_ext <<_LT_EOF
12452 #line $LINENO "configure"
12453 #include "confdefs.h"
12454
12455 #if HAVE_DLFCN_H
12456 #include <dlfcn.h>
12457 #endif
12458
12459 #include <stdio.h>
12460
12461 #ifdef RTLD_GLOBAL
12462 # define LT_DLGLOBAL RTLD_GLOBAL
12463 #else
12464 # ifdef DL_GLOBAL
12465 # define LT_DLGLOBAL DL_GLOBAL
12466 # else
12467 # define LT_DLGLOBAL 0
12468 # endif
12469 #endif
12470
12471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12472 find out it does not work in some platform. */
12473 #ifndef LT_DLLAZY_OR_NOW
12474 # ifdef RTLD_LAZY
12475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12476 # else
12477 # ifdef DL_LAZY
12478 # define LT_DLLAZY_OR_NOW DL_LAZY
12479 # else
12480 # ifdef RTLD_NOW
12481 # define LT_DLLAZY_OR_NOW RTLD_NOW
12482 # else
12483 # ifdef DL_NOW
12484 # define LT_DLLAZY_OR_NOW DL_NOW
12485 # else
12486 # define LT_DLLAZY_OR_NOW 0
12487 # endif
12488 # endif
12489 # endif
12490 # endif
12491 #endif
12492
12493 /* When -fvisibility=hidden is used, assume the code has been annotated
12494 correspondingly for the symbols needed. */
12495 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12496 int fnord () __attribute__((visibility("default")));
12497 #endif
12498
12499 int fnord () { return 42; }
12500 int main ()
12501 {
12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12503 int status = $lt_dlunknown;
12504
12505 if (self)
12506 {
12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12508 else
12509 {
12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12511 else puts (dlerror ());
12512 }
12513 /* dlclose (self); */
12514 }
12515 else
12516 puts (dlerror ());
12517
12518 return status;
12519 }
12520 _LT_EOF
12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12522 (eval $ac_link) 2>&5
12523 ac_status=$?
12524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12526 (./conftest; exit; ) >&5 2>/dev/null
12527 lt_status=$?
12528 case x$lt_status in
12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12532 esac
12533 else :
12534 # compilation failed
12535 lt_cv_dlopen_self=no
12536 fi
12537 fi
12538 rm -fr conftest*
12539
12540
12541 fi
12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12543 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12544
12545 if test yes = "$lt_cv_dlopen_self"; then
12546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12548 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12549 if test ${lt_cv_dlopen_self_static+y}
12550 then :
12551 printf %s "(cached) " >&6
12552 else $as_nop
12553 if test yes = "$cross_compiling"; then :
12554 lt_cv_dlopen_self_static=cross
12555 else
12556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12557 lt_status=$lt_dlunknown
12558 cat > conftest.$ac_ext <<_LT_EOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12561
12562 #if HAVE_DLFCN_H
12563 #include <dlfcn.h>
12564 #endif
12565
12566 #include <stdio.h>
12567
12568 #ifdef RTLD_GLOBAL
12569 # define LT_DLGLOBAL RTLD_GLOBAL
12570 #else
12571 # ifdef DL_GLOBAL
12572 # define LT_DLGLOBAL DL_GLOBAL
12573 # else
12574 # define LT_DLGLOBAL 0
12575 # endif
12576 #endif
12577
12578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12579 find out it does not work in some platform. */
12580 #ifndef LT_DLLAZY_OR_NOW
12581 # ifdef RTLD_LAZY
12582 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12583 # else
12584 # ifdef DL_LAZY
12585 # define LT_DLLAZY_OR_NOW DL_LAZY
12586 # else
12587 # ifdef RTLD_NOW
12588 # define LT_DLLAZY_OR_NOW RTLD_NOW
12589 # else
12590 # ifdef DL_NOW
12591 # define LT_DLLAZY_OR_NOW DL_NOW
12592 # else
12593 # define LT_DLLAZY_OR_NOW 0
12594 # endif
12595 # endif
12596 # endif
12597 # endif
12598 #endif
12599
12600 /* When -fvisibility=hidden is used, assume the code has been annotated
12601 correspondingly for the symbols needed. */
12602 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12603 int fnord () __attribute__((visibility("default")));
12604 #endif
12605
12606 int fnord () { return 42; }
12607 int main ()
12608 {
12609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12610 int status = $lt_dlunknown;
12611
12612 if (self)
12613 {
12614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12615 else
12616 {
12617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12618 else puts (dlerror ());
12619 }
12620 /* dlclose (self); */
12621 }
12622 else
12623 puts (dlerror ());
12624
12625 return status;
12626 }
12627 _LT_EOF
12628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12629 (eval $ac_link) 2>&5
12630 ac_status=$?
12631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12632 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12633 (./conftest; exit; ) >&5 2>/dev/null
12634 lt_status=$?
12635 case x$lt_status in
12636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12639 esac
12640 else :
12641 # compilation failed
12642 lt_cv_dlopen_self_static=no
12643 fi
12644 fi
12645 rm -fr conftest*
12646
12647
12648 fi
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12650 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12651 fi
12652
12653 CPPFLAGS=$save_CPPFLAGS
12654 LDFLAGS=$save_LDFLAGS
12655 LIBS=$save_LIBS
12656 ;;
12657 esac
12658
12659 case $lt_cv_dlopen_self in
12660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12661 *) enable_dlopen_self=unknown ;;
12662 esac
12663
12664 case $lt_cv_dlopen_self_static in
12665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12666 *) enable_dlopen_self_static=unknown ;;
12667 esac
12668 fi
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686 striplib=
12687 old_striplib=
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12689 printf %s "checking whether stripping libraries is possible... " >&6; }
12690 if test -z "$STRIP"; then
12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 printf "%s\n" "no" >&6; }
12693 else
12694 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12695 old_striplib="$STRIP --strip-debug"
12696 striplib="$STRIP --strip-unneeded"
12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12698 printf "%s\n" "yes" >&6; }
12699 else
12700 case $host_os in
12701 darwin*)
12702 # FIXME - insert some real tests, host_os isn't really good enough
12703 striplib="$STRIP -x"
12704 old_striplib="$STRIP -S"
12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706 printf "%s\n" "yes" >&6; }
12707 ;;
12708 freebsd*)
12709 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12710 old_striplib="$STRIP --strip-debug"
12711 striplib="$STRIP --strip-unneeded"
12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12713 printf "%s\n" "yes" >&6; }
12714 else
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 printf "%s\n" "no" >&6; }
12717 fi
12718 ;;
12719 *)
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 printf "%s\n" "no" >&6; }
12722 ;;
12723 esac
12724 fi
12725 fi
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738 # Report what library types will actually be built
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12740 printf %s "checking if libtool supports shared libraries... " >&6; }
12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12742 printf "%s\n" "$can_build_shared" >&6; }
12743
12744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12745 printf %s "checking whether to build shared libraries... " >&6; }
12746 test no = "$can_build_shared" && enable_shared=no
12747
12748 # On AIX, shared libraries and static libraries use the same namespace, and
12749 # are all built from PIC.
12750 case $host_os in
12751 aix3*)
12752 test yes = "$enable_shared" && enable_static=no
12753 if test -n "$RANLIB"; then
12754 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12755 postinstall_cmds='$RANLIB $lib'
12756 fi
12757 ;;
12758
12759 aix[4-9]*)
12760 if test ia64 != "$host_cpu"; then
12761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12762 yes,aix,yes) ;; # shared object as lib.so file only
12763 yes,svr4,*) ;; # shared object as lib.so archive member only
12764 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12765 esac
12766 fi
12767 ;;
12768 esac
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12770 printf "%s\n" "$enable_shared" >&6; }
12771
12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12773 printf %s "checking whether to build static libraries... " >&6; }
12774 # Make sure either enable_shared or enable_static is yes.
12775 test yes = "$enable_shared" || enable_static=yes
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12777 printf "%s\n" "$enable_static" >&6; }
12778
12779
12780
12781
12782 fi
12783 ac_ext=c
12784 ac_cpp='$CPP $CPPFLAGS'
12785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12788
12789 CC=$lt_save_CC
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805 ac_config_commands="$ac_config_commands libtool"
12806
12807
12808
12809
12810 # Only expand once:
12811
12812
12813
12814 # Require xorg-macros minimum of 1.12 for DocBook external references
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12827 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12828 if test ${ac_cv_c_undeclared_builtin_options+y}
12829 then :
12830 printf %s "(cached) " >&6
12831 else $as_nop
12832 ac_save_CFLAGS=$CFLAGS
12833 ac_cv_c_undeclared_builtin_options='cannot detect'
12834 for ac_arg in '' -fno-builtin; do
12835 CFLAGS="$ac_save_CFLAGS $ac_arg"
12836 # This test program should *not* compile successfully.
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839
12840 int
12841 main (void)
12842 {
12843 (void) strchr;
12844 ;
12845 return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_compile "$LINENO"
12849 then :
12850
12851 else $as_nop
12852 # This test program should compile successfully.
12853 # No library function is consistently available on
12854 # freestanding implementations, so test against a dummy
12855 # declaration. Include always-available headers on the
12856 # off chance that they somehow elicit warnings.
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859 #include <float.h>
12860 #include <limits.h>
12861 #include <stdarg.h>
12862 #include <stddef.h>
12863 extern void ac_decl (int, char *);
12864
12865 int
12866 main (void)
12867 {
12868 (void) ac_decl (0, (char *) 0);
12869 (void) ac_decl;
12870
12871 ;
12872 return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_compile "$LINENO"
12876 then :
12877 if test x"$ac_arg" = x
12878 then :
12879 ac_cv_c_undeclared_builtin_options='none needed'
12880 else $as_nop
12881 ac_cv_c_undeclared_builtin_options=$ac_arg
12882 fi
12883 break
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12886 fi
12887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12888 done
12889 CFLAGS=$ac_save_CFLAGS
12890
12891 fi
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12893 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12894 case $ac_cv_c_undeclared_builtin_options in #(
12895 'cannot detect') :
12896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12897 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12898 as_fn_error $? "cannot make $CC report undeclared builtins
12899 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12900 'none needed') :
12901 ac_c_undeclared_builtin_options='' ;; #(
12902 *) :
12903 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12904 esac
12905
12906
12907
12908
12909
12910 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12911 if test "x$ac_cv_have_decl___clang__" = xyes
12912 then :
12913 CLANGCC="yes"
12914 else $as_nop
12915 CLANGCC="no"
12916 fi
12917 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12918 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12919 then :
12920 INTELCC="yes"
12921 else $as_nop
12922 INTELCC="no"
12923 fi
12924 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12925 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12926 then :
12927 SUNCC="yes"
12928 else $as_nop
12929 SUNCC="no"
12930 fi
12931
12932
12933
12934
12935
12936
12937
12938
12939 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12940 if test -n "$ac_tool_prefix"; then
12941 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12942 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12944 printf %s "checking for $ac_word... " >&6; }
12945 if test ${ac_cv_path_PKG_CONFIG+y}
12946 then :
12947 printf %s "(cached) " >&6
12948 else $as_nop
12949 case $PKG_CONFIG in
12950 [\\/]* | ?:[\\/]*)
12951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12952 ;;
12953 *)
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12956 do
12957 IFS=$as_save_IFS
12958 case $as_dir in #(((
12959 '') as_dir=./ ;;
12960 */) ;;
12961 *) as_dir=$as_dir/ ;;
12962 esac
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12965 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12967 break 2
12968 fi
12969 done
12970 done
12971 IFS=$as_save_IFS
12972
12973 ;;
12974 esac
12975 fi
12976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12977 if test -n "$PKG_CONFIG"; then
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12979 printf "%s\n" "$PKG_CONFIG" >&6; }
12980 else
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 printf "%s\n" "no" >&6; }
12983 fi
12984
12985
12986 fi
12987 if test -z "$ac_cv_path_PKG_CONFIG"; then
12988 ac_pt_PKG_CONFIG=$PKG_CONFIG
12989 # Extract the first word of "pkg-config", so it can be a program name with args.
12990 set dummy pkg-config; ac_word=$2
12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992 printf %s "checking for $ac_word... " >&6; }
12993 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12994 then :
12995 printf %s "(cached) " >&6
12996 else $as_nop
12997 case $ac_pt_PKG_CONFIG in
12998 [\\/]* | ?:[\\/]*)
12999 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13000 ;;
13001 *)
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13004 do
13005 IFS=$as_save_IFS
13006 case $as_dir in #(((
13007 '') as_dir=./ ;;
13008 */) ;;
13009 *) as_dir=$as_dir/ ;;
13010 esac
13011 for ac_exec_ext in '' $ac_executable_extensions; do
13012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13013 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13015 break 2
13016 fi
13017 done
13018 done
13019 IFS=$as_save_IFS
13020
13021 ;;
13022 esac
13023 fi
13024 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13025 if test -n "$ac_pt_PKG_CONFIG"; then
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13027 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13028 else
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 printf "%s\n" "no" >&6; }
13031 fi
13032
13033 if test "x$ac_pt_PKG_CONFIG" = x; then
13034 PKG_CONFIG=""
13035 else
13036 case $cross_compiling:$ac_tool_warned in
13037 yes:)
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13040 ac_tool_warned=yes ;;
13041 esac
13042 PKG_CONFIG=$ac_pt_PKG_CONFIG
13043 fi
13044 else
13045 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13046 fi
13047
13048 fi
13049 if test -n "$PKG_CONFIG"; then
13050 _pkg_min_version=0.9.0
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13052 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13053 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13055 printf "%s\n" "yes" >&6; }
13056 else
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 printf "%s\n" "no" >&6; }
13059 PKG_CONFIG=""
13060 fi
13061 fi
13062
13063
13064
13065
13066
13067 # Check whether --enable-selective-werror was given.
13068 if test ${enable_selective_werror+y}
13069 then :
13070 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13071 else $as_nop
13072 SELECTIVE_WERROR=yes
13073 fi
13074
13075
13076
13077
13078
13079 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13080 if test "x$SUNCC" = "xyes"; then
13081 BASE_CFLAGS="-v"
13082 else
13083 BASE_CFLAGS=""
13084 fi
13085
13086 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 xorg_testset_save_CFLAGS="$CFLAGS"
13101
13102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13105 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13106 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13107 then :
13108 printf %s "(cached) " >&6
13109 else $as_nop
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 int i;
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"
13115 then :
13116 xorg_cv_cc_flag_unknown_warning_option=yes
13117 else $as_nop
13118 xorg_cv_cc_flag_unknown_warning_option=no
13119 fi
13120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13121 fi
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13123 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13125 CFLAGS="$xorg_testset_save_CFLAGS"
13126 fi
13127
13128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13131 fi
13132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13136 then :
13137 printf %s "(cached) " >&6
13138 else $as_nop
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 int i;
13142 _ACEOF
13143 if ac_fn_c_try_compile "$LINENO"
13144 then :
13145 xorg_cv_cc_flag_unused_command_line_argument=yes
13146 else $as_nop
13147 xorg_cv_cc_flag_unused_command_line_argument=no
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13150 fi
13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13152 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13154 CFLAGS="$xorg_testset_save_CFLAGS"
13155 fi
13156
13157 found="no"
13158
13159 if test $found = "no" ; then
13160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162 fi
13163
13164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13166 fi
13167
13168 CFLAGS="$CFLAGS -Wall"
13169
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13171 printf %s "checking if $CC supports -Wall... " >&6; }
13172 cacheid=xorg_cv_cc_flag__Wall
13173 if eval test \${$cacheid+y}
13174 then :
13175 printf %s "(cached) " >&6
13176 else $as_nop
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179 int i;
13180 int
13181 main (void)
13182 {
13183
13184 ;
13185 return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"
13189 then :
13190 eval $cacheid=yes
13191 else $as_nop
13192 eval $cacheid=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13195 conftest$ac_exeext conftest.$ac_ext
13196 fi
13197
13198
13199 CFLAGS="$xorg_testset_save_CFLAGS"
13200
13201 eval supported=\$$cacheid
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13203 printf "%s\n" "$supported" >&6; }
13204 if test "$supported" = "yes" ; then
13205 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13206 found="yes"
13207 fi
13208 fi
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224 xorg_testset_save_CFLAGS="$CFLAGS"
13225
13226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13229 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13230 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13231 then :
13232 printf %s "(cached) " >&6
13233 else $as_nop
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13236 int i;
13237 _ACEOF
13238 if ac_fn_c_try_compile "$LINENO"
13239 then :
13240 xorg_cv_cc_flag_unknown_warning_option=yes
13241 else $as_nop
13242 xorg_cv_cc_flag_unknown_warning_option=no
13243 fi
13244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13245 fi
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13247 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13249 CFLAGS="$xorg_testset_save_CFLAGS"
13250 fi
13251
13252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13255 fi
13256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13258 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13259 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13260 then :
13261 printf %s "(cached) " >&6
13262 else $as_nop
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265 int i;
13266 _ACEOF
13267 if ac_fn_c_try_compile "$LINENO"
13268 then :
13269 xorg_cv_cc_flag_unused_command_line_argument=yes
13270 else $as_nop
13271 xorg_cv_cc_flag_unused_command_line_argument=no
13272 fi
13273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13274 fi
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13276 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13278 CFLAGS="$xorg_testset_save_CFLAGS"
13279 fi
13280
13281 found="no"
13282
13283 if test $found = "no" ; then
13284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13286 fi
13287
13288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13290 fi
13291
13292 CFLAGS="$CFLAGS -Wpointer-arith"
13293
13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13295 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13296 cacheid=xorg_cv_cc_flag__Wpointer_arith
13297 if eval test \${$cacheid+y}
13298 then :
13299 printf %s "(cached) " >&6
13300 else $as_nop
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 int i;
13304 int
13305 main (void)
13306 {
13307
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_link "$LINENO"
13313 then :
13314 eval $cacheid=yes
13315 else $as_nop
13316 eval $cacheid=no
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13319 conftest$ac_exeext conftest.$ac_ext
13320 fi
13321
13322
13323 CFLAGS="$xorg_testset_save_CFLAGS"
13324
13325 eval supported=\$$cacheid
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13327 printf "%s\n" "$supported" >&6; }
13328 if test "$supported" = "yes" ; then
13329 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13330 found="yes"
13331 fi
13332 fi
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348 xorg_testset_save_CFLAGS="$CFLAGS"
13349
13350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13353 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13354 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else $as_nop
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360 int i;
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"
13363 then :
13364 xorg_cv_cc_flag_unknown_warning_option=yes
13365 else $as_nop
13366 xorg_cv_cc_flag_unknown_warning_option=no
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13369 fi
13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13371 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13373 CFLAGS="$xorg_testset_save_CFLAGS"
13374 fi
13375
13376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379 fi
13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13382 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13383 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13384 then :
13385 printf %s "(cached) " >&6
13386 else $as_nop
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13389 int i;
13390 _ACEOF
13391 if ac_fn_c_try_compile "$LINENO"
13392 then :
13393 xorg_cv_cc_flag_unused_command_line_argument=yes
13394 else $as_nop
13395 xorg_cv_cc_flag_unused_command_line_argument=no
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13398 fi
13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13402 CFLAGS="$xorg_testset_save_CFLAGS"
13403 fi
13404
13405 found="no"
13406
13407 if test $found = "no" ; then
13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410 fi
13411
13412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13414 fi
13415
13416 CFLAGS="$CFLAGS -Wmissing-declarations"
13417
13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13419 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13420 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13421 if eval test \${$cacheid+y}
13422 then :
13423 printf %s "(cached) " >&6
13424 else $as_nop
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 int i;
13428 int
13429 main (void)
13430 {
13431
13432 ;
13433 return 0;
13434 }
13435 _ACEOF
13436 if ac_fn_c_try_link "$LINENO"
13437 then :
13438 eval $cacheid=yes
13439 else $as_nop
13440 eval $cacheid=no
13441 fi
13442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13443 conftest$ac_exeext conftest.$ac_ext
13444 fi
13445
13446
13447 CFLAGS="$xorg_testset_save_CFLAGS"
13448
13449 eval supported=\$$cacheid
13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13451 printf "%s\n" "$supported" >&6; }
13452 if test "$supported" = "yes" ; then
13453 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13454 found="yes"
13455 fi
13456 fi
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472 xorg_testset_save_CFLAGS="$CFLAGS"
13473
13474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13477 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13478 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13479 then :
13480 printf %s "(cached) " >&6
13481 else $as_nop
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484 int i;
13485 _ACEOF
13486 if ac_fn_c_try_compile "$LINENO"
13487 then :
13488 xorg_cv_cc_flag_unknown_warning_option=yes
13489 else $as_nop
13490 xorg_cv_cc_flag_unknown_warning_option=no
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13493 fi
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13495 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13497 CFLAGS="$xorg_testset_save_CFLAGS"
13498 fi
13499
13500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13503 fi
13504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13506 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13507 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13508 then :
13509 printf %s "(cached) " >&6
13510 else $as_nop
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 int i;
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"
13516 then :
13517 xorg_cv_cc_flag_unused_command_line_argument=yes
13518 else $as_nop
13519 xorg_cv_cc_flag_unused_command_line_argument=no
13520 fi
13521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13522 fi
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13524 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13526 CFLAGS="$xorg_testset_save_CFLAGS"
13527 fi
13528
13529 found="no"
13530
13531 if test $found = "no" ; then
13532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13534 fi
13535
13536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13538 fi
13539
13540 CFLAGS="$CFLAGS -Wformat=2"
13541
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13543 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13544 cacheid=xorg_cv_cc_flag__Wformat_2
13545 if eval test \${$cacheid+y}
13546 then :
13547 printf %s "(cached) " >&6
13548 else $as_nop
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551 int i;
13552 int
13553 main (void)
13554 {
13555
13556 ;
13557 return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"
13561 then :
13562 eval $cacheid=yes
13563 else $as_nop
13564 eval $cacheid=no
13565 fi
13566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13567 conftest$ac_exeext conftest.$ac_ext
13568 fi
13569
13570
13571 CFLAGS="$xorg_testset_save_CFLAGS"
13572
13573 eval supported=\$$cacheid
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13575 printf "%s\n" "$supported" >&6; }
13576 if test "$supported" = "yes" ; then
13577 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13578 found="yes"
13579 fi
13580 fi
13581
13582 if test $found = "no" ; then
13583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585 fi
13586
13587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13589 fi
13590
13591 CFLAGS="$CFLAGS -Wformat"
13592
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13594 printf %s "checking if $CC supports -Wformat... " >&6; }
13595 cacheid=xorg_cv_cc_flag__Wformat
13596 if eval test \${$cacheid+y}
13597 then :
13598 printf %s "(cached) " >&6
13599 else $as_nop
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 int i;
13603 int
13604 main (void)
13605 {
13606
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"
13612 then :
13613 eval $cacheid=yes
13614 else $as_nop
13615 eval $cacheid=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13618 conftest$ac_exeext conftest.$ac_ext
13619 fi
13620
13621
13622 CFLAGS="$xorg_testset_save_CFLAGS"
13623
13624 eval supported=\$$cacheid
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13626 printf "%s\n" "$supported" >&6; }
13627 if test "$supported" = "yes" ; then
13628 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13629 found="yes"
13630 fi
13631 fi
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649 xorg_testset_save_CFLAGS="$CFLAGS"
13650
13651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13654 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13655 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13656 then :
13657 printf %s "(cached) " >&6
13658 else $as_nop
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661 int i;
13662 _ACEOF
13663 if ac_fn_c_try_compile "$LINENO"
13664 then :
13665 xorg_cv_cc_flag_unknown_warning_option=yes
13666 else $as_nop
13667 xorg_cv_cc_flag_unknown_warning_option=no
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13670 fi
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13672 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13674 CFLAGS="$xorg_testset_save_CFLAGS"
13675 fi
13676
13677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680 fi
13681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13683 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13684 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13685 then :
13686 printf %s "(cached) " >&6
13687 else $as_nop
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 int i;
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"
13693 then :
13694 xorg_cv_cc_flag_unused_command_line_argument=yes
13695 else $as_nop
13696 xorg_cv_cc_flag_unused_command_line_argument=no
13697 fi
13698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13699 fi
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13703 CFLAGS="$xorg_testset_save_CFLAGS"
13704 fi
13705
13706 found="no"
13707
13708 if test $found = "no" ; then
13709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13711 fi
13712
13713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13715 fi
13716
13717 CFLAGS="$CFLAGS -Wstrict-prototypes"
13718
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13720 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13721 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13722 if eval test \${$cacheid+y}
13723 then :
13724 printf %s "(cached) " >&6
13725 else $as_nop
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 int i;
13729 int
13730 main (void)
13731 {
13732
13733 ;
13734 return 0;
13735 }
13736 _ACEOF
13737 if ac_fn_c_try_link "$LINENO"
13738 then :
13739 eval $cacheid=yes
13740 else $as_nop
13741 eval $cacheid=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13744 conftest$ac_exeext conftest.$ac_ext
13745 fi
13746
13747
13748 CFLAGS="$xorg_testset_save_CFLAGS"
13749
13750 eval supported=\$$cacheid
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13752 printf "%s\n" "$supported" >&6; }
13753 if test "$supported" = "yes" ; then
13754 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13755 found="yes"
13756 fi
13757 fi
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773 xorg_testset_save_CFLAGS="$CFLAGS"
13774
13775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13779 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13780 then :
13781 printf %s "(cached) " >&6
13782 else $as_nop
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 int i;
13786 _ACEOF
13787 if ac_fn_c_try_compile "$LINENO"
13788 then :
13789 xorg_cv_cc_flag_unknown_warning_option=yes
13790 else $as_nop
13791 xorg_cv_cc_flag_unknown_warning_option=no
13792 fi
13793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13794 fi
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13798 CFLAGS="$xorg_testset_save_CFLAGS"
13799 fi
13800
13801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804 fi
13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13809 then :
13810 printf %s "(cached) " >&6
13811 else $as_nop
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 int i;
13815 _ACEOF
13816 if ac_fn_c_try_compile "$LINENO"
13817 then :
13818 xorg_cv_cc_flag_unused_command_line_argument=yes
13819 else $as_nop
13820 xorg_cv_cc_flag_unused_command_line_argument=no
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13823 fi
13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13825 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13827 CFLAGS="$xorg_testset_save_CFLAGS"
13828 fi
13829
13830 found="no"
13831
13832 if test $found = "no" ; then
13833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13835 fi
13836
13837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13839 fi
13840
13841 CFLAGS="$CFLAGS -Wmissing-prototypes"
13842
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13844 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13845 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13846 if eval test \${$cacheid+y}
13847 then :
13848 printf %s "(cached) " >&6
13849 else $as_nop
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852 int i;
13853 int
13854 main (void)
13855 {
13856
13857 ;
13858 return 0;
13859 }
13860 _ACEOF
13861 if ac_fn_c_try_link "$LINENO"
13862 then :
13863 eval $cacheid=yes
13864 else $as_nop
13865 eval $cacheid=no
13866 fi
13867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13868 conftest$ac_exeext conftest.$ac_ext
13869 fi
13870
13871
13872 CFLAGS="$xorg_testset_save_CFLAGS"
13873
13874 eval supported=\$$cacheid
13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13876 printf "%s\n" "$supported" >&6; }
13877 if test "$supported" = "yes" ; then
13878 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13879 found="yes"
13880 fi
13881 fi
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897 xorg_testset_save_CFLAGS="$CFLAGS"
13898
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13903 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13904 then :
13905 printf %s "(cached) " >&6
13906 else $as_nop
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 int i;
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"
13912 then :
13913 xorg_cv_cc_flag_unknown_warning_option=yes
13914 else $as_nop
13915 xorg_cv_cc_flag_unknown_warning_option=no
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13918 fi
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13922 CFLAGS="$xorg_testset_save_CFLAGS"
13923 fi
13924
13925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13928 fi
13929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13933 then :
13934 printf %s "(cached) " >&6
13935 else $as_nop
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 int i;
13939 _ACEOF
13940 if ac_fn_c_try_compile "$LINENO"
13941 then :
13942 xorg_cv_cc_flag_unused_command_line_argument=yes
13943 else $as_nop
13944 xorg_cv_cc_flag_unused_command_line_argument=no
13945 fi
13946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13947 fi
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13951 CFLAGS="$xorg_testset_save_CFLAGS"
13952 fi
13953
13954 found="no"
13955
13956 if test $found = "no" ; then
13957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959 fi
13960
13961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963 fi
13964
13965 CFLAGS="$CFLAGS -Wnested-externs"
13966
13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13968 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13969 cacheid=xorg_cv_cc_flag__Wnested_externs
13970 if eval test \${$cacheid+y}
13971 then :
13972 printf %s "(cached) " >&6
13973 else $as_nop
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976 int i;
13977 int
13978 main (void)
13979 {
13980
13981 ;
13982 return 0;
13983 }
13984 _ACEOF
13985 if ac_fn_c_try_link "$LINENO"
13986 then :
13987 eval $cacheid=yes
13988 else $as_nop
13989 eval $cacheid=no
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13992 conftest$ac_exeext conftest.$ac_ext
13993 fi
13994
13995
13996 CFLAGS="$xorg_testset_save_CFLAGS"
13997
13998 eval supported=\$$cacheid
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14000 printf "%s\n" "$supported" >&6; }
14001 if test "$supported" = "yes" ; then
14002 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14003 found="yes"
14004 fi
14005 fi
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021 xorg_testset_save_CFLAGS="$CFLAGS"
14022
14023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14027 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14028 then :
14029 printf %s "(cached) " >&6
14030 else $as_nop
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033 int i;
14034 _ACEOF
14035 if ac_fn_c_try_compile "$LINENO"
14036 then :
14037 xorg_cv_cc_flag_unknown_warning_option=yes
14038 else $as_nop
14039 xorg_cv_cc_flag_unknown_warning_option=no
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14042 fi
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14046 CFLAGS="$xorg_testset_save_CFLAGS"
14047 fi
14048
14049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14052 fi
14053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14057 then :
14058 printf %s "(cached) " >&6
14059 else $as_nop
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 int i;
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"
14065 then :
14066 xorg_cv_cc_flag_unused_command_line_argument=yes
14067 else $as_nop
14068 xorg_cv_cc_flag_unused_command_line_argument=no
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14071 fi
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14075 CFLAGS="$xorg_testset_save_CFLAGS"
14076 fi
14077
14078 found="no"
14079
14080 if test $found = "no" ; then
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 fi
14084
14085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14087 fi
14088
14089 CFLAGS="$CFLAGS -Wbad-function-cast"
14090
14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14092 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14093 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14094 if eval test \${$cacheid+y}
14095 then :
14096 printf %s "(cached) " >&6
14097 else $as_nop
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 int i;
14101 int
14102 main (void)
14103 {
14104
14105 ;
14106 return 0;
14107 }
14108 _ACEOF
14109 if ac_fn_c_try_link "$LINENO"
14110 then :
14111 eval $cacheid=yes
14112 else $as_nop
14113 eval $cacheid=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14116 conftest$ac_exeext conftest.$ac_ext
14117 fi
14118
14119
14120 CFLAGS="$xorg_testset_save_CFLAGS"
14121
14122 eval supported=\$$cacheid
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14124 printf "%s\n" "$supported" >&6; }
14125 if test "$supported" = "yes" ; then
14126 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14127 found="yes"
14128 fi
14129 fi
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145 xorg_testset_save_CFLAGS="$CFLAGS"
14146
14147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14151 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14152 then :
14153 printf %s "(cached) " >&6
14154 else $as_nop
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14157 int i;
14158 _ACEOF
14159 if ac_fn_c_try_compile "$LINENO"
14160 then :
14161 xorg_cv_cc_flag_unknown_warning_option=yes
14162 else $as_nop
14163 xorg_cv_cc_flag_unknown_warning_option=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14166 fi
14167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14170 CFLAGS="$xorg_testset_save_CFLAGS"
14171 fi
14172
14173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14176 fi
14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14181 then :
14182 printf %s "(cached) " >&6
14183 else $as_nop
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14186 int i;
14187 _ACEOF
14188 if ac_fn_c_try_compile "$LINENO"
14189 then :
14190 xorg_cv_cc_flag_unused_command_line_argument=yes
14191 else $as_nop
14192 xorg_cv_cc_flag_unused_command_line_argument=no
14193 fi
14194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14195 fi
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14199 CFLAGS="$xorg_testset_save_CFLAGS"
14200 fi
14201
14202 found="no"
14203
14204 if test $found = "no" ; then
14205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207 fi
14208
14209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211 fi
14212
14213 CFLAGS="$CFLAGS -Wold-style-definition"
14214
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14216 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14217 cacheid=xorg_cv_cc_flag__Wold_style_definition
14218 if eval test \${$cacheid+y}
14219 then :
14220 printf %s "(cached) " >&6
14221 else $as_nop
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224 int i;
14225 int
14226 main (void)
14227 {
14228
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 if ac_fn_c_try_link "$LINENO"
14234 then :
14235 eval $cacheid=yes
14236 else $as_nop
14237 eval $cacheid=no
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14240 conftest$ac_exeext conftest.$ac_ext
14241 fi
14242
14243
14244 CFLAGS="$xorg_testset_save_CFLAGS"
14245
14246 eval supported=\$$cacheid
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14248 printf "%s\n" "$supported" >&6; }
14249 if test "$supported" = "yes" ; then
14250 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14251 found="yes"
14252 fi
14253 fi
14254
14255 if test $found = "no" ; then
14256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258 fi
14259
14260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14262 fi
14263
14264 CFLAGS="$CFLAGS -fd"
14265
14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14267 printf %s "checking if $CC supports -fd... " >&6; }
14268 cacheid=xorg_cv_cc_flag__fd
14269 if eval test \${$cacheid+y}
14270 then :
14271 printf %s "(cached) " >&6
14272 else $as_nop
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 int i;
14276 int
14277 main (void)
14278 {
14279
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"
14285 then :
14286 eval $cacheid=yes
14287 else $as_nop
14288 eval $cacheid=no
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14291 conftest$ac_exeext conftest.$ac_ext
14292 fi
14293
14294
14295 CFLAGS="$xorg_testset_save_CFLAGS"
14296
14297 eval supported=\$$cacheid
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14299 printf "%s\n" "$supported" >&6; }
14300 if test "$supported" = "yes" ; then
14301 BASE_CFLAGS="$BASE_CFLAGS -fd"
14302 found="yes"
14303 fi
14304 fi
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320 xorg_testset_save_CFLAGS="$CFLAGS"
14321
14322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14325 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14326 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14327 then :
14328 printf %s "(cached) " >&6
14329 else $as_nop
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 int i;
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"
14335 then :
14336 xorg_cv_cc_flag_unknown_warning_option=yes
14337 else $as_nop
14338 xorg_cv_cc_flag_unknown_warning_option=no
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14341 fi
14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14345 CFLAGS="$xorg_testset_save_CFLAGS"
14346 fi
14347
14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14351 fi
14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14356 then :
14357 printf %s "(cached) " >&6
14358 else $as_nop
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361 int i;
14362 _ACEOF
14363 if ac_fn_c_try_compile "$LINENO"
14364 then :
14365 xorg_cv_cc_flag_unused_command_line_argument=yes
14366 else $as_nop
14367 xorg_cv_cc_flag_unused_command_line_argument=no
14368 fi
14369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14370 fi
14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14372 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14374 CFLAGS="$xorg_testset_save_CFLAGS"
14375 fi
14376
14377 found="no"
14378
14379 if test $found = "no" ; then
14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14382 fi
14383
14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14386 fi
14387
14388 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14389
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14391 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14392 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14393 if eval test \${$cacheid+y}
14394 then :
14395 printf %s "(cached) " >&6
14396 else $as_nop
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399 int i;
14400 int
14401 main (void)
14402 {
14403
14404 ;
14405 return 0;
14406 }
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"
14409 then :
14410 eval $cacheid=yes
14411 else $as_nop
14412 eval $cacheid=no
14413 fi
14414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14415 conftest$ac_exeext conftest.$ac_ext
14416 fi
14417
14418
14419 CFLAGS="$xorg_testset_save_CFLAGS"
14420
14421 eval supported=\$$cacheid
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14423 printf "%s\n" "$supported" >&6; }
14424 if test "$supported" = "yes" ; then
14425 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14426 found="yes"
14427 fi
14428 fi
14429
14430
14431
14432
14433
14434 # This chunk adds additional warnings that could catch undesired effects.
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448 xorg_testset_save_CFLAGS="$CFLAGS"
14449
14450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14454 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14455 then :
14456 printf %s "(cached) " >&6
14457 else $as_nop
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 int i;
14461 _ACEOF
14462 if ac_fn_c_try_compile "$LINENO"
14463 then :
14464 xorg_cv_cc_flag_unknown_warning_option=yes
14465 else $as_nop
14466 xorg_cv_cc_flag_unknown_warning_option=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14469 fi
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14471 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14473 CFLAGS="$xorg_testset_save_CFLAGS"
14474 fi
14475
14476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14479 fi
14480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14482 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14483 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14484 then :
14485 printf %s "(cached) " >&6
14486 else $as_nop
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 int i;
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"
14492 then :
14493 xorg_cv_cc_flag_unused_command_line_argument=yes
14494 else $as_nop
14495 xorg_cv_cc_flag_unused_command_line_argument=no
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14498 fi
14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14500 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14502 CFLAGS="$xorg_testset_save_CFLAGS"
14503 fi
14504
14505 found="no"
14506
14507 if test $found = "no" ; then
14508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510 fi
14511
14512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14514 fi
14515
14516 CFLAGS="$CFLAGS -Wunused"
14517
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14519 printf %s "checking if $CC supports -Wunused... " >&6; }
14520 cacheid=xorg_cv_cc_flag__Wunused
14521 if eval test \${$cacheid+y}
14522 then :
14523 printf %s "(cached) " >&6
14524 else $as_nop
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 int i;
14528 int
14529 main (void)
14530 {
14531
14532 ;
14533 return 0;
14534 }
14535 _ACEOF
14536 if ac_fn_c_try_link "$LINENO"
14537 then :
14538 eval $cacheid=yes
14539 else $as_nop
14540 eval $cacheid=no
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14543 conftest$ac_exeext conftest.$ac_ext
14544 fi
14545
14546
14547 CFLAGS="$xorg_testset_save_CFLAGS"
14548
14549 eval supported=\$$cacheid
14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14551 printf "%s\n" "$supported" >&6; }
14552 if test "$supported" = "yes" ; then
14553 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14554 found="yes"
14555 fi
14556 fi
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572 xorg_testset_save_CFLAGS="$CFLAGS"
14573
14574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14577 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14578 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14579 then :
14580 printf %s "(cached) " >&6
14581 else $as_nop
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 int i;
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"
14587 then :
14588 xorg_cv_cc_flag_unknown_warning_option=yes
14589 else $as_nop
14590 xorg_cv_cc_flag_unknown_warning_option=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14593 fi
14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14597 CFLAGS="$xorg_testset_save_CFLAGS"
14598 fi
14599
14600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14603 fi
14604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14608 then :
14609 printf %s "(cached) " >&6
14610 else $as_nop
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 int i;
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"
14616 then :
14617 xorg_cv_cc_flag_unused_command_line_argument=yes
14618 else $as_nop
14619 xorg_cv_cc_flag_unused_command_line_argument=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14622 fi
14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14624 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14626 CFLAGS="$xorg_testset_save_CFLAGS"
14627 fi
14628
14629 found="no"
14630
14631 if test $found = "no" ; then
14632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634 fi
14635
14636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14638 fi
14639
14640 CFLAGS="$CFLAGS -Wuninitialized"
14641
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14643 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14644 cacheid=xorg_cv_cc_flag__Wuninitialized
14645 if eval test \${$cacheid+y}
14646 then :
14647 printf %s "(cached) " >&6
14648 else $as_nop
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651 int i;
14652 int
14653 main (void)
14654 {
14655
14656 ;
14657 return 0;
14658 }
14659 _ACEOF
14660 if ac_fn_c_try_link "$LINENO"
14661 then :
14662 eval $cacheid=yes
14663 else $as_nop
14664 eval $cacheid=no
14665 fi
14666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14667 conftest$ac_exeext conftest.$ac_ext
14668 fi
14669
14670
14671 CFLAGS="$xorg_testset_save_CFLAGS"
14672
14673 eval supported=\$$cacheid
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14675 printf "%s\n" "$supported" >&6; }
14676 if test "$supported" = "yes" ; then
14677 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14678 found="yes"
14679 fi
14680 fi
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 xorg_testset_save_CFLAGS="$CFLAGS"
14697
14698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14703 then :
14704 printf %s "(cached) " >&6
14705 else $as_nop
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14708 int i;
14709 _ACEOF
14710 if ac_fn_c_try_compile "$LINENO"
14711 then :
14712 xorg_cv_cc_flag_unknown_warning_option=yes
14713 else $as_nop
14714 xorg_cv_cc_flag_unknown_warning_option=no
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14717 fi
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14721 CFLAGS="$xorg_testset_save_CFLAGS"
14722 fi
14723
14724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14727 fi
14728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14732 then :
14733 printf %s "(cached) " >&6
14734 else $as_nop
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 int i;
14738 _ACEOF
14739 if ac_fn_c_try_compile "$LINENO"
14740 then :
14741 xorg_cv_cc_flag_unused_command_line_argument=yes
14742 else $as_nop
14743 xorg_cv_cc_flag_unused_command_line_argument=no
14744 fi
14745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14746 fi
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14750 CFLAGS="$xorg_testset_save_CFLAGS"
14751 fi
14752
14753 found="no"
14754
14755 if test $found = "no" ; then
14756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14758 fi
14759
14760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14762 fi
14763
14764 CFLAGS="$CFLAGS -Wshadow"
14765
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14767 printf %s "checking if $CC supports -Wshadow... " >&6; }
14768 cacheid=xorg_cv_cc_flag__Wshadow
14769 if eval test \${$cacheid+y}
14770 then :
14771 printf %s "(cached) " >&6
14772 else $as_nop
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 int i;
14776 int
14777 main (void)
14778 {
14779
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_c_try_link "$LINENO"
14785 then :
14786 eval $cacheid=yes
14787 else $as_nop
14788 eval $cacheid=no
14789 fi
14790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14791 conftest$ac_exeext conftest.$ac_ext
14792 fi
14793
14794
14795 CFLAGS="$xorg_testset_save_CFLAGS"
14796
14797 eval supported=\$$cacheid
14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14799 printf "%s\n" "$supported" >&6; }
14800 if test "$supported" = "yes" ; then
14801 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14802 found="yes"
14803 fi
14804 fi
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820 xorg_testset_save_CFLAGS="$CFLAGS"
14821
14822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14825 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14826 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14827 then :
14828 printf %s "(cached) " >&6
14829 else $as_nop
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 int i;
14833 _ACEOF
14834 if ac_fn_c_try_compile "$LINENO"
14835 then :
14836 xorg_cv_cc_flag_unknown_warning_option=yes
14837 else $as_nop
14838 xorg_cv_cc_flag_unknown_warning_option=no
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14841 fi
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14843 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14845 CFLAGS="$xorg_testset_save_CFLAGS"
14846 fi
14847
14848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851 fi
14852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14854 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14855 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14856 then :
14857 printf %s "(cached) " >&6
14858 else $as_nop
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 int i;
14862 _ACEOF
14863 if ac_fn_c_try_compile "$LINENO"
14864 then :
14865 xorg_cv_cc_flag_unused_command_line_argument=yes
14866 else $as_nop
14867 xorg_cv_cc_flag_unused_command_line_argument=no
14868 fi
14869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14870 fi
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14874 CFLAGS="$xorg_testset_save_CFLAGS"
14875 fi
14876
14877 found="no"
14878
14879 if test $found = "no" ; then
14880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14882 fi
14883
14884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14886 fi
14887
14888 CFLAGS="$CFLAGS -Wmissing-noreturn"
14889
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14891 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14892 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14893 if eval test \${$cacheid+y}
14894 then :
14895 printf %s "(cached) " >&6
14896 else $as_nop
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 int i;
14900 int
14901 main (void)
14902 {
14903
14904 ;
14905 return 0;
14906 }
14907 _ACEOF
14908 if ac_fn_c_try_link "$LINENO"
14909 then :
14910 eval $cacheid=yes
14911 else $as_nop
14912 eval $cacheid=no
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14915 conftest$ac_exeext conftest.$ac_ext
14916 fi
14917
14918
14919 CFLAGS="$xorg_testset_save_CFLAGS"
14920
14921 eval supported=\$$cacheid
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14923 printf "%s\n" "$supported" >&6; }
14924 if test "$supported" = "yes" ; then
14925 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14926 found="yes"
14927 fi
14928 fi
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944 xorg_testset_save_CFLAGS="$CFLAGS"
14945
14946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14950 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14951 then :
14952 printf %s "(cached) " >&6
14953 else $as_nop
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956 int i;
14957 _ACEOF
14958 if ac_fn_c_try_compile "$LINENO"
14959 then :
14960 xorg_cv_cc_flag_unknown_warning_option=yes
14961 else $as_nop
14962 xorg_cv_cc_flag_unknown_warning_option=no
14963 fi
14964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14965 fi
14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14969 CFLAGS="$xorg_testset_save_CFLAGS"
14970 fi
14971
14972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14975 fi
14976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14980 then :
14981 printf %s "(cached) " >&6
14982 else $as_nop
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 int i;
14986 _ACEOF
14987 if ac_fn_c_try_compile "$LINENO"
14988 then :
14989 xorg_cv_cc_flag_unused_command_line_argument=yes
14990 else $as_nop
14991 xorg_cv_cc_flag_unused_command_line_argument=no
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14994 fi
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14996 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14998 CFLAGS="$xorg_testset_save_CFLAGS"
14999 fi
15000
15001 found="no"
15002
15003 if test $found = "no" ; then
15004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15006 fi
15007
15008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15010 fi
15011
15012 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15013
15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15015 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15016 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15017 if eval test \${$cacheid+y}
15018 then :
15019 printf %s "(cached) " >&6
15020 else $as_nop
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 int i;
15024 int
15025 main (void)
15026 {
15027
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_link "$LINENO"
15033 then :
15034 eval $cacheid=yes
15035 else $as_nop
15036 eval $cacheid=no
15037 fi
15038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15039 conftest$ac_exeext conftest.$ac_ext
15040 fi
15041
15042
15043 CFLAGS="$xorg_testset_save_CFLAGS"
15044
15045 eval supported=\$$cacheid
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15047 printf "%s\n" "$supported" >&6; }
15048 if test "$supported" = "yes" ; then
15049 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15050 found="yes"
15051 fi
15052 fi
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068 xorg_testset_save_CFLAGS="$CFLAGS"
15069
15070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15074 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15075 then :
15076 printf %s "(cached) " >&6
15077 else $as_nop
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 int i;
15081 _ACEOF
15082 if ac_fn_c_try_compile "$LINENO"
15083 then :
15084 xorg_cv_cc_flag_unknown_warning_option=yes
15085 else $as_nop
15086 xorg_cv_cc_flag_unknown_warning_option=no
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15089 fi
15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15093 CFLAGS="$xorg_testset_save_CFLAGS"
15094 fi
15095
15096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15099 fi
15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15104 then :
15105 printf %s "(cached) " >&6
15106 else $as_nop
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 int i;
15110 _ACEOF
15111 if ac_fn_c_try_compile "$LINENO"
15112 then :
15113 xorg_cv_cc_flag_unused_command_line_argument=yes
15114 else $as_nop
15115 xorg_cv_cc_flag_unused_command_line_argument=no
15116 fi
15117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15118 fi
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15120 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15122 CFLAGS="$xorg_testset_save_CFLAGS"
15123 fi
15124
15125 found="no"
15126
15127 if test $found = "no" ; then
15128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15130 fi
15131
15132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15134 fi
15135
15136 CFLAGS="$CFLAGS -Wredundant-decls"
15137
15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15139 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15140 cacheid=xorg_cv_cc_flag__Wredundant_decls
15141 if eval test \${$cacheid+y}
15142 then :
15143 printf %s "(cached) " >&6
15144 else $as_nop
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 int i;
15148 int
15149 main (void)
15150 {
15151
15152 ;
15153 return 0;
15154 }
15155 _ACEOF
15156 if ac_fn_c_try_link "$LINENO"
15157 then :
15158 eval $cacheid=yes
15159 else $as_nop
15160 eval $cacheid=no
15161 fi
15162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15163 conftest$ac_exeext conftest.$ac_ext
15164 fi
15165
15166
15167 CFLAGS="$xorg_testset_save_CFLAGS"
15168
15169 eval supported=\$$cacheid
15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15171 printf "%s\n" "$supported" >&6; }
15172 if test "$supported" = "yes" ; then
15173 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15174 found="yes"
15175 fi
15176 fi
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192 xorg_testset_save_CFLAGS="$CFLAGS"
15193
15194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15198 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15199 then :
15200 printf %s "(cached) " >&6
15201 else $as_nop
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 int i;
15205 _ACEOF
15206 if ac_fn_c_try_compile "$LINENO"
15207 then :
15208 xorg_cv_cc_flag_unknown_warning_option=yes
15209 else $as_nop
15210 xorg_cv_cc_flag_unknown_warning_option=no
15211 fi
15212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15213 fi
15214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15217 CFLAGS="$xorg_testset_save_CFLAGS"
15218 fi
15219
15220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15223 fi
15224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15228 then :
15229 printf %s "(cached) " >&6
15230 else $as_nop
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233 int i;
15234 _ACEOF
15235 if ac_fn_c_try_compile "$LINENO"
15236 then :
15237 xorg_cv_cc_flag_unused_command_line_argument=yes
15238 else $as_nop
15239 xorg_cv_cc_flag_unused_command_line_argument=no
15240 fi
15241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15242 fi
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15246 CFLAGS="$xorg_testset_save_CFLAGS"
15247 fi
15248
15249 found="no"
15250
15251 if test $found = "no" ; then
15252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15254 fi
15255
15256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15258 fi
15259
15260 CFLAGS="$CFLAGS -Wlogical-op"
15261
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15263 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15264 cacheid=xorg_cv_cc_flag__Wlogical_op
15265 if eval test \${$cacheid+y}
15266 then :
15267 printf %s "(cached) " >&6
15268 else $as_nop
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 int i;
15272 int
15273 main (void)
15274 {
15275
15276 ;
15277 return 0;
15278 }
15279 _ACEOF
15280 if ac_fn_c_try_link "$LINENO"
15281 then :
15282 eval $cacheid=yes
15283 else $as_nop
15284 eval $cacheid=no
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15287 conftest$ac_exeext conftest.$ac_ext
15288 fi
15289
15290
15291 CFLAGS="$xorg_testset_save_CFLAGS"
15292
15293 eval supported=\$$cacheid
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15295 printf "%s\n" "$supported" >&6; }
15296 if test "$supported" = "yes" ; then
15297 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15298 found="yes"
15299 fi
15300 fi
15301
15302
15303
15304 # These are currently disabled because they are noisy. They will be enabled
15305 # in the future once the codebase is sufficiently modernized to silence
15306 # them. For now, I don't want them to drown out the other warnings.
15307 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15308 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15309 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15310
15311 # Turn some warnings into errors, so we don't accidentally get successful builds
15312 # when there are problems that should be fixed.
15313
15314 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328 xorg_testset_save_CFLAGS="$CFLAGS"
15329
15330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15333 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15334 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15335 then :
15336 printf %s "(cached) " >&6
15337 else $as_nop
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 int i;
15341 _ACEOF
15342 if ac_fn_c_try_compile "$LINENO"
15343 then :
15344 xorg_cv_cc_flag_unknown_warning_option=yes
15345 else $as_nop
15346 xorg_cv_cc_flag_unknown_warning_option=no
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15349 fi
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15351 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15353 CFLAGS="$xorg_testset_save_CFLAGS"
15354 fi
15355
15356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15359 fi
15360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15362 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15363 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15364 then :
15365 printf %s "(cached) " >&6
15366 else $as_nop
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369 int i;
15370 _ACEOF
15371 if ac_fn_c_try_compile "$LINENO"
15372 then :
15373 xorg_cv_cc_flag_unused_command_line_argument=yes
15374 else $as_nop
15375 xorg_cv_cc_flag_unused_command_line_argument=no
15376 fi
15377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15378 fi
15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15380 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15382 CFLAGS="$xorg_testset_save_CFLAGS"
15383 fi
15384
15385 found="no"
15386
15387 if test $found = "no" ; then
15388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15390 fi
15391
15392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15394 fi
15395
15396 CFLAGS="$CFLAGS -Werror=implicit"
15397
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15399 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15400 cacheid=xorg_cv_cc_flag__Werror_implicit
15401 if eval test \${$cacheid+y}
15402 then :
15403 printf %s "(cached) " >&6
15404 else $as_nop
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 int i;
15408 int
15409 main (void)
15410 {
15411
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_link "$LINENO"
15417 then :
15418 eval $cacheid=yes
15419 else $as_nop
15420 eval $cacheid=no
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15423 conftest$ac_exeext conftest.$ac_ext
15424 fi
15425
15426
15427 CFLAGS="$xorg_testset_save_CFLAGS"
15428
15429 eval supported=\$$cacheid
15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15431 printf "%s\n" "$supported" >&6; }
15432 if test "$supported" = "yes" ; then
15433 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15434 found="yes"
15435 fi
15436 fi
15437
15438 if test $found = "no" ; then
15439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441 fi
15442
15443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445 fi
15446
15447 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15448
15449 { 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
15450 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15451 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15452 if eval test \${$cacheid+y}
15453 then :
15454 printf %s "(cached) " >&6
15455 else $as_nop
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 int i;
15459 int
15460 main (void)
15461 {
15462
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"
15468 then :
15469 eval $cacheid=yes
15470 else $as_nop
15471 eval $cacheid=no
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15474 conftest$ac_exeext conftest.$ac_ext
15475 fi
15476
15477
15478 CFLAGS="$xorg_testset_save_CFLAGS"
15479
15480 eval supported=\$$cacheid
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15482 printf "%s\n" "$supported" >&6; }
15483 if test "$supported" = "yes" ; then
15484 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15485 found="yes"
15486 fi
15487 fi
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503 xorg_testset_save_CFLAGS="$CFLAGS"
15504
15505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15508 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15509 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15510 then :
15511 printf %s "(cached) " >&6
15512 else $as_nop
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 int i;
15516 _ACEOF
15517 if ac_fn_c_try_compile "$LINENO"
15518 then :
15519 xorg_cv_cc_flag_unknown_warning_option=yes
15520 else $as_nop
15521 xorg_cv_cc_flag_unknown_warning_option=no
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15524 fi
15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15526 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15528 CFLAGS="$xorg_testset_save_CFLAGS"
15529 fi
15530
15531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15534 fi
15535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15537 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15538 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15539 then :
15540 printf %s "(cached) " >&6
15541 else $as_nop
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 int i;
15545 _ACEOF
15546 if ac_fn_c_try_compile "$LINENO"
15547 then :
15548 xorg_cv_cc_flag_unused_command_line_argument=yes
15549 else $as_nop
15550 xorg_cv_cc_flag_unused_command_line_argument=no
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 fi
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15557 CFLAGS="$xorg_testset_save_CFLAGS"
15558 fi
15559
15560 found="no"
15561
15562 if test $found = "no" ; then
15563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565 fi
15566
15567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15569 fi
15570
15571 CFLAGS="$CFLAGS -Werror=nonnull"
15572
15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15574 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15575 cacheid=xorg_cv_cc_flag__Werror_nonnull
15576 if eval test \${$cacheid+y}
15577 then :
15578 printf %s "(cached) " >&6
15579 else $as_nop
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582 int i;
15583 int
15584 main (void)
15585 {
15586
15587 ;
15588 return 0;
15589 }
15590 _ACEOF
15591 if ac_fn_c_try_link "$LINENO"
15592 then :
15593 eval $cacheid=yes
15594 else $as_nop
15595 eval $cacheid=no
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15598 conftest$ac_exeext conftest.$ac_ext
15599 fi
15600
15601
15602 CFLAGS="$xorg_testset_save_CFLAGS"
15603
15604 eval supported=\$$cacheid
15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15606 printf "%s\n" "$supported" >&6; }
15607 if test "$supported" = "yes" ; then
15608 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15609 found="yes"
15610 fi
15611 fi
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627 xorg_testset_save_CFLAGS="$CFLAGS"
15628
15629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15632 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15633 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15634 then :
15635 printf %s "(cached) " >&6
15636 else $as_nop
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 int i;
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"
15642 then :
15643 xorg_cv_cc_flag_unknown_warning_option=yes
15644 else $as_nop
15645 xorg_cv_cc_flag_unknown_warning_option=no
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15648 fi
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652 CFLAGS="$xorg_testset_save_CFLAGS"
15653 fi
15654
15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 fi
15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15663 then :
15664 printf %s "(cached) " >&6
15665 else $as_nop
15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668 int i;
15669 _ACEOF
15670 if ac_fn_c_try_compile "$LINENO"
15671 then :
15672 xorg_cv_cc_flag_unused_command_line_argument=yes
15673 else $as_nop
15674 xorg_cv_cc_flag_unused_command_line_argument=no
15675 fi
15676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15677 fi
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15681 CFLAGS="$xorg_testset_save_CFLAGS"
15682 fi
15683
15684 found="no"
15685
15686 if test $found = "no" ; then
15687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689 fi
15690
15691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15693 fi
15694
15695 CFLAGS="$CFLAGS -Werror=init-self"
15696
15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15698 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15699 cacheid=xorg_cv_cc_flag__Werror_init_self
15700 if eval test \${$cacheid+y}
15701 then :
15702 printf %s "(cached) " >&6
15703 else $as_nop
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 int i;
15707 int
15708 main (void)
15709 {
15710
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 if ac_fn_c_try_link "$LINENO"
15716 then :
15717 eval $cacheid=yes
15718 else $as_nop
15719 eval $cacheid=no
15720 fi
15721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15722 conftest$ac_exeext conftest.$ac_ext
15723 fi
15724
15725
15726 CFLAGS="$xorg_testset_save_CFLAGS"
15727
15728 eval supported=\$$cacheid
15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15730 printf "%s\n" "$supported" >&6; }
15731 if test "$supported" = "yes" ; then
15732 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15733 found="yes"
15734 fi
15735 fi
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751 xorg_testset_save_CFLAGS="$CFLAGS"
15752
15753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15756 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15757 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15758 then :
15759 printf %s "(cached) " >&6
15760 else $as_nop
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 int i;
15764 _ACEOF
15765 if ac_fn_c_try_compile "$LINENO"
15766 then :
15767 xorg_cv_cc_flag_unknown_warning_option=yes
15768 else $as_nop
15769 xorg_cv_cc_flag_unknown_warning_option=no
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15772 fi
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15774 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15776 CFLAGS="$xorg_testset_save_CFLAGS"
15777 fi
15778
15779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782 fi
15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15785 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15786 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15787 then :
15788 printf %s "(cached) " >&6
15789 else $as_nop
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792 int i;
15793 _ACEOF
15794 if ac_fn_c_try_compile "$LINENO"
15795 then :
15796 xorg_cv_cc_flag_unused_command_line_argument=yes
15797 else $as_nop
15798 xorg_cv_cc_flag_unused_command_line_argument=no
15799 fi
15800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15801 fi
15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15803 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15805 CFLAGS="$xorg_testset_save_CFLAGS"
15806 fi
15807
15808 found="no"
15809
15810 if test $found = "no" ; then
15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 fi
15814
15815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817 fi
15818
15819 CFLAGS="$CFLAGS -Werror=main"
15820
15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15822 printf %s "checking if $CC supports -Werror=main... " >&6; }
15823 cacheid=xorg_cv_cc_flag__Werror_main
15824 if eval test \${$cacheid+y}
15825 then :
15826 printf %s "(cached) " >&6
15827 else $as_nop
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 int i;
15831 int
15832 main (void)
15833 {
15834
15835 ;
15836 return 0;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_link "$LINENO"
15840 then :
15841 eval $cacheid=yes
15842 else $as_nop
15843 eval $cacheid=no
15844 fi
15845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15846 conftest$ac_exeext conftest.$ac_ext
15847 fi
15848
15849
15850 CFLAGS="$xorg_testset_save_CFLAGS"
15851
15852 eval supported=\$$cacheid
15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15854 printf "%s\n" "$supported" >&6; }
15855 if test "$supported" = "yes" ; then
15856 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15857 found="yes"
15858 fi
15859 fi
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875 xorg_testset_save_CFLAGS="$CFLAGS"
15876
15877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15880 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15881 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15882 then :
15883 printf %s "(cached) " >&6
15884 else $as_nop
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15887 int i;
15888 _ACEOF
15889 if ac_fn_c_try_compile "$LINENO"
15890 then :
15891 xorg_cv_cc_flag_unknown_warning_option=yes
15892 else $as_nop
15893 xorg_cv_cc_flag_unknown_warning_option=no
15894 fi
15895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15896 fi
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15898 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15900 CFLAGS="$xorg_testset_save_CFLAGS"
15901 fi
15902
15903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906 fi
15907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15909 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15910 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15911 then :
15912 printf %s "(cached) " >&6
15913 else $as_nop
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 int i;
15917 _ACEOF
15918 if ac_fn_c_try_compile "$LINENO"
15919 then :
15920 xorg_cv_cc_flag_unused_command_line_argument=yes
15921 else $as_nop
15922 xorg_cv_cc_flag_unused_command_line_argument=no
15923 fi
15924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15925 fi
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15929 CFLAGS="$xorg_testset_save_CFLAGS"
15930 fi
15931
15932 found="no"
15933
15934 if test $found = "no" ; then
15935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937 fi
15938
15939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15941 fi
15942
15943 CFLAGS="$CFLAGS -Werror=missing-braces"
15944
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15946 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15947 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15948 if eval test \${$cacheid+y}
15949 then :
15950 printf %s "(cached) " >&6
15951 else $as_nop
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 int i;
15955 int
15956 main (void)
15957 {
15958
15959 ;
15960 return 0;
15961 }
15962 _ACEOF
15963 if ac_fn_c_try_link "$LINENO"
15964 then :
15965 eval $cacheid=yes
15966 else $as_nop
15967 eval $cacheid=no
15968 fi
15969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15970 conftest$ac_exeext conftest.$ac_ext
15971 fi
15972
15973
15974 CFLAGS="$xorg_testset_save_CFLAGS"
15975
15976 eval supported=\$$cacheid
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15978 printf "%s\n" "$supported" >&6; }
15979 if test "$supported" = "yes" ; then
15980 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15981 found="yes"
15982 fi
15983 fi
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999 xorg_testset_save_CFLAGS="$CFLAGS"
16000
16001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16004 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16005 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16006 then :
16007 printf %s "(cached) " >&6
16008 else $as_nop
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 int i;
16012 _ACEOF
16013 if ac_fn_c_try_compile "$LINENO"
16014 then :
16015 xorg_cv_cc_flag_unknown_warning_option=yes
16016 else $as_nop
16017 xorg_cv_cc_flag_unknown_warning_option=no
16018 fi
16019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16020 fi
16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16022 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16024 CFLAGS="$xorg_testset_save_CFLAGS"
16025 fi
16026
16027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16030 fi
16031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16033 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16034 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16035 then :
16036 printf %s "(cached) " >&6
16037 else $as_nop
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 int i;
16041 _ACEOF
16042 if ac_fn_c_try_compile "$LINENO"
16043 then :
16044 xorg_cv_cc_flag_unused_command_line_argument=yes
16045 else $as_nop
16046 xorg_cv_cc_flag_unused_command_line_argument=no
16047 fi
16048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16049 fi
16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16051 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16053 CFLAGS="$xorg_testset_save_CFLAGS"
16054 fi
16055
16056 found="no"
16057
16058 if test $found = "no" ; then
16059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061 fi
16062
16063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16065 fi
16066
16067 CFLAGS="$CFLAGS -Werror=sequence-point"
16068
16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16070 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16071 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16072 if eval test \${$cacheid+y}
16073 then :
16074 printf %s "(cached) " >&6
16075 else $as_nop
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078 int i;
16079 int
16080 main (void)
16081 {
16082
16083 ;
16084 return 0;
16085 }
16086 _ACEOF
16087 if ac_fn_c_try_link "$LINENO"
16088 then :
16089 eval $cacheid=yes
16090 else $as_nop
16091 eval $cacheid=no
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16094 conftest$ac_exeext conftest.$ac_ext
16095 fi
16096
16097
16098 CFLAGS="$xorg_testset_save_CFLAGS"
16099
16100 eval supported=\$$cacheid
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16102 printf "%s\n" "$supported" >&6; }
16103 if test "$supported" = "yes" ; then
16104 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16105 found="yes"
16106 fi
16107 fi
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123 xorg_testset_save_CFLAGS="$CFLAGS"
16124
16125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16128 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16129 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16130 then :
16131 printf %s "(cached) " >&6
16132 else $as_nop
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16135 int i;
16136 _ACEOF
16137 if ac_fn_c_try_compile "$LINENO"
16138 then :
16139 xorg_cv_cc_flag_unknown_warning_option=yes
16140 else $as_nop
16141 xorg_cv_cc_flag_unknown_warning_option=no
16142 fi
16143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16144 fi
16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16148 CFLAGS="$xorg_testset_save_CFLAGS"
16149 fi
16150
16151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16154 fi
16155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16159 then :
16160 printf %s "(cached) " >&6
16161 else $as_nop
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 int i;
16165 _ACEOF
16166 if ac_fn_c_try_compile "$LINENO"
16167 then :
16168 xorg_cv_cc_flag_unused_command_line_argument=yes
16169 else $as_nop
16170 xorg_cv_cc_flag_unused_command_line_argument=no
16171 fi
16172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16173 fi
16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16177 CFLAGS="$xorg_testset_save_CFLAGS"
16178 fi
16179
16180 found="no"
16181
16182 if test $found = "no" ; then
16183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16185 fi
16186
16187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16189 fi
16190
16191 CFLAGS="$CFLAGS -Werror=return-type"
16192
16193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16194 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16195 cacheid=xorg_cv_cc_flag__Werror_return_type
16196 if eval test \${$cacheid+y}
16197 then :
16198 printf %s "(cached) " >&6
16199 else $as_nop
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16202 int i;
16203 int
16204 main (void)
16205 {
16206
16207 ;
16208 return 0;
16209 }
16210 _ACEOF
16211 if ac_fn_c_try_link "$LINENO"
16212 then :
16213 eval $cacheid=yes
16214 else $as_nop
16215 eval $cacheid=no
16216 fi
16217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16218 conftest$ac_exeext conftest.$ac_ext
16219 fi
16220
16221
16222 CFLAGS="$xorg_testset_save_CFLAGS"
16223
16224 eval supported=\$$cacheid
16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16226 printf "%s\n" "$supported" >&6; }
16227 if test "$supported" = "yes" ; then
16228 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16229 found="yes"
16230 fi
16231 fi
16232
16233 if test $found = "no" ; then
16234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16236 fi
16237
16238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16240 fi
16241
16242 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16243
16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16245 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16246 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16247 if eval test \${$cacheid+y}
16248 then :
16249 printf %s "(cached) " >&6
16250 else $as_nop
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 int i;
16254 int
16255 main (void)
16256 {
16257
16258 ;
16259 return 0;
16260 }
16261 _ACEOF
16262 if ac_fn_c_try_link "$LINENO"
16263 then :
16264 eval $cacheid=yes
16265 else $as_nop
16266 eval $cacheid=no
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16269 conftest$ac_exeext conftest.$ac_ext
16270 fi
16271
16272
16273 CFLAGS="$xorg_testset_save_CFLAGS"
16274
16275 eval supported=\$$cacheid
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16277 printf "%s\n" "$supported" >&6; }
16278 if test "$supported" = "yes" ; then
16279 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16280 found="yes"
16281 fi
16282 fi
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298 xorg_testset_save_CFLAGS="$CFLAGS"
16299
16300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16303 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16304 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16305 then :
16306 printf %s "(cached) " >&6
16307 else $as_nop
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 int i;
16311 _ACEOF
16312 if ac_fn_c_try_compile "$LINENO"
16313 then :
16314 xorg_cv_cc_flag_unknown_warning_option=yes
16315 else $as_nop
16316 xorg_cv_cc_flag_unknown_warning_option=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16319 fi
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16323 CFLAGS="$xorg_testset_save_CFLAGS"
16324 fi
16325
16326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16329 fi
16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16334 then :
16335 printf %s "(cached) " >&6
16336 else $as_nop
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 int i;
16340 _ACEOF
16341 if ac_fn_c_try_compile "$LINENO"
16342 then :
16343 xorg_cv_cc_flag_unused_command_line_argument=yes
16344 else $as_nop
16345 xorg_cv_cc_flag_unused_command_line_argument=no
16346 fi
16347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16348 fi
16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16350 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16352 CFLAGS="$xorg_testset_save_CFLAGS"
16353 fi
16354
16355 found="no"
16356
16357 if test $found = "no" ; then
16358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360 fi
16361
16362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16364 fi
16365
16366 CFLAGS="$CFLAGS -Werror=trigraphs"
16367
16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16369 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16370 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16371 if eval test \${$cacheid+y}
16372 then :
16373 printf %s "(cached) " >&6
16374 else $as_nop
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377 int i;
16378 int
16379 main (void)
16380 {
16381
16382 ;
16383 return 0;
16384 }
16385 _ACEOF
16386 if ac_fn_c_try_link "$LINENO"
16387 then :
16388 eval $cacheid=yes
16389 else $as_nop
16390 eval $cacheid=no
16391 fi
16392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16393 conftest$ac_exeext conftest.$ac_ext
16394 fi
16395
16396
16397 CFLAGS="$xorg_testset_save_CFLAGS"
16398
16399 eval supported=\$$cacheid
16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16401 printf "%s\n" "$supported" >&6; }
16402 if test "$supported" = "yes" ; then
16403 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16404 found="yes"
16405 fi
16406 fi
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422 xorg_testset_save_CFLAGS="$CFLAGS"
16423
16424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16427 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16428 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16429 then :
16430 printf %s "(cached) " >&6
16431 else $as_nop
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 int i;
16435 _ACEOF
16436 if ac_fn_c_try_compile "$LINENO"
16437 then :
16438 xorg_cv_cc_flag_unknown_warning_option=yes
16439 else $as_nop
16440 xorg_cv_cc_flag_unknown_warning_option=no
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16443 fi
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16445 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16447 CFLAGS="$xorg_testset_save_CFLAGS"
16448 fi
16449
16450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453 fi
16454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16456 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16457 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16458 then :
16459 printf %s "(cached) " >&6
16460 else $as_nop
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463 int i;
16464 _ACEOF
16465 if ac_fn_c_try_compile "$LINENO"
16466 then :
16467 xorg_cv_cc_flag_unused_command_line_argument=yes
16468 else $as_nop
16469 xorg_cv_cc_flag_unused_command_line_argument=no
16470 fi
16471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16472 fi
16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16474 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16476 CFLAGS="$xorg_testset_save_CFLAGS"
16477 fi
16478
16479 found="no"
16480
16481 if test $found = "no" ; then
16482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484 fi
16485
16486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16488 fi
16489
16490 CFLAGS="$CFLAGS -Werror=array-bounds"
16491
16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16493 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16494 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16495 if eval test \${$cacheid+y}
16496 then :
16497 printf %s "(cached) " >&6
16498 else $as_nop
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 int i;
16502 int
16503 main (void)
16504 {
16505
16506 ;
16507 return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"
16511 then :
16512 eval $cacheid=yes
16513 else $as_nop
16514 eval $cacheid=no
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16517 conftest$ac_exeext conftest.$ac_ext
16518 fi
16519
16520
16521 CFLAGS="$xorg_testset_save_CFLAGS"
16522
16523 eval supported=\$$cacheid
16524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16525 printf "%s\n" "$supported" >&6; }
16526 if test "$supported" = "yes" ; then
16527 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16528 found="yes"
16529 fi
16530 fi
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546 xorg_testset_save_CFLAGS="$CFLAGS"
16547
16548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16551 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16552 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16553 then :
16554 printf %s "(cached) " >&6
16555 else $as_nop
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 int i;
16559 _ACEOF
16560 if ac_fn_c_try_compile "$LINENO"
16561 then :
16562 xorg_cv_cc_flag_unknown_warning_option=yes
16563 else $as_nop
16564 xorg_cv_cc_flag_unknown_warning_option=no
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16567 fi
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16569 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16571 CFLAGS="$xorg_testset_save_CFLAGS"
16572 fi
16573
16574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16577 fi
16578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16580 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16581 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16582 then :
16583 printf %s "(cached) " >&6
16584 else $as_nop
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587 int i;
16588 _ACEOF
16589 if ac_fn_c_try_compile "$LINENO"
16590 then :
16591 xorg_cv_cc_flag_unused_command_line_argument=yes
16592 else $as_nop
16593 xorg_cv_cc_flag_unused_command_line_argument=no
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16596 fi
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16598 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16600 CFLAGS="$xorg_testset_save_CFLAGS"
16601 fi
16602
16603 found="no"
16604
16605 if test $found = "no" ; then
16606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608 fi
16609
16610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16612 fi
16613
16614 CFLAGS="$CFLAGS -Werror=write-strings"
16615
16616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16617 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16618 cacheid=xorg_cv_cc_flag__Werror_write_strings
16619 if eval test \${$cacheid+y}
16620 then :
16621 printf %s "(cached) " >&6
16622 else $as_nop
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16625 int i;
16626 int
16627 main (void)
16628 {
16629
16630 ;
16631 return 0;
16632 }
16633 _ACEOF
16634 if ac_fn_c_try_link "$LINENO"
16635 then :
16636 eval $cacheid=yes
16637 else $as_nop
16638 eval $cacheid=no
16639 fi
16640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16641 conftest$ac_exeext conftest.$ac_ext
16642 fi
16643
16644
16645 CFLAGS="$xorg_testset_save_CFLAGS"
16646
16647 eval supported=\$$cacheid
16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16649 printf "%s\n" "$supported" >&6; }
16650 if test "$supported" = "yes" ; then
16651 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16652 found="yes"
16653 fi
16654 fi
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670 xorg_testset_save_CFLAGS="$CFLAGS"
16671
16672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16675 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16676 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16677 then :
16678 printf %s "(cached) " >&6
16679 else $as_nop
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 int i;
16683 _ACEOF
16684 if ac_fn_c_try_compile "$LINENO"
16685 then :
16686 xorg_cv_cc_flag_unknown_warning_option=yes
16687 else $as_nop
16688 xorg_cv_cc_flag_unknown_warning_option=no
16689 fi
16690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16691 fi
16692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16693 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16695 CFLAGS="$xorg_testset_save_CFLAGS"
16696 fi
16697
16698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16701 fi
16702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16704 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16705 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16706 then :
16707 printf %s "(cached) " >&6
16708 else $as_nop
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 int i;
16712 _ACEOF
16713 if ac_fn_c_try_compile "$LINENO"
16714 then :
16715 xorg_cv_cc_flag_unused_command_line_argument=yes
16716 else $as_nop
16717 xorg_cv_cc_flag_unused_command_line_argument=no
16718 fi
16719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16720 fi
16721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16722 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16724 CFLAGS="$xorg_testset_save_CFLAGS"
16725 fi
16726
16727 found="no"
16728
16729 if test $found = "no" ; then
16730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732 fi
16733
16734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16736 fi
16737
16738 CFLAGS="$CFLAGS -Werror=address"
16739
16740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16741 printf %s "checking if $CC supports -Werror=address... " >&6; }
16742 cacheid=xorg_cv_cc_flag__Werror_address
16743 if eval test \${$cacheid+y}
16744 then :
16745 printf %s "(cached) " >&6
16746 else $as_nop
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 int i;
16750 int
16751 main (void)
16752 {
16753
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 if ac_fn_c_try_link "$LINENO"
16759 then :
16760 eval $cacheid=yes
16761 else $as_nop
16762 eval $cacheid=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16765 conftest$ac_exeext conftest.$ac_ext
16766 fi
16767
16768
16769 CFLAGS="$xorg_testset_save_CFLAGS"
16770
16771 eval supported=\$$cacheid
16772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16773 printf "%s\n" "$supported" >&6; }
16774 if test "$supported" = "yes" ; then
16775 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16776 found="yes"
16777 fi
16778 fi
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794 xorg_testset_save_CFLAGS="$CFLAGS"
16795
16796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16799 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16800 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16801 then :
16802 printf %s "(cached) " >&6
16803 else $as_nop
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806 int i;
16807 _ACEOF
16808 if ac_fn_c_try_compile "$LINENO"
16809 then :
16810 xorg_cv_cc_flag_unknown_warning_option=yes
16811 else $as_nop
16812 xorg_cv_cc_flag_unknown_warning_option=no
16813 fi
16814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16815 fi
16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16817 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16819 CFLAGS="$xorg_testset_save_CFLAGS"
16820 fi
16821
16822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16825 fi
16826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16828 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16829 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16830 then :
16831 printf %s "(cached) " >&6
16832 else $as_nop
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 int i;
16836 _ACEOF
16837 if ac_fn_c_try_compile "$LINENO"
16838 then :
16839 xorg_cv_cc_flag_unused_command_line_argument=yes
16840 else $as_nop
16841 xorg_cv_cc_flag_unused_command_line_argument=no
16842 fi
16843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16844 fi
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16848 CFLAGS="$xorg_testset_save_CFLAGS"
16849 fi
16850
16851 found="no"
16852
16853 if test $found = "no" ; then
16854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856 fi
16857
16858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860 fi
16861
16862 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16863
16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16865 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16866 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16867 if eval test \${$cacheid+y}
16868 then :
16869 printf %s "(cached) " >&6
16870 else $as_nop
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16873 int i;
16874 int
16875 main (void)
16876 {
16877
16878 ;
16879 return 0;
16880 }
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"
16883 then :
16884 eval $cacheid=yes
16885 else $as_nop
16886 eval $cacheid=no
16887 fi
16888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16889 conftest$ac_exeext conftest.$ac_ext
16890 fi
16891
16892
16893 CFLAGS="$xorg_testset_save_CFLAGS"
16894
16895 eval supported=\$$cacheid
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16897 printf "%s\n" "$supported" >&6; }
16898 if test "$supported" = "yes" ; then
16899 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16900 found="yes"
16901 fi
16902 fi
16903
16904 if test $found = "no" ; then
16905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16907 fi
16908
16909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16911 fi
16912
16913 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16914
16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16916 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16917 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16918 if eval test \${$cacheid+y}
16919 then :
16920 printf %s "(cached) " >&6
16921 else $as_nop
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16924 int i;
16925 int
16926 main (void)
16927 {
16928
16929 ;
16930 return 0;
16931 }
16932 _ACEOF
16933 if ac_fn_c_try_link "$LINENO"
16934 then :
16935 eval $cacheid=yes
16936 else $as_nop
16937 eval $cacheid=no
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16940 conftest$ac_exeext conftest.$ac_ext
16941 fi
16942
16943
16944 CFLAGS="$xorg_testset_save_CFLAGS"
16945
16946 eval supported=\$$cacheid
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16948 printf "%s\n" "$supported" >&6; }
16949 if test "$supported" = "yes" ; then
16950 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16951 found="yes"
16952 fi
16953 fi
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969 xorg_testset_save_CFLAGS="$CFLAGS"
16970
16971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16974 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16975 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16976 then :
16977 printf %s "(cached) " >&6
16978 else $as_nop
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981 int i;
16982 _ACEOF
16983 if ac_fn_c_try_compile "$LINENO"
16984 then :
16985 xorg_cv_cc_flag_unknown_warning_option=yes
16986 else $as_nop
16987 xorg_cv_cc_flag_unknown_warning_option=no
16988 fi
16989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16990 fi
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16992 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16994 CFLAGS="$xorg_testset_save_CFLAGS"
16995 fi
16996
16997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17000 fi
17001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17003 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17004 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17005 then :
17006 printf %s "(cached) " >&6
17007 else $as_nop
17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h. */
17010 int i;
17011 _ACEOF
17012 if ac_fn_c_try_compile "$LINENO"
17013 then :
17014 xorg_cv_cc_flag_unused_command_line_argument=yes
17015 else $as_nop
17016 xorg_cv_cc_flag_unused_command_line_argument=no
17017 fi
17018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17019 fi
17020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17021 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17023 CFLAGS="$xorg_testset_save_CFLAGS"
17024 fi
17025
17026 found="no"
17027
17028 if test $found = "no" ; then
17029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17031 fi
17032
17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17035 fi
17036
17037 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17038
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17040 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17041 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17042 if eval test \${$cacheid+y}
17043 then :
17044 printf %s "(cached) " >&6
17045 else $as_nop
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17048 int i;
17049 int
17050 main (void)
17051 {
17052
17053 ;
17054 return 0;
17055 }
17056 _ACEOF
17057 if ac_fn_c_try_link "$LINENO"
17058 then :
17059 eval $cacheid=yes
17060 else $as_nop
17061 eval $cacheid=no
17062 fi
17063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17064 conftest$ac_exeext conftest.$ac_ext
17065 fi
17066
17067
17068 CFLAGS="$xorg_testset_save_CFLAGS"
17069
17070 eval supported=\$$cacheid
17071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17072 printf "%s\n" "$supported" >&6; }
17073 if test "$supported" = "yes" ; then
17074 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17075 found="yes"
17076 fi
17077 fi
17078
17079 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17080 else
17081 { 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
17082 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;}
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096 xorg_testset_save_CFLAGS="$CFLAGS"
17097
17098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17102 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17103 then :
17104 printf %s "(cached) " >&6
17105 else $as_nop
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17108 int i;
17109 _ACEOF
17110 if ac_fn_c_try_compile "$LINENO"
17111 then :
17112 xorg_cv_cc_flag_unknown_warning_option=yes
17113 else $as_nop
17114 xorg_cv_cc_flag_unknown_warning_option=no
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17117 fi
17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17119 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17121 CFLAGS="$xorg_testset_save_CFLAGS"
17122 fi
17123
17124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17127 fi
17128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17130 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17131 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17132 then :
17133 printf %s "(cached) " >&6
17134 else $as_nop
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17137 int i;
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"
17140 then :
17141 xorg_cv_cc_flag_unused_command_line_argument=yes
17142 else $as_nop
17143 xorg_cv_cc_flag_unused_command_line_argument=no
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17146 fi
17147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17150 CFLAGS="$xorg_testset_save_CFLAGS"
17151 fi
17152
17153 found="no"
17154
17155 if test $found = "no" ; then
17156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158 fi
17159
17160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17162 fi
17163
17164 CFLAGS="$CFLAGS -Wimplicit"
17165
17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17167 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17168 cacheid=xorg_cv_cc_flag__Wimplicit
17169 if eval test \${$cacheid+y}
17170 then :
17171 printf %s "(cached) " >&6
17172 else $as_nop
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 int i;
17176 int
17177 main (void)
17178 {
17179
17180 ;
17181 return 0;
17182 }
17183 _ACEOF
17184 if ac_fn_c_try_link "$LINENO"
17185 then :
17186 eval $cacheid=yes
17187 else $as_nop
17188 eval $cacheid=no
17189 fi
17190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17191 conftest$ac_exeext conftest.$ac_ext
17192 fi
17193
17194
17195 CFLAGS="$xorg_testset_save_CFLAGS"
17196
17197 eval supported=\$$cacheid
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17199 printf "%s\n" "$supported" >&6; }
17200 if test "$supported" = "yes" ; then
17201 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17202 found="yes"
17203 fi
17204 fi
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220 xorg_testset_save_CFLAGS="$CFLAGS"
17221
17222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17226 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17227 then :
17228 printf %s "(cached) " >&6
17229 else $as_nop
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17232 int i;
17233 _ACEOF
17234 if ac_fn_c_try_compile "$LINENO"
17235 then :
17236 xorg_cv_cc_flag_unknown_warning_option=yes
17237 else $as_nop
17238 xorg_cv_cc_flag_unknown_warning_option=no
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17241 fi
17242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17245 CFLAGS="$xorg_testset_save_CFLAGS"
17246 fi
17247
17248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251 fi
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17256 then :
17257 printf %s "(cached) " >&6
17258 else $as_nop
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261 int i;
17262 _ACEOF
17263 if ac_fn_c_try_compile "$LINENO"
17264 then :
17265 xorg_cv_cc_flag_unused_command_line_argument=yes
17266 else $as_nop
17267 xorg_cv_cc_flag_unused_command_line_argument=no
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17270 fi
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17274 CFLAGS="$xorg_testset_save_CFLAGS"
17275 fi
17276
17277 found="no"
17278
17279 if test $found = "no" ; then
17280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17282 fi
17283
17284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17286 fi
17287
17288 CFLAGS="$CFLAGS -Wnonnull"
17289
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17291 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17292 cacheid=xorg_cv_cc_flag__Wnonnull
17293 if eval test \${$cacheid+y}
17294 then :
17295 printf %s "(cached) " >&6
17296 else $as_nop
17297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h. */
17299 int i;
17300 int
17301 main (void)
17302 {
17303
17304 ;
17305 return 0;
17306 }
17307 _ACEOF
17308 if ac_fn_c_try_link "$LINENO"
17309 then :
17310 eval $cacheid=yes
17311 else $as_nop
17312 eval $cacheid=no
17313 fi
17314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17315 conftest$ac_exeext conftest.$ac_ext
17316 fi
17317
17318
17319 CFLAGS="$xorg_testset_save_CFLAGS"
17320
17321 eval supported=\$$cacheid
17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17323 printf "%s\n" "$supported" >&6; }
17324 if test "$supported" = "yes" ; then
17325 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17326 found="yes"
17327 fi
17328 fi
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344 xorg_testset_save_CFLAGS="$CFLAGS"
17345
17346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17350 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17351 then :
17352 printf %s "(cached) " >&6
17353 else $as_nop
17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 int i;
17357 _ACEOF
17358 if ac_fn_c_try_compile "$LINENO"
17359 then :
17360 xorg_cv_cc_flag_unknown_warning_option=yes
17361 else $as_nop
17362 xorg_cv_cc_flag_unknown_warning_option=no
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17365 fi
17366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17369 CFLAGS="$xorg_testset_save_CFLAGS"
17370 fi
17371
17372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17375 fi
17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17380 then :
17381 printf %s "(cached) " >&6
17382 else $as_nop
17383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384 /* end confdefs.h. */
17385 int i;
17386 _ACEOF
17387 if ac_fn_c_try_compile "$LINENO"
17388 then :
17389 xorg_cv_cc_flag_unused_command_line_argument=yes
17390 else $as_nop
17391 xorg_cv_cc_flag_unused_command_line_argument=no
17392 fi
17393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17394 fi
17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17396 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17398 CFLAGS="$xorg_testset_save_CFLAGS"
17399 fi
17400
17401 found="no"
17402
17403 if test $found = "no" ; then
17404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17406 fi
17407
17408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17410 fi
17411
17412 CFLAGS="$CFLAGS -Winit-self"
17413
17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17415 printf %s "checking if $CC supports -Winit-self... " >&6; }
17416 cacheid=xorg_cv_cc_flag__Winit_self
17417 if eval test \${$cacheid+y}
17418 then :
17419 printf %s "(cached) " >&6
17420 else $as_nop
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423 int i;
17424 int
17425 main (void)
17426 {
17427
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 if ac_fn_c_try_link "$LINENO"
17433 then :
17434 eval $cacheid=yes
17435 else $as_nop
17436 eval $cacheid=no
17437 fi
17438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17439 conftest$ac_exeext conftest.$ac_ext
17440 fi
17441
17442
17443 CFLAGS="$xorg_testset_save_CFLAGS"
17444
17445 eval supported=\$$cacheid
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17447 printf "%s\n" "$supported" >&6; }
17448 if test "$supported" = "yes" ; then
17449 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17450 found="yes"
17451 fi
17452 fi
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468 xorg_testset_save_CFLAGS="$CFLAGS"
17469
17470 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17473 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17474 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17475 then :
17476 printf %s "(cached) " >&6
17477 else $as_nop
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 int i;
17481 _ACEOF
17482 if ac_fn_c_try_compile "$LINENO"
17483 then :
17484 xorg_cv_cc_flag_unknown_warning_option=yes
17485 else $as_nop
17486 xorg_cv_cc_flag_unknown_warning_option=no
17487 fi
17488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17489 fi
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17491 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17493 CFLAGS="$xorg_testset_save_CFLAGS"
17494 fi
17495
17496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499 fi
17500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17504 then :
17505 printf %s "(cached) " >&6
17506 else $as_nop
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 int i;
17510 _ACEOF
17511 if ac_fn_c_try_compile "$LINENO"
17512 then :
17513 xorg_cv_cc_flag_unused_command_line_argument=yes
17514 else $as_nop
17515 xorg_cv_cc_flag_unused_command_line_argument=no
17516 fi
17517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17518 fi
17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17520 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17522 CFLAGS="$xorg_testset_save_CFLAGS"
17523 fi
17524
17525 found="no"
17526
17527 if test $found = "no" ; then
17528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17530 fi
17531
17532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17534 fi
17535
17536 CFLAGS="$CFLAGS -Wmain"
17537
17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17539 printf %s "checking if $CC supports -Wmain... " >&6; }
17540 cacheid=xorg_cv_cc_flag__Wmain
17541 if eval test \${$cacheid+y}
17542 then :
17543 printf %s "(cached) " >&6
17544 else $as_nop
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 int i;
17548 int
17549 main (void)
17550 {
17551
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 if ac_fn_c_try_link "$LINENO"
17557 then :
17558 eval $cacheid=yes
17559 else $as_nop
17560 eval $cacheid=no
17561 fi
17562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17563 conftest$ac_exeext conftest.$ac_ext
17564 fi
17565
17566
17567 CFLAGS="$xorg_testset_save_CFLAGS"
17568
17569 eval supported=\$$cacheid
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17571 printf "%s\n" "$supported" >&6; }
17572 if test "$supported" = "yes" ; then
17573 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17574 found="yes"
17575 fi
17576 fi
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592 xorg_testset_save_CFLAGS="$CFLAGS"
17593
17594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17597 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17598 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17599 then :
17600 printf %s "(cached) " >&6
17601 else $as_nop
17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h. */
17604 int i;
17605 _ACEOF
17606 if ac_fn_c_try_compile "$LINENO"
17607 then :
17608 xorg_cv_cc_flag_unknown_warning_option=yes
17609 else $as_nop
17610 xorg_cv_cc_flag_unknown_warning_option=no
17611 fi
17612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17613 fi
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17615 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17617 CFLAGS="$xorg_testset_save_CFLAGS"
17618 fi
17619
17620 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17623 fi
17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17626 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17627 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17628 then :
17629 printf %s "(cached) " >&6
17630 else $as_nop
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633 int i;
17634 _ACEOF
17635 if ac_fn_c_try_compile "$LINENO"
17636 then :
17637 xorg_cv_cc_flag_unused_command_line_argument=yes
17638 else $as_nop
17639 xorg_cv_cc_flag_unused_command_line_argument=no
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17642 fi
17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17644 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17646 CFLAGS="$xorg_testset_save_CFLAGS"
17647 fi
17648
17649 found="no"
17650
17651 if test $found = "no" ; then
17652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17654 fi
17655
17656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17658 fi
17659
17660 CFLAGS="$CFLAGS -Wmissing-braces"
17661
17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17663 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17664 cacheid=xorg_cv_cc_flag__Wmissing_braces
17665 if eval test \${$cacheid+y}
17666 then :
17667 printf %s "(cached) " >&6
17668 else $as_nop
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671 int i;
17672 int
17673 main (void)
17674 {
17675
17676 ;
17677 return 0;
17678 }
17679 _ACEOF
17680 if ac_fn_c_try_link "$LINENO"
17681 then :
17682 eval $cacheid=yes
17683 else $as_nop
17684 eval $cacheid=no
17685 fi
17686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17687 conftest$ac_exeext conftest.$ac_ext
17688 fi
17689
17690
17691 CFLAGS="$xorg_testset_save_CFLAGS"
17692
17693 eval supported=\$$cacheid
17694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17695 printf "%s\n" "$supported" >&6; }
17696 if test "$supported" = "yes" ; then
17697 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17698 found="yes"
17699 fi
17700 fi
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716 xorg_testset_save_CFLAGS="$CFLAGS"
17717
17718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17722 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17723 then :
17724 printf %s "(cached) " >&6
17725 else $as_nop
17726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727 /* end confdefs.h. */
17728 int i;
17729 _ACEOF
17730 if ac_fn_c_try_compile "$LINENO"
17731 then :
17732 xorg_cv_cc_flag_unknown_warning_option=yes
17733 else $as_nop
17734 xorg_cv_cc_flag_unknown_warning_option=no
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17737 fi
17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17741 CFLAGS="$xorg_testset_save_CFLAGS"
17742 fi
17743
17744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17747 fi
17748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17752 then :
17753 printf %s "(cached) " >&6
17754 else $as_nop
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h. */
17757 int i;
17758 _ACEOF
17759 if ac_fn_c_try_compile "$LINENO"
17760 then :
17761 xorg_cv_cc_flag_unused_command_line_argument=yes
17762 else $as_nop
17763 xorg_cv_cc_flag_unused_command_line_argument=no
17764 fi
17765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17766 fi
17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17768 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17770 CFLAGS="$xorg_testset_save_CFLAGS"
17771 fi
17772
17773 found="no"
17774
17775 if test $found = "no" ; then
17776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17778 fi
17779
17780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17782 fi
17783
17784 CFLAGS="$CFLAGS -Wsequence-point"
17785
17786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17787 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17788 cacheid=xorg_cv_cc_flag__Wsequence_point
17789 if eval test \${$cacheid+y}
17790 then :
17791 printf %s "(cached) " >&6
17792 else $as_nop
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795 int i;
17796 int
17797 main (void)
17798 {
17799
17800 ;
17801 return 0;
17802 }
17803 _ACEOF
17804 if ac_fn_c_try_link "$LINENO"
17805 then :
17806 eval $cacheid=yes
17807 else $as_nop
17808 eval $cacheid=no
17809 fi
17810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17811 conftest$ac_exeext conftest.$ac_ext
17812 fi
17813
17814
17815 CFLAGS="$xorg_testset_save_CFLAGS"
17816
17817 eval supported=\$$cacheid
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17819 printf "%s\n" "$supported" >&6; }
17820 if test "$supported" = "yes" ; then
17821 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17822 found="yes"
17823 fi
17824 fi
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840 xorg_testset_save_CFLAGS="$CFLAGS"
17841
17842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17845 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17846 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17847 then :
17848 printf %s "(cached) " >&6
17849 else $as_nop
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 int i;
17853 _ACEOF
17854 if ac_fn_c_try_compile "$LINENO"
17855 then :
17856 xorg_cv_cc_flag_unknown_warning_option=yes
17857 else $as_nop
17858 xorg_cv_cc_flag_unknown_warning_option=no
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17861 fi
17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17863 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17865 CFLAGS="$xorg_testset_save_CFLAGS"
17866 fi
17867
17868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17871 fi
17872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17874 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17875 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17876 then :
17877 printf %s "(cached) " >&6
17878 else $as_nop
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881 int i;
17882 _ACEOF
17883 if ac_fn_c_try_compile "$LINENO"
17884 then :
17885 xorg_cv_cc_flag_unused_command_line_argument=yes
17886 else $as_nop
17887 xorg_cv_cc_flag_unused_command_line_argument=no
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17890 fi
17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17892 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17894 CFLAGS="$xorg_testset_save_CFLAGS"
17895 fi
17896
17897 found="no"
17898
17899 if test $found = "no" ; then
17900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17902 fi
17903
17904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17906 fi
17907
17908 CFLAGS="$CFLAGS -Wreturn-type"
17909
17910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17911 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17912 cacheid=xorg_cv_cc_flag__Wreturn_type
17913 if eval test \${$cacheid+y}
17914 then :
17915 printf %s "(cached) " >&6
17916 else $as_nop
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919 int i;
17920 int
17921 main (void)
17922 {
17923
17924 ;
17925 return 0;
17926 }
17927 _ACEOF
17928 if ac_fn_c_try_link "$LINENO"
17929 then :
17930 eval $cacheid=yes
17931 else $as_nop
17932 eval $cacheid=no
17933 fi
17934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17935 conftest$ac_exeext conftest.$ac_ext
17936 fi
17937
17938
17939 CFLAGS="$xorg_testset_save_CFLAGS"
17940
17941 eval supported=\$$cacheid
17942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17943 printf "%s\n" "$supported" >&6; }
17944 if test "$supported" = "yes" ; then
17945 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17946 found="yes"
17947 fi
17948 fi
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964 xorg_testset_save_CFLAGS="$CFLAGS"
17965
17966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17969 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17970 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17971 then :
17972 printf %s "(cached) " >&6
17973 else $as_nop
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 int i;
17977 _ACEOF
17978 if ac_fn_c_try_compile "$LINENO"
17979 then :
17980 xorg_cv_cc_flag_unknown_warning_option=yes
17981 else $as_nop
17982 xorg_cv_cc_flag_unknown_warning_option=no
17983 fi
17984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17985 fi
17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17987 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17989 CFLAGS="$xorg_testset_save_CFLAGS"
17990 fi
17991
17992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17995 fi
17996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17998 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17999 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18000 then :
18001 printf %s "(cached) " >&6
18002 else $as_nop
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18005 int i;
18006 _ACEOF
18007 if ac_fn_c_try_compile "$LINENO"
18008 then :
18009 xorg_cv_cc_flag_unused_command_line_argument=yes
18010 else $as_nop
18011 xorg_cv_cc_flag_unused_command_line_argument=no
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18014 fi
18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18018 CFLAGS="$xorg_testset_save_CFLAGS"
18019 fi
18020
18021 found="no"
18022
18023 if test $found = "no" ; then
18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026 fi
18027
18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18030 fi
18031
18032 CFLAGS="$CFLAGS -Wtrigraphs"
18033
18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18035 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18036 cacheid=xorg_cv_cc_flag__Wtrigraphs
18037 if eval test \${$cacheid+y}
18038 then :
18039 printf %s "(cached) " >&6
18040 else $as_nop
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043 int i;
18044 int
18045 main (void)
18046 {
18047
18048 ;
18049 return 0;
18050 }
18051 _ACEOF
18052 if ac_fn_c_try_link "$LINENO"
18053 then :
18054 eval $cacheid=yes
18055 else $as_nop
18056 eval $cacheid=no
18057 fi
18058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18059 conftest$ac_exeext conftest.$ac_ext
18060 fi
18061
18062
18063 CFLAGS="$xorg_testset_save_CFLAGS"
18064
18065 eval supported=\$$cacheid
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18067 printf "%s\n" "$supported" >&6; }
18068 if test "$supported" = "yes" ; then
18069 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18070 found="yes"
18071 fi
18072 fi
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088 xorg_testset_save_CFLAGS="$CFLAGS"
18089
18090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18093 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18094 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18095 then :
18096 printf %s "(cached) " >&6
18097 else $as_nop
18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18100 int i;
18101 _ACEOF
18102 if ac_fn_c_try_compile "$LINENO"
18103 then :
18104 xorg_cv_cc_flag_unknown_warning_option=yes
18105 else $as_nop
18106 xorg_cv_cc_flag_unknown_warning_option=no
18107 fi
18108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18109 fi
18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18111 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18113 CFLAGS="$xorg_testset_save_CFLAGS"
18114 fi
18115
18116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18119 fi
18120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18122 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18123 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18124 then :
18125 printf %s "(cached) " >&6
18126 else $as_nop
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18129 int i;
18130 _ACEOF
18131 if ac_fn_c_try_compile "$LINENO"
18132 then :
18133 xorg_cv_cc_flag_unused_command_line_argument=yes
18134 else $as_nop
18135 xorg_cv_cc_flag_unused_command_line_argument=no
18136 fi
18137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18138 fi
18139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18142 CFLAGS="$xorg_testset_save_CFLAGS"
18143 fi
18144
18145 found="no"
18146
18147 if test $found = "no" ; then
18148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18150 fi
18151
18152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18154 fi
18155
18156 CFLAGS="$CFLAGS -Warray-bounds"
18157
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18159 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18160 cacheid=xorg_cv_cc_flag__Warray_bounds
18161 if eval test \${$cacheid+y}
18162 then :
18163 printf %s "(cached) " >&6
18164 else $as_nop
18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h. */
18167 int i;
18168 int
18169 main (void)
18170 {
18171
18172 ;
18173 return 0;
18174 }
18175 _ACEOF
18176 if ac_fn_c_try_link "$LINENO"
18177 then :
18178 eval $cacheid=yes
18179 else $as_nop
18180 eval $cacheid=no
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18183 conftest$ac_exeext conftest.$ac_ext
18184 fi
18185
18186
18187 CFLAGS="$xorg_testset_save_CFLAGS"
18188
18189 eval supported=\$$cacheid
18190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18191 printf "%s\n" "$supported" >&6; }
18192 if test "$supported" = "yes" ; then
18193 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18194 found="yes"
18195 fi
18196 fi
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212 xorg_testset_save_CFLAGS="$CFLAGS"
18213
18214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18218 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18219 then :
18220 printf %s "(cached) " >&6
18221 else $as_nop
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18224 int i;
18225 _ACEOF
18226 if ac_fn_c_try_compile "$LINENO"
18227 then :
18228 xorg_cv_cc_flag_unknown_warning_option=yes
18229 else $as_nop
18230 xorg_cv_cc_flag_unknown_warning_option=no
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18233 fi
18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18235 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18237 CFLAGS="$xorg_testset_save_CFLAGS"
18238 fi
18239
18240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18243 fi
18244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18246 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18247 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18248 then :
18249 printf %s "(cached) " >&6
18250 else $as_nop
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18253 int i;
18254 _ACEOF
18255 if ac_fn_c_try_compile "$LINENO"
18256 then :
18257 xorg_cv_cc_flag_unused_command_line_argument=yes
18258 else $as_nop
18259 xorg_cv_cc_flag_unused_command_line_argument=no
18260 fi
18261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18262 fi
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18264 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18266 CFLAGS="$xorg_testset_save_CFLAGS"
18267 fi
18268
18269 found="no"
18270
18271 if test $found = "no" ; then
18272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274 fi
18275
18276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18278 fi
18279
18280 CFLAGS="$CFLAGS -Wwrite-strings"
18281
18282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18283 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18284 cacheid=xorg_cv_cc_flag__Wwrite_strings
18285 if eval test \${$cacheid+y}
18286 then :
18287 printf %s "(cached) " >&6
18288 else $as_nop
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18291 int i;
18292 int
18293 main (void)
18294 {
18295
18296 ;
18297 return 0;
18298 }
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"
18301 then :
18302 eval $cacheid=yes
18303 else $as_nop
18304 eval $cacheid=no
18305 fi
18306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18307 conftest$ac_exeext conftest.$ac_ext
18308 fi
18309
18310
18311 CFLAGS="$xorg_testset_save_CFLAGS"
18312
18313 eval supported=\$$cacheid
18314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18315 printf "%s\n" "$supported" >&6; }
18316 if test "$supported" = "yes" ; then
18317 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18318 found="yes"
18319 fi
18320 fi
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336 xorg_testset_save_CFLAGS="$CFLAGS"
18337
18338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18342 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18343 then :
18344 printf %s "(cached) " >&6
18345 else $as_nop
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 int i;
18349 _ACEOF
18350 if ac_fn_c_try_compile "$LINENO"
18351 then :
18352 xorg_cv_cc_flag_unknown_warning_option=yes
18353 else $as_nop
18354 xorg_cv_cc_flag_unknown_warning_option=no
18355 fi
18356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18357 fi
18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18359 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18361 CFLAGS="$xorg_testset_save_CFLAGS"
18362 fi
18363
18364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18367 fi
18368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18370 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18371 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18372 then :
18373 printf %s "(cached) " >&6
18374 else $as_nop
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18377 int i;
18378 _ACEOF
18379 if ac_fn_c_try_compile "$LINENO"
18380 then :
18381 xorg_cv_cc_flag_unused_command_line_argument=yes
18382 else $as_nop
18383 xorg_cv_cc_flag_unused_command_line_argument=no
18384 fi
18385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18386 fi
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18388 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18390 CFLAGS="$xorg_testset_save_CFLAGS"
18391 fi
18392
18393 found="no"
18394
18395 if test $found = "no" ; then
18396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18398 fi
18399
18400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18402 fi
18403
18404 CFLAGS="$CFLAGS -Waddress"
18405
18406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18407 printf %s "checking if $CC supports -Waddress... " >&6; }
18408 cacheid=xorg_cv_cc_flag__Waddress
18409 if eval test \${$cacheid+y}
18410 then :
18411 printf %s "(cached) " >&6
18412 else $as_nop
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415 int i;
18416 int
18417 main (void)
18418 {
18419
18420 ;
18421 return 0;
18422 }
18423 _ACEOF
18424 if ac_fn_c_try_link "$LINENO"
18425 then :
18426 eval $cacheid=yes
18427 else $as_nop
18428 eval $cacheid=no
18429 fi
18430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18431 conftest$ac_exeext conftest.$ac_ext
18432 fi
18433
18434
18435 CFLAGS="$xorg_testset_save_CFLAGS"
18436
18437 eval supported=\$$cacheid
18438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18439 printf "%s\n" "$supported" >&6; }
18440 if test "$supported" = "yes" ; then
18441 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18442 found="yes"
18443 fi
18444 fi
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460 xorg_testset_save_CFLAGS="$CFLAGS"
18461
18462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18465 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18466 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18467 then :
18468 printf %s "(cached) " >&6
18469 else $as_nop
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18472 int i;
18473 _ACEOF
18474 if ac_fn_c_try_compile "$LINENO"
18475 then :
18476 xorg_cv_cc_flag_unknown_warning_option=yes
18477 else $as_nop
18478 xorg_cv_cc_flag_unknown_warning_option=no
18479 fi
18480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18481 fi
18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18483 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18485 CFLAGS="$xorg_testset_save_CFLAGS"
18486 fi
18487
18488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18491 fi
18492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18494 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18495 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18496 then :
18497 printf %s "(cached) " >&6
18498 else $as_nop
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18501 int i;
18502 _ACEOF
18503 if ac_fn_c_try_compile "$LINENO"
18504 then :
18505 xorg_cv_cc_flag_unused_command_line_argument=yes
18506 else $as_nop
18507 xorg_cv_cc_flag_unused_command_line_argument=no
18508 fi
18509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18510 fi
18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18512 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18514 CFLAGS="$xorg_testset_save_CFLAGS"
18515 fi
18516
18517 found="no"
18518
18519 if test $found = "no" ; then
18520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18522 fi
18523
18524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18526 fi
18527
18528 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18529
18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18531 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18532 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18533 if eval test \${$cacheid+y}
18534 then :
18535 printf %s "(cached) " >&6
18536 else $as_nop
18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18539 int i;
18540 int
18541 main (void)
18542 {
18543
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_link "$LINENO"
18549 then :
18550 eval $cacheid=yes
18551 else $as_nop
18552 eval $cacheid=no
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18555 conftest$ac_exeext conftest.$ac_ext
18556 fi
18557
18558
18559 CFLAGS="$xorg_testset_save_CFLAGS"
18560
18561 eval supported=\$$cacheid
18562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18563 printf "%s\n" "$supported" >&6; }
18564 if test "$supported" = "yes" ; then
18565 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18566 found="yes"
18567 fi
18568 fi
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584 xorg_testset_save_CFLAGS="$CFLAGS"
18585
18586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18590 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18591 then :
18592 printf %s "(cached) " >&6
18593 else $as_nop
18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595 /* end confdefs.h. */
18596 int i;
18597 _ACEOF
18598 if ac_fn_c_try_compile "$LINENO"
18599 then :
18600 xorg_cv_cc_flag_unknown_warning_option=yes
18601 else $as_nop
18602 xorg_cv_cc_flag_unknown_warning_option=no
18603 fi
18604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18605 fi
18606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18607 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18609 CFLAGS="$xorg_testset_save_CFLAGS"
18610 fi
18611
18612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18615 fi
18616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18618 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18619 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18620 then :
18621 printf %s "(cached) " >&6
18622 else $as_nop
18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18625 int i;
18626 _ACEOF
18627 if ac_fn_c_try_compile "$LINENO"
18628 then :
18629 xorg_cv_cc_flag_unused_command_line_argument=yes
18630 else $as_nop
18631 xorg_cv_cc_flag_unused_command_line_argument=no
18632 fi
18633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18634 fi
18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18636 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18638 CFLAGS="$xorg_testset_save_CFLAGS"
18639 fi
18640
18641 found="no"
18642
18643 if test $found = "no" ; then
18644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18646 fi
18647
18648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18650 fi
18651
18652 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18653
18654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18655 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18656 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18657 if eval test \${$cacheid+y}
18658 then :
18659 printf %s "(cached) " >&6
18660 else $as_nop
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662 /* end confdefs.h. */
18663 int i;
18664 int
18665 main (void)
18666 {
18667
18668 ;
18669 return 0;
18670 }
18671 _ACEOF
18672 if ac_fn_c_try_link "$LINENO"
18673 then :
18674 eval $cacheid=yes
18675 else $as_nop
18676 eval $cacheid=no
18677 fi
18678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18679 conftest$ac_exeext conftest.$ac_ext
18680 fi
18681
18682
18683 CFLAGS="$xorg_testset_save_CFLAGS"
18684
18685 eval supported=\$$cacheid
18686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18687 printf "%s\n" "$supported" >&6; }
18688 if test "$supported" = "yes" ; then
18689 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18690 found="yes"
18691 fi
18692 fi
18693
18694
18695 fi
18696
18697
18698
18699
18700
18701
18702
18703 CWARNFLAGS="$BASE_CFLAGS"
18704 if test "x$GCC" = xyes ; then
18705 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18706 fi
18707
18708
18709
18710
18711
18712
18713
18714
18715 # Check whether --enable-strict-compilation was given.
18716 if test ${enable_strict_compilation+y}
18717 then :
18718 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18719 else $as_nop
18720 STRICT_COMPILE=no
18721 fi
18722
18723
18724
18725
18726
18727
18728 STRICT_CFLAGS=""
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742 xorg_testset_save_CFLAGS="$CFLAGS"
18743
18744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18749 then :
18750 printf %s "(cached) " >&6
18751 else $as_nop
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18754 int i;
18755 _ACEOF
18756 if ac_fn_c_try_compile "$LINENO"
18757 then :
18758 xorg_cv_cc_flag_unknown_warning_option=yes
18759 else $as_nop
18760 xorg_cv_cc_flag_unknown_warning_option=no
18761 fi
18762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18763 fi
18764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18767 CFLAGS="$xorg_testset_save_CFLAGS"
18768 fi
18769
18770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18773 fi
18774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18778 then :
18779 printf %s "(cached) " >&6
18780 else $as_nop
18781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18783 int i;
18784 _ACEOF
18785 if ac_fn_c_try_compile "$LINENO"
18786 then :
18787 xorg_cv_cc_flag_unused_command_line_argument=yes
18788 else $as_nop
18789 xorg_cv_cc_flag_unused_command_line_argument=no
18790 fi
18791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18792 fi
18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18796 CFLAGS="$xorg_testset_save_CFLAGS"
18797 fi
18798
18799 found="no"
18800
18801 if test $found = "no" ; then
18802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18804 fi
18805
18806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18808 fi
18809
18810 CFLAGS="$CFLAGS -pedantic"
18811
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18813 printf %s "checking if $CC supports -pedantic... " >&6; }
18814 cacheid=xorg_cv_cc_flag__pedantic
18815 if eval test \${$cacheid+y}
18816 then :
18817 printf %s "(cached) " >&6
18818 else $as_nop
18819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h. */
18821 int i;
18822 int
18823 main (void)
18824 {
18825
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 if ac_fn_c_try_link "$LINENO"
18831 then :
18832 eval $cacheid=yes
18833 else $as_nop
18834 eval $cacheid=no
18835 fi
18836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18837 conftest$ac_exeext conftest.$ac_ext
18838 fi
18839
18840
18841 CFLAGS="$xorg_testset_save_CFLAGS"
18842
18843 eval supported=\$$cacheid
18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18845 printf "%s\n" "$supported" >&6; }
18846 if test "$supported" = "yes" ; then
18847 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18848 found="yes"
18849 fi
18850 fi
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866 xorg_testset_save_CFLAGS="$CFLAGS"
18867
18868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18871 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18872 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18873 then :
18874 printf %s "(cached) " >&6
18875 else $as_nop
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18878 int i;
18879 _ACEOF
18880 if ac_fn_c_try_compile "$LINENO"
18881 then :
18882 xorg_cv_cc_flag_unknown_warning_option=yes
18883 else $as_nop
18884 xorg_cv_cc_flag_unknown_warning_option=no
18885 fi
18886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18887 fi
18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18889 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18891 CFLAGS="$xorg_testset_save_CFLAGS"
18892 fi
18893
18894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18897 fi
18898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18900 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18901 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18902 then :
18903 printf %s "(cached) " >&6
18904 else $as_nop
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18907 int i;
18908 _ACEOF
18909 if ac_fn_c_try_compile "$LINENO"
18910 then :
18911 xorg_cv_cc_flag_unused_command_line_argument=yes
18912 else $as_nop
18913 xorg_cv_cc_flag_unused_command_line_argument=no
18914 fi
18915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18916 fi
18917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18918 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18920 CFLAGS="$xorg_testset_save_CFLAGS"
18921 fi
18922
18923 found="no"
18924
18925 if test $found = "no" ; then
18926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18928 fi
18929
18930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18932 fi
18933
18934 CFLAGS="$CFLAGS -Werror"
18935
18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18937 printf %s "checking if $CC supports -Werror... " >&6; }
18938 cacheid=xorg_cv_cc_flag__Werror
18939 if eval test \${$cacheid+y}
18940 then :
18941 printf %s "(cached) " >&6
18942 else $as_nop
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18945 int i;
18946 int
18947 main (void)
18948 {
18949
18950 ;
18951 return 0;
18952 }
18953 _ACEOF
18954 if ac_fn_c_try_link "$LINENO"
18955 then :
18956 eval $cacheid=yes
18957 else $as_nop
18958 eval $cacheid=no
18959 fi
18960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18961 conftest$ac_exeext conftest.$ac_ext
18962 fi
18963
18964
18965 CFLAGS="$xorg_testset_save_CFLAGS"
18966
18967 eval supported=\$$cacheid
18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18969 printf "%s\n" "$supported" >&6; }
18970 if test "$supported" = "yes" ; then
18971 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18972 found="yes"
18973 fi
18974 fi
18975
18976 if test $found = "no" ; then
18977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18979 fi
18980
18981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18983 fi
18984
18985 CFLAGS="$CFLAGS -errwarn"
18986
18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18988 printf %s "checking if $CC supports -errwarn... " >&6; }
18989 cacheid=xorg_cv_cc_flag__errwarn
18990 if eval test \${$cacheid+y}
18991 then :
18992 printf %s "(cached) " >&6
18993 else $as_nop
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996 int i;
18997 int
18998 main (void)
18999 {
19000
19001 ;
19002 return 0;
19003 }
19004 _ACEOF
19005 if ac_fn_c_try_link "$LINENO"
19006 then :
19007 eval $cacheid=yes
19008 else $as_nop
19009 eval $cacheid=no
19010 fi
19011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19012 conftest$ac_exeext conftest.$ac_ext
19013 fi
19014
19015
19016 CFLAGS="$xorg_testset_save_CFLAGS"
19017
19018 eval supported=\$$cacheid
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19020 printf "%s\n" "$supported" >&6; }
19021 if test "$supported" = "yes" ; then
19022 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19023 found="yes"
19024 fi
19025 fi
19026
19027
19028
19029 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19030 # activate it with -Werror, so we add it here explicitly.
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044 xorg_testset_save_CFLAGS="$CFLAGS"
19045
19046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19049 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19050 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19051 then :
19052 printf %s "(cached) " >&6
19053 else $as_nop
19054 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_unknown_warning_option=yes
19061 else $as_nop
19062 xorg_cv_cc_flag_unknown_warning_option=no
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19065 fi
19066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19067 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19069 CFLAGS="$xorg_testset_save_CFLAGS"
19070 fi
19071
19072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19075 fi
19076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19080 then :
19081 printf %s "(cached) " >&6
19082 else $as_nop
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19085 int i;
19086 _ACEOF
19087 if ac_fn_c_try_compile "$LINENO"
19088 then :
19089 xorg_cv_cc_flag_unused_command_line_argument=yes
19090 else $as_nop
19091 xorg_cv_cc_flag_unused_command_line_argument=no
19092 fi
19093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19094 fi
19095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19096 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19098 CFLAGS="$xorg_testset_save_CFLAGS"
19099 fi
19100
19101 found="no"
19102
19103 if test $found = "no" ; then
19104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19106 fi
19107
19108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19110 fi
19111
19112 CFLAGS="$CFLAGS -Werror=attributes"
19113
19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19115 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19116 cacheid=xorg_cv_cc_flag__Werror_attributes
19117 if eval test \${$cacheid+y}
19118 then :
19119 printf %s "(cached) " >&6
19120 else $as_nop
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 int i;
19124 int
19125 main (void)
19126 {
19127
19128 ;
19129 return 0;
19130 }
19131 _ACEOF
19132 if ac_fn_c_try_link "$LINENO"
19133 then :
19134 eval $cacheid=yes
19135 else $as_nop
19136 eval $cacheid=no
19137 fi
19138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19139 conftest$ac_exeext conftest.$ac_ext
19140 fi
19141
19142
19143 CFLAGS="$xorg_testset_save_CFLAGS"
19144
19145 eval supported=\$$cacheid
19146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19147 printf "%s\n" "$supported" >&6; }
19148 if test "$supported" = "yes" ; then
19149 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19150 found="yes"
19151 fi
19152 fi
19153
19154
19155
19156 if test "x$STRICT_COMPILE" = "xyes"; then
19157 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19158 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19159 fi
19160
19161
19162
19163
19164
19165
19166
19167
19168 cat >>confdefs.h <<_ACEOF
19169 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19170 _ACEOF
19171
19172 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19173 if test "x$PVM" = "x"; then
19174 PVM="0"
19175 fi
19176
19177 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19178
19179 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19180 if test "x$PVP" = "x"; then
19181 PVP="0"
19182 fi
19183
19184 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19185
19186
19187
19188 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19189 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19190 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19191 touch \$(top_srcdir)/ChangeLog; \
19192 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19193
19194
19195
19196
19197 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19198 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19199 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19200 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19201 touch \$(top_srcdir)/INSTALL; \
19202 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19203
19204
19205
19206
19207
19208
19209 case $host_os in
19210 solaris*)
19211 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19212 # check for a man page file found in later versions that use
19213 # traditional section numbers instead
19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19215 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19216 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19217 then :
19218 printf %s "(cached) " >&6
19219 else $as_nop
19220 test "$cross_compiling" = yes &&
19221 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19222 if test -r "/usr/share/man/man7/attributes.7"; then
19223 ac_cv_file__usr_share_man_man7_attributes_7=yes
19224 else
19225 ac_cv_file__usr_share_man_man7_attributes_7=no
19226 fi
19227 fi
19228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19229 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19230 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19231 then :
19232 SYSV_MAN_SECTIONS=false
19233 else $as_nop
19234 SYSV_MAN_SECTIONS=true
19235 fi
19236
19237 ;;
19238 *) SYSV_MAN_SECTIONS=false ;;
19239 esac
19240
19241 if test x$APP_MAN_SUFFIX = x ; then
19242 APP_MAN_SUFFIX=1
19243 fi
19244 if test x$APP_MAN_DIR = x ; then
19245 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19246 fi
19247
19248 if test x$LIB_MAN_SUFFIX = x ; then
19249 LIB_MAN_SUFFIX=3
19250 fi
19251 if test x$LIB_MAN_DIR = x ; then
19252 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19253 fi
19254
19255 if test x$FILE_MAN_SUFFIX = x ; then
19256 case $SYSV_MAN_SECTIONS in
19257 true) FILE_MAN_SUFFIX=4 ;;
19258 *) FILE_MAN_SUFFIX=5 ;;
19259 esac
19260 fi
19261 if test x$FILE_MAN_DIR = x ; then
19262 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19263 fi
19264
19265 if test x$MISC_MAN_SUFFIX = x ; then
19266 case $SYSV_MAN_SECTIONS in
19267 true) MISC_MAN_SUFFIX=5 ;;
19268 *) MISC_MAN_SUFFIX=7 ;;
19269 esac
19270 fi
19271 if test x$MISC_MAN_DIR = x ; then
19272 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19273 fi
19274
19275 if test x$DRIVER_MAN_SUFFIX = x ; then
19276 case $SYSV_MAN_SECTIONS in
19277 true) DRIVER_MAN_SUFFIX=7 ;;
19278 *) DRIVER_MAN_SUFFIX=4 ;;
19279 esac
19280 fi
19281 if test x$DRIVER_MAN_DIR = x ; then
19282 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19283 fi
19284
19285 if test x$ADMIN_MAN_SUFFIX = x ; then
19286 case $SYSV_MAN_SECTIONS in
19287 true) ADMIN_MAN_SUFFIX=1m ;;
19288 *) ADMIN_MAN_SUFFIX=8 ;;
19289 esac
19290 fi
19291 if test x$ADMIN_MAN_DIR = x ; then
19292 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19293 fi
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309 XORG_MAN_PAGE="X Version 11"
19310
19311 MAN_SUBSTS="\
19312 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19313 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19314 -e 's|__xservername__|Xorg|g' \
19315 -e 's|__xconfigfile__|xorg.conf|g' \
19316 -e 's|__projectroot__|\$(prefix)|g' \
19317 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19318 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19319 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19320 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19321 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19322 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19323 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19324
19325
19326
19327 # Check whether --enable-silent-rules was given.
19328 if test ${enable_silent_rules+y}
19329 then :
19330 enableval=$enable_silent_rules;
19331 fi
19332
19333 case $enable_silent_rules in # (((
19334 yes) AM_DEFAULT_VERBOSITY=0;;
19335 no) AM_DEFAULT_VERBOSITY=1;;
19336 *) AM_DEFAULT_VERBOSITY=0;;
19337 esac
19338 am_make=${MAKE-make}
19339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19340 printf %s "checking whether $am_make supports nested variables... " >&6; }
19341 if test ${am_cv_make_support_nested_variables+y}
19342 then :
19343 printf %s "(cached) " >&6
19344 else $as_nop
19345 if printf "%s\n" 'TRUE=$(BAR$(V))
19346 BAR0=false
19347 BAR1=true
19348 V=1
19349 am__doit:
19350 @$(TRUE)
19351 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19352 am_cv_make_support_nested_variables=yes
19353 else
19354 am_cv_make_support_nested_variables=no
19355 fi
19356 fi
19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19358 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19359 if test $am_cv_make_support_nested_variables = yes; then
19360 AM_V='$(V)'
19361 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19362 else
19363 AM_V=$AM_DEFAULT_VERBOSITY
19364 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19365 fi
19366 AM_BACKSLASH='\'
19367
19368
19369
19370
19371
19372 # Check whether --enable-docs was given.
19373 if test ${enable_docs+y}
19374 then :
19375 enableval=$enable_docs; build_docs=$enableval
19376 else $as_nop
19377 build_docs=yes
19378 fi
19379
19380
19381 if test x$build_docs = xyes; then
19382 ENABLE_DOCS_TRUE=
19383 ENABLE_DOCS_FALSE='#'
19384 else
19385 ENABLE_DOCS_TRUE='#'
19386 ENABLE_DOCS_FALSE=
19387 fi
19388
19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
19390 printf %s "checking whether to build documentation... " >&6; }
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
19392 printf "%s\n" "$build_docs" >&6; }
19393
19394
19395
19396 # Check whether --enable-specs was given.
19397 if test ${enable_specs+y}
19398 then :
19399 enableval=$enable_specs; build_specs=$enableval
19400 else $as_nop
19401 build_specs=yes
19402 fi
19403
19404
19405 if test x$build_specs = xyes; then
19406 ENABLE_SPECS_TRUE=
19407 ENABLE_SPECS_FALSE='#'
19408 else
19409 ENABLE_SPECS_TRUE='#'
19410 ENABLE_SPECS_FALSE=
19411 fi
19412
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19414 printf %s "checking whether to build functional specifications... " >&6; }
19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19416 printf "%s\n" "$build_specs" >&6; }
19417
19418
19419
19420
19421
19422 # Check whether --with-xmlto was given.
19423 if test ${with_xmlto+y}
19424 then :
19425 withval=$with_xmlto; use_xmlto=$withval
19426 else $as_nop
19427 use_xmlto=auto
19428 fi
19429
19430
19431
19432 if test "x$use_xmlto" = x"auto"; then
19433 # Extract the first word of "xmlto", so it can be a program name with args.
19434 set dummy xmlto; ac_word=$2
19435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19436 printf %s "checking for $ac_word... " >&6; }
19437 if test ${ac_cv_path_XMLTO+y}
19438 then :
19439 printf %s "(cached) " >&6
19440 else $as_nop
19441 case $XMLTO in
19442 [\\/]* | ?:[\\/]*)
19443 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19444 ;;
19445 *)
19446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19447 for as_dir in $PATH
19448 do
19449 IFS=$as_save_IFS
19450 case $as_dir in #(((
19451 '') as_dir=./ ;;
19452 */) ;;
19453 *) as_dir=$as_dir/ ;;
19454 esac
19455 for ac_exec_ext in '' $ac_executable_extensions; do
19456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19457 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19459 break 2
19460 fi
19461 done
19462 done
19463 IFS=$as_save_IFS
19464
19465 ;;
19466 esac
19467 fi
19468 XMLTO=$ac_cv_path_XMLTO
19469 if test -n "$XMLTO"; then
19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19471 printf "%s\n" "$XMLTO" >&6; }
19472 else
19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19474 printf "%s\n" "no" >&6; }
19475 fi
19476
19477
19478 if test "x$XMLTO" = "x"; then
19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19480 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19481 have_xmlto=no
19482 else
19483 have_xmlto=yes
19484 fi
19485 elif test "x$use_xmlto" = x"yes" ; then
19486 # Extract the first word of "xmlto", so it can be a program name with args.
19487 set dummy xmlto; ac_word=$2
19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19489 printf %s "checking for $ac_word... " >&6; }
19490 if test ${ac_cv_path_XMLTO+y}
19491 then :
19492 printf %s "(cached) " >&6
19493 else $as_nop
19494 case $XMLTO in
19495 [\\/]* | ?:[\\/]*)
19496 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19497 ;;
19498 *)
19499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500 for as_dir in $PATH
19501 do
19502 IFS=$as_save_IFS
19503 case $as_dir in #(((
19504 '') as_dir=./ ;;
19505 */) ;;
19506 *) as_dir=$as_dir/ ;;
19507 esac
19508 for ac_exec_ext in '' $ac_executable_extensions; do
19509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19510 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19512 break 2
19513 fi
19514 done
19515 done
19516 IFS=$as_save_IFS
19517
19518 ;;
19519 esac
19520 fi
19521 XMLTO=$ac_cv_path_XMLTO
19522 if test -n "$XMLTO"; then
19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19524 printf "%s\n" "$XMLTO" >&6; }
19525 else
19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527 printf "%s\n" "no" >&6; }
19528 fi
19529
19530
19531 if test "x$XMLTO" = "x"; then
19532 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19533 fi
19534 have_xmlto=yes
19535 elif test "x$use_xmlto" = x"no" ; then
19536 if test "x$XMLTO" != "x"; then
19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19538 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19539 fi
19540 have_xmlto=no
19541 else
19542 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19543 fi
19544
19545 # Test for a minimum version of xmlto, if provided.
19546 if test "$have_xmlto" = yes; then
19547 # scrape the xmlto version
19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19549 printf %s "checking the xmlto version... " >&6; }
19550 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19552 printf "%s\n" "$xmlto_version" >&6; }
19553 as_arg_v1=$xmlto_version
19554 as_arg_v2=0.0.22
19555 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19556 case $? in #(
19557 1) :
19558 if test "x$use_xmlto" = xauto; then
19559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19560 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19561 have_xmlto=no
19562 else
19563 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19564 fi ;; #(
19565 0) :
19566 ;; #(
19567 2) :
19568 ;; #(
19569 *) :
19570 ;;
19571 esac
19572 fi
19573
19574 # Test for the ability of xmlto to generate a text target
19575 #
19576 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19577 # following test for empty XML docbook files.
19578 # For compatibility reasons use the following empty XML docbook file and if
19579 # it fails try it again with a non-empty XML file.
19580 have_xmlto_text=no
19581 cat > conftest.xml << "EOF"
19582 EOF
19583 if test "$have_xmlto" = yes
19584 then :
19585 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19586 then :
19587 have_xmlto_text=yes
19588 else $as_nop
19589 # Try it again with a non-empty XML file.
19590 cat > conftest.xml << "EOF"
19591 <x></x>
19592 EOF
19593 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19594 then :
19595 have_xmlto_text=yes
19596 else $as_nop
19597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19598 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19599 fi
19600 fi
19601 fi
19602 rm -f conftest.xml
19603 if test $have_xmlto_text = yes; then
19604 HAVE_XMLTO_TEXT_TRUE=
19605 HAVE_XMLTO_TEXT_FALSE='#'
19606 else
19607 HAVE_XMLTO_TEXT_TRUE='#'
19608 HAVE_XMLTO_TEXT_FALSE=
19609 fi
19610
19611 if test "$have_xmlto" = yes; then
19612 HAVE_XMLTO_TRUE=
19613 HAVE_XMLTO_FALSE='#'
19614 else
19615 HAVE_XMLTO_TRUE='#'
19616 HAVE_XMLTO_FALSE=
19617 fi
19618
19619
19620
19621
19622
19623
19624 # Check whether --with-fop was given.
19625 if test ${with_fop+y}
19626 then :
19627 withval=$with_fop; use_fop=$withval
19628 else $as_nop
19629 use_fop=auto
19630 fi
19631
19632
19633
19634 if test "x$use_fop" = x"auto"; then
19635 # Extract the first word of "fop", so it can be a program name with args.
19636 set dummy fop; ac_word=$2
19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19638 printf %s "checking for $ac_word... " >&6; }
19639 if test ${ac_cv_path_FOP+y}
19640 then :
19641 printf %s "(cached) " >&6
19642 else $as_nop
19643 case $FOP in
19644 [\\/]* | ?:[\\/]*)
19645 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19646 ;;
19647 *)
19648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 for as_dir in $PATH
19650 do
19651 IFS=$as_save_IFS
19652 case $as_dir in #(((
19653 '') as_dir=./ ;;
19654 */) ;;
19655 *) as_dir=$as_dir/ ;;
19656 esac
19657 for ac_exec_ext in '' $ac_executable_extensions; do
19658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19659 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19661 break 2
19662 fi
19663 done
19664 done
19665 IFS=$as_save_IFS
19666
19667 ;;
19668 esac
19669 fi
19670 FOP=$ac_cv_path_FOP
19671 if test -n "$FOP"; then
19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19673 printf "%s\n" "$FOP" >&6; }
19674 else
19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19676 printf "%s\n" "no" >&6; }
19677 fi
19678
19679
19680 if test "x$FOP" = "x"; then
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19682 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19683 have_fop=no
19684 else
19685 have_fop=yes
19686 fi
19687 elif test "x$use_fop" = x"yes" ; then
19688 # Extract the first word of "fop", so it can be a program name with args.
19689 set dummy fop; ac_word=$2
19690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19691 printf %s "checking for $ac_word... " >&6; }
19692 if test ${ac_cv_path_FOP+y}
19693 then :
19694 printf %s "(cached) " >&6
19695 else $as_nop
19696 case $FOP in
19697 [\\/]* | ?:[\\/]*)
19698 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19699 ;;
19700 *)
19701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19702 for as_dir in $PATH
19703 do
19704 IFS=$as_save_IFS
19705 case $as_dir in #(((
19706 '') as_dir=./ ;;
19707 */) ;;
19708 *) as_dir=$as_dir/ ;;
19709 esac
19710 for ac_exec_ext in '' $ac_executable_extensions; do
19711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19712 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19714 break 2
19715 fi
19716 done
19717 done
19718 IFS=$as_save_IFS
19719
19720 ;;
19721 esac
19722 fi
19723 FOP=$ac_cv_path_FOP
19724 if test -n "$FOP"; then
19725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19726 printf "%s\n" "$FOP" >&6; }
19727 else
19728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19729 printf "%s\n" "no" >&6; }
19730 fi
19731
19732
19733 if test "x$FOP" = "x"; then
19734 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19735 fi
19736 have_fop=yes
19737 elif test "x$use_fop" = x"no" ; then
19738 if test "x$FOP" != "x"; then
19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19740 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19741 fi
19742 have_fop=no
19743 else
19744 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19745 fi
19746
19747 # Test for a minimum version of fop, if provided.
19748
19749 if test "$have_fop" = yes; then
19750 HAVE_FOP_TRUE=
19751 HAVE_FOP_FALSE='#'
19752 else
19753 HAVE_FOP_TRUE='#'
19754 HAVE_FOP_FALSE=
19755 fi
19756
19757
19758
19759
19760 # Preserves the interface, should it be implemented later
19761
19762
19763
19764 # Check whether --with-xsltproc was given.
19765 if test ${with_xsltproc+y}
19766 then :
19767 withval=$with_xsltproc; use_xsltproc=$withval
19768 else $as_nop
19769 use_xsltproc=auto
19770 fi
19771
19772
19773
19774 if test "x$use_xsltproc" = x"auto"; then
19775 # Extract the first word of "xsltproc", so it can be a program name with args.
19776 set dummy xsltproc; ac_word=$2
19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19778 printf %s "checking for $ac_word... " >&6; }
19779 if test ${ac_cv_path_XSLTPROC+y}
19780 then :
19781 printf %s "(cached) " >&6
19782 else $as_nop
19783 case $XSLTPROC in
19784 [\\/]* | ?:[\\/]*)
19785 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19786 ;;
19787 *)
19788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19789 for as_dir in $PATH
19790 do
19791 IFS=$as_save_IFS
19792 case $as_dir in #(((
19793 '') as_dir=./ ;;
19794 */) ;;
19795 *) as_dir=$as_dir/ ;;
19796 esac
19797 for ac_exec_ext in '' $ac_executable_extensions; do
19798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19799 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19801 break 2
19802 fi
19803 done
19804 done
19805 IFS=$as_save_IFS
19806
19807 ;;
19808 esac
19809 fi
19810 XSLTPROC=$ac_cv_path_XSLTPROC
19811 if test -n "$XSLTPROC"; then
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19813 printf "%s\n" "$XSLTPROC" >&6; }
19814 else
19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19816 printf "%s\n" "no" >&6; }
19817 fi
19818
19819
19820 if test "x$XSLTPROC" = "x"; then
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19822 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19823 have_xsltproc=no
19824 else
19825 have_xsltproc=yes
19826 fi
19827 elif test "x$use_xsltproc" = x"yes" ; then
19828 # Extract the first word of "xsltproc", so it can be a program name with args.
19829 set dummy xsltproc; ac_word=$2
19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19831 printf %s "checking for $ac_word... " >&6; }
19832 if test ${ac_cv_path_XSLTPROC+y}
19833 then :
19834 printf %s "(cached) " >&6
19835 else $as_nop
19836 case $XSLTPROC in
19837 [\\/]* | ?:[\\/]*)
19838 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19839 ;;
19840 *)
19841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842 for as_dir in $PATH
19843 do
19844 IFS=$as_save_IFS
19845 case $as_dir in #(((
19846 '') as_dir=./ ;;
19847 */) ;;
19848 *) as_dir=$as_dir/ ;;
19849 esac
19850 for ac_exec_ext in '' $ac_executable_extensions; do
19851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19852 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19854 break 2
19855 fi
19856 done
19857 done
19858 IFS=$as_save_IFS
19859
19860 ;;
19861 esac
19862 fi
19863 XSLTPROC=$ac_cv_path_XSLTPROC
19864 if test -n "$XSLTPROC"; then
19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19866 printf "%s\n" "$XSLTPROC" >&6; }
19867 else
19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19869 printf "%s\n" "no" >&6; }
19870 fi
19871
19872
19873 if test "x$XSLTPROC" = "x"; then
19874 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19875 fi
19876 have_xsltproc=yes
19877 elif test "x$use_xsltproc" = x"no" ; then
19878 if test "x$XSLTPROC" != "x"; then
19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19880 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19881 fi
19882 have_xsltproc=no
19883 else
19884 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19885 fi
19886
19887 if test "$have_xsltproc" = yes; then
19888 HAVE_XSLTPROC_TRUE=
19889 HAVE_XSLTPROC_FALSE='#'
19890 else
19891 HAVE_XSLTPROC_TRUE='#'
19892 HAVE_XSLTPROC_FALSE=
19893 fi
19894
19895
19896
19897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19898 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
19899 XORG_SGML_PATH=
19900 if test -n "$PKG_CONFIG" && \
19901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19902 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19903 ac_status=$?
19904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19905 test $ac_status = 0; }; then
19906 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19907 else
19908 :
19909
19910 fi
19911
19912 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19913 # the path and the name of the doc stylesheet
19914 if test "x$XORG_SGML_PATH" != "x" ; then
19915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19916 printf "%s\n" "$XORG_SGML_PATH" >&6; }
19917 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19918 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19919 else
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19921 printf "%s\n" "no" >&6; }
19922 fi
19923
19924
19925
19926
19927 if test "x$XSL_STYLESHEET" != "x"; then
19928 HAVE_STYLESHEETS_TRUE=
19929 HAVE_STYLESHEETS_FALSE='#'
19930 else
19931 HAVE_STYLESHEETS_TRUE='#'
19932 HAVE_STYLESHEETS_FALSE=
19933 fi
19934
19935
19936
19937
19938
19939
19940 # Check whether --with-asciidoc was given.
19941 if test ${with_asciidoc+y}
19942 then :
19943 withval=$with_asciidoc; use_asciidoc=$withval
19944 else $as_nop
19945 use_asciidoc=auto
19946 fi
19947
19948
19949
19950 if test "x$use_asciidoc" = x"auto"; then
19951 # Extract the first word of "asciidoc", so it can be a program name with args.
19952 set dummy asciidoc; ac_word=$2
19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19954 printf %s "checking for $ac_word... " >&6; }
19955 if test ${ac_cv_path_ASCIIDOC+y}
19956 then :
19957 printf %s "(cached) " >&6
19958 else $as_nop
19959 case $ASCIIDOC in
19960 [\\/]* | ?:[\\/]*)
19961 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
19962 ;;
19963 *)
19964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19965 for as_dir in $PATH
19966 do
19967 IFS=$as_save_IFS
19968 case $as_dir in #(((
19969 '') as_dir=./ ;;
19970 */) ;;
19971 *) as_dir=$as_dir/ ;;
19972 esac
19973 for ac_exec_ext in '' $ac_executable_extensions; do
19974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19975 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext"
19976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19977 break 2
19978 fi
19979 done
19980 done
19981 IFS=$as_save_IFS
19982
19983 ;;
19984 esac
19985 fi
19986 ASCIIDOC=$ac_cv_path_ASCIIDOC
19987 if test -n "$ASCIIDOC"; then
19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
19989 printf "%s\n" "$ASCIIDOC" >&6; }
19990 else
19991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19992 printf "%s\n" "no" >&6; }
19993 fi
19994
19995
19996 if test "x$ASCIIDOC" = "x"; then
19997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
19998 printf "%s\n" "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
19999 have_asciidoc=no
20000 else
20001 have_asciidoc=yes
20002 fi
20003 elif test "x$use_asciidoc" = x"yes" ; then
20004 # Extract the first word of "asciidoc", so it can be a program name with args.
20005 set dummy asciidoc; ac_word=$2
20006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20007 printf %s "checking for $ac_word... " >&6; }
20008 if test ${ac_cv_path_ASCIIDOC+y}
20009 then :
20010 printf %s "(cached) " >&6
20011 else $as_nop
20012 case $ASCIIDOC in
20013 [\\/]* | ?:[\\/]*)
20014 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
20015 ;;
20016 *)
20017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20018 for as_dir in $PATH
20019 do
20020 IFS=$as_save_IFS
20021 case $as_dir in #(((
20022 '') as_dir=./ ;;
20023 */) ;;
20024 *) as_dir=$as_dir/ ;;
20025 esac
20026 for ac_exec_ext in '' $ac_executable_extensions; do
20027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20028 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext"
20029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20030 break 2
20031 fi
20032 done
20033 done
20034 IFS=$as_save_IFS
20035
20036 ;;
20037 esac
20038 fi
20039 ASCIIDOC=$ac_cv_path_ASCIIDOC
20040 if test -n "$ASCIIDOC"; then
20041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
20042 printf "%s\n" "$ASCIIDOC" >&6; }
20043 else
20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 printf "%s\n" "no" >&6; }
20046 fi
20047
20048
20049 if test "x$ASCIIDOC" = "x"; then
20050 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
20051 fi
20052 have_asciidoc=yes
20053 elif test "x$use_asciidoc" = x"no" ; then
20054 if test "x$ASCIIDOC" != "x"; then
20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
20056 printf "%s\n" "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
20057 fi
20058 have_asciidoc=no
20059 else
20060 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
20061 fi
20062 if test "$have_asciidoc" = yes; then
20063 # scrape the asciidoc version
20064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
20065 printf %s "checking the asciidoc version... " >&6; }
20066 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
20068 printf "%s\n" "$asciidoc_version" >&6; }
20069 as_arg_v1=$asciidoc_version
20070 as_arg_v2=8.4.5
20071 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20072 case $? in #(
20073 1) :
20074 if test "x$use_asciidoc" = xauto; then
20075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
20076 printf "%s\n" "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
20077 have_asciidoc=no
20078 else
20079 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
20080 fi ;; #(
20081 0) :
20082 ;; #(
20083 2) :
20084 ;; #(
20085 *) :
20086 ;;
20087 esac
20088 fi
20089 if test "$have_asciidoc" = yes; then
20090 HAVE_ASCIIDOC_TRUE=
20091 HAVE_ASCIIDOC_FALSE='#'
20092 else
20093 HAVE_ASCIIDOC_TRUE='#'
20094 HAVE_ASCIIDOC_FALSE=
20095 fi
20096
20097
20098
20099 # Check whether --enable-malloc0returnsnull was given.
20100 if test ${enable_malloc0returnsnull+y}
20101 then :
20102 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20103 else $as_nop
20104 MALLOC_ZERO_RETURNS_NULL=auto
20105 fi
20106
20107
20108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
20109 printf %s "checking whether malloc(0) returns NULL... " >&6; }
20110 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20111 if test ${xorg_cv_malloc0_returns_null+y}
20112 then :
20113 printf %s "(cached) " >&6
20114 else $as_nop
20115 if test "$cross_compiling" = yes
20116 then :
20117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20118 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20119 as_fn_error $? "cannot run test program while cross compiling
20120 See \`config.log' for more details" "$LINENO" 5; }
20121 else $as_nop
20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h. */
20124
20125 #include <stdlib.h>
20126
20127 int
20128 main (void)
20129 {
20130
20131 char *m0, *r0, *c0, *p;
20132 m0 = malloc(0);
20133 p = malloc(10);
20134 r0 = realloc(p,0);
20135 c0 = calloc(0,10);
20136 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
20137
20138 ;
20139 return 0;
20140 }
20141 _ACEOF
20142 if ac_fn_c_try_run "$LINENO"
20143 then :
20144 xorg_cv_malloc0_returns_null=yes
20145 else $as_nop
20146 xorg_cv_malloc0_returns_null=no
20147 fi
20148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20149 conftest.$ac_objext conftest.beam conftest.$ac_ext
20150 fi
20151
20152 fi
20153
20154 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
20155 fi
20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20157 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20158
20159 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20160 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20161 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20162 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20163 else
20164 MALLOC_ZERO_CFLAGS=""
20165 XMALLOC_ZERO_CFLAGS=""
20166 XTMALLOC_ZERO_CFLAGS=""
20167 fi
20168
20169
20170
20171
20172
20173
20174 # Obtain compiler/linker options for dependencies
20175
20176 pkg_failed=no
20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" >&5
20178 printf %s "checking for xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1... " >&6; }
20179
20180 if test -n "$XI_CFLAGS"; then
20181 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
20182 elif test -n "$PKG_CONFIG"; then
20183 if test -n "$PKG_CONFIG" && \
20184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5
20185 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5
20186 ac_status=$?
20187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20188 test $ac_status = 0; }; then
20189 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null`
20190 test "x$?" != "x0" && pkg_failed=yes
20191 else
20192 pkg_failed=yes
20193 fi
20194 else
20195 pkg_failed=untried
20196 fi
20197 if test -n "$XI_LIBS"; then
20198 pkg_cv_XI_LIBS="$XI_LIBS"
20199 elif test -n "$PKG_CONFIG"; then
20200 if test -n "$PKG_CONFIG" && \
20201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5
20202 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5
20203 ac_status=$?
20204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20205 test $ac_status = 0; }; then
20206 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null`
20207 test "x$?" != "x0" && pkg_failed=yes
20208 else
20209 pkg_failed=yes
20210 fi
20211 else
20212 pkg_failed=untried
20213 fi
20214
20215
20216
20217 if test $pkg_failed = yes; then
20218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20219 printf "%s\n" "no" >&6; }
20220
20221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20222 _pkg_short_errors_supported=yes
20223 else
20224 _pkg_short_errors_supported=no
20225 fi
20226 if test $_pkg_short_errors_supported = yes; then
20227 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1`
20228 else
20229 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1`
20230 fi
20231 # Put the nasty error message in config.log where it belongs
20232 echo "$XI_PKG_ERRORS" >&5
20233
20234 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1) were not met:
20235
20236 $XI_PKG_ERRORS
20237
20238 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20239 installed software in a non-standard prefix.
20240
20241 Alternatively, you may set the environment variables XI_CFLAGS
20242 and XI_LIBS to avoid the need to call pkg-config.
20243 See the pkg-config man page for more details." "$LINENO" 5
20244 elif test $pkg_failed = untried; then
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20246 printf "%s\n" "no" >&6; }
20247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20248 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20249 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20250 is in your PATH or set the PKG_CONFIG environment variable to the full
20251 path to pkg-config.
20252
20253 Alternatively, you may set the environment variables XI_CFLAGS
20254 and XI_LIBS to avoid the need to call pkg-config.
20255 See the pkg-config man page for more details.
20256
20257 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20258 See \`config.log' for more details" "$LINENO" 5; }
20259 else
20260 XI_CFLAGS=$pkg_cv_XI_CFLAGS
20261 XI_LIBS=$pkg_cv_XI_LIBS
20262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20263 printf "%s\n" "yes" >&6; }
20264
20265 fi
20266 # CFLAGS only for PointerBarrier typedef
20267
20268 pkg_failed=no
20269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xfixes >= 5" >&5
20270 printf %s "checking for xfixes >= 5... " >&6; }
20271
20272 if test -n "$XFIXES_CFLAGS"; then
20273 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
20274 elif test -n "$PKG_CONFIG"; then
20275 if test -n "$PKG_CONFIG" && \
20276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
20277 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
20278 ac_status=$?
20279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20280 test $ac_status = 0; }; then
20281 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
20282 test "x$?" != "x0" && pkg_failed=yes
20283 else
20284 pkg_failed=yes
20285 fi
20286 else
20287 pkg_failed=untried
20288 fi
20289 if test -n "$XFIXES_LIBS"; then
20290 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
20291 elif test -n "$PKG_CONFIG"; then
20292 if test -n "$PKG_CONFIG" && \
20293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
20294 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
20295 ac_status=$?
20296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20297 test $ac_status = 0; }; then
20298 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
20299 test "x$?" != "x0" && pkg_failed=yes
20300 else
20301 pkg_failed=yes
20302 fi
20303 else
20304 pkg_failed=untried
20305 fi
20306
20307
20308
20309 if test $pkg_failed = yes; then
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20311 printf "%s\n" "no" >&6; }
20312
20313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20314 _pkg_short_errors_supported=yes
20315 else
20316 _pkg_short_errors_supported=no
20317 fi
20318 if test $_pkg_short_errors_supported = yes; then
20319 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
20320 else
20321 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
20322 fi
20323 # Put the nasty error message in config.log where it belongs
20324 echo "$XFIXES_PKG_ERRORS" >&5
20325
20326 as_fn_error $? "Package requirements (xfixes >= 5) were not met:
20327
20328 $XFIXES_PKG_ERRORS
20329
20330 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20331 installed software in a non-standard prefix.
20332
20333 Alternatively, you may set the environment variables XFIXES_CFLAGS
20334 and XFIXES_LIBS to avoid the need to call pkg-config.
20335 See the pkg-config man page for more details." "$LINENO" 5
20336 elif test $pkg_failed = untried; then
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20338 printf "%s\n" "no" >&6; }
20339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20340 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20341 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20342 is in your PATH or set the PKG_CONFIG environment variable to the full
20343 path to pkg-config.
20344
20345 Alternatively, you may set the environment variables XFIXES_CFLAGS
20346 and XFIXES_LIBS to avoid the need to call pkg-config.
20347 See the pkg-config man page for more details.
20348
20349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20350 See \`config.log' for more details" "$LINENO" 5; }
20351 else
20352 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
20353 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20355 printf "%s\n" "yes" >&6; }
20356
20357 fi
20358
20359 # Check for xmlto and asciidoc for man page conversion
20360 # (only needed by people building tarballs)
20361 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
20362 have_doctools=yes
20363 else
20364 have_doctools=no
20365 fi
20366 if test $have_doctools = yes; then
20367 HAVE_DOCTOOLS_TRUE=
20368 HAVE_DOCTOOLS_FALSE='#'
20369 else
20370 HAVE_DOCTOOLS_TRUE='#'
20371 HAVE_DOCTOOLS_FALSE=
20372 fi
20373
20374 if test $have_doctools = no; then
20375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
20376 printf "%s\n" "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
20377 fi
20378
20379 # Determine if the source for man pages is available
20380 # It may already be present (tarball) or can be generated using doctools
20381 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
20382 test $have_doctools = yes; then
20383 INSTALL_MANPAGES_TRUE=
20384 INSTALL_MANPAGES_FALSE='#'
20385 else
20386 INSTALL_MANPAGES_TRUE='#'
20387 INSTALL_MANPAGES_FALSE=
20388 fi
20389
20390
20391 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
20392
20393 cat >confcache <<\_ACEOF
20394 # This file is a shell script that caches the results of configure
20395 # tests run on this system so they can be shared between configure
20396 # scripts and configure runs, see configure's option --config-cache.
20397 # It is not useful on other systems. If it contains results you don't
20398 # want to keep, you may remove or edit it.
20399 #
20400 # config.status only pays attention to the cache file if you give it
20401 # the --recheck option to rerun configure.
20402 #
20403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20405 # following values.
20406
20407 _ACEOF
20408
20409 # The following way of writing the cache mishandles newlines in values,
20410 # but we know of no workaround that is simple, portable, and efficient.
20411 # So, we kill variables containing newlines.
20412 # Ultrix sh set writes to stderr and can't be redirected directly,
20413 # and sets the high bit in the cache file unless we assign to the vars.
20414 (
20415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20416 eval ac_val=\$$ac_var
20417 case $ac_val in #(
20418 *${as_nl}*)
20419 case $ac_var in #(
20420 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20421 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20422 esac
20423 case $ac_var in #(
20424 _ | IFS | as_nl) ;; #(
20425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20426 *) { eval $ac_var=; unset $ac_var;} ;;
20427 esac ;;
20428 esac
20429 done
20430
20431 (set) 2>&1 |
20432 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20433 *${as_nl}ac_space=\ *)
20434 # `set' does not quote correctly, so add quotes: double-quote
20435 # substitution turns \\\\ into \\, and sed turns \\ into \.
20436 sed -n \
20437 "s/'/'\\\\''/g;
20438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20439 ;; #(
20440 *)
20441 # `set' quotes correctly as required by POSIX, so do not add quotes.
20442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20443 ;;
20444 esac |
20445 sort
20446 ) |
20447 sed '
20448 /^ac_cv_env_/b end
20449 t clear
20450 :clear
20451 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20452 t end
20453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20454 :end' >>confcache
20455 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20456 if test -w "$cache_file"; then
20457 if test "x$cache_file" != "x/dev/null"; then
20458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20459 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20460 if test ! -f "$cache_file" || test -h "$cache_file"; then
20461 cat confcache >"$cache_file"
20462 else
20463 case $cache_file in #(
20464 */* | ?:*)
20465 mv -f confcache "$cache_file"$$ &&
20466 mv -f "$cache_file"$$ "$cache_file" ;; #(
20467 *)
20468 mv -f confcache "$cache_file" ;;
20469 esac
20470 fi
20471 fi
20472 else
20473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20474 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20475 fi
20476 fi
20477 rm -f confcache
20478
20479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20480 # Let make expand exec_prefix.
20481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20482
20483 DEFS=-DHAVE_CONFIG_H
20484
20485 ac_libobjs=
20486 ac_ltlibobjs=
20487 U=
20488 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20489 # 1. Remove the extension, and $U if already installed.
20490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20491 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20493 # will be set to the directory where LIBOBJS objects are built.
20494 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20495 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20496 done
20497 LIBOBJS=$ac_libobjs
20498
20499 LTLIBOBJS=$ac_ltlibobjs
20500
20501
20502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20503 printf %s "checking that generated files are newer than configure... " >&6; }
20504 if test -n "$am_sleep_pid"; then
20505 # Hide warnings about reused PIDs.
20506 wait $am_sleep_pid 2>/dev/null
20507 fi
20508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20509 printf "%s\n" "done" >&6; }
20510 if test -n "$EXEEXT"; then
20511 am__EXEEXT_TRUE=
20512 am__EXEEXT_FALSE='#'
20513 else
20514 am__EXEEXT_TRUE='#'
20515 am__EXEEXT_FALSE=
20516 fi
20517
20518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20519 as_fn_error $? "conditional \"AMDEP\" was never defined.
20520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20521 fi
20522 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20523 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20525 fi
20526 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
20527 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
20528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20529 fi
20530 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
20531 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
20532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20533 fi
20534 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20535 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20537 fi
20538 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20539 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20541 fi
20542 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20543 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20545 fi
20546 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20547 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20549 fi
20550 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20551 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20553 fi
20554 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
20555 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
20556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20557 fi
20558 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
20559 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
20560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20561 fi
20562 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
20563 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
20564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20565 fi
20566
20567 : "${CONFIG_STATUS=./config.status}"
20568 ac_write_fail=0
20569 ac_clean_files_save=$ac_clean_files
20570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20572 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20573 as_write_fail=0
20574 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20575 #! $SHELL
20576 # Generated by $as_me.
20577 # Run this file to recreate the current configuration.
20578 # Compiler output produced by configure, useful for debugging
20579 # configure, is in config.log if it exists.
20580
20581 debug=false
20582 ac_cs_recheck=false
20583 ac_cs_silent=false
20584
20585 SHELL=\${CONFIG_SHELL-$SHELL}
20586 export SHELL
20587 _ASEOF
20588 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20589 ## -------------------- ##
20590 ## M4sh Initialization. ##
20591 ## -------------------- ##
20592
20593 # Be more Bourne compatible
20594 DUALCASE=1; export DUALCASE # for MKS sh
20595 as_nop=:
20596 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20597 then :
20598 emulate sh
20599 NULLCMD=:
20600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20601 # is contrary to our usage. Disable this feature.
20602 alias -g '${1+"$@"}'='"$@"'
20603 setopt NO_GLOB_SUBST
20604 else $as_nop
20605 case `(set -o) 2>/dev/null` in #(
20606 *posix*) :
20607 set -o posix ;; #(
20608 *) :
20609 ;;
20610 esac
20611 fi
20612
20613
20614
20615 # Reset variables that may have inherited troublesome values from
20616 # the environment.
20617
20618 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20619 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20620 # side effect of setting IFS to empty, thus disabling word splitting.)
20621 # Quoting is to prevent editors from complaining about space-tab.
20622 as_nl='
20623 '
20624 export as_nl
20625 IFS=" "" $as_nl"
20626
20627 PS1='$ '
20628 PS2='> '
20629 PS4='+ '
20630
20631 # Ensure predictable behavior from utilities with locale-dependent output.
20632 LC_ALL=C
20633 export LC_ALL
20634 LANGUAGE=C
20635 export LANGUAGE
20636
20637 # We cannot yet rely on "unset" to work, but we need these variables
20638 # to be unset--not just set to an empty or harmless value--now, to
20639 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20640 # also avoids known problems related to "unset" and subshell syntax
20641 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20642 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20643 do eval test \${$as_var+y} \
20644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20645 done
20646
20647 # Ensure that fds 0, 1, and 2 are open.
20648 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20649 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20650 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20651
20652 # The user is always right.
20653 if ${PATH_SEPARATOR+false} :; then
20654 PATH_SEPARATOR=:
20655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20657 PATH_SEPARATOR=';'
20658 }
20659 fi
20660
20661
20662 # Find who we are. Look in the path if we contain no directory separator.
20663 as_myself=
20664 case $0 in #((
20665 *[\\/]* ) as_myself=$0 ;;
20666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20667 for as_dir in $PATH
20668 do
20669 IFS=$as_save_IFS
20670 case $as_dir in #(((
20671 '') as_dir=./ ;;
20672 */) ;;
20673 *) as_dir=$as_dir/ ;;
20674 esac
20675 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20676 done
20677 IFS=$as_save_IFS
20678
20679 ;;
20680 esac
20681 # We did not find ourselves, most probably we were run as `sh COMMAND'
20682 # in which case we are not to be found in the path.
20683 if test "x$as_myself" = x; then
20684 as_myself=$0
20685 fi
20686 if test ! -f "$as_myself"; then
20687 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20688 exit 1
20689 fi
20690
20691
20692
20693 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20694 # ----------------------------------------
20695 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20696 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20697 # script with STATUS, using 1 if that was 0.
20698 as_fn_error ()
20699 {
20700 as_status=$1; test $as_status -eq 0 && as_status=1
20701 if test "$4"; then
20702 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20704 fi
20705 printf "%s\n" "$as_me: error: $2" >&2
20706 as_fn_exit $as_status
20707 } # as_fn_error
20708
20709
20710
20711 # as_fn_set_status STATUS
20712 # -----------------------
20713 # Set $? to STATUS, without forking.
20714 as_fn_set_status ()
20715 {
20716 return $1
20717 } # as_fn_set_status
20718
20719 # as_fn_exit STATUS
20720 # -----------------
20721 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20722 as_fn_exit ()
20723 {
20724 set +e
20725 as_fn_set_status $1
20726 exit $1
20727 } # as_fn_exit
20728
20729 # as_fn_unset VAR
20730 # ---------------
20731 # Portably unset VAR.
20732 as_fn_unset ()
20733 {
20734 { eval $1=; unset $1;}
20735 }
20736 as_unset=as_fn_unset
20737
20738 # as_fn_append VAR VALUE
20739 # ----------------------
20740 # Append the text in VALUE to the end of the definition contained in VAR. Take
20741 # advantage of any shell optimizations that allow amortized linear growth over
20742 # repeated appends, instead of the typical quadratic growth present in naive
20743 # implementations.
20744 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20745 then :
20746 eval 'as_fn_append ()
20747 {
20748 eval $1+=\$2
20749 }'
20750 else $as_nop
20751 as_fn_append ()
20752 {
20753 eval $1=\$$1\$2
20754 }
20755 fi # as_fn_append
20756
20757 # as_fn_arith ARG...
20758 # ------------------
20759 # Perform arithmetic evaluation on the ARGs, and store the result in the
20760 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20761 # must be portable across $(()) and expr.
20762 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20763 then :
20764 eval 'as_fn_arith ()
20765 {
20766 as_val=$(( $* ))
20767 }'
20768 else $as_nop
20769 as_fn_arith ()
20770 {
20771 as_val=`expr "$@" || test $? -eq 1`
20772 }
20773 fi # as_fn_arith
20774
20775
20776 if expr a : '\(a\)' >/dev/null 2>&1 &&
20777 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20778 as_expr=expr
20779 else
20780 as_expr=false
20781 fi
20782
20783 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20784 as_basename=basename
20785 else
20786 as_basename=false
20787 fi
20788
20789 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20790 as_dirname=dirname
20791 else
20792 as_dirname=false
20793 fi
20794
20795 as_me=`$as_basename -- "$0" ||
20796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20797 X"$0" : 'X\(//\)$' \| \
20798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20799 printf "%s\n" X/"$0" |
20800 sed '/^.*\/\([^/][^/]*\)\/*$/{
20801 s//\1/
20802 q
20803 }
20804 /^X\/\(\/\/\)$/{
20805 s//\1/
20806 q
20807 }
20808 /^X\/\(\/\).*/{
20809 s//\1/
20810 q
20811 }
20812 s/.*/./; q'`
20813
20814 # Avoid depending upon Character Ranges.
20815 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20816 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20817 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20818 as_cr_digits='0123456789'
20819 as_cr_alnum=$as_cr_Letters$as_cr_digits
20820
20821
20822 # Determine whether it's possible to make 'echo' print without a newline.
20823 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20824 # for compatibility with existing Makefiles.
20825 ECHO_C= ECHO_N= ECHO_T=
20826 case `echo -n x` in #(((((
20827 -n*)
20828 case `echo 'xy\c'` in
20829 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20830 xy) ECHO_C='\c';;
20831 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20832 ECHO_T=' ';;
20833 esac;;
20834 *)
20835 ECHO_N='-n';;
20836 esac
20837
20838 # For backward compatibility with old third-party macros, we provide
20839 # the shell variables $as_echo and $as_echo_n. New code should use
20840 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20841 as_echo='printf %s\n'
20842 as_echo_n='printf %s'
20843
20844 rm -f conf$$ conf$$.exe conf$$.file
20845 if test -d conf$$.dir; then
20846 rm -f conf$$.dir/conf$$.file
20847 else
20848 rm -f conf$$.dir
20849 mkdir conf$$.dir 2>/dev/null
20850 fi
20851 if (echo >conf$$.file) 2>/dev/null; then
20852 if ln -s conf$$.file conf$$ 2>/dev/null; then
20853 as_ln_s='ln -s'
20854 # ... but there are two gotchas:
20855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20857 # In both cases, we have to default to `cp -pR'.
20858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20859 as_ln_s='cp -pR'
20860 elif ln conf$$.file conf$$ 2>/dev/null; then
20861 as_ln_s=ln
20862 else
20863 as_ln_s='cp -pR'
20864 fi
20865 else
20866 as_ln_s='cp -pR'
20867 fi
20868 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20869 rmdir conf$$.dir 2>/dev/null
20870
20871
20872 # as_fn_mkdir_p
20873 # -------------
20874 # Create "$as_dir" as a directory, including parents if necessary.
20875 as_fn_mkdir_p ()
20876 {
20877
20878 case $as_dir in #(
20879 -*) as_dir=./$as_dir;;
20880 esac
20881 test -d "$as_dir" || eval $as_mkdir_p || {
20882 as_dirs=
20883 while :; do
20884 case $as_dir in #(
20885 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20886 *) as_qdir=$as_dir;;
20887 esac
20888 as_dirs="'$as_qdir' $as_dirs"
20889 as_dir=`$as_dirname -- "$as_dir" ||
20890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20891 X"$as_dir" : 'X\(//\)[^/]' \| \
20892 X"$as_dir" : 'X\(//\)$' \| \
20893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20894 printf "%s\n" X"$as_dir" |
20895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20896 s//\1/
20897 q
20898 }
20899 /^X\(\/\/\)[^/].*/{
20900 s//\1/
20901 q
20902 }
20903 /^X\(\/\/\)$/{
20904 s//\1/
20905 q
20906 }
20907 /^X\(\/\).*/{
20908 s//\1/
20909 q
20910 }
20911 s/.*/./; q'`
20912 test -d "$as_dir" && break
20913 done
20914 test -z "$as_dirs" || eval "mkdir $as_dirs"
20915 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20916
20917
20918 } # as_fn_mkdir_p
20919 if mkdir -p . 2>/dev/null; then
20920 as_mkdir_p='mkdir -p "$as_dir"'
20921 else
20922 test -d ./-p && rmdir ./-p
20923 as_mkdir_p=false
20924 fi
20925
20926
20927 # as_fn_executable_p FILE
20928 # -----------------------
20929 # Test if FILE is an executable regular file.
20930 as_fn_executable_p ()
20931 {
20932 test -f "$1" && test -x "$1"
20933 } # as_fn_executable_p
20934 as_test_x='test -x'
20935 as_executable_p=as_fn_executable_p
20936
20937 # Sed expression to map a string onto a valid CPP name.
20938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20939
20940 # Sed expression to map a string onto a valid variable name.
20941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20942
20943
20944 exec 6>&1
20945 ## ----------------------------------- ##
20946 ## Main body of $CONFIG_STATUS script. ##
20947 ## ----------------------------------- ##
20948 _ASEOF
20949 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20950
20951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20952 # Save the log message, to keep $0 and so on meaningful, and to
20953 # report actual input values of CONFIG_FILES etc. instead of their
20954 # values after options handling.
20955 ac_log="
20956 This file was extended by libXi $as_me 1.8.2, which was
20957 generated by GNU Autoconf 2.71. Invocation command line was
20958
20959 CONFIG_FILES = $CONFIG_FILES
20960 CONFIG_HEADERS = $CONFIG_HEADERS
20961 CONFIG_LINKS = $CONFIG_LINKS
20962 CONFIG_COMMANDS = $CONFIG_COMMANDS
20963 $ $0 $@
20964
20965 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20966 "
20967
20968 _ACEOF
20969
20970 case $ac_config_files in *"
20971 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20972 esac
20973
20974 case $ac_config_headers in *"
20975 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20976 esac
20977
20978
20979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20980 # Files that config.status was made for.
20981 config_files="$ac_config_files"
20982 config_headers="$ac_config_headers"
20983 config_commands="$ac_config_commands"
20984
20985 _ACEOF
20986
20987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20988 ac_cs_usage="\
20989 \`$as_me' instantiates files and other configuration actions
20990 from templates according to the current configuration. Unless the files
20991 and actions are specified as TAGs, all are instantiated by default.
20992
20993 Usage: $0 [OPTION]... [TAG]...
20994
20995 -h, --help print this help, then exit
20996 -V, --version print version number and configuration settings, then exit
20997 --config print configuration, then exit
20998 -q, --quiet, --silent
20999 do not print progress messages
21000 -d, --debug don't remove temporary files
21001 --recheck update $as_me by reconfiguring in the same conditions
21002 --file=FILE[:TEMPLATE]
21003 instantiate the configuration file FILE
21004 --header=FILE[:TEMPLATE]
21005 instantiate the configuration header FILE
21006
21007 Configuration files:
21008 $config_files
21009
21010 Configuration headers:
21011 $config_headers
21012
21013 Configuration commands:
21014 $config_commands
21015
21016 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>."
21017
21018 _ACEOF
21019 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21020 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21022 ac_cs_config='$ac_cs_config_escaped'
21023 ac_cs_version="\\
21024 libXi config.status 1.8.2
21025 configured by $0, generated by GNU Autoconf 2.71,
21026 with options \\"\$ac_cs_config\\"
21027
21028 Copyright (C) 2021 Free Software Foundation, Inc.
21029 This config.status script is free software; the Free Software Foundation
21030 gives unlimited permission to copy, distribute and modify it."
21031
21032 ac_pwd='$ac_pwd'
21033 srcdir='$srcdir'
21034 INSTALL='$INSTALL'
21035 MKDIR_P='$MKDIR_P'
21036 AWK='$AWK'
21037 test -n "\$AWK" || AWK=awk
21038 _ACEOF
21039
21040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21041 # The default lists apply if the user does not specify any file.
21042 ac_need_defaults=:
21043 while test $# != 0
21044 do
21045 case $1 in
21046 --*=?*)
21047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21049 ac_shift=:
21050 ;;
21051 --*=)
21052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21053 ac_optarg=
21054 ac_shift=:
21055 ;;
21056 *)
21057 ac_option=$1
21058 ac_optarg=$2
21059 ac_shift=shift
21060 ;;
21061 esac
21062
21063 case $ac_option in
21064 # Handling of the options.
21065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21066 ac_cs_recheck=: ;;
21067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21068 printf "%s\n" "$ac_cs_version"; exit ;;
21069 --config | --confi | --conf | --con | --co | --c )
21070 printf "%s\n" "$ac_cs_config"; exit ;;
21071 --debug | --debu | --deb | --de | --d | -d )
21072 debug=: ;;
21073 --file | --fil | --fi | --f )
21074 $ac_shift
21075 case $ac_optarg in
21076 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21077 '') as_fn_error $? "missing file argument" ;;
21078 esac
21079 as_fn_append CONFIG_FILES " '$ac_optarg'"
21080 ac_need_defaults=false;;
21081 --header | --heade | --head | --hea )
21082 $ac_shift
21083 case $ac_optarg in
21084 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21085 esac
21086 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21087 ac_need_defaults=false;;
21088 --he | --h)
21089 # Conflict between --help and --header
21090 as_fn_error $? "ambiguous option: \`$1'
21091 Try \`$0 --help' for more information.";;
21092 --help | --hel | -h )
21093 printf "%s\n" "$ac_cs_usage"; exit ;;
21094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21096 ac_cs_silent=: ;;
21097
21098 # This is an error.
21099 -*) as_fn_error $? "unrecognized option: \`$1'
21100 Try \`$0 --help' for more information." ;;
21101
21102 *) as_fn_append ac_config_targets " $1"
21103 ac_need_defaults=false ;;
21104
21105 esac
21106 shift
21107 done
21108
21109 ac_configure_extra_args=
21110
21111 if $ac_cs_silent; then
21112 exec 6>/dev/null
21113 ac_configure_extra_args="$ac_configure_extra_args --silent"
21114 fi
21115
21116 _ACEOF
21117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21118 if \$ac_cs_recheck; then
21119 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21120 shift
21121 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21122 CONFIG_SHELL='$SHELL'
21123 export CONFIG_SHELL
21124 exec "\$@"
21125 fi
21126
21127 _ACEOF
21128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21129 exec 5>>config.log
21130 {
21131 echo
21132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21133 ## Running $as_me. ##
21134 _ASBOX
21135 printf "%s\n" "$ac_log"
21136 } >&5
21137
21138 _ACEOF
21139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21140 #
21141 # INIT-COMMANDS
21142 #
21143 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21144
21145
21146 # The HP-UX ksh and POSIX shell print the target directory to stdout
21147 # if CDPATH is set.
21148 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21149
21150 sed_quote_subst='$sed_quote_subst'
21151 double_quote_subst='$double_quote_subst'
21152 delay_variable_subst='$delay_variable_subst'
21153 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21154 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21155 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21156 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21157 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21158 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21159 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21160 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21161 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21162 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21163 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21164 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21165 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21166 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21167 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21168 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21169 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21170 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21171 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21172 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21173 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21174 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21175 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21176 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21177 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21178 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21179 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21180 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21181 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21182 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21183 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21184 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21185 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21186 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21187 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21188 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21189 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21190 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21191 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21192 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21193 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21194 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21195 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21196 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21197 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21198 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21199 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21200 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21201 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21202 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21203 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21204 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21205 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21206 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21207 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21208 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21209 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21210 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21211 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21212 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21213 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"`'
21214 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21215 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21216 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21217 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21218 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21219 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21220 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21221 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21222 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21223 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21224 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21225 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21226 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21227 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21228 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21229 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21230 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21231 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21232 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21233 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21234 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21235 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21236 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21237 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21238 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21239 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21240 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21241 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21242 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21243 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21244 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21245 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21246 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21247 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21248 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21249 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21250 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21251 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21252 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21253 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21254 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21255 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21256 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21257 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21258 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21259 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21260 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21261 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21262 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21263 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21264 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21265 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21266 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21267 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21268 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21269 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21270 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21271 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21272 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21273 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21274 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21275 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21276 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21277 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21278 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21279 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21280 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21281 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21282 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21283 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21284 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21285 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21286 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21287 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21288 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21289 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21290
21291 LTCC='$LTCC'
21292 LTCFLAGS='$LTCFLAGS'
21293 compiler='$compiler_DEFAULT'
21294
21295 # A function that is used when there is no print builtin or printf.
21296 func_fallback_echo ()
21297 {
21298 eval 'cat <<_LTECHO_EOF
21299 \$1
21300 _LTECHO_EOF'
21301 }
21302
21303 # Quote evaled strings.
21304 for var in SHELL \
21305 ECHO \
21306 PATH_SEPARATOR \
21307 SED \
21308 GREP \
21309 EGREP \
21310 FGREP \
21311 LD \
21312 NM \
21313 LN_S \
21314 lt_SP2NL \
21315 lt_NL2SP \
21316 reload_flag \
21317 FILECMD \
21318 OBJDUMP \
21319 deplibs_check_method \
21320 file_magic_cmd \
21321 file_magic_glob \
21322 want_nocaseglob \
21323 DLLTOOL \
21324 sharedlib_from_linklib_cmd \
21325 AR \
21326 archiver_list_spec \
21327 STRIP \
21328 RANLIB \
21329 CC \
21330 CFLAGS \
21331 compiler \
21332 lt_cv_sys_global_symbol_pipe \
21333 lt_cv_sys_global_symbol_to_cdecl \
21334 lt_cv_sys_global_symbol_to_import \
21335 lt_cv_sys_global_symbol_to_c_name_address \
21336 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21337 lt_cv_nm_interface \
21338 nm_file_list_spec \
21339 lt_cv_truncate_bin \
21340 lt_prog_compiler_no_builtin_flag \
21341 lt_prog_compiler_pic \
21342 lt_prog_compiler_wl \
21343 lt_prog_compiler_static \
21344 lt_cv_prog_compiler_c_o \
21345 need_locks \
21346 MANIFEST_TOOL \
21347 DSYMUTIL \
21348 NMEDIT \
21349 LIPO \
21350 OTOOL \
21351 OTOOL64 \
21352 shrext_cmds \
21353 export_dynamic_flag_spec \
21354 whole_archive_flag_spec \
21355 compiler_needs_object \
21356 with_gnu_ld \
21357 allow_undefined_flag \
21358 no_undefined_flag \
21359 hardcode_libdir_flag_spec \
21360 hardcode_libdir_separator \
21361 exclude_expsyms \
21362 include_expsyms \
21363 file_list_spec \
21364 variables_saved_for_relink \
21365 libname_spec \
21366 library_names_spec \
21367 soname_spec \
21368 install_override_mode \
21369 finish_eval \
21370 old_striplib \
21371 striplib; do
21372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21373 *[\\\\\\\`\\"\\\$]*)
21374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21375 ;;
21376 *)
21377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21378 ;;
21379 esac
21380 done
21381
21382 # Double-quote double-evaled strings.
21383 for var in reload_cmds \
21384 old_postinstall_cmds \
21385 old_postuninstall_cmds \
21386 old_archive_cmds \
21387 extract_expsyms_cmds \
21388 old_archive_from_new_cmds \
21389 old_archive_from_expsyms_cmds \
21390 archive_cmds \
21391 archive_expsym_cmds \
21392 module_cmds \
21393 module_expsym_cmds \
21394 export_symbols_cmds \
21395 prelink_cmds \
21396 postlink_cmds \
21397 postinstall_cmds \
21398 postuninstall_cmds \
21399 finish_cmds \
21400 sys_lib_search_path_spec \
21401 configure_time_dlsearch_path \
21402 configure_time_lt_sys_library_path; do
21403 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21404 *[\\\\\\\`\\"\\\$]*)
21405 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21406 ;;
21407 *)
21408 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21409 ;;
21410 esac
21411 done
21412
21413 ac_aux_dir='$ac_aux_dir'
21414
21415 # See if we are running on zsh, and set the options that allow our
21416 # commands through without removal of \ escapes INIT.
21417 if test -n "\${ZSH_VERSION+set}"; then
21418 setopt NO_GLOB_SUBST
21419 fi
21420
21421
21422 PACKAGE='$PACKAGE'
21423 VERSION='$VERSION'
21424 RM='$RM'
21425 ofile='$ofile'
21426
21427
21428
21429
21430 _ACEOF
21431
21432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21433
21434 # Handling of arguments.
21435 for ac_config_target in $ac_config_targets
21436 do
21437 case $ac_config_target in
21438 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21442 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21443 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21444 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
21445 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
21446
21447 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21448 esac
21449 done
21450
21451
21452 # If the user did not use the arguments to specify the items to instantiate,
21453 # then the envvar interface is used. Set only those that are not.
21454 # We use the long form for the default assignment because of an extremely
21455 # bizarre bug on SunOS 4.1.3.
21456 if $ac_need_defaults; then
21457 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21458 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21459 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21460 fi
21461
21462 # Have a temporary directory for convenience. Make it in the build tree
21463 # simply because there is no reason against having it here, and in addition,
21464 # creating and moving files from /tmp can sometimes cause problems.
21465 # Hook for its removal unless debugging.
21466 # Note that there is a small window in which the directory will not be cleaned:
21467 # after its creation but before its name has been assigned to `$tmp'.
21468 $debug ||
21469 {
21470 tmp= ac_tmp=
21471 trap 'exit_status=$?
21472 : "${ac_tmp:=$tmp}"
21473 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21474 ' 0
21475 trap 'as_fn_exit 1' 1 2 13 15
21476 }
21477 # Create a (secure) tmp directory for tmp files.
21478
21479 {
21480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21481 test -d "$tmp"
21482 } ||
21483 {
21484 tmp=./conf$$-$RANDOM
21485 (umask 077 && mkdir "$tmp")
21486 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21487 ac_tmp=$tmp
21488
21489 # Set up the scripts for CONFIG_FILES section.
21490 # No need to generate them if there are no CONFIG_FILES.
21491 # This happens for instance with `./config.status config.h'.
21492 if test -n "$CONFIG_FILES"; then
21493
21494
21495 ac_cr=`echo X | tr X '\015'`
21496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21497 # But we know of no other shell where ac_cr would be empty at this
21498 # point, so we can use a bashism as a fallback.
21499 if test "x$ac_cr" = x; then
21500 eval ac_cr=\$\'\\r\'
21501 fi
21502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21504 ac_cs_awk_cr='\\r'
21505 else
21506 ac_cs_awk_cr=$ac_cr
21507 fi
21508
21509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21510 _ACEOF
21511
21512
21513 {
21514 echo "cat >conf$$subs.awk <<_ACEOF" &&
21515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21516 echo "_ACEOF"
21517 } >conf$$subs.sh ||
21518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21519 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21520 ac_delim='%!_!# '
21521 for ac_last_try in false false false false false :; do
21522 . ./conf$$subs.sh ||
21523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21524
21525 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21526 if test $ac_delim_n = $ac_delim_num; then
21527 break
21528 elif $ac_last_try; then
21529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21530 else
21531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21532 fi
21533 done
21534 rm -f conf$$subs.sh
21535
21536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21537 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21538 _ACEOF
21539 sed -n '
21540 h
21541 s/^/S["/; s/!.*/"]=/
21542 p
21543 g
21544 s/^[^!]*!//
21545 :repl
21546 t repl
21547 s/'"$ac_delim"'$//
21548 t delim
21549 :nl
21550 h
21551 s/\(.\{148\}\)..*/\1/
21552 t more1
21553 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21554 p
21555 n
21556 b repl
21557 :more1
21558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21559 p
21560 g
21561 s/.\{148\}//
21562 t nl
21563 :delim
21564 h
21565 s/\(.\{148\}\)..*/\1/
21566 t more2
21567 s/["\\]/\\&/g; s/^/"/; s/$/"/
21568 p
21569 b
21570 :more2
21571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21572 p
21573 g
21574 s/.\{148\}//
21575 t delim
21576 ' <conf$$subs.awk | sed '
21577 /^[^""]/{
21578 N
21579 s/\n//
21580 }
21581 ' >>$CONFIG_STATUS || ac_write_fail=1
21582 rm -f conf$$subs.awk
21583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21584 _ACAWK
21585 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21586 for (key in S) S_is_set[key] = 1
21587 FS = ""
21588
21589 }
21590 {
21591 line = $ 0
21592 nfields = split(line, field, "@")
21593 substed = 0
21594 len = length(field[1])
21595 for (i = 2; i < nfields; i++) {
21596 key = field[i]
21597 keylen = length(key)
21598 if (S_is_set[key]) {
21599 value = S[key]
21600 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21601 len += length(value) + length(field[++i])
21602 substed = 1
21603 } else
21604 len += 1 + keylen
21605 }
21606
21607 print line
21608 }
21609
21610 _ACAWK
21611 _ACEOF
21612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21613 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21615 else
21616 cat
21617 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21619 _ACEOF
21620
21621 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21622 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21623 # trailing colons and then remove the whole line if VPATH becomes empty
21624 # (actually we leave an empty line to preserve line numbers).
21625 if test "x$srcdir" = x.; then
21626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21627 h
21628 s///
21629 s/^/:/
21630 s/[ ]*$/:/
21631 s/:\$(srcdir):/:/g
21632 s/:\${srcdir}:/:/g
21633 s/:@srcdir@:/:/g
21634 s/^:*//
21635 s/:*$//
21636 x
21637 s/\(=[ ]*\).*/\1/
21638 G
21639 s/\n//
21640 s/^[^=]*=[ ]*$//
21641 }'
21642 fi
21643
21644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21645 fi # test -n "$CONFIG_FILES"
21646
21647 # Set up the scripts for CONFIG_HEADERS section.
21648 # No need to generate them if there are no CONFIG_HEADERS.
21649 # This happens for instance with `./config.status Makefile'.
21650 if test -n "$CONFIG_HEADERS"; then
21651 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21652 BEGIN {
21653 _ACEOF
21654
21655 # Transform confdefs.h into an awk script `defines.awk', embedded as
21656 # here-document in config.status, that substitutes the proper values into
21657 # config.h.in to produce config.h.
21658
21659 # Create a delimiter string that does not exist in confdefs.h, to ease
21660 # handling of long lines.
21661 ac_delim='%!_!# '
21662 for ac_last_try in false false :; do
21663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21664 if test -z "$ac_tt"; then
21665 break
21666 elif $ac_last_try; then
21667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21668 else
21669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21670 fi
21671 done
21672
21673 # For the awk script, D is an array of macro values keyed by name,
21674 # likewise P contains macro parameters if any. Preserve backslash
21675 # newline sequences.
21676
21677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21678 sed -n '
21679 s/.\{148\}/&'"$ac_delim"'/g
21680 t rset
21681 :rset
21682 s/^[ ]*#[ ]*define[ ][ ]*/ /
21683 t def
21684 d
21685 :def
21686 s/\\$//
21687 t bsnl
21688 s/["\\]/\\&/g
21689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21690 D["\1"]=" \3"/p
21691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21692 d
21693 :bsnl
21694 s/["\\]/\\&/g
21695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21696 D["\1"]=" \3\\\\\\n"\\/p
21697 t cont
21698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21699 t cont
21700 d
21701 :cont
21702 n
21703 s/.\{148\}/&'"$ac_delim"'/g
21704 t clear
21705 :clear
21706 s/\\$//
21707 t bsnlc
21708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21709 d
21710 :bsnlc
21711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21712 b cont
21713 ' <confdefs.h | sed '
21714 s/'"$ac_delim"'/"\\\
21715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21716
21717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21718 for (key in D) D_is_set[key] = 1
21719 FS = ""
21720 }
21721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21722 line = \$ 0
21723 split(line, arg, " ")
21724 if (arg[1] == "#") {
21725 defundef = arg[2]
21726 mac1 = arg[3]
21727 } else {
21728 defundef = substr(arg[1], 2)
21729 mac1 = arg[2]
21730 }
21731 split(mac1, mac2, "(") #)
21732 macro = mac2[1]
21733 prefix = substr(line, 1, index(line, defundef) - 1)
21734 if (D_is_set[macro]) {
21735 # Preserve the white space surrounding the "#".
21736 print prefix "define", macro P[macro] D[macro]
21737 next
21738 } else {
21739 # Replace #undef with comments. This is necessary, for example,
21740 # in the case of _POSIX_SOURCE, which is predefined and required
21741 # on some systems where configure will not decide to define it.
21742 if (defundef == "undef") {
21743 print "/*", prefix defundef, macro, "*/"
21744 next
21745 }
21746 }
21747 }
21748 { print }
21749 _ACAWK
21750 _ACEOF
21751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21753 fi # test -n "$CONFIG_HEADERS"
21754
21755
21756 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21757 shift
21758 for ac_tag
21759 do
21760 case $ac_tag in
21761 :[FHLC]) ac_mode=$ac_tag; continue;;
21762 esac
21763 case $ac_mode$ac_tag in
21764 :[FHL]*:*);;
21765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21766 :[FH]-) ac_tag=-:-;;
21767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21768 esac
21769 ac_save_IFS=$IFS
21770 IFS=:
21771 set x $ac_tag
21772 IFS=$ac_save_IFS
21773 shift
21774 ac_file=$1
21775 shift
21776
21777 case $ac_mode in
21778 :L) ac_source=$1;;
21779 :[FH])
21780 ac_file_inputs=
21781 for ac_f
21782 do
21783 case $ac_f in
21784 -) ac_f="$ac_tmp/stdin";;
21785 *) # Look for the file first in the build tree, then in the source tree
21786 # (if the path is not absolute). The absolute path cannot be DOS-style,
21787 # because $ac_f cannot contain `:'.
21788 test -f "$ac_f" ||
21789 case $ac_f in
21790 [\\/$]*) false;;
21791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21792 esac ||
21793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21794 esac
21795 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21796 as_fn_append ac_file_inputs " '$ac_f'"
21797 done
21798
21799 # Let's still pretend it is `configure' which instantiates (i.e., don't
21800 # use $as_me), people would be surprised to read:
21801 # /* config.h. Generated by config.status. */
21802 configure_input='Generated from '`
21803 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21804 `' by configure.'
21805 if test x"$ac_file" != x-; then
21806 configure_input="$ac_file. $configure_input"
21807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21808 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21809 fi
21810 # Neutralize special characters interpreted by sed in replacement strings.
21811 case $configure_input in #(
21812 *\&* | *\|* | *\\* )
21813 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21815 *) ac_sed_conf_input=$configure_input;;
21816 esac
21817
21818 case $ac_tag in
21819 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21821 esac
21822 ;;
21823 esac
21824
21825 ac_dir=`$as_dirname -- "$ac_file" ||
21826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21827 X"$ac_file" : 'X\(//\)[^/]' \| \
21828 X"$ac_file" : 'X\(//\)$' \| \
21829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21830 printf "%s\n" X"$ac_file" |
21831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21832 s//\1/
21833 q
21834 }
21835 /^X\(\/\/\)[^/].*/{
21836 s//\1/
21837 q
21838 }
21839 /^X\(\/\/\)$/{
21840 s//\1/
21841 q
21842 }
21843 /^X\(\/\).*/{
21844 s//\1/
21845 q
21846 }
21847 s/.*/./; q'`
21848 as_dir="$ac_dir"; as_fn_mkdir_p
21849 ac_builddir=.
21850
21851 case "$ac_dir" in
21852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21853 *)
21854 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21855 # A ".." for each directory in $ac_dir_suffix.
21856 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21857 case $ac_top_builddir_sub in
21858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21860 esac ;;
21861 esac
21862 ac_abs_top_builddir=$ac_pwd
21863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21864 # for backward compatibility:
21865 ac_top_builddir=$ac_top_build_prefix
21866
21867 case $srcdir in
21868 .) # We are building in place.
21869 ac_srcdir=.
21870 ac_top_srcdir=$ac_top_builddir_sub
21871 ac_abs_top_srcdir=$ac_pwd ;;
21872 [\\/]* | ?:[\\/]* ) # Absolute name.
21873 ac_srcdir=$srcdir$ac_dir_suffix;
21874 ac_top_srcdir=$srcdir
21875 ac_abs_top_srcdir=$srcdir ;;
21876 *) # Relative name.
21877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21878 ac_top_srcdir=$ac_top_build_prefix$srcdir
21879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21880 esac
21881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21882
21883
21884 case $ac_mode in
21885 :F)
21886 #
21887 # CONFIG_FILE
21888 #
21889
21890 case $INSTALL in
21891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21893 esac
21894 ac_MKDIR_P=$MKDIR_P
21895 case $MKDIR_P in
21896 [\\/$]* | ?:[\\/]* ) ;;
21897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21898 esac
21899 _ACEOF
21900
21901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21902 # If the template does not know about datarootdir, expand it.
21903 # FIXME: This hack should be removed a few years after 2.60.
21904 ac_datarootdir_hack=; ac_datarootdir_seen=
21905 ac_sed_dataroot='
21906 /datarootdir/ {
21907 p
21908 q
21909 }
21910 /@datadir@/p
21911 /@docdir@/p
21912 /@infodir@/p
21913 /@localedir@/p
21914 /@mandir@/p'
21915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21916 *datarootdir*) ac_datarootdir_seen=yes;;
21917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21919 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21920 _ACEOF
21921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21922 ac_datarootdir_hack='
21923 s&@datadir@&$datadir&g
21924 s&@docdir@&$docdir&g
21925 s&@infodir@&$infodir&g
21926 s&@localedir@&$localedir&g
21927 s&@mandir@&$mandir&g
21928 s&\\\${datarootdir}&$datarootdir&g' ;;
21929 esac
21930 _ACEOF
21931
21932 # Neutralize VPATH when `$srcdir' = `.'.
21933 # Shell code in configure.ac might set extrasub.
21934 # FIXME: do we really want to maintain this feature?
21935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21936 ac_sed_extra="$ac_vpsub
21937 $extrasub
21938 _ACEOF
21939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21940 :t
21941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21942 s|@configure_input@|$ac_sed_conf_input|;t t
21943 s&@top_builddir@&$ac_top_builddir_sub&;t t
21944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21945 s&@srcdir@&$ac_srcdir&;t t
21946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21947 s&@top_srcdir@&$ac_top_srcdir&;t t
21948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21949 s&@builddir@&$ac_builddir&;t t
21950 s&@abs_builddir@&$ac_abs_builddir&;t t
21951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21952 s&@INSTALL@&$ac_INSTALL&;t t
21953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21954 $ac_datarootdir_hack
21955 "
21956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21957 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21958
21959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21962 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21964 which seems to be undefined. Please make sure it is defined" >&5
21965 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21966 which seems to be undefined. Please make sure it is defined" >&2;}
21967
21968 rm -f "$ac_tmp/stdin"
21969 case $ac_file in
21970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21972 esac \
21973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21974 ;;
21975 :H)
21976 #
21977 # CONFIG_HEADER
21978 #
21979 if test x"$ac_file" != x-; then
21980 {
21981 printf "%s\n" "/* $configure_input */" >&1 \
21982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21983 } >"$ac_tmp/config.h" \
21984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21987 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21988 else
21989 rm -f "$ac_file"
21990 mv "$ac_tmp/config.h" "$ac_file" \
21991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21992 fi
21993 else
21994 printf "%s\n" "/* $configure_input */" >&1 \
21995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21996 || as_fn_error $? "could not create -" "$LINENO" 5
21997 fi
21998 # Compute "$ac_file"'s index in $config_headers.
21999 _am_arg="$ac_file"
22000 _am_stamp_count=1
22001 for _am_header in $config_headers :; do
22002 case $_am_header in
22003 $_am_arg | $_am_arg:* )
22004 break ;;
22005 * )
22006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22007 esac
22008 done
22009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22011 X"$_am_arg" : 'X\(//\)[^/]' \| \
22012 X"$_am_arg" : 'X\(//\)$' \| \
22013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22014 printf "%s\n" X"$_am_arg" |
22015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22016 s//\1/
22017 q
22018 }
22019 /^X\(\/\/\)[^/].*/{
22020 s//\1/
22021 q
22022 }
22023 /^X\(\/\/\)$/{
22024 s//\1/
22025 q
22026 }
22027 /^X\(\/\).*/{
22028 s//\1/
22029 q
22030 }
22031 s/.*/./; q'`/stamp-h$_am_stamp_count
22032 ;;
22033
22034 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22035 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22036 ;;
22037 esac
22038
22039
22040 case $ac_file$ac_mode in
22041 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22042 # Older Autoconf quotes --file arguments for eval, but not when files
22043 # are listed without --file. Let's play safe and only enable the eval
22044 # if we detect the quoting.
22045 # TODO: see whether this extra hack can be removed once we start
22046 # requiring Autoconf 2.70 or later.
22047 case $CONFIG_FILES in #(
22048 *\'*) :
22049 eval set x "$CONFIG_FILES" ;; #(
22050 *) :
22051 set x $CONFIG_FILES ;; #(
22052 *) :
22053 ;;
22054 esac
22055 shift
22056 # Used to flag and report bootstrapping failures.
22057 am_rc=0
22058 for am_mf
22059 do
22060 # Strip MF so we end up with the name of the file.
22061 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22062 # Check whether this is an Automake generated Makefile which includes
22063 # dependency-tracking related rules and includes.
22064 # Grep'ing the whole file directly is not great: AIX grep has a line
22065 # limit of 2048, but all sed's we know have understand at least 4000.
22066 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22067 || continue
22068 am_dirpart=`$as_dirname -- "$am_mf" ||
22069 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22070 X"$am_mf" : 'X\(//\)[^/]' \| \
22071 X"$am_mf" : 'X\(//\)$' \| \
22072 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22073 printf "%s\n" X"$am_mf" |
22074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22075 s//\1/
22076 q
22077 }
22078 /^X\(\/\/\)[^/].*/{
22079 s//\1/
22080 q
22081 }
22082 /^X\(\/\/\)$/{
22083 s//\1/
22084 q
22085 }
22086 /^X\(\/\).*/{
22087 s//\1/
22088 q
22089 }
22090 s/.*/./; q'`
22091 am_filepart=`$as_basename -- "$am_mf" ||
22092 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22093 X"$am_mf" : 'X\(//\)$' \| \
22094 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22095 printf "%s\n" X/"$am_mf" |
22096 sed '/^.*\/\([^/][^/]*\)\/*$/{
22097 s//\1/
22098 q
22099 }
22100 /^X\/\(\/\/\)$/{
22101 s//\1/
22102 q
22103 }
22104 /^X\/\(\/\).*/{
22105 s//\1/
22106 q
22107 }
22108 s/.*/./; q'`
22109 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22110 && sed -e '/# am--include-marker/d' "$am_filepart" \
22111 | $MAKE -f - am--depfiles" >&5
22112 (cd "$am_dirpart" \
22113 && sed -e '/# am--include-marker/d' "$am_filepart" \
22114 | $MAKE -f - am--depfiles) >&5 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } || am_rc=$?
22118 done
22119 if test $am_rc -ne 0; then
22120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22121 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22122 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22123 for automatic dependency tracking. If GNU make was not used, consider
22124 re-running the configure script with MAKE=\"gmake\" (or whatever is
22125 necessary). You can also try re-running configure with the
22126 '--disable-dependency-tracking' option to at least be able to build
22127 the package (albeit without support for automatic dependency tracking).
22128 See \`config.log' for more details" "$LINENO" 5; }
22129 fi
22130 { am_dirpart=; unset am_dirpart;}
22131 { am_filepart=; unset am_filepart;}
22132 { am_mf=; unset am_mf;}
22133 { am_rc=; unset am_rc;}
22134 rm -f conftest-deps.mk
22135 }
22136 ;;
22137 "libtool":C)
22138
22139 # See if we are running on zsh, and set the options that allow our
22140 # commands through without removal of \ escapes.
22141 if test -n "${ZSH_VERSION+set}"; then
22142 setopt NO_GLOB_SUBST
22143 fi
22144
22145 cfgfile=${ofile}T
22146 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22147 $RM "$cfgfile"
22148
22149 cat <<_LT_EOF >> "$cfgfile"
22150 #! $SHELL
22151 # Generated automatically by $as_me ($PACKAGE) $VERSION
22152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22154
22155 # Provide generalized library-building support services.
22156 # Written by Gordon Matzigkeit, 1996
22157
22158 # Copyright (C) 2014 Free Software Foundation, Inc.
22159 # This is free software; see the source for copying conditions. There is NO
22160 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22161
22162 # GNU Libtool is free software; you can redistribute it and/or modify
22163 # it under the terms of the GNU General Public License as published by
22164 # the Free Software Foundation; either version 2 of of the License, or
22165 # (at your option) any later version.
22166 #
22167 # As a special exception to the GNU General Public License, if you
22168 # distribute this file as part of a program or library that is built
22169 # using GNU Libtool, you may include this file under the same
22170 # distribution terms that you use for the rest of that program.
22171 #
22172 # GNU Libtool is distributed in the hope that it will be useful, but
22173 # WITHOUT ANY WARRANTY; without even the implied warranty of
22174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22175 # GNU General Public License for more details.
22176 #
22177 # You should have received a copy of the GNU General Public License
22178 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22179
22180
22181 # The names of the tagged configurations supported by this script.
22182 available_tags=''
22183
22184 # Configured defaults for sys_lib_dlsearch_path munging.
22185 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22186
22187 # ### BEGIN LIBTOOL CONFIG
22188
22189 # Which release of libtool.m4 was used?
22190 macro_version=$macro_version
22191 macro_revision=$macro_revision
22192
22193 # Whether or not to build shared libraries.
22194 build_libtool_libs=$enable_shared
22195
22196 # Whether or not to build static libraries.
22197 build_old_libs=$enable_static
22198
22199 # What type of objects to build.
22200 pic_mode=$pic_mode
22201
22202 # Whether or not to optimize for fast installation.
22203 fast_install=$enable_fast_install
22204
22205 # Shared archive member basename,for filename based shared library versioning on AIX.
22206 shared_archive_member_spec=$shared_archive_member_spec
22207
22208 # Shell to use when invoking shell scripts.
22209 SHELL=$lt_SHELL
22210
22211 # An echo program that protects backslashes.
22212 ECHO=$lt_ECHO
22213
22214 # The PATH separator for the build system.
22215 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22216
22217 # The host system.
22218 host_alias=$host_alias
22219 host=$host
22220 host_os=$host_os
22221
22222 # The build system.
22223 build_alias=$build_alias
22224 build=$build
22225 build_os=$build_os
22226
22227 # A sed program that does not truncate output.
22228 SED=$lt_SED
22229
22230 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22231 Xsed="\$SED -e 1s/^X//"
22232
22233 # A grep program that handles long lines.
22234 GREP=$lt_GREP
22235
22236 # An ERE matcher.
22237 EGREP=$lt_EGREP
22238
22239 # A literal string matcher.
22240 FGREP=$lt_FGREP
22241
22242 # A BSD- or MS-compatible name lister.
22243 NM=$lt_NM
22244
22245 # Whether we need soft or hard links.
22246 LN_S=$lt_LN_S
22247
22248 # What is the maximum length of a command?
22249 max_cmd_len=$max_cmd_len
22250
22251 # Object file suffix (normally "o").
22252 objext=$ac_objext
22253
22254 # Executable file suffix (normally "").
22255 exeext=$exeext
22256
22257 # whether the shell understands "unset".
22258 lt_unset=$lt_unset
22259
22260 # turn spaces into newlines.
22261 SP2NL=$lt_lt_SP2NL
22262
22263 # turn newlines into spaces.
22264 NL2SP=$lt_lt_NL2SP
22265
22266 # convert \$build file names to \$host format.
22267 to_host_file_cmd=$lt_cv_to_host_file_cmd
22268
22269 # convert \$build files to toolchain format.
22270 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22271
22272 # A file(cmd) program that detects file types.
22273 FILECMD=$lt_FILECMD
22274
22275 # An object symbol dumper.
22276 OBJDUMP=$lt_OBJDUMP
22277
22278 # Method to check whether dependent libraries are shared objects.
22279 deplibs_check_method=$lt_deplibs_check_method
22280
22281 # Command to use when deplibs_check_method = "file_magic".
22282 file_magic_cmd=$lt_file_magic_cmd
22283
22284 # How to find potential files when deplibs_check_method = "file_magic".
22285 file_magic_glob=$lt_file_magic_glob
22286
22287 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22288 want_nocaseglob=$lt_want_nocaseglob
22289
22290 # DLL creation program.
22291 DLLTOOL=$lt_DLLTOOL
22292
22293 # Command to associate shared and link libraries.
22294 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22295
22296 # The archiver.
22297 AR=$lt_AR
22298
22299 # Flags to create an archive (by configure).
22300 lt_ar_flags=$lt_ar_flags
22301
22302 # Flags to create an archive.
22303 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22304
22305 # How to feed a file listing to the archiver.
22306 archiver_list_spec=$lt_archiver_list_spec
22307
22308 # A symbol stripping program.
22309 STRIP=$lt_STRIP
22310
22311 # Commands used to install an old-style archive.
22312 RANLIB=$lt_RANLIB
22313 old_postinstall_cmds=$lt_old_postinstall_cmds
22314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22315
22316 # Whether to use a lock for old archive extraction.
22317 lock_old_archive_extraction=$lock_old_archive_extraction
22318
22319 # A C compiler.
22320 LTCC=$lt_CC
22321
22322 # LTCC compiler flags.
22323 LTCFLAGS=$lt_CFLAGS
22324
22325 # Take the output of nm and produce a listing of raw symbols and C names.
22326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22327
22328 # Transform the output of nm in a proper C declaration.
22329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22330
22331 # Transform the output of nm into a list of symbols to manually relocate.
22332 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22333
22334 # Transform the output of nm in a C name address pair.
22335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22336
22337 # Transform the output of nm in a C name address pair when lib prefix is needed.
22338 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22339
22340 # The name lister interface.
22341 nm_interface=$lt_lt_cv_nm_interface
22342
22343 # Specify filename containing input files for \$NM.
22344 nm_file_list_spec=$lt_nm_file_list_spec
22345
22346 # The root where to search for dependent libraries,and where our libraries should be installed.
22347 lt_sysroot=$lt_sysroot
22348
22349 # Command to truncate a binary pipe.
22350 lt_truncate_bin=$lt_lt_cv_truncate_bin
22351
22352 # The name of the directory that contains temporary libtool files.
22353 objdir=$objdir
22354
22355 # Used to examine libraries when file_magic_cmd begins with "file".
22356 MAGIC_CMD=$MAGIC_CMD
22357
22358 # Must we lock files when doing compilation?
22359 need_locks=$lt_need_locks
22360
22361 # Manifest tool.
22362 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22363
22364 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22365 DSYMUTIL=$lt_DSYMUTIL
22366
22367 # Tool to change global to local symbols on Mac OS X.
22368 NMEDIT=$lt_NMEDIT
22369
22370 # Tool to manipulate fat objects and archives on Mac OS X.
22371 LIPO=$lt_LIPO
22372
22373 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22374 OTOOL=$lt_OTOOL
22375
22376 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22377 OTOOL64=$lt_OTOOL64
22378
22379 # Old archive suffix (normally "a").
22380 libext=$libext
22381
22382 # Shared library suffix (normally ".so").
22383 shrext_cmds=$lt_shrext_cmds
22384
22385 # The commands to extract the exported symbol list from a shared archive.
22386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22387
22388 # Variables whose values should be saved in libtool wrapper scripts and
22389 # restored at link time.
22390 variables_saved_for_relink=$lt_variables_saved_for_relink
22391
22392 # Do we need the "lib" prefix for modules?
22393 need_lib_prefix=$need_lib_prefix
22394
22395 # Do we need a version for libraries?
22396 need_version=$need_version
22397
22398 # Library versioning type.
22399 version_type=$version_type
22400
22401 # Shared library runtime path variable.
22402 runpath_var=$runpath_var
22403
22404 # Shared library path variable.
22405 shlibpath_var=$shlibpath_var
22406
22407 # Is shlibpath searched before the hard-coded library search path?
22408 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22409
22410 # Format of library name prefix.
22411 libname_spec=$lt_libname_spec
22412
22413 # List of archive names. First name is the real one, the rest are links.
22414 # The last name is the one that the linker finds with -lNAME
22415 library_names_spec=$lt_library_names_spec
22416
22417 # The coded name of the library, if different from the real name.
22418 soname_spec=$lt_soname_spec
22419
22420 # Permission mode override for installation of shared libraries.
22421 install_override_mode=$lt_install_override_mode
22422
22423 # Command to use after installation of a shared archive.
22424 postinstall_cmds=$lt_postinstall_cmds
22425
22426 # Command to use after uninstallation of a shared archive.
22427 postuninstall_cmds=$lt_postuninstall_cmds
22428
22429 # Commands used to finish a libtool library installation in a directory.
22430 finish_cmds=$lt_finish_cmds
22431
22432 # As "finish_cmds", except a single script fragment to be evaled but
22433 # not shown.
22434 finish_eval=$lt_finish_eval
22435
22436 # Whether we should hardcode library paths into libraries.
22437 hardcode_into_libs=$hardcode_into_libs
22438
22439 # Compile-time system search path for libraries.
22440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22441
22442 # Detected run-time system search path for libraries.
22443 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22444
22445 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22446 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22447
22448 # Whether dlopen is supported.
22449 dlopen_support=$enable_dlopen
22450
22451 # Whether dlopen of programs is supported.
22452 dlopen_self=$enable_dlopen_self
22453
22454 # Whether dlopen of statically linked programs is supported.
22455 dlopen_self_static=$enable_dlopen_self_static
22456
22457 # Commands to strip libraries.
22458 old_striplib=$lt_old_striplib
22459 striplib=$lt_striplib
22460
22461
22462 # The linker used to build libraries.
22463 LD=$lt_LD
22464
22465 # How to create reloadable object files.
22466 reload_flag=$lt_reload_flag
22467 reload_cmds=$lt_reload_cmds
22468
22469 # Commands used to build an old-style archive.
22470 old_archive_cmds=$lt_old_archive_cmds
22471
22472 # A language specific compiler.
22473 CC=$lt_compiler
22474
22475 # Is the compiler the GNU compiler?
22476 with_gcc=$GCC
22477
22478 # Compiler flag to turn off builtin functions.
22479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22480
22481 # Additional compiler flags for building library objects.
22482 pic_flag=$lt_lt_prog_compiler_pic
22483
22484 # How to pass a linker flag through the compiler.
22485 wl=$lt_lt_prog_compiler_wl
22486
22487 # Compiler flag to prevent dynamic linking.
22488 link_static_flag=$lt_lt_prog_compiler_static
22489
22490 # Does compiler simultaneously support -c and -o options?
22491 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22492
22493 # Whether or not to add -lc for building shared libraries.
22494 build_libtool_need_lc=$archive_cmds_need_lc
22495
22496 # Whether or not to disallow shared libs when runtime libs are static.
22497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22498
22499 # Compiler flag to allow reflexive dlopens.
22500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22501
22502 # Compiler flag to generate shared objects directly from archives.
22503 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22504
22505 # Whether the compiler copes with passing no objects directly.
22506 compiler_needs_object=$lt_compiler_needs_object
22507
22508 # Create an old-style archive from a shared archive.
22509 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22510
22511 # Create a temporary old-style archive to link instead of a shared archive.
22512 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22513
22514 # Commands used to build a shared archive.
22515 archive_cmds=$lt_archive_cmds
22516 archive_expsym_cmds=$lt_archive_expsym_cmds
22517
22518 # Commands used to build a loadable module if different from building
22519 # a shared archive.
22520 module_cmds=$lt_module_cmds
22521 module_expsym_cmds=$lt_module_expsym_cmds
22522
22523 # Whether we are building with GNU ld or not.
22524 with_gnu_ld=$lt_with_gnu_ld
22525
22526 # Flag that allows shared libraries with undefined symbols to be built.
22527 allow_undefined_flag=$lt_allow_undefined_flag
22528
22529 # Flag that enforces no undefined symbols.
22530 no_undefined_flag=$lt_no_undefined_flag
22531
22532 # Flag to hardcode \$libdir into a binary during linking.
22533 # This must work even if \$libdir does not exist
22534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22535
22536 # Whether we need a single "-rpath" flag with a separated argument.
22537 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22538
22539 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22540 # DIR into the resulting binary.
22541 hardcode_direct=$hardcode_direct
22542
22543 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22544 # DIR into the resulting binary and the resulting library dependency is
22545 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22546 # library is relocated.
22547 hardcode_direct_absolute=$hardcode_direct_absolute
22548
22549 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22550 # into the resulting binary.
22551 hardcode_minus_L=$hardcode_minus_L
22552
22553 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22554 # into the resulting binary.
22555 hardcode_shlibpath_var=$hardcode_shlibpath_var
22556
22557 # Set to "yes" if building a shared library automatically hardcodes DIR
22558 # into the library and all subsequent libraries and executables linked
22559 # against it.
22560 hardcode_automatic=$hardcode_automatic
22561
22562 # Set to yes if linker adds runtime paths of dependent libraries
22563 # to runtime path list.
22564 inherit_rpath=$inherit_rpath
22565
22566 # Whether libtool must link a program against all its dependency libraries.
22567 link_all_deplibs=$link_all_deplibs
22568
22569 # Set to "yes" if exported symbols are required.
22570 always_export_symbols=$always_export_symbols
22571
22572 # The commands to list exported symbols.
22573 export_symbols_cmds=$lt_export_symbols_cmds
22574
22575 # Symbols that should not be listed in the preloaded symbols.
22576 exclude_expsyms=$lt_exclude_expsyms
22577
22578 # Symbols that must always be exported.
22579 include_expsyms=$lt_include_expsyms
22580
22581 # Commands necessary for linking programs (against libraries) with templates.
22582 prelink_cmds=$lt_prelink_cmds
22583
22584 # Commands necessary for finishing linking programs.
22585 postlink_cmds=$lt_postlink_cmds
22586
22587 # Specify filename containing input files.
22588 file_list_spec=$lt_file_list_spec
22589
22590 # How to hardcode a shared library path into an executable.
22591 hardcode_action=$hardcode_action
22592
22593 # ### END LIBTOOL CONFIG
22594
22595 _LT_EOF
22596
22597 cat <<'_LT_EOF' >> "$cfgfile"
22598
22599 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22600
22601 # func_munge_path_list VARIABLE PATH
22602 # -----------------------------------
22603 # VARIABLE is name of variable containing _space_ separated list of
22604 # directories to be munged by the contents of PATH, which is string
22605 # having a format:
22606 # "DIR[:DIR]:"
22607 # string "DIR[ DIR]" will be prepended to VARIABLE
22608 # ":DIR[:DIR]"
22609 # string "DIR[ DIR]" will be appended to VARIABLE
22610 # "DIRP[:DIRP]::[DIRA:]DIRA"
22611 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22612 # "DIRA[ DIRA]" will be appended to VARIABLE
22613 # "DIR[:DIR]"
22614 # VARIABLE will be replaced by "DIR[ DIR]"
22615 func_munge_path_list ()
22616 {
22617 case x$2 in
22618 x)
22619 ;;
22620 *:)
22621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22622 ;;
22623 x:*)
22624 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22625 ;;
22626 *::*)
22627 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22628 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22629 ;;
22630 *)
22631 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22632 ;;
22633 esac
22634 }
22635
22636
22637 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22638 func_cc_basename ()
22639 {
22640 for cc_temp in $*""; do
22641 case $cc_temp in
22642 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22643 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22644 \-*) ;;
22645 *) break;;
22646 esac
22647 done
22648 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22649 }
22650
22651
22652 # ### END FUNCTIONS SHARED WITH CONFIGURE
22653
22654 _LT_EOF
22655
22656 case $host_os in
22657 aix3*)
22658 cat <<\_LT_EOF >> "$cfgfile"
22659 # AIX sometimes has problems with the GCC collect2 program. For some
22660 # reason, if we set the COLLECT_NAMES environment variable, the problems
22661 # vanish in a puff of smoke.
22662 if test set != "${COLLECT_NAMES+set}"; then
22663 COLLECT_NAMES=
22664 export COLLECT_NAMES
22665 fi
22666 _LT_EOF
22667 ;;
22668 esac
22669
22670
22671
22672 ltmain=$ac_aux_dir/ltmain.sh
22673
22674
22675 # We use sed instead of cat because bash on DJGPP gets confused if
22676 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22677 # text mode, it properly converts lines to CR/LF. This bash problem
22678 # is reportedly fixed, but why not run on old versions too?
22679 $SED '$q' "$ltmain" >> "$cfgfile" \
22680 || (rm -f "$cfgfile"; exit 1)
22681
22682 mv -f "$cfgfile" "$ofile" ||
22683 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22684 chmod +x "$ofile"
22685
22686 ;;
22687
22688 esac
22689 done # for ac_tag
22690
22691
22692 as_fn_exit 0
22693 _ACEOF
22694 ac_clean_files=$ac_clean_files_save
22695
22696 test $ac_write_fail = 0 ||
22697 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22698
22699
22700 # configure is writing to config.log, and then calls config.status.
22701 # config.status does its own redirection, appending to config.log.
22702 # Unfortunately, on DOS this fails, as config.log is still kept open
22703 # by configure, so config.status won't be able to write to it; its
22704 # output is simply discarded. So we exec the FD to /dev/null,
22705 # effectively closing config.log, so it can be properly (re)opened and
22706 # appended to by config.status. When coming back to configure, we
22707 # need to make the FD available again.
22708 if test "$no_create" != yes; then
22709 ac_cs_success=:
22710 ac_config_status_args=
22711 test "$silent" = yes &&
22712 ac_config_status_args="$ac_config_status_args --quiet"
22713 exec 5>/dev/null
22714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22715 exec 5>>config.log
22716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22717 # would make configure fail if this is the last instruction.
22718 $ac_cs_success || as_fn_exit 1
22719 fi
22720 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22722 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22723 fi
22724
22725
22726