configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXext 1.3.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/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/libxext/-/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='libXext'
684 PACKAGE_TARNAME='libXext'
685 PACKAGE_VERSION='1.3.5'
686 PACKAGE_STRING='libXext 1.3.5'
687 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxext/-/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 MAKE_LINT_LIB_FALSE
727 MAKE_LINT_LIB_TRUE
728 LINTLIB
729 LINT_FALSE
730 LINT_TRUE
731 LINT_FLAGS
732 LINT
733 LIBOBJS
734 XEXT_LIBS
735 XEXT_CFLAGS
736 XEXT_SOREV
737 XTMALLOC_ZERO_CFLAGS
738 XMALLOC_ZERO_CFLAGS
739 MALLOC_ZERO_CFLAGS
740 HAVE_STYLESHEETS_FALSE
741 HAVE_STYLESHEETS_TRUE
742 XSL_STYLESHEET
743 STYLESHEET_SRCDIR
744 XORG_SGML_PATH
745 HAVE_XSLTPROC_FALSE
746 HAVE_XSLTPROC_TRUE
747 XSLTPROC
748 HAVE_FOP_FALSE
749 HAVE_FOP_TRUE
750 FOP
751 HAVE_XMLTO_FALSE
752 HAVE_XMLTO_TRUE
753 HAVE_XMLTO_TEXT_FALSE
754 HAVE_XMLTO_TEXT_TRUE
755 XMLTO
756 ENABLE_SPECS_FALSE
757 ENABLE_SPECS_TRUE
758 MAN_SUBSTS
759 XORG_MAN_PAGE
760 ADMIN_MAN_DIR
761 DRIVER_MAN_DIR
762 MISC_MAN_DIR
763 FILE_MAN_DIR
764 LIB_MAN_DIR
765 APP_MAN_DIR
766 ADMIN_MAN_SUFFIX
767 DRIVER_MAN_SUFFIX
768 MISC_MAN_SUFFIX
769 FILE_MAN_SUFFIX
770 LIB_MAN_SUFFIX
771 APP_MAN_SUFFIX
772 INSTALL_CMD
773 PKG_CONFIG_LIBDIR
774 PKG_CONFIG_PATH
775 PKG_CONFIG
776 CHANGELOG_CMD
777 STRICT_CFLAGS
778 CWARNFLAGS
779 BASE_CFLAGS
780 LT_SYS_LIBRARY_PATH
781 OTOOL64
782 OTOOL
783 LIPO
784 NMEDIT
785 DSYMUTIL
786 MANIFEST_TOOL
787 RANLIB
788 ac_ct_AR
789 AR
790 DLLTOOL
791 OBJDUMP
792 FILECMD
793 LN_S
794 NM
795 ac_ct_DUMPBIN
796 DUMPBIN
797 LD
798 FGREP
799 EGREP
800 GREP
801 SED
802 host_os
803 host_vendor
804 host_cpu
805 host
806 build_os
807 build_vendor
808 build_cpu
809 build
810 LIBTOOL
811 AM_BACKSLASH
812 AM_DEFAULT_VERBOSITY
813 AM_DEFAULT_V
814 AM_V
815 CSCOPE
816 ETAGS
817 CTAGS
818 am__fastdepCC_FALSE
819 am__fastdepCC_TRUE
820 CCDEPMODE
821 am__nodep
822 AMDEPBACKSLASH
823 AMDEP_FALSE
824 AMDEP_TRUE
825 am__include
826 DEPDIR
827 am__untar
828 am__tar
829 AMTAR
830 am__leading_dot
831 SET_MAKE
832 AWK
833 mkdir_p
834 MKDIR_P
835 INSTALL_STRIP_PROGRAM
836 STRIP
837 install_sh
838 MAKEINFO
839 AUTOHEADER
840 AUTOMAKE
841 AUTOCONF
842 ACLOCAL
843 VERSION
844 PACKAGE
845 CYGPATH_W
846 am__isrc
847 INSTALL_DATA
848 INSTALL_SCRIPT
849 INSTALL_PROGRAM
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 runstatedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL
896 am__quote'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_dependency_tracking
901 enable_silent_rules
902 enable_shared
903 enable_static
904 with_pic
905 enable_fast_install
906 with_aix_soname
907 with_gnu_ld
908 with_sysroot
909 enable_libtool_lock
910 enable_selective_werror
911 enable_strict_compilation
912 enable_specs
913 with_xmlto
914 with_fop
915 with_xsltproc
916 enable_malloc0returnsnull
917 with_lint
918 enable_lint_library
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 LT_SYS_LIBRARY_PATH
929 PKG_CONFIG
930 PKG_CONFIG_PATH
931 PKG_CONFIG_LIBDIR
932 XMLTO
933 FOP
934 XSLTPROC
935 XEXT_CFLAGS
936 XEXT_LIBS
937 LINT
938 LINT_FLAGS'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 runstatedir='${localstatedir}/run'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *=) ac_optarg= ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
1010
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1015
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1030
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1035
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1068
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1093
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1097
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1104
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1109
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1115
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1122
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1127
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1132
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1139
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1144
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1151
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1156
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1160
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1164
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1168
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1177
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1182
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1189
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1196
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1213
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1218
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1223
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1227
1228 -runstatedir | --runstatedir | --runstatedi | --runstated \
1229 | --runstate | --runstat | --runsta | --runst | --runs \
1230 | --run | --ru | --r)
1231 ac_prev=runstatedir ;;
1232 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234 | --run=* | --ru=* | --r=*)
1235 runstatedir=$ac_optarg ;;
1236
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1253
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1258
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1263
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1270
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1281
1282 -with-* | --with-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: \`$ac_useropt'"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
1297
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: \`$ac_useropt'"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
1313
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1317
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1324
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1331
1332 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information"
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1345
1346 *)
1347 # FIXME: should be removed in autoconf 3.0.
1348 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352 ;;
1353
1354 esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error $? "missing argument to $ac_option"
1360 fi
1361
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir runstatedir
1375 do
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1390
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1397
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1404 fi
1405 fi
1406
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410 test "$silent" = yes && exec 6>/dev/null
1411
1412
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 printf "%s\n" X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)[^/].*/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\/\)$/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\).*/{
1444 s//\1/
1445 q
1446 }
1447 s/.*/./; q'`
1448 srcdir=$ac_confdir
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 srcdir=..
1451 fi
1452 else
1453 ac_srcdir_defaulted=no
1454 fi
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 fi
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462 pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466 fi
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1479
1480 #
1481 # Report the --help message.
1482 #
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487 \`configure' configures libXext 1.3.5 to adapt to many kinds of systems.
1488
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494 Defaults for the options are specified in brackets.
1495
1496 Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking ...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1512
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1517
1518 For better control, use the options below.
1519
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/libXext]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1542
1543 cat <<\_ACEOF
1544
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1554 fi
1555
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of libXext 1.3.5:";;
1559 esac
1560 cat <<\_ACEOF
1561
1562 Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-dependency-tracking
1567 do not reject slow dependency extractors
1568 --disable-dependency-tracking
1569 speeds up one-time build
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 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --disable-selective-werror
1578 Turn off selective compiler errors. (default:
1579 enabled)
1580 --enable-strict-compilation
1581 Enable all warnings from compiler and make them
1582 errors (default: disabled)
1583 --enable-specs Enable building the specs (default: yes)
1584 --enable-malloc0returnsnull
1585 malloc(0) returns NULL (default: auto)
1586 --enable-lint-library Create lint library (default: disabled)
1587
1588 Optional Packages:
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1591 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1592 both]
1593 --with-aix-soname=aix|svr4|both
1594 shared library versioning (aka "SONAME") variant to
1595 provide on AIX, [default=aix].
1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1598 compiler's sysroot if not specified).
1599 --with-xmlto Use xmlto to regenerate documentation (default:
1600 auto)
1601 --with-fop Use fop to regenerate documentation (default: auto)
1602 --with-xsltproc Use xsltproc for the transformation of XML documents
1603 (default: auto)
1604 --with-lint Use a lint-style source code checker (default:
1605 disabled)
1606
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1615 LT_SYS_LIBRARY_PATH
1616 User-defined run-time library search path.
1617 PKG_CONFIG path to pkg-config utility
1618 PKG_CONFIG_PATH
1619 directories to add to pkg-config's search path
1620 PKG_CONFIG_LIBDIR
1621 path overriding pkg-config's built-in search path
1622 XMLTO Path to xmlto command
1623 FOP Path to fop command
1624 XSLTPROC Path to xsltproc command
1625 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1626 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1627 LINT Path to a lint-style command
1628 LINT_FLAGS Flags for the lint-style command
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for configure.gnu first; this name is used for a wrapper for
1680 # Metaconfig's "Configure" on case-insensitive file systems.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 libXext configure 1.3.5
1698 generated by GNU Autoconf 2.71
1699
1700 Copyright (C) 2021 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1705 fi
1706
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1710
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest.beam
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 printf "%s\n" "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext
1737 then :
1738 ac_retval=0
1739 else $as_nop
1740 printf "%s\n" "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 printf %s "checking for $2... " >&6; }
1759 if eval test \${$3+y}
1760 then :
1761 printf %s "(cached) " >&6
1762 else $as_nop
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"
1769 then :
1770 eval "$3=yes"
1771 else $as_nop
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf "%s\n" "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 printf "%s\n" "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }
1812 then :
1813 ac_retval=0
1814 else $as_nop
1815 printf "%s\n" "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=1
1819 fi
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_link
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 printf %s "checking for $2... " >&6; }
1838 if eval test \${$3+y}
1839 then :
1840 printf %s "(cached) " >&6
1841 else $as_nop
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below. */
1850
1851 #include <limits.h>
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main (void)
1870 {
1871 return $2 ();
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"
1877 then :
1878 eval "$3=yes"
1879 else $as_nop
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883 conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 printf "%s\n" "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1893 # ------------------------------------------------------------------
1894 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1895 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1896 ac_fn_check_decl ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 as_decl_name=`echo $2|sed 's/ *(.*//'`
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1901 printf %s "checking whether $as_decl_name is declared... " >&6; }
1902 if eval test \${$3+y}
1903 then :
1904 printf %s "(cached) " >&6
1905 else $as_nop
1906 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907 eval ac_save_FLAGS=\$$6
1908 as_fn_append $6 " $5"
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 int
1913 main (void)
1914 {
1915 #ifndef $as_decl_name
1916 #ifdef __cplusplus
1917 (void) $as_decl_use;
1918 #else
1919 (void) $as_decl_name;
1920 #endif
1921 #endif
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"
1928 then :
1929 eval "$3=yes"
1930 else $as_nop
1931 eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1934 eval $6=\$ac_save_FLAGS
1935
1936 fi
1937 eval ac_res=\$$3
1938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 printf "%s\n" "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_check_decl
1943
1944 # ac_fn_c_try_run LINENO
1945 # ----------------------
1946 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1947 # executables *can* be run.
1948 ac_fn_c_try_run ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_link"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 printf "%s\n" "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>&5
1959 ac_status=$?
1960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962 { { case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 printf "%s\n" "$ac_try_echo"; } >&5
1968 (eval "$ac_try") 2>&5
1969 ac_status=$?
1970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; }; }
1972 then :
1973 ac_retval=0
1974 else $as_nop
1975 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1976 printf "%s\n" "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=$ac_status
1980 fi
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985 } # ac_fn_c_try_run
1986 ac_configure_args_raw=
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 *\'*)
1991 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 esac
1993 as_fn_append ac_configure_args_raw " '$ac_arg'"
1994 done
1995
1996 case $ac_configure_args_raw in
1997 *$as_nl*)
1998 ac_safe_unquote= ;;
1999 *)
2000 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2001 ac_unsafe_a="$ac_unsafe_z#~"
2002 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2003 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2004 esac
2005
2006 cat >config.log <<_ACEOF
2007 This file contains any messages produced by compilers while
2008 running configure, to aid debugging if configure makes a mistake.
2009
2010 It was created by libXext $as_me 1.3.5, which was
2011 generated by GNU Autoconf 2.71. Invocation command line was
2012
2013 $ $0$ac_configure_args_raw
2014
2015 _ACEOF
2016 exec 5>>config.log
2017 {
2018 cat <<_ASUNAME
2019 ## --------- ##
2020 ## Platform. ##
2021 ## --------- ##
2022
2023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031
2032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039
2040 _ASUNAME
2041
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 case $as_dir in #(((
2047 '') as_dir=./ ;;
2048 */) ;;
2049 *) as_dir=$as_dir/ ;;
2050 esac
2051 printf "%s\n" "PATH: $as_dir"
2052 done
2053 IFS=$as_save_IFS
2054
2055 } >&5
2056
2057 cat >&5 <<_ACEOF
2058
2059
2060 ## ----------- ##
2061 ## Core tests. ##
2062 ## ----------- ##
2063
2064 _ACEOF
2065
2066
2067 # Keep a trace of the command line.
2068 # Strip out --no-create and --no-recursion so they do not pile up.
2069 # Strip out --silent because we don't want to record it for future runs.
2070 # Also quote any args containing shell meta-characters.
2071 # Make two passes to allow for proper duplicate-argument suppression.
2072 ac_configure_args=
2073 ac_configure_args0=
2074 ac_configure_args1=
2075 ac_must_keep_next=false
2076 for ac_pass in 1 2
2077 do
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083 | -silent | --silent | --silen | --sile | --sil)
2084 continue ;;
2085 *\'*)
2086 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 case $ac_pass in
2089 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090 2)
2091 as_fn_append ac_configure_args1 " '$ac_arg'"
2092 if test $ac_must_keep_next = true; then
2093 ac_must_keep_next=false # Got value, back to normal.
2094 else
2095 case $ac_arg in
2096 *=* | --config-cache | -C | -disable-* | --disable-* \
2097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099 | -with-* | --with-* | -without-* | --without-* | --x)
2100 case "$ac_configure_args0 " in
2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 esac
2103 ;;
2104 -* ) ac_must_keep_next=true ;;
2105 esac
2106 fi
2107 as_fn_append ac_configure_args " '$ac_arg'"
2108 ;;
2109 esac
2110 done
2111 done
2112 { ac_configure_args0=; unset ac_configure_args0;}
2113 { ac_configure_args1=; unset ac_configure_args1;}
2114
2115 # When interrupted or exit'd, cleanup temporary files, and complete
2116 # config.log. We remove comments because anyway the quotes in there
2117 # would cause problems or look ugly.
2118 # WARNING: Use '\'' to represent an apostrophe within the trap.
2119 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120 trap 'exit_status=$?
2121 # Sanitize IFS.
2122 IFS=" "" $as_nl"
2123 # Save into config.log some information that might help in debugging.
2124 {
2125 echo
2126
2127 printf "%s\n" "## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##"
2130 echo
2131 # The following way of writing the cache mishandles newlines in values,
2132 (
2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in #(
2136 *${as_nl}*)
2137 case $ac_var in #(
2138 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 esac
2141 case $ac_var in #(
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2145 esac ;;
2146 esac
2147 done
2148 (set) 2>&1 |
2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2151 sed -n \
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 ;; #(
2155 *)
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157 ;;
2158 esac |
2159 sort
2160 )
2161 echo
2162
2163 printf "%s\n" "## ----------------- ##
2164 ## Output variables. ##
2165 ## ----------------- ##"
2166 echo
2167 for ac_var in $ac_subst_vars
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 printf "%s\n" "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176
2177 if test -n "$ac_subst_files"; then
2178 printf "%s\n" "## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##"
2181 echo
2182 for ac_var in $ac_subst_files
2183 do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in
2186 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 esac
2188 printf "%s\n" "$ac_var='\''$ac_val'\''"
2189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
2194 printf "%s\n" "## ----------- ##
2195 ## confdefs.h. ##
2196 ## ----------- ##"
2197 echo
2198 cat confdefs.h
2199 echo
2200 fi
2201 test "$ac_signal" != 0 &&
2202 printf "%s\n" "$as_me: caught signal $ac_signal"
2203 printf "%s\n" "$as_me: exit $exit_status"
2204 } >&5
2205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207 exit $exit_status
2208 ' 0
2209 for ac_signal in 1 2 13 15; do
2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2211 done
2212 ac_signal=0
2213
2214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2215 rm -f -r conftest* confdefs.h
2216
2217 printf "%s\n" "/* confdefs.h */" > confdefs.h
2218
2219 # Predefined preprocessor variables.
2220
2221 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2222
2223 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2224
2225 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2226
2227 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2228
2229 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2230
2231 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2232
2233
2234 # Let the site file select an alternate cache file if it wants to.
2235 # Prefer an explicitly selected file to automatically selected ones.
2236 if test -n "$CONFIG_SITE"; then
2237 ac_site_files="$CONFIG_SITE"
2238 elif test "x$prefix" != xNONE; then
2239 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2240 else
2241 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2242 fi
2243
2244 for ac_site_file in $ac_site_files
2245 do
2246 case $ac_site_file in #(
2247 */*) :
2248 ;; #(
2249 *) :
2250 ac_site_file=./$ac_site_file ;;
2251 esac
2252 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2256 . "$ac_site_file" \
2257 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2261 fi
2262 done
2263
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2270 case $cache_file in
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2273 esac
2274 fi
2275 else
2276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2278 >$cache_file
2279 fi
2280
2281 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2282 # Test code for whether the C compiler supports C89 (global declarations)
2283 ac_c_conftest_c89_globals='
2284 /* Does the compiler advertise C89 conformance?
2285 Do not test the value of __STDC__, because some compilers set it to 0
2286 while being otherwise adequately conformant. */
2287 #if !defined __STDC__
2288 # error "Compiler does not advertise C89 conformance"
2289 #endif
2290
2291 #include <stddef.h>
2292 #include <stdarg.h>
2293 struct stat;
2294 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2295 struct buf { int x; };
2296 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2297 static char *e (p, i)
2298 char **p;
2299 int i;
2300 {
2301 return p[i];
2302 }
2303 static char *f (char * (*g) (char **, int), char **p, ...)
2304 {
2305 char *s;
2306 va_list v;
2307 va_start (v,p);
2308 s = g (p, va_arg (v,int));
2309 va_end (v);
2310 return s;
2311 }
2312
2313 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2314 function prototypes and stuff, but not \xHH hex character constants.
2315 These do not provoke an error unfortunately, instead are silently treated
2316 as an "x". The following induces an error, until -std is added to get
2317 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2318 array size at least. It is necessary to write \x00 == 0 to get something
2319 that is true only with -std. */
2320 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2321
2322 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2323 inside strings and character constants. */
2324 #define FOO(x) '\''x'\''
2325 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2326
2327 int test (int i, double x);
2328 struct s1 {int (*f) (int a);};
2329 struct s2 {int (*f) (double a);};
2330 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2331 int, int);'
2332
2333 # Test code for whether the C compiler supports C89 (body of main).
2334 ac_c_conftest_c89_main='
2335 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2336 '
2337
2338 # Test code for whether the C compiler supports C99 (global declarations)
2339 ac_c_conftest_c99_globals='
2340 // Does the compiler advertise C99 conformance?
2341 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2342 # error "Compiler does not advertise C99 conformance"
2343 #endif
2344
2345 #include <stdbool.h>
2346 extern int puts (const char *);
2347 extern int printf (const char *, ...);
2348 extern int dprintf (int, const char *, ...);
2349 extern void *malloc (size_t);
2350
2351 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2352 // dprintf is used instead of fprintf to avoid needing to declare
2353 // FILE and stderr.
2354 #define debug(...) dprintf (2, __VA_ARGS__)
2355 #define showlist(...) puts (#__VA_ARGS__)
2356 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2357 static void
2358 test_varargs_macros (void)
2359 {
2360 int x = 1234;
2361 int y = 5678;
2362 debug ("Flag");
2363 debug ("X = %d\n", x);
2364 showlist (The first, second, and third items.);
2365 report (x>y, "x is %d but y is %d", x, y);
2366 }
2367
2368 // Check long long types.
2369 #define BIG64 18446744073709551615ull
2370 #define BIG32 4294967295ul
2371 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2372 #if !BIG_OK
2373 #error "your preprocessor is broken"
2374 #endif
2375 #if BIG_OK
2376 #else
2377 #error "your preprocessor is broken"
2378 #endif
2379 static long long int bignum = -9223372036854775807LL;
2380 static unsigned long long int ubignum = BIG64;
2381
2382 struct incomplete_array
2383 {
2384 int datasize;
2385 double data[];
2386 };
2387
2388 struct named_init {
2389 int number;
2390 const wchar_t *name;
2391 double average;
2392 };
2393
2394 typedef const char *ccp;
2395
2396 static inline int
2397 test_restrict (ccp restrict text)
2398 {
2399 // See if C++-style comments work.
2400 // Iterate through items via the restricted pointer.
2401 // Also check for declarations in for loops.
2402 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2403 continue;
2404 return 0;
2405 }
2406
2407 // Check varargs and va_copy.
2408 static bool
2409 test_varargs (const char *format, ...)
2410 {
2411 va_list args;
2412 va_start (args, format);
2413 va_list args_copy;
2414 va_copy (args_copy, args);
2415
2416 const char *str = "";
2417 int number = 0;
2418 float fnumber = 0;
2419
2420 while (*format)
2421 {
2422 switch (*format++)
2423 {
2424 case '\''s'\'': // string
2425 str = va_arg (args_copy, const char *);
2426 break;
2427 case '\''d'\'': // int
2428 number = va_arg (args_copy, int);
2429 break;
2430 case '\''f'\'': // float
2431 fnumber = va_arg (args_copy, double);
2432 break;
2433 default:
2434 break;
2435 }
2436 }
2437 va_end (args_copy);
2438 va_end (args);
2439
2440 return *str && number && fnumber;
2441 }
2442 '
2443
2444 # Test code for whether the C compiler supports C99 (body of main).
2445 ac_c_conftest_c99_main='
2446 // Check bool.
2447 _Bool success = false;
2448 success |= (argc != 0);
2449
2450 // Check restrict.
2451 if (test_restrict ("String literal") == 0)
2452 success = true;
2453 char *restrict newvar = "Another string";
2454
2455 // Check varargs.
2456 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2457 test_varargs_macros ();
2458
2459 // Check flexible array members.
2460 struct incomplete_array *ia =
2461 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2462 ia->datasize = 10;
2463 for (int i = 0; i < ia->datasize; ++i)
2464 ia->data[i] = i * 1.234;
2465
2466 // Check named initializers.
2467 struct named_init ni = {
2468 .number = 34,
2469 .name = L"Test wide string",
2470 .average = 543.34343,
2471 };
2472
2473 ni.number = 58;
2474
2475 int dynamic_array[ni.number];
2476 dynamic_array[0] = argv[0][0];
2477 dynamic_array[ni.number - 1] = 543;
2478
2479 // work around unused variable warnings
2480 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2481 || dynamic_array[ni.number - 1] != 543);
2482 '
2483
2484 # Test code for whether the C compiler supports C11 (global declarations)
2485 ac_c_conftest_c11_globals='
2486 // Does the compiler advertise C11 conformance?
2487 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2488 # error "Compiler does not advertise C11 conformance"
2489 #endif
2490
2491 // Check _Alignas.
2492 char _Alignas (double) aligned_as_double;
2493 char _Alignas (0) no_special_alignment;
2494 extern char aligned_as_int;
2495 char _Alignas (0) _Alignas (int) aligned_as_int;
2496
2497 // Check _Alignof.
2498 enum
2499 {
2500 int_alignment = _Alignof (int),
2501 int_array_alignment = _Alignof (int[100]),
2502 char_alignment = _Alignof (char)
2503 };
2504 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2505
2506 // Check _Noreturn.
2507 int _Noreturn does_not_return (void) { for (;;) continue; }
2508
2509 // Check _Static_assert.
2510 struct test_static_assert
2511 {
2512 int x;
2513 _Static_assert (sizeof (int) <= sizeof (long int),
2514 "_Static_assert does not work in struct");
2515 long int y;
2516 };
2517
2518 // Check UTF-8 literals.
2519 #define u8 syntax error!
2520 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2521
2522 // Check duplicate typedefs.
2523 typedef long *long_ptr;
2524 typedef long int *long_ptr;
2525 typedef long_ptr long_ptr;
2526
2527 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2528 struct anonymous
2529 {
2530 union {
2531 struct { int i; int j; };
2532 struct { int k; long int l; } w;
2533 };
2534 int m;
2535 } v1;
2536 '
2537
2538 # Test code for whether the C compiler supports C11 (body of main).
2539 ac_c_conftest_c11_main='
2540 _Static_assert ((offsetof (struct anonymous, i)
2541 == offsetof (struct anonymous, w.k)),
2542 "Anonymous union alignment botch");
2543 v1.i = 2;
2544 v1.w.k = 5;
2545 ok |= v1.i != 5;
2546 '
2547
2548 # Test code for whether the C compiler supports C11 (complete).
2549 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2550 ${ac_c_conftest_c99_globals}
2551 ${ac_c_conftest_c11_globals}
2552
2553 int
2554 main (int argc, char **argv)
2555 {
2556 int ok = 0;
2557 ${ac_c_conftest_c89_main}
2558 ${ac_c_conftest_c99_main}
2559 ${ac_c_conftest_c11_main}
2560 return ok;
2561 }
2562 "
2563
2564 # Test code for whether the C compiler supports C99 (complete).
2565 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2566 ${ac_c_conftest_c99_globals}
2567
2568 int
2569 main (int argc, char **argv)
2570 {
2571 int ok = 0;
2572 ${ac_c_conftest_c89_main}
2573 ${ac_c_conftest_c99_main}
2574 return ok;
2575 }
2576 "
2577
2578 # Test code for whether the C compiler supports C89 (complete).
2579 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2580
2581 int
2582 main (int argc, char **argv)
2583 {
2584 int ok = 0;
2585 ${ac_c_conftest_c89_main}
2586 return ok;
2587 }
2588 "
2589
2590 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2591 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2592 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2593 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2594 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2595 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2596 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2597 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2598 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2599 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2600
2601 # Auxiliary files required by this configure script.
2602 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2603
2604 # Locations in which to look for auxiliary files.
2605 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2606
2607 # Search for a directory containing all of the required auxiliary files,
2608 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2609 # If we don't find one directory that contains all the files we need,
2610 # we report the set of missing files from the *first* directory in
2611 # $ac_aux_dir_candidates and give up.
2612 ac_missing_aux_files=""
2613 ac_first_candidate=:
2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 as_found=false
2617 for as_dir in $ac_aux_dir_candidates
2618 do
2619 IFS=$as_save_IFS
2620 case $as_dir in #(((
2621 '') as_dir=./ ;;
2622 */) ;;
2623 *) as_dir=$as_dir/ ;;
2624 esac
2625 as_found=:
2626
2627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2628 ac_aux_dir_found=yes
2629 ac_install_sh=
2630 for ac_aux in $ac_aux_files
2631 do
2632 # As a special case, if "install-sh" is required, that requirement
2633 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2634 # and $ac_install_sh is set appropriately for whichever one is found.
2635 if test x"$ac_aux" = x"install-sh"
2636 then
2637 if test -f "${as_dir}install-sh"; then
2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2639 ac_install_sh="${as_dir}install-sh -c"
2640 elif test -f "${as_dir}install.sh"; then
2641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2642 ac_install_sh="${as_dir}install.sh -c"
2643 elif test -f "${as_dir}shtool"; then
2644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2645 ac_install_sh="${as_dir}shtool install -c"
2646 else
2647 ac_aux_dir_found=no
2648 if $ac_first_candidate; then
2649 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2650 else
2651 break
2652 fi
2653 fi
2654 else
2655 if test -f "${as_dir}${ac_aux}"; then
2656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2657 else
2658 ac_aux_dir_found=no
2659 if $ac_first_candidate; then
2660 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2661 else
2662 break
2663 fi
2664 fi
2665 fi
2666 done
2667 if test "$ac_aux_dir_found" = yes; then
2668 ac_aux_dir="$as_dir"
2669 break
2670 fi
2671 ac_first_candidate=false
2672
2673 as_found=false
2674 done
2675 IFS=$as_save_IFS
2676 if $as_found
2677 then :
2678
2679 else $as_nop
2680 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2681 fi
2682
2683
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 if test -f "${ac_aux_dir}config.guess"; then
2689 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2690 fi
2691 if test -f "${ac_aux_dir}config.sub"; then
2692 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2693 fi
2694 if test -f "$ac_aux_dir/configure"; then
2695 ac_configure="$SHELL ${ac_aux_dir}configure"
2696 fi
2697
2698 # Check that the precious variables saved in the cache have kept the same
2699 # value.
2700 ac_cache_corrupted=false
2701 for ac_var in $ac_precious_vars; do
2702 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2703 eval ac_new_set=\$ac_env_${ac_var}_set
2704 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2705 eval ac_new_val=\$ac_env_${ac_var}_value
2706 case $ac_old_set,$ac_new_set in
2707 set,)
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2709 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2711 ,set)
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2713 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2715 ,);;
2716 *)
2717 if test "x$ac_old_val" != "x$ac_new_val"; then
2718 # differences in whitespace do not lead to failure.
2719 ac_old_val_w=`echo x $ac_old_val`
2720 ac_new_val_w=`echo x $ac_new_val`
2721 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2723 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2724 ac_cache_corrupted=:
2725 else
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2727 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2728 eval $ac_var=\$ac_old_val
2729 fi
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2731 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2733 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2734 fi;;
2735 esac
2736 # Pass precious variables to config.status.
2737 if test "$ac_new_set" = set; then
2738 case $ac_new_val in
2739 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 *) ac_arg=$ac_var=$ac_new_val ;;
2741 esac
2742 case " $ac_configure_args " in
2743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2744 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2745 esac
2746 fi
2747 done
2748 if $ac_cache_corrupted; then
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2750 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2752 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2753 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2754 and start over" "$LINENO" 5
2755 fi
2756 ## -------------------- ##
2757 ## Main body of script. ##
2758 ## -------------------- ##
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766
2767
2768 ac_config_headers="$ac_config_headers config.h"
2769
2770
2771
2772 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2773 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2774 # to avoid autoconf errors.
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786 # Expand $ac_aux_dir to an absolute path.
2787 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 printf %s "checking for $ac_word... " >&6; }
2799 if test ${ac_cv_prog_CC+y}
2800 then :
2801 printf %s "(cached) " >&6
2802 else $as_nop
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809 IFS=$as_save_IFS
2810 case $as_dir in #(((
2811 '') as_dir=./ ;;
2812 */) ;;
2813 *) as_dir=$as_dir/ ;;
2814 esac
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 printf "%s\n" "$CC" >&6; }
2831 else
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 printf "%s\n" "no" >&6; }
2834 fi
2835
2836
2837 fi
2838 if test -z "$ac_cv_prog_CC"; then
2839 ac_ct_CC=$CC
2840 # Extract the first word of "gcc", so it can be a program name with args.
2841 set dummy gcc; ac_word=$2
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 printf %s "checking for $ac_word... " >&6; }
2844 if test ${ac_cv_prog_ac_ct_CC+y}
2845 then :
2846 printf %s "(cached) " >&6
2847 else $as_nop
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 case $as_dir in #(((
2856 '') as_dir=./ ;;
2857 */) ;;
2858 *) as_dir=$as_dir/ ;;
2859 esac
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_CC="gcc"
2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873 if test -n "$ac_ct_CC"; then
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2875 printf "%s\n" "$ac_ct_CC" >&6; }
2876 else
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 printf "%s\n" "no" >&6; }
2879 fi
2880
2881 if test "x$ac_ct_CC" = x; then
2882 CC=""
2883 else
2884 case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2887 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888 ac_tool_warned=yes ;;
2889 esac
2890 CC=$ac_ct_CC
2891 fi
2892 else
2893 CC="$ac_cv_prog_CC"
2894 fi
2895
2896 if test -z "$CC"; then
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}cc; ac_word=$2
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 printf %s "checking for $ac_word... " >&6; }
2902 if test ${ac_cv_prog_CC+y}
2903 then :
2904 printf %s "(cached) " >&6
2905 else $as_nop
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 case $as_dir in #(((
2914 '') as_dir=./ ;;
2915 */) ;;
2916 *) as_dir=$as_dir/ ;;
2917 esac
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_CC="${ac_tool_prefix}cc"
2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 printf "%s\n" "$CC" >&6; }
2934 else
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 printf "%s\n" "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 fi
2942 if test -z "$CC"; then
2943 # Extract the first word of "cc", so it can be a program name with args.
2944 set dummy cc; ac_word=$2
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 printf %s "checking for $ac_word... " >&6; }
2947 if test ${ac_cv_prog_CC+y}
2948 then :
2949 printf %s "(cached) " >&6
2950 else $as_nop
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 ac_prog_rejected=no
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 case $as_dir in #(((
2960 '') as_dir=./ ;;
2961 */) ;;
2962 *) as_dir=$as_dir/ ;;
2963 esac
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2967 ac_prog_rejected=yes
2968 continue
2969 fi
2970 ac_cv_prog_CC="cc"
2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 if test $ac_prog_rejected = yes; then
2979 # We found a bogon in the path, so make sure we never use it.
2980 set dummy $ac_cv_prog_CC
2981 shift
2982 if test $# != 0; then
2983 # We chose a different compiler from the bogus one.
2984 # However, it has the same basename, so the bogon will be chosen
2985 # first if we set CC to just the basename; use the full file name.
2986 shift
2987 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2988 fi
2989 fi
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 printf "%s\n" "$CC" >&6; }
2996 else
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 printf "%s\n" "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 if test -z "$CC"; then
3004 if test -n "$ac_tool_prefix"; then
3005 for ac_prog in cl.exe
3006 do
3007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 printf %s "checking for $ac_word... " >&6; }
3011 if test ${ac_cv_prog_CC+y}
3012 then :
3013 printf %s "(cached) " >&6
3014 else $as_nop
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 case $as_dir in #(((
3023 '') as_dir=./ ;;
3024 */) ;;
3025 *) as_dir=$as_dir/ ;;
3026 esac
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033 done
3034 done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 printf "%s\n" "$CC" >&6; }
3043 else
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
3046 fi
3047
3048
3049 test -n "$CC" && break
3050 done
3051 fi
3052 if test -z "$CC"; then
3053 ac_ct_CC=$CC
3054 for ac_prog in cl.exe
3055 do
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 printf %s "checking for $ac_word... " >&6; }
3060 if test ${ac_cv_prog_ac_ct_CC+y}
3061 then :
3062 printf %s "(cached) " >&6
3063 else $as_nop
3064 if test -n "$ac_ct_CC"; then
3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 case $as_dir in #(((
3072 '') as_dir=./ ;;
3073 */) ;;
3074 *) as_dir=$as_dir/ ;;
3075 esac
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="$ac_prog"
3079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089 if test -n "$ac_ct_CC"; then
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091 printf "%s\n" "$ac_ct_CC" >&6; }
3092 else
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 printf "%s\n" "no" >&6; }
3095 fi
3096
3097
3098 test -n "$ac_ct_CC" && break
3099 done
3100
3101 if test "x$ac_ct_CC" = x; then
3102 CC=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 CC=$ac_ct_CC
3111 fi
3112 fi
3113
3114 fi
3115 if test -z "$CC"; then
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}clang; ac_word=$2
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 printf %s "checking for $ac_word... " >&6; }
3121 if test ${ac_cv_prog_CC+y}
3122 then :
3123 printf %s "(cached) " >&6
3124 else $as_nop
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 case $as_dir in #(((
3133 '') as_dir=./ ;;
3134 */) ;;
3135 *) as_dir=$as_dir/ ;;
3136 esac
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_CC="${ac_tool_prefix}clang"
3140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 printf "%s\n" "$CC" >&6; }
3153 else
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 printf "%s\n" "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 if test -z "$ac_cv_prog_CC"; then
3161 ac_ct_CC=$CC
3162 # Extract the first word of "clang", so it can be a program name with args.
3163 set dummy clang; ac_word=$2
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 printf %s "checking for $ac_word... " >&6; }
3166 if test ${ac_cv_prog_ac_ct_CC+y}
3167 then :
3168 printf %s "(cached) " >&6
3169 else $as_nop
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 case $as_dir in #(((
3178 '') as_dir=./ ;;
3179 */) ;;
3180 *) as_dir=$as_dir/ ;;
3181 esac
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_CC="clang"
3185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 printf "%s\n" "$ac_ct_CC" >&6; }
3198 else
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 printf "%s\n" "no" >&6; }
3201 fi
3202
3203 if test "x$ac_ct_CC" = x; then
3204 CC=""
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 else
3215 CC="$ac_cv_prog_CC"
3216 fi
3217
3218 fi
3219
3220
3221 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "no acceptable C compiler found in \$PATH
3224 See \`config.log' for more details" "$LINENO" 5; }
3225
3226 # Provide some information about the compiler.
3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228 set X $ac_compile
3229 ac_compiler=$2
3230 for ac_option in --version -v -V -qversion -version; do
3231 { { ac_try="$ac_compiler $ac_option >&5"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 printf "%s\n" "$ac_try_echo"; } >&5
3238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239 ac_status=$?
3240 if test -s conftest.err; then
3241 sed '10a\
3242 ... rest of stderr output deleted ...
3243 10q' conftest.err >conftest.er1
3244 cat conftest.er1 >&5
3245 fi
3246 rm -f conftest.er1 conftest.err
3247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }
3249 done
3250
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253
3254 int
3255 main (void)
3256 {
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files_save=$ac_clean_files
3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264 # Try to create an executable without -o first, disregard a.out.
3265 # It will help us diagnose broken compilers, and finding out an intuition
3266 # of exeext.
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268 printf %s "checking whether the C compiler works... " >&6; }
3269 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271 # The possible output files:
3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274 ac_rmfiles=
3275 for ac_file in $ac_files
3276 do
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280 esac
3281 done
3282 rm -f $ac_rmfiles
3283
3284 if { { ac_try="$ac_link_default"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 printf "%s\n" "$ac_try_echo"; } >&5
3291 (eval "$ac_link_default") 2>&5
3292 ac_status=$?
3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }
3295 then :
3296 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3297 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3298 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3299 # so that the user can short-circuit this test for compilers unknown to
3300 # Autoconf.
3301 for ac_file in $ac_files ''
3302 do
3303 test -f "$ac_file" || continue
3304 case $ac_file in
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3306 ;;
3307 [ab].out )
3308 # We found the default executable, but exeext='' is most
3309 # certainly right.
3310 break;;
3311 *.* )
3312 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3313 then :; else
3314 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 fi
3316 # We set ac_cv_exeext here because the later test for it is not
3317 # safe: cross compilers may not add the suffix if given an `-o'
3318 # argument, so we may need to know it at that point already.
3319 # Even if this section looks crufty: it has the advantage of
3320 # actually working.
3321 break;;
3322 * )
3323 break;;
3324 esac
3325 done
3326 test "$ac_cv_exeext" = no && ac_cv_exeext=
3327
3328 else $as_nop
3329 ac_file=''
3330 fi
3331 if test -z "$ac_file"
3332 then :
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 printf "%s\n" "no" >&6; }
3335 printf "%s\n" "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error 77 "C compiler cannot create executables
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 else $as_nop
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 printf "%s\n" "yes" >&6; }
3345 fi
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347 printf %s "checking for C compiler default output file name... " >&6; }
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 printf "%s\n" "$ac_file" >&6; }
3350 ac_exeext=$ac_cv_exeext
3351
3352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3353 ac_clean_files=$ac_clean_files_save
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3355 printf %s "checking for suffix of executables... " >&6; }
3356 if { { ac_try="$ac_link"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 printf "%s\n" "$ac_try_echo"; } >&5
3363 (eval "$ac_link") 2>&5
3364 ac_status=$?
3365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }
3367 then :
3368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3370 # work properly (i.e., refer to `conftest.exe'), while it won't with
3371 # `rm'.
3372 for ac_file in conftest.exe conftest conftest.*; do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 break;;
3378 * ) break;;
3379 esac
3380 done
3381 else $as_nop
3382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details" "$LINENO" 5; }
3386 fi
3387 rm -f conftest conftest$ac_cv_exeext
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3389 printf "%s\n" "$ac_cv_exeext" >&6; }
3390
3391 rm -f conftest.$ac_ext
3392 EXEEXT=$ac_cv_exeext
3393 ac_exeext=$EXEEXT
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396 #include <stdio.h>
3397 int
3398 main (void)
3399 {
3400 FILE *f = fopen ("conftest.out", "w");
3401 return ferror (f) || fclose (f) != 0;
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 ac_clean_files="$ac_clean_files conftest.out"
3408 # Check that the compiler produces executables we can run. If not, either
3409 # the compiler is broken, or we cross compile.
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3411 printf %s "checking whether we are cross compiling... " >&6; }
3412 if test "$cross_compiling" != yes; then
3413 { { ac_try="$ac_link"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 printf "%s\n" "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3421 ac_status=$?
3422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }
3424 if { ac_try='./conftest$ac_cv_exeext'
3425 { { case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 printf "%s\n" "$ac_try_echo"; } >&5
3431 (eval "$ac_try") 2>&5
3432 ac_status=$?
3433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; }; then
3435 cross_compiling=no
3436 else
3437 if test "$cross_compiling" = maybe; then
3438 cross_compiling=yes
3439 else
3440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error 77 "cannot run C compiled programs.
3443 If you meant to cross compile, use \`--host'.
3444 See \`config.log' for more details" "$LINENO" 5; }
3445 fi
3446 fi
3447 fi
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3449 printf "%s\n" "$cross_compiling" >&6; }
3450
3451 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3452 ac_clean_files=$ac_clean_files_save
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3454 printf %s "checking for suffix of object files... " >&6; }
3455 if test ${ac_cv_objext+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else $as_nop
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main (void)
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.o conftest.obj
3471 if { { ac_try="$ac_compile"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 printf "%s\n" "$ac_try_echo"; } >&5
3478 (eval "$ac_compile") 2>&5
3479 ac_status=$?
3480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }
3482 then :
3483 for ac_file in conftest.o conftest.obj conftest.*; do
3484 test -f "$ac_file" || continue;
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 break;;
3489 esac
3490 done
3491 else $as_nop
3492 printf "%s\n" "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $? "cannot compute suffix of object files: cannot compile
3498 See \`config.log' for more details" "$LINENO" 5; }
3499 fi
3500 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501 fi
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503 printf "%s\n" "$ac_cv_objext" >&6; }
3504 OBJEXT=$ac_cv_objext
3505 ac_objext=$OBJEXT
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3507 printf %s "checking whether the compiler supports GNU C... " >&6; }
3508 if test ${ac_cv_c_compiler_gnu+y}
3509 then :
3510 printf %s "(cached) " >&6
3511 else $as_nop
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main (void)
3517 {
3518 #ifndef __GNUC__
3519 choke me
3520 #endif
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"
3527 then :
3528 ac_compiler_gnu=yes
3529 else $as_nop
3530 ac_compiler_gnu=no
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534
3535 fi
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540 if test $ac_compiler_gnu = yes; then
3541 GCC=yes
3542 else
3543 GCC=
3544 fi
3545 ac_test_CFLAGS=${CFLAGS+y}
3546 ac_save_CFLAGS=$CFLAGS
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3548 printf %s "checking whether $CC accepts -g... " >&6; }
3549 if test ${ac_cv_prog_cc_g+y}
3550 then :
3551 printf %s "(cached) " >&6
3552 else $as_nop
3553 ac_save_c_werror_flag=$ac_c_werror_flag
3554 ac_c_werror_flag=yes
3555 ac_cv_prog_cc_g=no
3556 CFLAGS="-g"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main (void)
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"
3569 then :
3570 ac_cv_prog_cc_g=yes
3571 else $as_nop
3572 CFLAGS=""
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575
3576 int
3577 main (void)
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"
3585 then :
3586
3587 else $as_nop
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3589 CFLAGS="-g"
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592
3593 int
3594 main (void)
3595 {
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"
3602 then :
3603 ac_cv_prog_cc_g=yes
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3611 fi
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3614 if test $ac_test_CFLAGS; then
3615 CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617 if test "$GCC" = yes; then
3618 CFLAGS="-g -O2"
3619 else
3620 CFLAGS="-g"
3621 fi
3622 else
3623 if test "$GCC" = yes; then
3624 CFLAGS="-O2"
3625 else
3626 CFLAGS=
3627 fi
3628 fi
3629 ac_prog_cc_stdc=no
3630 if test x$ac_prog_cc_stdc = xno
3631 then :
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3633 printf %s "checking for $CC option to enable C11 features... " >&6; }
3634 if test ${ac_cv_prog_cc_c11+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else $as_nop
3638 ac_cv_prog_cc_c11=no
3639 ac_save_CC=$CC
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642 $ac_c_conftest_c11_program
3643 _ACEOF
3644 for ac_arg in '' -std=gnu11
3645 do
3646 CC="$ac_save_CC $ac_arg"
3647 if ac_fn_c_try_compile "$LINENO"
3648 then :
3649 ac_cv_prog_cc_c11=$ac_arg
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext conftest.beam
3652 test "x$ac_cv_prog_cc_c11" != "xno" && break
3653 done
3654 rm -f conftest.$ac_ext
3655 CC=$ac_save_CC
3656 fi
3657
3658 if test "x$ac_cv_prog_cc_c11" = xno
3659 then :
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661 printf "%s\n" "unsupported" >&6; }
3662 else $as_nop
3663 if test "x$ac_cv_prog_cc_c11" = x
3664 then :
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3666 printf "%s\n" "none needed" >&6; }
3667 else $as_nop
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3669 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3670 CC="$CC $ac_cv_prog_cc_c11"
3671 fi
3672 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3673 ac_prog_cc_stdc=c11
3674 fi
3675 fi
3676 if test x$ac_prog_cc_stdc = xno
3677 then :
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3679 printf %s "checking for $CC option to enable C99 features... " >&6; }
3680 if test ${ac_cv_prog_cc_c99+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else $as_nop
3684 ac_cv_prog_cc_c99=no
3685 ac_save_CC=$CC
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 $ac_c_conftest_c99_program
3689 _ACEOF
3690 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3691 do
3692 CC="$ac_save_CC $ac_arg"
3693 if ac_fn_c_try_compile "$LINENO"
3694 then :
3695 ac_cv_prog_cc_c99=$ac_arg
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext conftest.beam
3698 test "x$ac_cv_prog_cc_c99" != "xno" && break
3699 done
3700 rm -f conftest.$ac_ext
3701 CC=$ac_save_CC
3702 fi
3703
3704 if test "x$ac_cv_prog_cc_c99" = xno
3705 then :
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 printf "%s\n" "unsupported" >&6; }
3708 else $as_nop
3709 if test "x$ac_cv_prog_cc_c99" = x
3710 then :
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712 printf "%s\n" "none needed" >&6; }
3713 else $as_nop
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3715 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3716 CC="$CC $ac_cv_prog_cc_c99"
3717 fi
3718 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3719 ac_prog_cc_stdc=c99
3720 fi
3721 fi
3722 if test x$ac_prog_cc_stdc = xno
3723 then :
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3725 printf %s "checking for $CC option to enable C89 features... " >&6; }
3726 if test ${ac_cv_prog_cc_c89+y}
3727 then :
3728 printf %s "(cached) " >&6
3729 else $as_nop
3730 ac_cv_prog_cc_c89=no
3731 ac_save_CC=$CC
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 $ac_c_conftest_c89_program
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737 do
3738 CC="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile "$LINENO"
3740 then :
3741 ac_cv_prog_cc_c89=$ac_arg
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.beam
3744 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC
3748 fi
3749
3750 if test "x$ac_cv_prog_cc_c89" = xno
3751 then :
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753 printf "%s\n" "unsupported" >&6; }
3754 else $as_nop
3755 if test "x$ac_cv_prog_cc_c89" = x
3756 then :
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758 printf "%s\n" "none needed" >&6; }
3759 else $as_nop
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3762 CC="$CC $ac_cv_prog_cc_c89"
3763 fi
3764 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3765 ac_prog_cc_stdc=c89
3766 fi
3767 fi
3768
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3782 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3783 if test ${am_cv_prog_cc_c_o+y}
3784 then :
3785 printf %s "(cached) " >&6
3786 else $as_nop
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 int
3791 main (void)
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 # Make sure it works both with $CC and with simple cc.
3799 # Following AC_PROG_CC_C_O, we do the test twice because some
3800 # compilers refuse to overwrite an existing .o file with -o,
3801 # though they will create one.
3802 am_cv_prog_cc_c_o=yes
3803 for am_i in 1 2; do
3804 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3805 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } \
3809 && test -f conftest2.$ac_objext; then
3810 : OK
3811 else
3812 am_cv_prog_cc_c_o=no
3813 break
3814 fi
3815 done
3816 rm -f core conftest*
3817 unset am_i
3818 fi
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3820 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3821 if test "$am_cv_prog_cc_c_o" != yes; then
3822 # Losing compiler, so override with the script.
3823 # FIXME: It is wrong to rewrite CC.
3824 # But if we don't then we get into trouble of one sort or another.
3825 # A longer-term fix would be to have automake use am__CC in this case,
3826 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3827 CC="$am_aux_dir/compile $CC"
3828 fi
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
3835
3836
3837 ac_header= ac_cache=
3838 for ac_item in $ac_header_c_list
3839 do
3840 if test $ac_cache; then
3841 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3842 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3843 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3844 fi
3845 ac_header= ac_cache=
3846 elif test $ac_header; then
3847 ac_cache=$ac_item
3848 else
3849 ac_header=$ac_item
3850 fi
3851 done
3852
3853
3854
3855
3856
3857
3858
3859
3860 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3861 then :
3862
3863 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3864
3865 fi
3866
3867
3868
3869
3870
3871
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3873 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3874 if test ${ac_cv_safe_to_define___extensions__+y}
3875 then :
3876 printf %s "(cached) " >&6
3877 else $as_nop
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880
3881 # define __EXTENSIONS__ 1
3882 $ac_includes_default
3883 int
3884 main (void)
3885 {
3886
3887 ;
3888 return 0;
3889 }
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"
3892 then :
3893 ac_cv_safe_to_define___extensions__=yes
3894 else $as_nop
3895 ac_cv_safe_to_define___extensions__=no
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3898 fi
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3900 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3901
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3903 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3904 if test ${ac_cv_should_define__xopen_source+y}
3905 then :
3906 printf %s "(cached) " >&6
3907 else $as_nop
3908 ac_cv_should_define__xopen_source=no
3909 if test $ac_cv_header_wchar_h = yes
3910 then :
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 #include <wchar.h>
3915 mbstate_t x;
3916 int
3917 main (void)
3918 {
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"
3925 then :
3926
3927 else $as_nop
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930
3931 #define _XOPEN_SOURCE 500
3932 #include <wchar.h>
3933 mbstate_t x;
3934 int
3935 main (void)
3936 {
3937
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"
3943 then :
3944 ac_cv_should_define__xopen_source=yes
3945 fi
3946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3949 fi
3950 fi
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3952 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3953
3954 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3955
3956 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3957
3958 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3959
3960 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3961
3962 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3963
3964 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3965
3966 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3967
3968 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3969
3970 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3971
3972 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3973
3974 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3975
3976 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3977
3978 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3979
3980 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3981
3982 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3983
3984 if test $ac_cv_header_minix_config_h = yes
3985 then :
3986 MINIX=yes
3987 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3988
3989 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3990
3991 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3992
3993 else $as_nop
3994 MINIX=
3995 fi
3996 if test $ac_cv_safe_to_define___extensions__ = yes
3997 then :
3998 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3999
4000 fi
4001 if test $ac_cv_should_define__xopen_source = yes
4002 then :
4003 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4004
4005 fi
4006
4007
4008 # Initialize Automake
4009 am__api_version='1.16'
4010
4011
4012 # Find a good install program. We prefer a C program (faster),
4013 # so one script is as good as another. But avoid the broken or
4014 # incompatible versions:
4015 # SysV /etc/install, /usr/sbin/install
4016 # SunOS /usr/etc/install
4017 # IRIX /sbin/install
4018 # AIX /bin/install
4019 # AmigaOS /C/install, which installs bootblocks on floppy discs
4020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4023 # OS/2's system install, which has a completely different semantic
4024 # ./install, which can be erroneously created by make from ./install.sh.
4025 # Reject install programs that cannot install multiple files.
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4027 printf %s "checking for a BSD-compatible install... " >&6; }
4028 if test -z "$INSTALL"; then
4029 if test ${ac_cv_path_install+y}
4030 then :
4031 printf %s "(cached) " >&6
4032 else $as_nop
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036 IFS=$as_save_IFS
4037 case $as_dir in #(((
4038 '') as_dir=./ ;;
4039 */) ;;
4040 *) as_dir=$as_dir/ ;;
4041 esac
4042 # Account for fact that we put trailing slashes in our PATH walk.
4043 case $as_dir in #((
4044 ./ | /[cC]/* | \
4045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4046 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4047 /usr/ucb/* ) ;;
4048 *)
4049 # OSF1 and SCO ODT 3.0 have their own names for install.
4050 # Don't use installbsd from OSF since it installs stuff as root
4051 # by default.
4052 for ac_prog in ginstall scoinst install; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4055 if test $ac_prog = install &&
4056 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057 # AIX install. It has an incompatible calling convention.
4058 :
4059 elif test $ac_prog = install &&
4060 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4061 # program-specific install script used by HP pwplus--don't use.
4062 :
4063 else
4064 rm -rf conftest.one conftest.two conftest.dir
4065 echo one > conftest.one
4066 echo two > conftest.two
4067 mkdir conftest.dir
4068 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4069 test -s conftest.one && test -s conftest.two &&
4070 test -s conftest.dir/conftest.one &&
4071 test -s conftest.dir/conftest.two
4072 then
4073 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4074 break 3
4075 fi
4076 fi
4077 fi
4078 done
4079 done
4080 ;;
4081 esac
4082
4083 done
4084 IFS=$as_save_IFS
4085
4086 rm -rf conftest.one conftest.two conftest.dir
4087
4088 fi
4089 if test ${ac_cv_path_install+y}; then
4090 INSTALL=$ac_cv_path_install
4091 else
4092 # As a last resort, use the slow shell script. Don't cache a
4093 # value for INSTALL within a source directory, because that will
4094 # break other packages using the cache if that directory is
4095 # removed, or if the value is a relative name.
4096 INSTALL=$ac_install_sh
4097 fi
4098 fi
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4100 printf "%s\n" "$INSTALL" >&6; }
4101
4102 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4103 # It thinks the first close brace ends the variable substitution.
4104 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4105
4106 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4107
4108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4109
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4111 printf %s "checking whether build environment is sane... " >&6; }
4112 # Reject unsafe characters in $srcdir or the absolute working directory
4113 # name. Accept space and tab only in the latter.
4114 am_lf='
4115 '
4116 case `pwd` in
4117 *[\\\"\#\$\&\'\`$am_lf]*)
4118 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4119 esac
4120 case $srcdir in
4121 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4122 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4123 esac
4124
4125 # Do 'set' in a subshell so we don't clobber the current shell's
4126 # arguments. Must try -L first in case configure is actually a
4127 # symlink; some systems play weird games with the mod time of symlinks
4128 # (eg FreeBSD returns the mod time of the symlink's containing
4129 # directory).
4130 if (
4131 am_has_slept=no
4132 for am_try in 1 2; do
4133 echo "timestamp, slept: $am_has_slept" > conftest.file
4134 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4135 if test "$*" = "X"; then
4136 # -L didn't work.
4137 set X `ls -t "$srcdir/configure" conftest.file`
4138 fi
4139 if test "$*" != "X $srcdir/configure conftest.file" \
4140 && test "$*" != "X conftest.file $srcdir/configure"; then
4141
4142 # If neither matched, then we have a broken ls. This can happen
4143 # if, for instance, CONFIG_SHELL is bash and it inherits a
4144 # broken ls alias from the environment. This has actually
4145 # happened. Such a system could not be considered "sane".
4146 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4147 alias in your environment" "$LINENO" 5
4148 fi
4149 if test "$2" = conftest.file || test $am_try -eq 2; then
4150 break
4151 fi
4152 # Just in case.
4153 sleep 1
4154 am_has_slept=yes
4155 done
4156 test "$2" = conftest.file
4157 )
4158 then
4159 # Ok.
4160 :
4161 else
4162 as_fn_error $? "newly created file is older than distributed files!
4163 Check your system clock" "$LINENO" 5
4164 fi
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166 printf "%s\n" "yes" >&6; }
4167 # If we didn't sleep, we still need to ensure time stamps of config.status and
4168 # generated files are strictly newer.
4169 am_sleep_pid=
4170 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4171 ( sleep 1 ) &
4172 am_sleep_pid=$!
4173 fi
4174
4175 rm -f conftest.file
4176
4177 test "$program_prefix" != NONE &&
4178 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4179 # Use a double $ so make ignores it.
4180 test "$program_suffix" != NONE &&
4181 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4182 # Double any \ or $.
4183 # By default was `s,x,x', remove it if useless.
4184 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4185 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4186
4187
4188 if test x"${MISSING+set}" != xset; then
4189 MISSING="\${SHELL} '$am_aux_dir/missing'"
4190 fi
4191 # Use eval to expand $SHELL
4192 if eval "$MISSING --is-lightweight"; then
4193 am_missing_run="$MISSING "
4194 else
4195 am_missing_run=
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4197 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4198 fi
4199
4200 if test x"${install_sh+set}" != xset; then
4201 case $am_aux_dir in
4202 *\ * | *\ *)
4203 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4204 *)
4205 install_sh="\${SHELL} $am_aux_dir/install-sh"
4206 esac
4207 fi
4208
4209 # Installed binaries are usually stripped using 'strip' when the user
4210 # run "make install-strip". However 'strip' might not be the right
4211 # tool to use in cross-compilation environments, therefore Automake
4212 # will honor the 'STRIP' environment variable to overrule this program.
4213 if test "$cross_compiling" != no; then
4214 if test -n "$ac_tool_prefix"; then
4215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4216 set dummy ${ac_tool_prefix}strip; ac_word=$2
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 printf %s "checking for $ac_word... " >&6; }
4219 if test ${ac_cv_prog_STRIP+y}
4220 then :
4221 printf %s "(cached) " >&6
4222 else $as_nop
4223 if test -n "$STRIP"; then
4224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229 IFS=$as_save_IFS
4230 case $as_dir in #(((
4231 '') as_dir=./ ;;
4232 */) ;;
4233 *) as_dir=$as_dir/ ;;
4234 esac
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 STRIP=$ac_cv_prog_STRIP
4248 if test -n "$STRIP"; then
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4250 printf "%s\n" "$STRIP" >&6; }
4251 else
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 printf "%s\n" "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 if test -z "$ac_cv_prog_STRIP"; then
4259 ac_ct_STRIP=$STRIP
4260 # Extract the first word of "strip", so it can be a program name with args.
4261 set dummy strip; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_ac_ct_STRIP+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else $as_nop
4268 if test -n "$ac_ct_STRIP"; then
4269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_STRIP="strip"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4293 if test -n "$ac_ct_STRIP"; then
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4295 printf "%s\n" "$ac_ct_STRIP" >&6; }
4296 else
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 printf "%s\n" "no" >&6; }
4299 fi
4300
4301 if test "x$ac_ct_STRIP" = x; then
4302 STRIP=":"
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308 ac_tool_warned=yes ;;
4309 esac
4310 STRIP=$ac_ct_STRIP
4311 fi
4312 else
4313 STRIP="$ac_cv_prog_STRIP"
4314 fi
4315
4316 fi
4317 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4318
4319
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4321 printf %s "checking for a race-free mkdir -p... " >&6; }
4322 if test -z "$MKDIR_P"; then
4323 if test ${ac_cv_path_mkdir+y}
4324 then :
4325 printf %s "(cached) " >&6
4326 else $as_nop
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4329 do
4330 IFS=$as_save_IFS
4331 case $as_dir in #(((
4332 '') as_dir=./ ;;
4333 */) ;;
4334 *) as_dir=$as_dir/ ;;
4335 esac
4336 for ac_prog in mkdir gmkdir; do
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4339 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4340 'mkdir ('*'coreutils) '* | \
4341 'BusyBox '* | \
4342 'mkdir (fileutils) '4.1*)
4343 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4344 break 3;;
4345 esac
4346 done
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351 fi
4352
4353 test -d ./--version && rmdir ./--version
4354 if test ${ac_cv_path_mkdir+y}; then
4355 MKDIR_P="$ac_cv_path_mkdir -p"
4356 else
4357 # As a last resort, use the slow shell script. Don't cache a
4358 # value for MKDIR_P within a source directory, because that will
4359 # break other packages using the cache if that directory is
4360 # removed, or if the value is a relative name.
4361 MKDIR_P="$ac_install_sh -d"
4362 fi
4363 fi
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4365 printf "%s\n" "$MKDIR_P" >&6; }
4366
4367 for ac_prog in gawk mawk nawk awk
4368 do
4369 # Extract the first word of "$ac_prog", so it can be a program name with args.
4370 set dummy $ac_prog; ac_word=$2
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 printf %s "checking for $ac_word... " >&6; }
4373 if test ${ac_cv_prog_AWK+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else $as_nop
4377 if test -n "$AWK"; then
4378 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383 IFS=$as_save_IFS
4384 case $as_dir in #(((
4385 '') as_dir=./ ;;
4386 */) ;;
4387 *) as_dir=$as_dir/ ;;
4388 esac
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_AWK="$ac_prog"
4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 AWK=$ac_cv_prog_AWK
4402 if test -n "$AWK"; then
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4404 printf "%s\n" "$AWK" >&6; }
4405 else
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 printf "%s\n" "no" >&6; }
4408 fi
4409
4410
4411 test -n "$AWK" && break
4412 done
4413
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4415 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4416 set x ${MAKE-make}
4417 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4418 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4419 then :
4420 printf %s "(cached) " >&6
4421 else $as_nop
4422 cat >conftest.make <<\_ACEOF
4423 SHELL = /bin/sh
4424 all:
4425 @echo '@@@%%%=$(MAKE)=@@@%%%'
4426 _ACEOF
4427 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4428 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4429 *@@@%%%=?*=@@@%%%*)
4430 eval ac_cv_prog_make_${ac_make}_set=yes;;
4431 *)
4432 eval ac_cv_prog_make_${ac_make}_set=no;;
4433 esac
4434 rm -f conftest.make
4435 fi
4436 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 printf "%s\n" "yes" >&6; }
4439 SET_MAKE=
4440 else
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 printf "%s\n" "no" >&6; }
4443 SET_MAKE="MAKE=${MAKE-make}"
4444 fi
4445
4446 rm -rf .tst 2>/dev/null
4447 mkdir .tst 2>/dev/null
4448 if test -d .tst; then
4449 am__leading_dot=.
4450 else
4451 am__leading_dot=_
4452 fi
4453 rmdir .tst 2>/dev/null
4454
4455 DEPDIR="${am__leading_dot}deps"
4456
4457 ac_config_commands="$ac_config_commands depfiles"
4458
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4460 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4461 cat > confinc.mk << 'END'
4462 am__doit:
4463 @echo this is the am__doit target >confinc.out
4464 .PHONY: am__doit
4465 END
4466 am__include="#"
4467 am__quote=
4468 # BSD make does it like this.
4469 echo '.include "confinc.mk" # ignored' > confmf.BSD
4470 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4471 echo 'include confinc.mk # ignored' > confmf.GNU
4472 _am_result=no
4473 for s in GNU BSD; do
4474 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4475 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }
4479 case $?:`cat confinc.out 2>/dev/null` in #(
4480 '0:this is the am__doit target') :
4481 case $s in #(
4482 BSD) :
4483 am__include='.include' am__quote='"' ;; #(
4484 *) :
4485 am__include='include' am__quote='' ;;
4486 esac ;; #(
4487 *) :
4488 ;;
4489 esac
4490 if test "$am__include" != "#"; then
4491 _am_result="yes ($s style)"
4492 break
4493 fi
4494 done
4495 rm -f confinc.* confmf.*
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4497 printf "%s\n" "${_am_result}" >&6; }
4498
4499 # Check whether --enable-dependency-tracking was given.
4500 if test ${enable_dependency_tracking+y}
4501 then :
4502 enableval=$enable_dependency_tracking;
4503 fi
4504
4505 if test "x$enable_dependency_tracking" != xno; then
4506 am_depcomp="$ac_aux_dir/depcomp"
4507 AMDEPBACKSLASH='\'
4508 am__nodep='_no'
4509 fi
4510 if test "x$enable_dependency_tracking" != xno; then
4511 AMDEP_TRUE=
4512 AMDEP_FALSE='#'
4513 else
4514 AMDEP_TRUE='#'
4515 AMDEP_FALSE=
4516 fi
4517
4518
4519 # Check whether --enable-silent-rules was given.
4520 if test ${enable_silent_rules+y}
4521 then :
4522 enableval=$enable_silent_rules;
4523 fi
4524
4525 case $enable_silent_rules in # (((
4526 yes) AM_DEFAULT_VERBOSITY=0;;
4527 no) AM_DEFAULT_VERBOSITY=1;;
4528 *) AM_DEFAULT_VERBOSITY=1;;
4529 esac
4530 am_make=${MAKE-make}
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4532 printf %s "checking whether $am_make supports nested variables... " >&6; }
4533 if test ${am_cv_make_support_nested_variables+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else $as_nop
4537 if printf "%s\n" 'TRUE=$(BAR$(V))
4538 BAR0=false
4539 BAR1=true
4540 V=1
4541 am__doit:
4542 @$(TRUE)
4543 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4544 am_cv_make_support_nested_variables=yes
4545 else
4546 am_cv_make_support_nested_variables=no
4547 fi
4548 fi
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4550 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4551 if test $am_cv_make_support_nested_variables = yes; then
4552 AM_V='$(V)'
4553 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4554 else
4555 AM_V=$AM_DEFAULT_VERBOSITY
4556 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4557 fi
4558 AM_BACKSLASH='\'
4559
4560 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4561 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4562 # is not polluted with repeated "-I."
4563 am__isrc=' -I$(srcdir)'
4564 # test to see if srcdir already configured
4565 if test -f $srcdir/config.status; then
4566 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4567 fi
4568 fi
4569
4570 # test whether we have cygpath
4571 if test -z "$CYGPATH_W"; then
4572 if (cygpath --version) >/dev/null 2>/dev/null; then
4573 CYGPATH_W='cygpath -w'
4574 else
4575 CYGPATH_W=echo
4576 fi
4577 fi
4578
4579
4580 # Define the identity of the package.
4581 PACKAGE='libXext'
4582 VERSION='1.3.5'
4583
4584
4585 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4586
4587
4588 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4589
4590 # Some tools Automake needs.
4591
4592 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4593
4594
4595 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4596
4597
4598 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4599
4600
4601 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4602
4603
4604 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4605
4606 # For better backward compatibility. To be removed once Automake 1.9.x
4607 # dies out for good. For more background, see:
4608 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4609 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4610 mkdir_p='$(MKDIR_P)'
4611
4612 # We need awk for the "check" target (and possibly the TAP driver). The
4613 # system "awk" is bad on some platforms.
4614 # Always define AMTAR for backward compatibility. Yes, it's still used
4615 # in the wild :-( We should find a proper way to deprecate it ...
4616 AMTAR='$${TAR-tar}'
4617
4618
4619 # We'll loop over all known methods to create a tar archive until one works.
4620 _am_tools='gnutar pax cpio none'
4621
4622 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4623
4624
4625
4626
4627
4628 depcc="$CC" am_compiler_list=
4629
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4631 printf %s "checking dependency style of $depcc... " >&6; }
4632 if test ${am_cv_CC_dependencies_compiler_type+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else $as_nop
4636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4637 # We make a subdir and do the tests there. Otherwise we can end up
4638 # making bogus files that we don't know about and never remove. For
4639 # instance it was reported that on HP-UX the gcc test will end up
4640 # making a dummy file named 'D' -- because '-MD' means "put the output
4641 # in D".
4642 rm -rf conftest.dir
4643 mkdir conftest.dir
4644 # Copy depcomp to subdir because otherwise we won't find it if we're
4645 # using a relative directory.
4646 cp "$am_depcomp" conftest.dir
4647 cd conftest.dir
4648 # We will build objects and dependencies in a subdirectory because
4649 # it helps to detect inapplicable dependency modes. For instance
4650 # both Tru64's cc and ICC support -MD to output dependencies as a
4651 # side effect of compilation, but ICC will put the dependencies in
4652 # the current directory while Tru64 will put them in the object
4653 # directory.
4654 mkdir sub
4655
4656 am_cv_CC_dependencies_compiler_type=none
4657 if test "$am_compiler_list" = ""; then
4658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4659 fi
4660 am__universal=false
4661 case " $depcc " in #(
4662 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4663 esac
4664
4665 for depmode in $am_compiler_list; do
4666 # Setup a source with many dependencies, because some compilers
4667 # like to wrap large dependency lists on column 80 (with \), and
4668 # we should not choose a depcomp mode which is confused by this.
4669 #
4670 # We need to recreate these files for each test, as the compiler may
4671 # overwrite some of them when testing with obscure command lines.
4672 # This happens at least with the AIX C compiler.
4673 : > sub/conftest.c
4674 for i in 1 2 3 4 5 6; do
4675 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4676 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4677 # Solaris 10 /bin/sh.
4678 echo '/* dummy */' > sub/conftst$i.h
4679 done
4680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4681
4682 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4683 # mode. It turns out that the SunPro C++ compiler does not properly
4684 # handle '-M -o', and we need to detect this. Also, some Intel
4685 # versions had trouble with output in subdirs.
4686 am__obj=sub/conftest.${OBJEXT-o}
4687 am__minus_obj="-o $am__obj"
4688 case $depmode in
4689 gcc)
4690 # This depmode causes a compiler race in universal mode.
4691 test "$am__universal" = false || continue
4692 ;;
4693 nosideeffect)
4694 # After this tag, mechanisms are not by side-effect, so they'll
4695 # only be used when explicitly requested.
4696 if test "x$enable_dependency_tracking" = xyes; then
4697 continue
4698 else
4699 break
4700 fi
4701 ;;
4702 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4703 # This compiler won't grok '-c -o', but also, the minuso test has
4704 # not run yet. These depmodes are late enough in the game, and
4705 # so weak that their functioning should not be impacted.
4706 am__obj=conftest.${OBJEXT-o}
4707 am__minus_obj=
4708 ;;
4709 none) break ;;
4710 esac
4711 if depmode=$depmode \
4712 source=sub/conftest.c object=$am__obj \
4713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4714 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4715 >/dev/null 2>conftest.err &&
4716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4718 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4720 # icc doesn't choke on unknown options, it will just issue warnings
4721 # or remarks (even with -Werror). So we grep stderr for any message
4722 # that says an option was ignored or not supported.
4723 # When given -MP, icc 7.0 and 7.1 complain thusly:
4724 # icc: Command line warning: ignoring option '-M'; no argument required
4725 # The diagnosis changed in icc 8.0:
4726 # icc: Command line remark: option '-MP' not supported
4727 if (grep 'ignoring option' conftest.err ||
4728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4729 am_cv_CC_dependencies_compiler_type=$depmode
4730 break
4731 fi
4732 fi
4733 done
4734
4735 cd ..
4736 rm -rf conftest.dir
4737 else
4738 am_cv_CC_dependencies_compiler_type=none
4739 fi
4740
4741 fi
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4743 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4744 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4745
4746 if
4747 test "x$enable_dependency_tracking" != xno \
4748 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4749 am__fastdepCC_TRUE=
4750 am__fastdepCC_FALSE='#'
4751 else
4752 am__fastdepCC_TRUE='#'
4753 am__fastdepCC_FALSE=
4754 fi
4755
4756
4757 # Variables for tags utilities; see am/tags.am
4758 if test -z "$CTAGS"; then
4759 CTAGS=ctags
4760 fi
4761
4762 if test -z "$ETAGS"; then
4763 ETAGS=etags
4764 fi
4765
4766 if test -z "$CSCOPE"; then
4767 CSCOPE=cscope
4768 fi
4769
4770
4771
4772 # POSIX will say in a future version that running "rm -f" with no argument
4773 # is OK; and we want to be able to make that assumption in our Makefile
4774 # recipes. So use an aggressive probe to check that the usage we want is
4775 # actually supported "in the wild" to an acceptable degree.
4776 # See automake bug#10828.
4777 # To make any issue more visible, cause the running configure to be aborted
4778 # by default if the 'rm' program in use doesn't match our expectations; the
4779 # user can still override this though.
4780 if rm -f && rm -fr && rm -rf; then : OK; else
4781 cat >&2 <<'END'
4782 Oops!
4783
4784 Your 'rm' program seems unable to run without file operands specified
4785 on the command line, even when the '-f' option is present. This is contrary
4786 to the behaviour of most rm programs out there, and not conforming with
4787 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4788
4789 Please tell bug-automake@gnu.org about your system, including the value
4790 of your $PATH and any error possibly output before this message. This
4791 can help us improve future automake versions.
4792
4793 END
4794 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4795 echo 'Configuration will proceed anyway, since you have set the' >&2
4796 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4797 echo >&2
4798 else
4799 cat >&2 <<'END'
4800 Aborting the configuration process, to ensure you take notice of the issue.
4801
4802 You can download and install GNU coreutils to get an 'rm' implementation
4803 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4804
4805 If you want to complete the configuration process using your problematic
4806 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4807 to "yes", and re-run configure.
4808
4809 END
4810 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4811 fi
4812 fi
4813
4814
4815 # Initialize libtool
4816 case `pwd` in
4817 *\ * | *\ *)
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4819 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4820 esac
4821
4822
4823
4824 macro_version='2.4.7'
4825 macro_revision='2.4.7'
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840 ltmain=$ac_aux_dir/ltmain.sh
4841
4842
4843
4844 # Make sure we can run config.sub.
4845 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4846 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4847
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849 printf %s "checking build system type... " >&6; }
4850 if test ${ac_cv_build+y}
4851 then :
4852 printf %s "(cached) " >&6
4853 else $as_nop
4854 ac_build_alias=$build_alias
4855 test "x$ac_build_alias" = x &&
4856 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4857 test "x$ac_build_alias" = x &&
4858 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4859 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4860 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4861
4862 fi
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4864 printf "%s\n" "$ac_cv_build" >&6; }
4865 case $ac_cv_build in
4866 *-*-*) ;;
4867 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4868 esac
4869 build=$ac_cv_build
4870 ac_save_IFS=$IFS; IFS='-'
4871 set x $ac_cv_build
4872 shift
4873 build_cpu=$1
4874 build_vendor=$2
4875 shift; shift
4876 # Remember, the first character of IFS is used to create $*,
4877 # except with old shells:
4878 build_os=$*
4879 IFS=$ac_save_IFS
4880 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4881
4882
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4884 printf %s "checking host system type... " >&6; }
4885 if test ${ac_cv_host+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else $as_nop
4889 if test "x$host_alias" = x; then
4890 ac_cv_host=$ac_cv_build
4891 else
4892 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4893 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4894 fi
4895
4896 fi
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4898 printf "%s\n" "$ac_cv_host" >&6; }
4899 case $ac_cv_host in
4900 *-*-*) ;;
4901 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4902 esac
4903 host=$ac_cv_host
4904 ac_save_IFS=$IFS; IFS='-'
4905 set x $ac_cv_host
4906 shift
4907 host_cpu=$1
4908 host_vendor=$2
4909 shift; shift
4910 # Remember, the first character of IFS is used to create $*,
4911 # except with old shells:
4912 host_os=$*
4913 IFS=$ac_save_IFS
4914 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4915
4916
4917 # Backslashify metacharacters that are still active within
4918 # double-quoted strings.
4919 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4920
4921 # Same as above, but do not quote variable references.
4922 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4923
4924 # Sed substitution to delay expansion of an escaped shell variable in a
4925 # double_quote_subst'ed string.
4926 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4927
4928 # Sed substitution to delay expansion of an escaped single quote.
4929 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4930
4931 # Sed substitution to avoid accidental globbing in evaled expressions
4932 no_glob_subst='s/\*/\\\*/g'
4933
4934 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4935 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4936 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4937
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4939 printf %s "checking how to print strings... " >&6; }
4940 # Test print first, because it will be a builtin if present.
4941 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4942 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4943 ECHO='print -r --'
4944 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4945 ECHO='printf %s\n'
4946 else
4947 # Use this function as a fallback that always works.
4948 func_fallback_echo ()
4949 {
4950 eval 'cat <<_LTECHO_EOF
4951 $1
4952 _LTECHO_EOF'
4953 }
4954 ECHO='func_fallback_echo'
4955 fi
4956
4957 # func_echo_all arg...
4958 # Invoke $ECHO with all args, space-separated.
4959 func_echo_all ()
4960 {
4961 $ECHO ""
4962 }
4963
4964 case $ECHO in
4965 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4966 printf "%s\n" "printf" >&6; } ;;
4967 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4968 printf "%s\n" "print -r" >&6; } ;;
4969 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4970 printf "%s\n" "cat" >&6; } ;;
4971 esac
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4987 printf %s "checking for a sed that does not truncate output... " >&6; }
4988 if test ${ac_cv_path_SED+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else $as_nop
4992 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4993 for ac_i in 1 2 3 4 5 6 7; do
4994 ac_script="$ac_script$as_nl$ac_script"
4995 done
4996 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4997 { ac_script=; unset ac_script;}
4998 if test -z "$SED"; then
4999 ac_path_SED_found=false
5000 # Loop through the user's path and test for each of PROGNAME-LIST
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 case $as_dir in #(((
5006 '') as_dir=./ ;;
5007 */) ;;
5008 *) as_dir=$as_dir/ ;;
5009 esac
5010 for ac_prog in sed gsed
5011 do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5014 as_fn_executable_p "$ac_path_SED" || continue
5015 # Check for GNU ac_path_SED and select it if it is found.
5016 # Check for GNU $ac_path_SED
5017 case `"$ac_path_SED" --version 2>&1` in
5018 *GNU*)
5019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020 *)
5021 ac_count=0
5022 printf %s 0123456789 >"conftest.in"
5023 while :
5024 do
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 printf "%s\n" '' >> "conftest.nl"
5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_SED_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_SED="$ac_path_SED"
5035 ac_path_SED_max=$ac_count
5036 fi
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5039 done
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043 $ac_path_SED_found && break 3
5044 done
5045 done
5046 done
5047 IFS=$as_save_IFS
5048 if test -z "$ac_cv_path_SED"; then
5049 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5050 fi
5051 else
5052 ac_cv_path_SED=$SED
5053 fi
5054
5055 fi
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057 printf "%s\n" "$ac_cv_path_SED" >&6; }
5058 SED="$ac_cv_path_SED"
5059 rm -f conftest.sed
5060
5061 test -z "$SED" && SED=sed
5062 Xsed="$SED -e 1s/^X//"
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5075 printf %s "checking for grep that handles long lines and -e... " >&6; }
5076 if test ${ac_cv_path_GREP+y}
5077 then :
5078 printf %s "(cached) " >&6
5079 else $as_nop
5080 if test -z "$GREP"; then
5081 ac_path_GREP_found=false
5082 # Loop through the user's path and test for each of PROGNAME-LIST
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085 do
5086 IFS=$as_save_IFS
5087 case $as_dir in #(((
5088 '') as_dir=./ ;;
5089 */) ;;
5090 *) as_dir=$as_dir/ ;;
5091 esac
5092 for ac_prog in grep ggrep
5093 do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5096 as_fn_executable_p "$ac_path_GREP" || continue
5097 # Check for GNU ac_path_GREP and select it if it is found.
5098 # Check for GNU $ac_path_GREP
5099 case `"$ac_path_GREP" --version 2>&1` in
5100 *GNU*)
5101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5102 *)
5103 ac_count=0
5104 printf %s 0123456789 >"conftest.in"
5105 while :
5106 do
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 printf "%s\n" 'GREP' >> "conftest.nl"
5111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_GREP="$ac_path_GREP"
5117 ac_path_GREP_max=$ac_count
5118 fi
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5121 done
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 esac
5124
5125 $ac_path_GREP_found && break 3
5126 done
5127 done
5128 done
5129 IFS=$as_save_IFS
5130 if test -z "$ac_cv_path_GREP"; then
5131 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5132 fi
5133 else
5134 ac_cv_path_GREP=$GREP
5135 fi
5136
5137 fi
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5139 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5140 GREP="$ac_cv_path_GREP"
5141
5142
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5144 printf %s "checking for egrep... " >&6; }
5145 if test ${ac_cv_path_EGREP+y}
5146 then :
5147 printf %s "(cached) " >&6
5148 else $as_nop
5149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5150 then ac_cv_path_EGREP="$GREP -E"
5151 else
5152 if test -z "$EGREP"; then
5153 ac_path_EGREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157 do
5158 IFS=$as_save_IFS
5159 case $as_dir in #(((
5160 '') as_dir=./ ;;
5161 */) ;;
5162 *) as_dir=$as_dir/ ;;
5163 esac
5164 for ac_prog in egrep
5165 do
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5168 as_fn_executable_p "$ac_path_EGREP" || continue
5169 # Check for GNU ac_path_EGREP and select it if it is found.
5170 # Check for GNU $ac_path_EGREP
5171 case `"$ac_path_EGREP" --version 2>&1` in
5172 *GNU*)
5173 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5174 *)
5175 ac_count=0
5176 printf %s 0123456789 >"conftest.in"
5177 while :
5178 do
5179 cat "conftest.in" "conftest.in" >"conftest.tmp"
5180 mv "conftest.tmp" "conftest.in"
5181 cp "conftest.in" "conftest.nl"
5182 printf "%s\n" 'EGREP' >> "conftest.nl"
5183 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185 as_fn_arith $ac_count + 1 && ac_count=$as_val
5186 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5187 # Best one so far, save it but keep looking for a better one
5188 ac_cv_path_EGREP="$ac_path_EGREP"
5189 ac_path_EGREP_max=$ac_count
5190 fi
5191 # 10*(2^10) chars as input seems more than enough
5192 test $ac_count -gt 10 && break
5193 done
5194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195 esac
5196
5197 $ac_path_EGREP_found && break 3
5198 done
5199 done
5200 done
5201 IFS=$as_save_IFS
5202 if test -z "$ac_cv_path_EGREP"; then
5203 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204 fi
5205 else
5206 ac_cv_path_EGREP=$EGREP
5207 fi
5208
5209 fi
5210 fi
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5212 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5213 EGREP="$ac_cv_path_EGREP"
5214
5215
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5217 printf %s "checking for fgrep... " >&6; }
5218 if test ${ac_cv_path_FGREP+y}
5219 then :
5220 printf %s "(cached) " >&6
5221 else $as_nop
5222 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5223 then ac_cv_path_FGREP="$GREP -F"
5224 else
5225 if test -z "$FGREP"; then
5226 ac_path_FGREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5230 do
5231 IFS=$as_save_IFS
5232 case $as_dir in #(((
5233 '') as_dir=./ ;;
5234 */) ;;
5235 *) as_dir=$as_dir/ ;;
5236 esac
5237 for ac_prog in fgrep
5238 do
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5241 as_fn_executable_p "$ac_path_FGREP" || continue
5242 # Check for GNU ac_path_FGREP and select it if it is found.
5243 # Check for GNU $ac_path_FGREP
5244 case `"$ac_path_FGREP" --version 2>&1` in
5245 *GNU*)
5246 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5247 *)
5248 ac_count=0
5249 printf %s 0123456789 >"conftest.in"
5250 while :
5251 do
5252 cat "conftest.in" "conftest.in" >"conftest.tmp"
5253 mv "conftest.tmp" "conftest.in"
5254 cp "conftest.in" "conftest.nl"
5255 printf "%s\n" 'FGREP' >> "conftest.nl"
5256 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5258 as_fn_arith $ac_count + 1 && ac_count=$as_val
5259 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5260 # Best one so far, save it but keep looking for a better one
5261 ac_cv_path_FGREP="$ac_path_FGREP"
5262 ac_path_FGREP_max=$ac_count
5263 fi
5264 # 10*(2^10) chars as input seems more than enough
5265 test $ac_count -gt 10 && break
5266 done
5267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5268 esac
5269
5270 $ac_path_FGREP_found && break 3
5271 done
5272 done
5273 done
5274 IFS=$as_save_IFS
5275 if test -z "$ac_cv_path_FGREP"; then
5276 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5277 fi
5278 else
5279 ac_cv_path_FGREP=$FGREP
5280 fi
5281
5282 fi
5283 fi
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5285 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5286 FGREP="$ac_cv_path_FGREP"
5287
5288
5289 test -z "$GREP" && GREP=grep
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 # Check whether --with-gnu-ld was given.
5310 if test ${with_gnu_ld+y}
5311 then :
5312 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5313 else $as_nop
5314 with_gnu_ld=no
5315 fi
5316
5317 ac_prog=ld
5318 if test yes = "$GCC"; then
5319 # Check if gcc -print-prog-name=ld gives a path.
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5321 printf %s "checking for ld used by $CC... " >&6; }
5322 case $host in
5323 *-*-mingw*)
5324 # gcc leaves a trailing carriage return, which upsets mingw
5325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5326 *)
5327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5328 esac
5329 case $ac_prog in
5330 # Accept absolute paths.
5331 [\\/]* | ?:[\\/]*)
5332 re_direlt='/[^/][^/]*/\.\./'
5333 # Canonicalize the pathname of ld
5334 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5335 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5336 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5337 done
5338 test -z "$LD" && LD=$ac_prog
5339 ;;
5340 "")
5341 # If it fails, then pretend we aren't using GCC.
5342 ac_prog=ld
5343 ;;
5344 *)
5345 # If it is relative, then search for the first ld in PATH.
5346 with_gnu_ld=unknown
5347 ;;
5348 esac
5349 elif test yes = "$with_gnu_ld"; then
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5351 printf %s "checking for GNU ld... " >&6; }
5352 else
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5354 printf %s "checking for non-GNU ld... " >&6; }
5355 fi
5356 if test ${lt_cv_path_LD+y}
5357 then :
5358 printf %s "(cached) " >&6
5359 else $as_nop
5360 if test -z "$LD"; then
5361 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5362 for ac_dir in $PATH; do
5363 IFS=$lt_save_ifs
5364 test -z "$ac_dir" && ac_dir=.
5365 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5366 lt_cv_path_LD=$ac_dir/$ac_prog
5367 # Check to see if the program is GNU ld. I'd rather use --version,
5368 # but apparently some variants of GNU ld only accept -v.
5369 # Break only if it was the GNU/non-GNU ld that we prefer.
5370 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5371 *GNU* | *'with BFD'*)
5372 test no != "$with_gnu_ld" && break
5373 ;;
5374 *)
5375 test yes != "$with_gnu_ld" && break
5376 ;;
5377 esac
5378 fi
5379 done
5380 IFS=$lt_save_ifs
5381 else
5382 lt_cv_path_LD=$LD # Let the user override the test with a path.
5383 fi
5384 fi
5385
5386 LD=$lt_cv_path_LD
5387 if test -n "$LD"; then
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5389 printf "%s\n" "$LD" >&6; }
5390 else
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 printf "%s\n" "no" >&6; }
5393 fi
5394 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5396 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5397 if test ${lt_cv_prog_gnu_ld+y}
5398 then :
5399 printf %s "(cached) " >&6
5400 else $as_nop
5401 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5402 case `$LD -v 2>&1 </dev/null` in
5403 *GNU* | *'with BFD'*)
5404 lt_cv_prog_gnu_ld=yes
5405 ;;
5406 *)
5407 lt_cv_prog_gnu_ld=no
5408 ;;
5409 esac
5410 fi
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5412 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5413 with_gnu_ld=$lt_cv_prog_gnu_ld
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5424 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5425 if test ${lt_cv_path_NM+y}
5426 then :
5427 printf %s "(cached) " >&6
5428 else $as_nop
5429 if test -n "$NM"; then
5430 # Let the user override the test.
5431 lt_cv_path_NM=$NM
5432 else
5433 lt_nm_to_check=${ac_tool_prefix}nm
5434 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5435 lt_nm_to_check="$lt_nm_to_check nm"
5436 fi
5437 for lt_tmp_nm in $lt_nm_to_check; do
5438 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5439 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5440 IFS=$lt_save_ifs
5441 test -z "$ac_dir" && ac_dir=.
5442 tmp_nm=$ac_dir/$lt_tmp_nm
5443 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5444 # Check to see if the nm accepts a BSD-compat flag.
5445 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5446 # nm: unknown option "B" ignored
5447 # Tru64's nm complains that /dev/null is an invalid object file
5448 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5449 case $build_os in
5450 mingw*) lt_bad_file=conftest.nm/nofile ;;
5451 *) lt_bad_file=/dev/null ;;
5452 esac
5453 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5454 *$lt_bad_file* | *'Invalid file or object type'*)
5455 lt_cv_path_NM="$tmp_nm -B"
5456 break 2
5457 ;;
5458 *)
5459 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5460 */dev/null*)
5461 lt_cv_path_NM="$tmp_nm -p"
5462 break 2
5463 ;;
5464 *)
5465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5466 continue # so that we can try to find one that supports BSD flags
5467 ;;
5468 esac
5469 ;;
5470 esac
5471 fi
5472 done
5473 IFS=$lt_save_ifs
5474 done
5475 : ${lt_cv_path_NM=no}
5476 fi
5477 fi
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5479 printf "%s\n" "$lt_cv_path_NM" >&6; }
5480 if test no != "$lt_cv_path_NM"; then
5481 NM=$lt_cv_path_NM
5482 else
5483 # Didn't find any BSD compatible name lister, look for dumpbin.
5484 if test -n "$DUMPBIN"; then :
5485 # Let the user override the test.
5486 else
5487 if test -n "$ac_tool_prefix"; then
5488 for ac_prog in dumpbin "link -dump"
5489 do
5490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 printf %s "checking for $ac_word... " >&6; }
5494 if test ${ac_cv_prog_DUMPBIN+y}
5495 then :
5496 printf %s "(cached) " >&6
5497 else $as_nop
5498 if test -n "$DUMPBIN"; then
5499 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 case $as_dir in #(((
5506 '') as_dir=./ ;;
5507 */) ;;
5508 *) as_dir=$as_dir/ ;;
5509 esac
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 DUMPBIN=$ac_cv_prog_DUMPBIN
5523 if test -n "$DUMPBIN"; then
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5525 printf "%s\n" "$DUMPBIN" >&6; }
5526 else
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 printf "%s\n" "no" >&6; }
5529 fi
5530
5531
5532 test -n "$DUMPBIN" && break
5533 done
5534 fi
5535 if test -z "$DUMPBIN"; then
5536 ac_ct_DUMPBIN=$DUMPBIN
5537 for ac_prog in dumpbin "link -dump"
5538 do
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 printf %s "checking for $ac_word... " >&6; }
5543 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else $as_nop
5547 if test -n "$ac_ct_DUMPBIN"; then
5548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 case $as_dir in #(((
5555 '') as_dir=./ ;;
5556 */) ;;
5557 *) as_dir=$as_dir/ ;;
5558 esac
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5572 if test -n "$ac_ct_DUMPBIN"; then
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5574 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5575 else
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 printf "%s\n" "no" >&6; }
5578 fi
5579
5580
5581 test -n "$ac_ct_DUMPBIN" && break
5582 done
5583
5584 if test "x$ac_ct_DUMPBIN" = x; then
5585 DUMPBIN=":"
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591 ac_tool_warned=yes ;;
5592 esac
5593 DUMPBIN=$ac_ct_DUMPBIN
5594 fi
5595 fi
5596
5597 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5598 *COFF*)
5599 DUMPBIN="$DUMPBIN -symbols -headers"
5600 ;;
5601 *)
5602 DUMPBIN=:
5603 ;;
5604 esac
5605 fi
5606
5607 if test : != "$DUMPBIN"; then
5608 NM=$DUMPBIN
5609 fi
5610 fi
5611 test -z "$NM" && NM=nm
5612
5613
5614
5615
5616
5617
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5619 printf %s "checking the name lister ($NM) interface... " >&6; }
5620 if test ${lt_cv_nm_interface+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else $as_nop
5624 lt_cv_nm_interface="BSD nm"
5625 echo "int some_variable = 0;" > conftest.$ac_ext
5626 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5627 (eval "$ac_compile" 2>conftest.err)
5628 cat conftest.err >&5
5629 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5630 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5631 cat conftest.err >&5
5632 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5633 cat conftest.out >&5
5634 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5635 lt_cv_nm_interface="MS dumpbin"
5636 fi
5637 rm -f conftest*
5638 fi
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5640 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5641
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5643 printf %s "checking whether ln -s works... " >&6; }
5644 LN_S=$as_ln_s
5645 if test "$LN_S" = "ln -s"; then
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647 printf "%s\n" "yes" >&6; }
5648 else
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5650 printf "%s\n" "no, using $LN_S" >&6; }
5651 fi
5652
5653 # find the maximum length of command line arguments
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5655 printf %s "checking the maximum length of command line arguments... " >&6; }
5656 if test ${lt_cv_sys_max_cmd_len+y}
5657 then :
5658 printf %s "(cached) " >&6
5659 else $as_nop
5660 i=0
5661 teststring=ABCD
5662
5663 case $build_os in
5664 msdosdjgpp*)
5665 # On DJGPP, this test can blow up pretty badly due to problems in libc
5666 # (any single argument exceeding 2000 bytes causes a buffer overrun
5667 # during glob expansion). Even if it were fixed, the result of this
5668 # check would be larger than it should be.
5669 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5670 ;;
5671
5672 gnu*)
5673 # Under GNU Hurd, this test is not required because there is
5674 # no limit to the length of command line arguments.
5675 # Libtool will interpret -1 as no limit whatsoever
5676 lt_cv_sys_max_cmd_len=-1;
5677 ;;
5678
5679 cygwin* | mingw* | cegcc*)
5680 # On Win9x/ME, this test blows up -- it succeeds, but takes
5681 # about 5 minutes as the teststring grows exponentially.
5682 # Worse, since 9x/ME are not pre-emptively multitasking,
5683 # you end up with a "frozen" computer, even though with patience
5684 # the test eventually succeeds (with a max line length of 256k).
5685 # Instead, let's just punt: use the minimum linelength reported by
5686 # all of the supported platforms: 8192 (on NT/2K/XP).
5687 lt_cv_sys_max_cmd_len=8192;
5688 ;;
5689
5690 mint*)
5691 # On MiNT this can take a long time and run out of memory.
5692 lt_cv_sys_max_cmd_len=8192;
5693 ;;
5694
5695 amigaos*)
5696 # On AmigaOS with pdksh, this test takes hours, literally.
5697 # So we just punt and use a minimum line length of 8192.
5698 lt_cv_sys_max_cmd_len=8192;
5699 ;;
5700
5701 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5702 # This has been around since 386BSD, at least. Likely further.
5703 if test -x /sbin/sysctl; then
5704 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5705 elif test -x /usr/sbin/sysctl; then
5706 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5707 else
5708 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5709 fi
5710 # And add a safety zone
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713 ;;
5714
5715 interix*)
5716 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5717 lt_cv_sys_max_cmd_len=196608
5718 ;;
5719
5720 os2*)
5721 # The test takes a long time on OS/2.
5722 lt_cv_sys_max_cmd_len=8192
5723 ;;
5724
5725 osf*)
5726 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5727 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5728 # nice to cause kernel panics so lets avoid the loop below.
5729 # First set a reasonable default.
5730 lt_cv_sys_max_cmd_len=16384
5731 #
5732 if test -x /sbin/sysconfig; then
5733 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5734 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5735 esac
5736 fi
5737 ;;
5738 sco3.2v5*)
5739 lt_cv_sys_max_cmd_len=102400
5740 ;;
5741 sysv5* | sco5v6* | sysv4.2uw2*)
5742 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5743 if test -n "$kargmax"; then
5744 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5745 else
5746 lt_cv_sys_max_cmd_len=32768
5747 fi
5748 ;;
5749 *)
5750 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5751 if test -n "$lt_cv_sys_max_cmd_len" && \
5752 test undefined != "$lt_cv_sys_max_cmd_len"; then
5753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5755 else
5756 # Make teststring a little bigger before we do anything with it.
5757 # a 1K string should be a reasonable start.
5758 for i in 1 2 3 4 5 6 7 8; do
5759 teststring=$teststring$teststring
5760 done
5761 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5762 # If test is not a shell built-in, we'll probably end up computing a
5763 # maximum length that is only half of the actual maximum length, but
5764 # we can't tell.
5765 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5766 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5767 test 17 != "$i" # 1/2 MB should be enough
5768 do
5769 i=`expr $i + 1`
5770 teststring=$teststring$teststring
5771 done
5772 # Only check the string length outside the loop.
5773 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5774 teststring=
5775 # Add a significant safety factor because C++ compilers can tack on
5776 # massive amounts of additional arguments before passing them to the
5777 # linker. It appears as though 1/2 is a usable value.
5778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5779 fi
5780 ;;
5781 esac
5782
5783 fi
5784
5785 if test -n "$lt_cv_sys_max_cmd_len"; then
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5787 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5788 else
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5790 printf "%s\n" "none" >&6; }
5791 fi
5792 max_cmd_len=$lt_cv_sys_max_cmd_len
5793
5794
5795
5796
5797
5798
5799 : ${CP="cp -f"}
5800 : ${MV="mv -f"}
5801 : ${RM="rm -f"}
5802
5803 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5804 lt_unset=unset
5805 else
5806 lt_unset=false
5807 fi
5808
5809
5810
5811
5812
5813 # test EBCDIC or ASCII
5814 case `echo X|tr X '\101'` in
5815 A) # ASCII based system
5816 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5817 lt_SP2NL='tr \040 \012'
5818 lt_NL2SP='tr \015\012 \040\040'
5819 ;;
5820 *) # EBCDIC based system
5821 lt_SP2NL='tr \100 \n'
5822 lt_NL2SP='tr \r\n \100\100'
5823 ;;
5824 esac
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5835 printf %s "checking how to convert $build file names to $host format... " >&6; }
5836 if test ${lt_cv_to_host_file_cmd+y}
5837 then :
5838 printf %s "(cached) " >&6
5839 else $as_nop
5840 case $host in
5841 *-*-mingw* )
5842 case $build in
5843 *-*-mingw* ) # actually msys
5844 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5845 ;;
5846 *-*-cygwin* )
5847 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5848 ;;
5849 * ) # otherwise, assume *nix
5850 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5851 ;;
5852 esac
5853 ;;
5854 *-*-cygwin* )
5855 case $build in
5856 *-*-mingw* ) # actually msys
5857 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5858 ;;
5859 *-*-cygwin* )
5860 lt_cv_to_host_file_cmd=func_convert_file_noop
5861 ;;
5862 * ) # otherwise, assume *nix
5863 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5864 ;;
5865 esac
5866 ;;
5867 * ) # unhandled hosts (and "normal" native builds)
5868 lt_cv_to_host_file_cmd=func_convert_file_noop
5869 ;;
5870 esac
5871
5872 fi
5873
5874 to_host_file_cmd=$lt_cv_to_host_file_cmd
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5876 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5877
5878
5879
5880
5881
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5883 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5884 if test ${lt_cv_to_tool_file_cmd+y}
5885 then :
5886 printf %s "(cached) " >&6
5887 else $as_nop
5888 #assume ordinary cross tools, or native build.
5889 lt_cv_to_tool_file_cmd=func_convert_file_noop
5890 case $host in
5891 *-*-mingw* )
5892 case $build in
5893 *-*-mingw* ) # actually msys
5894 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5895 ;;
5896 esac
5897 ;;
5898 esac
5899
5900 fi
5901
5902 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5904 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5905
5906
5907
5908
5909
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5911 printf %s "checking for $LD option to reload object files... " >&6; }
5912 if test ${lt_cv_ld_reload_flag+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else $as_nop
5916 lt_cv_ld_reload_flag='-r'
5917 fi
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5919 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5920 reload_flag=$lt_cv_ld_reload_flag
5921 case $reload_flag in
5922 "" | " "*) ;;
5923 *) reload_flag=" $reload_flag" ;;
5924 esac
5925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5926 case $host_os in
5927 cygwin* | mingw* | pw32* | cegcc*)
5928 if test yes != "$GCC"; then
5929 reload_cmds=false
5930 fi
5931 ;;
5932 darwin*)
5933 if test yes = "$GCC"; then
5934 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5935 else
5936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5937 fi
5938 ;;
5939 esac
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949 if test -n "$ac_tool_prefix"; then
5950 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}file; ac_word=$2
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 printf %s "checking for $ac_word... " >&6; }
5954 if test ${ac_cv_prog_FILECMD+y}
5955 then :
5956 printf %s "(cached) " >&6
5957 else $as_nop
5958 if test -n "$FILECMD"; then
5959 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 case $as_dir in #(((
5966 '') as_dir=./ ;;
5967 */) ;;
5968 *) as_dir=$as_dir/ ;;
5969 esac
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 FILECMD=$ac_cv_prog_FILECMD
5983 if test -n "$FILECMD"; then
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5985 printf "%s\n" "$FILECMD" >&6; }
5986 else
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 printf "%s\n" "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_FILECMD"; then
5994 ac_ct_FILECMD=$FILECMD
5995 # Extract the first word of "file", so it can be a program name with args.
5996 set dummy file; ac_word=$2
5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 printf %s "checking for $ac_word... " >&6; }
5999 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6000 then :
6001 printf %s "(cached) " >&6
6002 else $as_nop
6003 if test -n "$ac_ct_FILECMD"; then
6004 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 case $as_dir in #(((
6011 '') as_dir=./ ;;
6012 */) ;;
6013 *) as_dir=$as_dir/ ;;
6014 esac
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_FILECMD="file"
6018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6028 if test -n "$ac_ct_FILECMD"; then
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6030 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6031 else
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 printf "%s\n" "no" >&6; }
6034 fi
6035
6036 if test "x$ac_ct_FILECMD" = x; then
6037 FILECMD=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045 FILECMD=$ac_ct_FILECMD
6046 fi
6047 else
6048 FILECMD="$ac_cv_prog_FILECMD"
6049 fi
6050
6051
6052
6053
6054
6055
6056
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 printf %s "checking for $ac_word... " >&6; }
6062 if test ${ac_cv_prog_OBJDUMP+y}
6063 then :
6064 printf %s "(cached) " >&6
6065 else $as_nop
6066 if test -n "$OBJDUMP"; then
6067 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 case $as_dir in #(((
6074 '') as_dir=./ ;;
6075 */) ;;
6076 *) as_dir=$as_dir/ ;;
6077 esac
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 OBJDUMP=$ac_cv_prog_OBJDUMP
6091 if test -n "$OBJDUMP"; then
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6093 printf "%s\n" "$OBJDUMP" >&6; }
6094 else
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 printf "%s\n" "no" >&6; }
6097 fi
6098
6099
6100 fi
6101 if test -z "$ac_cv_prog_OBJDUMP"; then
6102 ac_ct_OBJDUMP=$OBJDUMP
6103 # Extract the first word of "objdump", so it can be a program name with args.
6104 set dummy objdump; ac_word=$2
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 printf %s "checking for $ac_word... " >&6; }
6107 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6108 then :
6109 printf %s "(cached) " >&6
6110 else $as_nop
6111 if test -n "$ac_ct_OBJDUMP"; then
6112 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 case $as_dir in #(((
6119 '') as_dir=./ ;;
6120 */) ;;
6121 *) as_dir=$as_dir/ ;;
6122 esac
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6136 if test -n "$ac_ct_OBJDUMP"; then
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6138 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6139 else
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 printf "%s\n" "no" >&6; }
6142 fi
6143
6144 if test "x$ac_ct_OBJDUMP" = x; then
6145 OBJDUMP="false"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153 OBJDUMP=$ac_ct_OBJDUMP
6154 fi
6155 else
6156 OBJDUMP="$ac_cv_prog_OBJDUMP"
6157 fi
6158
6159 test -z "$OBJDUMP" && OBJDUMP=objdump
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6170 printf %s "checking how to recognize dependent libraries... " >&6; }
6171 if test ${lt_cv_deplibs_check_method+y}
6172 then :
6173 printf %s "(cached) " >&6
6174 else $as_nop
6175 lt_cv_file_magic_cmd='$MAGIC_CMD'
6176 lt_cv_file_magic_test_file=
6177 lt_cv_deplibs_check_method='unknown'
6178 # Need to set the preceding variable on all platforms that support
6179 # interlibrary dependencies.
6180 # 'none' -- dependencies not supported.
6181 # 'unknown' -- same as none, but documents that we really don't know.
6182 # 'pass_all' -- all dependencies passed with no checks.
6183 # 'test_compile' -- check by making test program.
6184 # 'file_magic [[regex]]' -- check by looking for files in library path
6185 # that responds to the $file_magic_cmd with a given extended regex.
6186 # If you have 'file' or equivalent on your system and you're not sure
6187 # whether 'pass_all' will *always* work, you probably want this one.
6188
6189 case $host_os in
6190 aix[4-9]*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193
6194 beos*)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197
6198 bsdi[45]*)
6199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6200 lt_cv_file_magic_cmd='$FILECMD -L'
6201 lt_cv_file_magic_test_file=/shlib/libc.so
6202 ;;
6203
6204 cygwin*)
6205 # func_win32_libid is a shell function defined in ltmain.sh
6206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6207 lt_cv_file_magic_cmd='func_win32_libid'
6208 ;;
6209
6210 mingw* | pw32*)
6211 # Base MSYS/MinGW do not provide the 'file' command needed by
6212 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6213 # unless we find 'file', for example because we are cross-compiling.
6214 if ( file / ) >/dev/null 2>&1; then
6215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6216 lt_cv_file_magic_cmd='func_win32_libid'
6217 else
6218 # Keep this pattern in sync with the one in func_win32_libid.
6219 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6220 lt_cv_file_magic_cmd='$OBJDUMP -f'
6221 fi
6222 ;;
6223
6224 cegcc*)
6225 # use the weaker test based on 'objdump'. See mingw*.
6226 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6227 lt_cv_file_magic_cmd='$OBJDUMP -f'
6228 ;;
6229
6230 darwin* | rhapsody*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234 freebsd* | dragonfly* | midnightbsd*)
6235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6236 case $host_cpu in
6237 i*86 )
6238 # Not sure whether the presence of OpenBSD here was a mistake.
6239 # Let's accept both of them until this is cleared up.
6240 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6241 lt_cv_file_magic_cmd=$FILECMD
6242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6243 ;;
6244 esac
6245 else
6246 lt_cv_deplibs_check_method=pass_all
6247 fi
6248 ;;
6249
6250 haiku*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253
6254 hpux10.20* | hpux11*)
6255 lt_cv_file_magic_cmd=$FILECMD
6256 case $host_cpu in
6257 ia64*)
6258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6259 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6260 ;;
6261 hppa*64*)
6262 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]'
6263 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6264 ;;
6265 *)
6266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6267 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6268 ;;
6269 esac
6270 ;;
6271
6272 interix[3-9]*)
6273 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6275 ;;
6276
6277 irix5* | irix6* | nonstopux*)
6278 case $LD in
6279 *-32|*"-32 ") libmagic=32-bit;;
6280 *-n32|*"-n32 ") libmagic=N32;;
6281 *-64|*"-64 ") libmagic=64-bit;;
6282 *) libmagic=never-match;;
6283 esac
6284 lt_cv_deplibs_check_method=pass_all
6285 ;;
6286
6287 # This must be glibc/ELF.
6288 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
6292 netbsd*)
6293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6295 else
6296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6297 fi
6298 ;;
6299
6300 newos6*)
6301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6302 lt_cv_file_magic_cmd=$FILECMD
6303 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6304 ;;
6305
6306 *nto* | *qnx*)
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309
6310 openbsd* | bitrig*)
6311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6313 else
6314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6315 fi
6316 ;;
6317
6318 osf3* | osf4* | osf5*)
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
6321
6322 rdos*)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325
6326 solaris*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 sysv4 | sysv4.3*)
6335 case $host_vendor in
6336 motorola)
6337 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]'
6338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6339 ;;
6340 ncr)
6341 lt_cv_deplibs_check_method=pass_all
6342 ;;
6343 sequent)
6344 lt_cv_file_magic_cmd='/bin/file'
6345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6346 ;;
6347 sni)
6348 lt_cv_file_magic_cmd='/bin/file'
6349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6350 lt_cv_file_magic_test_file=/lib/libc.so
6351 ;;
6352 siemens)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355 pc)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358 esac
6359 ;;
6360
6361 tpf*)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364 os2*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367 esac
6368
6369 fi
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6371 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6372
6373 file_magic_glob=
6374 want_nocaseglob=no
6375 if test "$build" = "$host"; then
6376 case $host_os in
6377 mingw* | pw32*)
6378 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6379 want_nocaseglob=yes
6380 else
6381 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6382 fi
6383 ;;
6384 esac
6385 fi
6386
6387 file_magic_cmd=$lt_cv_file_magic_cmd
6388 deplibs_check_method=$lt_cv_deplibs_check_method
6389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 printf %s "checking for $ac_word... " >&6; }
6417 if test ${ac_cv_prog_DLLTOOL+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else $as_nop
6421 if test -n "$DLLTOOL"; then
6422 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427 IFS=$as_save_IFS
6428 case $as_dir in #(((
6429 '') as_dir=./ ;;
6430 */) ;;
6431 *) as_dir=$as_dir/ ;;
6432 esac
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6435 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439 done
6440 done
6441 IFS=$as_save_IFS
6442
6443 fi
6444 fi
6445 DLLTOOL=$ac_cv_prog_DLLTOOL
6446 if test -n "$DLLTOOL"; then
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6448 printf "%s\n" "$DLLTOOL" >&6; }
6449 else
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 printf "%s\n" "no" >&6; }
6452 fi
6453
6454
6455 fi
6456 if test -z "$ac_cv_prog_DLLTOOL"; then
6457 ac_ct_DLLTOOL=$DLLTOOL
6458 # Extract the first word of "dlltool", so it can be a program name with args.
6459 set dummy dlltool; ac_word=$2
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 printf %s "checking for $ac_word... " >&6; }
6462 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6463 then :
6464 printf %s "(cached) " >&6
6465 else $as_nop
6466 if test -n "$ac_ct_DLLTOOL"; then
6467 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472 IFS=$as_save_IFS
6473 case $as_dir in #(((
6474 '') as_dir=./ ;;
6475 */) ;;
6476 *) as_dir=$as_dir/ ;;
6477 esac
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6480 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6491 if test -n "$ac_ct_DLLTOOL"; then
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6493 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6494 else
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 printf "%s\n" "no" >&6; }
6497 fi
6498
6499 if test "x$ac_ct_DLLTOOL" = x; then
6500 DLLTOOL="false"
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503 yes:)
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508 DLLTOOL=$ac_ct_DLLTOOL
6509 fi
6510 else
6511 DLLTOOL="$ac_cv_prog_DLLTOOL"
6512 fi
6513
6514 test -z "$DLLTOOL" && DLLTOOL=dlltool
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6526 printf %s "checking how to associate runtime and link libraries... " >&6; }
6527 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6528 then :
6529 printf %s "(cached) " >&6
6530 else $as_nop
6531 lt_cv_sharedlib_from_linklib_cmd='unknown'
6532
6533 case $host_os in
6534 cygwin* | mingw* | pw32* | cegcc*)
6535 # two different shell functions defined in ltmain.sh;
6536 # decide which one to use based on capabilities of $DLLTOOL
6537 case `$DLLTOOL --help 2>&1` in
6538 *--identify-strict*)
6539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6540 ;;
6541 *)
6542 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6543 ;;
6544 esac
6545 ;;
6546 *)
6547 # fallback: assume linklib IS sharedlib
6548 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6549 ;;
6550 esac
6551
6552 fi
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6554 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6555 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6556 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6557
6558
6559
6560
6561
6562
6563
6564 if test -n "$ac_tool_prefix"; then
6565 for ac_prog in ar
6566 do
6567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 printf %s "checking for $ac_word... " >&6; }
6571 if test ${ac_cv_prog_AR+y}
6572 then :
6573 printf %s "(cached) " >&6
6574 else $as_nop
6575 if test -n "$AR"; then
6576 ac_cv_prog_AR="$AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 case $as_dir in #(((
6583 '') as_dir=./ ;;
6584 */) ;;
6585 *) as_dir=$as_dir/ ;;
6586 esac
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 AR=$ac_cv_prog_AR
6600 if test -n "$AR"; then
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6602 printf "%s\n" "$AR" >&6; }
6603 else
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 printf "%s\n" "no" >&6; }
6606 fi
6607
6608
6609 test -n "$AR" && break
6610 done
6611 fi
6612 if test -z "$AR"; then
6613 ac_ct_AR=$AR
6614 for ac_prog in ar
6615 do
6616 # Extract the first word of "$ac_prog", so it can be a program name with args.
6617 set dummy $ac_prog; ac_word=$2
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 printf %s "checking for $ac_word... " >&6; }
6620 if test ${ac_cv_prog_ac_ct_AR+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else $as_nop
6624 if test -n "$ac_ct_AR"; then
6625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630 IFS=$as_save_IFS
6631 case $as_dir in #(((
6632 '') as_dir=./ ;;
6633 */) ;;
6634 *) as_dir=$as_dir/ ;;
6635 esac
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_ac_ct_AR="$ac_prog"
6639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6649 if test -n "$ac_ct_AR"; then
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6651 printf "%s\n" "$ac_ct_AR" >&6; }
6652 else
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 printf "%s\n" "no" >&6; }
6655 fi
6656
6657
6658 test -n "$ac_ct_AR" && break
6659 done
6660
6661 if test "x$ac_ct_AR" = x; then
6662 AR="false"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670 AR=$ac_ct_AR
6671 fi
6672 fi
6673
6674 : ${AR=ar}
6675
6676
6677
6678
6679
6680
6681 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6682 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6683 # higher priority because thats what people were doing historically (setting
6684 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6685 # variable obsoleted/removed.
6686
6687 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6688 lt_ar_flags=$AR_FLAGS
6689
6690
6691
6692
6693
6694
6695 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6696 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6697
6698
6699
6700
6701
6702
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6704 printf %s "checking for archiver @FILE support... " >&6; }
6705 if test ${lt_cv_ar_at_file+y}
6706 then :
6707 printf %s "(cached) " >&6
6708 else $as_nop
6709 lt_cv_ar_at_file=no
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712
6713 int
6714 main (void)
6715 {
6716
6717 ;
6718 return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_c_try_compile "$LINENO"
6722 then :
6723 echo conftest.$ac_objext > conftest.lst
6724 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6726 (eval $lt_ar_try) 2>&5
6727 ac_status=$?
6728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729 test $ac_status = 0; }
6730 if test 0 -eq "$ac_status"; then
6731 # Ensure the archiver fails upon bogus file names.
6732 rm -f conftest.$ac_objext libconftest.a
6733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6734 (eval $lt_ar_try) 2>&5
6735 ac_status=$?
6736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737 test $ac_status = 0; }
6738 if test 0 -ne "$ac_status"; then
6739 lt_cv_ar_at_file=@
6740 fi
6741 fi
6742 rm -f conftest.* libconftest.a
6743
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6746
6747 fi
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6749 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6750
6751 if test no = "$lt_cv_ar_at_file"; then
6752 archiver_list_spec=
6753 else
6754 archiver_list_spec=$lt_cv_ar_at_file
6755 fi
6756
6757
6758
6759
6760
6761
6762
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}strip; ac_word=$2
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 printf %s "checking for $ac_word... " >&6; }
6768 if test ${ac_cv_prog_STRIP+y}
6769 then :
6770 printf %s "(cached) " >&6
6771 else $as_nop
6772 if test -n "$STRIP"; then
6773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 case $as_dir in #(((
6780 '') as_dir=./ ;;
6781 */) ;;
6782 *) as_dir=$as_dir/ ;;
6783 esac
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 STRIP=$ac_cv_prog_STRIP
6797 if test -n "$STRIP"; then
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6799 printf "%s\n" "$STRIP" >&6; }
6800 else
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 printf "%s\n" "no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_STRIP"; then
6808 ac_ct_STRIP=$STRIP
6809 # Extract the first word of "strip", so it can be a program name with args.
6810 set dummy strip; ac_word=$2
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 printf %s "checking for $ac_word... " >&6; }
6813 if test ${ac_cv_prog_ac_ct_STRIP+y}
6814 then :
6815 printf %s "(cached) " >&6
6816 else $as_nop
6817 if test -n "$ac_ct_STRIP"; then
6818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 case $as_dir in #(((
6825 '') as_dir=./ ;;
6826 */) ;;
6827 *) as_dir=$as_dir/ ;;
6828 esac
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_ac_ct_STRIP="strip"
6832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6842 if test -n "$ac_ct_STRIP"; then
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6844 printf "%s\n" "$ac_ct_STRIP" >&6; }
6845 else
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 printf "%s\n" "no" >&6; }
6848 fi
6849
6850 if test "x$ac_ct_STRIP" = x; then
6851 STRIP=":"
6852 else
6853 case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859 STRIP=$ac_ct_STRIP
6860 fi
6861 else
6862 STRIP="$ac_cv_prog_STRIP"
6863 fi
6864
6865 test -z "$STRIP" && STRIP=:
6866
6867
6868
6869
6870
6871
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 printf %s "checking for $ac_word... " >&6; }
6877 if test ${ac_cv_prog_RANLIB+y}
6878 then :
6879 printf %s "(cached) " >&6
6880 else $as_nop
6881 if test -n "$RANLIB"; then
6882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 case $as_dir in #(((
6889 '') as_dir=./ ;;
6890 */) ;;
6891 *) as_dir=$as_dir/ ;;
6892 esac
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 RANLIB=$ac_cv_prog_RANLIB
6906 if test -n "$RANLIB"; then
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6908 printf "%s\n" "$RANLIB" >&6; }
6909 else
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 printf "%s\n" "no" >&6; }
6912 fi
6913
6914
6915 fi
6916 if test -z "$ac_cv_prog_RANLIB"; then
6917 ac_ct_RANLIB=$RANLIB
6918 # Extract the first word of "ranlib", so it can be a program name with args.
6919 set dummy ranlib; ac_word=$2
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 printf %s "checking for $ac_word... " >&6; }
6922 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6923 then :
6924 printf %s "(cached) " >&6
6925 else $as_nop
6926 if test -n "$ac_ct_RANLIB"; then
6927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 case $as_dir in #(((
6934 '') as_dir=./ ;;
6935 */) ;;
6936 *) as_dir=$as_dir/ ;;
6937 esac
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_RANLIB="ranlib"
6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6954 else
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 printf "%s\n" "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_RANLIB" = x; then
6960 RANLIB=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 RANLIB=$ac_ct_RANLIB
6969 fi
6970 else
6971 RANLIB="$ac_cv_prog_RANLIB"
6972 fi
6973
6974 test -z "$RANLIB" && RANLIB=:
6975
6976
6977
6978
6979
6980
6981 # Determine commands to create old-style static archives.
6982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6983 old_postinstall_cmds='chmod 644 $oldlib'
6984 old_postuninstall_cmds=
6985
6986 if test -n "$RANLIB"; then
6987 case $host_os in
6988 bitrig* | openbsd*)
6989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6990 ;;
6991 *)
6992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6993 ;;
6994 esac
6995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6996 fi
6997
6998 case $host_os in
6999 darwin*)
7000 lock_old_archive_extraction=yes ;;
7001 *)
7002 lock_old_archive_extraction=no ;;
7003 esac
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 # If no C compiler was specified, use CC.
7044 LTCC=${LTCC-"$CC"}
7045
7046 # If no C compiler flags were specified, use CFLAGS.
7047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7048
7049 # Allow CC to be a program name with arguments.
7050 compiler=$CC
7051
7052
7053 # Check for command to grab the raw symbol name followed by C symbol from nm.
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7055 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7056 if test ${lt_cv_sys_global_symbol_pipe+y}
7057 then :
7058 printf %s "(cached) " >&6
7059 else $as_nop
7060
7061 # These are sane defaults that work on at least a few old systems.
7062 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7063
7064 # Character class describing NM global symbol codes.
7065 symcode='[BCDEGRST]'
7066
7067 # Regexp to match symbols that can be accessed directly from C.
7068 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7069
7070 # Define system-specific variables.
7071 case $host_os in
7072 aix*)
7073 symcode='[BCDT]'
7074 ;;
7075 cygwin* | mingw* | pw32* | cegcc*)
7076 symcode='[ABCDGISTW]'
7077 ;;
7078 hpux*)
7079 if test ia64 = "$host_cpu"; then
7080 symcode='[ABCDEGRST]'
7081 fi
7082 ;;
7083 irix* | nonstopux*)
7084 symcode='[BCDEGRST]'
7085 ;;
7086 osf*)
7087 symcode='[BCDEGQRST]'
7088 ;;
7089 solaris*)
7090 symcode='[BDRT]'
7091 ;;
7092 sco3.2v5*)
7093 symcode='[DT]'
7094 ;;
7095 sysv4.2uw2*)
7096 symcode='[DT]'
7097 ;;
7098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7099 symcode='[ABDT]'
7100 ;;
7101 sysv4)
7102 symcode='[DFNSTU]'
7103 ;;
7104 esac
7105
7106 # If we're using GNU nm, then use its standard symbol codes.
7107 case `$NM -V 2>&1` in
7108 *GNU* | *'with BFD'*)
7109 symcode='[ABCDGIRSTW]' ;;
7110 esac
7111
7112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7113 # Gets list of data symbols to import.
7114 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7115 # Adjust the below global symbol transforms to fixup imported variables.
7116 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7117 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7118 lt_c_name_lib_hook="\
7119 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7120 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7121 else
7122 # Disable hooks by default.
7123 lt_cv_sys_global_symbol_to_import=
7124 lt_cdecl_hook=
7125 lt_c_name_hook=
7126 lt_c_name_lib_hook=
7127 fi
7128
7129 # Transform an extracted symbol line into a proper C declaration.
7130 # Some systems (esp. on ia64) link data and code symbols differently,
7131 # so use this general approach.
7132 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7133 $lt_cdecl_hook\
7134 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7135 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7136
7137 # Transform an extracted symbol line into symbol name and symbol address
7138 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7139 $lt_c_name_hook\
7140 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7141 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7142
7143 # Transform an extracted symbol line into symbol name with lib prefix and
7144 # symbol address.
7145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7146 $lt_c_name_lib_hook\
7147 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7148 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7149 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7150
7151 # Handle CRLF in mingw tool chain
7152 opt_cr=
7153 case $build_os in
7154 mingw*)
7155 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7156 ;;
7157 esac
7158
7159 # Try without a prefix underscore, then with it.
7160 for ac_symprfx in "" "_"; do
7161
7162 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7163 symxfrm="\\1 $ac_symprfx\\2 \\2"
7164
7165 # Write the raw and C identifiers.
7166 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7167 # Fake it for dumpbin and say T for any non-static function,
7168 # D for any global variable and I for any imported variable.
7169 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7170 # which start with @ or ?.
7171 lt_cv_sys_global_symbol_pipe="$AWK '"\
7172 " {last_section=section; section=\$ 3};"\
7173 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7174 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7175 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7176 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7177 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7178 " \$ 0!~/External *\|/{next};"\
7179 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7180 " {if(hide[section]) next};"\
7181 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7182 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7183 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7184 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7185 " ' prfx=^$ac_symprfx"
7186 else
7187 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7188 fi
7189 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7190
7191 # Check to see that the pipe works correctly.
7192 pipe_works=no
7193
7194 rm -f conftest*
7195 cat > conftest.$ac_ext <<_LT_EOF
7196 #ifdef __cplusplus
7197 extern "C" {
7198 #endif
7199 char nm_test_var;
7200 void nm_test_func(void);
7201 void nm_test_func(void){}
7202 #ifdef __cplusplus
7203 }
7204 #endif
7205 int main(){nm_test_var='a';nm_test_func();return(0);}
7206 _LT_EOF
7207
7208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209 (eval $ac_compile) 2>&5
7210 ac_status=$?
7211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212 test $ac_status = 0; }; then
7213 # Now try to grab the symbols.
7214 nlist=conftest.nm
7215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7216 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7217 ac_status=$?
7218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219 test $ac_status = 0; } && test -s "$nlist"; then
7220 # Try sorting and uniquifying the output.
7221 if sort "$nlist" | uniq > "$nlist"T; then
7222 mv -f "$nlist"T "$nlist"
7223 else
7224 rm -f "$nlist"T
7225 fi
7226
7227 # Make sure that we snagged all the symbols we need.
7228 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7229 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7230 cat <<_LT_EOF > conftest.$ac_ext
7231 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7232 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7233 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7234 relocations are performed -- see ld's documentation on pseudo-relocs. */
7235 # define LT_DLSYM_CONST
7236 #elif defined __osf__
7237 /* This system does not cope well with relocations in const data. */
7238 # define LT_DLSYM_CONST
7239 #else
7240 # define LT_DLSYM_CONST const
7241 #endif
7242
7243 #ifdef __cplusplus
7244 extern "C" {
7245 #endif
7246
7247 _LT_EOF
7248 # Now generate the symbol file.
7249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7250
7251 cat <<_LT_EOF >> conftest.$ac_ext
7252
7253 /* The mapping between symbol names and symbols. */
7254 LT_DLSYM_CONST struct {
7255 const char *name;
7256 void *address;
7257 }
7258 lt__PROGRAM__LTX_preloaded_symbols[] =
7259 {
7260 { "@PROGRAM@", (void *) 0 },
7261 _LT_EOF
7262 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7263 cat <<\_LT_EOF >> conftest.$ac_ext
7264 {0, (void *) 0}
7265 };
7266
7267 /* This works around a problem in FreeBSD linker */
7268 #ifdef FREEBSD_WORKAROUND
7269 static const void *lt_preloaded_setup() {
7270 return lt__PROGRAM__LTX_preloaded_symbols;
7271 }
7272 #endif
7273
7274 #ifdef __cplusplus
7275 }
7276 #endif
7277 _LT_EOF
7278 # Now try linking the two files.
7279 mv conftest.$ac_objext conftstm.$ac_objext
7280 lt_globsym_save_LIBS=$LIBS
7281 lt_globsym_save_CFLAGS=$CFLAGS
7282 LIBS=conftstm.$ac_objext
7283 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7285 (eval $ac_link) 2>&5
7286 ac_status=$?
7287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7289 pipe_works=yes
7290 fi
7291 LIBS=$lt_globsym_save_LIBS
7292 CFLAGS=$lt_globsym_save_CFLAGS
7293 else
7294 echo "cannot find nm_test_func in $nlist" >&5
7295 fi
7296 else
7297 echo "cannot find nm_test_var in $nlist" >&5
7298 fi
7299 else
7300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7301 fi
7302 else
7303 echo "$progname: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7305 fi
7306 rm -rf conftest* conftst*
7307
7308 # Do not use the global_symbol_pipe unless it works.
7309 if test yes = "$pipe_works"; then
7310 break
7311 else
7312 lt_cv_sys_global_symbol_pipe=
7313 fi
7314 done
7315
7316 fi
7317
7318 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7319 lt_cv_sys_global_symbol_to_cdecl=
7320 fi
7321 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7323 printf "%s\n" "failed" >&6; }
7324 else
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7326 printf "%s\n" "ok" >&6; }
7327 fi
7328
7329 # Response file support.
7330 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7331 nm_file_list_spec='@'
7332 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7333 nm_file_list_spec='@'
7334 fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7373 printf %s "checking for sysroot... " >&6; }
7374
7375 # Check whether --with-sysroot was given.
7376 if test ${with_sysroot+y}
7377 then :
7378 withval=$with_sysroot;
7379 else $as_nop
7380 with_sysroot=no
7381 fi
7382
7383
7384 lt_sysroot=
7385 case $with_sysroot in #(
7386 yes)
7387 if test yes = "$GCC"; then
7388 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7389 fi
7390 ;; #(
7391 /*)
7392 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7393 ;; #(
7394 no|'')
7395 ;; #(
7396 *)
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7398 printf "%s\n" "$with_sysroot" >&6; }
7399 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7400 ;;
7401 esac
7402
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7404 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7405
7406
7407
7408
7409
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7411 printf %s "checking for a working dd... " >&6; }
7412 if test ${ac_cv_path_lt_DD+y}
7413 then :
7414 printf %s "(cached) " >&6
7415 else $as_nop
7416 printf 0123456789abcdef0123456789abcdef >conftest.i
7417 cat conftest.i conftest.i >conftest2.i
7418 : ${lt_DD:=$DD}
7419 if test -z "$lt_DD"; then
7420 ac_path_lt_DD_found=false
7421 # Loop through the user's path and test for each of PROGNAME-LIST
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 case $as_dir in #(((
7427 '') as_dir=./ ;;
7428 */) ;;
7429 *) as_dir=$as_dir/ ;;
7430 esac
7431 for ac_prog in dd
7432 do
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7435 as_fn_executable_p "$ac_path_lt_DD" || continue
7436 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7437 cmp -s conftest.i conftest.out \
7438 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7439 fi
7440 $ac_path_lt_DD_found && break 3
7441 done
7442 done
7443 done
7444 IFS=$as_save_IFS
7445 if test -z "$ac_cv_path_lt_DD"; then
7446 :
7447 fi
7448 else
7449 ac_cv_path_lt_DD=$lt_DD
7450 fi
7451
7452 rm -f conftest.i conftest2.i conftest.out
7453 fi
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7455 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7456
7457
7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7459 printf %s "checking how to truncate binary pipes... " >&6; }
7460 if test ${lt_cv_truncate_bin+y}
7461 then :
7462 printf %s "(cached) " >&6
7463 else $as_nop
7464 printf 0123456789abcdef0123456789abcdef >conftest.i
7465 cat conftest.i conftest.i >conftest2.i
7466 lt_cv_truncate_bin=
7467 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7468 cmp -s conftest.i conftest.out \
7469 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7470 fi
7471 rm -f conftest.i conftest2.i conftest.out
7472 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7473 fi
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7475 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7476
7477
7478
7479
7480
7481
7482
7483 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7484 func_cc_basename ()
7485 {
7486 for cc_temp in $*""; do
7487 case $cc_temp in
7488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7490 \-*) ;;
7491 *) break;;
7492 esac
7493 done
7494 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7495 }
7496
7497 # Check whether --enable-libtool-lock was given.
7498 if test ${enable_libtool_lock+y}
7499 then :
7500 enableval=$enable_libtool_lock;
7501 fi
7502
7503 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7504
7505 # Some flags need to be propagated to the compiler or linker for good
7506 # libtool support.
7507 case $host in
7508 ia64-*-hpux*)
7509 # Find out what ABI is being produced by ac_compile, and set mode
7510 # options accordingly.
7511 echo 'int i;' > conftest.$ac_ext
7512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7513 (eval $ac_compile) 2>&5
7514 ac_status=$?
7515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 case `$FILECMD conftest.$ac_objext` in
7518 *ELF-32*)
7519 HPUX_IA64_MODE=32
7520 ;;
7521 *ELF-64*)
7522 HPUX_IA64_MODE=64
7523 ;;
7524 esac
7525 fi
7526 rm -rf conftest*
7527 ;;
7528 *-*-irix6*)
7529 # Find out what ABI is being produced by ac_compile, and set linker
7530 # options accordingly.
7531 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7533 (eval $ac_compile) 2>&5
7534 ac_status=$?
7535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; }; then
7537 if test yes = "$lt_cv_prog_gnu_ld"; then
7538 case `$FILECMD conftest.$ac_objext` in
7539 *32-bit*)
7540 LD="${LD-ld} -melf32bsmip"
7541 ;;
7542 *N32*)
7543 LD="${LD-ld} -melf32bmipn32"
7544 ;;
7545 *64-bit*)
7546 LD="${LD-ld} -melf64bmip"
7547 ;;
7548 esac
7549 else
7550 case `$FILECMD conftest.$ac_objext` in
7551 *32-bit*)
7552 LD="${LD-ld} -32"
7553 ;;
7554 *N32*)
7555 LD="${LD-ld} -n32"
7556 ;;
7557 *64-bit*)
7558 LD="${LD-ld} -64"
7559 ;;
7560 esac
7561 fi
7562 fi
7563 rm -rf conftest*
7564 ;;
7565
7566 mips64*-*linux*)
7567 # Find out what ABI is being produced by ac_compile, and set linker
7568 # options accordingly.
7569 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7571 (eval $ac_compile) 2>&5
7572 ac_status=$?
7573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574 test $ac_status = 0; }; then
7575 emul=elf
7576 case `$FILECMD conftest.$ac_objext` in
7577 *32-bit*)
7578 emul="${emul}32"
7579 ;;
7580 *64-bit*)
7581 emul="${emul}64"
7582 ;;
7583 esac
7584 case `$FILECMD conftest.$ac_objext` in
7585 *MSB*)
7586 emul="${emul}btsmip"
7587 ;;
7588 *LSB*)
7589 emul="${emul}ltsmip"
7590 ;;
7591 esac
7592 case `$FILECMD conftest.$ac_objext` in
7593 *N32*)
7594 emul="${emul}n32"
7595 ;;
7596 esac
7597 LD="${LD-ld} -m $emul"
7598 fi
7599 rm -rf conftest*
7600 ;;
7601
7602 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7603 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7604 # Find out what ABI is being produced by ac_compile, and set linker
7605 # options accordingly. Note that the listed cases only cover the
7606 # situations where additional linker options are needed (such as when
7607 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7608 # vice versa); the common cases where no linker options are needed do
7609 # not appear in the list.
7610 echo 'int i;' > conftest.$ac_ext
7611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7612 (eval $ac_compile) 2>&5
7613 ac_status=$?
7614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615 test $ac_status = 0; }; then
7616 case `$FILECMD conftest.o` in
7617 *32-bit*)
7618 case $host in
7619 x86_64-*kfreebsd*-gnu)
7620 LD="${LD-ld} -m elf_i386_fbsd"
7621 ;;
7622 x86_64-*linux*)
7623 case `$FILECMD conftest.o` in
7624 *x86-64*)
7625 LD="${LD-ld} -m elf32_x86_64"
7626 ;;
7627 *)
7628 LD="${LD-ld} -m elf_i386"
7629 ;;
7630 esac
7631 ;;
7632 powerpc64le-*linux*)
7633 LD="${LD-ld} -m elf32lppclinux"
7634 ;;
7635 powerpc64-*linux*)
7636 LD="${LD-ld} -m elf32ppclinux"
7637 ;;
7638 s390x-*linux*)
7639 LD="${LD-ld} -m elf_s390"
7640 ;;
7641 sparc64-*linux*)
7642 LD="${LD-ld} -m elf32_sparc"
7643 ;;
7644 esac
7645 ;;
7646 *64-bit*)
7647 case $host in
7648 x86_64-*kfreebsd*-gnu)
7649 LD="${LD-ld} -m elf_x86_64_fbsd"
7650 ;;
7651 x86_64-*linux*)
7652 LD="${LD-ld} -m elf_x86_64"
7653 ;;
7654 powerpcle-*linux*)
7655 LD="${LD-ld} -m elf64lppc"
7656 ;;
7657 powerpc-*linux*)
7658 LD="${LD-ld} -m elf64ppc"
7659 ;;
7660 s390*-*linux*|s390*-*tpf*)
7661 LD="${LD-ld} -m elf64_s390"
7662 ;;
7663 sparc*-*linux*)
7664 LD="${LD-ld} -m elf64_sparc"
7665 ;;
7666 esac
7667 ;;
7668 esac
7669 fi
7670 rm -rf conftest*
7671 ;;
7672
7673 *-*-sco3.2v5*)
7674 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7675 SAVE_CFLAGS=$CFLAGS
7676 CFLAGS="$CFLAGS -belf"
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7678 printf %s "checking whether the C compiler needs -belf... " >&6; }
7679 if test ${lt_cv_cc_needs_belf+y}
7680 then :
7681 printf %s "(cached) " >&6
7682 else $as_nop
7683 ac_ext=c
7684 ac_cpp='$CPP $CPPFLAGS'
7685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691
7692 int
7693 main (void)
7694 {
7695
7696 ;
7697 return 0;
7698 }
7699 _ACEOF
7700 if ac_fn_c_try_link "$LINENO"
7701 then :
7702 lt_cv_cc_needs_belf=yes
7703 else $as_nop
7704 lt_cv_cc_needs_belf=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7707 conftest$ac_exeext conftest.$ac_ext
7708 ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714 fi
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7716 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7717 if test yes != "$lt_cv_cc_needs_belf"; then
7718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7719 CFLAGS=$SAVE_CFLAGS
7720 fi
7721 ;;
7722 *-*solaris*)
7723 # Find out what ABI is being produced by ac_compile, and set linker
7724 # options accordingly.
7725 echo 'int i;' > conftest.$ac_ext
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 case `$FILECMD conftest.o` in
7732 *64-bit*)
7733 case $lt_cv_prog_gnu_ld in
7734 yes*)
7735 case $host in
7736 i?86-*-solaris*|x86_64-*-solaris*)
7737 LD="${LD-ld} -m elf_x86_64"
7738 ;;
7739 sparc*-*-solaris*)
7740 LD="${LD-ld} -m elf64_sparc"
7741 ;;
7742 esac
7743 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7744 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7745 LD=${LD-ld}_sol2
7746 fi
7747 ;;
7748 *)
7749 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7750 LD="${LD-ld} -64"
7751 fi
7752 ;;
7753 esac
7754 ;;
7755 esac
7756 fi
7757 rm -rf conftest*
7758 ;;
7759 esac
7760
7761 need_locks=$enable_libtool_lock
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}mt; ac_word=$2
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 printf %s "checking for $ac_word... " >&6; }
7768 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7769 then :
7770 printf %s "(cached) " >&6
7771 else $as_nop
7772 if test -n "$MANIFEST_TOOL"; then
7773 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 case $as_dir in #(((
7780 '') as_dir=./ ;;
7781 */) ;;
7782 *) as_dir=$as_dir/ ;;
7783 esac
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7797 if test -n "$MANIFEST_TOOL"; then
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7799 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7800 else
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 printf "%s\n" "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7808 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7809 # Extract the first word of "mt", so it can be a program name with args.
7810 set dummy mt; ac_word=$2
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 printf %s "checking for $ac_word... " >&6; }
7813 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else $as_nop
7817 if test -n "$ac_ct_MANIFEST_TOOL"; then
7818 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 case $as_dir in #(((
7825 '') as_dir=./ ;;
7826 */) ;;
7827 *) as_dir=$as_dir/ ;;
7828 esac
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7842 if test -n "$ac_ct_MANIFEST_TOOL"; then
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7844 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7845 else
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 printf "%s\n" "no" >&6; }
7848 fi
7849
7850 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7851 MANIFEST_TOOL=":"
7852 else
7853 case $cross_compiling:$ac_tool_warned in
7854 yes:)
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7858 esac
7859 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7860 fi
7861 else
7862 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7863 fi
7864
7865 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7867 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7868 if test ${lt_cv_path_mainfest_tool+y}
7869 then :
7870 printf %s "(cached) " >&6
7871 else $as_nop
7872 lt_cv_path_mainfest_tool=no
7873 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7874 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7875 cat conftest.err >&5
7876 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7877 lt_cv_path_mainfest_tool=yes
7878 fi
7879 rm -f conftest*
7880 fi
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7882 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7883 if test yes != "$lt_cv_path_mainfest_tool"; then
7884 MANIFEST_TOOL=:
7885 fi
7886
7887
7888
7889
7890
7891
7892 case $host_os in
7893 rhapsody* | darwin*)
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 printf %s "checking for $ac_word... " >&6; }
7899 if test ${ac_cv_prog_DSYMUTIL+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else $as_nop
7903 if test -n "$DSYMUTIL"; then
7904 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909 IFS=$as_save_IFS
7910 case $as_dir in #(((
7911 '') as_dir=./ ;;
7912 */) ;;
7913 *) as_dir=$as_dir/ ;;
7914 esac
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7928 if test -n "$DSYMUTIL"; then
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7930 printf "%s\n" "$DSYMUTIL" >&6; }
7931 else
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 printf "%s\n" "no" >&6; }
7934 fi
7935
7936
7937 fi
7938 if test -z "$ac_cv_prog_DSYMUTIL"; then
7939 ac_ct_DSYMUTIL=$DSYMUTIL
7940 # Extract the first word of "dsymutil", so it can be a program name with args.
7941 set dummy dsymutil; ac_word=$2
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 printf %s "checking for $ac_word... " >&6; }
7944 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7945 then :
7946 printf %s "(cached) " >&6
7947 else $as_nop
7948 if test -n "$ac_ct_DSYMUTIL"; then
7949 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954 IFS=$as_save_IFS
7955 case $as_dir in #(((
7956 '') as_dir=./ ;;
7957 */) ;;
7958 *) as_dir=$as_dir/ ;;
7959 esac
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7973 if test -n "$ac_ct_DSYMUTIL"; then
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7975 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7976 else
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 printf "%s\n" "no" >&6; }
7979 fi
7980
7981 if test "x$ac_ct_DSYMUTIL" = x; then
7982 DSYMUTIL=":"
7983 else
7984 case $cross_compiling:$ac_tool_warned in
7985 yes:)
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988 ac_tool_warned=yes ;;
7989 esac
7990 DSYMUTIL=$ac_ct_DSYMUTIL
7991 fi
7992 else
7993 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7994 fi
7995
7996 if test -n "$ac_tool_prefix"; then
7997 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7998 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 printf %s "checking for $ac_word... " >&6; }
8001 if test ${ac_cv_prog_NMEDIT+y}
8002 then :
8003 printf %s "(cached) " >&6
8004 else $as_nop
8005 if test -n "$NMEDIT"; then
8006 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 case $as_dir in #(((
8013 '') as_dir=./ ;;
8014 */) ;;
8015 *) as_dir=$as_dir/ ;;
8016 esac
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 fi
8028 fi
8029 NMEDIT=$ac_cv_prog_NMEDIT
8030 if test -n "$NMEDIT"; then
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8032 printf "%s\n" "$NMEDIT" >&6; }
8033 else
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 printf "%s\n" "no" >&6; }
8036 fi
8037
8038
8039 fi
8040 if test -z "$ac_cv_prog_NMEDIT"; then
8041 ac_ct_NMEDIT=$NMEDIT
8042 # Extract the first word of "nmedit", so it can be a program name with args.
8043 set dummy nmedit; ac_word=$2
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 printf %s "checking for $ac_word... " >&6; }
8046 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8047 then :
8048 printf %s "(cached) " >&6
8049 else $as_nop
8050 if test -n "$ac_ct_NMEDIT"; then
8051 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8052 else
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056 IFS=$as_save_IFS
8057 case $as_dir in #(((
8058 '') as_dir=./ ;;
8059 */) ;;
8060 *) as_dir=$as_dir/ ;;
8061 esac
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068 done
8069 done
8070 IFS=$as_save_IFS
8071
8072 fi
8073 fi
8074 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8075 if test -n "$ac_ct_NMEDIT"; then
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8077 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8078 else
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 printf "%s\n" "no" >&6; }
8081 fi
8082
8083 if test "x$ac_ct_NMEDIT" = x; then
8084 NMEDIT=":"
8085 else
8086 case $cross_compiling:$ac_tool_warned in
8087 yes:)
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8089 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8090 ac_tool_warned=yes ;;
8091 esac
8092 NMEDIT=$ac_ct_NMEDIT
8093 fi
8094 else
8095 NMEDIT="$ac_cv_prog_NMEDIT"
8096 fi
8097
8098 if test -n "$ac_tool_prefix"; then
8099 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8100 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 printf %s "checking for $ac_word... " >&6; }
8103 if test ${ac_cv_prog_LIPO+y}
8104 then :
8105 printf %s "(cached) " >&6
8106 else $as_nop
8107 if test -n "$LIPO"; then
8108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113 IFS=$as_save_IFS
8114 case $as_dir in #(((
8115 '') as_dir=./ ;;
8116 */) ;;
8117 *) as_dir=$as_dir/ ;;
8118 esac
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 LIPO=$ac_cv_prog_LIPO
8132 if test -n "$LIPO"; then
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8134 printf "%s\n" "$LIPO" >&6; }
8135 else
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 printf "%s\n" "no" >&6; }
8138 fi
8139
8140
8141 fi
8142 if test -z "$ac_cv_prog_LIPO"; then
8143 ac_ct_LIPO=$LIPO
8144 # Extract the first word of "lipo", so it can be a program name with args.
8145 set dummy lipo; ac_word=$2
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 printf %s "checking for $ac_word... " >&6; }
8148 if test ${ac_cv_prog_ac_ct_LIPO+y}
8149 then :
8150 printf %s "(cached) " >&6
8151 else $as_nop
8152 if test -n "$ac_ct_LIPO"; then
8153 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158 IFS=$as_save_IFS
8159 case $as_dir in #(((
8160 '') as_dir=./ ;;
8161 */) ;;
8162 *) as_dir=$as_dir/ ;;
8163 esac
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_ac_ct_LIPO="lipo"
8167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8177 if test -n "$ac_ct_LIPO"; then
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8179 printf "%s\n" "$ac_ct_LIPO" >&6; }
8180 else
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 printf "%s\n" "no" >&6; }
8183 fi
8184
8185 if test "x$ac_ct_LIPO" = x; then
8186 LIPO=":"
8187 else
8188 case $cross_compiling:$ac_tool_warned in
8189 yes:)
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8192 ac_tool_warned=yes ;;
8193 esac
8194 LIPO=$ac_ct_LIPO
8195 fi
8196 else
8197 LIPO="$ac_cv_prog_LIPO"
8198 fi
8199
8200 if test -n "$ac_tool_prefix"; then
8201 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8202 set dummy ${ac_tool_prefix}otool; ac_word=$2
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 printf %s "checking for $ac_word... " >&6; }
8205 if test ${ac_cv_prog_OTOOL+y}
8206 then :
8207 printf %s "(cached) " >&6
8208 else $as_nop
8209 if test -n "$OTOOL"; then
8210 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 case $as_dir in #(((
8217 '') as_dir=./ ;;
8218 */) ;;
8219 *) as_dir=$as_dir/ ;;
8220 esac
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8225 break 2
8226 fi
8227 done
8228 done
8229 IFS=$as_save_IFS
8230
8231 fi
8232 fi
8233 OTOOL=$ac_cv_prog_OTOOL
8234 if test -n "$OTOOL"; then
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8236 printf "%s\n" "$OTOOL" >&6; }
8237 else
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 printf "%s\n" "no" >&6; }
8240 fi
8241
8242
8243 fi
8244 if test -z "$ac_cv_prog_OTOOL"; then
8245 ac_ct_OTOOL=$OTOOL
8246 # Extract the first word of "otool", so it can be a program name with args.
8247 set dummy otool; ac_word=$2
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 printf %s "checking for $ac_word... " >&6; }
8250 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8251 then :
8252 printf %s "(cached) " >&6
8253 else $as_nop
8254 if test -n "$ac_ct_OTOOL"; then
8255 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 case $as_dir in #(((
8262 '') as_dir=./ ;;
8263 */) ;;
8264 *) as_dir=$as_dir/ ;;
8265 esac
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_ac_ct_OTOOL="otool"
8269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 fi
8277 fi
8278 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8279 if test -n "$ac_ct_OTOOL"; then
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8281 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8282 else
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 printf "%s\n" "no" >&6; }
8285 fi
8286
8287 if test "x$ac_ct_OTOOL" = x; then
8288 OTOOL=":"
8289 else
8290 case $cross_compiling:$ac_tool_warned in
8291 yes:)
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8295 esac
8296 OTOOL=$ac_ct_OTOOL
8297 fi
8298 else
8299 OTOOL="$ac_cv_prog_OTOOL"
8300 fi
8301
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8304 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 printf %s "checking for $ac_word... " >&6; }
8307 if test ${ac_cv_prog_OTOOL64+y}
8308 then :
8309 printf %s "(cached) " >&6
8310 else $as_nop
8311 if test -n "$OTOOL64"; then
8312 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 case $as_dir in #(((
8319 '') as_dir=./ ;;
8320 */) ;;
8321 *) as_dir=$as_dir/ ;;
8322 esac
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 OTOOL64=$ac_cv_prog_OTOOL64
8336 if test -n "$OTOOL64"; then
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8338 printf "%s\n" "$OTOOL64" >&6; }
8339 else
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 printf "%s\n" "no" >&6; }
8342 fi
8343
8344
8345 fi
8346 if test -z "$ac_cv_prog_OTOOL64"; then
8347 ac_ct_OTOOL64=$OTOOL64
8348 # Extract the first word of "otool64", so it can be a program name with args.
8349 set dummy otool64; ac_word=$2
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 printf %s "checking for $ac_word... " >&6; }
8352 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8353 then :
8354 printf %s "(cached) " >&6
8355 else $as_nop
8356 if test -n "$ac_ct_OTOOL64"; then
8357 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362 IFS=$as_save_IFS
8363 case $as_dir in #(((
8364 '') as_dir=./ ;;
8365 */) ;;
8366 *) as_dir=$as_dir/ ;;
8367 esac
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_ac_ct_OTOOL64="otool64"
8371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8381 if test -n "$ac_ct_OTOOL64"; then
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8383 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8384 else
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 printf "%s\n" "no" >&6; }
8387 fi
8388
8389 if test "x$ac_ct_OTOOL64" = x; then
8390 OTOOL64=":"
8391 else
8392 case $cross_compiling:$ac_tool_warned in
8393 yes:)
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8395 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8396 ac_tool_warned=yes ;;
8397 esac
8398 OTOOL64=$ac_ct_OTOOL64
8399 fi
8400 else
8401 OTOOL64="$ac_cv_prog_OTOOL64"
8402 fi
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8431 printf %s "checking for -single_module linker flag... " >&6; }
8432 if test ${lt_cv_apple_cc_single_mod+y}
8433 then :
8434 printf %s "(cached) " >&6
8435 else $as_nop
8436 lt_cv_apple_cc_single_mod=no
8437 if test -z "$LT_MULTI_MODULE"; then
8438 # By default we will add the -single_module flag. You can override
8439 # by either setting the environment variable LT_MULTI_MODULE
8440 # non-empty at configure time, or by adding -multi_module to the
8441 # link flags.
8442 rm -rf libconftest.dylib*
8443 echo "int foo(void){return 1;}" > conftest.c
8444 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8445 -dynamiclib -Wl,-single_module conftest.c" >&5
8446 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8447 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8448 _lt_result=$?
8449 # If there is a non-empty error log, and "single_module"
8450 # appears in it, assume the flag caused a linker warning
8451 if test -s conftest.err && $GREP single_module conftest.err; then
8452 cat conftest.err >&5
8453 # Otherwise, if the output was created with a 0 exit code from
8454 # the compiler, it worked.
8455 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8456 lt_cv_apple_cc_single_mod=yes
8457 else
8458 cat conftest.err >&5
8459 fi
8460 rm -rf libconftest.dylib*
8461 rm -f conftest.*
8462 fi
8463 fi
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8465 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8466
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8468 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8469 if test ${lt_cv_ld_exported_symbols_list+y}
8470 then :
8471 printf %s "(cached) " >&6
8472 else $as_nop
8473 lt_cv_ld_exported_symbols_list=no
8474 save_LDFLAGS=$LDFLAGS
8475 echo "_main" > conftest.sym
8476 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479
8480 int
8481 main (void)
8482 {
8483
8484 ;
8485 return 0;
8486 }
8487 _ACEOF
8488 if ac_fn_c_try_link "$LINENO"
8489 then :
8490 lt_cv_ld_exported_symbols_list=yes
8491 else $as_nop
8492 lt_cv_ld_exported_symbols_list=no
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8495 conftest$ac_exeext conftest.$ac_ext
8496 LDFLAGS=$save_LDFLAGS
8497
8498 fi
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8500 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8501
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8503 printf %s "checking for -force_load linker flag... " >&6; }
8504 if test ${lt_cv_ld_force_load+y}
8505 then :
8506 printf %s "(cached) " >&6
8507 else $as_nop
8508 lt_cv_ld_force_load=no
8509 cat > conftest.c << _LT_EOF
8510 int forced_loaded() { return 2;}
8511 _LT_EOF
8512 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8513 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8514 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8515 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8516 echo "$RANLIB libconftest.a" >&5
8517 $RANLIB libconftest.a 2>&5
8518 cat > conftest.c << _LT_EOF
8519 int main() { return 0;}
8520 _LT_EOF
8521 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8522 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8523 _lt_result=$?
8524 if test -s conftest.err && $GREP force_load conftest.err; then
8525 cat conftest.err >&5
8526 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8527 lt_cv_ld_force_load=yes
8528 else
8529 cat conftest.err >&5
8530 fi
8531 rm -f conftest.err libconftest.a conftest conftest.c
8532 rm -rf conftest.dSYM
8533
8534 fi
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8536 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8537 case $host_os in
8538 rhapsody* | darwin1.[012])
8539 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8540 darwin1.*)
8541 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8542 darwin*)
8543 case $MACOSX_DEPLOYMENT_TARGET,$host in
8544 10.[012],*|,*powerpc*-darwin[5-8]*)
8545 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8546 *)
8547 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8548 esac
8549 ;;
8550 esac
8551 if test yes = "$lt_cv_apple_cc_single_mod"; then
8552 _lt_dar_single_mod='$single_module'
8553 fi
8554 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8555 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8556 else
8557 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8558 fi
8559 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8560 _lt_dsymutil='~$DSYMUTIL $lib || :'
8561 else
8562 _lt_dsymutil=
8563 fi
8564 ;;
8565 esac
8566
8567 # func_munge_path_list VARIABLE PATH
8568 # -----------------------------------
8569 # VARIABLE is name of variable containing _space_ separated list of
8570 # directories to be munged by the contents of PATH, which is string
8571 # having a format:
8572 # "DIR[:DIR]:"
8573 # string "DIR[ DIR]" will be prepended to VARIABLE
8574 # ":DIR[:DIR]"
8575 # string "DIR[ DIR]" will be appended to VARIABLE
8576 # "DIRP[:DIRP]::[DIRA:]DIRA"
8577 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8578 # "DIRA[ DIRA]" will be appended to VARIABLE
8579 # "DIR[:DIR]"
8580 # VARIABLE will be replaced by "DIR[ DIR]"
8581 func_munge_path_list ()
8582 {
8583 case x$2 in
8584 x)
8585 ;;
8586 *:)
8587 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8588 ;;
8589 x:*)
8590 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8591 ;;
8592 *::*)
8593 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8594 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8595 ;;
8596 *)
8597 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8598 ;;
8599 esac
8600 }
8601
8602 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8603 "
8604 if test "x$ac_cv_header_dlfcn_h" = xyes
8605 then :
8606 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8607
8608 fi
8609
8610
8611
8612
8613
8614 # Set options
8615
8616
8617
8618 enable_dlopen=no
8619
8620
8621 enable_win32_dll=no
8622
8623
8624 # Check whether --enable-shared was given.
8625 if test ${enable_shared+y}
8626 then :
8627 enableval=$enable_shared; p=${PACKAGE-default}
8628 case $enableval in
8629 yes) enable_shared=yes ;;
8630 no) enable_shared=no ;;
8631 *)
8632 enable_shared=no
8633 # Look at the argument we got. We use all the common list separators.
8634 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8635 for pkg in $enableval; do
8636 IFS=$lt_save_ifs
8637 if test "X$pkg" = "X$p"; then
8638 enable_shared=yes
8639 fi
8640 done
8641 IFS=$lt_save_ifs
8642 ;;
8643 esac
8644 else $as_nop
8645 enable_shared=yes
8646 fi
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 # Check whether --enable-static was given.
8657 if test ${enable_static+y}
8658 then :
8659 enableval=$enable_static; p=${PACKAGE-default}
8660 case $enableval in
8661 yes) enable_static=yes ;;
8662 no) enable_static=no ;;
8663 *)
8664 enable_static=no
8665 # Look at the argument we got. We use all the common list separators.
8666 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8667 for pkg in $enableval; do
8668 IFS=$lt_save_ifs
8669 if test "X$pkg" = "X$p"; then
8670 enable_static=yes
8671 fi
8672 done
8673 IFS=$lt_save_ifs
8674 ;;
8675 esac
8676 else $as_nop
8677 enable_static=yes
8678 fi
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689 # Check whether --with-pic was given.
8690 if test ${with_pic+y}
8691 then :
8692 withval=$with_pic; lt_p=${PACKAGE-default}
8693 case $withval in
8694 yes|no) pic_mode=$withval ;;
8695 *)
8696 pic_mode=default
8697 # Look at the argument we got. We use all the common list separators.
8698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8699 for lt_pkg in $withval; do
8700 IFS=$lt_save_ifs
8701 if test "X$lt_pkg" = "X$lt_p"; then
8702 pic_mode=yes
8703 fi
8704 done
8705 IFS=$lt_save_ifs
8706 ;;
8707 esac
8708 else $as_nop
8709 pic_mode=default
8710 fi
8711
8712
8713
8714
8715
8716
8717
8718
8719 # Check whether --enable-fast-install was given.
8720 if test ${enable_fast_install+y}
8721 then :
8722 enableval=$enable_fast_install; p=${PACKAGE-default}
8723 case $enableval in
8724 yes) enable_fast_install=yes ;;
8725 no) enable_fast_install=no ;;
8726 *)
8727 enable_fast_install=no
8728 # Look at the argument we got. We use all the common list separators.
8729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8730 for pkg in $enableval; do
8731 IFS=$lt_save_ifs
8732 if test "X$pkg" = "X$p"; then
8733 enable_fast_install=yes
8734 fi
8735 done
8736 IFS=$lt_save_ifs
8737 ;;
8738 esac
8739 else $as_nop
8740 enable_fast_install=yes
8741 fi
8742
8743
8744
8745
8746
8747
8748
8749
8750 shared_archive_member_spec=
8751 case $host,$enable_shared in
8752 power*-*-aix[5-9]*,yes)
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8754 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8755
8756 # Check whether --with-aix-soname was given.
8757 if test ${with_aix_soname+y}
8758 then :
8759 withval=$with_aix_soname; case $withval in
8760 aix|svr4|both)
8761 ;;
8762 *)
8763 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8764 ;;
8765 esac
8766 lt_cv_with_aix_soname=$with_aix_soname
8767 else $as_nop
8768 if test ${lt_cv_with_aix_soname+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else $as_nop
8772 lt_cv_with_aix_soname=aix
8773 fi
8774
8775 with_aix_soname=$lt_cv_with_aix_soname
8776 fi
8777
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8779 printf "%s\n" "$with_aix_soname" >&6; }
8780 if test aix != "$with_aix_soname"; then
8781 # For the AIX way of multilib, we name the shared archive member
8782 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8783 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8784 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8785 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8786 if test 64 = "${OBJECT_MODE-32}"; then
8787 shared_archive_member_spec=shr_64
8788 else
8789 shared_archive_member_spec=shr
8790 fi
8791 fi
8792 ;;
8793 *)
8794 with_aix_soname=aix
8795 ;;
8796 esac
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807 # This can be used to rebuild libtool when needed
8808 LIBTOOL_DEPS=$ltmain
8809
8810 # Always use our own libtool.
8811 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842 test -z "$LN_S" && LN_S="ln -s"
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857 if test -n "${ZSH_VERSION+set}"; then
8858 setopt NO_GLOB_SUBST
8859 fi
8860
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8862 printf %s "checking for objdir... " >&6; }
8863 if test ${lt_cv_objdir+y}
8864 then :
8865 printf %s "(cached) " >&6
8866 else $as_nop
8867 rm -f .libs 2>/dev/null
8868 mkdir .libs 2>/dev/null
8869 if test -d .libs; then
8870 lt_cv_objdir=.libs
8871 else
8872 # MS-DOS does not allow filenames that begin with a dot.
8873 lt_cv_objdir=_libs
8874 fi
8875 rmdir .libs 2>/dev/null
8876 fi
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8878 printf "%s\n" "$lt_cv_objdir" >&6; }
8879 objdir=$lt_cv_objdir
8880
8881
8882
8883
8884
8885 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8886
8887
8888
8889
8890 case $host_os in
8891 aix3*)
8892 # AIX sometimes has problems with the GCC collect2 program. For some
8893 # reason, if we set the COLLECT_NAMES environment variable, the problems
8894 # vanish in a puff of smoke.
8895 if test set != "${COLLECT_NAMES+set}"; then
8896 COLLECT_NAMES=
8897 export COLLECT_NAMES
8898 fi
8899 ;;
8900 esac
8901
8902 # Global variables:
8903 ofile=libtool
8904 can_build_shared=yes
8905
8906 # All known linkers require a '.a' archive for static linking (except MSVC and
8907 # ICC, which need '.lib').
8908 libext=a
8909
8910 with_gnu_ld=$lt_cv_prog_gnu_ld
8911
8912 old_CC=$CC
8913 old_CFLAGS=$CFLAGS
8914
8915 # Set sane defaults for various variables
8916 test -z "$CC" && CC=cc
8917 test -z "$LTCC" && LTCC=$CC
8918 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8919 test -z "$LD" && LD=ld
8920 test -z "$ac_objext" && ac_objext=o
8921
8922 func_cc_basename $compiler
8923 cc_basename=$func_cc_basename_result
8924
8925
8926 # Only perform the check for file, if the check method requires it
8927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8928 case $deplibs_check_method in
8929 file_magic*)
8930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8932 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8933 if test ${lt_cv_path_MAGIC_CMD+y}
8934 then :
8935 printf %s "(cached) " >&6
8936 else $as_nop
8937 case $MAGIC_CMD in
8938 [\\/*] | ?:[\\/]*)
8939 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8940 ;;
8941 *)
8942 lt_save_MAGIC_CMD=$MAGIC_CMD
8943 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945 for ac_dir in $ac_dummy; do
8946 IFS=$lt_save_ifs
8947 test -z "$ac_dir" && ac_dir=.
8948 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8949 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8950 if test -n "$file_magic_test_file"; then
8951 case $deplibs_check_method in
8952 "file_magic "*)
8953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956 $EGREP "$file_magic_regex" > /dev/null; then
8957 :
8958 else
8959 cat <<_LT_EOF 1>&2
8960
8961 *** Warning: the command libtool uses to detect shared libraries,
8962 *** $file_magic_cmd, produces output that libtool cannot recognize.
8963 *** The result is that libtool may fail to recognize shared libraries
8964 *** as such. This will affect the creation of libtool libraries that
8965 *** depend on shared libraries, but programs linked with such libtool
8966 *** libraries will work regardless of this problem. Nevertheless, you
8967 *** may want to report the problem to your system manager and/or to
8968 *** bug-libtool@gnu.org
8969
8970 _LT_EOF
8971 fi ;;
8972 esac
8973 fi
8974 break
8975 fi
8976 done
8977 IFS=$lt_save_ifs
8978 MAGIC_CMD=$lt_save_MAGIC_CMD
8979 ;;
8980 esac
8981 fi
8982
8983 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8984 if test -n "$MAGIC_CMD"; then
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 printf "%s\n" "$MAGIC_CMD" >&6; }
8987 else
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 printf "%s\n" "no" >&6; }
8990 fi
8991
8992
8993
8994
8995
8996 if test -z "$lt_cv_path_MAGIC_CMD"; then
8997 if test -n "$ac_tool_prefix"; then
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8999 printf %s "checking for file... " >&6; }
9000 if test ${lt_cv_path_MAGIC_CMD+y}
9001 then :
9002 printf %s "(cached) " >&6
9003 else $as_nop
9004 case $MAGIC_CMD in
9005 [\\/*] | ?:[\\/]*)
9006 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9007 ;;
9008 *)
9009 lt_save_MAGIC_CMD=$MAGIC_CMD
9010 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9011 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9012 for ac_dir in $ac_dummy; do
9013 IFS=$lt_save_ifs
9014 test -z "$ac_dir" && ac_dir=.
9015 if test -f "$ac_dir/file"; then
9016 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9017 if test -n "$file_magic_test_file"; then
9018 case $deplibs_check_method in
9019 "file_magic "*)
9020 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9021 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9022 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9023 $EGREP "$file_magic_regex" > /dev/null; then
9024 :
9025 else
9026 cat <<_LT_EOF 1>&2
9027
9028 *** Warning: the command libtool uses to detect shared libraries,
9029 *** $file_magic_cmd, produces output that libtool cannot recognize.
9030 *** The result is that libtool may fail to recognize shared libraries
9031 *** as such. This will affect the creation of libtool libraries that
9032 *** depend on shared libraries, but programs linked with such libtool
9033 *** libraries will work regardless of this problem. Nevertheless, you
9034 *** may want to report the problem to your system manager and/or to
9035 *** bug-libtool@gnu.org
9036
9037 _LT_EOF
9038 fi ;;
9039 esac
9040 fi
9041 break
9042 fi
9043 done
9044 IFS=$lt_save_ifs
9045 MAGIC_CMD=$lt_save_MAGIC_CMD
9046 ;;
9047 esac
9048 fi
9049
9050 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9051 if test -n "$MAGIC_CMD"; then
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9053 printf "%s\n" "$MAGIC_CMD" >&6; }
9054 else
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 printf "%s\n" "no" >&6; }
9057 fi
9058
9059
9060 else
9061 MAGIC_CMD=:
9062 fi
9063 fi
9064
9065 fi
9066 ;;
9067 esac
9068
9069 # Use C for the default configuration in the libtool script
9070
9071 lt_save_CC=$CC
9072 ac_ext=c
9073 ac_cpp='$CPP $CPPFLAGS'
9074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9077
9078
9079 # Source file extension for C test sources.
9080 ac_ext=c
9081
9082 # Object file extension for compiled C test sources.
9083 objext=o
9084 objext=$objext
9085
9086 # Code to be used in simple compile tests
9087 lt_simple_compile_test_code="int some_variable = 0;"
9088
9089 # Code to be used in simple link tests
9090 lt_simple_link_test_code='int main(){return(0);}'
9091
9092
9093
9094
9095
9096
9097
9098 # If no C compiler was specified, use CC.
9099 LTCC=${LTCC-"$CC"}
9100
9101 # If no C compiler flags were specified, use CFLAGS.
9102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9103
9104 # Allow CC to be a program name with arguments.
9105 compiler=$CC
9106
9107 # Save the default compiler, since it gets overwritten when the other
9108 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9109 compiler_DEFAULT=$CC
9110
9111 # save warnings/boilerplate of simple test code
9112 ac_outfile=conftest.$ac_objext
9113 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9115 _lt_compiler_boilerplate=`cat conftest.err`
9116 $RM conftest*
9117
9118 ac_outfile=conftest.$ac_objext
9119 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9121 _lt_linker_boilerplate=`cat conftest.err`
9122 $RM -r conftest*
9123
9124
9125 ## CAVEAT EMPTOR:
9126 ## There is no encapsulation within the following macros, do not change
9127 ## the running order or otherwise move them around unless you know exactly
9128 ## what you are doing...
9129 if test -n "$compiler"; then
9130
9131 lt_prog_compiler_no_builtin_flag=
9132
9133 if test yes = "$GCC"; then
9134 case $cc_basename in
9135 nvcc*)
9136 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9137 *)
9138 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9139 esac
9140
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9142 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9143 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9144 then :
9145 printf %s "(cached) " >&6
9146 else $as_nop
9147 lt_cv_prog_compiler_rtti_exceptions=no
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9151 # Insert the option either (1) after the last *FLAGS variable, or
9152 # (2) before a word containing "conftest.", or (3) at the end.
9153 # Note that $ac_compile itself does not contain backslashes and begins
9154 # with a dollar sign (not a hyphen), so the echo should work correctly.
9155 # The option is referenced via a variable to avoid confusing sed.
9156 lt_compile=`echo "$ac_compile" | $SED \
9157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159 -e 's:$: $lt_compiler_flag:'`
9160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161 (eval "$lt_compile" 2>conftest.err)
9162 ac_status=$?
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 if (exit $ac_status) && test -s "$ac_outfile"; then
9166 # The compiler can only warn and ignore the option if not recognized
9167 # So say no if there are warnings other than the usual output.
9168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9171 lt_cv_prog_compiler_rtti_exceptions=yes
9172 fi
9173 fi
9174 $RM conftest*
9175
9176 fi
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9178 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9179
9180 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9181 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9182 else
9183 :
9184 fi
9185
9186 fi
9187
9188
9189
9190
9191
9192
9193 lt_prog_compiler_wl=
9194 lt_prog_compiler_pic=
9195 lt_prog_compiler_static=
9196
9197
9198 if test yes = "$GCC"; then
9199 lt_prog_compiler_wl='-Wl,'
9200 lt_prog_compiler_static='-static'
9201
9202 case $host_os in
9203 aix*)
9204 # All AIX code is PIC.
9205 if test ia64 = "$host_cpu"; then
9206 # AIX 5 now supports IA64 processor
9207 lt_prog_compiler_static='-Bstatic'
9208 fi
9209 lt_prog_compiler_pic='-fPIC'
9210 ;;
9211
9212 amigaos*)
9213 case $host_cpu in
9214 powerpc)
9215 # see comment about AmigaOS4 .so support
9216 lt_prog_compiler_pic='-fPIC'
9217 ;;
9218 m68k)
9219 # FIXME: we need at least 68020 code to build shared libraries, but
9220 # adding the '-m68020' flag to GCC prevents building anything better,
9221 # like '-m68040'.
9222 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9223 ;;
9224 esac
9225 ;;
9226
9227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9228 # PIC is the default for these OSes.
9229 ;;
9230
9231 mingw* | cygwin* | pw32* | os2* | cegcc*)
9232 # This hack is so that the source file can tell whether it is being
9233 # built for inclusion in a dll (and should export symbols for example).
9234 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9235 # (--disable-auto-import) libraries
9236 lt_prog_compiler_pic='-DDLL_EXPORT'
9237 case $host_os in
9238 os2*)
9239 lt_prog_compiler_static='$wl-static'
9240 ;;
9241 esac
9242 ;;
9243
9244 darwin* | rhapsody*)
9245 # PIC is the default on this platform
9246 # Common symbols not allowed in MH_DYLIB files
9247 lt_prog_compiler_pic='-fno-common'
9248 ;;
9249
9250 haiku*)
9251 # PIC is the default for Haiku.
9252 # The "-static" flag exists, but is broken.
9253 lt_prog_compiler_static=
9254 ;;
9255
9256 hpux*)
9257 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9258 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9259 # sets the default TLS model and affects inlining.
9260 case $host_cpu in
9261 hppa*64*)
9262 # +Z the default
9263 ;;
9264 *)
9265 lt_prog_compiler_pic='-fPIC'
9266 ;;
9267 esac
9268 ;;
9269
9270 interix[3-9]*)
9271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9272 # Instead, we relocate shared libraries at runtime.
9273 ;;
9274
9275 msdosdjgpp*)
9276 # Just because we use GCC doesn't mean we suddenly get shared libraries
9277 # on systems that don't support them.
9278 lt_prog_compiler_can_build_shared=no
9279 enable_shared=no
9280 ;;
9281
9282 *nto* | *qnx*)
9283 # QNX uses GNU C++, but need to define -shared option too, otherwise
9284 # it will coredump.
9285 lt_prog_compiler_pic='-fPIC -shared'
9286 ;;
9287
9288 sysv4*MP*)
9289 if test -d /usr/nec; then
9290 lt_prog_compiler_pic=-Kconform_pic
9291 fi
9292 ;;
9293
9294 *)
9295 lt_prog_compiler_pic='-fPIC'
9296 ;;
9297 esac
9298
9299 case $cc_basename in
9300 nvcc*) # Cuda Compiler Driver 2.2
9301 lt_prog_compiler_wl='-Xlinker '
9302 if test -n "$lt_prog_compiler_pic"; then
9303 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9304 fi
9305 ;;
9306 esac
9307 else
9308 # PORTME Check for flag to pass linker flags through the system compiler.
9309 case $host_os in
9310 aix*)
9311 lt_prog_compiler_wl='-Wl,'
9312 if test ia64 = "$host_cpu"; then
9313 # AIX 5 now supports IA64 processor
9314 lt_prog_compiler_static='-Bstatic'
9315 else
9316 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9317 fi
9318 ;;
9319
9320 darwin* | rhapsody*)
9321 # PIC is the default on this platform
9322 # Common symbols not allowed in MH_DYLIB files
9323 lt_prog_compiler_pic='-fno-common'
9324 case $cc_basename in
9325 nagfor*)
9326 # NAG Fortran compiler
9327 lt_prog_compiler_wl='-Wl,-Wl,,'
9328 lt_prog_compiler_pic='-PIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 ;;
9331 esac
9332 ;;
9333
9334 mingw* | cygwin* | pw32* | os2* | cegcc*)
9335 # This hack is so that the source file can tell whether it is being
9336 # built for inclusion in a dll (and should export symbols for example).
9337 lt_prog_compiler_pic='-DDLL_EXPORT'
9338 case $host_os in
9339 os2*)
9340 lt_prog_compiler_static='$wl-static'
9341 ;;
9342 esac
9343 ;;
9344
9345 hpux9* | hpux10* | hpux11*)
9346 lt_prog_compiler_wl='-Wl,'
9347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9348 # not for PA HP-UX.
9349 case $host_cpu in
9350 hppa*64*|ia64*)
9351 # +Z the default
9352 ;;
9353 *)
9354 lt_prog_compiler_pic='+Z'
9355 ;;
9356 esac
9357 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9358 lt_prog_compiler_static='$wl-a ${wl}archive'
9359 ;;
9360
9361 irix5* | irix6* | nonstopux*)
9362 lt_prog_compiler_wl='-Wl,'
9363 # PIC (with -KPIC) is the default.
9364 lt_prog_compiler_static='-non_shared'
9365 ;;
9366
9367 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9368 case $cc_basename in
9369 # old Intel for x86_64, which still supported -KPIC.
9370 ecc*)
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-static'
9374 ;;
9375 # icc used to be incompatible with GCC.
9376 # ICC 10 doesn't accept -KPIC any more.
9377 icc* | ifort*)
9378 lt_prog_compiler_wl='-Wl,'
9379 lt_prog_compiler_pic='-fPIC'
9380 lt_prog_compiler_static='-static'
9381 ;;
9382 # Lahey Fortran 8.1.
9383 lf95*)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='--shared'
9386 lt_prog_compiler_static='--static'
9387 ;;
9388 nagfor*)
9389 # NAG Fortran compiler
9390 lt_prog_compiler_wl='-Wl,-Wl,,'
9391 lt_prog_compiler_pic='-PIC'
9392 lt_prog_compiler_static='-Bstatic'
9393 ;;
9394 tcc*)
9395 # Fabrice Bellard et al's Tiny C Compiler
9396 lt_prog_compiler_wl='-Wl,'
9397 lt_prog_compiler_pic='-fPIC'
9398 lt_prog_compiler_static='-static'
9399 ;;
9400 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9401 # Portland Group compilers (*not* the Pentium gcc compiler,
9402 # which looks to be a dead project)
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_pic='-fpic'
9405 lt_prog_compiler_static='-Bstatic'
9406 ;;
9407 ccc*)
9408 lt_prog_compiler_wl='-Wl,'
9409 # All Alpha code is PIC.
9410 lt_prog_compiler_static='-non_shared'
9411 ;;
9412 xl* | bgxl* | bgf* | mpixl*)
9413 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9414 lt_prog_compiler_wl='-Wl,'
9415 lt_prog_compiler_pic='-qpic'
9416 lt_prog_compiler_static='-qstaticlink'
9417 ;;
9418 *)
9419 case `$CC -V 2>&1 | $SED 5q` in
9420 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9421 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-Bstatic'
9424 lt_prog_compiler_wl=''
9425 ;;
9426 *Sun\ F* | *Sun*Fortran*)
9427 lt_prog_compiler_pic='-KPIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 lt_prog_compiler_wl='-Qoption ld '
9430 ;;
9431 *Sun\ C*)
9432 # Sun C 5.9
9433 lt_prog_compiler_pic='-KPIC'
9434 lt_prog_compiler_static='-Bstatic'
9435 lt_prog_compiler_wl='-Wl,'
9436 ;;
9437 *Intel*\ [CF]*Compiler*)
9438 lt_prog_compiler_wl='-Wl,'
9439 lt_prog_compiler_pic='-fPIC'
9440 lt_prog_compiler_static='-static'
9441 ;;
9442 *Portland\ Group*)
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-fpic'
9445 lt_prog_compiler_static='-Bstatic'
9446 ;;
9447 esac
9448 ;;
9449 esac
9450 ;;
9451
9452 newsos6)
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 ;;
9456
9457 *nto* | *qnx*)
9458 # QNX uses GNU C++, but need to define -shared option too, otherwise
9459 # it will coredump.
9460 lt_prog_compiler_pic='-fPIC -shared'
9461 ;;
9462
9463 osf3* | osf4* | osf5*)
9464 lt_prog_compiler_wl='-Wl,'
9465 # All OSF/1 code is PIC.
9466 lt_prog_compiler_static='-non_shared'
9467 ;;
9468
9469 rdos*)
9470 lt_prog_compiler_static='-non_shared'
9471 ;;
9472
9473 solaris*)
9474 lt_prog_compiler_pic='-KPIC'
9475 lt_prog_compiler_static='-Bstatic'
9476 case $cc_basename in
9477 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9478 lt_prog_compiler_wl='-Qoption ld ';;
9479 *)
9480 lt_prog_compiler_wl='-Wl,';;
9481 esac
9482 ;;
9483
9484 sunos4*)
9485 lt_prog_compiler_wl='-Qoption ld '
9486 lt_prog_compiler_pic='-PIC'
9487 lt_prog_compiler_static='-Bstatic'
9488 ;;
9489
9490 sysv4 | sysv4.2uw2* | sysv4.3*)
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 ;;
9495
9496 sysv4*MP*)
9497 if test -d /usr/nec; then
9498 lt_prog_compiler_pic='-Kconform_pic'
9499 lt_prog_compiler_static='-Bstatic'
9500 fi
9501 ;;
9502
9503 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9504 lt_prog_compiler_wl='-Wl,'
9505 lt_prog_compiler_pic='-KPIC'
9506 lt_prog_compiler_static='-Bstatic'
9507 ;;
9508
9509 unicos*)
9510 lt_prog_compiler_wl='-Wl,'
9511 lt_prog_compiler_can_build_shared=no
9512 ;;
9513
9514 uts4*)
9515 lt_prog_compiler_pic='-pic'
9516 lt_prog_compiler_static='-Bstatic'
9517 ;;
9518
9519 *)
9520 lt_prog_compiler_can_build_shared=no
9521 ;;
9522 esac
9523 fi
9524
9525 case $host_os in
9526 # For platforms that do not support PIC, -DPIC is meaningless:
9527 *djgpp*)
9528 lt_prog_compiler_pic=
9529 ;;
9530 *)
9531 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9532 ;;
9533 esac
9534
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9536 printf %s "checking for $compiler option to produce PIC... " >&6; }
9537 if test ${lt_cv_prog_compiler_pic+y}
9538 then :
9539 printf %s "(cached) " >&6
9540 else $as_nop
9541 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9542 fi
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9544 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9545 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9546
9547 #
9548 # Check to make sure the PIC flag actually works.
9549 #
9550 if test -n "$lt_prog_compiler_pic"; then
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9552 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9553 if test ${lt_cv_prog_compiler_pic_works+y}
9554 then :
9555 printf %s "(cached) " >&6
9556 else $as_nop
9557 lt_cv_prog_compiler_pic_works=no
9558 ac_outfile=conftest.$ac_objext
9559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9560 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9561 # Insert the option either (1) after the last *FLAGS variable, or
9562 # (2) before a word containing "conftest.", or (3) at the end.
9563 # Note that $ac_compile itself does not contain backslashes and begins
9564 # with a dollar sign (not a hyphen), so the echo should work correctly.
9565 # The option is referenced via a variable to avoid confusing sed.
9566 lt_compile=`echo "$ac_compile" | $SED \
9567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9569 -e 's:$: $lt_compiler_flag:'`
9570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9571 (eval "$lt_compile" 2>conftest.err)
9572 ac_status=$?
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 if (exit $ac_status) && test -s "$ac_outfile"; then
9576 # The compiler can only warn and ignore the option if not recognized
9577 # So say no if there are warnings other than the usual output.
9578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9581 lt_cv_prog_compiler_pic_works=yes
9582 fi
9583 fi
9584 $RM conftest*
9585
9586 fi
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9588 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9589
9590 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9591 case $lt_prog_compiler_pic in
9592 "" | " "*) ;;
9593 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9594 esac
9595 else
9596 lt_prog_compiler_pic=
9597 lt_prog_compiler_can_build_shared=no
9598 fi
9599
9600 fi
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612 #
9613 # Check to make sure the static flag actually works.
9614 #
9615 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9617 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9618 if test ${lt_cv_prog_compiler_static_works+y}
9619 then :
9620 printf %s "(cached) " >&6
9621 else $as_nop
9622 lt_cv_prog_compiler_static_works=no
9623 save_LDFLAGS=$LDFLAGS
9624 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9627 # The linker can only warn and ignore the option if not recognized
9628 # So say no if there are warnings
9629 if test -s conftest.err; then
9630 # Append any errors to the config.log.
9631 cat conftest.err 1>&5
9632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634 if diff conftest.exp conftest.er2 >/dev/null; then
9635 lt_cv_prog_compiler_static_works=yes
9636 fi
9637 else
9638 lt_cv_prog_compiler_static_works=yes
9639 fi
9640 fi
9641 $RM -r conftest*
9642 LDFLAGS=$save_LDFLAGS
9643
9644 fi
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9646 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9647
9648 if test yes = "$lt_cv_prog_compiler_static_works"; then
9649 :
9650 else
9651 lt_prog_compiler_static=
9652 fi
9653
9654
9655
9656
9657
9658
9659
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9661 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9662 if test ${lt_cv_prog_compiler_c_o+y}
9663 then :
9664 printf %s "(cached) " >&6
9665 else $as_nop
9666 lt_cv_prog_compiler_c_o=no
9667 $RM -r conftest 2>/dev/null
9668 mkdir conftest
9669 cd conftest
9670 mkdir out
9671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9672
9673 lt_compiler_flag="-o out/conftest2.$ac_objext"
9674 # Insert the option either (1) after the last *FLAGS variable, or
9675 # (2) before a word containing "conftest.", or (3) at the end.
9676 # Note that $ac_compile itself does not contain backslashes and begins
9677 # with a dollar sign (not a hyphen), so the echo should work correctly.
9678 lt_compile=`echo "$ac_compile" | $SED \
9679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9681 -e 's:$: $lt_compiler_flag:'`
9682 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9683 (eval "$lt_compile" 2>out/conftest.err)
9684 ac_status=$?
9685 cat out/conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9688 then
9689 # The compiler can only warn and ignore the option if not recognized
9690 # So say no if there are warnings
9691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9694 lt_cv_prog_compiler_c_o=yes
9695 fi
9696 fi
9697 chmod u+w . 2>&5
9698 $RM conftest*
9699 # SGI C++ compiler will create directory out/ii_files/ for
9700 # template instantiation
9701 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9702 $RM out/* && rmdir out
9703 cd ..
9704 $RM -r conftest
9705 $RM conftest*
9706
9707 fi
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9709 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9710
9711
9712
9713
9714
9715
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9717 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9718 if test ${lt_cv_prog_compiler_c_o+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else $as_nop
9722 lt_cv_prog_compiler_c_o=no
9723 $RM -r conftest 2>/dev/null
9724 mkdir conftest
9725 cd conftest
9726 mkdir out
9727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9728
9729 lt_compiler_flag="-o out/conftest2.$ac_objext"
9730 # Insert the option either (1) after the last *FLAGS variable, or
9731 # (2) before a word containing "conftest.", or (3) at the end.
9732 # Note that $ac_compile itself does not contain backslashes and begins
9733 # with a dollar sign (not a hyphen), so the echo should work correctly.
9734 lt_compile=`echo "$ac_compile" | $SED \
9735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9737 -e 's:$: $lt_compiler_flag:'`
9738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9739 (eval "$lt_compile" 2>out/conftest.err)
9740 ac_status=$?
9741 cat out/conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9744 then
9745 # The compiler can only warn and ignore the option if not recognized
9746 # So say no if there are warnings
9747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9750 lt_cv_prog_compiler_c_o=yes
9751 fi
9752 fi
9753 chmod u+w . 2>&5
9754 $RM conftest*
9755 # SGI C++ compiler will create directory out/ii_files/ for
9756 # template instantiation
9757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9758 $RM out/* && rmdir out
9759 cd ..
9760 $RM -r conftest
9761 $RM conftest*
9762
9763 fi
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9765 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9766
9767
9768
9769
9770 hard_links=nottested
9771 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9772 # do not overwrite the value of need_locks provided by the user
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9774 printf %s "checking if we can lock with hard links... " >&6; }
9775 hard_links=yes
9776 $RM conftest*
9777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9778 touch conftest.a
9779 ln conftest.a conftest.b 2>&5 || hard_links=no
9780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9782 printf "%s\n" "$hard_links" >&6; }
9783 if test no = "$hard_links"; then
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9785 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9786 need_locks=warn
9787 fi
9788 else
9789 need_locks=no
9790 fi
9791
9792
9793
9794
9795
9796
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9798 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9799
9800 runpath_var=
9801 allow_undefined_flag=
9802 always_export_symbols=no
9803 archive_cmds=
9804 archive_expsym_cmds=
9805 compiler_needs_object=no
9806 enable_shared_with_static_runtimes=no
9807 export_dynamic_flag_spec=
9808 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9809 hardcode_automatic=no
9810 hardcode_direct=no
9811 hardcode_direct_absolute=no
9812 hardcode_libdir_flag_spec=
9813 hardcode_libdir_separator=
9814 hardcode_minus_L=no
9815 hardcode_shlibpath_var=unsupported
9816 inherit_rpath=no
9817 link_all_deplibs=unknown
9818 module_cmds=
9819 module_expsym_cmds=
9820 old_archive_from_new_cmds=
9821 old_archive_from_expsyms_cmds=
9822 thread_safe_flag_spec=
9823 whole_archive_flag_spec=
9824 # include_expsyms should be a list of space-separated symbols to be *always*
9825 # included in the symbol list
9826 include_expsyms=
9827 # exclude_expsyms can be an extended regexp of symbols to exclude
9828 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9829 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9830 # as well as any symbol that contains 'd'.
9831 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9832 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9833 # platforms (ab)use it in PIC code, but their linkers get confused if
9834 # the symbol is explicitly referenced. Since portable code cannot
9835 # rely on this symbol name, it's probably fine to never include it in
9836 # preloaded symbol tables.
9837 # Exclude shared library initialization/finalization symbols.
9838 extract_expsyms_cmds=
9839
9840 case $host_os in
9841 cygwin* | mingw* | pw32* | cegcc*)
9842 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9843 # When not using gcc, we currently assume that we are using
9844 # Microsoft Visual C++ or Intel C++ Compiler.
9845 if test yes != "$GCC"; then
9846 with_gnu_ld=no
9847 fi
9848 ;;
9849 interix*)
9850 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9851 with_gnu_ld=yes
9852 ;;
9853 openbsd* | bitrig*)
9854 with_gnu_ld=no
9855 ;;
9856 esac
9857
9858 ld_shlibs=yes
9859
9860 # On some targets, GNU ld is compatible enough with the native linker
9861 # that we're better off using the native interface for both.
9862 lt_use_gnu_ld_interface=no
9863 if test yes = "$with_gnu_ld"; then
9864 case $host_os in
9865 aix*)
9866 # The AIX port of GNU ld has always aspired to compatibility
9867 # with the native linker. However, as the warning in the GNU ld
9868 # block says, versions before 2.19.5* couldn't really create working
9869 # shared libraries, regardless of the interface used.
9870 case `$LD -v 2>&1` in
9871 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9872 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9873 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9874 *)
9875 lt_use_gnu_ld_interface=yes
9876 ;;
9877 esac
9878 ;;
9879 *)
9880 lt_use_gnu_ld_interface=yes
9881 ;;
9882 esac
9883 fi
9884
9885 if test yes = "$lt_use_gnu_ld_interface"; then
9886 # If archive_cmds runs LD, not CC, wlarc should be empty
9887 wlarc='$wl'
9888
9889 # Set some defaults for GNU ld with shared library support. These
9890 # are reset later if shared libraries are not supported. Putting them
9891 # here allows them to be overridden if necessary.
9892 runpath_var=LD_RUN_PATH
9893 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9894 export_dynamic_flag_spec='$wl--export-dynamic'
9895 # ancient GNU ld didn't support --whole-archive et. al.
9896 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9897 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9898 else
9899 whole_archive_flag_spec=
9900 fi
9901 supports_anon_versioning=no
9902 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9903 *GNU\ gold*) supports_anon_versioning=yes ;;
9904 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9905 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9906 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9907 *\ 2.11.*) ;; # other 2.11 versions
9908 *) supports_anon_versioning=yes ;;
9909 esac
9910
9911 # See if GNU ld supports shared libraries.
9912 case $host_os in
9913 aix[3-9]*)
9914 # On AIX/PPC, the GNU linker is very broken
9915 if test ia64 != "$host_cpu"; then
9916 ld_shlibs=no
9917 cat <<_LT_EOF 1>&2
9918
9919 *** Warning: the GNU linker, at least up to release 2.19, is reported
9920 *** to be unable to reliably create shared libraries on AIX.
9921 *** Therefore, libtool is disabling shared libraries support. If you
9922 *** really care for shared libraries, you may want to install binutils
9923 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9924 *** You will then need to restart the configuration process.
9925
9926 _LT_EOF
9927 fi
9928 ;;
9929
9930 amigaos*)
9931 case $host_cpu in
9932 powerpc)
9933 # see comment about AmigaOS4 .so support
9934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935 archive_expsym_cmds=''
9936 ;;
9937 m68k)
9938 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)'
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_minus_L=yes
9941 ;;
9942 esac
9943 ;;
9944
9945 beos*)
9946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947 allow_undefined_flag=unsupported
9948 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9949 # support --undefined. This deserves some investigation. FIXME
9950 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9951 else
9952 ld_shlibs=no
9953 fi
9954 ;;
9955
9956 cygwin* | mingw* | pw32* | cegcc*)
9957 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9958 # as there is no search path for DLLs.
9959 hardcode_libdir_flag_spec='-L$libdir'
9960 export_dynamic_flag_spec='$wl--export-all-symbols'
9961 allow_undefined_flag=unsupported
9962 always_export_symbols=no
9963 enable_shared_with_static_runtimes=yes
9964 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'
9965 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9966
9967 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9969 # If the export-symbols file already is a .def file, use it as
9970 # is; otherwise, prepend EXPORTS...
9971 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9972 cp $export_symbols $output_objdir/$soname.def;
9973 else
9974 echo EXPORTS > $output_objdir/$soname.def;
9975 cat $export_symbols >> $output_objdir/$soname.def;
9976 fi~
9977 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9978 else
9979 ld_shlibs=no
9980 fi
9981 ;;
9982
9983 haiku*)
9984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985 link_all_deplibs=yes
9986 ;;
9987
9988 os2*)
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_minus_L=yes
9991 allow_undefined_flag=unsupported
9992 shrext_cmds=.dll
9993 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9994 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9995 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9996 $ECHO EXPORTS >> $output_objdir/$libname.def~
9997 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9998 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9999 emximp -o $lib $output_objdir/$libname.def'
10000 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10001 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10002 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10003 $ECHO EXPORTS >> $output_objdir/$libname.def~
10004 prefix_cmds="$SED"~
10005 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10006 prefix_cmds="$prefix_cmds -e 1d";
10007 fi~
10008 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10009 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10010 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011 emximp -o $lib $output_objdir/$libname.def'
10012 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10013 enable_shared_with_static_runtimes=yes
10014 file_list_spec='@'
10015 ;;
10016
10017 interix[3-9]*)
10018 hardcode_direct=no
10019 hardcode_shlibpath_var=no
10020 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021 export_dynamic_flag_spec='$wl-E'
10022 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10023 # Instead, shared libraries are loaded at an image base (0x10000000 by
10024 # default) and relocated if they conflict, which is a slow very memory
10025 # consuming and fragmenting process. To avoid this, we pick a random,
10026 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10027 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10029 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'
10030 ;;
10031
10032 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10033 tmp_diet=no
10034 if test linux-dietlibc = "$host_os"; then
10035 case $cc_basename in
10036 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10037 esac
10038 fi
10039 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10040 && test no = "$tmp_diet"
10041 then
10042 tmp_addflag=' $pic_flag'
10043 tmp_sharedflag='-shared'
10044 case $cc_basename,$host_cpu in
10045 pgcc*) # Portland Group C compiler
10046 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'
10047 tmp_addflag=' $pic_flag'
10048 ;;
10049 pgf77* | pgf90* | pgf95* | pgfortran*)
10050 # Portland Group f77 and f90 compilers
10051 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'
10052 tmp_addflag=' $pic_flag -Mnomain' ;;
10053 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10054 tmp_addflag=' -i_dynamic' ;;
10055 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10056 tmp_addflag=' -i_dynamic -nofor_main' ;;
10057 ifc* | ifort*) # Intel Fortran compiler
10058 tmp_addflag=' -nofor_main' ;;
10059 lf95*) # Lahey Fortran 8.1
10060 whole_archive_flag_spec=
10061 tmp_sharedflag='--shared' ;;
10062 nagfor*) # NAGFOR 5.3
10063 tmp_sharedflag='-Wl,-shared' ;;
10064 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10065 tmp_sharedflag='-qmkshrobj'
10066 tmp_addflag= ;;
10067 nvcc*) # Cuda Compiler Driver 2.2
10068 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'
10069 compiler_needs_object=yes
10070 ;;
10071 esac
10072 case `$CC -V 2>&1 | $SED 5q` in
10073 *Sun\ C*) # Sun C 5.9
10074 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'
10075 compiler_needs_object=yes
10076 tmp_sharedflag='-G' ;;
10077 *Sun\ F*) # Sun Fortran 8.3
10078 tmp_sharedflag='-G' ;;
10079 esac
10080 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10081
10082 if test yes = "$supports_anon_versioning"; then
10083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10084 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10085 echo "local: *; };" >> $output_objdir/$libname.ver~
10086 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10087 fi
10088
10089 case $cc_basename in
10090 tcc*)
10091 export_dynamic_flag_spec='-rdynamic'
10092 ;;
10093 xlf* | bgf* | bgxlf* | mpixlf*)
10094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10095 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10097 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10098 if test yes = "$supports_anon_versioning"; then
10099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10100 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10101 echo "local: *; };" >> $output_objdir/$libname.ver~
10102 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10103 fi
10104 ;;
10105 esac
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110
10111 netbsd*)
10112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10114 wlarc=
10115 else
10116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118 fi
10119 ;;
10120
10121 solaris*)
10122 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10123 ld_shlibs=no
10124 cat <<_LT_EOF 1>&2
10125
10126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10127 *** create shared libraries on Solaris systems. Therefore, libtool
10128 *** is disabling shared libraries support. We urge you to upgrade GNU
10129 *** binutils to release 2.9.1 or newer. Another option is to modify
10130 *** your PATH or compiler configuration so that the native linker is
10131 *** used, and then restart.
10132
10133 _LT_EOF
10134 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10136 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10137 else
10138 ld_shlibs=no
10139 fi
10140 ;;
10141
10142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10143 case `$LD -v 2>&1` in
10144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10145 ld_shlibs=no
10146 cat <<_LT_EOF 1>&2
10147
10148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10149 *** reliably create shared libraries on SCO systems. Therefore, libtool
10150 *** is disabling shared libraries support. We urge you to upgrade GNU
10151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10152 *** your PATH or compiler configuration so that the native linker is
10153 *** used, and then restart.
10154
10155 _LT_EOF
10156 ;;
10157 *)
10158 # For security reasons, it is highly recommended that you always
10159 # use absolute paths for naming shared libraries, and exclude the
10160 # DT_RUNPATH tag from executables and libraries. But doing so
10161 # requires that you compile everything twice, which is a pain.
10162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10166 else
10167 ld_shlibs=no
10168 fi
10169 ;;
10170 esac
10171 ;;
10172
10173 sunos4*)
10174 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10175 wlarc=
10176 hardcode_direct=yes
10177 hardcode_shlibpath_var=no
10178 ;;
10179
10180 *)
10181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10184 else
10185 ld_shlibs=no
10186 fi
10187 ;;
10188 esac
10189
10190 if test no = "$ld_shlibs"; then
10191 runpath_var=
10192 hardcode_libdir_flag_spec=
10193 export_dynamic_flag_spec=
10194 whole_archive_flag_spec=
10195 fi
10196 else
10197 # PORTME fill in a description of your system's linker (not GNU ld)
10198 case $host_os in
10199 aix3*)
10200 allow_undefined_flag=unsupported
10201 always_export_symbols=yes
10202 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'
10203 # Note: this linker hardcodes the directories in LIBPATH if there
10204 # are no directories specified by -L.
10205 hardcode_minus_L=yes
10206 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10207 # Neither direct hardcoding nor static linking is supported with a
10208 # broken collect2.
10209 hardcode_direct=unsupported
10210 fi
10211 ;;
10212
10213 aix[4-9]*)
10214 if test ia64 = "$host_cpu"; then
10215 # On IA64, the linker does run time linking by default, so we don't
10216 # have to do anything special.
10217 aix_use_runtimelinking=no
10218 exp_sym_flag='-Bexport'
10219 no_entry_flag=
10220 else
10221 # If we're using GNU nm, then we don't want the "-C" option.
10222 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10223 # Without the "-l" option, or with the "-B" option, AIX nm treats
10224 # weak defined symbols like other global defined symbols, whereas
10225 # GNU nm marks them as "W".
10226 # While the 'weak' keyword is ignored in the Export File, we need
10227 # it in the Import File for the 'aix-soname' feature, so we have
10228 # to replace the "-B" option with "-P" for AIX nm.
10229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10230 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'
10231 else
10232 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'
10233 fi
10234 aix_use_runtimelinking=no
10235
10236 # Test if we are trying to use run time linking or normal
10237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238 # have runtime linking enabled, and use it for executables.
10239 # For shared libraries, we enable/disable runtime linking
10240 # depending on the kind of the shared library created -
10241 # when "with_aix_soname,aix_use_runtimelinking" is:
10242 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10243 # "aix,yes" lib.so shared, rtl:yes, for executables
10244 # lib.a static archive
10245 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10246 # lib.a(lib.so.V) shared, rtl:no, for executables
10247 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10248 # lib.a(lib.so.V) shared, rtl:no
10249 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10250 # lib.a static archive
10251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10252 for ld_flag in $LDFLAGS; do
10253 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10254 aix_use_runtimelinking=yes
10255 break
10256 fi
10257 done
10258 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10259 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10260 # so we don't have lib.a shared libs to link our executables.
10261 # We have to force runtime linking in this case.
10262 aix_use_runtimelinking=yes
10263 LDFLAGS="$LDFLAGS -Wl,-brtl"
10264 fi
10265 ;;
10266 esac
10267
10268 exp_sym_flag='-bexport'
10269 no_entry_flag='-bnoentry'
10270 fi
10271
10272 # When large executables or shared objects are built, AIX ld can
10273 # have problems creating the table of contents. If linking a library
10274 # or program results in "error TOC overflow" add -mminimal-toc to
10275 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10276 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10277
10278 archive_cmds=''
10279 hardcode_direct=yes
10280 hardcode_direct_absolute=yes
10281 hardcode_libdir_separator=':'
10282 link_all_deplibs=yes
10283 file_list_spec='$wl-f,'
10284 case $with_aix_soname,$aix_use_runtimelinking in
10285 aix,*) ;; # traditional, no import file
10286 svr4,* | *,yes) # use import file
10287 # The Import File defines what to hardcode.
10288 hardcode_direct=no
10289 hardcode_direct_absolute=no
10290 ;;
10291 esac
10292
10293 if test yes = "$GCC"; then
10294 case $host_os in aix4.[012]|aix4.[012].*)
10295 # We only want to do this on AIX 4.2 and lower, the check
10296 # below for broken collect2 doesn't work under 4.3+
10297 collect2name=`$CC -print-prog-name=collect2`
10298 if test -f "$collect2name" &&
10299 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10300 then
10301 # We have reworked collect2
10302 :
10303 else
10304 # We have old collect2
10305 hardcode_direct=unsupported
10306 # It fails to find uninstalled libraries when the uninstalled
10307 # path is not listed in the libpath. Setting hardcode_minus_L
10308 # to unsupported forces relinking
10309 hardcode_minus_L=yes
10310 hardcode_libdir_flag_spec='-L$libdir'
10311 hardcode_libdir_separator=
10312 fi
10313 ;;
10314 esac
10315 shared_flag='-shared'
10316 if test yes = "$aix_use_runtimelinking"; then
10317 shared_flag="$shared_flag "'$wl-G'
10318 fi
10319 # Need to ensure runtime linking is disabled for the traditional
10320 # shared library, or the linker may eventually find shared libraries
10321 # /with/ Import File - we do not want to mix them.
10322 shared_flag_aix='-shared'
10323 shared_flag_svr4='-shared $wl-G'
10324 else
10325 # not using gcc
10326 if test ia64 = "$host_cpu"; then
10327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10328 # chokes on -Wl,-G. The following line is correct:
10329 shared_flag='-G'
10330 else
10331 if test yes = "$aix_use_runtimelinking"; then
10332 shared_flag='$wl-G'
10333 else
10334 shared_flag='$wl-bM:SRE'
10335 fi
10336 shared_flag_aix='$wl-bM:SRE'
10337 shared_flag_svr4='$wl-G'
10338 fi
10339 fi
10340
10341 export_dynamic_flag_spec='$wl-bexpall'
10342 # It seems that -bexpall does not export symbols beginning with
10343 # underscore (_), so it is better to generate a list of symbols to export.
10344 always_export_symbols=yes
10345 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10346 # Warning - without using the other runtime loading flags (-brtl),
10347 # -berok will link without error, but may produce a broken library.
10348 allow_undefined_flag='-berok'
10349 # Determine the default libpath from the value encoded in an
10350 # empty executable.
10351 if test set = "${lt_cv_aix_libpath+set}"; then
10352 aix_libpath=$lt_cv_aix_libpath
10353 else
10354 if test ${lt_cv_aix_libpath_+y}
10355 then :
10356 printf %s "(cached) " >&6
10357 else $as_nop
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360
10361 int
10362 main (void)
10363 {
10364
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"
10370 then :
10371
10372 lt_aix_libpath_sed='
10373 /Import File Strings/,/^$/ {
10374 /^0/ {
10375 s/^0 *\([^ ]*\) *$/\1/
10376 p
10377 }
10378 }'
10379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380 # Check for a 64-bit object if we didn't find anything.
10381 if test -z "$lt_cv_aix_libpath_"; then
10382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 fi
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10386 conftest$ac_exeext conftest.$ac_ext
10387 if test -z "$lt_cv_aix_libpath_"; then
10388 lt_cv_aix_libpath_=/usr/lib:/lib
10389 fi
10390
10391 fi
10392
10393 aix_libpath=$lt_cv_aix_libpath_
10394 fi
10395
10396 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10397 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
10398 else
10399 if test ia64 = "$host_cpu"; then
10400 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10401 allow_undefined_flag="-z nodefs"
10402 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"
10403 else
10404 # Determine the default libpath from the value encoded in an
10405 # empty executable.
10406 if test set = "${lt_cv_aix_libpath+set}"; then
10407 aix_libpath=$lt_cv_aix_libpath
10408 else
10409 if test ${lt_cv_aix_libpath_+y}
10410 then :
10411 printf %s "(cached) " >&6
10412 else $as_nop
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415
10416 int
10417 main (void)
10418 {
10419
10420 ;
10421 return 0;
10422 }
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"
10425 then :
10426
10427 lt_aix_libpath_sed='
10428 /Import File Strings/,/^$/ {
10429 /^0/ {
10430 s/^0 *\([^ ]*\) *$/\1/
10431 p
10432 }
10433 }'
10434 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10435 # Check for a 64-bit object if we didn't find anything.
10436 if test -z "$lt_cv_aix_libpath_"; then
10437 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10438 fi
10439 fi
10440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10441 conftest$ac_exeext conftest.$ac_ext
10442 if test -z "$lt_cv_aix_libpath_"; then
10443 lt_cv_aix_libpath_=/usr/lib:/lib
10444 fi
10445
10446 fi
10447
10448 aix_libpath=$lt_cv_aix_libpath_
10449 fi
10450
10451 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10452 # Warning - without using the other run time loading flags,
10453 # -berok will link without error, but may produce a broken library.
10454 no_undefined_flag=' $wl-bernotok'
10455 allow_undefined_flag=' $wl-berok'
10456 if test yes = "$with_gnu_ld"; then
10457 # We only use this code for GNU lds that support --whole-archive.
10458 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10459 else
10460 # Exported symbols can be pulled into shared objects from archives
10461 whole_archive_flag_spec='$convenience'
10462 fi
10463 archive_cmds_need_lc=yes
10464 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10465 # -brtl affects multiple linker settings, -berok does not and is overridden later
10466 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10467 if test svr4 != "$with_aix_soname"; then
10468 # This is similar to how AIX traditionally builds its shared libraries.
10469 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'
10470 fi
10471 if test aix != "$with_aix_soname"; then
10472 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'
10473 else
10474 # used by -dlpreopen to get the symbols
10475 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10476 fi
10477 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10478 fi
10479 fi
10480 ;;
10481
10482 amigaos*)
10483 case $host_cpu in
10484 powerpc)
10485 # see comment about AmigaOS4 .so support
10486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10487 archive_expsym_cmds=''
10488 ;;
10489 m68k)
10490 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)'
10491 hardcode_libdir_flag_spec='-L$libdir'
10492 hardcode_minus_L=yes
10493 ;;
10494 esac
10495 ;;
10496
10497 bsdi[45]*)
10498 export_dynamic_flag_spec=-rdynamic
10499 ;;
10500
10501 cygwin* | mingw* | pw32* | cegcc*)
10502 # When not using gcc, we currently assume that we are using
10503 # Microsoft Visual C++ or Intel C++ Compiler.
10504 # hardcode_libdir_flag_spec is actually meaningless, as there is
10505 # no search path for DLLs.
10506 case $cc_basename in
10507 cl* | icl*)
10508 # Native MSVC or ICC
10509 hardcode_libdir_flag_spec=' '
10510 allow_undefined_flag=unsupported
10511 always_export_symbols=yes
10512 file_list_spec='@'
10513 # Tell ltmain to make .lib files, not .a files.
10514 libext=lib
10515 # Tell ltmain to make .dll files, not .so files.
10516 shrext_cmds=.dll
10517 # FIXME: Setting linknames here is a bad hack.
10518 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10519 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10520 cp "$export_symbols" "$output_objdir/$soname.def";
10521 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10522 else
10523 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10524 fi~
10525 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10526 linknames='
10527 # The linker will not automatically build a static lib if we build a DLL.
10528 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10529 enable_shared_with_static_runtimes=yes
10530 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10532 # Don't use ranlib
10533 old_postinstall_cmds='chmod 644 $oldlib'
10534 postlink_cmds='lt_outputfile="@OUTPUT@"~
10535 lt_tool_outputfile="@TOOL_OUTPUT@"~
10536 case $lt_outputfile in
10537 *.exe|*.EXE) ;;
10538 *)
10539 lt_outputfile=$lt_outputfile.exe
10540 lt_tool_outputfile=$lt_tool_outputfile.exe
10541 ;;
10542 esac~
10543 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10544 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10545 $RM "$lt_outputfile.manifest";
10546 fi'
10547 ;;
10548 *)
10549 # Assume MSVC and ICC wrapper
10550 hardcode_libdir_flag_spec=' '
10551 allow_undefined_flag=unsupported
10552 # Tell ltmain to make .lib files, not .a files.
10553 libext=lib
10554 # Tell ltmain to make .dll files, not .so files.
10555 shrext_cmds=.dll
10556 # FIXME: Setting linknames here is a bad hack.
10557 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10558 # The linker will automatically build a .lib file if we build a DLL.
10559 old_archive_from_new_cmds='true'
10560 # FIXME: Should let the user specify the lib program.
10561 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10562 enable_shared_with_static_runtimes=yes
10563 ;;
10564 esac
10565 ;;
10566
10567 darwin* | rhapsody*)
10568
10569
10570 archive_cmds_need_lc=no
10571 hardcode_direct=no
10572 hardcode_automatic=yes
10573 hardcode_shlibpath_var=unsupported
10574 if test yes = "$lt_cv_ld_force_load"; then
10575 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\"`'
10576
10577 else
10578 whole_archive_flag_spec=''
10579 fi
10580 link_all_deplibs=yes
10581 allow_undefined_flag=$_lt_dar_allow_undefined
10582 case $cc_basename in
10583 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10584 *) _lt_dar_can_shared=$GCC ;;
10585 esac
10586 if test yes = "$_lt_dar_can_shared"; then
10587 output_verbose_link_cmd=func_echo_all
10588 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10589 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10590 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"
10591 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"
10592
10593 else
10594 ld_shlibs=no
10595 fi
10596
10597 ;;
10598
10599 dgux*)
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_shlibpath_var=no
10603 ;;
10604
10605 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10606 # support. Future versions do this automatically, but an explicit c++rt0.o
10607 # does not break anything, and helps significantly (at the cost of a little
10608 # extra space).
10609 freebsd2.2*)
10610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10611 hardcode_libdir_flag_spec='-R$libdir'
10612 hardcode_direct=yes
10613 hardcode_shlibpath_var=no
10614 ;;
10615
10616 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10617 freebsd2.*)
10618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_direct=yes
10620 hardcode_minus_L=yes
10621 hardcode_shlibpath_var=no
10622 ;;
10623
10624 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10625 freebsd* | dragonfly* | midnightbsd*)
10626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10627 hardcode_libdir_flag_spec='-R$libdir'
10628 hardcode_direct=yes
10629 hardcode_shlibpath_var=no
10630 ;;
10631
10632 hpux9*)
10633 if test yes = "$GCC"; then
10634 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'
10635 else
10636 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'
10637 fi
10638 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10639 hardcode_libdir_separator=:
10640 hardcode_direct=yes
10641
10642 # hardcode_minus_L: Not really in the search PATH,
10643 # but as the default location of the library.
10644 hardcode_minus_L=yes
10645 export_dynamic_flag_spec='$wl-E'
10646 ;;
10647
10648 hpux10*)
10649 if test yes,no = "$GCC,$with_gnu_ld"; then
10650 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10651 else
10652 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10653 fi
10654 if test no = "$with_gnu_ld"; then
10655 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10656 hardcode_libdir_separator=:
10657 hardcode_direct=yes
10658 hardcode_direct_absolute=yes
10659 export_dynamic_flag_spec='$wl-E'
10660 # hardcode_minus_L: Not really in the search PATH,
10661 # but as the default location of the library.
10662 hardcode_minus_L=yes
10663 fi
10664 ;;
10665
10666 hpux11*)
10667 if test yes,no = "$GCC,$with_gnu_ld"; then
10668 case $host_cpu in
10669 hppa*64*)
10670 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 ;;
10672 ia64*)
10673 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10674 ;;
10675 *)
10676 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677 ;;
10678 esac
10679 else
10680 case $host_cpu in
10681 hppa*64*)
10682 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 ;;
10684 ia64*)
10685 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10686 ;;
10687 *)
10688
10689 # Older versions of the 11.00 compiler do not understand -b yet
10690 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10692 printf %s "checking if $CC understands -b... " >&6; }
10693 if test ${lt_cv_prog_compiler__b+y}
10694 then :
10695 printf %s "(cached) " >&6
10696 else $as_nop
10697 lt_cv_prog_compiler__b=no
10698 save_LDFLAGS=$LDFLAGS
10699 LDFLAGS="$LDFLAGS -b"
10700 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10702 # The linker can only warn and ignore the option if not recognized
10703 # So say no if there are warnings
10704 if test -s conftest.err; then
10705 # Append any errors to the config.log.
10706 cat conftest.err 1>&5
10707 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10709 if diff conftest.exp conftest.er2 >/dev/null; then
10710 lt_cv_prog_compiler__b=yes
10711 fi
10712 else
10713 lt_cv_prog_compiler__b=yes
10714 fi
10715 fi
10716 $RM -r conftest*
10717 LDFLAGS=$save_LDFLAGS
10718
10719 fi
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10721 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10722
10723 if test yes = "$lt_cv_prog_compiler__b"; then
10724 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725 else
10726 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10727 fi
10728
10729 ;;
10730 esac
10731 fi
10732 if test no = "$with_gnu_ld"; then
10733 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10734 hardcode_libdir_separator=:
10735
10736 case $host_cpu in
10737 hppa*64*|ia64*)
10738 hardcode_direct=no
10739 hardcode_shlibpath_var=no
10740 ;;
10741 *)
10742 hardcode_direct=yes
10743 hardcode_direct_absolute=yes
10744 export_dynamic_flag_spec='$wl-E'
10745
10746 # hardcode_minus_L: Not really in the search PATH,
10747 # but as the default location of the library.
10748 hardcode_minus_L=yes
10749 ;;
10750 esac
10751 fi
10752 ;;
10753
10754 irix5* | irix6* | nonstopux*)
10755 if test yes = "$GCC"; then
10756 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'
10757 # Try to use the -exported_symbol ld option, if it does not
10758 # work, assume that -exports_file does not work either and
10759 # implicitly export all symbols.
10760 # This should be the same for all languages, so no per-tag cache variable.
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10762 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10763 if test ${lt_cv_irix_exported_symbol+y}
10764 then :
10765 printf %s "(cached) " >&6
10766 else $as_nop
10767 save_LDFLAGS=$LDFLAGS
10768 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 int foo (void) { return 0; }
10772 _ACEOF
10773 if ac_fn_c_try_link "$LINENO"
10774 then :
10775 lt_cv_irix_exported_symbol=yes
10776 else $as_nop
10777 lt_cv_irix_exported_symbol=no
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LDFLAGS=$save_LDFLAGS
10782 fi
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10784 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10785 if test yes = "$lt_cv_irix_exported_symbol"; then
10786 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'
10787 fi
10788 else
10789 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'
10790 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'
10791 fi
10792 archive_cmds_need_lc='no'
10793 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10794 hardcode_libdir_separator=:
10795 inherit_rpath=yes
10796 link_all_deplibs=yes
10797 ;;
10798
10799 linux*)
10800 case $cc_basename in
10801 tcc*)
10802 # Fabrice Bellard et al's Tiny C Compiler
10803 ld_shlibs=yes
10804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10805 ;;
10806 esac
10807 ;;
10808
10809 netbsd*)
10810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10812 else
10813 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10814 fi
10815 hardcode_libdir_flag_spec='-R$libdir'
10816 hardcode_direct=yes
10817 hardcode_shlibpath_var=no
10818 ;;
10819
10820 newsos6)
10821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822 hardcode_direct=yes
10823 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10824 hardcode_libdir_separator=:
10825 hardcode_shlibpath_var=no
10826 ;;
10827
10828 *nto* | *qnx*)
10829 ;;
10830
10831 openbsd* | bitrig*)
10832 if test -f /usr/libexec/ld.so; then
10833 hardcode_direct=yes
10834 hardcode_shlibpath_var=no
10835 hardcode_direct_absolute=yes
10836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10838 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10839 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10840 export_dynamic_flag_spec='$wl-E'
10841 else
10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10844 fi
10845 else
10846 ld_shlibs=no
10847 fi
10848 ;;
10849
10850 os2*)
10851 hardcode_libdir_flag_spec='-L$libdir'
10852 hardcode_minus_L=yes
10853 allow_undefined_flag=unsupported
10854 shrext_cmds=.dll
10855 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10856 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10857 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10858 $ECHO EXPORTS >> $output_objdir/$libname.def~
10859 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10860 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10861 emximp -o $lib $output_objdir/$libname.def'
10862 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10865 $ECHO EXPORTS >> $output_objdir/$libname.def~
10866 prefix_cmds="$SED"~
10867 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10868 prefix_cmds="$prefix_cmds -e 1d";
10869 fi~
10870 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10871 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10872 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10873 emximp -o $lib $output_objdir/$libname.def'
10874 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10875 enable_shared_with_static_runtimes=yes
10876 file_list_spec='@'
10877 ;;
10878
10879 osf3*)
10880 if test yes = "$GCC"; then
10881 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10882 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'
10883 else
10884 allow_undefined_flag=' -expect_unresolved \*'
10885 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'
10886 fi
10887 archive_cmds_need_lc='no'
10888 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10889 hardcode_libdir_separator=:
10890 ;;
10891
10892 osf4* | osf5*) # as osf3* with the addition of -msym flag
10893 if test yes = "$GCC"; then
10894 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10895 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'
10896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10897 else
10898 allow_undefined_flag=' -expect_unresolved \*'
10899 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'
10900 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~
10901 $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'
10902
10903 # Both c and cxx compiler support -rpath directly
10904 hardcode_libdir_flag_spec='-rpath $libdir'
10905 fi
10906 archive_cmds_need_lc='no'
10907 hardcode_libdir_separator=:
10908 ;;
10909
10910 solaris*)
10911 no_undefined_flag=' -z defs'
10912 if test yes = "$GCC"; then
10913 wlarc='$wl'
10914 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10916 $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'
10917 else
10918 case `$CC -V 2>&1` in
10919 *"Compilers 5.0"*)
10920 wlarc=''
10921 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10924 ;;
10925 *)
10926 wlarc='$wl'
10927 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10929 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10930 ;;
10931 esac
10932 fi
10933 hardcode_libdir_flag_spec='-R$libdir'
10934 hardcode_shlibpath_var=no
10935 case $host_os in
10936 solaris2.[0-5] | solaris2.[0-5].*) ;;
10937 *)
10938 # The compiler driver will combine and reorder linker options,
10939 # but understands '-z linker_flag'. GCC discards it without '$wl',
10940 # but is careful enough not to reorder.
10941 # Supported since Solaris 2.6 (maybe 2.5.1?)
10942 if test yes = "$GCC"; then
10943 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10944 else
10945 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10946 fi
10947 ;;
10948 esac
10949 link_all_deplibs=yes
10950 ;;
10951
10952 sunos4*)
10953 if test sequent = "$host_vendor"; then
10954 # Use $CC to link under sequent, because it throws in some extra .o
10955 # files that make .init and .fini sections work.
10956 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10957 else
10958 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10959 fi
10960 hardcode_libdir_flag_spec='-L$libdir'
10961 hardcode_direct=yes
10962 hardcode_minus_L=yes
10963 hardcode_shlibpath_var=no
10964 ;;
10965
10966 sysv4)
10967 case $host_vendor in
10968 sni)
10969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970 hardcode_direct=yes # is this really true???
10971 ;;
10972 siemens)
10973 ## LD is ld it makes a PLAMLIB
10974 ## CC just makes a GrossModule.
10975 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10976 reload_cmds='$CC -r -o $output$reload_objs'
10977 hardcode_direct=no
10978 ;;
10979 motorola)
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10982 ;;
10983 esac
10984 runpath_var='LD_RUN_PATH'
10985 hardcode_shlibpath_var=no
10986 ;;
10987
10988 sysv4.3*)
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_shlibpath_var=no
10991 export_dynamic_flag_spec='-Bexport'
10992 ;;
10993
10994 sysv4*MP*)
10995 if test -d /usr/nec; then
10996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997 hardcode_shlibpath_var=no
10998 runpath_var=LD_RUN_PATH
10999 hardcode_runpath_var=yes
11000 ld_shlibs=yes
11001 fi
11002 ;;
11003
11004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11005 no_undefined_flag='$wl-z,text'
11006 archive_cmds_need_lc=no
11007 hardcode_shlibpath_var=no
11008 runpath_var='LD_RUN_PATH'
11009
11010 if test yes = "$GCC"; then
11011 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 else
11014 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016 fi
11017 ;;
11018
11019 sysv5* | sco3.2v5* | sco5v6*)
11020 # Note: We CANNOT use -z defs as we might desire, because we do not
11021 # link with -lc, and that would cause any symbols used from libc to
11022 # always be unresolved, which means just about no library would
11023 # ever link correctly. If we're not using GNU ld we use -z text
11024 # though, which does catch some bad symbols but isn't as heavy-handed
11025 # as -z defs.
11026 no_undefined_flag='$wl-z,text'
11027 allow_undefined_flag='$wl-z,nodefs'
11028 archive_cmds_need_lc=no
11029 hardcode_shlibpath_var=no
11030 hardcode_libdir_flag_spec='$wl-R,$libdir'
11031 hardcode_libdir_separator=':'
11032 link_all_deplibs=yes
11033 export_dynamic_flag_spec='$wl-Bexport'
11034 runpath_var='LD_RUN_PATH'
11035
11036 if test yes = "$GCC"; then
11037 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039 else
11040 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042 fi
11043 ;;
11044
11045 uts4*)
11046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047 hardcode_libdir_flag_spec='-L$libdir'
11048 hardcode_shlibpath_var=no
11049 ;;
11050
11051 *)
11052 ld_shlibs=no
11053 ;;
11054 esac
11055
11056 if test sni = "$host_vendor"; then
11057 case $host in
11058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11059 export_dynamic_flag_spec='$wl-Blargedynsym'
11060 ;;
11061 esac
11062 fi
11063 fi
11064
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11066 printf "%s\n" "$ld_shlibs" >&6; }
11067 test no = "$ld_shlibs" && can_build_shared=no
11068
11069 with_gnu_ld=$with_gnu_ld
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085 #
11086 # Do we need to explicitly link libc?
11087 #
11088 case "x$archive_cmds_need_lc" in
11089 x|xyes)
11090 # Assume -lc should be added
11091 archive_cmds_need_lc=yes
11092
11093 if test yes,yes = "$GCC,$enable_shared"; then
11094 case $archive_cmds in
11095 *'~'*)
11096 # FIXME: we may have to deal with multi-command sequences.
11097 ;;
11098 '$CC '*)
11099 # Test whether the compiler implicitly links with -lc since on some
11100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11101 # to ld, don't add -lc before -lgcc.
11102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11103 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11104 if test ${lt_cv_archive_cmds_need_lc+y}
11105 then :
11106 printf %s "(cached) " >&6
11107 else $as_nop
11108 $RM conftest*
11109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11110
11111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11112 (eval $ac_compile) 2>&5
11113 ac_status=$?
11114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115 test $ac_status = 0; } 2>conftest.err; then
11116 soname=conftest
11117 lib=conftest
11118 libobjs=conftest.$ac_objext
11119 deplibs=
11120 wl=$lt_prog_compiler_wl
11121 pic_flag=$lt_prog_compiler_pic
11122 compiler_flags=-v
11123 linker_flags=-v
11124 verstring=
11125 output_objdir=.
11126 libname=conftest
11127 lt_save_allow_undefined_flag=$allow_undefined_flag
11128 allow_undefined_flag=
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11130 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11131 ac_status=$?
11132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; }
11134 then
11135 lt_cv_archive_cmds_need_lc=no
11136 else
11137 lt_cv_archive_cmds_need_lc=yes
11138 fi
11139 allow_undefined_flag=$lt_save_allow_undefined_flag
11140 else
11141 cat conftest.err 1>&5
11142 fi
11143 $RM conftest*
11144
11145 fi
11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11147 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11148 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11149 ;;
11150 esac
11151 fi
11152 ;;
11153 esac
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11307 printf %s "checking dynamic linker characteristics... " >&6; }
11308
11309 if test yes = "$GCC"; then
11310 case $host_os in
11311 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11312 *) lt_awk_arg='/^libraries:/' ;;
11313 esac
11314 case $host_os in
11315 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11316 *) lt_sed_strip_eq='s|=/|/|g' ;;
11317 esac
11318 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11319 case $lt_search_path_spec in
11320 *\;*)
11321 # if the path contains ";" then we assume it to be the separator
11322 # otherwise default to the standard path separator (i.e. ":") - it is
11323 # assumed that no part of a normal pathname contains ";" but that should
11324 # okay in the real world where ";" in dirpaths is itself problematic.
11325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11326 ;;
11327 *)
11328 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11329 ;;
11330 esac
11331 # Ok, now we have the path, separated by spaces, we can step through it
11332 # and add multilib dir if necessary...
11333 lt_tmp_lt_search_path_spec=
11334 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11335 # ...but if some path component already ends with the multilib dir we assume
11336 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11337 case "$lt_multi_os_dir; $lt_search_path_spec " in
11338 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11339 lt_multi_os_dir=
11340 ;;
11341 esac
11342 for lt_sys_path in $lt_search_path_spec; do
11343 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11345 elif test -n "$lt_multi_os_dir"; then
11346 test -d "$lt_sys_path" && \
11347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11348 fi
11349 done
11350 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11351 BEGIN {RS = " "; FS = "/|\n";} {
11352 lt_foo = "";
11353 lt_count = 0;
11354 for (lt_i = NF; lt_i > 0; lt_i--) {
11355 if ($lt_i != "" && $lt_i != ".") {
11356 if ($lt_i == "..") {
11357 lt_count++;
11358 } else {
11359 if (lt_count == 0) {
11360 lt_foo = "/" $lt_i lt_foo;
11361 } else {
11362 lt_count--;
11363 }
11364 }
11365 }
11366 }
11367 if (lt_foo != "") { lt_freq[lt_foo]++; }
11368 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11369 }'`
11370 # AWK program above erroneously prepends '/' to C:/dos/paths
11371 # for these hosts.
11372 case $host_os in
11373 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11374 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11375 esac
11376 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11377 else
11378 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11379 fi
11380 library_names_spec=
11381 libname_spec='lib$name'
11382 soname_spec=
11383 shrext_cmds=.so
11384 postinstall_cmds=
11385 postuninstall_cmds=
11386 finish_cmds=
11387 finish_eval=
11388 shlibpath_var=
11389 shlibpath_overrides_runpath=unknown
11390 version_type=none
11391 dynamic_linker="$host_os ld.so"
11392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11393 need_lib_prefix=unknown
11394 hardcode_into_libs=no
11395
11396 # when you set need_version to no, make sure it does not cause -set_version
11397 # flags to be left without arguments
11398 need_version=unknown
11399
11400
11401
11402 case $host_os in
11403 aix3*)
11404 version_type=linux # correct to gnu/linux during the next big refactor
11405 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11406 shlibpath_var=LIBPATH
11407
11408 # AIX 3 has no versioning support, so we append a major version to the name.
11409 soname_spec='$libname$release$shared_ext$major'
11410 ;;
11411
11412 aix[4-9]*)
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 need_lib_prefix=no
11415 need_version=no
11416 hardcode_into_libs=yes
11417 if test ia64 = "$host_cpu"; then
11418 # AIX 5 supports IA64
11419 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 else
11422 # With GCC up to 2.95.x, collect2 would create an import file
11423 # for dependence libraries. The import file would start with
11424 # the line '#! .'. This would cause the generated library to
11425 # depend on '.', always an invalid library. This was fixed in
11426 # development snapshots of GCC prior to 3.0.
11427 case $host_os in
11428 aix4 | aix4.[01] | aix4.[01].*)
11429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11430 echo ' yes '
11431 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11432 :
11433 else
11434 can_build_shared=no
11435 fi
11436 ;;
11437 esac
11438 # Using Import Files as archive members, it is possible to support
11439 # filename-based versioning of shared library archives on AIX. While
11440 # this would work for both with and without runtime linking, it will
11441 # prevent static linking of such archives. So we do filename-based
11442 # shared library versioning with .so extension only, which is used
11443 # when both runtime linking and shared linking is enabled.
11444 # Unfortunately, runtime linking may impact performance, so we do
11445 # not want this to be the default eventually. Also, we use the
11446 # versioned .so libs for executables only if there is the -brtl
11447 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11448 # To allow for filename-based versioning support, we need to create
11449 # libNAME.so.V as an archive file, containing:
11450 # *) an Import File, referring to the versioned filename of the
11451 # archive as well as the shared archive member, telling the
11452 # bitwidth (32 or 64) of that shared object, and providing the
11453 # list of exported symbols of that shared object, eventually
11454 # decorated with the 'weak' keyword
11455 # *) the shared object with the F_LOADONLY flag set, to really avoid
11456 # it being seen by the linker.
11457 # At run time we better use the real file rather than another symlink,
11458 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11459
11460 case $with_aix_soname,$aix_use_runtimelinking in
11461 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11462 # soname into executable. Probably we can add versioning support to
11463 # collect2, so additional links can be useful in future.
11464 aix,yes) # traditional libtool
11465 dynamic_linker='AIX unversionable lib.so'
11466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11467 # instead of lib<name>.a to let people know that these are not
11468 # typical AIX shared libraries.
11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470 ;;
11471 aix,no) # traditional AIX only
11472 dynamic_linker='AIX lib.a(lib.so.V)'
11473 # We preserve .a as extension for shared libraries through AIX4.2
11474 # and later when we are not doing run time linking.
11475 library_names_spec='$libname$release.a $libname.a'
11476 soname_spec='$libname$release$shared_ext$major'
11477 ;;
11478 svr4,*) # full svr4 only
11479 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11480 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11481 # We do not specify a path in Import Files, so LIBPATH fires.
11482 shlibpath_overrides_runpath=yes
11483 ;;
11484 *,yes) # both, prefer svr4
11485 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11486 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11487 # unpreferred sharedlib libNAME.a needs extra handling
11488 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"'
11489 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"'
11490 # We do not specify a path in Import Files, so LIBPATH fires.
11491 shlibpath_overrides_runpath=yes
11492 ;;
11493 *,no) # both, prefer aix
11494 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11495 library_names_spec='$libname$release.a $libname.a'
11496 soname_spec='$libname$release$shared_ext$major'
11497 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11498 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)'
11499 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"'
11500 ;;
11501 esac
11502 shlibpath_var=LIBPATH
11503 fi
11504 ;;
11505
11506 amigaos*)
11507 case $host_cpu in
11508 powerpc)
11509 # Since July 2007 AmigaOS4 officially supports .so libraries.
11510 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512 ;;
11513 m68k)
11514 library_names_spec='$libname.ixlibrary $libname.a'
11515 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11516 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'
11517 ;;
11518 esac
11519 ;;
11520
11521 beos*)
11522 library_names_spec='$libname$shared_ext'
11523 dynamic_linker="$host_os ld.so"
11524 shlibpath_var=LIBRARY_PATH
11525 ;;
11526
11527 bsdi[45]*)
11528 version_type=linux # correct to gnu/linux during the next big refactor
11529 need_version=no
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 soname_spec='$libname$release$shared_ext$major'
11532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11536 # the default ld.so.conf also contains /usr/contrib/lib and
11537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11538 # libtool to hard-code these into programs
11539 ;;
11540
11541 cygwin* | mingw* | pw32* | cegcc*)
11542 version_type=windows
11543 shrext_cmds=.dll
11544 need_version=no
11545 need_lib_prefix=no
11546
11547 case $GCC,$cc_basename in
11548 yes,*)
11549 # gcc
11550 library_names_spec='$libname.dll.a'
11551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11552 postinstall_cmds='base_file=`basename \$file`~
11553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11554 dldir=$destdir/`dirname \$dlpath`~
11555 test -d \$dldir || mkdir -p \$dldir~
11556 $install_prog $dir/$dlname \$dldir/$dlname~
11557 chmod a+x \$dldir/$dlname~
11558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11560 fi'
11561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11562 dlpath=$dir/\$dldll~
11563 $RM \$dlpath'
11564 shlibpath_overrides_runpath=yes
11565
11566 case $host_os in
11567 cygwin*)
11568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11569 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11570
11571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11572 ;;
11573 mingw* | cegcc*)
11574 # MinGW DLLs use traditional 'lib' prefix
11575 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11576 ;;
11577 pw32*)
11578 # pw32 DLLs use 'pw' prefix rather than 'lib'
11579 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11580 ;;
11581 esac
11582 dynamic_linker='Win32 ld.exe'
11583 ;;
11584
11585 *,cl* | *,icl*)
11586 # Native MSVC or ICC
11587 libname_spec='$name'
11588 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589 library_names_spec='$libname.dll.lib'
11590
11591 case $build_os in
11592 mingw*)
11593 sys_lib_search_path_spec=
11594 lt_save_ifs=$IFS
11595 IFS=';'
11596 for lt_path in $LIB
11597 do
11598 IFS=$lt_save_ifs
11599 # Let DOS variable expansion print the short 8.3 style file name.
11600 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11601 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11602 done
11603 IFS=$lt_save_ifs
11604 # Convert to MSYS style.
11605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11606 ;;
11607 cygwin*)
11608 # Convert to unix form, then to dos form, then back to unix form
11609 # but this time dos style (no spaces!) so that the unix form looks
11610 # like /cygdrive/c/PROGRA~1:/cygdr...
11611 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11612 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11613 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11614 ;;
11615 *)
11616 sys_lib_search_path_spec=$LIB
11617 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11618 # It is most probably a Windows format PATH.
11619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11620 else
11621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11622 fi
11623 # FIXME: find the short name or the path components, as spaces are
11624 # common. (e.g. "Program Files" -> "PROGRA~1")
11625 ;;
11626 esac
11627
11628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11629 postinstall_cmds='base_file=`basename \$file`~
11630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11631 dldir=$destdir/`dirname \$dlpath`~
11632 test -d \$dldir || mkdir -p \$dldir~
11633 $install_prog $dir/$dlname \$dldir/$dlname'
11634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11635 dlpath=$dir/\$dldll~
11636 $RM \$dlpath'
11637 shlibpath_overrides_runpath=yes
11638 dynamic_linker='Win32 link.exe'
11639 ;;
11640
11641 *)
11642 # Assume MSVC and ICC wrapper
11643 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11644 dynamic_linker='Win32 ld.exe'
11645 ;;
11646 esac
11647 # FIXME: first we should search . and the directory the executable is in
11648 shlibpath_var=PATH
11649 ;;
11650
11651 darwin* | rhapsody*)
11652 dynamic_linker="$host_os dyld"
11653 version_type=darwin
11654 need_lib_prefix=no
11655 need_version=no
11656 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11657 soname_spec='$libname$release$major$shared_ext'
11658 shlibpath_overrides_runpath=yes
11659 shlibpath_var=DYLD_LIBRARY_PATH
11660 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11661
11662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11664 ;;
11665
11666 dgux*)
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 need_lib_prefix=no
11669 need_version=no
11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671 soname_spec='$libname$release$shared_ext$major'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 ;;
11674
11675 freebsd* | dragonfly* | midnightbsd*)
11676 # DragonFly does not have aout. When/if they implement a new
11677 # versioning mechanism, adjust this.
11678 if test -x /usr/bin/objformat; then
11679 objformat=`/usr/bin/objformat`
11680 else
11681 case $host_os in
11682 freebsd[23].*) objformat=aout ;;
11683 *) objformat=elf ;;
11684 esac
11685 fi
11686 version_type=freebsd-$objformat
11687 case $version_type in
11688 freebsd-elf*)
11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11690 soname_spec='$libname$release$shared_ext$major'
11691 need_version=no
11692 need_lib_prefix=no
11693 ;;
11694 freebsd-*)
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11696 need_version=yes
11697 ;;
11698 esac
11699 shlibpath_var=LD_LIBRARY_PATH
11700 case $host_os in
11701 freebsd2.*)
11702 shlibpath_overrides_runpath=yes
11703 ;;
11704 freebsd3.[01]* | freebsdelf3.[01]*)
11705 shlibpath_overrides_runpath=yes
11706 hardcode_into_libs=yes
11707 ;;
11708 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11709 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11710 shlibpath_overrides_runpath=no
11711 hardcode_into_libs=yes
11712 ;;
11713 *) # from 4.6 on, and DragonFly
11714 shlibpath_overrides_runpath=yes
11715 hardcode_into_libs=yes
11716 ;;
11717 esac
11718 ;;
11719
11720 haiku*)
11721 version_type=linux # correct to gnu/linux during the next big refactor
11722 need_lib_prefix=no
11723 need_version=no
11724 dynamic_linker="$host_os runtime_loader"
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726 soname_spec='$libname$release$shared_ext$major'
11727 shlibpath_var=LIBRARY_PATH
11728 shlibpath_overrides_runpath=no
11729 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11730 hardcode_into_libs=yes
11731 ;;
11732
11733 hpux9* | hpux10* | hpux11*)
11734 # Give a soname corresponding to the major version so that dld.sl refuses to
11735 # link against other versions.
11736 version_type=sunos
11737 need_lib_prefix=no
11738 need_version=no
11739 case $host_cpu in
11740 ia64*)
11741 shrext_cmds='.so'
11742 hardcode_into_libs=yes
11743 dynamic_linker="$host_os dld.so"
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747 soname_spec='$libname$release$shared_ext$major'
11748 if test 32 = "$HPUX_IA64_MODE"; then
11749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11750 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11751 else
11752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11753 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11754 fi
11755 ;;
11756 hppa*64*)
11757 shrext_cmds='.sl'
11758 hardcode_into_libs=yes
11759 dynamic_linker="$host_os dld.sl"
11760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763 soname_spec='$libname$release$shared_ext$major'
11764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11766 ;;
11767 *)
11768 shrext_cmds='.sl'
11769 dynamic_linker="$host_os dld.sl"
11770 shlibpath_var=SHLIB_PATH
11771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773 soname_spec='$libname$release$shared_ext$major'
11774 ;;
11775 esac
11776 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11777 postinstall_cmds='chmod 555 $lib'
11778 # or fails outright, so override atomically:
11779 install_override_mode=555
11780 ;;
11781
11782 interix[3-9]*)
11783 version_type=linux # correct to gnu/linux during the next big refactor
11784 need_lib_prefix=no
11785 need_version=no
11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11787 soname_spec='$libname$release$shared_ext$major'
11788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 shlibpath_overrides_runpath=no
11791 hardcode_into_libs=yes
11792 ;;
11793
11794 irix5* | irix6* | nonstopux*)
11795 case $host_os in
11796 nonstopux*) version_type=nonstopux ;;
11797 *)
11798 if test yes = "$lt_cv_prog_gnu_ld"; then
11799 version_type=linux # correct to gnu/linux during the next big refactor
11800 else
11801 version_type=irix
11802 fi ;;
11803 esac
11804 need_lib_prefix=no
11805 need_version=no
11806 soname_spec='$libname$release$shared_ext$major'
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11808 case $host_os in
11809 irix5* | nonstopux*)
11810 libsuff= shlibsuff=
11811 ;;
11812 *)
11813 case $LD in # libtool.m4 will add one of these switches to LD
11814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11815 libsuff= shlibsuff= libmagic=32-bit;;
11816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11817 libsuff=32 shlibsuff=N32 libmagic=N32;;
11818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11820 *) libsuff= shlibsuff= libmagic=never-match;;
11821 esac
11822 ;;
11823 esac
11824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11825 shlibpath_overrides_runpath=no
11826 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11827 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11828 hardcode_into_libs=yes
11829 ;;
11830
11831 # No shared lib support for Linux oldld, aout, or coff.
11832 linux*oldld* | linux*aout* | linux*coff*)
11833 dynamic_linker=no
11834 ;;
11835
11836 linux*android*)
11837 version_type=none # Android doesn't support versioned libraries.
11838 need_lib_prefix=no
11839 need_version=no
11840 library_names_spec='$libname$release$shared_ext'
11841 soname_spec='$libname$release$shared_ext'
11842 finish_cmds=
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=yes
11845
11846 # This implies no fast_install, which is unacceptable.
11847 # Some rework will be needed to allow for fast_install
11848 # before this can be enabled.
11849 hardcode_into_libs=yes
11850
11851 dynamic_linker='Android linker'
11852 # Don't embed -rpath directories since the linker doesn't support them.
11853 hardcode_libdir_flag_spec='-L$libdir'
11854 ;;
11855
11856 # This must be glibc/ELF.
11857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11858 version_type=linux # correct to gnu/linux during the next big refactor
11859 need_lib_prefix=no
11860 need_version=no
11861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862 soname_spec='$libname$release$shared_ext$major'
11863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=no
11866
11867 # Some binutils ld are patched to set DT_RUNPATH
11868 if test ${lt_cv_shlibpath_overrides_runpath+y}
11869 then :
11870 printf %s "(cached) " >&6
11871 else $as_nop
11872 lt_cv_shlibpath_overrides_runpath=no
11873 save_LDFLAGS=$LDFLAGS
11874 save_libdir=$libdir
11875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879
11880 int
11881 main (void)
11882 {
11883
11884 ;
11885 return 0;
11886 }
11887 _ACEOF
11888 if ac_fn_c_try_link "$LINENO"
11889 then :
11890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11891 then :
11892 lt_cv_shlibpath_overrides_runpath=yes
11893 fi
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LDFLAGS=$save_LDFLAGS
11898 libdir=$save_libdir
11899
11900 fi
11901
11902 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11903
11904 # This implies no fast_install, which is unacceptable.
11905 # Some rework will be needed to allow for fast_install
11906 # before this can be enabled.
11907 hardcode_into_libs=yes
11908
11909 # Ideally, we could use ldconfig to report *all* directores which are
11910 # searched for libraries, however this is still not possible. Aside from not
11911 # being certain /sbin/ldconfig is available, command
11912 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11913 # even though it is searched at run-time. Try to do the best guess by
11914 # appending ld.so.conf contents (and includes) to the search path.
11915 if test -f /etc/ld.so.conf; then
11916 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' ' '`
11917 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11918 fi
11919
11920 # We used to test for /lib/ld.so.1 and disable shared libraries on
11921 # powerpc, because MkLinux only supported shared libraries with the
11922 # GNU dynamic linker. Since this was broken with cross compilers,
11923 # most powerpc-linux boxes support dynamic linking these days and
11924 # people can always --disable-shared, the test was removed, and we
11925 # assume the GNU/Linux dynamic linker is in use.
11926 dynamic_linker='GNU/Linux ld.so'
11927 ;;
11928
11929 netbsd*)
11930 version_type=sunos
11931 need_lib_prefix=no
11932 need_version=no
11933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11936 dynamic_linker='NetBSD (a.out) ld.so'
11937 else
11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939 soname_spec='$libname$release$shared_ext$major'
11940 dynamic_linker='NetBSD ld.elf_so'
11941 fi
11942 shlibpath_var=LD_LIBRARY_PATH
11943 shlibpath_overrides_runpath=yes
11944 hardcode_into_libs=yes
11945 ;;
11946
11947 newsos6)
11948 version_type=linux # correct to gnu/linux during the next big refactor
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=yes
11952 ;;
11953
11954 *nto* | *qnx*)
11955 version_type=qnx
11956 need_lib_prefix=no
11957 need_version=no
11958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11959 soname_spec='$libname$release$shared_ext$major'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=no
11962 hardcode_into_libs=yes
11963 dynamic_linker='ldqnx.so'
11964 ;;
11965
11966 openbsd* | bitrig*)
11967 version_type=sunos
11968 sys_lib_dlsearch_path_spec=/usr/lib
11969 need_lib_prefix=no
11970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11971 need_version=no
11972 else
11973 need_version=yes
11974 fi
11975 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=yes
11979 ;;
11980
11981 os2*)
11982 libname_spec='$name'
11983 version_type=windows
11984 shrext_cmds=.dll
11985 need_version=no
11986 need_lib_prefix=no
11987 # OS/2 can only load a DLL with a base name of 8 characters or less.
11988 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11989 v=$($ECHO $release$versuffix | tr -d .-);
11990 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11991 $ECHO $n$v`$shared_ext'
11992 library_names_spec='${libname}_dll.$libext'
11993 dynamic_linker='OS/2 ld.exe'
11994 shlibpath_var=BEGINLIBPATH
11995 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11997 postinstall_cmds='base_file=`basename \$file`~
11998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11999 dldir=$destdir/`dirname \$dlpath`~
12000 test -d \$dldir || mkdir -p \$dldir~
12001 $install_prog $dir/$dlname \$dldir/$dlname~
12002 chmod a+x \$dldir/$dlname~
12003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12004 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12005 fi'
12006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12007 dlpath=$dir/\$dldll~
12008 $RM \$dlpath'
12009 ;;
12010
12011 osf3* | osf4* | osf5*)
12012 version_type=osf
12013 need_lib_prefix=no
12014 need_version=no
12015 soname_spec='$libname$release$shared_ext$major'
12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12020 ;;
12021
12022 rdos*)
12023 dynamic_linker=no
12024 ;;
12025
12026 solaris*)
12027 version_type=linux # correct to gnu/linux during the next big refactor
12028 need_lib_prefix=no
12029 need_version=no
12030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031 soname_spec='$libname$release$shared_ext$major'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=yes
12034 hardcode_into_libs=yes
12035 # ldd complains unless libraries are executable
12036 postinstall_cmds='chmod +x $lib'
12037 ;;
12038
12039 sunos4*)
12040 version_type=sunos
12041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12043 shlibpath_var=LD_LIBRARY_PATH
12044 shlibpath_overrides_runpath=yes
12045 if test yes = "$with_gnu_ld"; then
12046 need_lib_prefix=no
12047 fi
12048 need_version=yes
12049 ;;
12050
12051 sysv4 | sysv4.3*)
12052 version_type=linux # correct to gnu/linux during the next big refactor
12053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054 soname_spec='$libname$release$shared_ext$major'
12055 shlibpath_var=LD_LIBRARY_PATH
12056 case $host_vendor in
12057 sni)
12058 shlibpath_overrides_runpath=no
12059 need_lib_prefix=no
12060 runpath_var=LD_RUN_PATH
12061 ;;
12062 siemens)
12063 need_lib_prefix=no
12064 ;;
12065 motorola)
12066 need_lib_prefix=no
12067 need_version=no
12068 shlibpath_overrides_runpath=no
12069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12070 ;;
12071 esac
12072 ;;
12073
12074 sysv4*MP*)
12075 if test -d /usr/nec; then
12076 version_type=linux # correct to gnu/linux during the next big refactor
12077 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12078 soname_spec='$libname$shared_ext.$major'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 fi
12081 ;;
12082
12083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12084 version_type=sco
12085 need_lib_prefix=no
12086 need_version=no
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12088 soname_spec='$libname$release$shared_ext$major'
12089 shlibpath_var=LD_LIBRARY_PATH
12090 shlibpath_overrides_runpath=yes
12091 hardcode_into_libs=yes
12092 if test yes = "$with_gnu_ld"; then
12093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12094 else
12095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12096 case $host_os in
12097 sco3.2v5*)
12098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12099 ;;
12100 esac
12101 fi
12102 sys_lib_dlsearch_path_spec='/usr/lib'
12103 ;;
12104
12105 tpf*)
12106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12107 version_type=linux # correct to gnu/linux during the next big refactor
12108 need_lib_prefix=no
12109 need_version=no
12110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12111 shlibpath_var=LD_LIBRARY_PATH
12112 shlibpath_overrides_runpath=no
12113 hardcode_into_libs=yes
12114 ;;
12115
12116 uts4*)
12117 version_type=linux # correct to gnu/linux during the next big refactor
12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119 soname_spec='$libname$release$shared_ext$major'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 ;;
12122
12123 *)
12124 dynamic_linker=no
12125 ;;
12126 esac
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12128 printf "%s\n" "$dynamic_linker" >&6; }
12129 test no = "$dynamic_linker" && can_build_shared=no
12130
12131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12132 if test yes = "$GCC"; then
12133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12134 fi
12135
12136 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12137 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12138 fi
12139
12140 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12141 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12142 fi
12143
12144 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12145 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12146
12147 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12148 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12149
12150 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12151 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12250 printf %s "checking how to hardcode library paths into programs... " >&6; }
12251 hardcode_action=
12252 if test -n "$hardcode_libdir_flag_spec" ||
12253 test -n "$runpath_var" ||
12254 test yes = "$hardcode_automatic"; then
12255
12256 # We can hardcode non-existent directories.
12257 if test no != "$hardcode_direct" &&
12258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12259 # have to relink, otherwise we might link with an installed library
12260 # when we should be linking with a yet-to-be-installed one
12261 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12262 test no != "$hardcode_minus_L"; then
12263 # Linking always hardcodes the temporary library directory.
12264 hardcode_action=relink
12265 else
12266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12267 hardcode_action=immediate
12268 fi
12269 else
12270 # We cannot hardcode anything, or else we can only hardcode existing
12271 # directories.
12272 hardcode_action=unsupported
12273 fi
12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12275 printf "%s\n" "$hardcode_action" >&6; }
12276
12277 if test relink = "$hardcode_action" ||
12278 test yes = "$inherit_rpath"; then
12279 # Fast installation is not supported
12280 enable_fast_install=no
12281 elif test yes = "$shlibpath_overrides_runpath" ||
12282 test no = "$enable_shared"; then
12283 # Fast installation is not necessary
12284 enable_fast_install=needless
12285 fi
12286
12287
12288
12289
12290
12291
12292 if test yes != "$enable_dlopen"; then
12293 enable_dlopen=unknown
12294 enable_dlopen_self=unknown
12295 enable_dlopen_self_static=unknown
12296 else
12297 lt_cv_dlopen=no
12298 lt_cv_dlopen_libs=
12299
12300 case $host_os in
12301 beos*)
12302 lt_cv_dlopen=load_add_on
12303 lt_cv_dlopen_libs=
12304 lt_cv_dlopen_self=yes
12305 ;;
12306
12307 mingw* | pw32* | cegcc*)
12308 lt_cv_dlopen=LoadLibrary
12309 lt_cv_dlopen_libs=
12310 ;;
12311
12312 cygwin*)
12313 lt_cv_dlopen=dlopen
12314 lt_cv_dlopen_libs=
12315 ;;
12316
12317 darwin*)
12318 # if libdl is installed we need to link against it
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12320 printf %s "checking for dlopen in -ldl... " >&6; }
12321 if test ${ac_cv_lib_dl_dlopen+y}
12322 then :
12323 printf %s "(cached) " >&6
12324 else $as_nop
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-ldl $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333 char dlopen ();
12334 int
12335 main (void)
12336 {
12337 return dlopen ();
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"
12343 then :
12344 ac_cv_lib_dl_dlopen=yes
12345 else $as_nop
12346 ac_cv_lib_dl_dlopen=no
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12353 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12354 if test "x$ac_cv_lib_dl_dlopen" = xyes
12355 then :
12356 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12357 else $as_nop
12358
12359 lt_cv_dlopen=dyld
12360 lt_cv_dlopen_libs=
12361 lt_cv_dlopen_self=yes
12362
12363 fi
12364
12365 ;;
12366
12367 tpf*)
12368 # Don't try to run any link tests for TPF. We know it's impossible
12369 # because TPF is a cross-compiler, and we know how we open DSOs.
12370 lt_cv_dlopen=dlopen
12371 lt_cv_dlopen_libs=
12372 lt_cv_dlopen_self=no
12373 ;;
12374
12375 *)
12376 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12377 if test "x$ac_cv_func_shl_load" = xyes
12378 then :
12379 lt_cv_dlopen=shl_load
12380 else $as_nop
12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12382 printf %s "checking for shl_load in -ldld... " >&6; }
12383 if test ${ac_cv_lib_dld_shl_load+y}
12384 then :
12385 printf %s "(cached) " >&6
12386 else $as_nop
12387 ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-ldld $LIBS"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12391
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12395 char shl_load ();
12396 int
12397 main (void)
12398 {
12399 return shl_load ();
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"
12405 then :
12406 ac_cv_lib_dld_shl_load=yes
12407 else $as_nop
12408 ac_cv_lib_dld_shl_load=no
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12413 fi
12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12415 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12416 if test "x$ac_cv_lib_dld_shl_load" = xyes
12417 then :
12418 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12419 else $as_nop
12420 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12421 if test "x$ac_cv_func_dlopen" = xyes
12422 then :
12423 lt_cv_dlopen=dlopen
12424 else $as_nop
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12426 printf %s "checking for dlopen in -ldl... " >&6; }
12427 if test ${ac_cv_lib_dl_dlopen+y}
12428 then :
12429 printf %s "(cached) " >&6
12430 else $as_nop
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ldl $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12439 char dlopen ();
12440 int
12441 main (void)
12442 {
12443 return dlopen ();
12444 ;
12445 return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"
12449 then :
12450 ac_cv_lib_dl_dlopen=yes
12451 else $as_nop
12452 ac_cv_lib_dl_dlopen=no
12453 fi
12454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12455 conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12457 fi
12458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12459 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12460 if test "x$ac_cv_lib_dl_dlopen" = xyes
12461 then :
12462 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12463 else $as_nop
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12465 printf %s "checking for dlopen in -lsvld... " >&6; }
12466 if test ${ac_cv_lib_svld_dlopen+y}
12467 then :
12468 printf %s "(cached) " >&6
12469 else $as_nop
12470 ac_check_lib_save_LIBS=$LIBS
12471 LIBS="-lsvld $LIBS"
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 char dlopen ();
12479 int
12480 main (void)
12481 {
12482 return dlopen ();
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"
12488 then :
12489 ac_cv_lib_svld_dlopen=yes
12490 else $as_nop
12491 ac_cv_lib_svld_dlopen=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12494 conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_lib_save_LIBS
12496 fi
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12498 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12499 if test "x$ac_cv_lib_svld_dlopen" = xyes
12500 then :
12501 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12502 else $as_nop
12503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12504 printf %s "checking for dld_link in -ldld... " >&6; }
12505 if test ${ac_cv_lib_dld_dld_link+y}
12506 then :
12507 printf %s "(cached) " >&6
12508 else $as_nop
12509 ac_check_lib_save_LIBS=$LIBS
12510 LIBS="-ldld $LIBS"
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513
12514 /* Override any GCC internal prototype to avoid an error.
12515 Use char because int might match the return type of a GCC
12516 builtin and then its argument prototype would still apply. */
12517 char dld_link ();
12518 int
12519 main (void)
12520 {
12521 return dld_link ();
12522 ;
12523 return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_c_try_link "$LINENO"
12527 then :
12528 ac_cv_lib_dld_dld_link=yes
12529 else $as_nop
12530 ac_cv_lib_dld_dld_link=no
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12535 fi
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12537 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12538 if test "x$ac_cv_lib_dld_dld_link" = xyes
12539 then :
12540 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12541 fi
12542
12543
12544 fi
12545
12546
12547 fi
12548
12549
12550 fi
12551
12552
12553 fi
12554
12555
12556 fi
12557
12558 ;;
12559 esac
12560
12561 if test no = "$lt_cv_dlopen"; then
12562 enable_dlopen=no
12563 else
12564 enable_dlopen=yes
12565 fi
12566
12567 case $lt_cv_dlopen in
12568 dlopen)
12569 save_CPPFLAGS=$CPPFLAGS
12570 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12571
12572 save_LDFLAGS=$LDFLAGS
12573 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12574
12575 save_LIBS=$LIBS
12576 LIBS="$lt_cv_dlopen_libs $LIBS"
12577
12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12579 printf %s "checking whether a program can dlopen itself... " >&6; }
12580 if test ${lt_cv_dlopen_self+y}
12581 then :
12582 printf %s "(cached) " >&6
12583 else $as_nop
12584 if test yes = "$cross_compiling"; then :
12585 lt_cv_dlopen_self=cross
12586 else
12587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12588 lt_status=$lt_dlunknown
12589 cat > conftest.$ac_ext <<_LT_EOF
12590 #line $LINENO "configure"
12591 #include "confdefs.h"
12592
12593 #if HAVE_DLFCN_H
12594 #include <dlfcn.h>
12595 #endif
12596
12597 #include <stdio.h>
12598
12599 #ifdef RTLD_GLOBAL
12600 # define LT_DLGLOBAL RTLD_GLOBAL
12601 #else
12602 # ifdef DL_GLOBAL
12603 # define LT_DLGLOBAL DL_GLOBAL
12604 # else
12605 # define LT_DLGLOBAL 0
12606 # endif
12607 #endif
12608
12609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12610 find out it does not work in some platform. */
12611 #ifndef LT_DLLAZY_OR_NOW
12612 # ifdef RTLD_LAZY
12613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12614 # else
12615 # ifdef DL_LAZY
12616 # define LT_DLLAZY_OR_NOW DL_LAZY
12617 # else
12618 # ifdef RTLD_NOW
12619 # define LT_DLLAZY_OR_NOW RTLD_NOW
12620 # else
12621 # ifdef DL_NOW
12622 # define LT_DLLAZY_OR_NOW DL_NOW
12623 # else
12624 # define LT_DLLAZY_OR_NOW 0
12625 # endif
12626 # endif
12627 # endif
12628 # endif
12629 #endif
12630
12631 /* When -fvisibility=hidden is used, assume the code has been annotated
12632 correspondingly for the symbols needed. */
12633 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12634 int fnord () __attribute__((visibility("default")));
12635 #endif
12636
12637 int fnord () { return 42; }
12638 int main ()
12639 {
12640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12641 int status = $lt_dlunknown;
12642
12643 if (self)
12644 {
12645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12646 else
12647 {
12648 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12649 else puts (dlerror ());
12650 }
12651 /* dlclose (self); */
12652 }
12653 else
12654 puts (dlerror ());
12655
12656 return status;
12657 }
12658 _LT_EOF
12659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12660 (eval $ac_link) 2>&5
12661 ac_status=$?
12662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12663 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12664 (./conftest; exit; ) >&5 2>/dev/null
12665 lt_status=$?
12666 case x$lt_status in
12667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12669 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12670 esac
12671 else :
12672 # compilation failed
12673 lt_cv_dlopen_self=no
12674 fi
12675 fi
12676 rm -fr conftest*
12677
12678
12679 fi
12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12681 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12682
12683 if test yes = "$lt_cv_dlopen_self"; then
12684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12686 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12687 if test ${lt_cv_dlopen_self_static+y}
12688 then :
12689 printf %s "(cached) " >&6
12690 else $as_nop
12691 if test yes = "$cross_compiling"; then :
12692 lt_cv_dlopen_self_static=cross
12693 else
12694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12695 lt_status=$lt_dlunknown
12696 cat > conftest.$ac_ext <<_LT_EOF
12697 #line $LINENO "configure"
12698 #include "confdefs.h"
12699
12700 #if HAVE_DLFCN_H
12701 #include <dlfcn.h>
12702 #endif
12703
12704 #include <stdio.h>
12705
12706 #ifdef RTLD_GLOBAL
12707 # define LT_DLGLOBAL RTLD_GLOBAL
12708 #else
12709 # ifdef DL_GLOBAL
12710 # define LT_DLGLOBAL DL_GLOBAL
12711 # else
12712 # define LT_DLGLOBAL 0
12713 # endif
12714 #endif
12715
12716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12717 find out it does not work in some platform. */
12718 #ifndef LT_DLLAZY_OR_NOW
12719 # ifdef RTLD_LAZY
12720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12721 # else
12722 # ifdef DL_LAZY
12723 # define LT_DLLAZY_OR_NOW DL_LAZY
12724 # else
12725 # ifdef RTLD_NOW
12726 # define LT_DLLAZY_OR_NOW RTLD_NOW
12727 # else
12728 # ifdef DL_NOW
12729 # define LT_DLLAZY_OR_NOW DL_NOW
12730 # else
12731 # define LT_DLLAZY_OR_NOW 0
12732 # endif
12733 # endif
12734 # endif
12735 # endif
12736 #endif
12737
12738 /* When -fvisibility=hidden is used, assume the code has been annotated
12739 correspondingly for the symbols needed. */
12740 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12741 int fnord () __attribute__((visibility("default")));
12742 #endif
12743
12744 int fnord () { return 42; }
12745 int main ()
12746 {
12747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12748 int status = $lt_dlunknown;
12749
12750 if (self)
12751 {
12752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12753 else
12754 {
12755 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12756 else puts (dlerror ());
12757 }
12758 /* dlclose (self); */
12759 }
12760 else
12761 puts (dlerror ());
12762
12763 return status;
12764 }
12765 _LT_EOF
12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12767 (eval $ac_link) 2>&5
12768 ac_status=$?
12769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12771 (./conftest; exit; ) >&5 2>/dev/null
12772 lt_status=$?
12773 case x$lt_status in
12774 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12775 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12776 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12777 esac
12778 else :
12779 # compilation failed
12780 lt_cv_dlopen_self_static=no
12781 fi
12782 fi
12783 rm -fr conftest*
12784
12785
12786 fi
12787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12788 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12789 fi
12790
12791 CPPFLAGS=$save_CPPFLAGS
12792 LDFLAGS=$save_LDFLAGS
12793 LIBS=$save_LIBS
12794 ;;
12795 esac
12796
12797 case $lt_cv_dlopen_self in
12798 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12799 *) enable_dlopen_self=unknown ;;
12800 esac
12801
12802 case $lt_cv_dlopen_self_static in
12803 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12804 *) enable_dlopen_self_static=unknown ;;
12805 esac
12806 fi
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824 striplib=
12825 old_striplib=
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12827 printf %s "checking whether stripping libraries is possible... " >&6; }
12828 if test -z "$STRIP"; then
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 printf "%s\n" "no" >&6; }
12831 else
12832 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12833 old_striplib="$STRIP --strip-debug"
12834 striplib="$STRIP --strip-unneeded"
12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836 printf "%s\n" "yes" >&6; }
12837 else
12838 case $host_os in
12839 darwin*)
12840 # FIXME - insert some real tests, host_os isn't really good enough
12841 striplib="$STRIP -x"
12842 old_striplib="$STRIP -S"
12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844 printf "%s\n" "yes" >&6; }
12845 ;;
12846 freebsd*)
12847 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12848 old_striplib="$STRIP --strip-debug"
12849 striplib="$STRIP --strip-unneeded"
12850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12851 printf "%s\n" "yes" >&6; }
12852 else
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 printf "%s\n" "no" >&6; }
12855 fi
12856 ;;
12857 *)
12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 printf "%s\n" "no" >&6; }
12860 ;;
12861 esac
12862 fi
12863 fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876 # Report what library types will actually be built
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12878 printf %s "checking if libtool supports shared libraries... " >&6; }
12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12880 printf "%s\n" "$can_build_shared" >&6; }
12881
12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12883 printf %s "checking whether to build shared libraries... " >&6; }
12884 test no = "$can_build_shared" && enable_shared=no
12885
12886 # On AIX, shared libraries and static libraries use the same namespace, and
12887 # are all built from PIC.
12888 case $host_os in
12889 aix3*)
12890 test yes = "$enable_shared" && enable_static=no
12891 if test -n "$RANLIB"; then
12892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12893 postinstall_cmds='$RANLIB $lib'
12894 fi
12895 ;;
12896
12897 aix[4-9]*)
12898 if test ia64 != "$host_cpu"; then
12899 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12900 yes,aix,yes) ;; # shared object as lib.so file only
12901 yes,svr4,*) ;; # shared object as lib.so archive member only
12902 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12903 esac
12904 fi
12905 ;;
12906 esac
12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12908 printf "%s\n" "$enable_shared" >&6; }
12909
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12911 printf %s "checking whether to build static libraries... " >&6; }
12912 # Make sure either enable_shared or enable_static is yes.
12913 test yes = "$enable_shared" || enable_static=yes
12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12915 printf "%s\n" "$enable_static" >&6; }
12916
12917
12918
12919
12920 fi
12921 ac_ext=c
12922 ac_cpp='$CPP $CPPFLAGS'
12923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12926
12927 CC=$lt_save_CC
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943 ac_config_commands="$ac_config_commands libtool"
12944
12945
12946
12947
12948 # Only expand once:
12949
12950
12951
12952 # Require xorg-macros minimum of 1.12 for DocBook external references
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12966 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12967 if test ${ac_cv_c_undeclared_builtin_options+y}
12968 then :
12969 printf %s "(cached) " >&6
12970 else $as_nop
12971 ac_save_CFLAGS=$CFLAGS
12972 ac_cv_c_undeclared_builtin_options='cannot detect'
12973 for ac_arg in '' -fno-builtin; do
12974 CFLAGS="$ac_save_CFLAGS $ac_arg"
12975 # This test program should *not* compile successfully.
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12978
12979 int
12980 main (void)
12981 {
12982 (void) strchr;
12983 ;
12984 return 0;
12985 }
12986 _ACEOF
12987 if ac_fn_c_try_compile "$LINENO"
12988 then :
12989
12990 else $as_nop
12991 # This test program should compile successfully.
12992 # No library function is consistently available on
12993 # freestanding implementations, so test against a dummy
12994 # declaration. Include always-available headers on the
12995 # off chance that they somehow elicit warnings.
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <float.h>
12999 #include <limits.h>
13000 #include <stdarg.h>
13001 #include <stddef.h>
13002 extern void ac_decl (int, char *);
13003
13004 int
13005 main (void)
13006 {
13007 (void) ac_decl (0, (char *) 0);
13008 (void) ac_decl;
13009
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"
13015 then :
13016 if test x"$ac_arg" = x
13017 then :
13018 ac_cv_c_undeclared_builtin_options='none needed'
13019 else $as_nop
13020 ac_cv_c_undeclared_builtin_options=$ac_arg
13021 fi
13022 break
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13025 fi
13026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13027 done
13028 CFLAGS=$ac_save_CFLAGS
13029
13030 fi
13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13032 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13033 case $ac_cv_c_undeclared_builtin_options in #(
13034 'cannot detect') :
13035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13036 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13037 as_fn_error $? "cannot make $CC report undeclared builtins
13038 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13039 'none needed') :
13040 ac_c_undeclared_builtin_options='' ;; #(
13041 *) :
13042 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13043 esac
13044
13045
13046
13047
13048
13049 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13050 if test "x$ac_cv_have_decl___clang__" = xyes
13051 then :
13052 CLANGCC="yes"
13053 else $as_nop
13054 CLANGCC="no"
13055 fi
13056 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13057 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13058 then :
13059 INTELCC="yes"
13060 else $as_nop
13061 INTELCC="no"
13062 fi
13063 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13064 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13065 then :
13066 SUNCC="yes"
13067 else $as_nop
13068 SUNCC="no"
13069 fi
13070
13071
13072
13073
13074
13075
13076
13077
13078 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13079 if test -n "$ac_tool_prefix"; then
13080 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13081 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083 printf %s "checking for $ac_word... " >&6; }
13084 if test ${ac_cv_path_PKG_CONFIG+y}
13085 then :
13086 printf %s "(cached) " >&6
13087 else $as_nop
13088 case $PKG_CONFIG in
13089 [\\/]* | ?:[\\/]*)
13090 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13091 ;;
13092 *)
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13095 do
13096 IFS=$as_save_IFS
13097 case $as_dir in #(((
13098 '') as_dir=./ ;;
13099 */) ;;
13100 *) as_dir=$as_dir/ ;;
13101 esac
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13104 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13106 break 2
13107 fi
13108 done
13109 done
13110 IFS=$as_save_IFS
13111
13112 ;;
13113 esac
13114 fi
13115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13116 if test -n "$PKG_CONFIG"; then
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13118 printf "%s\n" "$PKG_CONFIG" >&6; }
13119 else
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 printf "%s\n" "no" >&6; }
13122 fi
13123
13124
13125 fi
13126 if test -z "$ac_cv_path_PKG_CONFIG"; then
13127 ac_pt_PKG_CONFIG=$PKG_CONFIG
13128 # Extract the first word of "pkg-config", so it can be a program name with args.
13129 set dummy pkg-config; ac_word=$2
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 printf %s "checking for $ac_word... " >&6; }
13132 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13133 then :
13134 printf %s "(cached) " >&6
13135 else $as_nop
13136 case $ac_pt_PKG_CONFIG in
13137 [\\/]* | ?:[\\/]*)
13138 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13139 ;;
13140 *)
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13143 do
13144 IFS=$as_save_IFS
13145 case $as_dir in #(((
13146 '') as_dir=./ ;;
13147 */) ;;
13148 *) as_dir=$as_dir/ ;;
13149 esac
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13152 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13154 break 2
13155 fi
13156 done
13157 done
13158 IFS=$as_save_IFS
13159
13160 ;;
13161 esac
13162 fi
13163 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13164 if test -n "$ac_pt_PKG_CONFIG"; then
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13166 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13167 else
13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 printf "%s\n" "no" >&6; }
13170 fi
13171
13172 if test "x$ac_pt_PKG_CONFIG" = x; then
13173 PKG_CONFIG=""
13174 else
13175 case $cross_compiling:$ac_tool_warned in
13176 yes:)
13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13179 ac_tool_warned=yes ;;
13180 esac
13181 PKG_CONFIG=$ac_pt_PKG_CONFIG
13182 fi
13183 else
13184 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13185 fi
13186
13187 fi
13188 if test -n "$PKG_CONFIG"; then
13189 _pkg_min_version=0.9.0
13190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13191 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13192 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13194 printf "%s\n" "yes" >&6; }
13195 else
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 printf "%s\n" "no" >&6; }
13198 PKG_CONFIG=""
13199 fi
13200 fi
13201
13202
13203
13204
13205
13206 # Check whether --enable-selective-werror was given.
13207 if test ${enable_selective_werror+y}
13208 then :
13209 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13210 else $as_nop
13211 SELECTIVE_WERROR=yes
13212 fi
13213
13214
13215
13216
13217
13218 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13219 if test "x$SUNCC" = "xyes"; then
13220 BASE_CFLAGS="-v"
13221 else
13222 BASE_CFLAGS=""
13223 fi
13224
13225 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239 xorg_testset_save_CFLAGS="$CFLAGS"
13240
13241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13246 then :
13247 printf %s "(cached) " >&6
13248 else $as_nop
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 int i;
13252 _ACEOF
13253 if ac_fn_c_try_compile "$LINENO"
13254 then :
13255 xorg_cv_cc_flag_unknown_warning_option=yes
13256 else $as_nop
13257 xorg_cv_cc_flag_unknown_warning_option=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13260 fi
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13262 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13264 CFLAGS="$xorg_testset_save_CFLAGS"
13265 fi
13266
13267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13270 fi
13271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13273 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13274 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13275 then :
13276 printf %s "(cached) " >&6
13277 else $as_nop
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 int i;
13281 _ACEOF
13282 if ac_fn_c_try_compile "$LINENO"
13283 then :
13284 xorg_cv_cc_flag_unused_command_line_argument=yes
13285 else $as_nop
13286 xorg_cv_cc_flag_unused_command_line_argument=no
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13289 fi
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13291 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13293 CFLAGS="$xorg_testset_save_CFLAGS"
13294 fi
13295
13296 found="no"
13297
13298 if test $found = "no" ; then
13299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13301 fi
13302
13303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13305 fi
13306
13307 CFLAGS="$CFLAGS -Wall"
13308
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13310 printf %s "checking if $CC supports -Wall... " >&6; }
13311 cacheid=xorg_cv_cc_flag__Wall
13312 if eval test \${$cacheid+y}
13313 then :
13314 printf %s "(cached) " >&6
13315 else $as_nop
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 int i;
13319 int
13320 main (void)
13321 {
13322
13323 ;
13324 return 0;
13325 }
13326 _ACEOF
13327 if ac_fn_c_try_link "$LINENO"
13328 then :
13329 eval $cacheid=yes
13330 else $as_nop
13331 eval $cacheid=no
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13334 conftest$ac_exeext conftest.$ac_ext
13335 fi
13336
13337
13338 CFLAGS="$xorg_testset_save_CFLAGS"
13339
13340 eval supported=\$$cacheid
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13342 printf "%s\n" "$supported" >&6; }
13343 if test "$supported" = "yes" ; then
13344 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13345 found="yes"
13346 fi
13347 fi
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363 xorg_testset_save_CFLAGS="$CFLAGS"
13364
13365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13368 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13369 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13370 then :
13371 printf %s "(cached) " >&6
13372 else $as_nop
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 int i;
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"
13378 then :
13379 xorg_cv_cc_flag_unknown_warning_option=yes
13380 else $as_nop
13381 xorg_cv_cc_flag_unknown_warning_option=no
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13384 fi
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13386 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13388 CFLAGS="$xorg_testset_save_CFLAGS"
13389 fi
13390
13391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394 fi
13395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13397 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13398 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13399 then :
13400 printf %s "(cached) " >&6
13401 else $as_nop
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 int i;
13405 _ACEOF
13406 if ac_fn_c_try_compile "$LINENO"
13407 then :
13408 xorg_cv_cc_flag_unused_command_line_argument=yes
13409 else $as_nop
13410 xorg_cv_cc_flag_unused_command_line_argument=no
13411 fi
13412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13413 fi
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13415 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13417 CFLAGS="$xorg_testset_save_CFLAGS"
13418 fi
13419
13420 found="no"
13421
13422 if test $found = "no" ; then
13423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13425 fi
13426
13427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13429 fi
13430
13431 CFLAGS="$CFLAGS -Wpointer-arith"
13432
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13434 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13435 cacheid=xorg_cv_cc_flag__Wpointer_arith
13436 if eval test \${$cacheid+y}
13437 then :
13438 printf %s "(cached) " >&6
13439 else $as_nop
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 int i;
13443 int
13444 main (void)
13445 {
13446
13447 ;
13448 return 0;
13449 }
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"
13452 then :
13453 eval $cacheid=yes
13454 else $as_nop
13455 eval $cacheid=no
13456 fi
13457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13458 conftest$ac_exeext conftest.$ac_ext
13459 fi
13460
13461
13462 CFLAGS="$xorg_testset_save_CFLAGS"
13463
13464 eval supported=\$$cacheid
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13466 printf "%s\n" "$supported" >&6; }
13467 if test "$supported" = "yes" ; then
13468 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13469 found="yes"
13470 fi
13471 fi
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487 xorg_testset_save_CFLAGS="$CFLAGS"
13488
13489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13492 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13493 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13494 then :
13495 printf %s "(cached) " >&6
13496 else $as_nop
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 int i;
13500 _ACEOF
13501 if ac_fn_c_try_compile "$LINENO"
13502 then :
13503 xorg_cv_cc_flag_unknown_warning_option=yes
13504 else $as_nop
13505 xorg_cv_cc_flag_unknown_warning_option=no
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13508 fi
13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13510 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13512 CFLAGS="$xorg_testset_save_CFLAGS"
13513 fi
13514
13515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13518 fi
13519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13521 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13522 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13523 then :
13524 printf %s "(cached) " >&6
13525 else $as_nop
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 int i;
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"
13531 then :
13532 xorg_cv_cc_flag_unused_command_line_argument=yes
13533 else $as_nop
13534 xorg_cv_cc_flag_unused_command_line_argument=no
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13537 fi
13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13539 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13541 CFLAGS="$xorg_testset_save_CFLAGS"
13542 fi
13543
13544 found="no"
13545
13546 if test $found = "no" ; then
13547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13549 fi
13550
13551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13553 fi
13554
13555 CFLAGS="$CFLAGS -Wmissing-declarations"
13556
13557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13558 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13559 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13560 if eval test \${$cacheid+y}
13561 then :
13562 printf %s "(cached) " >&6
13563 else $as_nop
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 int i;
13567 int
13568 main (void)
13569 {
13570
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 if ac_fn_c_try_link "$LINENO"
13576 then :
13577 eval $cacheid=yes
13578 else $as_nop
13579 eval $cacheid=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13582 conftest$ac_exeext conftest.$ac_ext
13583 fi
13584
13585
13586 CFLAGS="$xorg_testset_save_CFLAGS"
13587
13588 eval supported=\$$cacheid
13589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13590 printf "%s\n" "$supported" >&6; }
13591 if test "$supported" = "yes" ; then
13592 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13593 found="yes"
13594 fi
13595 fi
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611 xorg_testset_save_CFLAGS="$CFLAGS"
13612
13613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13617 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13618 then :
13619 printf %s "(cached) " >&6
13620 else $as_nop
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 int i;
13624 _ACEOF
13625 if ac_fn_c_try_compile "$LINENO"
13626 then :
13627 xorg_cv_cc_flag_unknown_warning_option=yes
13628 else $as_nop
13629 xorg_cv_cc_flag_unknown_warning_option=no
13630 fi
13631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13632 fi
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13634 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13636 CFLAGS="$xorg_testset_save_CFLAGS"
13637 fi
13638
13639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13642 fi
13643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13645 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13646 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13647 then :
13648 printf %s "(cached) " >&6
13649 else $as_nop
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 int i;
13653 _ACEOF
13654 if ac_fn_c_try_compile "$LINENO"
13655 then :
13656 xorg_cv_cc_flag_unused_command_line_argument=yes
13657 else $as_nop
13658 xorg_cv_cc_flag_unused_command_line_argument=no
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13661 fi
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13663 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13665 CFLAGS="$xorg_testset_save_CFLAGS"
13666 fi
13667
13668 found="no"
13669
13670 if test $found = "no" ; then
13671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13673 fi
13674
13675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13677 fi
13678
13679 CFLAGS="$CFLAGS -Wformat=2"
13680
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13682 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13683 cacheid=xorg_cv_cc_flag__Wformat_2
13684 if eval test \${$cacheid+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 int
13692 main (void)
13693 {
13694
13695 ;
13696 return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"
13700 then :
13701 eval $cacheid=yes
13702 else $as_nop
13703 eval $cacheid=no
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13706 conftest$ac_exeext conftest.$ac_ext
13707 fi
13708
13709
13710 CFLAGS="$xorg_testset_save_CFLAGS"
13711
13712 eval supported=\$$cacheid
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13714 printf "%s\n" "$supported" >&6; }
13715 if test "$supported" = "yes" ; then
13716 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13717 found="yes"
13718 fi
13719 fi
13720
13721 if test $found = "no" ; then
13722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13724 fi
13725
13726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13728 fi
13729
13730 CFLAGS="$CFLAGS -Wformat"
13731
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13733 printf %s "checking if $CC supports -Wformat... " >&6; }
13734 cacheid=xorg_cv_cc_flag__Wformat
13735 if eval test \${$cacheid+y}
13736 then :
13737 printf %s "(cached) " >&6
13738 else $as_nop
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 int i;
13742 int
13743 main (void)
13744 {
13745
13746 ;
13747 return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"
13751 then :
13752 eval $cacheid=yes
13753 else $as_nop
13754 eval $cacheid=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13757 conftest$ac_exeext conftest.$ac_ext
13758 fi
13759
13760
13761 CFLAGS="$xorg_testset_save_CFLAGS"
13762
13763 eval supported=\$$cacheid
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13765 printf "%s\n" "$supported" >&6; }
13766 if test "$supported" = "yes" ; then
13767 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13768 found="yes"
13769 fi
13770 fi
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788 xorg_testset_save_CFLAGS="$CFLAGS"
13789
13790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13794 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13795 then :
13796 printf %s "(cached) " >&6
13797 else $as_nop
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 int i;
13801 _ACEOF
13802 if ac_fn_c_try_compile "$LINENO"
13803 then :
13804 xorg_cv_cc_flag_unknown_warning_option=yes
13805 else $as_nop
13806 xorg_cv_cc_flag_unknown_warning_option=no
13807 fi
13808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13809 fi
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13813 CFLAGS="$xorg_testset_save_CFLAGS"
13814 fi
13815
13816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819 fi
13820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13824 then :
13825 printf %s "(cached) " >&6
13826 else $as_nop
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13829 int i;
13830 _ACEOF
13831 if ac_fn_c_try_compile "$LINENO"
13832 then :
13833 xorg_cv_cc_flag_unused_command_line_argument=yes
13834 else $as_nop
13835 xorg_cv_cc_flag_unused_command_line_argument=no
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13838 fi
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13840 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13842 CFLAGS="$xorg_testset_save_CFLAGS"
13843 fi
13844
13845 found="no"
13846
13847 if test $found = "no" ; then
13848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13850 fi
13851
13852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13854 fi
13855
13856 CFLAGS="$CFLAGS -Wstrict-prototypes"
13857
13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13859 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13860 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13861 if eval test \${$cacheid+y}
13862 then :
13863 printf %s "(cached) " >&6
13864 else $as_nop
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 int i;
13868 int
13869 main (void)
13870 {
13871
13872 ;
13873 return 0;
13874 }
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"
13877 then :
13878 eval $cacheid=yes
13879 else $as_nop
13880 eval $cacheid=no
13881 fi
13882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13883 conftest$ac_exeext conftest.$ac_ext
13884 fi
13885
13886
13887 CFLAGS="$xorg_testset_save_CFLAGS"
13888
13889 eval supported=\$$cacheid
13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13891 printf "%s\n" "$supported" >&6; }
13892 if test "$supported" = "yes" ; then
13893 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13894 found="yes"
13895 fi
13896 fi
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912 xorg_testset_save_CFLAGS="$CFLAGS"
13913
13914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13918 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13919 then :
13920 printf %s "(cached) " >&6
13921 else $as_nop
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 int i;
13925 _ACEOF
13926 if ac_fn_c_try_compile "$LINENO"
13927 then :
13928 xorg_cv_cc_flag_unknown_warning_option=yes
13929 else $as_nop
13930 xorg_cv_cc_flag_unknown_warning_option=no
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13933 fi
13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13935 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13937 CFLAGS="$xorg_testset_save_CFLAGS"
13938 fi
13939
13940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943 fi
13944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13946 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13947 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13948 then :
13949 printf %s "(cached) " >&6
13950 else $as_nop
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13953 int i;
13954 _ACEOF
13955 if ac_fn_c_try_compile "$LINENO"
13956 then :
13957 xorg_cv_cc_flag_unused_command_line_argument=yes
13958 else $as_nop
13959 xorg_cv_cc_flag_unused_command_line_argument=no
13960 fi
13961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13962 fi
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13964 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13966 CFLAGS="$xorg_testset_save_CFLAGS"
13967 fi
13968
13969 found="no"
13970
13971 if test $found = "no" ; then
13972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13974 fi
13975
13976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13978 fi
13979
13980 CFLAGS="$CFLAGS -Wmissing-prototypes"
13981
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13983 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13984 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13985 if eval test \${$cacheid+y}
13986 then :
13987 printf %s "(cached) " >&6
13988 else $as_nop
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 int i;
13992 int
13993 main (void)
13994 {
13995
13996 ;
13997 return 0;
13998 }
13999 _ACEOF
14000 if ac_fn_c_try_link "$LINENO"
14001 then :
14002 eval $cacheid=yes
14003 else $as_nop
14004 eval $cacheid=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14007 conftest$ac_exeext conftest.$ac_ext
14008 fi
14009
14010
14011 CFLAGS="$xorg_testset_save_CFLAGS"
14012
14013 eval supported=\$$cacheid
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14015 printf "%s\n" "$supported" >&6; }
14016 if test "$supported" = "yes" ; then
14017 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14018 found="yes"
14019 fi
14020 fi
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036 xorg_testset_save_CFLAGS="$CFLAGS"
14037
14038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14041 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14042 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14043 then :
14044 printf %s "(cached) " >&6
14045 else $as_nop
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 int i;
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"
14051 then :
14052 xorg_cv_cc_flag_unknown_warning_option=yes
14053 else $as_nop
14054 xorg_cv_cc_flag_unknown_warning_option=no
14055 fi
14056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14057 fi
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14061 CFLAGS="$xorg_testset_save_CFLAGS"
14062 fi
14063
14064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14067 fi
14068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14072 then :
14073 printf %s "(cached) " >&6
14074 else $as_nop
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 int i;
14078 _ACEOF
14079 if ac_fn_c_try_compile "$LINENO"
14080 then :
14081 xorg_cv_cc_flag_unused_command_line_argument=yes
14082 else $as_nop
14083 xorg_cv_cc_flag_unused_command_line_argument=no
14084 fi
14085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14086 fi
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14088 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14090 CFLAGS="$xorg_testset_save_CFLAGS"
14091 fi
14092
14093 found="no"
14094
14095 if test $found = "no" ; then
14096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14098 fi
14099
14100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14102 fi
14103
14104 CFLAGS="$CFLAGS -Wnested-externs"
14105
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14107 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14108 cacheid=xorg_cv_cc_flag__Wnested_externs
14109 if eval test \${$cacheid+y}
14110 then :
14111 printf %s "(cached) " >&6
14112 else $as_nop
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14115 int i;
14116 int
14117 main (void)
14118 {
14119
14120 ;
14121 return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_c_try_link "$LINENO"
14125 then :
14126 eval $cacheid=yes
14127 else $as_nop
14128 eval $cacheid=no
14129 fi
14130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14131 conftest$ac_exeext conftest.$ac_ext
14132 fi
14133
14134
14135 CFLAGS="$xorg_testset_save_CFLAGS"
14136
14137 eval supported=\$$cacheid
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14139 printf "%s\n" "$supported" >&6; }
14140 if test "$supported" = "yes" ; then
14141 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14142 found="yes"
14143 fi
14144 fi
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160 xorg_testset_save_CFLAGS="$CFLAGS"
14161
14162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14166 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14167 then :
14168 printf %s "(cached) " >&6
14169 else $as_nop
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 int i;
14173 _ACEOF
14174 if ac_fn_c_try_compile "$LINENO"
14175 then :
14176 xorg_cv_cc_flag_unknown_warning_option=yes
14177 else $as_nop
14178 xorg_cv_cc_flag_unknown_warning_option=no
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14181 fi
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14185 CFLAGS="$xorg_testset_save_CFLAGS"
14186 fi
14187
14188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191 fi
14192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14196 then :
14197 printf %s "(cached) " >&6
14198 else $as_nop
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201 int i;
14202 _ACEOF
14203 if ac_fn_c_try_compile "$LINENO"
14204 then :
14205 xorg_cv_cc_flag_unused_command_line_argument=yes
14206 else $as_nop
14207 xorg_cv_cc_flag_unused_command_line_argument=no
14208 fi
14209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14210 fi
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14212 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14214 CFLAGS="$xorg_testset_save_CFLAGS"
14215 fi
14216
14217 found="no"
14218
14219 if test $found = "no" ; then
14220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14222 fi
14223
14224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14226 fi
14227
14228 CFLAGS="$CFLAGS -Wbad-function-cast"
14229
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14231 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14232 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14233 if eval test \${$cacheid+y}
14234 then :
14235 printf %s "(cached) " >&6
14236 else $as_nop
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239 int i;
14240 int
14241 main (void)
14242 {
14243
14244 ;
14245 return 0;
14246 }
14247 _ACEOF
14248 if ac_fn_c_try_link "$LINENO"
14249 then :
14250 eval $cacheid=yes
14251 else $as_nop
14252 eval $cacheid=no
14253 fi
14254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14255 conftest$ac_exeext conftest.$ac_ext
14256 fi
14257
14258
14259 CFLAGS="$xorg_testset_save_CFLAGS"
14260
14261 eval supported=\$$cacheid
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14263 printf "%s\n" "$supported" >&6; }
14264 if test "$supported" = "yes" ; then
14265 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14266 found="yes"
14267 fi
14268 fi
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284 xorg_testset_save_CFLAGS="$CFLAGS"
14285
14286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14290 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14291 then :
14292 printf %s "(cached) " >&6
14293 else $as_nop
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 int i;
14297 _ACEOF
14298 if ac_fn_c_try_compile "$LINENO"
14299 then :
14300 xorg_cv_cc_flag_unknown_warning_option=yes
14301 else $as_nop
14302 xorg_cv_cc_flag_unknown_warning_option=no
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14305 fi
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14307 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14309 CFLAGS="$xorg_testset_save_CFLAGS"
14310 fi
14311
14312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14315 fi
14316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14320 then :
14321 printf %s "(cached) " >&6
14322 else $as_nop
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 int i;
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"
14328 then :
14329 xorg_cv_cc_flag_unused_command_line_argument=yes
14330 else $as_nop
14331 xorg_cv_cc_flag_unused_command_line_argument=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14334 fi
14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14336 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 found="no"
14342
14343 if test $found = "no" ; then
14344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346 fi
14347
14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350 fi
14351
14352 CFLAGS="$CFLAGS -Wold-style-definition"
14353
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14355 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14356 cacheid=xorg_cv_cc_flag__Wold_style_definition
14357 if eval test \${$cacheid+y}
14358 then :
14359 printf %s "(cached) " >&6
14360 else $as_nop
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 int i;
14364 int
14365 main (void)
14366 {
14367
14368 ;
14369 return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"
14373 then :
14374 eval $cacheid=yes
14375 else $as_nop
14376 eval $cacheid=no
14377 fi
14378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14379 conftest$ac_exeext conftest.$ac_ext
14380 fi
14381
14382
14383 CFLAGS="$xorg_testset_save_CFLAGS"
14384
14385 eval supported=\$$cacheid
14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14387 printf "%s\n" "$supported" >&6; }
14388 if test "$supported" = "yes" ; then
14389 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14390 found="yes"
14391 fi
14392 fi
14393
14394 if test $found = "no" ; then
14395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14397 fi
14398
14399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14401 fi
14402
14403 CFLAGS="$CFLAGS -fd"
14404
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14406 printf %s "checking if $CC supports -fd... " >&6; }
14407 cacheid=xorg_cv_cc_flag__fd
14408 if eval test \${$cacheid+y}
14409 then :
14410 printf %s "(cached) " >&6
14411 else $as_nop
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 int i;
14415 int
14416 main (void)
14417 {
14418
14419 ;
14420 return 0;
14421 }
14422 _ACEOF
14423 if ac_fn_c_try_link "$LINENO"
14424 then :
14425 eval $cacheid=yes
14426 else $as_nop
14427 eval $cacheid=no
14428 fi
14429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14430 conftest$ac_exeext conftest.$ac_ext
14431 fi
14432
14433
14434 CFLAGS="$xorg_testset_save_CFLAGS"
14435
14436 eval supported=\$$cacheid
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14438 printf "%s\n" "$supported" >&6; }
14439 if test "$supported" = "yes" ; then
14440 BASE_CFLAGS="$BASE_CFLAGS -fd"
14441 found="yes"
14442 fi
14443 fi
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459 xorg_testset_save_CFLAGS="$CFLAGS"
14460
14461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14466 then :
14467 printf %s "(cached) " >&6
14468 else $as_nop
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 int i;
14472 _ACEOF
14473 if ac_fn_c_try_compile "$LINENO"
14474 then :
14475 xorg_cv_cc_flag_unknown_warning_option=yes
14476 else $as_nop
14477 xorg_cv_cc_flag_unknown_warning_option=no
14478 fi
14479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14480 fi
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14484 CFLAGS="$xorg_testset_save_CFLAGS"
14485 fi
14486
14487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490 fi
14491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14495 then :
14496 printf %s "(cached) " >&6
14497 else $as_nop
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 int i;
14501 _ACEOF
14502 if ac_fn_c_try_compile "$LINENO"
14503 then :
14504 xorg_cv_cc_flag_unused_command_line_argument=yes
14505 else $as_nop
14506 xorg_cv_cc_flag_unused_command_line_argument=no
14507 fi
14508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14509 fi
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14513 CFLAGS="$xorg_testset_save_CFLAGS"
14514 fi
14515
14516 found="no"
14517
14518 if test $found = "no" ; then
14519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14521 fi
14522
14523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14525 fi
14526
14527 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14528
14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14530 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14531 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14532 if eval test \${$cacheid+y}
14533 then :
14534 printf %s "(cached) " >&6
14535 else $as_nop
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 int i;
14539 int
14540 main (void)
14541 {
14542
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_link "$LINENO"
14548 then :
14549 eval $cacheid=yes
14550 else $as_nop
14551 eval $cacheid=no
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14554 conftest$ac_exeext conftest.$ac_ext
14555 fi
14556
14557
14558 CFLAGS="$xorg_testset_save_CFLAGS"
14559
14560 eval supported=\$$cacheid
14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14562 printf "%s\n" "$supported" >&6; }
14563 if test "$supported" = "yes" ; then
14564 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14565 found="yes"
14566 fi
14567 fi
14568
14569
14570
14571
14572
14573 # This chunk adds additional warnings that could catch undesired effects.
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587 xorg_testset_save_CFLAGS="$CFLAGS"
14588
14589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14593 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14594 then :
14595 printf %s "(cached) " >&6
14596 else $as_nop
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 int i;
14600 _ACEOF
14601 if ac_fn_c_try_compile "$LINENO"
14602 then :
14603 xorg_cv_cc_flag_unknown_warning_option=yes
14604 else $as_nop
14605 xorg_cv_cc_flag_unknown_warning_option=no
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14608 fi
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14612 CFLAGS="$xorg_testset_save_CFLAGS"
14613 fi
14614
14615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14618 fi
14619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14623 then :
14624 printf %s "(cached) " >&6
14625 else $as_nop
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628 int i;
14629 _ACEOF
14630 if ac_fn_c_try_compile "$LINENO"
14631 then :
14632 xorg_cv_cc_flag_unused_command_line_argument=yes
14633 else $as_nop
14634 xorg_cv_cc_flag_unused_command_line_argument=no
14635 fi
14636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14637 fi
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14641 CFLAGS="$xorg_testset_save_CFLAGS"
14642 fi
14643
14644 found="no"
14645
14646 if test $found = "no" ; then
14647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14649 fi
14650
14651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14653 fi
14654
14655 CFLAGS="$CFLAGS -Wunused"
14656
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14658 printf %s "checking if $CC supports -Wunused... " >&6; }
14659 cacheid=xorg_cv_cc_flag__Wunused
14660 if eval test \${$cacheid+y}
14661 then :
14662 printf %s "(cached) " >&6
14663 else $as_nop
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14666 int i;
14667 int
14668 main (void)
14669 {
14670
14671 ;
14672 return 0;
14673 }
14674 _ACEOF
14675 if ac_fn_c_try_link "$LINENO"
14676 then :
14677 eval $cacheid=yes
14678 else $as_nop
14679 eval $cacheid=no
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14682 conftest$ac_exeext conftest.$ac_ext
14683 fi
14684
14685
14686 CFLAGS="$xorg_testset_save_CFLAGS"
14687
14688 eval supported=\$$cacheid
14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14690 printf "%s\n" "$supported" >&6; }
14691 if test "$supported" = "yes" ; then
14692 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14693 found="yes"
14694 fi
14695 fi
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711 xorg_testset_save_CFLAGS="$CFLAGS"
14712
14713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14717 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14718 then :
14719 printf %s "(cached) " >&6
14720 else $as_nop
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 int i;
14724 _ACEOF
14725 if ac_fn_c_try_compile "$LINENO"
14726 then :
14727 xorg_cv_cc_flag_unknown_warning_option=yes
14728 else $as_nop
14729 xorg_cv_cc_flag_unknown_warning_option=no
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14732 fi
14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14734 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14736 CFLAGS="$xorg_testset_save_CFLAGS"
14737 fi
14738
14739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14742 fi
14743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14745 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14746 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14747 then :
14748 printf %s "(cached) " >&6
14749 else $as_nop
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 int i;
14753 _ACEOF
14754 if ac_fn_c_try_compile "$LINENO"
14755 then :
14756 xorg_cv_cc_flag_unused_command_line_argument=yes
14757 else $as_nop
14758 xorg_cv_cc_flag_unused_command_line_argument=no
14759 fi
14760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14761 fi
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14765 CFLAGS="$xorg_testset_save_CFLAGS"
14766 fi
14767
14768 found="no"
14769
14770 if test $found = "no" ; then
14771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14773 fi
14774
14775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14777 fi
14778
14779 CFLAGS="$CFLAGS -Wuninitialized"
14780
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14782 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14783 cacheid=xorg_cv_cc_flag__Wuninitialized
14784 if eval test \${$cacheid+y}
14785 then :
14786 printf %s "(cached) " >&6
14787 else $as_nop
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 int i;
14791 int
14792 main (void)
14793 {
14794
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_link "$LINENO"
14800 then :
14801 eval $cacheid=yes
14802 else $as_nop
14803 eval $cacheid=no
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14806 conftest$ac_exeext conftest.$ac_ext
14807 fi
14808
14809
14810 CFLAGS="$xorg_testset_save_CFLAGS"
14811
14812 eval supported=\$$cacheid
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14814 printf "%s\n" "$supported" >&6; }
14815 if test "$supported" = "yes" ; then
14816 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14817 found="yes"
14818 fi
14819 fi
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835 xorg_testset_save_CFLAGS="$CFLAGS"
14836
14837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14841 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14842 then :
14843 printf %s "(cached) " >&6
14844 else $as_nop
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14847 int i;
14848 _ACEOF
14849 if ac_fn_c_try_compile "$LINENO"
14850 then :
14851 xorg_cv_cc_flag_unknown_warning_option=yes
14852 else $as_nop
14853 xorg_cv_cc_flag_unknown_warning_option=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14856 fi
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14860 CFLAGS="$xorg_testset_save_CFLAGS"
14861 fi
14862
14863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14866 fi
14867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14871 then :
14872 printf %s "(cached) " >&6
14873 else $as_nop
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 int i;
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"
14879 then :
14880 xorg_cv_cc_flag_unused_command_line_argument=yes
14881 else $as_nop
14882 xorg_cv_cc_flag_unused_command_line_argument=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14885 fi
14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14889 CFLAGS="$xorg_testset_save_CFLAGS"
14890 fi
14891
14892 found="no"
14893
14894 if test $found = "no" ; then
14895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14897 fi
14898
14899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14901 fi
14902
14903 CFLAGS="$CFLAGS -Wshadow"
14904
14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14906 printf %s "checking if $CC supports -Wshadow... " >&6; }
14907 cacheid=xorg_cv_cc_flag__Wshadow
14908 if eval test \${$cacheid+y}
14909 then :
14910 printf %s "(cached) " >&6
14911 else $as_nop
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 int i;
14915 int
14916 main (void)
14917 {
14918
14919 ;
14920 return 0;
14921 }
14922 _ACEOF
14923 if ac_fn_c_try_link "$LINENO"
14924 then :
14925 eval $cacheid=yes
14926 else $as_nop
14927 eval $cacheid=no
14928 fi
14929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14930 conftest$ac_exeext conftest.$ac_ext
14931 fi
14932
14933
14934 CFLAGS="$xorg_testset_save_CFLAGS"
14935
14936 eval supported=\$$cacheid
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14938 printf "%s\n" "$supported" >&6; }
14939 if test "$supported" = "yes" ; then
14940 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14941 found="yes"
14942 fi
14943 fi
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959 xorg_testset_save_CFLAGS="$CFLAGS"
14960
14961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14965 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14966 then :
14967 printf %s "(cached) " >&6
14968 else $as_nop
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 int i;
14972 _ACEOF
14973 if ac_fn_c_try_compile "$LINENO"
14974 then :
14975 xorg_cv_cc_flag_unknown_warning_option=yes
14976 else $as_nop
14977 xorg_cv_cc_flag_unknown_warning_option=no
14978 fi
14979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14980 fi
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14984 CFLAGS="$xorg_testset_save_CFLAGS"
14985 fi
14986
14987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14990 fi
14991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14995 then :
14996 printf %s "(cached) " >&6
14997 else $as_nop
14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15000 int i;
15001 _ACEOF
15002 if ac_fn_c_try_compile "$LINENO"
15003 then :
15004 xorg_cv_cc_flag_unused_command_line_argument=yes
15005 else $as_nop
15006 xorg_cv_cc_flag_unused_command_line_argument=no
15007 fi
15008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15009 fi
15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15013 CFLAGS="$xorg_testset_save_CFLAGS"
15014 fi
15015
15016 found="no"
15017
15018 if test $found = "no" ; then
15019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15021 fi
15022
15023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15025 fi
15026
15027 CFLAGS="$CFLAGS -Wmissing-noreturn"
15028
15029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15030 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15031 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15032 if eval test \${$cacheid+y}
15033 then :
15034 printf %s "(cached) " >&6
15035 else $as_nop
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 int i;
15039 int
15040 main (void)
15041 {
15042
15043 ;
15044 return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"
15048 then :
15049 eval $cacheid=yes
15050 else $as_nop
15051 eval $cacheid=no
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15054 conftest$ac_exeext conftest.$ac_ext
15055 fi
15056
15057
15058 CFLAGS="$xorg_testset_save_CFLAGS"
15059
15060 eval supported=\$$cacheid
15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15062 printf "%s\n" "$supported" >&6; }
15063 if test "$supported" = "yes" ; then
15064 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15065 found="yes"
15066 fi
15067 fi
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083 xorg_testset_save_CFLAGS="$CFLAGS"
15084
15085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15089 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15090 then :
15091 printf %s "(cached) " >&6
15092 else $as_nop
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 int i;
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"
15098 then :
15099 xorg_cv_cc_flag_unknown_warning_option=yes
15100 else $as_nop
15101 xorg_cv_cc_flag_unknown_warning_option=no
15102 fi
15103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15104 fi
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15108 CFLAGS="$xorg_testset_save_CFLAGS"
15109 fi
15110
15111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15114 fi
15115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15119 then :
15120 printf %s "(cached) " >&6
15121 else $as_nop
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124 int i;
15125 _ACEOF
15126 if ac_fn_c_try_compile "$LINENO"
15127 then :
15128 xorg_cv_cc_flag_unused_command_line_argument=yes
15129 else $as_nop
15130 xorg_cv_cc_flag_unused_command_line_argument=no
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15133 fi
15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15137 CFLAGS="$xorg_testset_save_CFLAGS"
15138 fi
15139
15140 found="no"
15141
15142 if test $found = "no" ; then
15143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15145 fi
15146
15147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15149 fi
15150
15151 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15152
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15154 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15155 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15156 if eval test \${$cacheid+y}
15157 then :
15158 printf %s "(cached) " >&6
15159 else $as_nop
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 int i;
15163 int
15164 main (void)
15165 {
15166
15167 ;
15168 return 0;
15169 }
15170 _ACEOF
15171 if ac_fn_c_try_link "$LINENO"
15172 then :
15173 eval $cacheid=yes
15174 else $as_nop
15175 eval $cacheid=no
15176 fi
15177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15178 conftest$ac_exeext conftest.$ac_ext
15179 fi
15180
15181
15182 CFLAGS="$xorg_testset_save_CFLAGS"
15183
15184 eval supported=\$$cacheid
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15186 printf "%s\n" "$supported" >&6; }
15187 if test "$supported" = "yes" ; then
15188 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15189 found="yes"
15190 fi
15191 fi
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207 xorg_testset_save_CFLAGS="$CFLAGS"
15208
15209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15213 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15214 then :
15215 printf %s "(cached) " >&6
15216 else $as_nop
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15219 int i;
15220 _ACEOF
15221 if ac_fn_c_try_compile "$LINENO"
15222 then :
15223 xorg_cv_cc_flag_unknown_warning_option=yes
15224 else $as_nop
15225 xorg_cv_cc_flag_unknown_warning_option=no
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15228 fi
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15232 CFLAGS="$xorg_testset_save_CFLAGS"
15233 fi
15234
15235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238 fi
15239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15243 then :
15244 printf %s "(cached) " >&6
15245 else $as_nop
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15248 int i;
15249 _ACEOF
15250 if ac_fn_c_try_compile "$LINENO"
15251 then :
15252 xorg_cv_cc_flag_unused_command_line_argument=yes
15253 else $as_nop
15254 xorg_cv_cc_flag_unused_command_line_argument=no
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15257 fi
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15261 CFLAGS="$xorg_testset_save_CFLAGS"
15262 fi
15263
15264 found="no"
15265
15266 if test $found = "no" ; then
15267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15269 fi
15270
15271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15273 fi
15274
15275 CFLAGS="$CFLAGS -Wredundant-decls"
15276
15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15278 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15279 cacheid=xorg_cv_cc_flag__Wredundant_decls
15280 if eval test \${$cacheid+y}
15281 then :
15282 printf %s "(cached) " >&6
15283 else $as_nop
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286 int i;
15287 int
15288 main (void)
15289 {
15290
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"
15296 then :
15297 eval $cacheid=yes
15298 else $as_nop
15299 eval $cacheid=no
15300 fi
15301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15302 conftest$ac_exeext conftest.$ac_ext
15303 fi
15304
15305
15306 CFLAGS="$xorg_testset_save_CFLAGS"
15307
15308 eval supported=\$$cacheid
15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15310 printf "%s\n" "$supported" >&6; }
15311 if test "$supported" = "yes" ; then
15312 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15313 found="yes"
15314 fi
15315 fi
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331 xorg_testset_save_CFLAGS="$CFLAGS"
15332
15333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15337 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15338 then :
15339 printf %s "(cached) " >&6
15340 else $as_nop
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 int i;
15344 _ACEOF
15345 if ac_fn_c_try_compile "$LINENO"
15346 then :
15347 xorg_cv_cc_flag_unknown_warning_option=yes
15348 else $as_nop
15349 xorg_cv_cc_flag_unknown_warning_option=no
15350 fi
15351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15352 fi
15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15356 CFLAGS="$xorg_testset_save_CFLAGS"
15357 fi
15358
15359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15362 fi
15363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15367 then :
15368 printf %s "(cached) " >&6
15369 else $as_nop
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 int i;
15373 _ACEOF
15374 if ac_fn_c_try_compile "$LINENO"
15375 then :
15376 xorg_cv_cc_flag_unused_command_line_argument=yes
15377 else $as_nop
15378 xorg_cv_cc_flag_unused_command_line_argument=no
15379 fi
15380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15381 fi
15382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15385 CFLAGS="$xorg_testset_save_CFLAGS"
15386 fi
15387
15388 found="no"
15389
15390 if test $found = "no" ; then
15391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15393 fi
15394
15395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15397 fi
15398
15399 CFLAGS="$CFLAGS -Wlogical-op"
15400
15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15402 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15403 cacheid=xorg_cv_cc_flag__Wlogical_op
15404 if eval test \${$cacheid+y}
15405 then :
15406 printf %s "(cached) " >&6
15407 else $as_nop
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410 int i;
15411 int
15412 main (void)
15413 {
15414
15415 ;
15416 return 0;
15417 }
15418 _ACEOF
15419 if ac_fn_c_try_link "$LINENO"
15420 then :
15421 eval $cacheid=yes
15422 else $as_nop
15423 eval $cacheid=no
15424 fi
15425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15426 conftest$ac_exeext conftest.$ac_ext
15427 fi
15428
15429
15430 CFLAGS="$xorg_testset_save_CFLAGS"
15431
15432 eval supported=\$$cacheid
15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15434 printf "%s\n" "$supported" >&6; }
15435 if test "$supported" = "yes" ; then
15436 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15437 found="yes"
15438 fi
15439 fi
15440
15441
15442
15443 # These are currently disabled because they are noisy. They will be enabled
15444 # in the future once the codebase is sufficiently modernized to silence
15445 # them. For now, I don't want them to drown out the other warnings.
15446 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15447 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15448 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15449
15450 # Turn some warnings into errors, so we don't accidently get successful builds
15451 # when there are problems that should be fixed.
15452
15453 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467 xorg_testset_save_CFLAGS="$CFLAGS"
15468
15469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15472 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15473 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15474 then :
15475 printf %s "(cached) " >&6
15476 else $as_nop
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 int i;
15480 _ACEOF
15481 if ac_fn_c_try_compile "$LINENO"
15482 then :
15483 xorg_cv_cc_flag_unknown_warning_option=yes
15484 else $as_nop
15485 xorg_cv_cc_flag_unknown_warning_option=no
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15488 fi
15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15492 CFLAGS="$xorg_testset_save_CFLAGS"
15493 fi
15494
15495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15498 fi
15499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15503 then :
15504 printf %s "(cached) " >&6
15505 else $as_nop
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 int i;
15509 _ACEOF
15510 if ac_fn_c_try_compile "$LINENO"
15511 then :
15512 xorg_cv_cc_flag_unused_command_line_argument=yes
15513 else $as_nop
15514 xorg_cv_cc_flag_unused_command_line_argument=no
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15517 fi
15518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15519 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15521 CFLAGS="$xorg_testset_save_CFLAGS"
15522 fi
15523
15524 found="no"
15525
15526 if test $found = "no" ; then
15527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15529 fi
15530
15531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15533 fi
15534
15535 CFLAGS="$CFLAGS -Werror=implicit"
15536
15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15538 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15539 cacheid=xorg_cv_cc_flag__Werror_implicit
15540 if eval test \${$cacheid+y}
15541 then :
15542 printf %s "(cached) " >&6
15543 else $as_nop
15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15546 int i;
15547 int
15548 main (void)
15549 {
15550
15551 ;
15552 return 0;
15553 }
15554 _ACEOF
15555 if ac_fn_c_try_link "$LINENO"
15556 then :
15557 eval $cacheid=yes
15558 else $as_nop
15559 eval $cacheid=no
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15562 conftest$ac_exeext conftest.$ac_ext
15563 fi
15564
15565
15566 CFLAGS="$xorg_testset_save_CFLAGS"
15567
15568 eval supported=\$$cacheid
15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15570 printf "%s\n" "$supported" >&6; }
15571 if test "$supported" = "yes" ; then
15572 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15573 found="yes"
15574 fi
15575 fi
15576
15577 if test $found = "no" ; then
15578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15580 fi
15581
15582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15584 fi
15585
15586 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15587
15588 { 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
15589 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15590 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15591 if eval test \${$cacheid+y}
15592 then :
15593 printf %s "(cached) " >&6
15594 else $as_nop
15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15597 int i;
15598 int
15599 main (void)
15600 {
15601
15602 ;
15603 return 0;
15604 }
15605 _ACEOF
15606 if ac_fn_c_try_link "$LINENO"
15607 then :
15608 eval $cacheid=yes
15609 else $as_nop
15610 eval $cacheid=no
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15613 conftest$ac_exeext conftest.$ac_ext
15614 fi
15615
15616
15617 CFLAGS="$xorg_testset_save_CFLAGS"
15618
15619 eval supported=\$$cacheid
15620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15621 printf "%s\n" "$supported" >&6; }
15622 if test "$supported" = "yes" ; then
15623 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15624 found="yes"
15625 fi
15626 fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642 xorg_testset_save_CFLAGS="$CFLAGS"
15643
15644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15647 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15648 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15649 then :
15650 printf %s "(cached) " >&6
15651 else $as_nop
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654 int i;
15655 _ACEOF
15656 if ac_fn_c_try_compile "$LINENO"
15657 then :
15658 xorg_cv_cc_flag_unknown_warning_option=yes
15659 else $as_nop
15660 xorg_cv_cc_flag_unknown_warning_option=no
15661 fi
15662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15663 fi
15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15665 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15667 CFLAGS="$xorg_testset_save_CFLAGS"
15668 fi
15669
15670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673 fi
15674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15676 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15677 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15678 then :
15679 printf %s "(cached) " >&6
15680 else $as_nop
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 int i;
15684 _ACEOF
15685 if ac_fn_c_try_compile "$LINENO"
15686 then :
15687 xorg_cv_cc_flag_unused_command_line_argument=yes
15688 else $as_nop
15689 xorg_cv_cc_flag_unused_command_line_argument=no
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15692 fi
15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15696 CFLAGS="$xorg_testset_save_CFLAGS"
15697 fi
15698
15699 found="no"
15700
15701 if test $found = "no" ; then
15702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15704 fi
15705
15706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15708 fi
15709
15710 CFLAGS="$CFLAGS -Werror=nonnull"
15711
15712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15713 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15714 cacheid=xorg_cv_cc_flag__Werror_nonnull
15715 if eval test \${$cacheid+y}
15716 then :
15717 printf %s "(cached) " >&6
15718 else $as_nop
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int i;
15722 int
15723 main (void)
15724 {
15725
15726 ;
15727 return 0;
15728 }
15729 _ACEOF
15730 if ac_fn_c_try_link "$LINENO"
15731 then :
15732 eval $cacheid=yes
15733 else $as_nop
15734 eval $cacheid=no
15735 fi
15736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15737 conftest$ac_exeext conftest.$ac_ext
15738 fi
15739
15740
15741 CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743 eval supported=\$$cacheid
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745 printf "%s\n" "$supported" >&6; }
15746 if test "$supported" = "yes" ; then
15747 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15748 found="yes"
15749 fi
15750 fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766 xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15772 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15773 then :
15774 printf %s "(cached) " >&6
15775 else $as_nop
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 int i;
15779 _ACEOF
15780 if ac_fn_c_try_compile "$LINENO"
15781 then :
15782 xorg_cv_cc_flag_unknown_warning_option=yes
15783 else $as_nop
15784 xorg_cv_cc_flag_unknown_warning_option=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15787 fi
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15791 CFLAGS="$xorg_testset_save_CFLAGS"
15792 fi
15793
15794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15797 fi
15798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15802 then :
15803 printf %s "(cached) " >&6
15804 else $as_nop
15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h. */
15807 int i;
15808 _ACEOF
15809 if ac_fn_c_try_compile "$LINENO"
15810 then :
15811 xorg_cv_cc_flag_unused_command_line_argument=yes
15812 else $as_nop
15813 xorg_cv_cc_flag_unused_command_line_argument=no
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15816 fi
15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15818 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15820 CFLAGS="$xorg_testset_save_CFLAGS"
15821 fi
15822
15823 found="no"
15824
15825 if test $found = "no" ; then
15826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15828 fi
15829
15830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15832 fi
15833
15834 CFLAGS="$CFLAGS -Werror=init-self"
15835
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15837 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15838 cacheid=xorg_cv_cc_flag__Werror_init_self
15839 if eval test \${$cacheid+y}
15840 then :
15841 printf %s "(cached) " >&6
15842 else $as_nop
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15845 int i;
15846 int
15847 main (void)
15848 {
15849
15850 ;
15851 return 0;
15852 }
15853 _ACEOF
15854 if ac_fn_c_try_link "$LINENO"
15855 then :
15856 eval $cacheid=yes
15857 else $as_nop
15858 eval $cacheid=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15861 conftest$ac_exeext conftest.$ac_ext
15862 fi
15863
15864
15865 CFLAGS="$xorg_testset_save_CFLAGS"
15866
15867 eval supported=\$$cacheid
15868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15869 printf "%s\n" "$supported" >&6; }
15870 if test "$supported" = "yes" ; then
15871 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15872 found="yes"
15873 fi
15874 fi
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890 xorg_testset_save_CFLAGS="$CFLAGS"
15891
15892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15896 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15897 then :
15898 printf %s "(cached) " >&6
15899 else $as_nop
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 int i;
15903 _ACEOF
15904 if ac_fn_c_try_compile "$LINENO"
15905 then :
15906 xorg_cv_cc_flag_unknown_warning_option=yes
15907 else $as_nop
15908 xorg_cv_cc_flag_unknown_warning_option=no
15909 fi
15910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15911 fi
15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15913 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15915 CFLAGS="$xorg_testset_save_CFLAGS"
15916 fi
15917
15918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15921 fi
15922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15926 then :
15927 printf %s "(cached) " >&6
15928 else $as_nop
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15931 int i;
15932 _ACEOF
15933 if ac_fn_c_try_compile "$LINENO"
15934 then :
15935 xorg_cv_cc_flag_unused_command_line_argument=yes
15936 else $as_nop
15937 xorg_cv_cc_flag_unused_command_line_argument=no
15938 fi
15939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15940 fi
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15944 CFLAGS="$xorg_testset_save_CFLAGS"
15945 fi
15946
15947 found="no"
15948
15949 if test $found = "no" ; then
15950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15952 fi
15953
15954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15956 fi
15957
15958 CFLAGS="$CFLAGS -Werror=main"
15959
15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15961 printf %s "checking if $CC supports -Werror=main... " >&6; }
15962 cacheid=xorg_cv_cc_flag__Werror_main
15963 if eval test \${$cacheid+y}
15964 then :
15965 printf %s "(cached) " >&6
15966 else $as_nop
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 int i;
15970 int
15971 main (void)
15972 {
15973
15974 ;
15975 return 0;
15976 }
15977 _ACEOF
15978 if ac_fn_c_try_link "$LINENO"
15979 then :
15980 eval $cacheid=yes
15981 else $as_nop
15982 eval $cacheid=no
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15985 conftest$ac_exeext conftest.$ac_ext
15986 fi
15987
15988
15989 CFLAGS="$xorg_testset_save_CFLAGS"
15990
15991 eval supported=\$$cacheid
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15993 printf "%s\n" "$supported" >&6; }
15994 if test "$supported" = "yes" ; then
15995 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15996 found="yes"
15997 fi
15998 fi
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014 xorg_testset_save_CFLAGS="$CFLAGS"
16015
16016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16020 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16021 then :
16022 printf %s "(cached) " >&6
16023 else $as_nop
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 int i;
16027 _ACEOF
16028 if ac_fn_c_try_compile "$LINENO"
16029 then :
16030 xorg_cv_cc_flag_unknown_warning_option=yes
16031 else $as_nop
16032 xorg_cv_cc_flag_unknown_warning_option=no
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16035 fi
16036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16039 CFLAGS="$xorg_testset_save_CFLAGS"
16040 fi
16041
16042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045 fi
16046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16050 then :
16051 printf %s "(cached) " >&6
16052 else $as_nop
16053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054 /* end confdefs.h. */
16055 int i;
16056 _ACEOF
16057 if ac_fn_c_try_compile "$LINENO"
16058 then :
16059 xorg_cv_cc_flag_unused_command_line_argument=yes
16060 else $as_nop
16061 xorg_cv_cc_flag_unused_command_line_argument=no
16062 fi
16063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16064 fi
16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16066 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16068 CFLAGS="$xorg_testset_save_CFLAGS"
16069 fi
16070
16071 found="no"
16072
16073 if test $found = "no" ; then
16074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076 fi
16077
16078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16080 fi
16081
16082 CFLAGS="$CFLAGS -Werror=missing-braces"
16083
16084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16085 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16086 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16087 if eval test \${$cacheid+y}
16088 then :
16089 printf %s "(cached) " >&6
16090 else $as_nop
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 int i;
16094 int
16095 main (void)
16096 {
16097
16098 ;
16099 return 0;
16100 }
16101 _ACEOF
16102 if ac_fn_c_try_link "$LINENO"
16103 then :
16104 eval $cacheid=yes
16105 else $as_nop
16106 eval $cacheid=no
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16109 conftest$ac_exeext conftest.$ac_ext
16110 fi
16111
16112
16113 CFLAGS="$xorg_testset_save_CFLAGS"
16114
16115 eval supported=\$$cacheid
16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16117 printf "%s\n" "$supported" >&6; }
16118 if test "$supported" = "yes" ; then
16119 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16120 found="yes"
16121 fi
16122 fi
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138 xorg_testset_save_CFLAGS="$CFLAGS"
16139
16140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16145 then :
16146 printf %s "(cached) " >&6
16147 else $as_nop
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16150 int i;
16151 _ACEOF
16152 if ac_fn_c_try_compile "$LINENO"
16153 then :
16154 xorg_cv_cc_flag_unknown_warning_option=yes
16155 else $as_nop
16156 xorg_cv_cc_flag_unknown_warning_option=no
16157 fi
16158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16159 fi
16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16163 CFLAGS="$xorg_testset_save_CFLAGS"
16164 fi
16165
16166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16169 fi
16170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16174 then :
16175 printf %s "(cached) " >&6
16176 else $as_nop
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179 int i;
16180 _ACEOF
16181 if ac_fn_c_try_compile "$LINENO"
16182 then :
16183 xorg_cv_cc_flag_unused_command_line_argument=yes
16184 else $as_nop
16185 xorg_cv_cc_flag_unused_command_line_argument=no
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16188 fi
16189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16190 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16192 CFLAGS="$xorg_testset_save_CFLAGS"
16193 fi
16194
16195 found="no"
16196
16197 if test $found = "no" ; then
16198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200 fi
16201
16202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16204 fi
16205
16206 CFLAGS="$CFLAGS -Werror=sequence-point"
16207
16208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16209 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16210 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16211 if eval test \${$cacheid+y}
16212 then :
16213 printf %s "(cached) " >&6
16214 else $as_nop
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16217 int i;
16218 int
16219 main (void)
16220 {
16221
16222 ;
16223 return 0;
16224 }
16225 _ACEOF
16226 if ac_fn_c_try_link "$LINENO"
16227 then :
16228 eval $cacheid=yes
16229 else $as_nop
16230 eval $cacheid=no
16231 fi
16232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16233 conftest$ac_exeext conftest.$ac_ext
16234 fi
16235
16236
16237 CFLAGS="$xorg_testset_save_CFLAGS"
16238
16239 eval supported=\$$cacheid
16240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16241 printf "%s\n" "$supported" >&6; }
16242 if test "$supported" = "yes" ; then
16243 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16244 found="yes"
16245 fi
16246 fi
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262 xorg_testset_save_CFLAGS="$CFLAGS"
16263
16264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16268 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16269 then :
16270 printf %s "(cached) " >&6
16271 else $as_nop
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16274 int i;
16275 _ACEOF
16276 if ac_fn_c_try_compile "$LINENO"
16277 then :
16278 xorg_cv_cc_flag_unknown_warning_option=yes
16279 else $as_nop
16280 xorg_cv_cc_flag_unknown_warning_option=no
16281 fi
16282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16283 fi
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16285 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16287 CFLAGS="$xorg_testset_save_CFLAGS"
16288 fi
16289
16290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16293 fi
16294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16296 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16297 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16298 then :
16299 printf %s "(cached) " >&6
16300 else $as_nop
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303 int i;
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"
16306 then :
16307 xorg_cv_cc_flag_unused_command_line_argument=yes
16308 else $as_nop
16309 xorg_cv_cc_flag_unused_command_line_argument=no
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16312 fi
16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16314 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16316 CFLAGS="$xorg_testset_save_CFLAGS"
16317 fi
16318
16319 found="no"
16320
16321 if test $found = "no" ; then
16322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16324 fi
16325
16326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16328 fi
16329
16330 CFLAGS="$CFLAGS -Werror=return-type"
16331
16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16333 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16334 cacheid=xorg_cv_cc_flag__Werror_return_type
16335 if eval test \${$cacheid+y}
16336 then :
16337 printf %s "(cached) " >&6
16338 else $as_nop
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 int i;
16342 int
16343 main (void)
16344 {
16345
16346 ;
16347 return 0;
16348 }
16349 _ACEOF
16350 if ac_fn_c_try_link "$LINENO"
16351 then :
16352 eval $cacheid=yes
16353 else $as_nop
16354 eval $cacheid=no
16355 fi
16356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16357 conftest$ac_exeext conftest.$ac_ext
16358 fi
16359
16360
16361 CFLAGS="$xorg_testset_save_CFLAGS"
16362
16363 eval supported=\$$cacheid
16364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16365 printf "%s\n" "$supported" >&6; }
16366 if test "$supported" = "yes" ; then
16367 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16368 found="yes"
16369 fi
16370 fi
16371
16372 if test $found = "no" ; then
16373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375 fi
16376
16377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379 fi
16380
16381 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16382
16383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16384 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16385 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16386 if eval test \${$cacheid+y}
16387 then :
16388 printf %s "(cached) " >&6
16389 else $as_nop
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 int i;
16393 int
16394 main (void)
16395 {
16396
16397 ;
16398 return 0;
16399 }
16400 _ACEOF
16401 if ac_fn_c_try_link "$LINENO"
16402 then :
16403 eval $cacheid=yes
16404 else $as_nop
16405 eval $cacheid=no
16406 fi
16407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16408 conftest$ac_exeext conftest.$ac_ext
16409 fi
16410
16411
16412 CFLAGS="$xorg_testset_save_CFLAGS"
16413
16414 eval supported=\$$cacheid
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16416 printf "%s\n" "$supported" >&6; }
16417 if test "$supported" = "yes" ; then
16418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16419 found="yes"
16420 fi
16421 fi
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437 xorg_testset_save_CFLAGS="$CFLAGS"
16438
16439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16444 then :
16445 printf %s "(cached) " >&6
16446 else $as_nop
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 int i;
16450 _ACEOF
16451 if ac_fn_c_try_compile "$LINENO"
16452 then :
16453 xorg_cv_cc_flag_unknown_warning_option=yes
16454 else $as_nop
16455 xorg_cv_cc_flag_unknown_warning_option=no
16456 fi
16457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16458 fi
16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16460 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16462 CFLAGS="$xorg_testset_save_CFLAGS"
16463 fi
16464
16465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16468 fi
16469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16473 then :
16474 printf %s "(cached) " >&6
16475 else $as_nop
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16478 int i;
16479 _ACEOF
16480 if ac_fn_c_try_compile "$LINENO"
16481 then :
16482 xorg_cv_cc_flag_unused_command_line_argument=yes
16483 else $as_nop
16484 xorg_cv_cc_flag_unused_command_line_argument=no
16485 fi
16486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16487 fi
16488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16489 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16491 CFLAGS="$xorg_testset_save_CFLAGS"
16492 fi
16493
16494 found="no"
16495
16496 if test $found = "no" ; then
16497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16499 fi
16500
16501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16503 fi
16504
16505 CFLAGS="$CFLAGS -Werror=trigraphs"
16506
16507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16508 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16509 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16510 if eval test \${$cacheid+y}
16511 then :
16512 printf %s "(cached) " >&6
16513 else $as_nop
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516 int i;
16517 int
16518 main (void)
16519 {
16520
16521 ;
16522 return 0;
16523 }
16524 _ACEOF
16525 if ac_fn_c_try_link "$LINENO"
16526 then :
16527 eval $cacheid=yes
16528 else $as_nop
16529 eval $cacheid=no
16530 fi
16531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16532 conftest$ac_exeext conftest.$ac_ext
16533 fi
16534
16535
16536 CFLAGS="$xorg_testset_save_CFLAGS"
16537
16538 eval supported=\$$cacheid
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16540 printf "%s\n" "$supported" >&6; }
16541 if test "$supported" = "yes" ; then
16542 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16543 found="yes"
16544 fi
16545 fi
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561 xorg_testset_save_CFLAGS="$CFLAGS"
16562
16563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16567 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16568 then :
16569 printf %s "(cached) " >&6
16570 else $as_nop
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 int i;
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"
16576 then :
16577 xorg_cv_cc_flag_unknown_warning_option=yes
16578 else $as_nop
16579 xorg_cv_cc_flag_unknown_warning_option=no
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16582 fi
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16584 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16586 CFLAGS="$xorg_testset_save_CFLAGS"
16587 fi
16588
16589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16592 fi
16593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16595 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16596 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16597 then :
16598 printf %s "(cached) " >&6
16599 else $as_nop
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 int i;
16603 _ACEOF
16604 if ac_fn_c_try_compile "$LINENO"
16605 then :
16606 xorg_cv_cc_flag_unused_command_line_argument=yes
16607 else $as_nop
16608 xorg_cv_cc_flag_unused_command_line_argument=no
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16611 fi
16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16613 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16615 CFLAGS="$xorg_testset_save_CFLAGS"
16616 fi
16617
16618 found="no"
16619
16620 if test $found = "no" ; then
16621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16623 fi
16624
16625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16627 fi
16628
16629 CFLAGS="$CFLAGS -Werror=array-bounds"
16630
16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16632 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16633 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16634 if eval test \${$cacheid+y}
16635 then :
16636 printf %s "(cached) " >&6
16637 else $as_nop
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 int i;
16641 int
16642 main (void)
16643 {
16644
16645 ;
16646 return 0;
16647 }
16648 _ACEOF
16649 if ac_fn_c_try_link "$LINENO"
16650 then :
16651 eval $cacheid=yes
16652 else $as_nop
16653 eval $cacheid=no
16654 fi
16655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16656 conftest$ac_exeext conftest.$ac_ext
16657 fi
16658
16659
16660 CFLAGS="$xorg_testset_save_CFLAGS"
16661
16662 eval supported=\$$cacheid
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16664 printf "%s\n" "$supported" >&6; }
16665 if test "$supported" = "yes" ; then
16666 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16667 found="yes"
16668 fi
16669 fi
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685 xorg_testset_save_CFLAGS="$CFLAGS"
16686
16687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16691 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16692 then :
16693 printf %s "(cached) " >&6
16694 else $as_nop
16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h. */
16697 int i;
16698 _ACEOF
16699 if ac_fn_c_try_compile "$LINENO"
16700 then :
16701 xorg_cv_cc_flag_unknown_warning_option=yes
16702 else $as_nop
16703 xorg_cv_cc_flag_unknown_warning_option=no
16704 fi
16705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16706 fi
16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16710 CFLAGS="$xorg_testset_save_CFLAGS"
16711 fi
16712
16713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16716 fi
16717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16721 then :
16722 printf %s "(cached) " >&6
16723 else $as_nop
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 int i;
16727 _ACEOF
16728 if ac_fn_c_try_compile "$LINENO"
16729 then :
16730 xorg_cv_cc_flag_unused_command_line_argument=yes
16731 else $as_nop
16732 xorg_cv_cc_flag_unused_command_line_argument=no
16733 fi
16734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16735 fi
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16737 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16739 CFLAGS="$xorg_testset_save_CFLAGS"
16740 fi
16741
16742 found="no"
16743
16744 if test $found = "no" ; then
16745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16747 fi
16748
16749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16751 fi
16752
16753 CFLAGS="$CFLAGS -Werror=write-strings"
16754
16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16756 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16757 cacheid=xorg_cv_cc_flag__Werror_write_strings
16758 if eval test \${$cacheid+y}
16759 then :
16760 printf %s "(cached) " >&6
16761 else $as_nop
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 int i;
16765 int
16766 main (void)
16767 {
16768
16769 ;
16770 return 0;
16771 }
16772 _ACEOF
16773 if ac_fn_c_try_link "$LINENO"
16774 then :
16775 eval $cacheid=yes
16776 else $as_nop
16777 eval $cacheid=no
16778 fi
16779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16780 conftest$ac_exeext conftest.$ac_ext
16781 fi
16782
16783
16784 CFLAGS="$xorg_testset_save_CFLAGS"
16785
16786 eval supported=\$$cacheid
16787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16788 printf "%s\n" "$supported" >&6; }
16789 if test "$supported" = "yes" ; then
16790 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16791 found="yes"
16792 fi
16793 fi
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809 xorg_testset_save_CFLAGS="$CFLAGS"
16810
16811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16814 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16815 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16816 then :
16817 printf %s "(cached) " >&6
16818 else $as_nop
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821 int i;
16822 _ACEOF
16823 if ac_fn_c_try_compile "$LINENO"
16824 then :
16825 xorg_cv_cc_flag_unknown_warning_option=yes
16826 else $as_nop
16827 xorg_cv_cc_flag_unknown_warning_option=no
16828 fi
16829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16830 fi
16831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16832 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16834 CFLAGS="$xorg_testset_save_CFLAGS"
16835 fi
16836
16837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840 fi
16841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16843 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16844 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16845 then :
16846 printf %s "(cached) " >&6
16847 else $as_nop
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16850 int i;
16851 _ACEOF
16852 if ac_fn_c_try_compile "$LINENO"
16853 then :
16854 xorg_cv_cc_flag_unused_command_line_argument=yes
16855 else $as_nop
16856 xorg_cv_cc_flag_unused_command_line_argument=no
16857 fi
16858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16859 fi
16860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16861 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16863 CFLAGS="$xorg_testset_save_CFLAGS"
16864 fi
16865
16866 found="no"
16867
16868 if test $found = "no" ; then
16869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16871 fi
16872
16873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875 fi
16876
16877 CFLAGS="$CFLAGS -Werror=address"
16878
16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16880 printf %s "checking if $CC supports -Werror=address... " >&6; }
16881 cacheid=xorg_cv_cc_flag__Werror_address
16882 if eval test \${$cacheid+y}
16883 then :
16884 printf %s "(cached) " >&6
16885 else $as_nop
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888 int i;
16889 int
16890 main (void)
16891 {
16892
16893 ;
16894 return 0;
16895 }
16896 _ACEOF
16897 if ac_fn_c_try_link "$LINENO"
16898 then :
16899 eval $cacheid=yes
16900 else $as_nop
16901 eval $cacheid=no
16902 fi
16903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16904 conftest$ac_exeext conftest.$ac_ext
16905 fi
16906
16907
16908 CFLAGS="$xorg_testset_save_CFLAGS"
16909
16910 eval supported=\$$cacheid
16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16912 printf "%s\n" "$supported" >&6; }
16913 if test "$supported" = "yes" ; then
16914 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16915 found="yes"
16916 fi
16917 fi
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933 xorg_testset_save_CFLAGS="$CFLAGS"
16934
16935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16938 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16939 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16940 then :
16941 printf %s "(cached) " >&6
16942 else $as_nop
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16945 int i;
16946 _ACEOF
16947 if ac_fn_c_try_compile "$LINENO"
16948 then :
16949 xorg_cv_cc_flag_unknown_warning_option=yes
16950 else $as_nop
16951 xorg_cv_cc_flag_unknown_warning_option=no
16952 fi
16953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16954 fi
16955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16956 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16958 CFLAGS="$xorg_testset_save_CFLAGS"
16959 fi
16960
16961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964 fi
16965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16969 then :
16970 printf %s "(cached) " >&6
16971 else $as_nop
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16974 int i;
16975 _ACEOF
16976 if ac_fn_c_try_compile "$LINENO"
16977 then :
16978 xorg_cv_cc_flag_unused_command_line_argument=yes
16979 else $as_nop
16980 xorg_cv_cc_flag_unused_command_line_argument=no
16981 fi
16982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16983 fi
16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16987 CFLAGS="$xorg_testset_save_CFLAGS"
16988 fi
16989
16990 found="no"
16991
16992 if test $found = "no" ; then
16993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995 fi
16996
16997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16999 fi
17000
17001 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17002
17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17004 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17005 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17006 if eval test \${$cacheid+y}
17007 then :
17008 printf %s "(cached) " >&6
17009 else $as_nop
17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h. */
17012 int i;
17013 int
17014 main (void)
17015 {
17016
17017 ;
17018 return 0;
17019 }
17020 _ACEOF
17021 if ac_fn_c_try_link "$LINENO"
17022 then :
17023 eval $cacheid=yes
17024 else $as_nop
17025 eval $cacheid=no
17026 fi
17027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17028 conftest$ac_exeext conftest.$ac_ext
17029 fi
17030
17031
17032 CFLAGS="$xorg_testset_save_CFLAGS"
17033
17034 eval supported=\$$cacheid
17035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17036 printf "%s\n" "$supported" >&6; }
17037 if test "$supported" = "yes" ; then
17038 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17039 found="yes"
17040 fi
17041 fi
17042
17043 if test $found = "no" ; then
17044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046 fi
17047
17048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17050 fi
17051
17052 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17053
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17055 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17056 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17057 if eval test \${$cacheid+y}
17058 then :
17059 printf %s "(cached) " >&6
17060 else $as_nop
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17063 int i;
17064 int
17065 main (void)
17066 {
17067
17068 ;
17069 return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"
17073 then :
17074 eval $cacheid=yes
17075 else $as_nop
17076 eval $cacheid=no
17077 fi
17078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17079 conftest$ac_exeext conftest.$ac_ext
17080 fi
17081
17082
17083 CFLAGS="$xorg_testset_save_CFLAGS"
17084
17085 eval supported=\$$cacheid
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17087 printf "%s\n" "$supported" >&6; }
17088 if test "$supported" = "yes" ; then
17089 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17090 found="yes"
17091 fi
17092 fi
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108 xorg_testset_save_CFLAGS="$CFLAGS"
17109
17110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17114 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17115 then :
17116 printf %s "(cached) " >&6
17117 else $as_nop
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17120 int i;
17121 _ACEOF
17122 if ac_fn_c_try_compile "$LINENO"
17123 then :
17124 xorg_cv_cc_flag_unknown_warning_option=yes
17125 else $as_nop
17126 xorg_cv_cc_flag_unknown_warning_option=no
17127 fi
17128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17129 fi
17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17133 CFLAGS="$xorg_testset_save_CFLAGS"
17134 fi
17135
17136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17139 fi
17140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17144 then :
17145 printf %s "(cached) " >&6
17146 else $as_nop
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149 int i;
17150 _ACEOF
17151 if ac_fn_c_try_compile "$LINENO"
17152 then :
17153 xorg_cv_cc_flag_unused_command_line_argument=yes
17154 else $as_nop
17155 xorg_cv_cc_flag_unused_command_line_argument=no
17156 fi
17157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17158 fi
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17162 CFLAGS="$xorg_testset_save_CFLAGS"
17163 fi
17164
17165 found="no"
17166
17167 if test $found = "no" ; then
17168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17170 fi
17171
17172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17174 fi
17175
17176 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17177
17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17179 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17180 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17181 if eval test \${$cacheid+y}
17182 then :
17183 printf %s "(cached) " >&6
17184 else $as_nop
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17187 int i;
17188 int
17189 main (void)
17190 {
17191
17192 ;
17193 return 0;
17194 }
17195 _ACEOF
17196 if ac_fn_c_try_link "$LINENO"
17197 then :
17198 eval $cacheid=yes
17199 else $as_nop
17200 eval $cacheid=no
17201 fi
17202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17203 conftest$ac_exeext conftest.$ac_ext
17204 fi
17205
17206
17207 CFLAGS="$xorg_testset_save_CFLAGS"
17208
17209 eval supported=\$$cacheid
17210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17211 printf "%s\n" "$supported" >&6; }
17212 if test "$supported" = "yes" ; then
17213 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17214 found="yes"
17215 fi
17216 fi
17217
17218 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17219 else
17220 { 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
17221 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;}
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235 xorg_testset_save_CFLAGS="$CFLAGS"
17236
17237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17241 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17242 then :
17243 printf %s "(cached) " >&6
17244 else $as_nop
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 int i;
17248 _ACEOF
17249 if ac_fn_c_try_compile "$LINENO"
17250 then :
17251 xorg_cv_cc_flag_unknown_warning_option=yes
17252 else $as_nop
17253 xorg_cv_cc_flag_unknown_warning_option=no
17254 fi
17255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17256 fi
17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17260 CFLAGS="$xorg_testset_save_CFLAGS"
17261 fi
17262
17263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17266 fi
17267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17271 then :
17272 printf %s "(cached) " >&6
17273 else $as_nop
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17276 int i;
17277 _ACEOF
17278 if ac_fn_c_try_compile "$LINENO"
17279 then :
17280 xorg_cv_cc_flag_unused_command_line_argument=yes
17281 else $as_nop
17282 xorg_cv_cc_flag_unused_command_line_argument=no
17283 fi
17284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17285 fi
17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17287 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17289 CFLAGS="$xorg_testset_save_CFLAGS"
17290 fi
17291
17292 found="no"
17293
17294 if test $found = "no" ; then
17295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17297 fi
17298
17299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17301 fi
17302
17303 CFLAGS="$CFLAGS -Wimplicit"
17304
17305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17306 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17307 cacheid=xorg_cv_cc_flag__Wimplicit
17308 if eval test \${$cacheid+y}
17309 then :
17310 printf %s "(cached) " >&6
17311 else $as_nop
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17314 int i;
17315 int
17316 main (void)
17317 {
17318
17319 ;
17320 return 0;
17321 }
17322 _ACEOF
17323 if ac_fn_c_try_link "$LINENO"
17324 then :
17325 eval $cacheid=yes
17326 else $as_nop
17327 eval $cacheid=no
17328 fi
17329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17330 conftest$ac_exeext conftest.$ac_ext
17331 fi
17332
17333
17334 CFLAGS="$xorg_testset_save_CFLAGS"
17335
17336 eval supported=\$$cacheid
17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17338 printf "%s\n" "$supported" >&6; }
17339 if test "$supported" = "yes" ; then
17340 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17341 found="yes"
17342 fi
17343 fi
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359 xorg_testset_save_CFLAGS="$CFLAGS"
17360
17361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17364 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17365 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17366 then :
17367 printf %s "(cached) " >&6
17368 else $as_nop
17369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370 /* end confdefs.h. */
17371 int i;
17372 _ACEOF
17373 if ac_fn_c_try_compile "$LINENO"
17374 then :
17375 xorg_cv_cc_flag_unknown_warning_option=yes
17376 else $as_nop
17377 xorg_cv_cc_flag_unknown_warning_option=no
17378 fi
17379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17380 fi
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17382 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17384 CFLAGS="$xorg_testset_save_CFLAGS"
17385 fi
17386
17387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17390 fi
17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17393 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17394 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17395 then :
17396 printf %s "(cached) " >&6
17397 else $as_nop
17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399 /* end confdefs.h. */
17400 int i;
17401 _ACEOF
17402 if ac_fn_c_try_compile "$LINENO"
17403 then :
17404 xorg_cv_cc_flag_unused_command_line_argument=yes
17405 else $as_nop
17406 xorg_cv_cc_flag_unused_command_line_argument=no
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17409 fi
17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17411 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17413 CFLAGS="$xorg_testset_save_CFLAGS"
17414 fi
17415
17416 found="no"
17417
17418 if test $found = "no" ; then
17419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421 fi
17422
17423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17425 fi
17426
17427 CFLAGS="$CFLAGS -Wnonnull"
17428
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17430 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17431 cacheid=xorg_cv_cc_flag__Wnonnull
17432 if eval test \${$cacheid+y}
17433 then :
17434 printf %s "(cached) " >&6
17435 else $as_nop
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 int i;
17439 int
17440 main (void)
17441 {
17442
17443 ;
17444 return 0;
17445 }
17446 _ACEOF
17447 if ac_fn_c_try_link "$LINENO"
17448 then :
17449 eval $cacheid=yes
17450 else $as_nop
17451 eval $cacheid=no
17452 fi
17453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17454 conftest$ac_exeext conftest.$ac_ext
17455 fi
17456
17457
17458 CFLAGS="$xorg_testset_save_CFLAGS"
17459
17460 eval supported=\$$cacheid
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17462 printf "%s\n" "$supported" >&6; }
17463 if test "$supported" = "yes" ; then
17464 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17465 found="yes"
17466 fi
17467 fi
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483 xorg_testset_save_CFLAGS="$CFLAGS"
17484
17485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17490 then :
17491 printf %s "(cached) " >&6
17492 else $as_nop
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17495 int i;
17496 _ACEOF
17497 if ac_fn_c_try_compile "$LINENO"
17498 then :
17499 xorg_cv_cc_flag_unknown_warning_option=yes
17500 else $as_nop
17501 xorg_cv_cc_flag_unknown_warning_option=no
17502 fi
17503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17504 fi
17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17508 CFLAGS="$xorg_testset_save_CFLAGS"
17509 fi
17510
17511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17514 fi
17515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17519 then :
17520 printf %s "(cached) " >&6
17521 else $as_nop
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524 int i;
17525 _ACEOF
17526 if ac_fn_c_try_compile "$LINENO"
17527 then :
17528 xorg_cv_cc_flag_unused_command_line_argument=yes
17529 else $as_nop
17530 xorg_cv_cc_flag_unused_command_line_argument=no
17531 fi
17532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17533 fi
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17537 CFLAGS="$xorg_testset_save_CFLAGS"
17538 fi
17539
17540 found="no"
17541
17542 if test $found = "no" ; then
17543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17545 fi
17546
17547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17549 fi
17550
17551 CFLAGS="$CFLAGS -Winit-self"
17552
17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17554 printf %s "checking if $CC supports -Winit-self... " >&6; }
17555 cacheid=xorg_cv_cc_flag__Winit_self
17556 if eval test \${$cacheid+y}
17557 then :
17558 printf %s "(cached) " >&6
17559 else $as_nop
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17562 int i;
17563 int
17564 main (void)
17565 {
17566
17567 ;
17568 return 0;
17569 }
17570 _ACEOF
17571 if ac_fn_c_try_link "$LINENO"
17572 then :
17573 eval $cacheid=yes
17574 else $as_nop
17575 eval $cacheid=no
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17578 conftest$ac_exeext conftest.$ac_ext
17579 fi
17580
17581
17582 CFLAGS="$xorg_testset_save_CFLAGS"
17583
17584 eval supported=\$$cacheid
17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17586 printf "%s\n" "$supported" >&6; }
17587 if test "$supported" = "yes" ; then
17588 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17589 found="yes"
17590 fi
17591 fi
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607 xorg_testset_save_CFLAGS="$CFLAGS"
17608
17609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17614 then :
17615 printf %s "(cached) " >&6
17616 else $as_nop
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 int i;
17620 _ACEOF
17621 if ac_fn_c_try_compile "$LINENO"
17622 then :
17623 xorg_cv_cc_flag_unknown_warning_option=yes
17624 else $as_nop
17625 xorg_cv_cc_flag_unknown_warning_option=no
17626 fi
17627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17628 fi
17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17632 CFLAGS="$xorg_testset_save_CFLAGS"
17633 fi
17634
17635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17638 fi
17639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17643 then :
17644 printf %s "(cached) " >&6
17645 else $as_nop
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648 int i;
17649 _ACEOF
17650 if ac_fn_c_try_compile "$LINENO"
17651 then :
17652 xorg_cv_cc_flag_unused_command_line_argument=yes
17653 else $as_nop
17654 xorg_cv_cc_flag_unused_command_line_argument=no
17655 fi
17656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17657 fi
17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17661 CFLAGS="$xorg_testset_save_CFLAGS"
17662 fi
17663
17664 found="no"
17665
17666 if test $found = "no" ; then
17667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17669 fi
17670
17671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17673 fi
17674
17675 CFLAGS="$CFLAGS -Wmain"
17676
17677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17678 printf %s "checking if $CC supports -Wmain... " >&6; }
17679 cacheid=xorg_cv_cc_flag__Wmain
17680 if eval test \${$cacheid+y}
17681 then :
17682 printf %s "(cached) " >&6
17683 else $as_nop
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686 int i;
17687 int
17688 main (void)
17689 {
17690
17691 ;
17692 return 0;
17693 }
17694 _ACEOF
17695 if ac_fn_c_try_link "$LINENO"
17696 then :
17697 eval $cacheid=yes
17698 else $as_nop
17699 eval $cacheid=no
17700 fi
17701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17702 conftest$ac_exeext conftest.$ac_ext
17703 fi
17704
17705
17706 CFLAGS="$xorg_testset_save_CFLAGS"
17707
17708 eval supported=\$$cacheid
17709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17710 printf "%s\n" "$supported" >&6; }
17711 if test "$supported" = "yes" ; then
17712 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17713 found="yes"
17714 fi
17715 fi
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731 xorg_testset_save_CFLAGS="$CFLAGS"
17732
17733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17737 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17738 then :
17739 printf %s "(cached) " >&6
17740 else $as_nop
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17743 int i;
17744 _ACEOF
17745 if ac_fn_c_try_compile "$LINENO"
17746 then :
17747 xorg_cv_cc_flag_unknown_warning_option=yes
17748 else $as_nop
17749 xorg_cv_cc_flag_unknown_warning_option=no
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17752 fi
17753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17756 CFLAGS="$xorg_testset_save_CFLAGS"
17757 fi
17758
17759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17762 fi
17763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17767 then :
17768 printf %s "(cached) " >&6
17769 else $as_nop
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17772 int i;
17773 _ACEOF
17774 if ac_fn_c_try_compile "$LINENO"
17775 then :
17776 xorg_cv_cc_flag_unused_command_line_argument=yes
17777 else $as_nop
17778 xorg_cv_cc_flag_unused_command_line_argument=no
17779 fi
17780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17781 fi
17782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17785 CFLAGS="$xorg_testset_save_CFLAGS"
17786 fi
17787
17788 found="no"
17789
17790 if test $found = "no" ; then
17791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17793 fi
17794
17795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17797 fi
17798
17799 CFLAGS="$CFLAGS -Wmissing-braces"
17800
17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17802 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17803 cacheid=xorg_cv_cc_flag__Wmissing_braces
17804 if eval test \${$cacheid+y}
17805 then :
17806 printf %s "(cached) " >&6
17807 else $as_nop
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810 int i;
17811 int
17812 main (void)
17813 {
17814
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 if ac_fn_c_try_link "$LINENO"
17820 then :
17821 eval $cacheid=yes
17822 else $as_nop
17823 eval $cacheid=no
17824 fi
17825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17826 conftest$ac_exeext conftest.$ac_ext
17827 fi
17828
17829
17830 CFLAGS="$xorg_testset_save_CFLAGS"
17831
17832 eval supported=\$$cacheid
17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17834 printf "%s\n" "$supported" >&6; }
17835 if test "$supported" = "yes" ; then
17836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17837 found="yes"
17838 fi
17839 fi
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855 xorg_testset_save_CFLAGS="$CFLAGS"
17856
17857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17862 then :
17863 printf %s "(cached) " >&6
17864 else $as_nop
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 int i;
17868 _ACEOF
17869 if ac_fn_c_try_compile "$LINENO"
17870 then :
17871 xorg_cv_cc_flag_unknown_warning_option=yes
17872 else $as_nop
17873 xorg_cv_cc_flag_unknown_warning_option=no
17874 fi
17875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17876 fi
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17878 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17880 CFLAGS="$xorg_testset_save_CFLAGS"
17881 fi
17882
17883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886 fi
17887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17889 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17890 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17891 then :
17892 printf %s "(cached) " >&6
17893 else $as_nop
17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17896 int i;
17897 _ACEOF
17898 if ac_fn_c_try_compile "$LINENO"
17899 then :
17900 xorg_cv_cc_flag_unused_command_line_argument=yes
17901 else $as_nop
17902 xorg_cv_cc_flag_unused_command_line_argument=no
17903 fi
17904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17905 fi
17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17907 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17909 CFLAGS="$xorg_testset_save_CFLAGS"
17910 fi
17911
17912 found="no"
17913
17914 if test $found = "no" ; then
17915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17917 fi
17918
17919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17921 fi
17922
17923 CFLAGS="$CFLAGS -Wsequence-point"
17924
17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17926 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17927 cacheid=xorg_cv_cc_flag__Wsequence_point
17928 if eval test \${$cacheid+y}
17929 then :
17930 printf %s "(cached) " >&6
17931 else $as_nop
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934 int i;
17935 int
17936 main (void)
17937 {
17938
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 if ac_fn_c_try_link "$LINENO"
17944 then :
17945 eval $cacheid=yes
17946 else $as_nop
17947 eval $cacheid=no
17948 fi
17949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17950 conftest$ac_exeext conftest.$ac_ext
17951 fi
17952
17953
17954 CFLAGS="$xorg_testset_save_CFLAGS"
17955
17956 eval supported=\$$cacheid
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17958 printf "%s\n" "$supported" >&6; }
17959 if test "$supported" = "yes" ; then
17960 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17961 found="yes"
17962 fi
17963 fi
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979 xorg_testset_save_CFLAGS="$CFLAGS"
17980
17981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17986 then :
17987 printf %s "(cached) " >&6
17988 else $as_nop
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991 int i;
17992 _ACEOF
17993 if ac_fn_c_try_compile "$LINENO"
17994 then :
17995 xorg_cv_cc_flag_unknown_warning_option=yes
17996 else $as_nop
17997 xorg_cv_cc_flag_unknown_warning_option=no
17998 fi
17999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18000 fi
18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18002 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18004 CFLAGS="$xorg_testset_save_CFLAGS"
18005 fi
18006
18007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18010 fi
18011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18013 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18014 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18015 then :
18016 printf %s "(cached) " >&6
18017 else $as_nop
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020 int i;
18021 _ACEOF
18022 if ac_fn_c_try_compile "$LINENO"
18023 then :
18024 xorg_cv_cc_flag_unused_command_line_argument=yes
18025 else $as_nop
18026 xorg_cv_cc_flag_unused_command_line_argument=no
18027 fi
18028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18029 fi
18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18031 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18033 CFLAGS="$xorg_testset_save_CFLAGS"
18034 fi
18035
18036 found="no"
18037
18038 if test $found = "no" ; then
18039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18041 fi
18042
18043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18045 fi
18046
18047 CFLAGS="$CFLAGS -Wreturn-type"
18048
18049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18050 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18051 cacheid=xorg_cv_cc_flag__Wreturn_type
18052 if eval test \${$cacheid+y}
18053 then :
18054 printf %s "(cached) " >&6
18055 else $as_nop
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058 int i;
18059 int
18060 main (void)
18061 {
18062
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"
18068 then :
18069 eval $cacheid=yes
18070 else $as_nop
18071 eval $cacheid=no
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18074 conftest$ac_exeext conftest.$ac_ext
18075 fi
18076
18077
18078 CFLAGS="$xorg_testset_save_CFLAGS"
18079
18080 eval supported=\$$cacheid
18081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18082 printf "%s\n" "$supported" >&6; }
18083 if test "$supported" = "yes" ; then
18084 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18085 found="yes"
18086 fi
18087 fi
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103 xorg_testset_save_CFLAGS="$CFLAGS"
18104
18105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18109 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18110 then :
18111 printf %s "(cached) " >&6
18112 else $as_nop
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115 int i;
18116 _ACEOF
18117 if ac_fn_c_try_compile "$LINENO"
18118 then :
18119 xorg_cv_cc_flag_unknown_warning_option=yes
18120 else $as_nop
18121 xorg_cv_cc_flag_unknown_warning_option=no
18122 fi
18123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18124 fi
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18126 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18128 CFLAGS="$xorg_testset_save_CFLAGS"
18129 fi
18130
18131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18134 fi
18135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18137 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18138 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18139 then :
18140 printf %s "(cached) " >&6
18141 else $as_nop
18142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18143 /* end confdefs.h. */
18144 int i;
18145 _ACEOF
18146 if ac_fn_c_try_compile "$LINENO"
18147 then :
18148 xorg_cv_cc_flag_unused_command_line_argument=yes
18149 else $as_nop
18150 xorg_cv_cc_flag_unused_command_line_argument=no
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18153 fi
18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18155 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18157 CFLAGS="$xorg_testset_save_CFLAGS"
18158 fi
18159
18160 found="no"
18161
18162 if test $found = "no" ; then
18163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18165 fi
18166
18167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18169 fi
18170
18171 CFLAGS="$CFLAGS -Wtrigraphs"
18172
18173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18174 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18175 cacheid=xorg_cv_cc_flag__Wtrigraphs
18176 if eval test \${$cacheid+y}
18177 then :
18178 printf %s "(cached) " >&6
18179 else $as_nop
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182 int i;
18183 int
18184 main (void)
18185 {
18186
18187 ;
18188 return 0;
18189 }
18190 _ACEOF
18191 if ac_fn_c_try_link "$LINENO"
18192 then :
18193 eval $cacheid=yes
18194 else $as_nop
18195 eval $cacheid=no
18196 fi
18197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18198 conftest$ac_exeext conftest.$ac_ext
18199 fi
18200
18201
18202 CFLAGS="$xorg_testset_save_CFLAGS"
18203
18204 eval supported=\$$cacheid
18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18206 printf "%s\n" "$supported" >&6; }
18207 if test "$supported" = "yes" ; then
18208 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18209 found="yes"
18210 fi
18211 fi
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227 xorg_testset_save_CFLAGS="$CFLAGS"
18228
18229 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18232 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18233 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18234 then :
18235 printf %s "(cached) " >&6
18236 else $as_nop
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 int i;
18240 _ACEOF
18241 if ac_fn_c_try_compile "$LINENO"
18242 then :
18243 xorg_cv_cc_flag_unknown_warning_option=yes
18244 else $as_nop
18245 xorg_cv_cc_flag_unknown_warning_option=no
18246 fi
18247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18248 fi
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18250 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18252 CFLAGS="$xorg_testset_save_CFLAGS"
18253 fi
18254
18255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18258 fi
18259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18261 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18262 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18263 then :
18264 printf %s "(cached) " >&6
18265 else $as_nop
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18268 int i;
18269 _ACEOF
18270 if ac_fn_c_try_compile "$LINENO"
18271 then :
18272 xorg_cv_cc_flag_unused_command_line_argument=yes
18273 else $as_nop
18274 xorg_cv_cc_flag_unused_command_line_argument=no
18275 fi
18276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18277 fi
18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18281 CFLAGS="$xorg_testset_save_CFLAGS"
18282 fi
18283
18284 found="no"
18285
18286 if test $found = "no" ; then
18287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18289 fi
18290
18291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18293 fi
18294
18295 CFLAGS="$CFLAGS -Warray-bounds"
18296
18297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18298 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18299 cacheid=xorg_cv_cc_flag__Warray_bounds
18300 if eval test \${$cacheid+y}
18301 then :
18302 printf %s "(cached) " >&6
18303 else $as_nop
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18306 int i;
18307 int
18308 main (void)
18309 {
18310
18311 ;
18312 return 0;
18313 }
18314 _ACEOF
18315 if ac_fn_c_try_link "$LINENO"
18316 then :
18317 eval $cacheid=yes
18318 else $as_nop
18319 eval $cacheid=no
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18322 conftest$ac_exeext conftest.$ac_ext
18323 fi
18324
18325
18326 CFLAGS="$xorg_testset_save_CFLAGS"
18327
18328 eval supported=\$$cacheid
18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18330 printf "%s\n" "$supported" >&6; }
18331 if test "$supported" = "yes" ; then
18332 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18333 found="yes"
18334 fi
18335 fi
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351 xorg_testset_save_CFLAGS="$CFLAGS"
18352
18353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18356 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18357 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18358 then :
18359 printf %s "(cached) " >&6
18360 else $as_nop
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18363 int i;
18364 _ACEOF
18365 if ac_fn_c_try_compile "$LINENO"
18366 then :
18367 xorg_cv_cc_flag_unknown_warning_option=yes
18368 else $as_nop
18369 xorg_cv_cc_flag_unknown_warning_option=no
18370 fi
18371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18372 fi
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18374 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18376 CFLAGS="$xorg_testset_save_CFLAGS"
18377 fi
18378
18379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18382 fi
18383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18385 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18386 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18387 then :
18388 printf %s "(cached) " >&6
18389 else $as_nop
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18392 int i;
18393 _ACEOF
18394 if ac_fn_c_try_compile "$LINENO"
18395 then :
18396 xorg_cv_cc_flag_unused_command_line_argument=yes
18397 else $as_nop
18398 xorg_cv_cc_flag_unused_command_line_argument=no
18399 fi
18400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18401 fi
18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18405 CFLAGS="$xorg_testset_save_CFLAGS"
18406 fi
18407
18408 found="no"
18409
18410 if test $found = "no" ; then
18411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18413 fi
18414
18415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18417 fi
18418
18419 CFLAGS="$CFLAGS -Wwrite-strings"
18420
18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18422 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18423 cacheid=xorg_cv_cc_flag__Wwrite_strings
18424 if eval test \${$cacheid+y}
18425 then :
18426 printf %s "(cached) " >&6
18427 else $as_nop
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18430 int i;
18431 int
18432 main (void)
18433 {
18434
18435 ;
18436 return 0;
18437 }
18438 _ACEOF
18439 if ac_fn_c_try_link "$LINENO"
18440 then :
18441 eval $cacheid=yes
18442 else $as_nop
18443 eval $cacheid=no
18444 fi
18445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18446 conftest$ac_exeext conftest.$ac_ext
18447 fi
18448
18449
18450 CFLAGS="$xorg_testset_save_CFLAGS"
18451
18452 eval supported=\$$cacheid
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18454 printf "%s\n" "$supported" >&6; }
18455 if test "$supported" = "yes" ; then
18456 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18457 found="yes"
18458 fi
18459 fi
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475 xorg_testset_save_CFLAGS="$CFLAGS"
18476
18477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18482 then :
18483 printf %s "(cached) " >&6
18484 else $as_nop
18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18487 int i;
18488 _ACEOF
18489 if ac_fn_c_try_compile "$LINENO"
18490 then :
18491 xorg_cv_cc_flag_unknown_warning_option=yes
18492 else $as_nop
18493 xorg_cv_cc_flag_unknown_warning_option=no
18494 fi
18495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18496 fi
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18500 CFLAGS="$xorg_testset_save_CFLAGS"
18501 fi
18502
18503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18506 fi
18507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18511 then :
18512 printf %s "(cached) " >&6
18513 else $as_nop
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18516 int i;
18517 _ACEOF
18518 if ac_fn_c_try_compile "$LINENO"
18519 then :
18520 xorg_cv_cc_flag_unused_command_line_argument=yes
18521 else $as_nop
18522 xorg_cv_cc_flag_unused_command_line_argument=no
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18525 fi
18526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18529 CFLAGS="$xorg_testset_save_CFLAGS"
18530 fi
18531
18532 found="no"
18533
18534 if test $found = "no" ; then
18535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18537 fi
18538
18539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18541 fi
18542
18543 CFLAGS="$CFLAGS -Waddress"
18544
18545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18546 printf %s "checking if $CC supports -Waddress... " >&6; }
18547 cacheid=xorg_cv_cc_flag__Waddress
18548 if eval test \${$cacheid+y}
18549 then :
18550 printf %s "(cached) " >&6
18551 else $as_nop
18552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553 /* end confdefs.h. */
18554 int i;
18555 int
18556 main (void)
18557 {
18558
18559 ;
18560 return 0;
18561 }
18562 _ACEOF
18563 if ac_fn_c_try_link "$LINENO"
18564 then :
18565 eval $cacheid=yes
18566 else $as_nop
18567 eval $cacheid=no
18568 fi
18569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18570 conftest$ac_exeext conftest.$ac_ext
18571 fi
18572
18573
18574 CFLAGS="$xorg_testset_save_CFLAGS"
18575
18576 eval supported=\$$cacheid
18577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18578 printf "%s\n" "$supported" >&6; }
18579 if test "$supported" = "yes" ; then
18580 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18581 found="yes"
18582 fi
18583 fi
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599 xorg_testset_save_CFLAGS="$CFLAGS"
18600
18601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18606 then :
18607 printf %s "(cached) " >&6
18608 else $as_nop
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18611 int i;
18612 _ACEOF
18613 if ac_fn_c_try_compile "$LINENO"
18614 then :
18615 xorg_cv_cc_flag_unknown_warning_option=yes
18616 else $as_nop
18617 xorg_cv_cc_flag_unknown_warning_option=no
18618 fi
18619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18620 fi
18621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18624 CFLAGS="$xorg_testset_save_CFLAGS"
18625 fi
18626
18627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18630 fi
18631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18635 then :
18636 printf %s "(cached) " >&6
18637 else $as_nop
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640 int i;
18641 _ACEOF
18642 if ac_fn_c_try_compile "$LINENO"
18643 then :
18644 xorg_cv_cc_flag_unused_command_line_argument=yes
18645 else $as_nop
18646 xorg_cv_cc_flag_unused_command_line_argument=no
18647 fi
18648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18649 fi
18650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18653 CFLAGS="$xorg_testset_save_CFLAGS"
18654 fi
18655
18656 found="no"
18657
18658 if test $found = "no" ; then
18659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18661 fi
18662
18663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18665 fi
18666
18667 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18668
18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18670 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18671 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18672 if eval test \${$cacheid+y}
18673 then :
18674 printf %s "(cached) " >&6
18675 else $as_nop
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18678 int i;
18679 int
18680 main (void)
18681 {
18682
18683 ;
18684 return 0;
18685 }
18686 _ACEOF
18687 if ac_fn_c_try_link "$LINENO"
18688 then :
18689 eval $cacheid=yes
18690 else $as_nop
18691 eval $cacheid=no
18692 fi
18693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18694 conftest$ac_exeext conftest.$ac_ext
18695 fi
18696
18697
18698 CFLAGS="$xorg_testset_save_CFLAGS"
18699
18700 eval supported=\$$cacheid
18701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18702 printf "%s\n" "$supported" >&6; }
18703 if test "$supported" = "yes" ; then
18704 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18705 found="yes"
18706 fi
18707 fi
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723 xorg_testset_save_CFLAGS="$CFLAGS"
18724
18725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18728 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18729 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18730 then :
18731 printf %s "(cached) " >&6
18732 else $as_nop
18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18734 /* end confdefs.h. */
18735 int i;
18736 _ACEOF
18737 if ac_fn_c_try_compile "$LINENO"
18738 then :
18739 xorg_cv_cc_flag_unknown_warning_option=yes
18740 else $as_nop
18741 xorg_cv_cc_flag_unknown_warning_option=no
18742 fi
18743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18744 fi
18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18746 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18748 CFLAGS="$xorg_testset_save_CFLAGS"
18749 fi
18750
18751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18754 fi
18755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18757 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18758 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18759 then :
18760 printf %s "(cached) " >&6
18761 else $as_nop
18762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h. */
18764 int i;
18765 _ACEOF
18766 if ac_fn_c_try_compile "$LINENO"
18767 then :
18768 xorg_cv_cc_flag_unused_command_line_argument=yes
18769 else $as_nop
18770 xorg_cv_cc_flag_unused_command_line_argument=no
18771 fi
18772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18773 fi
18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18777 CFLAGS="$xorg_testset_save_CFLAGS"
18778 fi
18779
18780 found="no"
18781
18782 if test $found = "no" ; then
18783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18785 fi
18786
18787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18789 fi
18790
18791 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18792
18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18794 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18795 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18796 if eval test \${$cacheid+y}
18797 then :
18798 printf %s "(cached) " >&6
18799 else $as_nop
18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18802 int i;
18803 int
18804 main (void)
18805 {
18806
18807 ;
18808 return 0;
18809 }
18810 _ACEOF
18811 if ac_fn_c_try_link "$LINENO"
18812 then :
18813 eval $cacheid=yes
18814 else $as_nop
18815 eval $cacheid=no
18816 fi
18817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18818 conftest$ac_exeext conftest.$ac_ext
18819 fi
18820
18821
18822 CFLAGS="$xorg_testset_save_CFLAGS"
18823
18824 eval supported=\$$cacheid
18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18826 printf "%s\n" "$supported" >&6; }
18827 if test "$supported" = "yes" ; then
18828 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18829 found="yes"
18830 fi
18831 fi
18832
18833
18834 fi
18835
18836
18837
18838
18839
18840
18841
18842 CWARNFLAGS="$BASE_CFLAGS"
18843 if test "x$GCC" = xyes ; then
18844 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18845 fi
18846
18847
18848
18849
18850
18851
18852
18853
18854 # Check whether --enable-strict-compilation was given.
18855 if test ${enable_strict_compilation+y}
18856 then :
18857 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18858 else $as_nop
18859 STRICT_COMPILE=no
18860 fi
18861
18862
18863
18864
18865
18866
18867 STRICT_CFLAGS=""
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881 xorg_testset_save_CFLAGS="$CFLAGS"
18882
18883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18887 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18888 then :
18889 printf %s "(cached) " >&6
18890 else $as_nop
18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18893 int i;
18894 _ACEOF
18895 if ac_fn_c_try_compile "$LINENO"
18896 then :
18897 xorg_cv_cc_flag_unknown_warning_option=yes
18898 else $as_nop
18899 xorg_cv_cc_flag_unknown_warning_option=no
18900 fi
18901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18902 fi
18903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18906 CFLAGS="$xorg_testset_save_CFLAGS"
18907 fi
18908
18909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18912 fi
18913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18917 then :
18918 printf %s "(cached) " >&6
18919 else $as_nop
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18922 int i;
18923 _ACEOF
18924 if ac_fn_c_try_compile "$LINENO"
18925 then :
18926 xorg_cv_cc_flag_unused_command_line_argument=yes
18927 else $as_nop
18928 xorg_cv_cc_flag_unused_command_line_argument=no
18929 fi
18930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18931 fi
18932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18935 CFLAGS="$xorg_testset_save_CFLAGS"
18936 fi
18937
18938 found="no"
18939
18940 if test $found = "no" ; then
18941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18943 fi
18944
18945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18947 fi
18948
18949 CFLAGS="$CFLAGS -pedantic"
18950
18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18952 printf %s "checking if $CC supports -pedantic... " >&6; }
18953 cacheid=xorg_cv_cc_flag__pedantic
18954 if eval test \${$cacheid+y}
18955 then :
18956 printf %s "(cached) " >&6
18957 else $as_nop
18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959 /* end confdefs.h. */
18960 int i;
18961 int
18962 main (void)
18963 {
18964
18965 ;
18966 return 0;
18967 }
18968 _ACEOF
18969 if ac_fn_c_try_link "$LINENO"
18970 then :
18971 eval $cacheid=yes
18972 else $as_nop
18973 eval $cacheid=no
18974 fi
18975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18976 conftest$ac_exeext conftest.$ac_ext
18977 fi
18978
18979
18980 CFLAGS="$xorg_testset_save_CFLAGS"
18981
18982 eval supported=\$$cacheid
18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18984 printf "%s\n" "$supported" >&6; }
18985 if test "$supported" = "yes" ; then
18986 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18987 found="yes"
18988 fi
18989 fi
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005 xorg_testset_save_CFLAGS="$CFLAGS"
19006
19007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19012 then :
19013 printf %s "(cached) " >&6
19014 else $as_nop
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19017 int i;
19018 _ACEOF
19019 if ac_fn_c_try_compile "$LINENO"
19020 then :
19021 xorg_cv_cc_flag_unknown_warning_option=yes
19022 else $as_nop
19023 xorg_cv_cc_flag_unknown_warning_option=no
19024 fi
19025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19026 fi
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19030 CFLAGS="$xorg_testset_save_CFLAGS"
19031 fi
19032
19033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19036 fi
19037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19041 then :
19042 printf %s "(cached) " >&6
19043 else $as_nop
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19046 int i;
19047 _ACEOF
19048 if ac_fn_c_try_compile "$LINENO"
19049 then :
19050 xorg_cv_cc_flag_unused_command_line_argument=yes
19051 else $as_nop
19052 xorg_cv_cc_flag_unused_command_line_argument=no
19053 fi
19054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19055 fi
19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19059 CFLAGS="$xorg_testset_save_CFLAGS"
19060 fi
19061
19062 found="no"
19063
19064 if test $found = "no" ; then
19065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19067 fi
19068
19069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19071 fi
19072
19073 CFLAGS="$CFLAGS -Werror"
19074
19075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19076 printf %s "checking if $CC supports -Werror... " >&6; }
19077 cacheid=xorg_cv_cc_flag__Werror
19078 if eval test \${$cacheid+y}
19079 then :
19080 printf %s "(cached) " >&6
19081 else $as_nop
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 int i;
19085 int
19086 main (void)
19087 {
19088
19089 ;
19090 return 0;
19091 }
19092 _ACEOF
19093 if ac_fn_c_try_link "$LINENO"
19094 then :
19095 eval $cacheid=yes
19096 else $as_nop
19097 eval $cacheid=no
19098 fi
19099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19100 conftest$ac_exeext conftest.$ac_ext
19101 fi
19102
19103
19104 CFLAGS="$xorg_testset_save_CFLAGS"
19105
19106 eval supported=\$$cacheid
19107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19108 printf "%s\n" "$supported" >&6; }
19109 if test "$supported" = "yes" ; then
19110 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19111 found="yes"
19112 fi
19113 fi
19114
19115 if test $found = "no" ; then
19116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19118 fi
19119
19120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19122 fi
19123
19124 CFLAGS="$CFLAGS -errwarn"
19125
19126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19127 printf %s "checking if $CC supports -errwarn... " >&6; }
19128 cacheid=xorg_cv_cc_flag__errwarn
19129 if eval test \${$cacheid+y}
19130 then :
19131 printf %s "(cached) " >&6
19132 else $as_nop
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135 int i;
19136 int
19137 main (void)
19138 {
19139
19140 ;
19141 return 0;
19142 }
19143 _ACEOF
19144 if ac_fn_c_try_link "$LINENO"
19145 then :
19146 eval $cacheid=yes
19147 else $as_nop
19148 eval $cacheid=no
19149 fi
19150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19151 conftest$ac_exeext conftest.$ac_ext
19152 fi
19153
19154
19155 CFLAGS="$xorg_testset_save_CFLAGS"
19156
19157 eval supported=\$$cacheid
19158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19159 printf "%s\n" "$supported" >&6; }
19160 if test "$supported" = "yes" ; then
19161 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19162 found="yes"
19163 fi
19164 fi
19165
19166
19167
19168 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19169 # activate it with -Werror, so we add it here explicitly.
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183 xorg_testset_save_CFLAGS="$CFLAGS"
19184
19185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19189 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19190 then :
19191 printf %s "(cached) " >&6
19192 else $as_nop
19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19195 int i;
19196 _ACEOF
19197 if ac_fn_c_try_compile "$LINENO"
19198 then :
19199 xorg_cv_cc_flag_unknown_warning_option=yes
19200 else $as_nop
19201 xorg_cv_cc_flag_unknown_warning_option=no
19202 fi
19203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19204 fi
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19208 CFLAGS="$xorg_testset_save_CFLAGS"
19209 fi
19210
19211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19214 fi
19215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19219 then :
19220 printf %s "(cached) " >&6
19221 else $as_nop
19222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223 /* end confdefs.h. */
19224 int i;
19225 _ACEOF
19226 if ac_fn_c_try_compile "$LINENO"
19227 then :
19228 xorg_cv_cc_flag_unused_command_line_argument=yes
19229 else $as_nop
19230 xorg_cv_cc_flag_unused_command_line_argument=no
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19233 fi
19234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19237 CFLAGS="$xorg_testset_save_CFLAGS"
19238 fi
19239
19240 found="no"
19241
19242 if test $found = "no" ; then
19243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19245 fi
19246
19247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19249 fi
19250
19251 CFLAGS="$CFLAGS -Werror=attributes"
19252
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19254 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19255 cacheid=xorg_cv_cc_flag__Werror_attributes
19256 if eval test \${$cacheid+y}
19257 then :
19258 printf %s "(cached) " >&6
19259 else $as_nop
19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19262 int i;
19263 int
19264 main (void)
19265 {
19266
19267 ;
19268 return 0;
19269 }
19270 _ACEOF
19271 if ac_fn_c_try_link "$LINENO"
19272 then :
19273 eval $cacheid=yes
19274 else $as_nop
19275 eval $cacheid=no
19276 fi
19277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19278 conftest$ac_exeext conftest.$ac_ext
19279 fi
19280
19281
19282 CFLAGS="$xorg_testset_save_CFLAGS"
19283
19284 eval supported=\$$cacheid
19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19286 printf "%s\n" "$supported" >&6; }
19287 if test "$supported" = "yes" ; then
19288 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19289 found="yes"
19290 fi
19291 fi
19292
19293
19294
19295 if test "x$STRICT_COMPILE" = "xyes"; then
19296 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19297 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19298 fi
19299
19300
19301
19302
19303
19304
19305 cat >>confdefs.h <<_ACEOF
19306 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19307 _ACEOF
19308
19309 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19310 if test "x$PVM" = "x"; then
19311 PVM="0"
19312 fi
19313
19314 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19315
19316 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19317 if test "x$PVP" = "x"; then
19318 PVP="0"
19319 fi
19320
19321 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19322
19323
19324
19325 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19326 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19327 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19328 touch \$(top_srcdir)/ChangeLog; \
19329 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19330
19331
19332
19333
19334 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19335 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19336 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19337 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19338 touch \$(top_srcdir)/INSTALL; \
19339 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19340
19341
19342
19343
19344
19345
19346 case $host_os in
19347 solaris*)
19348 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19349 # check for a man page file found in later versions that use
19350 # traditional section numbers instead
19351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19352 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19353 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19354 then :
19355 printf %s "(cached) " >&6
19356 else $as_nop
19357 test "$cross_compiling" = yes &&
19358 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19359 if test -r "/usr/share/man/man7/attributes.7"; then
19360 ac_cv_file__usr_share_man_man7_attributes_7=yes
19361 else
19362 ac_cv_file__usr_share_man_man7_attributes_7=no
19363 fi
19364 fi
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19366 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19367 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19368 then :
19369 SYSV_MAN_SECTIONS=false
19370 else $as_nop
19371 SYSV_MAN_SECTIONS=true
19372 fi
19373
19374 ;;
19375 *) SYSV_MAN_SECTIONS=false ;;
19376 esac
19377
19378 if test x$APP_MAN_SUFFIX = x ; then
19379 APP_MAN_SUFFIX=1
19380 fi
19381 if test x$APP_MAN_DIR = x ; then
19382 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19383 fi
19384
19385 if test x$LIB_MAN_SUFFIX = x ; then
19386 LIB_MAN_SUFFIX=3
19387 fi
19388 if test x$LIB_MAN_DIR = x ; then
19389 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19390 fi
19391
19392 if test x$FILE_MAN_SUFFIX = x ; then
19393 case $SYSV_MAN_SECTIONS in
19394 true) FILE_MAN_SUFFIX=4 ;;
19395 *) FILE_MAN_SUFFIX=5 ;;
19396 esac
19397 fi
19398 if test x$FILE_MAN_DIR = x ; then
19399 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19400 fi
19401
19402 if test x$MISC_MAN_SUFFIX = x ; then
19403 case $SYSV_MAN_SECTIONS in
19404 true) MISC_MAN_SUFFIX=5 ;;
19405 *) MISC_MAN_SUFFIX=7 ;;
19406 esac
19407 fi
19408 if test x$MISC_MAN_DIR = x ; then
19409 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19410 fi
19411
19412 if test x$DRIVER_MAN_SUFFIX = x ; then
19413 case $SYSV_MAN_SECTIONS in
19414 true) DRIVER_MAN_SUFFIX=7 ;;
19415 *) DRIVER_MAN_SUFFIX=4 ;;
19416 esac
19417 fi
19418 if test x$DRIVER_MAN_DIR = x ; then
19419 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19420 fi
19421
19422 if test x$ADMIN_MAN_SUFFIX = x ; then
19423 case $SYSV_MAN_SECTIONS in
19424 true) ADMIN_MAN_SUFFIX=1m ;;
19425 *) ADMIN_MAN_SUFFIX=8 ;;
19426 esac
19427 fi
19428 if test x$ADMIN_MAN_DIR = x ; then
19429 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19430 fi
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446 XORG_MAN_PAGE="X Version 11"
19447
19448 MAN_SUBSTS="\
19449 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19450 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19451 -e 's|__xservername__|Xorg|g' \
19452 -e 's|__xconfigfile__|xorg.conf|g' \
19453 -e 's|__projectroot__|\$(prefix)|g' \
19454 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19455 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19456 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19457 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19458 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19459 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19460 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19461
19462
19463
19464 # Check whether --enable-silent-rules was given.
19465 if test ${enable_silent_rules+y}
19466 then :
19467 enableval=$enable_silent_rules;
19468 fi
19469
19470 case $enable_silent_rules in # (((
19471 yes) AM_DEFAULT_VERBOSITY=0;;
19472 no) AM_DEFAULT_VERBOSITY=1;;
19473 *) AM_DEFAULT_VERBOSITY=0;;
19474 esac
19475 am_make=${MAKE-make}
19476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19477 printf %s "checking whether $am_make supports nested variables... " >&6; }
19478 if test ${am_cv_make_support_nested_variables+y}
19479 then :
19480 printf %s "(cached) " >&6
19481 else $as_nop
19482 if printf "%s\n" 'TRUE=$(BAR$(V))
19483 BAR0=false
19484 BAR1=true
19485 V=1
19486 am__doit:
19487 @$(TRUE)
19488 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19489 am_cv_make_support_nested_variables=yes
19490 else
19491 am_cv_make_support_nested_variables=no
19492 fi
19493 fi
19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19495 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19496 if test $am_cv_make_support_nested_variables = yes; then
19497 AM_V='$(V)'
19498 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19499 else
19500 AM_V=$AM_DEFAULT_VERBOSITY
19501 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19502 fi
19503 AM_BACKSLASH='\'
19504
19505
19506
19507
19508 # Check whether --enable-specs was given.
19509 if test ${enable_specs+y}
19510 then :
19511 enableval=$enable_specs; build_specs=$enableval
19512 else $as_nop
19513 build_specs=yes
19514 fi
19515
19516
19517 if test x$build_specs = xyes; then
19518 ENABLE_SPECS_TRUE=
19519 ENABLE_SPECS_FALSE='#'
19520 else
19521 ENABLE_SPECS_TRUE='#'
19522 ENABLE_SPECS_FALSE=
19523 fi
19524
19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19526 printf %s "checking whether to build functional specifications... " >&6; }
19527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19528 printf "%s\n" "$build_specs" >&6; }
19529
19530
19531
19532
19533
19534 # Check whether --with-xmlto was given.
19535 if test ${with_xmlto+y}
19536 then :
19537 withval=$with_xmlto; use_xmlto=$withval
19538 else $as_nop
19539 use_xmlto=auto
19540 fi
19541
19542
19543
19544 if test "x$use_xmlto" = x"auto"; then
19545 # Extract the first word of "xmlto", so it can be a program name with args.
19546 set dummy xmlto; ac_word=$2
19547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19548 printf %s "checking for $ac_word... " >&6; }
19549 if test ${ac_cv_path_XMLTO+y}
19550 then :
19551 printf %s "(cached) " >&6
19552 else $as_nop
19553 case $XMLTO in
19554 [\\/]* | ?:[\\/]*)
19555 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19556 ;;
19557 *)
19558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559 for as_dir in $PATH
19560 do
19561 IFS=$as_save_IFS
19562 case $as_dir in #(((
19563 '') as_dir=./ ;;
19564 */) ;;
19565 *) as_dir=$as_dir/ ;;
19566 esac
19567 for ac_exec_ext in '' $ac_executable_extensions; do
19568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19569 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19571 break 2
19572 fi
19573 done
19574 done
19575 IFS=$as_save_IFS
19576
19577 ;;
19578 esac
19579 fi
19580 XMLTO=$ac_cv_path_XMLTO
19581 if test -n "$XMLTO"; then
19582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19583 printf "%s\n" "$XMLTO" >&6; }
19584 else
19585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19586 printf "%s\n" "no" >&6; }
19587 fi
19588
19589
19590 if test "x$XMLTO" = "x"; then
19591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19592 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19593 have_xmlto=no
19594 else
19595 have_xmlto=yes
19596 fi
19597 elif test "x$use_xmlto" = x"yes" ; then
19598 # Extract the first word of "xmlto", so it can be a program name with args.
19599 set dummy xmlto; ac_word=$2
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19601 printf %s "checking for $ac_word... " >&6; }
19602 if test ${ac_cv_path_XMLTO+y}
19603 then :
19604 printf %s "(cached) " >&6
19605 else $as_nop
19606 case $XMLTO in
19607 [\\/]* | ?:[\\/]*)
19608 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19609 ;;
19610 *)
19611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19612 for as_dir in $PATH
19613 do
19614 IFS=$as_save_IFS
19615 case $as_dir in #(((
19616 '') as_dir=./ ;;
19617 */) ;;
19618 *) as_dir=$as_dir/ ;;
19619 esac
19620 for ac_exec_ext in '' $ac_executable_extensions; do
19621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19622 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19624 break 2
19625 fi
19626 done
19627 done
19628 IFS=$as_save_IFS
19629
19630 ;;
19631 esac
19632 fi
19633 XMLTO=$ac_cv_path_XMLTO
19634 if test -n "$XMLTO"; then
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19636 printf "%s\n" "$XMLTO" >&6; }
19637 else
19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19639 printf "%s\n" "no" >&6; }
19640 fi
19641
19642
19643 if test "x$XMLTO" = "x"; then
19644 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19645 fi
19646 have_xmlto=yes
19647 elif test "x$use_xmlto" = x"no" ; then
19648 if test "x$XMLTO" != "x"; then
19649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19650 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19651 fi
19652 have_xmlto=no
19653 else
19654 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19655 fi
19656
19657 # Test for a minimum version of xmlto, if provided.
19658 if test "$have_xmlto" = yes; then
19659 # scrape the xmlto version
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19661 printf %s "checking the xmlto version... " >&6; }
19662 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19664 printf "%s\n" "$xmlto_version" >&6; }
19665 as_arg_v1=$xmlto_version
19666 as_arg_v2=0.0.22
19667 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19668 case $? in #(
19669 1) :
19670 if test "x$use_xmlto" = xauto; then
19671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19672 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19673 have_xmlto=no
19674 else
19675 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19676 fi ;; #(
19677 0) :
19678 ;; #(
19679 2) :
19680 ;; #(
19681 *) :
19682 ;;
19683 esac
19684 fi
19685
19686 # Test for the ability of xmlto to generate a text target
19687 #
19688 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19689 # following test for empty XML docbook files.
19690 # For compatibility reasons use the following empty XML docbook file and if
19691 # it fails try it again with a non-empty XML file.
19692 have_xmlto_text=no
19693 cat > conftest.xml << "EOF"
19694 EOF
19695 if test "$have_xmlto" = yes
19696 then :
19697 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19698 then :
19699 have_xmlto_text=yes
19700 else $as_nop
19701 # Try it again with a non-empty XML file.
19702 cat > conftest.xml << "EOF"
19703 <x></x>
19704 EOF
19705 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19706 then :
19707 have_xmlto_text=yes
19708 else $as_nop
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19710 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19711 fi
19712 fi
19713 fi
19714 rm -f conftest.xml
19715 if test $have_xmlto_text = yes; then
19716 HAVE_XMLTO_TEXT_TRUE=
19717 HAVE_XMLTO_TEXT_FALSE='#'
19718 else
19719 HAVE_XMLTO_TEXT_TRUE='#'
19720 HAVE_XMLTO_TEXT_FALSE=
19721 fi
19722
19723 if test "$have_xmlto" = yes; then
19724 HAVE_XMLTO_TRUE=
19725 HAVE_XMLTO_FALSE='#'
19726 else
19727 HAVE_XMLTO_TRUE='#'
19728 HAVE_XMLTO_FALSE=
19729 fi
19730
19731
19732
19733
19734
19735
19736 # Check whether --with-fop was given.
19737 if test ${with_fop+y}
19738 then :
19739 withval=$with_fop; use_fop=$withval
19740 else $as_nop
19741 use_fop=auto
19742 fi
19743
19744
19745
19746 if test "x$use_fop" = x"auto"; then
19747 # Extract the first word of "fop", so it can be a program name with args.
19748 set dummy fop; ac_word=$2
19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19750 printf %s "checking for $ac_word... " >&6; }
19751 if test ${ac_cv_path_FOP+y}
19752 then :
19753 printf %s "(cached) " >&6
19754 else $as_nop
19755 case $FOP in
19756 [\\/]* | ?:[\\/]*)
19757 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19758 ;;
19759 *)
19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19762 do
19763 IFS=$as_save_IFS
19764 case $as_dir in #(((
19765 '') as_dir=./ ;;
19766 */) ;;
19767 *) as_dir=$as_dir/ ;;
19768 esac
19769 for ac_exec_ext in '' $ac_executable_extensions; do
19770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19771 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19773 break 2
19774 fi
19775 done
19776 done
19777 IFS=$as_save_IFS
19778
19779 ;;
19780 esac
19781 fi
19782 FOP=$ac_cv_path_FOP
19783 if test -n "$FOP"; then
19784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19785 printf "%s\n" "$FOP" >&6; }
19786 else
19787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19788 printf "%s\n" "no" >&6; }
19789 fi
19790
19791
19792 if test "x$FOP" = "x"; then
19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19794 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19795 have_fop=no
19796 else
19797 have_fop=yes
19798 fi
19799 elif test "x$use_fop" = x"yes" ; then
19800 # Extract the first word of "fop", so it can be a program name with args.
19801 set dummy fop; ac_word=$2
19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19803 printf %s "checking for $ac_word... " >&6; }
19804 if test ${ac_cv_path_FOP+y}
19805 then :
19806 printf %s "(cached) " >&6
19807 else $as_nop
19808 case $FOP in
19809 [\\/]* | ?:[\\/]*)
19810 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19811 ;;
19812 *)
19813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19814 for as_dir in $PATH
19815 do
19816 IFS=$as_save_IFS
19817 case $as_dir in #(((
19818 '') as_dir=./ ;;
19819 */) ;;
19820 *) as_dir=$as_dir/ ;;
19821 esac
19822 for ac_exec_ext in '' $ac_executable_extensions; do
19823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19824 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19826 break 2
19827 fi
19828 done
19829 done
19830 IFS=$as_save_IFS
19831
19832 ;;
19833 esac
19834 fi
19835 FOP=$ac_cv_path_FOP
19836 if test -n "$FOP"; then
19837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19838 printf "%s\n" "$FOP" >&6; }
19839 else
19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841 printf "%s\n" "no" >&6; }
19842 fi
19843
19844
19845 if test "x$FOP" = "x"; then
19846 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19847 fi
19848 have_fop=yes
19849 elif test "x$use_fop" = x"no" ; then
19850 if test "x$FOP" != "x"; then
19851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19852 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19853 fi
19854 have_fop=no
19855 else
19856 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19857 fi
19858
19859 # Test for a minimum version of fop, if provided.
19860
19861 if test "$have_fop" = yes; then
19862 HAVE_FOP_TRUE=
19863 HAVE_FOP_FALSE='#'
19864 else
19865 HAVE_FOP_TRUE='#'
19866 HAVE_FOP_FALSE=
19867 fi
19868
19869
19870
19871
19872 # Preserves the interface, should it be implemented later
19873
19874
19875
19876 # Check whether --with-xsltproc was given.
19877 if test ${with_xsltproc+y}
19878 then :
19879 withval=$with_xsltproc; use_xsltproc=$withval
19880 else $as_nop
19881 use_xsltproc=auto
19882 fi
19883
19884
19885
19886 if test "x$use_xsltproc" = x"auto"; then
19887 # Extract the first word of "xsltproc", so it can be a program name with args.
19888 set dummy xsltproc; ac_word=$2
19889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19890 printf %s "checking for $ac_word... " >&6; }
19891 if test ${ac_cv_path_XSLTPROC+y}
19892 then :
19893 printf %s "(cached) " >&6
19894 else $as_nop
19895 case $XSLTPROC in
19896 [\\/]* | ?:[\\/]*)
19897 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19898 ;;
19899 *)
19900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19901 for as_dir in $PATH
19902 do
19903 IFS=$as_save_IFS
19904 case $as_dir in #(((
19905 '') as_dir=./ ;;
19906 */) ;;
19907 *) as_dir=$as_dir/ ;;
19908 esac
19909 for ac_exec_ext in '' $ac_executable_extensions; do
19910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19911 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19913 break 2
19914 fi
19915 done
19916 done
19917 IFS=$as_save_IFS
19918
19919 ;;
19920 esac
19921 fi
19922 XSLTPROC=$ac_cv_path_XSLTPROC
19923 if test -n "$XSLTPROC"; then
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19925 printf "%s\n" "$XSLTPROC" >&6; }
19926 else
19927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928 printf "%s\n" "no" >&6; }
19929 fi
19930
19931
19932 if test "x$XSLTPROC" = "x"; then
19933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19934 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19935 have_xsltproc=no
19936 else
19937 have_xsltproc=yes
19938 fi
19939 elif test "x$use_xsltproc" = x"yes" ; then
19940 # Extract the first word of "xsltproc", so it can be a program name with args.
19941 set dummy xsltproc; ac_word=$2
19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19943 printf %s "checking for $ac_word... " >&6; }
19944 if test ${ac_cv_path_XSLTPROC+y}
19945 then :
19946 printf %s "(cached) " >&6
19947 else $as_nop
19948 case $XSLTPROC in
19949 [\\/]* | ?:[\\/]*)
19950 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19951 ;;
19952 *)
19953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19954 for as_dir in $PATH
19955 do
19956 IFS=$as_save_IFS
19957 case $as_dir in #(((
19958 '') as_dir=./ ;;
19959 */) ;;
19960 *) as_dir=$as_dir/ ;;
19961 esac
19962 for ac_exec_ext in '' $ac_executable_extensions; do
19963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19964 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19966 break 2
19967 fi
19968 done
19969 done
19970 IFS=$as_save_IFS
19971
19972 ;;
19973 esac
19974 fi
19975 XSLTPROC=$ac_cv_path_XSLTPROC
19976 if test -n "$XSLTPROC"; then
19977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19978 printf "%s\n" "$XSLTPROC" >&6; }
19979 else
19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19981 printf "%s\n" "no" >&6; }
19982 fi
19983
19984
19985 if test "x$XSLTPROC" = "x"; then
19986 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19987 fi
19988 have_xsltproc=yes
19989 elif test "x$use_xsltproc" = x"no" ; then
19990 if test "x$XSLTPROC" != "x"; then
19991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19992 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19993 fi
19994 have_xsltproc=no
19995 else
19996 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19997 fi
19998
19999 if test "$have_xsltproc" = yes; then
20000 HAVE_XSLTPROC_TRUE=
20001 HAVE_XSLTPROC_FALSE='#'
20002 else
20003 HAVE_XSLTPROC_TRUE='#'
20004 HAVE_XSLTPROC_FALSE=
20005 fi
20006
20007
20008
20009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
20010 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
20011 XORG_SGML_PATH=
20012 if test -n "$PKG_CONFIG" && \
20013 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
20014 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
20015 ac_status=$?
20016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20017 test $ac_status = 0; }; then
20018 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20019 else
20020 :
20021
20022 fi
20023
20024 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20025 # the path and the name of the doc stylesheet
20026 if test "x$XORG_SGML_PATH" != "x" ; then
20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20028 printf "%s\n" "$XORG_SGML_PATH" >&6; }
20029 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20030 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20031 else
20032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20033 printf "%s\n" "no" >&6; }
20034 fi
20035
20036
20037
20038
20039 if test "x$XSL_STYLESHEET" != "x"; then
20040 HAVE_STYLESHEETS_TRUE=
20041 HAVE_STYLESHEETS_FALSE='#'
20042 else
20043 HAVE_STYLESHEETS_TRUE='#'
20044 HAVE_STYLESHEETS_FALSE=
20045 fi
20046
20047
20048
20049 # Check whether --enable-malloc0returnsnull was given.
20050 if test ${enable_malloc0returnsnull+y}
20051 then :
20052 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20053 else $as_nop
20054 MALLOC_ZERO_RETURNS_NULL=auto
20055 fi
20056
20057
20058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
20059 printf %s "checking whether malloc(0) returns NULL... " >&6; }
20060 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20061 if test ${xorg_cv_malloc0_returns_null+y}
20062 then :
20063 printf %s "(cached) " >&6
20064 else $as_nop
20065 if test "$cross_compiling" = yes
20066 then :
20067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20069 as_fn_error $? "cannot run test program while cross compiling
20070 See \`config.log' for more details" "$LINENO" 5; }
20071 else $as_nop
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20074
20075 #include <stdlib.h>
20076
20077 int
20078 main (void)
20079 {
20080
20081 char *m0, *r0, *c0, *p;
20082 m0 = malloc(0);
20083 p = malloc(10);
20084 r0 = realloc(p,0);
20085 c0 = calloc(0,10);
20086 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
20087
20088 ;
20089 return 0;
20090 }
20091 _ACEOF
20092 if ac_fn_c_try_run "$LINENO"
20093 then :
20094 xorg_cv_malloc0_returns_null=yes
20095 else $as_nop
20096 xorg_cv_malloc0_returns_null=no
20097 fi
20098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20099 conftest.$ac_objext conftest.beam conftest.$ac_ext
20100 fi
20101
20102 fi
20103
20104 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
20105 fi
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20107 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20108
20109 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20110 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20111 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20112 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20113 else
20114 MALLOC_ZERO_CFLAGS=""
20115 XMALLOC_ZERO_CFLAGS=""
20116 XTMALLOC_ZERO_CFLAGS=""
20117 fi
20118
20119
20120
20121
20122
20123
20124 # Determine .so library version per platform
20125 # based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
20126 if test "x$XEXT_SOREV" = "x" ; then
20127 case $host_os in
20128 openbsd*) XEXT_SOREV=8:0 ;;
20129 solaris*) XEXT_SOREV=0 ;;
20130 *) XEXT_SOREV=6:4:0 ;;
20131 esac
20132 fi
20133
20134
20135 # Obtain compiler/linker options for dependencies
20136
20137 pkg_failed=no
20138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
20139 printf %s "checking for XEXT... " >&6; }
20140
20141 if test -n "$XEXT_CFLAGS"; then
20142 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20143 elif test -n "$PKG_CONFIG"; then
20144 if test -n "$PKG_CONFIG" && \
20145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5
20146 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5
20147 ac_status=$?
20148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20149 test $ac_status = 0; }; then
20150 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null`
20151 test "x$?" != "x0" && pkg_failed=yes
20152 else
20153 pkg_failed=yes
20154 fi
20155 else
20156 pkg_failed=untried
20157 fi
20158 if test -n "$XEXT_LIBS"; then
20159 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20160 elif test -n "$PKG_CONFIG"; then
20161 if test -n "$PKG_CONFIG" && \
20162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5
20163 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5
20164 ac_status=$?
20165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20166 test $ac_status = 0; }; then
20167 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null`
20168 test "x$?" != "x0" && pkg_failed=yes
20169 else
20170 pkg_failed=yes
20171 fi
20172 else
20173 pkg_failed=untried
20174 fi
20175
20176
20177
20178 if test $pkg_failed = yes; then
20179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20180 printf "%s\n" "no" >&6; }
20181
20182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20183 _pkg_short_errors_supported=yes
20184 else
20185 _pkg_short_errors_supported=no
20186 fi
20187 if test $_pkg_short_errors_supported = yes; then
20188 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1`
20189 else
20190 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1`
20191 fi
20192 # Put the nasty error message in config.log where it belongs
20193 echo "$XEXT_PKG_ERRORS" >&5
20194
20195 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99) were not met:
20196
20197 $XEXT_PKG_ERRORS
20198
20199 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20200 installed software in a non-standard prefix.
20201
20202 Alternatively, you may set the environment variables XEXT_CFLAGS
20203 and XEXT_LIBS to avoid the need to call pkg-config.
20204 See the pkg-config man page for more details." "$LINENO" 5
20205 elif test $pkg_failed = untried; then
20206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20207 printf "%s\n" "no" >&6; }
20208 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20209 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20210 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20211 is in your PATH or set the PKG_CONFIG environment variable to the full
20212 path to pkg-config.
20213
20214 Alternatively, you may set the environment variables XEXT_CFLAGS
20215 and XEXT_LIBS to avoid the need to call pkg-config.
20216 See the pkg-config man page for more details.
20217
20218 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20219 See \`config.log' for more details" "$LINENO" 5; }
20220 else
20221 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20222 XEXT_LIBS=$pkg_cv_XEXT_LIBS
20223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20224 printf "%s\n" "yes" >&6; }
20225
20226 fi
20227
20228
20229
20230
20231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
20232 printf %s "checking for __builtin_popcountl... " >&6; }
20233 if test ${ax_cv_have___builtin_popcountl+y}
20234 then :
20235 printf %s "(cached) " >&6
20236 else $as_nop
20237
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20240
20241 int
20242 main (void)
20243 {
20244
20245 __builtin_popcountl(0)
20246
20247 ;
20248 return 0;
20249 }
20250 _ACEOF
20251 if ac_fn_c_try_link "$LINENO"
20252 then :
20253 ax_cv_have___builtin_popcountl=yes
20254 else $as_nop
20255 ax_cv_have___builtin_popcountl=no
20256 fi
20257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20258 conftest$ac_exeext conftest.$ac_ext
20259
20260 fi
20261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
20262 printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
20263
20264 if test yes = $ax_cv_have___builtin_popcountl
20265 then :
20266
20267 printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
20268
20269 fi
20270
20271
20272
20273 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20274 if test "x$ac_cv_func_reallocarray" = xyes
20275 then :
20276 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20277
20278 else $as_nop
20279 case " $LIBOBJS " in
20280 *" reallocarray.$ac_objext "* ) ;;
20281 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20282 ;;
20283 esac
20284
20285 fi
20286
20287
20288 # Allow checking code with lint, sparse, etc.
20289
20290
20291
20292
20293
20294 # Check whether --with-lint was given.
20295 if test ${with_lint+y}
20296 then :
20297 withval=$with_lint; use_lint=$withval
20298 else $as_nop
20299 use_lint=no
20300 fi
20301
20302
20303 # Obtain platform specific info like program name and options
20304 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20305 case $host_os in
20306 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20307 lint_name=splint
20308 lint_options="-badflag"
20309 ;;
20310 *freebsd* | *netbsd*)
20311 lint_name=lint
20312 lint_options="-u -b"
20313 ;;
20314 *solaris*)
20315 lint_name=lint
20316 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20317 ;;
20318 esac
20319
20320 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20321 if test "x$use_lint" = x"yes" ; then
20322 # Extract the first word of "$lint_name", so it can be a program name with args.
20323 set dummy $lint_name; ac_word=$2
20324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20325 printf %s "checking for $ac_word... " >&6; }
20326 if test ${ac_cv_path_LINT+y}
20327 then :
20328 printf %s "(cached) " >&6
20329 else $as_nop
20330 case $LINT in
20331 [\\/]* | ?:[\\/]*)
20332 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20333 ;;
20334 *)
20335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20336 for as_dir in $PATH
20337 do
20338 IFS=$as_save_IFS
20339 case $as_dir in #(((
20340 '') as_dir=./ ;;
20341 */) ;;
20342 *) as_dir=$as_dir/ ;;
20343 esac
20344 for ac_exec_ext in '' $ac_executable_extensions; do
20345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20346 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20348 break 2
20349 fi
20350 done
20351 done
20352 IFS=$as_save_IFS
20353
20354 ;;
20355 esac
20356 fi
20357 LINT=$ac_cv_path_LINT
20358 if test -n "$LINT"; then
20359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20360 printf "%s\n" "$LINT" >&6; }
20361 else
20362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20363 printf "%s\n" "no" >&6; }
20364 fi
20365
20366
20367 if test "x$LINT" = "x"; then
20368 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20369 fi
20370 elif test "x$use_lint" = x"no" ; then
20371 if test "x$LINT" != "x"; then
20372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20373 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20374 fi
20375 else
20376 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20377 fi
20378
20379 # User supplied flags override default flags
20380 if test "x$LINT_FLAGS" != "x"; then
20381 lint_options=$LINT_FLAGS
20382 fi
20383
20384 LINT_FLAGS=$lint_options
20385
20386 if test "x$LINT" != x; then
20387 LINT_TRUE=
20388 LINT_FALSE='#'
20389 else
20390 LINT_TRUE='#'
20391 LINT_FALSE=
20392 fi
20393
20394
20395
20396
20397
20398 # Check whether --enable-lint-library was given.
20399 if test ${enable_lint_library+y}
20400 then :
20401 enableval=$enable_lint_library; make_lint_lib=$enableval
20402 else $as_nop
20403 make_lint_lib=no
20404 fi
20405
20406
20407 if test "x$make_lint_lib" = x"yes" ; then
20408 LINTLIB=llib-lXext.ln
20409 if test "x$LINT" = "x"; then
20410 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20411 fi
20412 elif test "x$make_lint_lib" != x"no" ; then
20413 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20414 fi
20415
20416
20417 if test x$make_lint_lib != xno; then
20418 MAKE_LINT_LIB_TRUE=
20419 MAKE_LINT_LIB_FALSE='#'
20420 else
20421 MAKE_LINT_LIB_TRUE='#'
20422 MAKE_LINT_LIB_FALSE=
20423 fi
20424
20425
20426
20427
20428 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc"
20429
20430 cat >confcache <<\_ACEOF
20431 # This file is a shell script that caches the results of configure
20432 # tests run on this system so they can be shared between configure
20433 # scripts and configure runs, see configure's option --config-cache.
20434 # It is not useful on other systems. If it contains results you don't
20435 # want to keep, you may remove or edit it.
20436 #
20437 # config.status only pays attention to the cache file if you give it
20438 # the --recheck option to rerun configure.
20439 #
20440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20442 # following values.
20443
20444 _ACEOF
20445
20446 # The following way of writing the cache mishandles newlines in values,
20447 # but we know of no workaround that is simple, portable, and efficient.
20448 # So, we kill variables containing newlines.
20449 # Ultrix sh set writes to stderr and can't be redirected directly,
20450 # and sets the high bit in the cache file unless we assign to the vars.
20451 (
20452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20453 eval ac_val=\$$ac_var
20454 case $ac_val in #(
20455 *${as_nl}*)
20456 case $ac_var in #(
20457 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20458 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20459 esac
20460 case $ac_var in #(
20461 _ | IFS | as_nl) ;; #(
20462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20463 *) { eval $ac_var=; unset $ac_var;} ;;
20464 esac ;;
20465 esac
20466 done
20467
20468 (set) 2>&1 |
20469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20470 *${as_nl}ac_space=\ *)
20471 # `set' does not quote correctly, so add quotes: double-quote
20472 # substitution turns \\\\ into \\, and sed turns \\ into \.
20473 sed -n \
20474 "s/'/'\\\\''/g;
20475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20476 ;; #(
20477 *)
20478 # `set' quotes correctly as required by POSIX, so do not add quotes.
20479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20480 ;;
20481 esac |
20482 sort
20483 ) |
20484 sed '
20485 /^ac_cv_env_/b end
20486 t clear
20487 :clear
20488 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20489 t end
20490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20491 :end' >>confcache
20492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20493 if test -w "$cache_file"; then
20494 if test "x$cache_file" != "x/dev/null"; then
20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20496 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20497 if test ! -f "$cache_file" || test -h "$cache_file"; then
20498 cat confcache >"$cache_file"
20499 else
20500 case $cache_file in #(
20501 */* | ?:*)
20502 mv -f confcache "$cache_file"$$ &&
20503 mv -f "$cache_file"$$ "$cache_file" ;; #(
20504 *)
20505 mv -f confcache "$cache_file" ;;
20506 esac
20507 fi
20508 fi
20509 else
20510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20511 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20512 fi
20513 fi
20514 rm -f confcache
20515
20516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20517 # Let make expand exec_prefix.
20518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20519
20520 DEFS=-DHAVE_CONFIG_H
20521
20522 ac_libobjs=
20523 ac_ltlibobjs=
20524 U=
20525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20526 # 1. Remove the extension, and $U if already installed.
20527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20528 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20530 # will be set to the directory where LIBOBJS objects are built.
20531 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20532 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20533 done
20534 LIBOBJS=$ac_libobjs
20535
20536 LTLIBOBJS=$ac_ltlibobjs
20537
20538
20539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20540 printf %s "checking that generated files are newer than configure... " >&6; }
20541 if test -n "$am_sleep_pid"; then
20542 # Hide warnings about reused PIDs.
20543 wait $am_sleep_pid 2>/dev/null
20544 fi
20545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20546 printf "%s\n" "done" >&6; }
20547 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20548 as_fn_error $? "conditional \"AMDEP\" was never defined.
20549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20550 fi
20551 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20552 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554 fi
20555 if test -n "$EXEEXT"; then
20556 am__EXEEXT_TRUE=
20557 am__EXEEXT_FALSE='#'
20558 else
20559 am__EXEEXT_TRUE='#'
20560 am__EXEEXT_FALSE=
20561 fi
20562
20563 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
20564 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
20565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20566 fi
20567 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20568 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20570 fi
20571 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20572 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20574 fi
20575 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20576 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20578 fi
20579 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20580 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20582 fi
20583 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20584 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20586 fi
20587 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20588 as_fn_error $? "conditional \"LINT\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20590 fi
20591 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20592 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20594 fi
20595
20596 : "${CONFIG_STATUS=./config.status}"
20597 ac_write_fail=0
20598 ac_clean_files_save=$ac_clean_files
20599 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20601 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20602 as_write_fail=0
20603 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20604 #! $SHELL
20605 # Generated by $as_me.
20606 # Run this file to recreate the current configuration.
20607 # Compiler output produced by configure, useful for debugging
20608 # configure, is in config.log if it exists.
20609
20610 debug=false
20611 ac_cs_recheck=false
20612 ac_cs_silent=false
20613
20614 SHELL=\${CONFIG_SHELL-$SHELL}
20615 export SHELL
20616 _ASEOF
20617 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20618 ## -------------------- ##
20619 ## M4sh Initialization. ##
20620 ## -------------------- ##
20621
20622 # Be more Bourne compatible
20623 DUALCASE=1; export DUALCASE # for MKS sh
20624 as_nop=:
20625 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20626 then :
20627 emulate sh
20628 NULLCMD=:
20629 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20630 # is contrary to our usage. Disable this feature.
20631 alias -g '${1+"$@"}'='"$@"'
20632 setopt NO_GLOB_SUBST
20633 else $as_nop
20634 case `(set -o) 2>/dev/null` in #(
20635 *posix*) :
20636 set -o posix ;; #(
20637 *) :
20638 ;;
20639 esac
20640 fi
20641
20642
20643
20644 # Reset variables that may have inherited troublesome values from
20645 # the environment.
20646
20647 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20648 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20649 # side effect of setting IFS to empty, thus disabling word splitting.)
20650 # Quoting is to prevent editors from complaining about space-tab.
20651 as_nl='
20652 '
20653 export as_nl
20654 IFS=" "" $as_nl"
20655
20656 PS1='$ '
20657 PS2='> '
20658 PS4='+ '
20659
20660 # Ensure predictable behavior from utilities with locale-dependent output.
20661 LC_ALL=C
20662 export LC_ALL
20663 LANGUAGE=C
20664 export LANGUAGE
20665
20666 # We cannot yet rely on "unset" to work, but we need these variables
20667 # to be unset--not just set to an empty or harmless value--now, to
20668 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20669 # also avoids known problems related to "unset" and subshell syntax
20670 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20671 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20672 do eval test \${$as_var+y} \
20673 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20674 done
20675
20676 # Ensure that fds 0, 1, and 2 are open.
20677 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20678 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20679 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20680
20681 # The user is always right.
20682 if ${PATH_SEPARATOR+false} :; then
20683 PATH_SEPARATOR=:
20684 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20685 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20686 PATH_SEPARATOR=';'
20687 }
20688 fi
20689
20690
20691 # Find who we are. Look in the path if we contain no directory separator.
20692 as_myself=
20693 case $0 in #((
20694 *[\\/]* ) as_myself=$0 ;;
20695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20696 for as_dir in $PATH
20697 do
20698 IFS=$as_save_IFS
20699 case $as_dir in #(((
20700 '') as_dir=./ ;;
20701 */) ;;
20702 *) as_dir=$as_dir/ ;;
20703 esac
20704 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20705 done
20706 IFS=$as_save_IFS
20707
20708 ;;
20709 esac
20710 # We did not find ourselves, most probably we were run as `sh COMMAND'
20711 # in which case we are not to be found in the path.
20712 if test "x$as_myself" = x; then
20713 as_myself=$0
20714 fi
20715 if test ! -f "$as_myself"; then
20716 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20717 exit 1
20718 fi
20719
20720
20721
20722 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20723 # ----------------------------------------
20724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20726 # script with STATUS, using 1 if that was 0.
20727 as_fn_error ()
20728 {
20729 as_status=$1; test $as_status -eq 0 && as_status=1
20730 if test "$4"; then
20731 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20733 fi
20734 printf "%s\n" "$as_me: error: $2" >&2
20735 as_fn_exit $as_status
20736 } # as_fn_error
20737
20738
20739
20740 # as_fn_set_status STATUS
20741 # -----------------------
20742 # Set $? to STATUS, without forking.
20743 as_fn_set_status ()
20744 {
20745 return $1
20746 } # as_fn_set_status
20747
20748 # as_fn_exit STATUS
20749 # -----------------
20750 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20751 as_fn_exit ()
20752 {
20753 set +e
20754 as_fn_set_status $1
20755 exit $1
20756 } # as_fn_exit
20757
20758 # as_fn_unset VAR
20759 # ---------------
20760 # Portably unset VAR.
20761 as_fn_unset ()
20762 {
20763 { eval $1=; unset $1;}
20764 }
20765 as_unset=as_fn_unset
20766
20767 # as_fn_append VAR VALUE
20768 # ----------------------
20769 # Append the text in VALUE to the end of the definition contained in VAR. Take
20770 # advantage of any shell optimizations that allow amortized linear growth over
20771 # repeated appends, instead of the typical quadratic growth present in naive
20772 # implementations.
20773 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20774 then :
20775 eval 'as_fn_append ()
20776 {
20777 eval $1+=\$2
20778 }'
20779 else $as_nop
20780 as_fn_append ()
20781 {
20782 eval $1=\$$1\$2
20783 }
20784 fi # as_fn_append
20785
20786 # as_fn_arith ARG...
20787 # ------------------
20788 # Perform arithmetic evaluation on the ARGs, and store the result in the
20789 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20790 # must be portable across $(()) and expr.
20791 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20792 then :
20793 eval 'as_fn_arith ()
20794 {
20795 as_val=$(( $* ))
20796 }'
20797 else $as_nop
20798 as_fn_arith ()
20799 {
20800 as_val=`expr "$@" || test $? -eq 1`
20801 }
20802 fi # as_fn_arith
20803
20804
20805 if expr a : '\(a\)' >/dev/null 2>&1 &&
20806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20807 as_expr=expr
20808 else
20809 as_expr=false
20810 fi
20811
20812 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20813 as_basename=basename
20814 else
20815 as_basename=false
20816 fi
20817
20818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20819 as_dirname=dirname
20820 else
20821 as_dirname=false
20822 fi
20823
20824 as_me=`$as_basename -- "$0" ||
20825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20826 X"$0" : 'X\(//\)$' \| \
20827 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20828 printf "%s\n" X/"$0" |
20829 sed '/^.*\/\([^/][^/]*\)\/*$/{
20830 s//\1/
20831 q
20832 }
20833 /^X\/\(\/\/\)$/{
20834 s//\1/
20835 q
20836 }
20837 /^X\/\(\/\).*/{
20838 s//\1/
20839 q
20840 }
20841 s/.*/./; q'`
20842
20843 # Avoid depending upon Character Ranges.
20844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20847 as_cr_digits='0123456789'
20848 as_cr_alnum=$as_cr_Letters$as_cr_digits
20849
20850
20851 # Determine whether it's possible to make 'echo' print without a newline.
20852 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20853 # for compatibility with existing Makefiles.
20854 ECHO_C= ECHO_N= ECHO_T=
20855 case `echo -n x` in #(((((
20856 -n*)
20857 case `echo 'xy\c'` in
20858 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20859 xy) ECHO_C='\c';;
20860 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20861 ECHO_T=' ';;
20862 esac;;
20863 *)
20864 ECHO_N='-n';;
20865 esac
20866
20867 # For backward compatibility with old third-party macros, we provide
20868 # the shell variables $as_echo and $as_echo_n. New code should use
20869 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20870 as_echo='printf %s\n'
20871 as_echo_n='printf %s'
20872
20873 rm -f conf$$ conf$$.exe conf$$.file
20874 if test -d conf$$.dir; then
20875 rm -f conf$$.dir/conf$$.file
20876 else
20877 rm -f conf$$.dir
20878 mkdir conf$$.dir 2>/dev/null
20879 fi
20880 if (echo >conf$$.file) 2>/dev/null; then
20881 if ln -s conf$$.file conf$$ 2>/dev/null; then
20882 as_ln_s='ln -s'
20883 # ... but there are two gotchas:
20884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20886 # In both cases, we have to default to `cp -pR'.
20887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20888 as_ln_s='cp -pR'
20889 elif ln conf$$.file conf$$ 2>/dev/null; then
20890 as_ln_s=ln
20891 else
20892 as_ln_s='cp -pR'
20893 fi
20894 else
20895 as_ln_s='cp -pR'
20896 fi
20897 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20898 rmdir conf$$.dir 2>/dev/null
20899
20900
20901 # as_fn_mkdir_p
20902 # -------------
20903 # Create "$as_dir" as a directory, including parents if necessary.
20904 as_fn_mkdir_p ()
20905 {
20906
20907 case $as_dir in #(
20908 -*) as_dir=./$as_dir;;
20909 esac
20910 test -d "$as_dir" || eval $as_mkdir_p || {
20911 as_dirs=
20912 while :; do
20913 case $as_dir in #(
20914 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20915 *) as_qdir=$as_dir;;
20916 esac
20917 as_dirs="'$as_qdir' $as_dirs"
20918 as_dir=`$as_dirname -- "$as_dir" ||
20919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920 X"$as_dir" : 'X\(//\)[^/]' \| \
20921 X"$as_dir" : 'X\(//\)$' \| \
20922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20923 printf "%s\n" X"$as_dir" |
20924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20925 s//\1/
20926 q
20927 }
20928 /^X\(\/\/\)[^/].*/{
20929 s//\1/
20930 q
20931 }
20932 /^X\(\/\/\)$/{
20933 s//\1/
20934 q
20935 }
20936 /^X\(\/\).*/{
20937 s//\1/
20938 q
20939 }
20940 s/.*/./; q'`
20941 test -d "$as_dir" && break
20942 done
20943 test -z "$as_dirs" || eval "mkdir $as_dirs"
20944 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20945
20946
20947 } # as_fn_mkdir_p
20948 if mkdir -p . 2>/dev/null; then
20949 as_mkdir_p='mkdir -p "$as_dir"'
20950 else
20951 test -d ./-p && rmdir ./-p
20952 as_mkdir_p=false
20953 fi
20954
20955
20956 # as_fn_executable_p FILE
20957 # -----------------------
20958 # Test if FILE is an executable regular file.
20959 as_fn_executable_p ()
20960 {
20961 test -f "$1" && test -x "$1"
20962 } # as_fn_executable_p
20963 as_test_x='test -x'
20964 as_executable_p=as_fn_executable_p
20965
20966 # Sed expression to map a string onto a valid CPP name.
20967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20968
20969 # Sed expression to map a string onto a valid variable name.
20970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20971
20972
20973 exec 6>&1
20974 ## ----------------------------------- ##
20975 ## Main body of $CONFIG_STATUS script. ##
20976 ## ----------------------------------- ##
20977 _ASEOF
20978 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20979
20980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20981 # Save the log message, to keep $0 and so on meaningful, and to
20982 # report actual input values of CONFIG_FILES etc. instead of their
20983 # values after options handling.
20984 ac_log="
20985 This file was extended by libXext $as_me 1.3.5, which was
20986 generated by GNU Autoconf 2.71. Invocation command line was
20987
20988 CONFIG_FILES = $CONFIG_FILES
20989 CONFIG_HEADERS = $CONFIG_HEADERS
20990 CONFIG_LINKS = $CONFIG_LINKS
20991 CONFIG_COMMANDS = $CONFIG_COMMANDS
20992 $ $0 $@
20993
20994 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20995 "
20996
20997 _ACEOF
20998
20999 case $ac_config_files in *"
21000 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21001 esac
21002
21003 case $ac_config_headers in *"
21004 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21005 esac
21006
21007
21008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21009 # Files that config.status was made for.
21010 config_files="$ac_config_files"
21011 config_headers="$ac_config_headers"
21012 config_commands="$ac_config_commands"
21013
21014 _ACEOF
21015
21016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21017 ac_cs_usage="\
21018 \`$as_me' instantiates files and other configuration actions
21019 from templates according to the current configuration. Unless the files
21020 and actions are specified as TAGs, all are instantiated by default.
21021
21022 Usage: $0 [OPTION]... [TAG]...
21023
21024 -h, --help print this help, then exit
21025 -V, --version print version number and configuration settings, then exit
21026 --config print configuration, then exit
21027 -q, --quiet, --silent
21028 do not print progress messages
21029 -d, --debug don't remove temporary files
21030 --recheck update $as_me by reconfiguring in the same conditions
21031 --file=FILE[:TEMPLATE]
21032 instantiate the configuration file FILE
21033 --header=FILE[:TEMPLATE]
21034 instantiate the configuration header FILE
21035
21036 Configuration files:
21037 $config_files
21038
21039 Configuration headers:
21040 $config_headers
21041
21042 Configuration commands:
21043 $config_commands
21044
21045 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>."
21046
21047 _ACEOF
21048 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21049 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21051 ac_cs_config='$ac_cs_config_escaped'
21052 ac_cs_version="\\
21053 libXext config.status 1.3.5
21054 configured by $0, generated by GNU Autoconf 2.71,
21055 with options \\"\$ac_cs_config\\"
21056
21057 Copyright (C) 2021 Free Software Foundation, Inc.
21058 This config.status script is free software; the Free Software Foundation
21059 gives unlimited permission to copy, distribute and modify it."
21060
21061 ac_pwd='$ac_pwd'
21062 srcdir='$srcdir'
21063 INSTALL='$INSTALL'
21064 MKDIR_P='$MKDIR_P'
21065 AWK='$AWK'
21066 test -n "\$AWK" || AWK=awk
21067 _ACEOF
21068
21069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21070 # The default lists apply if the user does not specify any file.
21071 ac_need_defaults=:
21072 while test $# != 0
21073 do
21074 case $1 in
21075 --*=?*)
21076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21078 ac_shift=:
21079 ;;
21080 --*=)
21081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21082 ac_optarg=
21083 ac_shift=:
21084 ;;
21085 *)
21086 ac_option=$1
21087 ac_optarg=$2
21088 ac_shift=shift
21089 ;;
21090 esac
21091
21092 case $ac_option in
21093 # Handling of the options.
21094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21095 ac_cs_recheck=: ;;
21096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21097 printf "%s\n" "$ac_cs_version"; exit ;;
21098 --config | --confi | --conf | --con | --co | --c )
21099 printf "%s\n" "$ac_cs_config"; exit ;;
21100 --debug | --debu | --deb | --de | --d | -d )
21101 debug=: ;;
21102 --file | --fil | --fi | --f )
21103 $ac_shift
21104 case $ac_optarg in
21105 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21106 '') as_fn_error $? "missing file argument" ;;
21107 esac
21108 as_fn_append CONFIG_FILES " '$ac_optarg'"
21109 ac_need_defaults=false;;
21110 --header | --heade | --head | --hea )
21111 $ac_shift
21112 case $ac_optarg in
21113 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21114 esac
21115 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21116 ac_need_defaults=false;;
21117 --he | --h)
21118 # Conflict between --help and --header
21119 as_fn_error $? "ambiguous option: \`$1'
21120 Try \`$0 --help' for more information.";;
21121 --help | --hel | -h )
21122 printf "%s\n" "$ac_cs_usage"; exit ;;
21123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21125 ac_cs_silent=: ;;
21126
21127 # This is an error.
21128 -*) as_fn_error $? "unrecognized option: \`$1'
21129 Try \`$0 --help' for more information." ;;
21130
21131 *) as_fn_append ac_config_targets " $1"
21132 ac_need_defaults=false ;;
21133
21134 esac
21135 shift
21136 done
21137
21138 ac_configure_extra_args=
21139
21140 if $ac_cs_silent; then
21141 exec 6>/dev/null
21142 ac_configure_extra_args="$ac_configure_extra_args --silent"
21143 fi
21144
21145 _ACEOF
21146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21147 if \$ac_cs_recheck; then
21148 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21149 shift
21150 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21151 CONFIG_SHELL='$SHELL'
21152 export CONFIG_SHELL
21153 exec "\$@"
21154 fi
21155
21156 _ACEOF
21157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21158 exec 5>>config.log
21159 {
21160 echo
21161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21162 ## Running $as_me. ##
21163 _ASBOX
21164 printf "%s\n" "$ac_log"
21165 } >&5
21166
21167 _ACEOF
21168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21169 #
21170 # INIT-COMMANDS
21171 #
21172 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21173
21174
21175 # The HP-UX ksh and POSIX shell print the target directory to stdout
21176 # if CDPATH is set.
21177 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21178
21179 sed_quote_subst='$sed_quote_subst'
21180 double_quote_subst='$double_quote_subst'
21181 delay_variable_subst='$delay_variable_subst'
21182 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21183 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21184 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21185 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21186 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21187 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21188 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21189 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21190 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21191 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21192 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21193 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21194 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21195 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21196 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21197 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21198 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21199 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21200 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21201 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21202 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21203 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21204 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21205 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21206 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21207 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21208 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21209 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21210 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21211 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21212 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21213 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21214 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21215 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21216 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21217 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21218 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21219 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21220 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21221 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21222 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21223 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21224 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21225 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21226 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21227 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21228 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21229 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21230 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21231 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21232 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21233 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21234 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21235 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21236 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21237 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21238 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21239 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21240 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21241 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21242 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"`'
21243 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21244 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21245 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21246 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21247 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21248 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21249 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21250 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21251 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21252 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21253 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21254 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21255 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21256 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21257 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21258 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21259 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21260 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21261 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21262 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21263 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21264 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21265 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21266 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21267 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21268 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21269 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21270 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21271 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21272 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21273 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21274 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21275 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21276 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21277 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21278 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21279 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21280 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21281 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21282 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21283 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21284 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21285 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21286 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21287 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21288 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21289 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21290 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21291 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21292 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21293 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21294 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21295 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21296 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21297 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21298 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21299 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21300 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21301 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21302 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21303 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21304 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21305 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21306 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21307 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21308 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21309 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21310 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21311 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21312 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21313 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21314 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21315 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21316 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21317 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21318 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21319
21320 LTCC='$LTCC'
21321 LTCFLAGS='$LTCFLAGS'
21322 compiler='$compiler_DEFAULT'
21323
21324 # A function that is used when there is no print builtin or printf.
21325 func_fallback_echo ()
21326 {
21327 eval 'cat <<_LTECHO_EOF
21328 \$1
21329 _LTECHO_EOF'
21330 }
21331
21332 # Quote evaled strings.
21333 for var in SHELL \
21334 ECHO \
21335 PATH_SEPARATOR \
21336 SED \
21337 GREP \
21338 EGREP \
21339 FGREP \
21340 LD \
21341 NM \
21342 LN_S \
21343 lt_SP2NL \
21344 lt_NL2SP \
21345 reload_flag \
21346 FILECMD \
21347 OBJDUMP \
21348 deplibs_check_method \
21349 file_magic_cmd \
21350 file_magic_glob \
21351 want_nocaseglob \
21352 DLLTOOL \
21353 sharedlib_from_linklib_cmd \
21354 AR \
21355 archiver_list_spec \
21356 STRIP \
21357 RANLIB \
21358 CC \
21359 CFLAGS \
21360 compiler \
21361 lt_cv_sys_global_symbol_pipe \
21362 lt_cv_sys_global_symbol_to_cdecl \
21363 lt_cv_sys_global_symbol_to_import \
21364 lt_cv_sys_global_symbol_to_c_name_address \
21365 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21366 lt_cv_nm_interface \
21367 nm_file_list_spec \
21368 lt_cv_truncate_bin \
21369 lt_prog_compiler_no_builtin_flag \
21370 lt_prog_compiler_pic \
21371 lt_prog_compiler_wl \
21372 lt_prog_compiler_static \
21373 lt_cv_prog_compiler_c_o \
21374 need_locks \
21375 MANIFEST_TOOL \
21376 DSYMUTIL \
21377 NMEDIT \
21378 LIPO \
21379 OTOOL \
21380 OTOOL64 \
21381 shrext_cmds \
21382 export_dynamic_flag_spec \
21383 whole_archive_flag_spec \
21384 compiler_needs_object \
21385 with_gnu_ld \
21386 allow_undefined_flag \
21387 no_undefined_flag \
21388 hardcode_libdir_flag_spec \
21389 hardcode_libdir_separator \
21390 exclude_expsyms \
21391 include_expsyms \
21392 file_list_spec \
21393 variables_saved_for_relink \
21394 libname_spec \
21395 library_names_spec \
21396 soname_spec \
21397 install_override_mode \
21398 finish_eval \
21399 old_striplib \
21400 striplib; do
21401 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21402 *[\\\\\\\`\\"\\\$]*)
21403 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21404 ;;
21405 *)
21406 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21407 ;;
21408 esac
21409 done
21410
21411 # Double-quote double-evaled strings.
21412 for var in reload_cmds \
21413 old_postinstall_cmds \
21414 old_postuninstall_cmds \
21415 old_archive_cmds \
21416 extract_expsyms_cmds \
21417 old_archive_from_new_cmds \
21418 old_archive_from_expsyms_cmds \
21419 archive_cmds \
21420 archive_expsym_cmds \
21421 module_cmds \
21422 module_expsym_cmds \
21423 export_symbols_cmds \
21424 prelink_cmds \
21425 postlink_cmds \
21426 postinstall_cmds \
21427 postuninstall_cmds \
21428 finish_cmds \
21429 sys_lib_search_path_spec \
21430 configure_time_dlsearch_path \
21431 configure_time_lt_sys_library_path; do
21432 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21433 *[\\\\\\\`\\"\\\$]*)
21434 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21435 ;;
21436 *)
21437 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21438 ;;
21439 esac
21440 done
21441
21442 ac_aux_dir='$ac_aux_dir'
21443
21444 # See if we are running on zsh, and set the options that allow our
21445 # commands through without removal of \ escapes INIT.
21446 if test -n "\${ZSH_VERSION+set}"; then
21447 setopt NO_GLOB_SUBST
21448 fi
21449
21450
21451 PACKAGE='$PACKAGE'
21452 VERSION='$VERSION'
21453 RM='$RM'
21454 ofile='$ofile'
21455
21456
21457
21458
21459 _ACEOF
21460
21461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21462
21463 # Handling of arguments.
21464 for ac_config_target in $ac_config_targets
21465 do
21466 case $ac_config_target in
21467 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21469 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21470 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21471 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21472 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21473 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
21474 "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;;
21475
21476 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21477 esac
21478 done
21479
21480
21481 # If the user did not use the arguments to specify the items to instantiate,
21482 # then the envvar interface is used. Set only those that are not.
21483 # We use the long form for the default assignment because of an extremely
21484 # bizarre bug on SunOS 4.1.3.
21485 if $ac_need_defaults; then
21486 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21487 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21488 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21489 fi
21490
21491 # Have a temporary directory for convenience. Make it in the build tree
21492 # simply because there is no reason against having it here, and in addition,
21493 # creating and moving files from /tmp can sometimes cause problems.
21494 # Hook for its removal unless debugging.
21495 # Note that there is a small window in which the directory will not be cleaned:
21496 # after its creation but before its name has been assigned to `$tmp'.
21497 $debug ||
21498 {
21499 tmp= ac_tmp=
21500 trap 'exit_status=$?
21501 : "${ac_tmp:=$tmp}"
21502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21503 ' 0
21504 trap 'as_fn_exit 1' 1 2 13 15
21505 }
21506 # Create a (secure) tmp directory for tmp files.
21507
21508 {
21509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21510 test -d "$tmp"
21511 } ||
21512 {
21513 tmp=./conf$$-$RANDOM
21514 (umask 077 && mkdir "$tmp")
21515 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21516 ac_tmp=$tmp
21517
21518 # Set up the scripts for CONFIG_FILES section.
21519 # No need to generate them if there are no CONFIG_FILES.
21520 # This happens for instance with `./config.status config.h'.
21521 if test -n "$CONFIG_FILES"; then
21522
21523
21524 ac_cr=`echo X | tr X '\015'`
21525 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21526 # But we know of no other shell where ac_cr would be empty at this
21527 # point, so we can use a bashism as a fallback.
21528 if test "x$ac_cr" = x; then
21529 eval ac_cr=\$\'\\r\'
21530 fi
21531 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21532 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21533 ac_cs_awk_cr='\\r'
21534 else
21535 ac_cs_awk_cr=$ac_cr
21536 fi
21537
21538 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21539 _ACEOF
21540
21541
21542 {
21543 echo "cat >conf$$subs.awk <<_ACEOF" &&
21544 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21545 echo "_ACEOF"
21546 } >conf$$subs.sh ||
21547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21548 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21549 ac_delim='%!_!# '
21550 for ac_last_try in false false false false false :; do
21551 . ./conf$$subs.sh ||
21552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21553
21554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21555 if test $ac_delim_n = $ac_delim_num; then
21556 break
21557 elif $ac_last_try; then
21558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21559 else
21560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21561 fi
21562 done
21563 rm -f conf$$subs.sh
21564
21565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21566 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21567 _ACEOF
21568 sed -n '
21569 h
21570 s/^/S["/; s/!.*/"]=/
21571 p
21572 g
21573 s/^[^!]*!//
21574 :repl
21575 t repl
21576 s/'"$ac_delim"'$//
21577 t delim
21578 :nl
21579 h
21580 s/\(.\{148\}\)..*/\1/
21581 t more1
21582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21583 p
21584 n
21585 b repl
21586 :more1
21587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21588 p
21589 g
21590 s/.\{148\}//
21591 t nl
21592 :delim
21593 h
21594 s/\(.\{148\}\)..*/\1/
21595 t more2
21596 s/["\\]/\\&/g; s/^/"/; s/$/"/
21597 p
21598 b
21599 :more2
21600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21601 p
21602 g
21603 s/.\{148\}//
21604 t delim
21605 ' <conf$$subs.awk | sed '
21606 /^[^""]/{
21607 N
21608 s/\n//
21609 }
21610 ' >>$CONFIG_STATUS || ac_write_fail=1
21611 rm -f conf$$subs.awk
21612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21613 _ACAWK
21614 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21615 for (key in S) S_is_set[key] = 1
21616 FS = ""
21617
21618 }
21619 {
21620 line = $ 0
21621 nfields = split(line, field, "@")
21622 substed = 0
21623 len = length(field[1])
21624 for (i = 2; i < nfields; i++) {
21625 key = field[i]
21626 keylen = length(key)
21627 if (S_is_set[key]) {
21628 value = S[key]
21629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21630 len += length(value) + length(field[++i])
21631 substed = 1
21632 } else
21633 len += 1 + keylen
21634 }
21635
21636 print line
21637 }
21638
21639 _ACAWK
21640 _ACEOF
21641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21644 else
21645 cat
21646 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21647 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21648 _ACEOF
21649
21650 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21651 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21652 # trailing colons and then remove the whole line if VPATH becomes empty
21653 # (actually we leave an empty line to preserve line numbers).
21654 if test "x$srcdir" = x.; then
21655 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21656 h
21657 s///
21658 s/^/:/
21659 s/[ ]*$/:/
21660 s/:\$(srcdir):/:/g
21661 s/:\${srcdir}:/:/g
21662 s/:@srcdir@:/:/g
21663 s/^:*//
21664 s/:*$//
21665 x
21666 s/\(=[ ]*\).*/\1/
21667 G
21668 s/\n//
21669 s/^[^=]*=[ ]*$//
21670 }'
21671 fi
21672
21673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21674 fi # test -n "$CONFIG_FILES"
21675
21676 # Set up the scripts for CONFIG_HEADERS section.
21677 # No need to generate them if there are no CONFIG_HEADERS.
21678 # This happens for instance with `./config.status Makefile'.
21679 if test -n "$CONFIG_HEADERS"; then
21680 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21681 BEGIN {
21682 _ACEOF
21683
21684 # Transform confdefs.h into an awk script `defines.awk', embedded as
21685 # here-document in config.status, that substitutes the proper values into
21686 # config.h.in to produce config.h.
21687
21688 # Create a delimiter string that does not exist in confdefs.h, to ease
21689 # handling of long lines.
21690 ac_delim='%!_!# '
21691 for ac_last_try in false false :; do
21692 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21693 if test -z "$ac_tt"; then
21694 break
21695 elif $ac_last_try; then
21696 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21697 else
21698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21699 fi
21700 done
21701
21702 # For the awk script, D is an array of macro values keyed by name,
21703 # likewise P contains macro parameters if any. Preserve backslash
21704 # newline sequences.
21705
21706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21707 sed -n '
21708 s/.\{148\}/&'"$ac_delim"'/g
21709 t rset
21710 :rset
21711 s/^[ ]*#[ ]*define[ ][ ]*/ /
21712 t def
21713 d
21714 :def
21715 s/\\$//
21716 t bsnl
21717 s/["\\]/\\&/g
21718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21719 D["\1"]=" \3"/p
21720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21721 d
21722 :bsnl
21723 s/["\\]/\\&/g
21724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21725 D["\1"]=" \3\\\\\\n"\\/p
21726 t cont
21727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21728 t cont
21729 d
21730 :cont
21731 n
21732 s/.\{148\}/&'"$ac_delim"'/g
21733 t clear
21734 :clear
21735 s/\\$//
21736 t bsnlc
21737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21738 d
21739 :bsnlc
21740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21741 b cont
21742 ' <confdefs.h | sed '
21743 s/'"$ac_delim"'/"\\\
21744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21745
21746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21747 for (key in D) D_is_set[key] = 1
21748 FS = ""
21749 }
21750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21751 line = \$ 0
21752 split(line, arg, " ")
21753 if (arg[1] == "#") {
21754 defundef = arg[2]
21755 mac1 = arg[3]
21756 } else {
21757 defundef = substr(arg[1], 2)
21758 mac1 = arg[2]
21759 }
21760 split(mac1, mac2, "(") #)
21761 macro = mac2[1]
21762 prefix = substr(line, 1, index(line, defundef) - 1)
21763 if (D_is_set[macro]) {
21764 # Preserve the white space surrounding the "#".
21765 print prefix "define", macro P[macro] D[macro]
21766 next
21767 } else {
21768 # Replace #undef with comments. This is necessary, for example,
21769 # in the case of _POSIX_SOURCE, which is predefined and required
21770 # on some systems where configure will not decide to define it.
21771 if (defundef == "undef") {
21772 print "/*", prefix defundef, macro, "*/"
21773 next
21774 }
21775 }
21776 }
21777 { print }
21778 _ACAWK
21779 _ACEOF
21780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21781 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21782 fi # test -n "$CONFIG_HEADERS"
21783
21784
21785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21786 shift
21787 for ac_tag
21788 do
21789 case $ac_tag in
21790 :[FHLC]) ac_mode=$ac_tag; continue;;
21791 esac
21792 case $ac_mode$ac_tag in
21793 :[FHL]*:*);;
21794 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21795 :[FH]-) ac_tag=-:-;;
21796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21797 esac
21798 ac_save_IFS=$IFS
21799 IFS=:
21800 set x $ac_tag
21801 IFS=$ac_save_IFS
21802 shift
21803 ac_file=$1
21804 shift
21805
21806 case $ac_mode in
21807 :L) ac_source=$1;;
21808 :[FH])
21809 ac_file_inputs=
21810 for ac_f
21811 do
21812 case $ac_f in
21813 -) ac_f="$ac_tmp/stdin";;
21814 *) # Look for the file first in the build tree, then in the source tree
21815 # (if the path is not absolute). The absolute path cannot be DOS-style,
21816 # because $ac_f cannot contain `:'.
21817 test -f "$ac_f" ||
21818 case $ac_f in
21819 [\\/$]*) false;;
21820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21821 esac ||
21822 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21823 esac
21824 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21825 as_fn_append ac_file_inputs " '$ac_f'"
21826 done
21827
21828 # Let's still pretend it is `configure' which instantiates (i.e., don't
21829 # use $as_me), people would be surprised to read:
21830 # /* config.h. Generated by config.status. */
21831 configure_input='Generated from '`
21832 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21833 `' by configure.'
21834 if test x"$ac_file" != x-; then
21835 configure_input="$ac_file. $configure_input"
21836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21837 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21838 fi
21839 # Neutralize special characters interpreted by sed in replacement strings.
21840 case $configure_input in #(
21841 *\&* | *\|* | *\\* )
21842 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21844 *) ac_sed_conf_input=$configure_input;;
21845 esac
21846
21847 case $ac_tag in
21848 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21850 esac
21851 ;;
21852 esac
21853
21854 ac_dir=`$as_dirname -- "$ac_file" ||
21855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21856 X"$ac_file" : 'X\(//\)[^/]' \| \
21857 X"$ac_file" : 'X\(//\)$' \| \
21858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21859 printf "%s\n" X"$ac_file" |
21860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21861 s//\1/
21862 q
21863 }
21864 /^X\(\/\/\)[^/].*/{
21865 s//\1/
21866 q
21867 }
21868 /^X\(\/\/\)$/{
21869 s//\1/
21870 q
21871 }
21872 /^X\(\/\).*/{
21873 s//\1/
21874 q
21875 }
21876 s/.*/./; q'`
21877 as_dir="$ac_dir"; as_fn_mkdir_p
21878 ac_builddir=.
21879
21880 case "$ac_dir" in
21881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21882 *)
21883 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21884 # A ".." for each directory in $ac_dir_suffix.
21885 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21886 case $ac_top_builddir_sub in
21887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21889 esac ;;
21890 esac
21891 ac_abs_top_builddir=$ac_pwd
21892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21893 # for backward compatibility:
21894 ac_top_builddir=$ac_top_build_prefix
21895
21896 case $srcdir in
21897 .) # We are building in place.
21898 ac_srcdir=.
21899 ac_top_srcdir=$ac_top_builddir_sub
21900 ac_abs_top_srcdir=$ac_pwd ;;
21901 [\\/]* | ?:[\\/]* ) # Absolute name.
21902 ac_srcdir=$srcdir$ac_dir_suffix;
21903 ac_top_srcdir=$srcdir
21904 ac_abs_top_srcdir=$srcdir ;;
21905 *) # Relative name.
21906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21907 ac_top_srcdir=$ac_top_build_prefix$srcdir
21908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21909 esac
21910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21911
21912
21913 case $ac_mode in
21914 :F)
21915 #
21916 # CONFIG_FILE
21917 #
21918
21919 case $INSTALL in
21920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21922 esac
21923 ac_MKDIR_P=$MKDIR_P
21924 case $MKDIR_P in
21925 [\\/$]* | ?:[\\/]* ) ;;
21926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21927 esac
21928 _ACEOF
21929
21930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21931 # If the template does not know about datarootdir, expand it.
21932 # FIXME: This hack should be removed a few years after 2.60.
21933 ac_datarootdir_hack=; ac_datarootdir_seen=
21934 ac_sed_dataroot='
21935 /datarootdir/ {
21936 p
21937 q
21938 }
21939 /@datadir@/p
21940 /@docdir@/p
21941 /@infodir@/p
21942 /@localedir@/p
21943 /@mandir@/p'
21944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21945 *datarootdir*) ac_datarootdir_seen=yes;;
21946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21948 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21949 _ACEOF
21950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21951 ac_datarootdir_hack='
21952 s&@datadir@&$datadir&g
21953 s&@docdir@&$docdir&g
21954 s&@infodir@&$infodir&g
21955 s&@localedir@&$localedir&g
21956 s&@mandir@&$mandir&g
21957 s&\\\${datarootdir}&$datarootdir&g' ;;
21958 esac
21959 _ACEOF
21960
21961 # Neutralize VPATH when `$srcdir' = `.'.
21962 # Shell code in configure.ac might set extrasub.
21963 # FIXME: do we really want to maintain this feature?
21964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21965 ac_sed_extra="$ac_vpsub
21966 $extrasub
21967 _ACEOF
21968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21969 :t
21970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21971 s|@configure_input@|$ac_sed_conf_input|;t t
21972 s&@top_builddir@&$ac_top_builddir_sub&;t t
21973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21974 s&@srcdir@&$ac_srcdir&;t t
21975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21976 s&@top_srcdir@&$ac_top_srcdir&;t t
21977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21978 s&@builddir@&$ac_builddir&;t t
21979 s&@abs_builddir@&$ac_abs_builddir&;t t
21980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21981 s&@INSTALL@&$ac_INSTALL&;t t
21982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21983 $ac_datarootdir_hack
21984 "
21985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21987
21988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21993 which seems to be undefined. Please make sure it is defined" >&5
21994 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21995 which seems to be undefined. Please make sure it is defined" >&2;}
21996
21997 rm -f "$ac_tmp/stdin"
21998 case $ac_file in
21999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22001 esac \
22002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22003 ;;
22004 :H)
22005 #
22006 # CONFIG_HEADER
22007 #
22008 if test x"$ac_file" != x-; then
22009 {
22010 printf "%s\n" "/* $configure_input */" >&1 \
22011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22012 } >"$ac_tmp/config.h" \
22013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22016 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22017 else
22018 rm -f "$ac_file"
22019 mv "$ac_tmp/config.h" "$ac_file" \
22020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22021 fi
22022 else
22023 printf "%s\n" "/* $configure_input */" >&1 \
22024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22025 || as_fn_error $? "could not create -" "$LINENO" 5
22026 fi
22027 # Compute "$ac_file"'s index in $config_headers.
22028 _am_arg="$ac_file"
22029 _am_stamp_count=1
22030 for _am_header in $config_headers :; do
22031 case $_am_header in
22032 $_am_arg | $_am_arg:* )
22033 break ;;
22034 * )
22035 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22036 esac
22037 done
22038 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22039 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22040 X"$_am_arg" : 'X\(//\)[^/]' \| \
22041 X"$_am_arg" : 'X\(//\)$' \| \
22042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22043 printf "%s\n" X"$_am_arg" |
22044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22045 s//\1/
22046 q
22047 }
22048 /^X\(\/\/\)[^/].*/{
22049 s//\1/
22050 q
22051 }
22052 /^X\(\/\/\)$/{
22053 s//\1/
22054 q
22055 }
22056 /^X\(\/\).*/{
22057 s//\1/
22058 q
22059 }
22060 s/.*/./; q'`/stamp-h$_am_stamp_count
22061 ;;
22062
22063 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22064 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22065 ;;
22066 esac
22067
22068
22069 case $ac_file$ac_mode in
22070 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22071 # Older Autoconf quotes --file arguments for eval, but not when files
22072 # are listed without --file. Let's play safe and only enable the eval
22073 # if we detect the quoting.
22074 # TODO: see whether this extra hack can be removed once we start
22075 # requiring Autoconf 2.70 or later.
22076 case $CONFIG_FILES in #(
22077 *\'*) :
22078 eval set x "$CONFIG_FILES" ;; #(
22079 *) :
22080 set x $CONFIG_FILES ;; #(
22081 *) :
22082 ;;
22083 esac
22084 shift
22085 # Used to flag and report bootstrapping failures.
22086 am_rc=0
22087 for am_mf
22088 do
22089 # Strip MF so we end up with the name of the file.
22090 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22091 # Check whether this is an Automake generated Makefile which includes
22092 # dependency-tracking related rules and includes.
22093 # Grep'ing the whole file directly is not great: AIX grep has a line
22094 # limit of 2048, but all sed's we know have understand at least 4000.
22095 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22096 || continue
22097 am_dirpart=`$as_dirname -- "$am_mf" ||
22098 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22099 X"$am_mf" : 'X\(//\)[^/]' \| \
22100 X"$am_mf" : 'X\(//\)$' \| \
22101 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22102 printf "%s\n" X"$am_mf" |
22103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22104 s//\1/
22105 q
22106 }
22107 /^X\(\/\/\)[^/].*/{
22108 s//\1/
22109 q
22110 }
22111 /^X\(\/\/\)$/{
22112 s//\1/
22113 q
22114 }
22115 /^X\(\/\).*/{
22116 s//\1/
22117 q
22118 }
22119 s/.*/./; q'`
22120 am_filepart=`$as_basename -- "$am_mf" ||
22121 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22122 X"$am_mf" : 'X\(//\)$' \| \
22123 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22124 printf "%s\n" X/"$am_mf" |
22125 sed '/^.*\/\([^/][^/]*\)\/*$/{
22126 s//\1/
22127 q
22128 }
22129 /^X\/\(\/\/\)$/{
22130 s//\1/
22131 q
22132 }
22133 /^X\/\(\/\).*/{
22134 s//\1/
22135 q
22136 }
22137 s/.*/./; q'`
22138 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22139 && sed -e '/# am--include-marker/d' "$am_filepart" \
22140 | $MAKE -f - am--depfiles" >&5
22141 (cd "$am_dirpart" \
22142 && sed -e '/# am--include-marker/d' "$am_filepart" \
22143 | $MAKE -f - am--depfiles) >&5 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } || am_rc=$?
22147 done
22148 if test $am_rc -ne 0; then
22149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22151 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22152 for automatic dependency tracking. If GNU make was not used, consider
22153 re-running the configure script with MAKE=\"gmake\" (or whatever is
22154 necessary). You can also try re-running configure with the
22155 '--disable-dependency-tracking' option to at least be able to build
22156 the package (albeit without support for automatic dependency tracking).
22157 See \`config.log' for more details" "$LINENO" 5; }
22158 fi
22159 { am_dirpart=; unset am_dirpart;}
22160 { am_filepart=; unset am_filepart;}
22161 { am_mf=; unset am_mf;}
22162 { am_rc=; unset am_rc;}
22163 rm -f conftest-deps.mk
22164 }
22165 ;;
22166 "libtool":C)
22167
22168 # See if we are running on zsh, and set the options that allow our
22169 # commands through without removal of \ escapes.
22170 if test -n "${ZSH_VERSION+set}"; then
22171 setopt NO_GLOB_SUBST
22172 fi
22173
22174 cfgfile=${ofile}T
22175 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22176 $RM "$cfgfile"
22177
22178 cat <<_LT_EOF >> "$cfgfile"
22179 #! $SHELL
22180 # Generated automatically by $as_me ($PACKAGE) $VERSION
22181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22183
22184 # Provide generalized library-building support services.
22185 # Written by Gordon Matzigkeit, 1996
22186
22187 # Copyright (C) 2014 Free Software Foundation, Inc.
22188 # This is free software; see the source for copying conditions. There is NO
22189 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22190
22191 # GNU Libtool is free software; you can redistribute it and/or modify
22192 # it under the terms of the GNU General Public License as published by
22193 # the Free Software Foundation; either version 2 of of the License, or
22194 # (at your option) any later version.
22195 #
22196 # As a special exception to the GNU General Public License, if you
22197 # distribute this file as part of a program or library that is built
22198 # using GNU Libtool, you may include this file under the same
22199 # distribution terms that you use for the rest of that program.
22200 #
22201 # GNU Libtool is distributed in the hope that it will be useful, but
22202 # WITHOUT ANY WARRANTY; without even the implied warranty of
22203 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22204 # GNU General Public License for more details.
22205 #
22206 # You should have received a copy of the GNU General Public License
22207 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22208
22209
22210 # The names of the tagged configurations supported by this script.
22211 available_tags=''
22212
22213 # Configured defaults for sys_lib_dlsearch_path munging.
22214 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22215
22216 # ### BEGIN LIBTOOL CONFIG
22217
22218 # Which release of libtool.m4 was used?
22219 macro_version=$macro_version
22220 macro_revision=$macro_revision
22221
22222 # Whether or not to build shared libraries.
22223 build_libtool_libs=$enable_shared
22224
22225 # Whether or not to build static libraries.
22226 build_old_libs=$enable_static
22227
22228 # What type of objects to build.
22229 pic_mode=$pic_mode
22230
22231 # Whether or not to optimize for fast installation.
22232 fast_install=$enable_fast_install
22233
22234 # Shared archive member basename,for filename based shared library versioning on AIX.
22235 shared_archive_member_spec=$shared_archive_member_spec
22236
22237 # Shell to use when invoking shell scripts.
22238 SHELL=$lt_SHELL
22239
22240 # An echo program that protects backslashes.
22241 ECHO=$lt_ECHO
22242
22243 # The PATH separator for the build system.
22244 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22245
22246 # The host system.
22247 host_alias=$host_alias
22248 host=$host
22249 host_os=$host_os
22250
22251 # The build system.
22252 build_alias=$build_alias
22253 build=$build
22254 build_os=$build_os
22255
22256 # A sed program that does not truncate output.
22257 SED=$lt_SED
22258
22259 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22260 Xsed="\$SED -e 1s/^X//"
22261
22262 # A grep program that handles long lines.
22263 GREP=$lt_GREP
22264
22265 # An ERE matcher.
22266 EGREP=$lt_EGREP
22267
22268 # A literal string matcher.
22269 FGREP=$lt_FGREP
22270
22271 # A BSD- or MS-compatible name lister.
22272 NM=$lt_NM
22273
22274 # Whether we need soft or hard links.
22275 LN_S=$lt_LN_S
22276
22277 # What is the maximum length of a command?
22278 max_cmd_len=$max_cmd_len
22279
22280 # Object file suffix (normally "o").
22281 objext=$ac_objext
22282
22283 # Executable file suffix (normally "").
22284 exeext=$exeext
22285
22286 # whether the shell understands "unset".
22287 lt_unset=$lt_unset
22288
22289 # turn spaces into newlines.
22290 SP2NL=$lt_lt_SP2NL
22291
22292 # turn newlines into spaces.
22293 NL2SP=$lt_lt_NL2SP
22294
22295 # convert \$build file names to \$host format.
22296 to_host_file_cmd=$lt_cv_to_host_file_cmd
22297
22298 # convert \$build files to toolchain format.
22299 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22300
22301 # A file(cmd) program that detects file types.
22302 FILECMD=$lt_FILECMD
22303
22304 # An object symbol dumper.
22305 OBJDUMP=$lt_OBJDUMP
22306
22307 # Method to check whether dependent libraries are shared objects.
22308 deplibs_check_method=$lt_deplibs_check_method
22309
22310 # Command to use when deplibs_check_method = "file_magic".
22311 file_magic_cmd=$lt_file_magic_cmd
22312
22313 # How to find potential files when deplibs_check_method = "file_magic".
22314 file_magic_glob=$lt_file_magic_glob
22315
22316 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22317 want_nocaseglob=$lt_want_nocaseglob
22318
22319 # DLL creation program.
22320 DLLTOOL=$lt_DLLTOOL
22321
22322 # Command to associate shared and link libraries.
22323 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22324
22325 # The archiver.
22326 AR=$lt_AR
22327
22328 # Flags to create an archive (by configure).
22329 lt_ar_flags=$lt_ar_flags
22330
22331 # Flags to create an archive.
22332 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22333
22334 # How to feed a file listing to the archiver.
22335 archiver_list_spec=$lt_archiver_list_spec
22336
22337 # A symbol stripping program.
22338 STRIP=$lt_STRIP
22339
22340 # Commands used to install an old-style archive.
22341 RANLIB=$lt_RANLIB
22342 old_postinstall_cmds=$lt_old_postinstall_cmds
22343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22344
22345 # Whether to use a lock for old archive extraction.
22346 lock_old_archive_extraction=$lock_old_archive_extraction
22347
22348 # A C compiler.
22349 LTCC=$lt_CC
22350
22351 # LTCC compiler flags.
22352 LTCFLAGS=$lt_CFLAGS
22353
22354 # Take the output of nm and produce a listing of raw symbols and C names.
22355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22356
22357 # Transform the output of nm in a proper C declaration.
22358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22359
22360 # Transform the output of nm into a list of symbols to manually relocate.
22361 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22362
22363 # Transform the output of nm in a C name address pair.
22364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22365
22366 # Transform the output of nm in a C name address pair when lib prefix is needed.
22367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22368
22369 # The name lister interface.
22370 nm_interface=$lt_lt_cv_nm_interface
22371
22372 # Specify filename containing input files for \$NM.
22373 nm_file_list_spec=$lt_nm_file_list_spec
22374
22375 # The root where to search for dependent libraries,and where our libraries should be installed.
22376 lt_sysroot=$lt_sysroot
22377
22378 # Command to truncate a binary pipe.
22379 lt_truncate_bin=$lt_lt_cv_truncate_bin
22380
22381 # The name of the directory that contains temporary libtool files.
22382 objdir=$objdir
22383
22384 # Used to examine libraries when file_magic_cmd begins with "file".
22385 MAGIC_CMD=$MAGIC_CMD
22386
22387 # Must we lock files when doing compilation?
22388 need_locks=$lt_need_locks
22389
22390 # Manifest tool.
22391 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22392
22393 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22394 DSYMUTIL=$lt_DSYMUTIL
22395
22396 # Tool to change global to local symbols on Mac OS X.
22397 NMEDIT=$lt_NMEDIT
22398
22399 # Tool to manipulate fat objects and archives on Mac OS X.
22400 LIPO=$lt_LIPO
22401
22402 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22403 OTOOL=$lt_OTOOL
22404
22405 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22406 OTOOL64=$lt_OTOOL64
22407
22408 # Old archive suffix (normally "a").
22409 libext=$libext
22410
22411 # Shared library suffix (normally ".so").
22412 shrext_cmds=$lt_shrext_cmds
22413
22414 # The commands to extract the exported symbol list from a shared archive.
22415 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22416
22417 # Variables whose values should be saved in libtool wrapper scripts and
22418 # restored at link time.
22419 variables_saved_for_relink=$lt_variables_saved_for_relink
22420
22421 # Do we need the "lib" prefix for modules?
22422 need_lib_prefix=$need_lib_prefix
22423
22424 # Do we need a version for libraries?
22425 need_version=$need_version
22426
22427 # Library versioning type.
22428 version_type=$version_type
22429
22430 # Shared library runtime path variable.
22431 runpath_var=$runpath_var
22432
22433 # Shared library path variable.
22434 shlibpath_var=$shlibpath_var
22435
22436 # Is shlibpath searched before the hard-coded library search path?
22437 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22438
22439 # Format of library name prefix.
22440 libname_spec=$lt_libname_spec
22441
22442 # List of archive names. First name is the real one, the rest are links.
22443 # The last name is the one that the linker finds with -lNAME
22444 library_names_spec=$lt_library_names_spec
22445
22446 # The coded name of the library, if different from the real name.
22447 soname_spec=$lt_soname_spec
22448
22449 # Permission mode override for installation of shared libraries.
22450 install_override_mode=$lt_install_override_mode
22451
22452 # Command to use after installation of a shared archive.
22453 postinstall_cmds=$lt_postinstall_cmds
22454
22455 # Command to use after uninstallation of a shared archive.
22456 postuninstall_cmds=$lt_postuninstall_cmds
22457
22458 # Commands used to finish a libtool library installation in a directory.
22459 finish_cmds=$lt_finish_cmds
22460
22461 # As "finish_cmds", except a single script fragment to be evaled but
22462 # not shown.
22463 finish_eval=$lt_finish_eval
22464
22465 # Whether we should hardcode library paths into libraries.
22466 hardcode_into_libs=$hardcode_into_libs
22467
22468 # Compile-time system search path for libraries.
22469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22470
22471 # Detected run-time system search path for libraries.
22472 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22473
22474 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22475 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22476
22477 # Whether dlopen is supported.
22478 dlopen_support=$enable_dlopen
22479
22480 # Whether dlopen of programs is supported.
22481 dlopen_self=$enable_dlopen_self
22482
22483 # Whether dlopen of statically linked programs is supported.
22484 dlopen_self_static=$enable_dlopen_self_static
22485
22486 # Commands to strip libraries.
22487 old_striplib=$lt_old_striplib
22488 striplib=$lt_striplib
22489
22490
22491 # The linker used to build libraries.
22492 LD=$lt_LD
22493
22494 # How to create reloadable object files.
22495 reload_flag=$lt_reload_flag
22496 reload_cmds=$lt_reload_cmds
22497
22498 # Commands used to build an old-style archive.
22499 old_archive_cmds=$lt_old_archive_cmds
22500
22501 # A language specific compiler.
22502 CC=$lt_compiler
22503
22504 # Is the compiler the GNU compiler?
22505 with_gcc=$GCC
22506
22507 # Compiler flag to turn off builtin functions.
22508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22509
22510 # Additional compiler flags for building library objects.
22511 pic_flag=$lt_lt_prog_compiler_pic
22512
22513 # How to pass a linker flag through the compiler.
22514 wl=$lt_lt_prog_compiler_wl
22515
22516 # Compiler flag to prevent dynamic linking.
22517 link_static_flag=$lt_lt_prog_compiler_static
22518
22519 # Does compiler simultaneously support -c and -o options?
22520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22521
22522 # Whether or not to add -lc for building shared libraries.
22523 build_libtool_need_lc=$archive_cmds_need_lc
22524
22525 # Whether or not to disallow shared libs when runtime libs are static.
22526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22527
22528 # Compiler flag to allow reflexive dlopens.
22529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22530
22531 # Compiler flag to generate shared objects directly from archives.
22532 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22533
22534 # Whether the compiler copes with passing no objects directly.
22535 compiler_needs_object=$lt_compiler_needs_object
22536
22537 # Create an old-style archive from a shared archive.
22538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22539
22540 # Create a temporary old-style archive to link instead of a shared archive.
22541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22542
22543 # Commands used to build a shared archive.
22544 archive_cmds=$lt_archive_cmds
22545 archive_expsym_cmds=$lt_archive_expsym_cmds
22546
22547 # Commands used to build a loadable module if different from building
22548 # a shared archive.
22549 module_cmds=$lt_module_cmds
22550 module_expsym_cmds=$lt_module_expsym_cmds
22551
22552 # Whether we are building with GNU ld or not.
22553 with_gnu_ld=$lt_with_gnu_ld
22554
22555 # Flag that allows shared libraries with undefined symbols to be built.
22556 allow_undefined_flag=$lt_allow_undefined_flag
22557
22558 # Flag that enforces no undefined symbols.
22559 no_undefined_flag=$lt_no_undefined_flag
22560
22561 # Flag to hardcode \$libdir into a binary during linking.
22562 # This must work even if \$libdir does not exist
22563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22564
22565 # Whether we need a single "-rpath" flag with a separated argument.
22566 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22567
22568 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22569 # DIR into the resulting binary.
22570 hardcode_direct=$hardcode_direct
22571
22572 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22573 # DIR into the resulting binary and the resulting library dependency is
22574 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22575 # library is relocated.
22576 hardcode_direct_absolute=$hardcode_direct_absolute
22577
22578 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22579 # into the resulting binary.
22580 hardcode_minus_L=$hardcode_minus_L
22581
22582 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22583 # into the resulting binary.
22584 hardcode_shlibpath_var=$hardcode_shlibpath_var
22585
22586 # Set to "yes" if building a shared library automatically hardcodes DIR
22587 # into the library and all subsequent libraries and executables linked
22588 # against it.
22589 hardcode_automatic=$hardcode_automatic
22590
22591 # Set to yes if linker adds runtime paths of dependent libraries
22592 # to runtime path list.
22593 inherit_rpath=$inherit_rpath
22594
22595 # Whether libtool must link a program against all its dependency libraries.
22596 link_all_deplibs=$link_all_deplibs
22597
22598 # Set to "yes" if exported symbols are required.
22599 always_export_symbols=$always_export_symbols
22600
22601 # The commands to list exported symbols.
22602 export_symbols_cmds=$lt_export_symbols_cmds
22603
22604 # Symbols that should not be listed in the preloaded symbols.
22605 exclude_expsyms=$lt_exclude_expsyms
22606
22607 # Symbols that must always be exported.
22608 include_expsyms=$lt_include_expsyms
22609
22610 # Commands necessary for linking programs (against libraries) with templates.
22611 prelink_cmds=$lt_prelink_cmds
22612
22613 # Commands necessary for finishing linking programs.
22614 postlink_cmds=$lt_postlink_cmds
22615
22616 # Specify filename containing input files.
22617 file_list_spec=$lt_file_list_spec
22618
22619 # How to hardcode a shared library path into an executable.
22620 hardcode_action=$hardcode_action
22621
22622 # ### END LIBTOOL CONFIG
22623
22624 _LT_EOF
22625
22626 cat <<'_LT_EOF' >> "$cfgfile"
22627
22628 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22629
22630 # func_munge_path_list VARIABLE PATH
22631 # -----------------------------------
22632 # VARIABLE is name of variable containing _space_ separated list of
22633 # directories to be munged by the contents of PATH, which is string
22634 # having a format:
22635 # "DIR[:DIR]:"
22636 # string "DIR[ DIR]" will be prepended to VARIABLE
22637 # ":DIR[:DIR]"
22638 # string "DIR[ DIR]" will be appended to VARIABLE
22639 # "DIRP[:DIRP]::[DIRA:]DIRA"
22640 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22641 # "DIRA[ DIRA]" will be appended to VARIABLE
22642 # "DIR[:DIR]"
22643 # VARIABLE will be replaced by "DIR[ DIR]"
22644 func_munge_path_list ()
22645 {
22646 case x$2 in
22647 x)
22648 ;;
22649 *:)
22650 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22651 ;;
22652 x:*)
22653 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22654 ;;
22655 *::*)
22656 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22657 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22658 ;;
22659 *)
22660 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22661 ;;
22662 esac
22663 }
22664
22665
22666 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22667 func_cc_basename ()
22668 {
22669 for cc_temp in $*""; do
22670 case $cc_temp in
22671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22673 \-*) ;;
22674 *) break;;
22675 esac
22676 done
22677 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22678 }
22679
22680
22681 # ### END FUNCTIONS SHARED WITH CONFIGURE
22682
22683 _LT_EOF
22684
22685 case $host_os in
22686 aix3*)
22687 cat <<\_LT_EOF >> "$cfgfile"
22688 # AIX sometimes has problems with the GCC collect2 program. For some
22689 # reason, if we set the COLLECT_NAMES environment variable, the problems
22690 # vanish in a puff of smoke.
22691 if test set != "${COLLECT_NAMES+set}"; then
22692 COLLECT_NAMES=
22693 export COLLECT_NAMES
22694 fi
22695 _LT_EOF
22696 ;;
22697 esac
22698
22699
22700
22701 ltmain=$ac_aux_dir/ltmain.sh
22702
22703
22704 # We use sed instead of cat because bash on DJGPP gets confused if
22705 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22706 # text mode, it properly converts lines to CR/LF. This bash problem
22707 # is reportedly fixed, but why not run on old versions too?
22708 $SED '$q' "$ltmain" >> "$cfgfile" \
22709 || (rm -f "$cfgfile"; exit 1)
22710
22711 mv -f "$cfgfile" "$ofile" ||
22712 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22713 chmod +x "$ofile"
22714
22715 ;;
22716
22717 esac
22718 done # for ac_tag
22719
22720
22721 as_fn_exit 0
22722 _ACEOF
22723 ac_clean_files=$ac_clean_files_save
22724
22725 test $ac_write_fail = 0 ||
22726 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22727
22728
22729 # configure is writing to config.log, and then calls config.status.
22730 # config.status does its own redirection, appending to config.log.
22731 # Unfortunately, on DOS this fails, as config.log is still kept open
22732 # by configure, so config.status won't be able to write to it; its
22733 # output is simply discarded. So we exec the FD to /dev/null,
22734 # effectively closing config.log, so it can be properly (re)opened and
22735 # appended to by config.status. When coming back to configure, we
22736 # need to make the FD available again.
22737 if test "$no_create" != yes; then
22738 ac_cs_success=:
22739 ac_config_status_args=
22740 test "$silent" = yes &&
22741 ac_config_status_args="$ac_config_status_args --quiet"
22742 exec 5>/dev/null
22743 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22744 exec 5>>config.log
22745 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22746 # would make configure fail if this is the last instruction.
22747 $ac_cs_success || as_fn_exit 1
22748 fi
22749 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22751 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22752 fi
22753
22754
22755