configure revision 1.1.1.11 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXfont 1.5.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libXfont'
653 PACKAGE_TARNAME='libXfont'
654 PACKAGE_VERSION='1.5.4'
655 PACKAGE_STRING='libXfont 1.5.4'
656 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 OS_CFLAGS
701 XFONT_LIBS
702 XFONT_CFLAGS
703 MATH_LIBS
704 XFONT_FC_FALSE
705 XFONT_FC_TRUE
706 XFONT_FONTFILE_FALSE
707 XFONT_FONTFILE_TRUE
708 XFONT_BITMAP_FALSE
709 XFONT_BITMAP_TRUE
710 XFONT_SNFFORMAT_FALSE
711 XFONT_SNFFORMAT_TRUE
712 XFONT_BDFFORMAT_FALSE
713 XFONT_BDFFORMAT_TRUE
714 XFONT_PCF_OR_BUILTIN_FALSE
715 XFONT_PCF_OR_BUILTIN_TRUE
716 XFONT_PCFFORMAT_FALSE
717 XFONT_PCFFORMAT_TRUE
718 XFONT_BUILTINS_FALSE
719 XFONT_BUILTINS_TRUE
720 Z_LIBS
721 X_BZIP2_FONT_COMPRESSION_FALSE
722 X_BZIP2_FONT_COMPRESSION_TRUE
723 X_GZIP_FONT_COMPRESSION
724 FREETYPE_REQUIRES
725 ft_config
726 FREETYPE_LIBS
727 FREETYPE_CFLAGS
728 XFONT_FREETYPE_FALSE
729 XFONT_FREETYPE_TRUE
730 HAVE_STYLESHEETS_FALSE
731 HAVE_STYLESHEETS_TRUE
732 XSL_STYLESHEET
733 STYLESHEET_SRCDIR
734 XORG_SGML_PATH
735 HAVE_FOP_FALSE
736 HAVE_FOP_TRUE
737 FOP
738 HAVE_XMLTO_FALSE
739 HAVE_XMLTO_TRUE
740 HAVE_XMLTO_TEXT_FALSE
741 HAVE_XMLTO_TEXT_TRUE
742 XMLTO
743 ENABLE_DEVEL_DOCS_FALSE
744 ENABLE_DEVEL_DOCS_TRUE
745 MAN_SUBSTS
746 XORG_MAN_PAGE
747 ADMIN_MAN_DIR
748 DRIVER_MAN_DIR
749 MISC_MAN_DIR
750 FILE_MAN_DIR
751 LIB_MAN_DIR
752 APP_MAN_DIR
753 ADMIN_MAN_SUFFIX
754 DRIVER_MAN_SUFFIX
755 MISC_MAN_SUFFIX
756 FILE_MAN_SUFFIX
757 LIB_MAN_SUFFIX
758 APP_MAN_SUFFIX
759 INSTALL_CMD
760 PKG_CONFIG_LIBDIR
761 PKG_CONFIG_PATH
762 PKG_CONFIG
763 CHANGELOG_CMD
764 STRICT_CFLAGS
765 CWARNFLAGS
766 BASE_CFLAGS
767 LT_SYS_LIBRARY_PATH
768 OTOOL64
769 OTOOL
770 LIPO
771 NMEDIT
772 DSYMUTIL
773 MANIFEST_TOOL
774 RANLIB
775 ac_ct_AR
776 AR
777 DLLTOOL
778 OBJDUMP
779 LN_S
780 NM
781 ac_ct_DUMPBIN
782 DUMPBIN
783 LD
784 FGREP
785 SED
786 host_os
787 host_vendor
788 host_cpu
789 host
790 build_os
791 build_vendor
792 build_cpu
793 build
794 LIBTOOL
795 EGREP
796 GREP
797 CPP
798 am__fastdepCC_FALSE
799 am__fastdepCC_TRUE
800 CCDEPMODE
801 am__nodep
802 AMDEPBACKSLASH
803 AMDEP_FALSE
804 AMDEP_TRUE
805 am__quote
806 am__include
807 DEPDIR
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
814 CC
815 AM_BACKSLASH
816 AM_DEFAULT_VERBOSITY
817 AM_DEFAULT_V
818 AM_V
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
824 AWK
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 runstatedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_silent_rules
885 enable_dependency_tracking
886 enable_shared
887 enable_static
888 with_pic
889 enable_fast_install
890 with_aix_soname
891 with_gnu_ld
892 with_sysroot
893 enable_libtool_lock
894 enable_selective_werror
895 enable_strict_compilation
896 enable_devel_docs
897 with_xmlto
898 with_fop
899 enable_freetype
900 with_freetype_config
901 with_bzip2
902 enable_builtins
903 enable_pcfformat
904 enable_bdfformat
905 enable_snfformat
906 enable_fc
907 enable_unix_transport
908 enable_tcp_transport
909 enable_ipv6
910 enable_local_transport
911 '
912 ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 CPP
921 LT_SYS_LIBRARY_PATH
922 PKG_CONFIG
923 PKG_CONFIG_PATH
924 PKG_CONFIG_LIBDIR
925 XMLTO
926 FOP
927 FREETYPE_CFLAGS
928 FREETYPE_LIBS
929 XFONT_CFLAGS
930 XFONT_LIBS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
954
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 runstatedir='${localstatedir}/run'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
989 ac_prev=
990 continue
991 fi
992
993 case $ac_option in
994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *=) ac_optarg= ;;
996 *) ac_optarg=yes ;;
997 esac
998
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001 case $ac_dashdash$ac_option in
1002 --)
1003 ac_dashdash=yes ;;
1004
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 ac_prev=bindir ;;
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008 bindir=$ac_optarg ;;
1009
1010 -build | --build | --buil | --bui | --bu)
1011 ac_prev=build_alias ;;
1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013 build_alias=$ac_optarg ;;
1014
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020 cache_file=$ac_optarg ;;
1021
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
1024
1025 -datadir | --datadir | --datadi | --datad)
1026 ac_prev=datadir ;;
1027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028 datadir=$ac_optarg ;;
1029
1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1036
1037 -disable-* | --disable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=no ;;
1052
1053 -docdir | --docdir | --docdi | --doc | --do)
1054 ac_prev=docdir ;;
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1057
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 ac_prev=dvidir ;;
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
1062
1063 -enable-* | --enable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
1078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1098
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1103
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1133
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1207
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -runstatedir | --runstatedir | --runstatedi | --runstated \
1223 | --runstate | --runstat | --runsta | --runst | --runs \
1224 | --run | --ru | --r)
1225 ac_prev=runstatedir ;;
1226 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1227 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1228 | --run=* | --ru=* | --r=*)
1229 runstatedir=$ac_optarg ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1291
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information"
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346 ;;
1347
1348 esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error $? "missing argument to $ac_option"
1354 fi
1355
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir runstatedir
1369 do
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1384
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1391
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error $? "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error $? "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446 else
1447 ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures libXfont 1.5.4 to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking ...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of libXfont 1.5.4:";;
1553 esac
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-silent-rules less verbose build output (undo: "make V=1")
1561 --disable-silent-rules verbose build output (undo: "make V=0")
1562 --enable-dependency-tracking
1563 do not reject slow dependency extractors
1564 --disable-dependency-tracking
1565 speeds up one-time build
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --disable-selective-werror
1572 Turn off selective compiler errors. (default:
1573 enabled)
1574 --enable-strict-compilation
1575 Enable all warnings from compiler and make them
1576 errors (default: disabled)
1577 --enable-devel-docs Enable building the developer documentation
1578 (default: yes)
1579 --disable-freetype Build freetype backend (default: enabled)
1580 --disable-builtins Support builtin fonts (default: enabled)
1581 --disable-pcfformat Support PCF format bitmap fonts (default: enabled)
1582 --disable-bdfformat Support BDF format bitmap fonts (default: enabled)
1583 --enable-snfformat Support SNF format bitmap fonts (default: disabled)
1584 --disable-fc Support connections to xfs servers (default:
1585 enabled)
1586 --enable-unix-transport Enable UNIX domain socket transport
1587 --enable-tcp-transport Enable TCP socket transport
1588 --enable-ipv6 Enable IPv6 support
1589 --enable-local-transport
1590 Enable os-specific local transport
1591
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1596 both]
1597 --with-aix-soname=aix|svr4|both
1598 shared library versioning (aka "SONAME") variant to
1599 provide on AIX, [default=aix].
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1602 compiler's sysroot if not specified).
1603 --with-xmlto Use xmlto to regenerate documentation (default:
1604 auto)
1605 --with-fop Use fop to regenerate documentation (default: auto)
1606 --with-freetype-config=PROG
1607 Use FreeType configuration program PROG
1608 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts
1609 (default: no)
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CPP C preprocessor
1620 LT_SYS_LIBRARY_PATH
1621 User-defined run-time library search path.
1622 PKG_CONFIG path to pkg-config utility
1623 PKG_CONFIG_PATH
1624 directories to add to pkg-config's search path
1625 PKG_CONFIG_LIBDIR
1626 path overriding pkg-config's built-in search path
1627 XMLTO Path to xmlto command
1628 FOP Path to fop command
1629 FREETYPE_CFLAGS
1630 C compiler flags for FREETYPE, overriding pkg-config
1631 FREETYPE_LIBS
1632 linker flags for FREETYPE, overriding pkg-config
1633 XFONT_CFLAGS
1634 C compiler flags for XFONT, overriding pkg-config
1635 XFONT_LIBS linker flags for XFONT, overriding pkg-config
1636
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1639
1640 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1641 _ACEOF
1642 ac_status=$?
1643 fi
1644
1645 if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
1651 ac_builddir=.
1652
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *)
1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1668
1669 case $srcdir in
1670 .) # We are building in place.
1671 ac_srcdir=.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1693 else
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1697 done
1698 fi
1699
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702 cat <<\_ACEOF
1703 libXfont configure 1.5.4
1704 generated by GNU Autoconf 2.69
1705
1706 Copyright (C) 2012 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1711 fi
1712
1713 ## ------------------------ ##
1714 ## Autoconf initialization. ##
1715 ## ------------------------ ##
1716
1717 # ac_fn_c_try_compile LINENO
1718 # --------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749 fi
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_compile
1754
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_cpp
1791
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1796 # accordingly.
1797 ac_fn_c_check_header_mongrel ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if eval \${$3+:} false; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 else
1810 # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1820 else
1821 ac_header_compiler=no
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1826
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1836 else
1837 ac_header_preproc=no
1838 fi
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1842
1843 # So? What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845 yes:no: )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ;;
1851 no:yes:* )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ( $as_echo "## ---------------------------------------------------------------------- ##
1863 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1864 ## ---------------------------------------------------------------------- ##"
1865 ) | sed "s/^/$as_me: WARNING: /" >&2
1866 ;;
1867 esac
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 eval "$3=\$ac_header_compiler"
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 fi
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_header_mongrel
1882
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886 # that executables *can* be run.
1887 ac_fn_c_try_run ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>&5
1898 ac_status=$?
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901 { { case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_try") 2>&5
1908 ac_status=$?
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; }; }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: program exited with status $ac_status" >&5
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=$ac_status
1918 fi
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_run
1924
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $4
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$3=yes"
1944 else
1945 eval "$3=no"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_header_compile
1955
1956 # ac_fn_c_try_link LINENO
1957 # -----------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_c_try_link ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1976 fi
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_c_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1984 }; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
1999
2000 } # ac_fn_c_try_link
2001
2002 # ac_fn_c_check_func LINENO FUNC VAR
2003 # ----------------------------------
2004 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2005 ac_fn_c_check_func ()
2006 {
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2017 #define $2 innocuous_$2
2018
2019 /* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char $2 (); below.
2021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022 <limits.h> exists even on freestanding compilers. */
2023
2024 #ifdef __STDC__
2025 # include <limits.h>
2026 #else
2027 # include <assert.h>
2028 #endif
2029
2030 #undef $2
2031
2032 /* Override any GCC internal prototype to avoid an error.
2033 Use char because int might match the return type of a GCC
2034 builtin and then its argument prototype would still apply. */
2035 #ifdef __cplusplus
2036 extern "C"
2037 #endif
2038 char $2 ();
2039 /* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042 #if defined __stub_$2 || defined __stub___$2
2043 choke me
2044 #endif
2045
2046 int
2047 main ()
2048 {
2049 return $2 ();
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_link "$LINENO"; then :
2055 eval "$3=yes"
2056 else
2057 eval "$3=no"
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext \
2060 conftest$ac_exeext conftest.$ac_ext
2061 fi
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067 } # ac_fn_c_check_func
2068
2069 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2070 # ---------------------------------------------
2071 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2072 # accordingly.
2073 ac_fn_c_check_decl ()
2074 {
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 as_decl_name=`echo $2|sed 's/ *(.*//'`
2077 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2079 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main ()
2088 {
2089 #ifndef $as_decl_name
2090 #ifdef __cplusplus
2091 (void) $as_decl_use;
2092 #else
2093 (void) $as_decl_name;
2094 #endif
2095 #endif
2096
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$3=yes"
2103 else
2104 eval "$3=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113 } # ac_fn_c_check_decl
2114
2115 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116 # ----------------------------------------------------
2117 # Tries to find if the field MEMBER exists in type AGGR, after including
2118 # INCLUDES, setting cache variable VAR accordingly.
2119 ac_fn_c_check_member ()
2120 {
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123 $as_echo_n "checking for $2.$3... " >&6; }
2124 if eval \${$4+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $5
2130 int
2131 main ()
2132 {
2133 static $2 ac_aggr;
2134 if (ac_aggr.$3)
2135 return 0;
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 eval "$4=yes"
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $5
2146 int
2147 main ()
2148 {
2149 static $2 ac_aggr;
2150 if (sizeof ac_aggr.$3)
2151 return 0;
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$4=yes"
2158 else
2159 eval "$4=no"
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 eval ac_res=\$$4
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170 } # ac_fn_c_check_member
2171
2172 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2173 # -------------------------------------------
2174 # Tests whether TYPE exists after having included INCLUDES, setting cache
2175 # variable VAR accordingly.
2176 ac_fn_c_check_type ()
2177 {
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 eval "$3=no"
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 if (sizeof ($2))
2192 return 0;
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 if (sizeof (($2)))
2205 return 0;
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211
2212 else
2213 eval "$3=yes"
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224 } # ac_fn_c_check_type
2225 cat >config.log <<_ACEOF
2226 This file contains any messages produced by compilers while
2227 running configure, to aid debugging if configure makes a mistake.
2228
2229 It was created by libXfont $as_me 1.5.4, which was
2230 generated by GNU Autoconf 2.69. Invocation command line was
2231
2232 $ $0 $@
2233
2234 _ACEOF
2235 exec 5>>config.log
2236 {
2237 cat <<_ASUNAME
2238 ## --------- ##
2239 ## Platform. ##
2240 ## --------- ##
2241
2242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2247
2248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2250
2251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2254 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2258
2259 _ASUNAME
2260
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 $as_echo "PATH: $as_dir"
2267 done
2268 IFS=$as_save_IFS
2269
2270 } >&5
2271
2272 cat >&5 <<_ACEOF
2273
2274
2275 ## ----------- ##
2276 ## Core tests. ##
2277 ## ----------- ##
2278
2279 _ACEOF
2280
2281
2282 # Keep a trace of the command line.
2283 # Strip out --no-create and --no-recursion so they do not pile up.
2284 # Strip out --silent because we don't want to record it for future runs.
2285 # Also quote any args containing shell meta-characters.
2286 # Make two passes to allow for proper duplicate-argument suppression.
2287 ac_configure_args=
2288 ac_configure_args0=
2289 ac_configure_args1=
2290 ac_must_keep_next=false
2291 for ac_pass in 1 2
2292 do
2293 for ac_arg
2294 do
2295 case $ac_arg in
2296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298 | -silent | --silent | --silen | --sile | --sil)
2299 continue ;;
2300 *\'*)
2301 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 esac
2303 case $ac_pass in
2304 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2305 2)
2306 as_fn_append ac_configure_args1 " '$ac_arg'"
2307 if test $ac_must_keep_next = true; then
2308 ac_must_keep_next=false # Got value, back to normal.
2309 else
2310 case $ac_arg in
2311 *=* | --config-cache | -C | -disable-* | --disable-* \
2312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314 | -with-* | --with-* | -without-* | --without-* | --x)
2315 case "$ac_configure_args0 " in
2316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2317 esac
2318 ;;
2319 -* ) ac_must_keep_next=true ;;
2320 esac
2321 fi
2322 as_fn_append ac_configure_args " '$ac_arg'"
2323 ;;
2324 esac
2325 done
2326 done
2327 { ac_configure_args0=; unset ac_configure_args0;}
2328 { ac_configure_args1=; unset ac_configure_args1;}
2329
2330 # When interrupted or exit'd, cleanup temporary files, and complete
2331 # config.log. We remove comments because anyway the quotes in there
2332 # would cause problems or look ugly.
2333 # WARNING: Use '\'' to represent an apostrophe within the trap.
2334 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335 trap 'exit_status=$?
2336 # Save into config.log some information that might help in debugging.
2337 {
2338 echo
2339
2340 $as_echo "## ---------------- ##
2341 ## Cache variables. ##
2342 ## ---------------- ##"
2343 echo
2344 # The following way of writing the cache mishandles newlines in values,
2345 (
2346 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2347 eval ac_val=\$$ac_var
2348 case $ac_val in #(
2349 *${as_nl}*)
2350 case $ac_var in #(
2351 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2352 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353 esac
2354 case $ac_var in #(
2355 _ | IFS | as_nl) ;; #(
2356 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2357 *) { eval $ac_var=; unset $ac_var;} ;;
2358 esac ;;
2359 esac
2360 done
2361 (set) 2>&1 |
2362 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2363 *${as_nl}ac_space=\ *)
2364 sed -n \
2365 "s/'\''/'\''\\\\'\'''\''/g;
2366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367 ;; #(
2368 *)
2369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370 ;;
2371 esac |
2372 sort
2373 )
2374 echo
2375
2376 $as_echo "## ----------------- ##
2377 ## Output variables. ##
2378 ## ----------------- ##"
2379 echo
2380 for ac_var in $ac_subst_vars
2381 do
2382 eval ac_val=\$$ac_var
2383 case $ac_val in
2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385 esac
2386 $as_echo "$ac_var='\''$ac_val'\''"
2387 done | sort
2388 echo
2389
2390 if test -n "$ac_subst_files"; then
2391 $as_echo "## ------------------- ##
2392 ## File substitutions. ##
2393 ## ------------------- ##"
2394 echo
2395 for ac_var in $ac_subst_files
2396 do
2397 eval ac_val=\$$ac_var
2398 case $ac_val in
2399 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 esac
2401 $as_echo "$ac_var='\''$ac_val'\''"
2402 done | sort
2403 echo
2404 fi
2405
2406 if test -s confdefs.h; then
2407 $as_echo "## ----------- ##
2408 ## confdefs.h. ##
2409 ## ----------- ##"
2410 echo
2411 cat confdefs.h
2412 echo
2413 fi
2414 test "$ac_signal" != 0 &&
2415 $as_echo "$as_me: caught signal $ac_signal"
2416 $as_echo "$as_me: exit $exit_status"
2417 } >&5
2418 rm -f core *.core core.conftest.* &&
2419 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2420 exit $exit_status
2421 ' 0
2422 for ac_signal in 1 2 13 15; do
2423 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2424 done
2425 ac_signal=0
2426
2427 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2428 rm -f -r conftest* confdefs.h
2429
2430 $as_echo "/* confdefs.h */" > confdefs.h
2431
2432 # Predefined preprocessor variables.
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_NAME "$PACKAGE_NAME"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_STRING "$PACKAGE_STRING"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2452 _ACEOF
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_URL "$PACKAGE_URL"
2456 _ACEOF
2457
2458
2459 # Let the site file select an alternate cache file if it wants to.
2460 # Prefer an explicitly selected file to automatically selected ones.
2461 ac_site_file1=NONE
2462 ac_site_file2=NONE
2463 if test -n "$CONFIG_SITE"; then
2464 # We do not want a PATH search for config.site.
2465 case $CONFIG_SITE in #((
2466 -*) ac_site_file1=./$CONFIG_SITE;;
2467 */*) ac_site_file1=$CONFIG_SITE;;
2468 *) ac_site_file1=./$CONFIG_SITE;;
2469 esac
2470 elif test "x$prefix" != xNONE; then
2471 ac_site_file1=$prefix/share/config.site
2472 ac_site_file2=$prefix/etc/config.site
2473 else
2474 ac_site_file1=$ac_default_prefix/share/config.site
2475 ac_site_file2=$ac_default_prefix/etc/config.site
2476 fi
2477 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2478 do
2479 test "x$ac_site_file" = xNONE && continue
2480 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483 sed 's/^/| /' "$ac_site_file" >&5
2484 . "$ac_site_file" \
2485 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 as_fn_error $? "failed to load site script $ac_site_file
2488 See \`config.log' for more details" "$LINENO" 5; }
2489 fi
2490 done
2491
2492 if test -r "$cache_file"; then
2493 # Some versions of bash will fail to source /dev/null (special files
2494 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2495 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497 $as_echo "$as_me: loading cache $cache_file" >&6;}
2498 case $cache_file in
2499 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500 *) . "./$cache_file";;
2501 esac
2502 fi
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505 $as_echo "$as_me: creating cache $cache_file" >&6;}
2506 >$cache_file
2507 fi
2508
2509 # Check that the precious variables saved in the cache have kept the same
2510 # value.
2511 ac_cache_corrupted=false
2512 for ac_var in $ac_precious_vars; do
2513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514 eval ac_new_set=\$ac_env_${ac_var}_set
2515 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516 eval ac_new_val=\$ac_env_${ac_var}_value
2517 case $ac_old_set,$ac_new_set in
2518 set,)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,set)
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525 ac_cache_corrupted=: ;;
2526 ,);;
2527 *)
2528 if test "x$ac_old_val" != "x$ac_new_val"; then
2529 # differences in whitespace do not lead to failure.
2530 ac_old_val_w=`echo x $ac_old_val`
2531 ac_new_val_w=`echo x $ac_new_val`
2532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535 ac_cache_corrupted=:
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539 eval $ac_var=\$ac_old_val
2540 fi
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2542 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2544 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2545 fi;;
2546 esac
2547 # Pass precious variables to config.status.
2548 if test "$ac_new_set" = set; then
2549 case $ac_new_val in
2550 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551 *) ac_arg=$ac_var=$ac_new_val ;;
2552 esac
2553 case " $ac_configure_args " in
2554 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2555 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2556 esac
2557 fi
2558 done
2559 if $ac_cache_corrupted; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2565 fi
2566 ## -------------------- ##
2567 ## Main body of script. ##
2568 ## -------------------- ##
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577
2578 ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h"
2579
2580
2581 # Initialize Automake
2582 am__api_version='1.15'
2583
2584 ac_aux_dir=
2585 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2586 if test -f "$ac_dir/install-sh"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/install-sh -c"
2589 break
2590 elif test -f "$ac_dir/install.sh"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/install.sh -c"
2593 break
2594 elif test -f "$ac_dir/shtool"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/shtool install -c"
2597 break
2598 fi
2599 done
2600 if test -z "$ac_aux_dir"; then
2601 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2602 fi
2603
2604 # These three variables are undocumented and unsupported,
2605 # and are intended to be withdrawn in a future Autoconf release.
2606 # They can cause serious problems if a builder's source tree is in a directory
2607 # whose full name contains unusual characters.
2608 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2609 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2610 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2611
2612
2613 # Find a good install program. We prefer a C program (faster),
2614 # so one script is as good as another. But avoid the broken or
2615 # incompatible versions:
2616 # SysV /etc/install, /usr/sbin/install
2617 # SunOS /usr/etc/install
2618 # IRIX /sbin/install
2619 # AIX /bin/install
2620 # AmigaOS /C/install, which installs bootblocks on floppy discs
2621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624 # OS/2's system install, which has a completely different semantic
2625 # ./install, which can be erroneously created by make from ./install.sh.
2626 # Reject install programs that cannot install multiple files.
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2629 if test -z "$INSTALL"; then
2630 if ${ac_cv_path_install+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 # Account for people who put trailing slashes in PATH elements.
2639 case $as_dir/ in #((
2640 ./ | .// | /[cC]/* | \
2641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643 /usr/ucb/* ) ;;
2644 *)
2645 # OSF1 and SCO ODT 3.0 have their own names for install.
2646 # Don't use installbsd from OSF since it installs stuff as root
2647 # by default.
2648 for ac_prog in ginstall scoinst install; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2651 if test $ac_prog = install &&
2652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653 # AIX install. It has an incompatible calling convention.
2654 :
2655 elif test $ac_prog = install &&
2656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657 # program-specific install script used by HP pwplus--don't use.
2658 :
2659 else
2660 rm -rf conftest.one conftest.two conftest.dir
2661 echo one > conftest.one
2662 echo two > conftest.two
2663 mkdir conftest.dir
2664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2665 test -s conftest.one && test -s conftest.two &&
2666 test -s conftest.dir/conftest.one &&
2667 test -s conftest.dir/conftest.two
2668 then
2669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670 break 3
2671 fi
2672 fi
2673 fi
2674 done
2675 done
2676 ;;
2677 esac
2678
2679 done
2680 IFS=$as_save_IFS
2681
2682 rm -rf conftest.one conftest.two conftest.dir
2683
2684 fi
2685 if test "${ac_cv_path_install+set}" = set; then
2686 INSTALL=$ac_cv_path_install
2687 else
2688 # As a last resort, use the slow shell script. Don't cache a
2689 # value for INSTALL within a source directory, because that will
2690 # break other packages using the cache if that directory is
2691 # removed, or if the value is a relative name.
2692 INSTALL=$ac_install_sh
2693 fi
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2696 $as_echo "$INSTALL" >&6; }
2697
2698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699 # It thinks the first close brace ends the variable substitution.
2700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2701
2702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2703
2704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2707 $as_echo_n "checking whether build environment is sane... " >&6; }
2708 # Reject unsafe characters in $srcdir or the absolute working directory
2709 # name. Accept space and tab only in the latter.
2710 am_lf='
2711 '
2712 case `pwd` in
2713 *[\\\"\#\$\&\'\`$am_lf]*)
2714 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2715 esac
2716 case $srcdir in
2717 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2718 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2719 esac
2720
2721 # Do 'set' in a subshell so we don't clobber the current shell's
2722 # arguments. Must try -L first in case configure is actually a
2723 # symlink; some systems play weird games with the mod time of symlinks
2724 # (eg FreeBSD returns the mod time of the symlink's containing
2725 # directory).
2726 if (
2727 am_has_slept=no
2728 for am_try in 1 2; do
2729 echo "timestamp, slept: $am_has_slept" > conftest.file
2730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2731 if test "$*" = "X"; then
2732 # -L didn't work.
2733 set X `ls -t "$srcdir/configure" conftest.file`
2734 fi
2735 if test "$*" != "X $srcdir/configure conftest.file" \
2736 && test "$*" != "X conftest.file $srcdir/configure"; then
2737
2738 # If neither matched, then we have a broken ls. This can happen
2739 # if, for instance, CONFIG_SHELL is bash and it inherits a
2740 # broken ls alias from the environment. This has actually
2741 # happened. Such a system could not be considered "sane".
2742 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2743 alias in your environment" "$LINENO" 5
2744 fi
2745 if test "$2" = conftest.file || test $am_try -eq 2; then
2746 break
2747 fi
2748 # Just in case.
2749 sleep 1
2750 am_has_slept=yes
2751 done
2752 test "$2" = conftest.file
2753 )
2754 then
2755 # Ok.
2756 :
2757 else
2758 as_fn_error $? "newly created file is older than distributed files!
2759 Check your system clock" "$LINENO" 5
2760 fi
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762 $as_echo "yes" >&6; }
2763 # If we didn't sleep, we still need to ensure time stamps of config.status and
2764 # generated files are strictly newer.
2765 am_sleep_pid=
2766 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2767 ( sleep 1 ) &
2768 am_sleep_pid=$!
2769 fi
2770
2771 rm -f conftest.file
2772
2773 test "$program_prefix" != NONE &&
2774 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2775 # Use a double $ so make ignores it.
2776 test "$program_suffix" != NONE &&
2777 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2778 # Double any \ or $.
2779 # By default was `s,x,x', remove it if useless.
2780 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2781 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2782
2783 # Expand $ac_aux_dir to an absolute path.
2784 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2785
2786 if test x"${MISSING+set}" != xset; then
2787 case $am_aux_dir in
2788 *\ * | *\ *)
2789 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2790 *)
2791 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2792 esac
2793 fi
2794 # Use eval to expand $SHELL
2795 if eval "$MISSING --is-lightweight"; then
2796 am_missing_run="$MISSING "
2797 else
2798 am_missing_run=
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2800 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2801 fi
2802
2803 if test x"${install_sh+set}" != xset; then
2804 case $am_aux_dir in
2805 *\ * | *\ *)
2806 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2807 *)
2808 install_sh="\${SHELL} $am_aux_dir/install-sh"
2809 esac
2810 fi
2811
2812 # Installed binaries are usually stripped using 'strip' when the user
2813 # run "make install-strip". However 'strip' might not be the right
2814 # tool to use in cross-compilation environments, therefore Automake
2815 # will honor the 'STRIP' environment variable to overrule this program.
2816 if test "$cross_compiling" != no; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_STRIP+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$STRIP"; then
2826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 STRIP=$ac_cv_prog_STRIP
2846 if test -n "$STRIP"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2848 $as_echo "$STRIP" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855 fi
2856 if test -z "$ac_cv_prog_STRIP"; then
2857 ac_ct_STRIP=$STRIP
2858 # Extract the first word of "strip", so it can be a program name with args.
2859 set dummy strip; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$ac_ct_STRIP"; then
2866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_STRIP="strip"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2886 if test -n "$ac_ct_STRIP"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2888 $as_echo "$ac_ct_STRIP" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894 if test "x$ac_ct_STRIP" = x; then
2895 STRIP=":"
2896 else
2897 case $cross_compiling:$ac_tool_warned in
2898 yes:)
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901 ac_tool_warned=yes ;;
2902 esac
2903 STRIP=$ac_ct_STRIP
2904 fi
2905 else
2906 STRIP="$ac_cv_prog_STRIP"
2907 fi
2908
2909 fi
2910 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2911
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2913 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2914 if test -z "$MKDIR_P"; then
2915 if ${ac_cv_path_mkdir+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_prog in mkdir gmkdir; do
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2926 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2927 'mkdir (GNU coreutils) '* | \
2928 'mkdir (coreutils) '* | \
2929 'mkdir (fileutils) '4.1*)
2930 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2931 break 3;;
2932 esac
2933 done
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939
2940 test -d ./--version && rmdir ./--version
2941 if test "${ac_cv_path_mkdir+set}" = set; then
2942 MKDIR_P="$ac_cv_path_mkdir -p"
2943 else
2944 # As a last resort, use the slow shell script. Don't cache a
2945 # value for MKDIR_P within a source directory, because that will
2946 # break other packages using the cache if that directory is
2947 # removed, or if the value is a relative name.
2948 MKDIR_P="$ac_install_sh -d"
2949 fi
2950 fi
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2952 $as_echo "$MKDIR_P" >&6; }
2953
2954 for ac_prog in gawk mawk nawk awk
2955 do
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_AWK+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$AWK"; then
2964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_AWK="$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 AWK=$ac_cv_prog_AWK
2984 if test -n "$AWK"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2986 $as_echo "$AWK" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 test -n "$AWK" && break
2994 done
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2997 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2998 set x ${MAKE-make}
2999 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3000 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 cat >conftest.make <<\_ACEOF
3004 SHELL = /bin/sh
3005 all:
3006 @echo '@@@%%%=$(MAKE)=@@@%%%'
3007 _ACEOF
3008 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3010 *@@@%%%=?*=@@@%%%*)
3011 eval ac_cv_prog_make_${ac_make}_set=yes;;
3012 *)
3013 eval ac_cv_prog_make_${ac_make}_set=no;;
3014 esac
3015 rm -f conftest.make
3016 fi
3017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3020 SET_MAKE=
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 SET_MAKE="MAKE=${MAKE-make}"
3025 fi
3026
3027 rm -rf .tst 2>/dev/null
3028 mkdir .tst 2>/dev/null
3029 if test -d .tst; then
3030 am__leading_dot=.
3031 else
3032 am__leading_dot=_
3033 fi
3034 rmdir .tst 2>/dev/null
3035
3036 # Check whether --enable-silent-rules was given.
3037 if test "${enable_silent_rules+set}" = set; then :
3038 enableval=$enable_silent_rules;
3039 fi
3040
3041 case $enable_silent_rules in # (((
3042 yes) AM_DEFAULT_VERBOSITY=0;;
3043 no) AM_DEFAULT_VERBOSITY=1;;
3044 *) AM_DEFAULT_VERBOSITY=1;;
3045 esac
3046 am_make=${MAKE-make}
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3048 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3049 if ${am_cv_make_support_nested_variables+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if $as_echo 'TRUE=$(BAR$(V))
3053 BAR0=false
3054 BAR1=true
3055 V=1
3056 am__doit:
3057 @$(TRUE)
3058 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3059 am_cv_make_support_nested_variables=yes
3060 else
3061 am_cv_make_support_nested_variables=no
3062 fi
3063 fi
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3065 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3066 if test $am_cv_make_support_nested_variables = yes; then
3067 AM_V='$(V)'
3068 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3069 else
3070 AM_V=$AM_DEFAULT_VERBOSITY
3071 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3072 fi
3073 AM_BACKSLASH='\'
3074
3075 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3076 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3077 # is not polluted with repeated "-I."
3078 am__isrc=' -I$(srcdir)'
3079 # test to see if srcdir already configured
3080 if test -f $srcdir/config.status; then
3081 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3082 fi
3083 fi
3084
3085 # test whether we have cygpath
3086 if test -z "$CYGPATH_W"; then
3087 if (cygpath --version) >/dev/null 2>/dev/null; then
3088 CYGPATH_W='cygpath -w'
3089 else
3090 CYGPATH_W=echo
3091 fi
3092 fi
3093
3094
3095 # Define the identity of the package.
3096 PACKAGE='libXfont'
3097 VERSION='1.5.4'
3098
3099
3100 cat >>confdefs.h <<_ACEOF
3101 #define PACKAGE "$PACKAGE"
3102 _ACEOF
3103
3104
3105 cat >>confdefs.h <<_ACEOF
3106 #define VERSION "$VERSION"
3107 _ACEOF
3108
3109 # Some tools Automake needs.
3110
3111 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3112
3113
3114 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3115
3116
3117 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3118
3119
3120 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3121
3122
3123 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3124
3125 # For better backward compatibility. To be removed once Automake 1.9.x
3126 # dies out for good. For more background, see:
3127 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3128 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3129 mkdir_p='$(MKDIR_P)'
3130
3131 # We need awk for the "check" target (and possibly the TAP driver). The
3132 # system "awk" is bad on some platforms.
3133 # Always define AMTAR for backward compatibility. Yes, it's still used
3134 # in the wild :-( We should find a proper way to deprecate it ...
3135 AMTAR='$${TAR-tar}'
3136
3137
3138 # We'll loop over all known methods to create a tar archive until one works.
3139 _am_tools='gnutar pax cpio none'
3140
3141 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3142
3143
3144
3145
3146
3147
3148 # POSIX will say in a future version that running "rm -f" with no argument
3149 # is OK; and we want to be able to make that assumption in our Makefile
3150 # recipes. So use an aggressive probe to check that the usage we want is
3151 # actually supported "in the wild" to an acceptable degree.
3152 # See automake bug#10828.
3153 # To make any issue more visible, cause the running configure to be aborted
3154 # by default if the 'rm' program in use doesn't match our expectations; the
3155 # user can still override this though.
3156 if rm -f && rm -fr && rm -rf; then : OK; else
3157 cat >&2 <<'END'
3158 Oops!
3159
3160 Your 'rm' program seems unable to run without file operands specified
3161 on the command line, even when the '-f' option is present. This is contrary
3162 to the behaviour of most rm programs out there, and not conforming with
3163 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3164
3165 Please tell bug-automake@gnu.org about your system, including the value
3166 of your $PATH and any error possibly output before this message. This
3167 can help us improve future automake versions.
3168
3169 END
3170 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3171 echo 'Configuration will proceed anyway, since you have set the' >&2
3172 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3173 echo >&2
3174 else
3175 cat >&2 <<'END'
3176 Aborting the configuration process, to ensure you take notice of the issue.
3177
3178 You can download and install GNU coreutils to get an 'rm' implementation
3179 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3180
3181 If you want to complete the configuration process using your problematic
3182 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3183 to "yes", and re-run configure.
3184
3185 END
3186 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3187 fi
3188 fi
3189
3190
3191 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3192 # Must be called before any macros that run the compiler (like
3193 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3194 DEPDIR="${am__leading_dot}deps"
3195
3196 ac_config_commands="$ac_config_commands depfiles"
3197
3198
3199 am_make=${MAKE-make}
3200 cat > confinc << 'END'
3201 am__doit:
3202 @echo this is the am__doit target
3203 .PHONY: am__doit
3204 END
3205 # If we don't find an include directive, just comment out the code.
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3207 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3208 am__include="#"
3209 am__quote=
3210 _am_result=none
3211 # First try GNU make style include.
3212 echo "include confinc" > confmf
3213 # Ignore all kinds of additional output from 'make'.
3214 case `$am_make -s -f confmf 2> /dev/null` in #(
3215 *the\ am__doit\ target*)
3216 am__include=include
3217 am__quote=
3218 _am_result=GNU
3219 ;;
3220 esac
3221 # Now try BSD make style include.
3222 if test "$am__include" = "#"; then
3223 echo '.include "confinc"' > confmf
3224 case `$am_make -s -f confmf 2> /dev/null` in #(
3225 *the\ am__doit\ target*)
3226 am__include=.include
3227 am__quote="\""
3228 _am_result=BSD
3229 ;;
3230 esac
3231 fi
3232
3233
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3235 $as_echo "$_am_result" >&6; }
3236 rm -f confinc confmf
3237
3238 # Check whether --enable-dependency-tracking was given.
3239 if test "${enable_dependency_tracking+set}" = set; then :
3240 enableval=$enable_dependency_tracking;
3241 fi
3242
3243 if test "x$enable_dependency_tracking" != xno; then
3244 am_depcomp="$ac_aux_dir/depcomp"
3245 AMDEPBACKSLASH='\'
3246 am__nodep='_no'
3247 fi
3248 if test "x$enable_dependency_tracking" != xno; then
3249 AMDEP_TRUE=
3250 AMDEP_FALSE='#'
3251 else
3252 AMDEP_TRUE='#'
3253 AMDEP_FALSE=
3254 fi
3255
3256
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 fi
3301 if test -z "$ac_cv_prog_CC"; then
3302 ac_ct_CC=$CC
3303 # Extract the first word of "gcc", so it can be a program name with args.
3304 set dummy gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$ac_ct_CC"; then
3311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_CC="gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324 done
3325 done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331 if test -n "$ac_ct_CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3333 $as_echo "$ac_ct_CC" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339 if test "x$ac_ct_CC" = x; then
3340 CC=""
3341 else
3342 case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3347 esac
3348 CC=$ac_ct_CC
3349 fi
3350 else
3351 CC="$ac_cv_prog_CC"
3352 fi
3353
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3387 else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393 fi
3394 fi
3395 if test -z "$CC"; then
3396 # Extract the first word of "cc", so it can be a program name with args.
3397 set dummy cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 ac_prog_rejected=no
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3415 ac_prog_rejected=yes
3416 continue
3417 fi
3418 ac_cv_prog_CC="cc"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3421 fi
3422 done
3423 done
3424 IFS=$as_save_IFS
3425
3426 if test $ac_prog_rejected = yes; then
3427 # We found a bogon in the path, so make sure we never use it.
3428 set dummy $ac_cv_prog_CC
3429 shift
3430 if test $# != 0; then
3431 # We chose a different compiler from the bogus one.
3432 # However, it has the same basename, so the bogon will be chosen
3433 # first if we set CC to just the basename; use the full file name.
3434 shift
3435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3436 fi
3437 fi
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 fi
3451 if test -z "$CC"; then
3452 if test -n "$ac_tool_prefix"; then
3453 for ac_prog in cl.exe
3454 do
3455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 test -n "$CC" && break
3493 done
3494 fi
3495 if test -z "$CC"; then
3496 ac_ct_CC=$CC
3497 for ac_prog in cl.exe
3498 do
3499 # Extract the first word of "$ac_prog", so it can be a program name with args.
3500 set dummy $ac_prog; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="$ac_prog"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535
3536 test -n "$ac_ct_CC" && break
3537 done
3538
3539 if test "x$ac_ct_CC" = x; then
3540 CC=""
3541 else
3542 case $cross_compiling:$ac_tool_warned in
3543 yes:)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548 CC=$ac_ct_CC
3549 fi
3550 fi
3551
3552 fi
3553
3554
3555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 as_fn_error $? "no acceptable C compiler found in \$PATH
3558 See \`config.log' for more details" "$LINENO" 5; }
3559
3560 # Provide some information about the compiler.
3561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3562 set X $ac_compile
3563 ac_compiler=$2
3564 for ac_option in --version -v -V -qversion; do
3565 { { ac_try="$ac_compiler $ac_option >&5"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3573 ac_status=$?
3574 if test -s conftest.err; then
3575 sed '10a\
3576 ... rest of stderr output deleted ...
3577 10q' conftest.err >conftest.er1
3578 cat conftest.er1 >&5
3579 fi
3580 rm -f conftest.er1 conftest.err
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }
3583 done
3584
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587
3588 int
3589 main ()
3590 {
3591
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 ac_clean_files_save=$ac_clean_files
3597 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3598 # Try to create an executable without -o first, disregard a.out.
3599 # It will help us diagnose broken compilers, and finding out an intuition
3600 # of exeext.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3602 $as_echo_n "checking whether the C compiler works... " >&6; }
3603 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3604
3605 # The possible output files:
3606 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3607
3608 ac_rmfiles=
3609 for ac_file in $ac_files
3610 do
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3614 esac
3615 done
3616 rm -f $ac_rmfiles
3617
3618 if { { ac_try="$ac_link_default"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_link_default") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }; then :
3629 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3630 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3631 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3632 # so that the user can short-circuit this test for compilers unknown to
3633 # Autoconf.
3634 for ac_file in $ac_files ''
3635 do
3636 test -f "$ac_file" || continue
3637 case $ac_file in
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3639 ;;
3640 [ab].out )
3641 # We found the default executable, but exeext='' is most
3642 # certainly right.
3643 break;;
3644 *.* )
3645 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3646 then :; else
3647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648 fi
3649 # We set ac_cv_exeext here because the later test for it is not
3650 # safe: cross compilers may not add the suffix if given an `-o'
3651 # argument, so we may need to know it at that point already.
3652 # Even if this section looks crufty: it has the advantage of
3653 # actually working.
3654 break;;
3655 * )
3656 break;;
3657 esac
3658 done
3659 test "$ac_cv_exeext" = no && ac_cv_exeext=
3660
3661 else
3662 ac_file=''
3663 fi
3664 if test -z "$ac_file"; then :
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error 77 "C compiler cannot create executables
3673 See \`config.log' for more details" "$LINENO" 5; }
3674 else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676 $as_echo "yes" >&6; }
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3679 $as_echo_n "checking for C compiler default output file name... " >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681 $as_echo "$ac_file" >&6; }
3682 ac_exeext=$ac_cv_exeext
3683
3684 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3685 ac_clean_files=$ac_clean_files_save
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687 $as_echo_n "checking for suffix of executables... " >&6; }
3688 if { { ac_try="$ac_link"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_link") 2>&5
3696 ac_status=$?
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3701 # work properly (i.e., refer to `conftest.exe'), while it won't with
3702 # `rm'.
3703 for ac_file in conftest.exe conftest conftest.*; do
3704 test -f "$ac_file" || continue
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708 break;;
3709 * ) break;;
3710 esac
3711 done
3712 else
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716 See \`config.log' for more details" "$LINENO" 5; }
3717 fi
3718 rm -f conftest conftest$ac_cv_exeext
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720 $as_echo "$ac_cv_exeext" >&6; }
3721
3722 rm -f conftest.$ac_ext
3723 EXEEXT=$ac_cv_exeext
3724 ac_exeext=$EXEEXT
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 #include <stdio.h>
3728 int
3729 main ()
3730 {
3731 FILE *f = fopen ("conftest.out", "w");
3732 return ferror (f) || fclose (f) != 0;
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 ac_clean_files="$ac_clean_files conftest.out"
3739 # Check that the compiler produces executables we can run. If not, either
3740 # the compiler is broken, or we cross compile.
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742 $as_echo_n "checking whether we are cross compiling... " >&6; }
3743 if test "$cross_compiling" != yes; then
3744 { { ac_try="$ac_link"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751 (eval "$ac_link") 2>&5
3752 ac_status=$?
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }
3755 if { ac_try='./conftest$ac_cv_exeext'
3756 { { case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_try") 2>&5
3763 ac_status=$?
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; }; then
3766 cross_compiling=no
3767 else
3768 if test "$cross_compiling" = maybe; then
3769 cross_compiling=yes
3770 else
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error $? "cannot run C compiled programs.
3774 If you meant to cross compile, use \`--host'.
3775 See \`config.log' for more details" "$LINENO" 5; }
3776 fi
3777 fi
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780 $as_echo "$cross_compiling" >&6; }
3781
3782 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783 ac_clean_files=$ac_clean_files_save
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785 $as_echo_n "checking for suffix of object files... " >&6; }
3786 if ${ac_cv_objext+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.o conftest.obj
3801 if { { ac_try="$ac_compile"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compile") 2>&5
3809 ac_status=$?
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; then :
3812 for ac_file in conftest.o conftest.obj conftest.*; do
3813 test -f "$ac_file" || continue;
3814 case $ac_file in
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3816 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817 break;;
3818 esac
3819 done
3820 else
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error $? "cannot compute suffix of object files: cannot compile
3827 See \`config.log' for more details" "$LINENO" 5; }
3828 fi
3829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832 $as_echo "$ac_cv_objext" >&6; }
3833 OBJEXT=$ac_cv_objext
3834 ac_objext=$OBJEXT
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3836 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3837 if ${ac_cv_c_compiler_gnu+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843 int
3844 main ()
3845 {
3846 #ifndef __GNUC__
3847 choke me
3848 #endif
3849
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_compiler_gnu=yes
3856 else
3857 ac_compiler_gnu=no
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3864 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3865 if test $ac_compiler_gnu = yes; then
3866 GCC=yes
3867 else
3868 GCC=
3869 fi
3870 ac_test_CFLAGS=${CFLAGS+set}
3871 ac_save_CFLAGS=$CFLAGS
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3873 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3874 if ${ac_cv_prog_cc_g+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 ac_save_c_werror_flag=$ac_c_werror_flag
3878 ac_c_werror_flag=yes
3879 ac_cv_prog_cc_g=no
3880 CFLAGS="-g"
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv_prog_cc_g=yes
3894 else
3895 CFLAGS=""
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 int
3900 main ()
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908
3909 else
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3911 CFLAGS="-g"
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914
3915 int
3916 main ()
3917 {
3918
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_g=yes
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_c_werror_flag=$ac_save_c_werror_flag
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3934 $as_echo "$ac_cv_prog_cc_g" >&6; }
3935 if test "$ac_test_CFLAGS" = set; then
3936 CFLAGS=$ac_save_CFLAGS
3937 elif test $ac_cv_prog_cc_g = yes; then
3938 if test "$GCC" = yes; then
3939 CFLAGS="-g -O2"
3940 else
3941 CFLAGS="-g"
3942 fi
3943 else
3944 if test "$GCC" = yes; then
3945 CFLAGS="-O2"
3946 else
3947 CFLAGS=
3948 fi
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3951 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3952 if ${ac_cv_prog_cc_c89+:} false; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 ac_cv_prog_cc_c89=no
3956 ac_save_CC=$CC
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959 #include <stdarg.h>
3960 #include <stdio.h>
3961 struct stat;
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3966 char **p;
3967 int i;
3968 {
3969 return p[i];
3970 }
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3972 {
3973 char *s;
3974 va_list v;
3975 va_start (v,p);
3976 s = g (p, va_arg (v,int));
3977 va_end (v);
3978 return s;
3979 }
3980
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3989
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3992 #define FOO(x) 'x'
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3994
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 int argc;
4000 char **argv;
4001 int
4002 main ()
4003 {
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4011 do
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c89=$ac_arg
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4021
4022 fi
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c89" in
4025 x)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028 xno)
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4031 *)
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035 esac
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4037
4038 fi
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4052 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4053 if ${am_cv_prog_cc_c_o+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058
4059 int
4060 main ()
4061 {
4062
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 # Make sure it works both with $CC and with simple cc.
4068 # Following AC_PROG_CC_C_O, we do the test twice because some
4069 # compilers refuse to overwrite an existing .o file with -o,
4070 # though they will create one.
4071 am_cv_prog_cc_c_o=yes
4072 for am_i in 1 2; do
4073 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4074 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } \
4078 && test -f conftest2.$ac_objext; then
4079 : OK
4080 else
4081 am_cv_prog_cc_c_o=no
4082 break
4083 fi
4084 done
4085 rm -f core conftest*
4086 unset am_i
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4089 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4090 if test "$am_cv_prog_cc_c_o" != yes; then
4091 # Losing compiler, so override with the script.
4092 # FIXME: It is wrong to rewrite CC.
4093 # But if we don't then we get into trouble of one sort or another.
4094 # A longer-term fix would be to have automake use am__CC in this case,
4095 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4096 CC="$am_aux_dir/compile $CC"
4097 fi
4098 ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105 depcc="$CC" am_compiler_list=
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108 $as_echo_n "checking dependency style of $depcc... " >&6; }
4109 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113 # We make a subdir and do the tests there. Otherwise we can end up
4114 # making bogus files that we don't know about and never remove. For
4115 # instance it was reported that on HP-UX the gcc test will end up
4116 # making a dummy file named 'D' -- because '-MD' means "put the output
4117 # in D".
4118 rm -rf conftest.dir
4119 mkdir conftest.dir
4120 # Copy depcomp to subdir because otherwise we won't find it if we're
4121 # using a relative directory.
4122 cp "$am_depcomp" conftest.dir
4123 cd conftest.dir
4124 # We will build objects and dependencies in a subdirectory because
4125 # it helps to detect inapplicable dependency modes. For instance
4126 # both Tru64's cc and ICC support -MD to output dependencies as a
4127 # side effect of compilation, but ICC will put the dependencies in
4128 # the current directory while Tru64 will put them in the object
4129 # directory.
4130 mkdir sub
4131
4132 am_cv_CC_dependencies_compiler_type=none
4133 if test "$am_compiler_list" = ""; then
4134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135 fi
4136 am__universal=false
4137 case " $depcc " in #(
4138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4139 esac
4140
4141 for depmode in $am_compiler_list; do
4142 # Setup a source with many dependencies, because some compilers
4143 # like to wrap large dependency lists on column 80 (with \), and
4144 # we should not choose a depcomp mode which is confused by this.
4145 #
4146 # We need to recreate these files for each test, as the compiler may
4147 # overwrite some of them when testing with obscure command lines.
4148 # This happens at least with the AIX C compiler.
4149 : > sub/conftest.c
4150 for i in 1 2 3 4 5 6; do
4151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4153 # Solaris 10 /bin/sh.
4154 echo '/* dummy */' > sub/conftst$i.h
4155 done
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157
4158 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4159 # mode. It turns out that the SunPro C++ compiler does not properly
4160 # handle '-M -o', and we need to detect this. Also, some Intel
4161 # versions had trouble with output in subdirs.
4162 am__obj=sub/conftest.${OBJEXT-o}
4163 am__minus_obj="-o $am__obj"
4164 case $depmode in
4165 gcc)
4166 # This depmode causes a compiler race in universal mode.
4167 test "$am__universal" = false || continue
4168 ;;
4169 nosideeffect)
4170 # After this tag, mechanisms are not by side-effect, so they'll
4171 # only be used when explicitly requested.
4172 if test "x$enable_dependency_tracking" = xyes; then
4173 continue
4174 else
4175 break
4176 fi
4177 ;;
4178 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4179 # This compiler won't grok '-c -o', but also, the minuso test has
4180 # not run yet. These depmodes are late enough in the game, and
4181 # so weak that their functioning should not be impacted.
4182 am__obj=conftest.${OBJEXT-o}
4183 am__minus_obj=
4184 ;;
4185 none) break ;;
4186 esac
4187 if depmode=$depmode \
4188 source=sub/conftest.c object=$am__obj \
4189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191 >/dev/null 2>conftest.err &&
4192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196 # icc doesn't choke on unknown options, it will just issue warnings
4197 # or remarks (even with -Werror). So we grep stderr for any message
4198 # that says an option was ignored or not supported.
4199 # When given -MP, icc 7.0 and 7.1 complain thusly:
4200 # icc: Command line warning: ignoring option '-M'; no argument required
4201 # The diagnosis changed in icc 8.0:
4202 # icc: Command line remark: option '-MP' not supported
4203 if (grep 'ignoring option' conftest.err ||
4204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205 am_cv_CC_dependencies_compiler_type=$depmode
4206 break
4207 fi
4208 fi
4209 done
4210
4211 cd ..
4212 rm -rf conftest.dir
4213 else
4214 am_cv_CC_dependencies_compiler_type=none
4215 fi
4216
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4221
4222 if
4223 test "x$enable_dependency_tracking" != xno \
4224 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225 am__fastdepCC_TRUE=
4226 am__fastdepCC_FALSE='#'
4227 else
4228 am__fastdepCC_TRUE='#'
4229 am__fastdepCC_FALSE=
4230 fi
4231
4232
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4241 # On Suns, sometimes $CPP names a directory.
4242 if test -n "$CPP" && test -d "$CPP"; then
4243 CPP=
4244 fi
4245 if test -z "$CPP"; then
4246 if ${ac_cv_prog_CPP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 # Double quotes because CPP needs to be expanded
4250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4251 do
4252 ac_preproc_ok=false
4253 for ac_c_preproc_warn_flag in '' yes
4254 do
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #ifdef __STDC__
4264 # include <limits.h>
4265 #else
4266 # include <assert.h>
4267 #endif
4268 Syntax error
4269 _ACEOF
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4271
4272 else
4273 # Broken: fails on valid input.
4274 continue
4275 fi
4276 rm -f conftest.err conftest.i conftest.$ac_ext
4277
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4283 _ACEOF
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: success on invalid input.
4286 continue
4287 else
4288 # Passes both tests.
4289 ac_preproc_ok=:
4290 break
4291 fi
4292 rm -f conftest.err conftest.i conftest.$ac_ext
4293
4294 done
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.i conftest.err conftest.$ac_ext
4297 if $ac_preproc_ok; then :
4298 break
4299 fi
4300
4301 done
4302 ac_cv_prog_CPP=$CPP
4303
4304 fi
4305 CPP=$ac_cv_prog_CPP
4306 else
4307 ac_cv_prog_CPP=$CPP
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310 $as_echo "$CPP" >&6; }
4311 ac_preproc_ok=false
4312 for ac_c_preproc_warn_flag in '' yes
4313 do
4314 # Use a header file that comes with gcc, so configuring glibc
4315 # with a fresh cross-compiler works.
4316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317 # <limits.h> exists even on freestanding compilers.
4318 # On the NeXT, cc -E runs the code through the compiler's parser,
4319 # not just through cpp. "Syntax error" is here to catch this case.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 #ifdef __STDC__
4323 # include <limits.h>
4324 #else
4325 # include <assert.h>
4326 #endif
4327 Syntax error
4328 _ACEOF
4329 if ac_fn_c_try_cpp "$LINENO"; then :
4330
4331 else
4332 # Broken: fails on valid input.
4333 continue
4334 fi
4335 rm -f conftest.err conftest.i conftest.$ac_ext
4336
4337 # OK, works on sane cases. Now check whether nonexistent headers
4338 # can be detected and how.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <ac_nonexistent.h>
4342 _ACEOF
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4344 # Broken: success on invalid input.
4345 continue
4346 else
4347 # Passes both tests.
4348 ac_preproc_ok=:
4349 break
4350 fi
4351 rm -f conftest.err conftest.i conftest.$ac_ext
4352
4353 done
4354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355 rm -f conftest.i conftest.err conftest.$ac_ext
4356 if $ac_preproc_ok; then :
4357
4358 else
4359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4362 See \`config.log' for more details" "$LINENO" 5; }
4363 fi
4364
4365 ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4373 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4374 if ${ac_cv_path_GREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if test -z "$GREP"; then
4378 ac_path_GREP_found=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382 do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_prog in grep ggrep; do
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4388 as_fn_executable_p "$ac_path_GREP" || continue
4389 # Check for GNU ac_path_GREP and select it if it is found.
4390 # Check for GNU $ac_path_GREP
4391 case `"$ac_path_GREP" --version 2>&1` in
4392 *GNU*)
4393 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4394 *)
4395 ac_count=0
4396 $as_echo_n 0123456789 >"conftest.in"
4397 while :
4398 do
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'GREP' >> "conftest.nl"
4403 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405 as_fn_arith $ac_count + 1 && ac_count=$as_val
4406 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_GREP="$ac_path_GREP"
4409 ac_path_GREP_max=$ac_count
4410 fi
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4413 done
4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 esac
4416
4417 $ac_path_GREP_found && break 3
4418 done
4419 done
4420 done
4421 IFS=$as_save_IFS
4422 if test -z "$ac_cv_path_GREP"; then
4423 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4424 fi
4425 else
4426 ac_cv_path_GREP=$GREP
4427 fi
4428
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4431 $as_echo "$ac_cv_path_GREP" >&6; }
4432 GREP="$ac_cv_path_GREP"
4433
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4436 $as_echo_n "checking for egrep... " >&6; }
4437 if ${ac_cv_path_EGREP+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4441 then ac_cv_path_EGREP="$GREP -E"
4442 else
4443 if test -z "$EGREP"; then
4444 ac_path_EGREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in egrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4454 as_fn_executable_p "$ac_path_EGREP" || continue
4455 # Check for GNU ac_path_EGREP and select it if it is found.
4456 # Check for GNU $ac_path_EGREP
4457 case `"$ac_path_EGREP" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4460 *)
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4464 do
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'EGREP' >> "conftest.nl"
4469 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_EGREP="$ac_path_EGREP"
4475 ac_path_EGREP_max=$ac_count
4476 fi
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4482
4483 $ac_path_EGREP_found && break 3
4484 done
4485 done
4486 done
4487 IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_EGREP"; then
4489 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490 fi
4491 else
4492 ac_cv_path_EGREP=$EGREP
4493 fi
4494
4495 fi
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4498 $as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP="$ac_cv_path_EGREP"
4500
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4503 $as_echo_n "checking for ANSI C header files... " >&6; }
4504 if ${ac_cv_header_stdc+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <stdlib.h>
4510 #include <stdarg.h>
4511 #include <string.h>
4512 #include <float.h>
4513
4514 int
4515 main ()
4516 {
4517
4518 ;
4519 return 0;
4520 }
4521 _ACEOF
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523 ac_cv_header_stdc=yes
4524 else
4525 ac_cv_header_stdc=no
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528
4529 if test $ac_cv_header_stdc = yes; then
4530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533 #include <string.h>
4534
4535 _ACEOF
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "memchr" >/dev/null 2>&1; then :
4538
4539 else
4540 ac_cv_header_stdc=no
4541 fi
4542 rm -f conftest*
4543
4544 fi
4545
4546 if test $ac_cv_header_stdc = yes; then
4547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <stdlib.h>
4551
4552 _ACEOF
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554 $EGREP "free" >/dev/null 2>&1; then :
4555
4556 else
4557 ac_cv_header_stdc=no
4558 fi
4559 rm -f conftest*
4560
4561 fi
4562
4563 if test $ac_cv_header_stdc = yes; then
4564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565 if test "$cross_compiling" = yes; then :
4566 :
4567 else
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <ctype.h>
4571 #include <stdlib.h>
4572 #if ((' ' & 0x0FF) == 0x020)
4573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4575 #else
4576 # define ISLOWER(c) \
4577 (('a' <= (c) && (c) <= 'i') \
4578 || ('j' <= (c) && (c) <= 'r') \
4579 || ('s' <= (c) && (c) <= 'z'))
4580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4581 #endif
4582
4583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4584 int
4585 main ()
4586 {
4587 int i;
4588 for (i = 0; i < 256; i++)
4589 if (XOR (islower (i), ISLOWER (i))
4590 || toupper (i) != TOUPPER (i))
4591 return 2;
4592 return 0;
4593 }
4594 _ACEOF
4595 if ac_fn_c_try_run "$LINENO"; then :
4596
4597 else
4598 ac_cv_header_stdc=no
4599 fi
4600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4601 conftest.$ac_objext conftest.beam conftest.$ac_ext
4602 fi
4603
4604 fi
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4607 $as_echo "$ac_cv_header_stdc" >&6; }
4608 if test $ac_cv_header_stdc = yes; then
4609
4610 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4611
4612 fi
4613
4614 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616 inttypes.h stdint.h unistd.h
4617 do :
4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4619 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4620 "
4621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4622 cat >>confdefs.h <<_ACEOF
4623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624 _ACEOF
4625
4626 fi
4627
4628 done
4629
4630
4631
4632 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4633 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4634 MINIX=yes
4635 else
4636 MINIX=
4637 fi
4638
4639
4640 if test "$MINIX" = yes; then
4641
4642 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4643
4644
4645 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4646
4647
4648 $as_echo "#define _MINIX 1" >>confdefs.h
4649
4650 fi
4651
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4654 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4655 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660
4661 # define __EXTENSIONS__ 1
4662 $ac_includes_default
4663 int
4664 main ()
4665 {
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_safe_to_define___extensions__=yes
4673 else
4674 ac_cv_safe_to_define___extensions__=no
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4679 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4680 test $ac_cv_safe_to_define___extensions__ = yes &&
4681 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4682
4683 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4684
4685 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4686
4687 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4688
4689 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4690
4691
4692
4693 # Initialize libtool
4694 case `pwd` in
4695 *\ * | *\ *)
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4697 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4698 esac
4699
4700
4701
4702 macro_version='2.4.6'
4703 macro_revision='2.4.6'
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 ltmain=$ac_aux_dir/ltmain.sh
4718
4719 # Make sure we can run config.sub.
4720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724 $as_echo_n "checking build system type... " >&6; }
4725 if ${ac_cv_build+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 ac_build_alias=$build_alias
4729 test "x$ac_build_alias" = x &&
4730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4731 test "x$ac_build_alias" = x &&
4732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4733 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4735
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4738 $as_echo "$ac_cv_build" >&6; }
4739 case $ac_cv_build in
4740 *-*-*) ;;
4741 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4742 esac
4743 build=$ac_cv_build
4744 ac_save_IFS=$IFS; IFS='-'
4745 set x $ac_cv_build
4746 shift
4747 build_cpu=$1
4748 build_vendor=$2
4749 shift; shift
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4752 build_os=$*
4753 IFS=$ac_save_IFS
4754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4758 $as_echo_n "checking host system type... " >&6; }
4759 if ${ac_cv_host+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if test "x$host_alias" = x; then
4763 ac_cv_host=$ac_cv_build
4764 else
4765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771 $as_echo "$ac_cv_host" >&6; }
4772 case $ac_cv_host in
4773 *-*-*) ;;
4774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775 esac
4776 host=$ac_cv_host
4777 ac_save_IFS=$IFS; IFS='-'
4778 set x $ac_cv_host
4779 shift
4780 host_cpu=$1
4781 host_vendor=$2
4782 shift; shift
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4785 host_os=$*
4786 IFS=$ac_save_IFS
4787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790 # Backslashify metacharacters that are still active within
4791 # double-quoted strings.
4792 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4793
4794 # Same as above, but do not quote variable references.
4795 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4796
4797 # Sed substitution to delay expansion of an escaped shell variable in a
4798 # double_quote_subst'ed string.
4799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4800
4801 # Sed substitution to delay expansion of an escaped single quote.
4802 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4803
4804 # Sed substitution to avoid accidental globbing in evaled expressions
4805 no_glob_subst='s/\*/\\\*/g'
4806
4807 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4812 $as_echo_n "checking how to print strings... " >&6; }
4813 # Test print first, because it will be a builtin if present.
4814 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4816 ECHO='print -r --'
4817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4818 ECHO='printf %s\n'
4819 else
4820 # Use this function as a fallback that always works.
4821 func_fallback_echo ()
4822 {
4823 eval 'cat <<_LTECHO_EOF
4824 $1
4825 _LTECHO_EOF'
4826 }
4827 ECHO='func_fallback_echo'
4828 fi
4829
4830 # func_echo_all arg...
4831 # Invoke $ECHO with all args, space-separated.
4832 func_echo_all ()
4833 {
4834 $ECHO ""
4835 }
4836
4837 case $ECHO in
4838 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4839 $as_echo "printf" >&6; } ;;
4840 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4841 $as_echo "print -r" >&6; } ;;
4842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4843 $as_echo "cat" >&6; } ;;
4844 esac
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4860 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4861 if ${ac_cv_path_SED+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4865 for ac_i in 1 2 3 4 5 6 7; do
4866 ac_script="$ac_script$as_nl$ac_script"
4867 done
4868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4869 { ac_script=; unset ac_script;}
4870 if test -z "$SED"; then
4871 ac_path_SED_found=false
4872 # Loop through the user's path and test for each of PROGNAME-LIST
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_prog in sed gsed; do
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4881 as_fn_executable_p "$ac_path_SED" || continue
4882 # Check for GNU ac_path_SED and select it if it is found.
4883 # Check for GNU $ac_path_SED
4884 case `"$ac_path_SED" --version 2>&1` in
4885 *GNU*)
4886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4887 *)
4888 ac_count=0
4889 $as_echo_n 0123456789 >"conftest.in"
4890 while :
4891 do
4892 cat "conftest.in" "conftest.in" >"conftest.tmp"
4893 mv "conftest.tmp" "conftest.in"
4894 cp "conftest.in" "conftest.nl"
4895 $as_echo '' >> "conftest.nl"
4896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898 as_fn_arith $ac_count + 1 && ac_count=$as_val
4899 if test $ac_count -gt ${ac_path_SED_max-0}; then
4900 # Best one so far, save it but keep looking for a better one
4901 ac_cv_path_SED="$ac_path_SED"
4902 ac_path_SED_max=$ac_count
4903 fi
4904 # 10*(2^10) chars as input seems more than enough
4905 test $ac_count -gt 10 && break
4906 done
4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908 esac
4909
4910 $ac_path_SED_found && break 3
4911 done
4912 done
4913 done
4914 IFS=$as_save_IFS
4915 if test -z "$ac_cv_path_SED"; then
4916 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4917 fi
4918 else
4919 ac_cv_path_SED=$SED
4920 fi
4921
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4924 $as_echo "$ac_cv_path_SED" >&6; }
4925 SED="$ac_cv_path_SED"
4926 rm -f conftest.sed
4927
4928 test -z "$SED" && SED=sed
4929 Xsed="$SED -e 1s/^X//"
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4942 $as_echo_n "checking for fgrep... " >&6; }
4943 if ${ac_cv_path_FGREP+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4947 then ac_cv_path_FGREP="$GREP -F"
4948 else
4949 if test -z "$FGREP"; then
4950 ac_path_FGREP_found=false
4951 # Loop through the user's path and test for each of PROGNAME-LIST
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_prog in fgrep; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4960 as_fn_executable_p "$ac_path_FGREP" || continue
4961 # Check for GNU ac_path_FGREP and select it if it is found.
4962 # Check for GNU $ac_path_FGREP
4963 case `"$ac_path_FGREP" --version 2>&1` in
4964 *GNU*)
4965 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4966 *)
4967 ac_count=0
4968 $as_echo_n 0123456789 >"conftest.in"
4969 while :
4970 do
4971 cat "conftest.in" "conftest.in" >"conftest.tmp"
4972 mv "conftest.tmp" "conftest.in"
4973 cp "conftest.in" "conftest.nl"
4974 $as_echo 'FGREP' >> "conftest.nl"
4975 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977 as_fn_arith $ac_count + 1 && ac_count=$as_val
4978 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4979 # Best one so far, save it but keep looking for a better one
4980 ac_cv_path_FGREP="$ac_path_FGREP"
4981 ac_path_FGREP_max=$ac_count
4982 fi
4983 # 10*(2^10) chars as input seems more than enough
4984 test $ac_count -gt 10 && break
4985 done
4986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987 esac
4988
4989 $ac_path_FGREP_found && break 3
4990 done
4991 done
4992 done
4993 IFS=$as_save_IFS
4994 if test -z "$ac_cv_path_FGREP"; then
4995 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4996 fi
4997 else
4998 ac_cv_path_FGREP=$FGREP
4999 fi
5000
5001 fi
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5004 $as_echo "$ac_cv_path_FGREP" >&6; }
5005 FGREP="$ac_cv_path_FGREP"
5006
5007
5008 test -z "$GREP" && GREP=grep
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 # Check whether --with-gnu-ld was given.
5029 if test "${with_gnu_ld+set}" = set; then :
5030 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5031 else
5032 with_gnu_ld=no
5033 fi
5034
5035 ac_prog=ld
5036 if test yes = "$GCC"; then
5037 # Check if gcc -print-prog-name=ld gives a path.
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5039 $as_echo_n "checking for ld used by $CC... " >&6; }
5040 case $host in
5041 *-*-mingw*)
5042 # gcc leaves a trailing carriage return, which upsets mingw
5043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5044 *)
5045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5046 esac
5047 case $ac_prog in
5048 # Accept absolute paths.
5049 [\\/]* | ?:[\\/]*)
5050 re_direlt='/[^/][^/]*/\.\./'
5051 # Canonicalize the pathname of ld
5052 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5053 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5054 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5055 done
5056 test -z "$LD" && LD=$ac_prog
5057 ;;
5058 "")
5059 # If it fails, then pretend we aren't using GCC.
5060 ac_prog=ld
5061 ;;
5062 *)
5063 # If it is relative, then search for the first ld in PATH.
5064 with_gnu_ld=unknown
5065 ;;
5066 esac
5067 elif test yes = "$with_gnu_ld"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5069 $as_echo_n "checking for GNU ld... " >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5072 $as_echo_n "checking for non-GNU ld... " >&6; }
5073 fi
5074 if ${lt_cv_path_LD+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -z "$LD"; then
5078 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5079 for ac_dir in $PATH; do
5080 IFS=$lt_save_ifs
5081 test -z "$ac_dir" && ac_dir=.
5082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5083 lt_cv_path_LD=$ac_dir/$ac_prog
5084 # Check to see if the program is GNU ld. I'd rather use --version,
5085 # but apparently some variants of GNU ld only accept -v.
5086 # Break only if it was the GNU/non-GNU ld that we prefer.
5087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5088 *GNU* | *'with BFD'*)
5089 test no != "$with_gnu_ld" && break
5090 ;;
5091 *)
5092 test yes != "$with_gnu_ld" && break
5093 ;;
5094 esac
5095 fi
5096 done
5097 IFS=$lt_save_ifs
5098 else
5099 lt_cv_path_LD=$LD # Let the user override the test with a path.
5100 fi
5101 fi
5102
5103 LD=$lt_cv_path_LD
5104 if test -n "$LD"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5106 $as_echo "$LD" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5113 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5114 if ${lt_cv_prog_gnu_ld+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5118 case `$LD -v 2>&1 </dev/null` in
5119 *GNU* | *'with BFD'*)
5120 lt_cv_prog_gnu_ld=yes
5121 ;;
5122 *)
5123 lt_cv_prog_gnu_ld=no
5124 ;;
5125 esac
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5128 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5129 with_gnu_ld=$lt_cv_prog_gnu_ld
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5140 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5141 if ${lt_cv_path_NM+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$NM"; then
5145 # Let the user override the test.
5146 lt_cv_path_NM=$NM
5147 else
5148 lt_nm_to_check=${ac_tool_prefix}nm
5149 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5150 lt_nm_to_check="$lt_nm_to_check nm"
5151 fi
5152 for lt_tmp_nm in $lt_nm_to_check; do
5153 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5154 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5155 IFS=$lt_save_ifs
5156 test -z "$ac_dir" && ac_dir=.
5157 tmp_nm=$ac_dir/$lt_tmp_nm
5158 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5159 # Check to see if the nm accepts a BSD-compat flag.
5160 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5161 # nm: unknown option "B" ignored
5162 # Tru64's nm complains that /dev/null is an invalid object file
5163 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5164 case $build_os in
5165 mingw*) lt_bad_file=conftest.nm/nofile ;;
5166 *) lt_bad_file=/dev/null ;;
5167 esac
5168 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5169 *$lt_bad_file* | *'Invalid file or object type'*)
5170 lt_cv_path_NM="$tmp_nm -B"
5171 break 2
5172 ;;
5173 *)
5174 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5175 */dev/null*)
5176 lt_cv_path_NM="$tmp_nm -p"
5177 break 2
5178 ;;
5179 *)
5180 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5181 continue # so that we can try to find one that supports BSD flags
5182 ;;
5183 esac
5184 ;;
5185 esac
5186 fi
5187 done
5188 IFS=$lt_save_ifs
5189 done
5190 : ${lt_cv_path_NM=no}
5191 fi
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5194 $as_echo "$lt_cv_path_NM" >&6; }
5195 if test no != "$lt_cv_path_NM"; then
5196 NM=$lt_cv_path_NM
5197 else
5198 # Didn't find any BSD compatible name lister, look for dumpbin.
5199 if test -n "$DUMPBIN"; then :
5200 # Let the user override the test.
5201 else
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in dumpbin "link -dump"
5204 do
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_DUMPBIN+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$DUMPBIN"; then
5213 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 DUMPBIN=$ac_cv_prog_DUMPBIN
5233 if test -n "$DUMPBIN"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5235 $as_echo "$DUMPBIN" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 test -n "$DUMPBIN" && break
5243 done
5244 fi
5245 if test -z "$DUMPBIN"; then
5246 ac_ct_DUMPBIN=$DUMPBIN
5247 for ac_prog in dumpbin "link -dump"
5248 do
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$ac_ct_DUMPBIN"; then
5257 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5277 if test -n "$ac_ct_DUMPBIN"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5279 $as_echo "$ac_ct_DUMPBIN" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 test -n "$ac_ct_DUMPBIN" && break
5287 done
5288
5289 if test "x$ac_ct_DUMPBIN" = x; then
5290 DUMPBIN=":"
5291 else
5292 case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298 DUMPBIN=$ac_ct_DUMPBIN
5299 fi
5300 fi
5301
5302 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5303 *COFF*)
5304 DUMPBIN="$DUMPBIN -symbols -headers"
5305 ;;
5306 *)
5307 DUMPBIN=:
5308 ;;
5309 esac
5310 fi
5311
5312 if test : != "$DUMPBIN"; then
5313 NM=$DUMPBIN
5314 fi
5315 fi
5316 test -z "$NM" && NM=nm
5317
5318
5319
5320
5321
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5324 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5325 if ${lt_cv_nm_interface+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 lt_cv_nm_interface="BSD nm"
5329 echo "int some_variable = 0;" > conftest.$ac_ext
5330 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5331 (eval "$ac_compile" 2>conftest.err)
5332 cat conftest.err >&5
5333 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5334 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5335 cat conftest.err >&5
5336 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5337 cat conftest.out >&5
5338 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5339 lt_cv_nm_interface="MS dumpbin"
5340 fi
5341 rm -f conftest*
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5344 $as_echo "$lt_cv_nm_interface" >&6; }
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5347 $as_echo_n "checking whether ln -s works... " >&6; }
5348 LN_S=$as_ln_s
5349 if test "$LN_S" = "ln -s"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5354 $as_echo "no, using $LN_S" >&6; }
5355 fi
5356
5357 # find the maximum length of command line arguments
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5359 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5360 if ${lt_cv_sys_max_cmd_len+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 i=0
5364 teststring=ABCD
5365
5366 case $build_os in
5367 msdosdjgpp*)
5368 # On DJGPP, this test can blow up pretty badly due to problems in libc
5369 # (any single argument exceeding 2000 bytes causes a buffer overrun
5370 # during glob expansion). Even if it were fixed, the result of this
5371 # check would be larger than it should be.
5372 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5373 ;;
5374
5375 gnu*)
5376 # Under GNU Hurd, this test is not required because there is
5377 # no limit to the length of command line arguments.
5378 # Libtool will interpret -1 as no limit whatsoever
5379 lt_cv_sys_max_cmd_len=-1;
5380 ;;
5381
5382 cygwin* | mingw* | cegcc*)
5383 # On Win9x/ME, this test blows up -- it succeeds, but takes
5384 # about 5 minutes as the teststring grows exponentially.
5385 # Worse, since 9x/ME are not pre-emptively multitasking,
5386 # you end up with a "frozen" computer, even though with patience
5387 # the test eventually succeeds (with a max line length of 256k).
5388 # Instead, let's just punt: use the minimum linelength reported by
5389 # all of the supported platforms: 8192 (on NT/2K/XP).
5390 lt_cv_sys_max_cmd_len=8192;
5391 ;;
5392
5393 mint*)
5394 # On MiNT this can take a long time and run out of memory.
5395 lt_cv_sys_max_cmd_len=8192;
5396 ;;
5397
5398 amigaos*)
5399 # On AmigaOS with pdksh, this test takes hours, literally.
5400 # So we just punt and use a minimum line length of 8192.
5401 lt_cv_sys_max_cmd_len=8192;
5402 ;;
5403
5404 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5405 # This has been around since 386BSD, at least. Likely further.
5406 if test -x /sbin/sysctl; then
5407 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5408 elif test -x /usr/sbin/sysctl; then
5409 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5410 else
5411 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5412 fi
5413 # And add a safety zone
5414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5416 ;;
5417
5418 interix*)
5419 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5420 lt_cv_sys_max_cmd_len=196608
5421 ;;
5422
5423 os2*)
5424 # The test takes a long time on OS/2.
5425 lt_cv_sys_max_cmd_len=8192
5426 ;;
5427
5428 osf*)
5429 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5430 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5431 # nice to cause kernel panics so lets avoid the loop below.
5432 # First set a reasonable default.
5433 lt_cv_sys_max_cmd_len=16384
5434 #
5435 if test -x /sbin/sysconfig; then
5436 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5437 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5438 esac
5439 fi
5440 ;;
5441 sco3.2v5*)
5442 lt_cv_sys_max_cmd_len=102400
5443 ;;
5444 sysv5* | sco5v6* | sysv4.2uw2*)
5445 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5446 if test -n "$kargmax"; then
5447 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5448 else
5449 lt_cv_sys_max_cmd_len=32768
5450 fi
5451 ;;
5452 *)
5453 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5454 if test -n "$lt_cv_sys_max_cmd_len" && \
5455 test undefined != "$lt_cv_sys_max_cmd_len"; then
5456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5458 else
5459 # Make teststring a little bigger before we do anything with it.
5460 # a 1K string should be a reasonable start.
5461 for i in 1 2 3 4 5 6 7 8; do
5462 teststring=$teststring$teststring
5463 done
5464 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465 # If test is not a shell built-in, we'll probably end up computing a
5466 # maximum length that is only half of the actual maximum length, but
5467 # we can't tell.
5468 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5469 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5470 test 17 != "$i" # 1/2 MB should be enough
5471 do
5472 i=`expr $i + 1`
5473 teststring=$teststring$teststring
5474 done
5475 # Only check the string length outside the loop.
5476 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5477 teststring=
5478 # Add a significant safety factor because C++ compilers can tack on
5479 # massive amounts of additional arguments before passing them to the
5480 # linker. It appears as though 1/2 is a usable value.
5481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5482 fi
5483 ;;
5484 esac
5485
5486 fi
5487
5488 if test -n "$lt_cv_sys_max_cmd_len"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5490 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5493 $as_echo "none" >&6; }
5494 fi
5495 max_cmd_len=$lt_cv_sys_max_cmd_len
5496
5497
5498
5499
5500
5501
5502 : ${CP="cp -f"}
5503 : ${MV="mv -f"}
5504 : ${RM="rm -f"}
5505
5506 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5507 lt_unset=unset
5508 else
5509 lt_unset=false
5510 fi
5511
5512
5513
5514
5515
5516 # test EBCDIC or ASCII
5517 case `echo X|tr X '\101'` in
5518 A) # ASCII based system
5519 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5520 lt_SP2NL='tr \040 \012'
5521 lt_NL2SP='tr \015\012 \040\040'
5522 ;;
5523 *) # EBCDIC based system
5524 lt_SP2NL='tr \100 \n'
5525 lt_NL2SP='tr \r\n \100\100'
5526 ;;
5527 esac
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5538 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5539 if ${lt_cv_to_host_file_cmd+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 case $host in
5543 *-*-mingw* )
5544 case $build in
5545 *-*-mingw* ) # actually msys
5546 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5547 ;;
5548 *-*-cygwin* )
5549 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5550 ;;
5551 * ) # otherwise, assume *nix
5552 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5553 ;;
5554 esac
5555 ;;
5556 *-*-cygwin* )
5557 case $build in
5558 *-*-mingw* ) # actually msys
5559 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5560 ;;
5561 *-*-cygwin* )
5562 lt_cv_to_host_file_cmd=func_convert_file_noop
5563 ;;
5564 * ) # otherwise, assume *nix
5565 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5566 ;;
5567 esac
5568 ;;
5569 * ) # unhandled hosts (and "normal" native builds)
5570 lt_cv_to_host_file_cmd=func_convert_file_noop
5571 ;;
5572 esac
5573
5574 fi
5575
5576 to_host_file_cmd=$lt_cv_to_host_file_cmd
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5578 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5579
5580
5581
5582
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5585 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5586 if ${lt_cv_to_tool_file_cmd+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 #assume ordinary cross tools, or native build.
5590 lt_cv_to_tool_file_cmd=func_convert_file_noop
5591 case $host in
5592 *-*-mingw* )
5593 case $build in
5594 *-*-mingw* ) # actually msys
5595 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5596 ;;
5597 esac
5598 ;;
5599 esac
5600
5601 fi
5602
5603 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5605 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5606
5607
5608
5609
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5612 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5613 if ${lt_cv_ld_reload_flag+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 lt_cv_ld_reload_flag='-r'
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5619 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5620 reload_flag=$lt_cv_ld_reload_flag
5621 case $reload_flag in
5622 "" | " "*) ;;
5623 *) reload_flag=" $reload_flag" ;;
5624 esac
5625 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5626 case $host_os in
5627 cygwin* | mingw* | pw32* | cegcc*)
5628 if test yes != "$GCC"; then
5629 reload_cmds=false
5630 fi
5631 ;;
5632 darwin*)
5633 if test yes = "$GCC"; then
5634 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5635 else
5636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5637 fi
5638 ;;
5639 esac
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 if test -n "$ac_tool_prefix"; then
5650 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5651 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_OBJDUMP+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$OBJDUMP"; then
5658 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671 done
5672 done
5673 IFS=$as_save_IFS
5674
5675 fi
5676 fi
5677 OBJDUMP=$ac_cv_prog_OBJDUMP
5678 if test -n "$OBJDUMP"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5680 $as_echo "$OBJDUMP" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686
5687 fi
5688 if test -z "$ac_cv_prog_OBJDUMP"; then
5689 ac_ct_OBJDUMP=$OBJDUMP
5690 # Extract the first word of "objdump", so it can be a program name with args.
5691 set dummy objdump; ac_word=$2
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 $as_echo_n "checking for $ac_word... " >&6; }
5694 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 if test -n "$ac_ct_OBJDUMP"; then
5698 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711 done
5712 done
5713 IFS=$as_save_IFS
5714
5715 fi
5716 fi
5717 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5718 if test -n "$ac_ct_OBJDUMP"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5720 $as_echo "$ac_ct_OBJDUMP" >&6; }
5721 else
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5724 fi
5725
5726 if test "x$ac_ct_OBJDUMP" = x; then
5727 OBJDUMP="false"
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730 yes:)
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5733 ac_tool_warned=yes ;;
5734 esac
5735 OBJDUMP=$ac_ct_OBJDUMP
5736 fi
5737 else
5738 OBJDUMP="$ac_cv_prog_OBJDUMP"
5739 fi
5740
5741 test -z "$OBJDUMP" && OBJDUMP=objdump
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5752 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5753 if ${lt_cv_deplibs_check_method+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 lt_cv_file_magic_cmd='$MAGIC_CMD'
5757 lt_cv_file_magic_test_file=
5758 lt_cv_deplibs_check_method='unknown'
5759 # Need to set the preceding variable on all platforms that support
5760 # interlibrary dependencies.
5761 # 'none' -- dependencies not supported.
5762 # 'unknown' -- same as none, but documents that we really don't know.
5763 # 'pass_all' -- all dependencies passed with no checks.
5764 # 'test_compile' -- check by making test program.
5765 # 'file_magic [[regex]]' -- check by looking for files in library path
5766 # that responds to the $file_magic_cmd with a given extended regex.
5767 # If you have 'file' or equivalent on your system and you're not sure
5768 # whether 'pass_all' will *always* work, you probably want this one.
5769
5770 case $host_os in
5771 aix[4-9]*)
5772 lt_cv_deplibs_check_method=pass_all
5773 ;;
5774
5775 beos*)
5776 lt_cv_deplibs_check_method=pass_all
5777 ;;
5778
5779 bsdi[45]*)
5780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5781 lt_cv_file_magic_cmd='/usr/bin/file -L'
5782 lt_cv_file_magic_test_file=/shlib/libc.so
5783 ;;
5784
5785 cygwin*)
5786 # func_win32_libid is a shell function defined in ltmain.sh
5787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5788 lt_cv_file_magic_cmd='func_win32_libid'
5789 ;;
5790
5791 mingw* | pw32*)
5792 # Base MSYS/MinGW do not provide the 'file' command needed by
5793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5794 # unless we find 'file', for example because we are cross-compiling.
5795 if ( file / ) >/dev/null 2>&1; then
5796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5797 lt_cv_file_magic_cmd='func_win32_libid'
5798 else
5799 # Keep this pattern in sync with the one in func_win32_libid.
5800 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5801 lt_cv_file_magic_cmd='$OBJDUMP -f'
5802 fi
5803 ;;
5804
5805 cegcc*)
5806 # use the weaker test based on 'objdump'. See mingw*.
5807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5808 lt_cv_file_magic_cmd='$OBJDUMP -f'
5809 ;;
5810
5811 darwin* | rhapsody*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815 freebsd* | dragonfly*)
5816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5817 case $host_cpu in
5818 i*86 )
5819 # Not sure whether the presence of OpenBSD here was a mistake.
5820 # Let's accept both of them until this is cleared up.
5821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5824 ;;
5825 esac
5826 else
5827 lt_cv_deplibs_check_method=pass_all
5828 fi
5829 ;;
5830
5831 haiku*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835 hpux10.20* | hpux11*)
5836 lt_cv_file_magic_cmd=/usr/bin/file
5837 case $host_cpu in
5838 ia64*)
5839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5841 ;;
5842 hppa*64*)
5843 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]'
5844 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5845 ;;
5846 *)
5847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5848 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5849 ;;
5850 esac
5851 ;;
5852
5853 interix[3-9]*)
5854 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5856 ;;
5857
5858 irix5* | irix6* | nonstopux*)
5859 case $LD in
5860 *-32|*"-32 ") libmagic=32-bit;;
5861 *-n32|*"-n32 ") libmagic=N32;;
5862 *-64|*"-64 ") libmagic=64-bit;;
5863 *) libmagic=never-match;;
5864 esac
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868 # This must be glibc/ELF.
5869 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5870 lt_cv_deplibs_check_method=pass_all
5871 ;;
5872
5873 netbsd* | netbsdelf*-gnu)
5874 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876 else
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5878 fi
5879 ;;
5880
5881 newos6*)
5882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5883 lt_cv_file_magic_cmd=/usr/bin/file
5884 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5885 ;;
5886
5887 *nto* | *qnx*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891 openbsd* | bitrig*)
5892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5894 else
5895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5896 fi
5897 ;;
5898
5899 osf3* | osf4* | osf5*)
5900 lt_cv_deplibs_check_method=pass_all
5901 ;;
5902
5903 rdos*)
5904 lt_cv_deplibs_check_method=pass_all
5905 ;;
5906
5907 solaris*)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910
5911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915 sysv4 | sysv4.3*)
5916 case $host_vendor in
5917 motorola)
5918 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]'
5919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5920 ;;
5921 ncr)
5922 lt_cv_deplibs_check_method=pass_all
5923 ;;
5924 sequent)
5925 lt_cv_file_magic_cmd='/bin/file'
5926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5927 ;;
5928 sni)
5929 lt_cv_file_magic_cmd='/bin/file'
5930 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5931 lt_cv_file_magic_test_file=/lib/libc.so
5932 ;;
5933 siemens)
5934 lt_cv_deplibs_check_method=pass_all
5935 ;;
5936 pc)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939 esac
5940 ;;
5941
5942 tpf*)
5943 lt_cv_deplibs_check_method=pass_all
5944 ;;
5945 os2*)
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948 esac
5949
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5952 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5953
5954 file_magic_glob=
5955 want_nocaseglob=no
5956 if test "$build" = "$host"; then
5957 case $host_os in
5958 mingw* | pw32*)
5959 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5960 want_nocaseglob=yes
5961 else
5962 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5963 fi
5964 ;;
5965 esac
5966 fi
5967
5968 file_magic_cmd=$lt_cv_file_magic_cmd
5969 deplibs_check_method=$lt_cv_deplibs_check_method
5970 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_DLLTOOL+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$DLLTOOL"; then
6002 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 DLLTOOL=$ac_cv_prog_DLLTOOL
6022 if test -n "$DLLTOOL"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6024 $as_echo "$DLLTOOL" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030
6031 fi
6032 if test -z "$ac_cv_prog_DLLTOOL"; then
6033 ac_ct_DLLTOOL=$DLLTOOL
6034 # Extract the first word of "dlltool", so it can be a program name with args.
6035 set dummy dlltool; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$ac_ct_DLLTOOL"; then
6042 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6062 if test -n "$ac_ct_DLLTOOL"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6064 $as_echo "$ac_ct_DLLTOOL" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070 if test "x$ac_ct_DLLTOOL" = x; then
6071 DLLTOOL="false"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074 yes:)
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077 ac_tool_warned=yes ;;
6078 esac
6079 DLLTOOL=$ac_ct_DLLTOOL
6080 fi
6081 else
6082 DLLTOOL="$ac_cv_prog_DLLTOOL"
6083 fi
6084
6085 test -z "$DLLTOOL" && DLLTOOL=dlltool
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6097 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6098 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 lt_cv_sharedlib_from_linklib_cmd='unknown'
6102
6103 case $host_os in
6104 cygwin* | mingw* | pw32* | cegcc*)
6105 # two different shell functions defined in ltmain.sh;
6106 # decide which one to use based on capabilities of $DLLTOOL
6107 case `$DLLTOOL --help 2>&1` in
6108 *--identify-strict*)
6109 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6110 ;;
6111 *)
6112 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6113 ;;
6114 esac
6115 ;;
6116 *)
6117 # fallback: assume linklib IS sharedlib
6118 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6119 ;;
6120 esac
6121
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6124 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6125 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6126 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6127
6128
6129
6130
6131
6132
6133
6134 if test -n "$ac_tool_prefix"; then
6135 for ac_prog in ar
6136 do
6137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_AR+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$AR"; then
6145 ac_cv_prog_AR="$AR" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 AR=$ac_cv_prog_AR
6165 if test -n "$AR"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6167 $as_echo "$AR" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173
6174 test -n "$AR" && break
6175 done
6176 fi
6177 if test -z "$AR"; then
6178 ac_ct_AR=$AR
6179 for ac_prog in ar
6180 do
6181 # Extract the first word of "$ac_prog", so it can be a program name with args.
6182 set dummy $ac_prog; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_AR"; then
6189 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198 ac_cv_prog_ac_ct_AR="$ac_prog"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6209 if test -n "$ac_ct_AR"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6211 $as_echo "$ac_ct_AR" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 test -n "$ac_ct_AR" && break
6219 done
6220
6221 if test "x$ac_ct_AR" = x; then
6222 AR="false"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230 AR=$ac_ct_AR
6231 fi
6232 fi
6233
6234 : ${AR=ar}
6235 : ${AR_FLAGS=cru}
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6248 $as_echo_n "checking for archiver @FILE support... " >&6; }
6249 if ${lt_cv_ar_at_file+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 lt_cv_ar_at_file=no
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255
6256 int
6257 main ()
6258 {
6259
6260 ;
6261 return 0;
6262 }
6263 _ACEOF
6264 if ac_fn_c_try_compile "$LINENO"; then :
6265 echo conftest.$ac_objext > conftest.lst
6266 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6268 (eval $lt_ar_try) 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }
6272 if test 0 -eq "$ac_status"; then
6273 # Ensure the archiver fails upon bogus file names.
6274 rm -f conftest.$ac_objext libconftest.a
6275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6276 (eval $lt_ar_try) 2>&5
6277 ac_status=$?
6278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279 test $ac_status = 0; }
6280 if test 0 -ne "$ac_status"; then
6281 lt_cv_ar_at_file=@
6282 fi
6283 fi
6284 rm -f conftest.* libconftest.a
6285
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6291 $as_echo "$lt_cv_ar_at_file" >&6; }
6292
6293 if test no = "$lt_cv_ar_at_file"; then
6294 archiver_list_spec=
6295 else
6296 archiver_list_spec=$lt_cv_ar_at_file
6297 fi
6298
6299
6300
6301
6302
6303
6304
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}strip; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if ${ac_cv_prog_STRIP+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$STRIP"; then
6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 STRIP=$ac_cv_prog_STRIP
6334 if test -n "$STRIP"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6336 $as_echo "$STRIP" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342
6343 fi
6344 if test -z "$ac_cv_prog_STRIP"; then
6345 ac_ct_STRIP=$STRIP
6346 # Extract the first word of "strip", so it can be a program name with args.
6347 set dummy strip; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$ac_ct_STRIP"; then
6354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_ac_ct_STRIP="strip"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374 if test -n "$ac_ct_STRIP"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6376 $as_echo "$ac_ct_STRIP" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382 if test "x$ac_ct_STRIP" = x; then
6383 STRIP=":"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391 STRIP=$ac_ct_STRIP
6392 fi
6393 else
6394 STRIP="$ac_cv_prog_STRIP"
6395 fi
6396
6397 test -z "$STRIP" && STRIP=:
6398
6399
6400
6401
6402
6403
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_RANLIB+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$RANLIB"; then
6413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 RANLIB=$ac_cv_prog_RANLIB
6433 if test -n "$RANLIB"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6435 $as_echo "$RANLIB" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442 fi
6443 if test -z "$ac_cv_prog_RANLIB"; then
6444 ac_ct_RANLIB=$RANLIB
6445 # Extract the first word of "ranlib", so it can be a program name with args.
6446 set dummy ranlib; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$ac_ct_RANLIB"; then
6453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_ac_ct_RANLIB="ranlib"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6473 if test -n "$ac_ct_RANLIB"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6475 $as_echo "$ac_ct_RANLIB" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481 if test "x$ac_ct_RANLIB" = x; then
6482 RANLIB=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 RANLIB=$ac_ct_RANLIB
6491 fi
6492 else
6493 RANLIB="$ac_cv_prog_RANLIB"
6494 fi
6495
6496 test -z "$RANLIB" && RANLIB=:
6497
6498
6499
6500
6501
6502
6503 # Determine commands to create old-style static archives.
6504 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6505 old_postinstall_cmds='chmod 644 $oldlib'
6506 old_postuninstall_cmds=
6507
6508 if test -n "$RANLIB"; then
6509 case $host_os in
6510 bitrig* | openbsd*)
6511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6512 ;;
6513 *)
6514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6515 ;;
6516 esac
6517 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6518 fi
6519
6520 case $host_os in
6521 darwin*)
6522 lock_old_archive_extraction=yes ;;
6523 *)
6524 lock_old_archive_extraction=no ;;
6525 esac
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 # If no C compiler was specified, use CC.
6566 LTCC=${LTCC-"$CC"}
6567
6568 # If no C compiler flags were specified, use CFLAGS.
6569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6570
6571 # Allow CC to be a program name with arguments.
6572 compiler=$CC
6573
6574
6575 # Check for command to grab the raw symbol name followed by C symbol from nm.
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6577 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6578 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581
6582 # These are sane defaults that work on at least a few old systems.
6583 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6584
6585 # Character class describing NM global symbol codes.
6586 symcode='[BCDEGRST]'
6587
6588 # Regexp to match symbols that can be accessed directly from C.
6589 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6590
6591 # Define system-specific variables.
6592 case $host_os in
6593 aix*)
6594 symcode='[BCDT]'
6595 ;;
6596 cygwin* | mingw* | pw32* | cegcc*)
6597 symcode='[ABCDGISTW]'
6598 ;;
6599 hpux*)
6600 if test ia64 = "$host_cpu"; then
6601 symcode='[ABCDEGRST]'
6602 fi
6603 ;;
6604 irix* | nonstopux*)
6605 symcode='[BCDEGRST]'
6606 ;;
6607 osf*)
6608 symcode='[BCDEGQRST]'
6609 ;;
6610 solaris*)
6611 symcode='[BDRT]'
6612 ;;
6613 sco3.2v5*)
6614 symcode='[DT]'
6615 ;;
6616 sysv4.2uw2*)
6617 symcode='[DT]'
6618 ;;
6619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6620 symcode='[ABDT]'
6621 ;;
6622 sysv4)
6623 symcode='[DFNSTU]'
6624 ;;
6625 esac
6626
6627 # If we're using GNU nm, then use its standard symbol codes.
6628 case `$NM -V 2>&1` in
6629 *GNU* | *'with BFD'*)
6630 symcode='[ABCDGIRSTW]' ;;
6631 esac
6632
6633 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6634 # Gets list of data symbols to import.
6635 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6636 # Adjust the below global symbol transforms to fixup imported variables.
6637 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6638 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6639 lt_c_name_lib_hook="\
6640 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6641 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6642 else
6643 # Disable hooks by default.
6644 lt_cv_sys_global_symbol_to_import=
6645 lt_cdecl_hook=
6646 lt_c_name_hook=
6647 lt_c_name_lib_hook=
6648 fi
6649
6650 # Transform an extracted symbol line into a proper C declaration.
6651 # Some systems (esp. on ia64) link data and code symbols differently,
6652 # so use this general approach.
6653 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6654 $lt_cdecl_hook\
6655 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6656 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6657
6658 # Transform an extracted symbol line into symbol name and symbol address
6659 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6660 $lt_c_name_hook\
6661 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6662 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6663
6664 # Transform an extracted symbol line into symbol name with lib prefix and
6665 # symbol address.
6666 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6667 $lt_c_name_lib_hook\
6668 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6669 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6670 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6671
6672 # Handle CRLF in mingw tool chain
6673 opt_cr=
6674 case $build_os in
6675 mingw*)
6676 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6677 ;;
6678 esac
6679
6680 # Try without a prefix underscore, then with it.
6681 for ac_symprfx in "" "_"; do
6682
6683 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6684 symxfrm="\\1 $ac_symprfx\\2 \\2"
6685
6686 # Write the raw and C identifiers.
6687 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6688 # Fake it for dumpbin and say T for any non-static function,
6689 # D for any global variable and I for any imported variable.
6690 # Also find C++ and __fastcall symbols from MSVC++,
6691 # which start with @ or ?.
6692 lt_cv_sys_global_symbol_pipe="$AWK '"\
6693 " {last_section=section; section=\$ 3};"\
6694 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6695 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6696 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6697 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6698 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6699 " \$ 0!~/External *\|/{next};"\
6700 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6701 " {if(hide[section]) next};"\
6702 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6703 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6704 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6705 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6706 " ' prfx=^$ac_symprfx"
6707 else
6708 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6709 fi
6710 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6711
6712 # Check to see that the pipe works correctly.
6713 pipe_works=no
6714
6715 rm -f conftest*
6716 cat > conftest.$ac_ext <<_LT_EOF
6717 #ifdef __cplusplus
6718 extern "C" {
6719 #endif
6720 char nm_test_var;
6721 void nm_test_func(void);
6722 void nm_test_func(void){}
6723 #ifdef __cplusplus
6724 }
6725 #endif
6726 int main(){nm_test_var='a';nm_test_func();return(0);}
6727 _LT_EOF
6728
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 # Now try to grab the symbols.
6735 nlist=conftest.nm
6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6737 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6738 ac_status=$?
6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; } && test -s "$nlist"; then
6741 # Try sorting and uniquifying the output.
6742 if sort "$nlist" | uniq > "$nlist"T; then
6743 mv -f "$nlist"T "$nlist"
6744 else
6745 rm -f "$nlist"T
6746 fi
6747
6748 # Make sure that we snagged all the symbols we need.
6749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6751 cat <<_LT_EOF > conftest.$ac_ext
6752 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6753 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6754 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6755 relocations are performed -- see ld's documentation on pseudo-relocs. */
6756 # define LT_DLSYM_CONST
6757 #elif defined __osf__
6758 /* This system does not cope well with relocations in const data. */
6759 # define LT_DLSYM_CONST
6760 #else
6761 # define LT_DLSYM_CONST const
6762 #endif
6763
6764 #ifdef __cplusplus
6765 extern "C" {
6766 #endif
6767
6768 _LT_EOF
6769 # Now generate the symbol file.
6770 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6771
6772 cat <<_LT_EOF >> conftest.$ac_ext
6773
6774 /* The mapping between symbol names and symbols. */
6775 LT_DLSYM_CONST struct {
6776 const char *name;
6777 void *address;
6778 }
6779 lt__PROGRAM__LTX_preloaded_symbols[] =
6780 {
6781 { "@PROGRAM@", (void *) 0 },
6782 _LT_EOF
6783 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6784 cat <<\_LT_EOF >> conftest.$ac_ext
6785 {0, (void *) 0}
6786 };
6787
6788 /* This works around a problem in FreeBSD linker */
6789 #ifdef FREEBSD_WORKAROUND
6790 static const void *lt_preloaded_setup() {
6791 return lt__PROGRAM__LTX_preloaded_symbols;
6792 }
6793 #endif
6794
6795 #ifdef __cplusplus
6796 }
6797 #endif
6798 _LT_EOF
6799 # Now try linking the two files.
6800 mv conftest.$ac_objext conftstm.$ac_objext
6801 lt_globsym_save_LIBS=$LIBS
6802 lt_globsym_save_CFLAGS=$CFLAGS
6803 LIBS=conftstm.$ac_objext
6804 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6806 (eval $ac_link) 2>&5
6807 ac_status=$?
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6810 pipe_works=yes
6811 fi
6812 LIBS=$lt_globsym_save_LIBS
6813 CFLAGS=$lt_globsym_save_CFLAGS
6814 else
6815 echo "cannot find nm_test_func in $nlist" >&5
6816 fi
6817 else
6818 echo "cannot find nm_test_var in $nlist" >&5
6819 fi
6820 else
6821 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6822 fi
6823 else
6824 echo "$progname: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6826 fi
6827 rm -rf conftest* conftst*
6828
6829 # Do not use the global_symbol_pipe unless it works.
6830 if test yes = "$pipe_works"; then
6831 break
6832 else
6833 lt_cv_sys_global_symbol_pipe=
6834 fi
6835 done
6836
6837 fi
6838
6839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6840 lt_cv_sys_global_symbol_to_cdecl=
6841 fi
6842 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6844 $as_echo "failed" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6847 $as_echo "ok" >&6; }
6848 fi
6849
6850 # Response file support.
6851 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6852 nm_file_list_spec='@'
6853 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6854 nm_file_list_spec='@'
6855 fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6894 $as_echo_n "checking for sysroot... " >&6; }
6895
6896 # Check whether --with-sysroot was given.
6897 if test "${with_sysroot+set}" = set; then :
6898 withval=$with_sysroot;
6899 else
6900 with_sysroot=no
6901 fi
6902
6903
6904 lt_sysroot=
6905 case $with_sysroot in #(
6906 yes)
6907 if test yes = "$GCC"; then
6908 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6909 fi
6910 ;; #(
6911 /*)
6912 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6913 ;; #(
6914 no|'')
6915 ;; #(
6916 *)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6918 $as_echo "$with_sysroot" >&6; }
6919 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6920 ;;
6921 esac
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6924 $as_echo "${lt_sysroot:-no}" >&6; }
6925
6926
6927
6928
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6931 $as_echo_n "checking for a working dd... " >&6; }
6932 if ${ac_cv_path_lt_DD+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 printf 0123456789abcdef0123456789abcdef >conftest.i
6936 cat conftest.i conftest.i >conftest2.i
6937 : ${lt_DD:=$DD}
6938 if test -z "$lt_DD"; then
6939 ac_path_lt_DD_found=false
6940 # Loop through the user's path and test for each of PROGNAME-LIST
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_prog in dd; do
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6949 as_fn_executable_p "$ac_path_lt_DD" || continue
6950 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6951 cmp -s conftest.i conftest.out \
6952 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6953 fi
6954 $ac_path_lt_DD_found && break 3
6955 done
6956 done
6957 done
6958 IFS=$as_save_IFS
6959 if test -z "$ac_cv_path_lt_DD"; then
6960 :
6961 fi
6962 else
6963 ac_cv_path_lt_DD=$lt_DD
6964 fi
6965
6966 rm -f conftest.i conftest2.i conftest.out
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6969 $as_echo "$ac_cv_path_lt_DD" >&6; }
6970
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6973 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6974 if ${lt_cv_truncate_bin+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 printf 0123456789abcdef0123456789abcdef >conftest.i
6978 cat conftest.i conftest.i >conftest2.i
6979 lt_cv_truncate_bin=
6980 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6981 cmp -s conftest.i conftest.out \
6982 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6983 fi
6984 rm -f conftest.i conftest2.i conftest.out
6985 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6988 $as_echo "$lt_cv_truncate_bin" >&6; }
6989
6990
6991
6992
6993
6994
6995
6996 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6997 func_cc_basename ()
6998 {
6999 for cc_temp in $*""; do
7000 case $cc_temp in
7001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7003 \-*) ;;
7004 *) break;;
7005 esac
7006 done
7007 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7008 }
7009
7010 # Check whether --enable-libtool-lock was given.
7011 if test "${enable_libtool_lock+set}" = set; then :
7012 enableval=$enable_libtool_lock;
7013 fi
7014
7015 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7016
7017 # Some flags need to be propagated to the compiler or linker for good
7018 # libtool support.
7019 case $host in
7020 ia64-*-hpux*)
7021 # Find out what ABI is being produced by ac_compile, and set mode
7022 # options accordingly.
7023 echo 'int i;' > conftest.$ac_ext
7024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025 (eval $ac_compile) 2>&5
7026 ac_status=$?
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; }; then
7029 case `/usr/bin/file conftest.$ac_objext` in
7030 *ELF-32*)
7031 HPUX_IA64_MODE=32
7032 ;;
7033 *ELF-64*)
7034 HPUX_IA64_MODE=64
7035 ;;
7036 esac
7037 fi
7038 rm -rf conftest*
7039 ;;
7040 *-*-irix6*)
7041 # Find out what ABI is being produced by ac_compile, and set linker
7042 # options accordingly.
7043 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 if test yes = "$lt_cv_prog_gnu_ld"; then
7050 case `/usr/bin/file conftest.$ac_objext` in
7051 *32-bit*)
7052 LD="${LD-ld} -melf32bsmip"
7053 ;;
7054 *N32*)
7055 LD="${LD-ld} -melf32bmipn32"
7056 ;;
7057 *64-bit*)
7058 LD="${LD-ld} -melf64bmip"
7059 ;;
7060 esac
7061 else
7062 case `/usr/bin/file conftest.$ac_objext` in
7063 *32-bit*)
7064 LD="${LD-ld} -32"
7065 ;;
7066 *N32*)
7067 LD="${LD-ld} -n32"
7068 ;;
7069 *64-bit*)
7070 LD="${LD-ld} -64"
7071 ;;
7072 esac
7073 fi
7074 fi
7075 rm -rf conftest*
7076 ;;
7077
7078 mips64*-*linux*)
7079 # Find out what ABI is being produced by ac_compile, and set linker
7080 # options accordingly.
7081 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083 (eval $ac_compile) 2>&5
7084 ac_status=$?
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }; then
7087 emul=elf
7088 case `/usr/bin/file conftest.$ac_objext` in
7089 *32-bit*)
7090 emul="${emul}32"
7091 ;;
7092 *64-bit*)
7093 emul="${emul}64"
7094 ;;
7095 esac
7096 case `/usr/bin/file conftest.$ac_objext` in
7097 *MSB*)
7098 emul="${emul}btsmip"
7099 ;;
7100 *LSB*)
7101 emul="${emul}ltsmip"
7102 ;;
7103 esac
7104 case `/usr/bin/file conftest.$ac_objext` in
7105 *N32*)
7106 emul="${emul}n32"
7107 ;;
7108 esac
7109 LD="${LD-ld} -m $emul"
7110 fi
7111 rm -rf conftest*
7112 ;;
7113
7114 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7115 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7116 # Find out what ABI is being produced by ac_compile, and set linker
7117 # options accordingly. Note that the listed cases only cover the
7118 # situations where additional linker options are needed (such as when
7119 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7120 # vice versa); the common cases where no linker options are needed do
7121 # not appear in the list.
7122 echo 'int i;' > conftest.$ac_ext
7123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7124 (eval $ac_compile) 2>&5
7125 ac_status=$?
7126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127 test $ac_status = 0; }; then
7128 case `/usr/bin/file conftest.o` in
7129 *32-bit*)
7130 case $host in
7131 x86_64-*kfreebsd*-gnu)
7132 LD="${LD-ld} -m elf_i386_fbsd"
7133 ;;
7134 x86_64-*linux*)
7135 case `/usr/bin/file conftest.o` in
7136 *x86-64*)
7137 LD="${LD-ld} -m elf32_x86_64"
7138 ;;
7139 *)
7140 LD="${LD-ld} -m elf_i386"
7141 ;;
7142 esac
7143 ;;
7144 powerpc64le-*linux*)
7145 LD="${LD-ld} -m elf32lppclinux"
7146 ;;
7147 powerpc64-*linux*)
7148 LD="${LD-ld} -m elf32ppclinux"
7149 ;;
7150 s390x-*linux*)
7151 LD="${LD-ld} -m elf_s390"
7152 ;;
7153 sparc64-*linux*)
7154 LD="${LD-ld} -m elf32_sparc"
7155 ;;
7156 esac
7157 ;;
7158 *64-bit*)
7159 case $host in
7160 x86_64-*kfreebsd*-gnu)
7161 LD="${LD-ld} -m elf_x86_64_fbsd"
7162 ;;
7163 x86_64-*linux*)
7164 LD="${LD-ld} -m elf_x86_64"
7165 ;;
7166 powerpcle-*linux*)
7167 LD="${LD-ld} -m elf64lppc"
7168 ;;
7169 powerpc-*linux*)
7170 LD="${LD-ld} -m elf64ppc"
7171 ;;
7172 s390*-*linux*|s390*-*tpf*)
7173 LD="${LD-ld} -m elf64_s390"
7174 ;;
7175 sparc*-*linux*)
7176 LD="${LD-ld} -m elf64_sparc"
7177 ;;
7178 esac
7179 ;;
7180 esac
7181 fi
7182 rm -rf conftest*
7183 ;;
7184
7185 *-*-sco3.2v5*)
7186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7187 SAVE_CFLAGS=$CFLAGS
7188 CFLAGS="$CFLAGS -belf"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7191 if ${lt_cv_cc_needs_belf+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 ac_ext=c
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202
7203 int
7204 main ()
7205 {
7206
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 lt_cv_cc_needs_belf=yes
7213 else
7214 lt_cv_cc_needs_belf=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 ac_ext=c
7219 ac_cpp='$CPP $CPPFLAGS'
7220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7223
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7227 if test yes != "$lt_cv_cc_needs_belf"; then
7228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7229 CFLAGS=$SAVE_CFLAGS
7230 fi
7231 ;;
7232 *-*solaris*)
7233 # Find out what ABI is being produced by ac_compile, and set linker
7234 # options accordingly.
7235 echo 'int i;' > conftest.$ac_ext
7236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7237 (eval $ac_compile) 2>&5
7238 ac_status=$?
7239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240 test $ac_status = 0; }; then
7241 case `/usr/bin/file conftest.o` in
7242 *64-bit*)
7243 case $lt_cv_prog_gnu_ld in
7244 yes*)
7245 case $host in
7246 i?86-*-solaris*|x86_64-*-solaris*)
7247 LD="${LD-ld} -m elf_x86_64"
7248 ;;
7249 sparc*-*-solaris*)
7250 LD="${LD-ld} -m elf64_sparc"
7251 ;;
7252 esac
7253 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7254 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7255 LD=${LD-ld}_sol2
7256 fi
7257 ;;
7258 *)
7259 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7260 LD="${LD-ld} -64"
7261 fi
7262 ;;
7263 esac
7264 ;;
7265 esac
7266 fi
7267 rm -rf conftest*
7268 ;;
7269 esac
7270
7271 need_locks=$enable_libtool_lock
7272
7273 if test -n "$ac_tool_prefix"; then
7274 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7275 set dummy ${ac_tool_prefix}mt; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 if test -n "$MANIFEST_TOOL"; then
7282 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 break 2
7294 fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7302 if test -n "$MANIFEST_TOOL"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7304 $as_echo "$MANIFEST_TOOL" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310
7311 fi
7312 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7313 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7314 # Extract the first word of "mt", so it can be a program name with args.
7315 set dummy mt; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if test -n "$ac_ct_MANIFEST_TOOL"; then
7322 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7342 if test -n "$ac_ct_MANIFEST_TOOL"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7344 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7351 MANIFEST_TOOL=":"
7352 else
7353 case $cross_compiling:$ac_tool_warned in
7354 yes:)
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7358 esac
7359 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7360 fi
7361 else
7362 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7363 fi
7364
7365 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7367 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7368 if ${lt_cv_path_mainfest_tool+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 lt_cv_path_mainfest_tool=no
7372 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7373 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7374 cat conftest.err >&5
7375 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7376 lt_cv_path_mainfest_tool=yes
7377 fi
7378 rm -f conftest*
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7381 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7382 if test yes != "$lt_cv_path_mainfest_tool"; then
7383 MANIFEST_TOOL=:
7384 fi
7385
7386
7387
7388
7389
7390
7391 case $host_os in
7392 rhapsody* | darwin*)
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$DSYMUTIL"; then
7402 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7422 if test -n "$DSYMUTIL"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7424 $as_echo "$DSYMUTIL" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_DSYMUTIL"; then
7433 ac_ct_DSYMUTIL=$DSYMUTIL
7434 # Extract the first word of "dsymutil", so it can be a program name with args.
7435 set dummy dsymutil; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$ac_ct_DSYMUTIL"; then
7442 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7462 if test -n "$ac_ct_DSYMUTIL"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7464 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470 if test "x$ac_ct_DSYMUTIL" = x; then
7471 DSYMUTIL=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479 DSYMUTIL=$ac_ct_DSYMUTIL
7480 fi
7481 else
7482 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7483 fi
7484
7485 if test -n "$ac_tool_prefix"; then
7486 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7487 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_prog_NMEDIT+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 if test -n "$NMEDIT"; then
7494 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507 done
7508 done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 NMEDIT=$ac_cv_prog_NMEDIT
7514 if test -n "$NMEDIT"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7516 $as_echo "$NMEDIT" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522
7523 fi
7524 if test -z "$ac_cv_prog_NMEDIT"; then
7525 ac_ct_NMEDIT=$NMEDIT
7526 # Extract the first word of "nmedit", so it can be a program name with args.
7527 set dummy nmedit; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 if test -n "$ac_ct_NMEDIT"; then
7534 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7554 if test -n "$ac_ct_NMEDIT"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7556 $as_echo "$ac_ct_NMEDIT" >&6; }
7557 else
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562 if test "x$ac_ct_NMEDIT" = x; then
7563 NMEDIT=":"
7564 else
7565 case $cross_compiling:$ac_tool_warned in
7566 yes:)
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569 ac_tool_warned=yes ;;
7570 esac
7571 NMEDIT=$ac_ct_NMEDIT
7572 fi
7573 else
7574 NMEDIT="$ac_cv_prog_NMEDIT"
7575 fi
7576
7577 if test -n "$ac_tool_prefix"; then
7578 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_prog_LIPO+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 if test -n "$LIPO"; then
7586 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599 done
7600 done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 LIPO=$ac_cv_prog_LIPO
7606 if test -n "$LIPO"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7608 $as_echo "$LIPO" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614
7615 fi
7616 if test -z "$ac_cv_prog_LIPO"; then
7617 ac_ct_LIPO=$LIPO
7618 # Extract the first word of "lipo", so it can be a program name with args.
7619 set dummy lipo; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test -n "$ac_ct_LIPO"; then
7626 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635 ac_cv_prog_ac_ct_LIPO="lipo"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639 done
7640 done
7641 IFS=$as_save_IFS
7642
7643 fi
7644 fi
7645 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7646 if test -n "$ac_ct_LIPO"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7648 $as_echo "$ac_ct_LIPO" >&6; }
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7653
7654 if test "x$ac_ct_LIPO" = x; then
7655 LIPO=":"
7656 else
7657 case $cross_compiling:$ac_tool_warned in
7658 yes:)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7662 esac
7663 LIPO=$ac_ct_LIPO
7664 fi
7665 else
7666 LIPO="$ac_cv_prog_LIPO"
7667 fi
7668
7669 if test -n "$ac_tool_prefix"; then
7670 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7671 set dummy ${ac_tool_prefix}otool; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_OTOOL+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if test -n "$OTOOL"; then
7678 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 OTOOL=$ac_cv_prog_OTOOL
7698 if test -n "$OTOOL"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7700 $as_echo "$OTOOL" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707 fi
7708 if test -z "$ac_cv_prog_OTOOL"; then
7709 ac_ct_OTOOL=$OTOOL
7710 # Extract the first word of "otool", so it can be a program name with args.
7711 set dummy otool; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$ac_ct_OTOOL"; then
7718 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_ac_ct_OTOOL="otool"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7738 if test -n "$ac_ct_OTOOL"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7740 $as_echo "$ac_ct_OTOOL" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746 if test "x$ac_ct_OTOOL" = x; then
7747 OTOOL=":"
7748 else
7749 case $cross_compiling:$ac_tool_warned in
7750 yes:)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755 OTOOL=$ac_ct_OTOOL
7756 fi
7757 else
7758 OTOOL="$ac_cv_prog_OTOOL"
7759 fi
7760
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_OTOOL64+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test -n "$OTOOL64"; then
7770 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7782 fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 OTOOL64=$ac_cv_prog_OTOOL64
7790 if test -n "$OTOOL64"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7792 $as_echo "$OTOOL64" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799 fi
7800 if test -z "$ac_cv_prog_OTOOL64"; then
7801 ac_ct_OTOOL64=$OTOOL64
7802 # Extract the first word of "otool64", so it can be a program name with args.
7803 set dummy otool64; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$ac_ct_OTOOL64"; then
7810 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 ac_cv_prog_ac_ct_OTOOL64="otool64"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7830 if test -n "$ac_ct_OTOOL64"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7832 $as_echo "$ac_ct_OTOOL64" >&6; }
7833 else
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837
7838 if test "x$ac_ct_OTOOL64" = x; then
7839 OTOOL64=":"
7840 else
7841 case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845 ac_tool_warned=yes ;;
7846 esac
7847 OTOOL64=$ac_ct_OTOOL64
7848 fi
7849 else
7850 OTOOL64="$ac_cv_prog_OTOOL64"
7851 fi
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7880 $as_echo_n "checking for -single_module linker flag... " >&6; }
7881 if ${lt_cv_apple_cc_single_mod+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 lt_cv_apple_cc_single_mod=no
7885 if test -z "$LT_MULTI_MODULE"; then
7886 # By default we will add the -single_module flag. You can override
7887 # by either setting the environment variable LT_MULTI_MODULE
7888 # non-empty at configure time, or by adding -multi_module to the
7889 # link flags.
7890 rm -rf libconftest.dylib*
7891 echo "int foo(void){return 1;}" > conftest.c
7892 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7893 -dynamiclib -Wl,-single_module conftest.c" >&5
7894 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7895 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7896 _lt_result=$?
7897 # If there is a non-empty error log, and "single_module"
7898 # appears in it, assume the flag caused a linker warning
7899 if test -s conftest.err && $GREP single_module conftest.err; then
7900 cat conftest.err >&5
7901 # Otherwise, if the output was created with a 0 exit code from
7902 # the compiler, it worked.
7903 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7904 lt_cv_apple_cc_single_mod=yes
7905 else
7906 cat conftest.err >&5
7907 fi
7908 rm -rf libconftest.dylib*
7909 rm -f conftest.*
7910 fi
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7913 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 int
7928 main ()
7929 {
7930
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 lt_cv_ld_exported_symbols_list=yes
7937 else
7938 lt_cv_ld_exported_symbols_list=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS=$save_LDFLAGS
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7949 $as_echo_n "checking for -force_load linker flag... " >&6; }
7950 if ${lt_cv_ld_force_load+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 lt_cv_ld_force_load=no
7954 cat > conftest.c << _LT_EOF
7955 int forced_loaded() { return 2;}
7956 _LT_EOF
7957 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7958 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7959 echo "$AR cru libconftest.a conftest.o" >&5
7960 $AR cru libconftest.a conftest.o 2>&5
7961 echo "$RANLIB libconftest.a" >&5
7962 $RANLIB libconftest.a 2>&5
7963 cat > conftest.c << _LT_EOF
7964 int main() { return 0;}
7965 _LT_EOF
7966 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7967 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7968 _lt_result=$?
7969 if test -s conftest.err && $GREP force_load conftest.err; then
7970 cat conftest.err >&5
7971 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7972 lt_cv_ld_force_load=yes
7973 else
7974 cat conftest.err >&5
7975 fi
7976 rm -f conftest.err libconftest.a conftest conftest.c
7977 rm -rf conftest.dSYM
7978
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7981 $as_echo "$lt_cv_ld_force_load" >&6; }
7982 case $host_os in
7983 rhapsody* | darwin1.[012])
7984 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7985 darwin1.*)
7986 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7987 darwin*) # darwin 5.x on
7988 # if running on 10.5 or later, the deployment target defaults
7989 # to the OS version, if on x86, and 10.4, the deployment
7990 # target defaults to 10.4. Don't you love it?
7991 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7992 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7993 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7994 10.[012][,.]*)
7995 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7996 10.*)
7997 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7998 esac
7999 ;;
8000 esac
8001 if test yes = "$lt_cv_apple_cc_single_mod"; then
8002 _lt_dar_single_mod='$single_module'
8003 fi
8004 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8005 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8006 else
8007 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8008 fi
8009 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8010 _lt_dsymutil='~$DSYMUTIL $lib || :'
8011 else
8012 _lt_dsymutil=
8013 fi
8014 ;;
8015 esac
8016
8017 # func_munge_path_list VARIABLE PATH
8018 # -----------------------------------
8019 # VARIABLE is name of variable containing _space_ separated list of
8020 # directories to be munged by the contents of PATH, which is string
8021 # having a format:
8022 # "DIR[:DIR]:"
8023 # string "DIR[ DIR]" will be prepended to VARIABLE
8024 # ":DIR[:DIR]"
8025 # string "DIR[ DIR]" will be appended to VARIABLE
8026 # "DIRP[:DIRP]::[DIRA:]DIRA"
8027 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8028 # "DIRA[ DIRA]" will be appended to VARIABLE
8029 # "DIR[:DIR]"
8030 # VARIABLE will be replaced by "DIR[ DIR]"
8031 func_munge_path_list ()
8032 {
8033 case x$2 in
8034 x)
8035 ;;
8036 *:)
8037 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8038 ;;
8039 x:*)
8040 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8041 ;;
8042 *::*)
8043 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8044 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8045 ;;
8046 *)
8047 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8048 ;;
8049 esac
8050 }
8051
8052 for ac_header in dlfcn.h
8053 do :
8054 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8055 "
8056 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8057 cat >>confdefs.h <<_ACEOF
8058 #define HAVE_DLFCN_H 1
8059 _ACEOF
8060
8061 fi
8062
8063 done
8064
8065
8066
8067
8068
8069 # Set options
8070
8071
8072
8073 enable_dlopen=no
8074
8075
8076 enable_win32_dll=no
8077
8078
8079 # Check whether --enable-shared was given.
8080 if test "${enable_shared+set}" = set; then :
8081 enableval=$enable_shared; p=${PACKAGE-default}
8082 case $enableval in
8083 yes) enable_shared=yes ;;
8084 no) enable_shared=no ;;
8085 *)
8086 enable_shared=no
8087 # Look at the argument we got. We use all the common list separators.
8088 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8089 for pkg in $enableval; do
8090 IFS=$lt_save_ifs
8091 if test "X$pkg" = "X$p"; then
8092 enable_shared=yes
8093 fi
8094 done
8095 IFS=$lt_save_ifs
8096 ;;
8097 esac
8098 else
8099 enable_shared=yes
8100 fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110 # Check whether --enable-static was given.
8111 if test "${enable_static+set}" = set; then :
8112 enableval=$enable_static; p=${PACKAGE-default}
8113 case $enableval in
8114 yes) enable_static=yes ;;
8115 no) enable_static=no ;;
8116 *)
8117 enable_static=no
8118 # Look at the argument we got. We use all the common list separators.
8119 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8120 for pkg in $enableval; do
8121 IFS=$lt_save_ifs
8122 if test "X$pkg" = "X$p"; then
8123 enable_static=yes
8124 fi
8125 done
8126 IFS=$lt_save_ifs
8127 ;;
8128 esac
8129 else
8130 enable_static=yes
8131 fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 # Check whether --with-pic was given.
8143 if test "${with_pic+set}" = set; then :
8144 withval=$with_pic; lt_p=${PACKAGE-default}
8145 case $withval in
8146 yes|no) pic_mode=$withval ;;
8147 *)
8148 pic_mode=default
8149 # Look at the argument we got. We use all the common list separators.
8150 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8151 for lt_pkg in $withval; do
8152 IFS=$lt_save_ifs
8153 if test "X$lt_pkg" = "X$lt_p"; then
8154 pic_mode=yes
8155 fi
8156 done
8157 IFS=$lt_save_ifs
8158 ;;
8159 esac
8160 else
8161 pic_mode=default
8162 fi
8163
8164
8165
8166
8167
8168
8169
8170
8171 # Check whether --enable-fast-install was given.
8172 if test "${enable_fast_install+set}" = set; then :
8173 enableval=$enable_fast_install; p=${PACKAGE-default}
8174 case $enableval in
8175 yes) enable_fast_install=yes ;;
8176 no) enable_fast_install=no ;;
8177 *)
8178 enable_fast_install=no
8179 # Look at the argument we got. We use all the common list separators.
8180 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8181 for pkg in $enableval; do
8182 IFS=$lt_save_ifs
8183 if test "X$pkg" = "X$p"; then
8184 enable_fast_install=yes
8185 fi
8186 done
8187 IFS=$lt_save_ifs
8188 ;;
8189 esac
8190 else
8191 enable_fast_install=yes
8192 fi
8193
8194
8195
8196
8197
8198
8199
8200
8201 shared_archive_member_spec=
8202 case $host,$enable_shared in
8203 power*-*-aix[5-9]*,yes)
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8205 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8206
8207 # Check whether --with-aix-soname was given.
8208 if test "${with_aix_soname+set}" = set; then :
8209 withval=$with_aix_soname; case $withval in
8210 aix|svr4|both)
8211 ;;
8212 *)
8213 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8214 ;;
8215 esac
8216 lt_cv_with_aix_soname=$with_aix_soname
8217 else
8218 if ${lt_cv_with_aix_soname+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 lt_cv_with_aix_soname=aix
8222 fi
8223
8224 with_aix_soname=$lt_cv_with_aix_soname
8225 fi
8226
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8228 $as_echo "$with_aix_soname" >&6; }
8229 if test aix != "$with_aix_soname"; then
8230 # For the AIX way of multilib, we name the shared archive member
8231 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8232 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8233 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8234 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8235 if test 64 = "${OBJECT_MODE-32}"; then
8236 shared_archive_member_spec=shr_64
8237 else
8238 shared_archive_member_spec=shr
8239 fi
8240 fi
8241 ;;
8242 *)
8243 with_aix_soname=aix
8244 ;;
8245 esac
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 # This can be used to rebuild libtool when needed
8257 LIBTOOL_DEPS=$ltmain
8258
8259 # Always use our own libtool.
8260 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 test -z "$LN_S" && LN_S="ln -s"
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306 if test -n "${ZSH_VERSION+set}"; then
8307 setopt NO_GLOB_SUBST
8308 fi
8309
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8311 $as_echo_n "checking for objdir... " >&6; }
8312 if ${lt_cv_objdir+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 rm -f .libs 2>/dev/null
8316 mkdir .libs 2>/dev/null
8317 if test -d .libs; then
8318 lt_cv_objdir=.libs
8319 else
8320 # MS-DOS does not allow filenames that begin with a dot.
8321 lt_cv_objdir=_libs
8322 fi
8323 rmdir .libs 2>/dev/null
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8326 $as_echo "$lt_cv_objdir" >&6; }
8327 objdir=$lt_cv_objdir
8328
8329
8330
8331
8332
8333 cat >>confdefs.h <<_ACEOF
8334 #define LT_OBJDIR "$lt_cv_objdir/"
8335 _ACEOF
8336
8337
8338
8339
8340 case $host_os in
8341 aix3*)
8342 # AIX sometimes has problems with the GCC collect2 program. For some
8343 # reason, if we set the COLLECT_NAMES environment variable, the problems
8344 # vanish in a puff of smoke.
8345 if test set != "${COLLECT_NAMES+set}"; then
8346 COLLECT_NAMES=
8347 export COLLECT_NAMES
8348 fi
8349 ;;
8350 esac
8351
8352 # Global variables:
8353 ofile=libtool
8354 can_build_shared=yes
8355
8356 # All known linkers require a '.a' archive for static linking (except MSVC,
8357 # which needs '.lib').
8358 libext=a
8359
8360 with_gnu_ld=$lt_cv_prog_gnu_ld
8361
8362 old_CC=$CC
8363 old_CFLAGS=$CFLAGS
8364
8365 # Set sane defaults for various variables
8366 test -z "$CC" && CC=cc
8367 test -z "$LTCC" && LTCC=$CC
8368 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8369 test -z "$LD" && LD=ld
8370 test -z "$ac_objext" && ac_objext=o
8371
8372 func_cc_basename $compiler
8373 cc_basename=$func_cc_basename_result
8374
8375
8376 # Only perform the check for file, if the check method requires it
8377 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8378 case $deplibs_check_method in
8379 file_magic*)
8380 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8382 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8383 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $MAGIC_CMD in
8387 [\\/*] | ?:[\\/]*)
8388 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8389 ;;
8390 *)
8391 lt_save_MAGIC_CMD=$MAGIC_CMD
8392 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8394 for ac_dir in $ac_dummy; do
8395 IFS=$lt_save_ifs
8396 test -z "$ac_dir" && ac_dir=.
8397 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8398 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8399 if test -n "$file_magic_test_file"; then
8400 case $deplibs_check_method in
8401 "file_magic "*)
8402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8403 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8405 $EGREP "$file_magic_regex" > /dev/null; then
8406 :
8407 else
8408 cat <<_LT_EOF 1>&2
8409
8410 *** Warning: the command libtool uses to detect shared libraries,
8411 *** $file_magic_cmd, produces output that libtool cannot recognize.
8412 *** The result is that libtool may fail to recognize shared libraries
8413 *** as such. This will affect the creation of libtool libraries that
8414 *** depend on shared libraries, but programs linked with such libtool
8415 *** libraries will work regardless of this problem. Nevertheless, you
8416 *** may want to report the problem to your system manager and/or to
8417 *** bug-libtool (at] gnu.org
8418
8419 _LT_EOF
8420 fi ;;
8421 esac
8422 fi
8423 break
8424 fi
8425 done
8426 IFS=$lt_save_ifs
8427 MAGIC_CMD=$lt_save_MAGIC_CMD
8428 ;;
8429 esac
8430 fi
8431
8432 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8433 if test -n "$MAGIC_CMD"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8435 $as_echo "$MAGIC_CMD" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 fi
8440
8441
8442
8443
8444
8445 if test -z "$lt_cv_path_MAGIC_CMD"; then
8446 if test -n "$ac_tool_prefix"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8448 $as_echo_n "checking for file... " >&6; }
8449 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 case $MAGIC_CMD in
8453 [\\/*] | ?:[\\/]*)
8454 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8455 ;;
8456 *)
8457 lt_save_MAGIC_CMD=$MAGIC_CMD
8458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460 for ac_dir in $ac_dummy; do
8461 IFS=$lt_save_ifs
8462 test -z "$ac_dir" && ac_dir=.
8463 if test -f "$ac_dir/file"; then
8464 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8465 if test -n "$file_magic_test_file"; then
8466 case $deplibs_check_method in
8467 "file_magic "*)
8468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471 $EGREP "$file_magic_regex" > /dev/null; then
8472 :
8473 else
8474 cat <<_LT_EOF 1>&2
8475
8476 *** Warning: the command libtool uses to detect shared libraries,
8477 *** $file_magic_cmd, produces output that libtool cannot recognize.
8478 *** The result is that libtool may fail to recognize shared libraries
8479 *** as such. This will affect the creation of libtool libraries that
8480 *** depend on shared libraries, but programs linked with such libtool
8481 *** libraries will work regardless of this problem. Nevertheless, you
8482 *** may want to report the problem to your system manager and/or to
8483 *** bug-libtool (at] gnu.org
8484
8485 _LT_EOF
8486 fi ;;
8487 esac
8488 fi
8489 break
8490 fi
8491 done
8492 IFS=$lt_save_ifs
8493 MAGIC_CMD=$lt_save_MAGIC_CMD
8494 ;;
8495 esac
8496 fi
8497
8498 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8499 if test -n "$MAGIC_CMD"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8501 $as_echo "$MAGIC_CMD" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508 else
8509 MAGIC_CMD=:
8510 fi
8511 fi
8512
8513 fi
8514 ;;
8515 esac
8516
8517 # Use C for the default configuration in the libtool script
8518
8519 lt_save_CC=$CC
8520 ac_ext=c
8521 ac_cpp='$CPP $CPPFLAGS'
8522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525
8526
8527 # Source file extension for C test sources.
8528 ac_ext=c
8529
8530 # Object file extension for compiled C test sources.
8531 objext=o
8532 objext=$objext
8533
8534 # Code to be used in simple compile tests
8535 lt_simple_compile_test_code="int some_variable = 0;"
8536
8537 # Code to be used in simple link tests
8538 lt_simple_link_test_code='int main(){return(0);}'
8539
8540
8541
8542
8543
8544
8545
8546 # If no C compiler was specified, use CC.
8547 LTCC=${LTCC-"$CC"}
8548
8549 # If no C compiler flags were specified, use CFLAGS.
8550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8551
8552 # Allow CC to be a program name with arguments.
8553 compiler=$CC
8554
8555 # Save the default compiler, since it gets overwritten when the other
8556 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8557 compiler_DEFAULT=$CC
8558
8559 # save warnings/boilerplate of simple test code
8560 ac_outfile=conftest.$ac_objext
8561 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8562 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8563 _lt_compiler_boilerplate=`cat conftest.err`
8564 $RM conftest*
8565
8566 ac_outfile=conftest.$ac_objext
8567 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8568 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8569 _lt_linker_boilerplate=`cat conftest.err`
8570 $RM -r conftest*
8571
8572
8573 if test -n "$compiler"; then
8574
8575 lt_prog_compiler_no_builtin_flag=
8576
8577 if test yes = "$GCC"; then
8578 case $cc_basename in
8579 nvcc*)
8580 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8581 *)
8582 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8583 esac
8584
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8586 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8587 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 lt_cv_prog_compiler_rtti_exceptions=no
8591 ac_outfile=conftest.$ac_objext
8592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8593 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8594 # Insert the option either (1) after the last *FLAGS variable, or
8595 # (2) before a word containing "conftest.", or (3) at the end.
8596 # Note that $ac_compile itself does not contain backslashes and begins
8597 # with a dollar sign (not a hyphen), so the echo should work correctly.
8598 # The option is referenced via a variable to avoid confusing sed.
8599 lt_compile=`echo "$ac_compile" | $SED \
8600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8602 -e 's:$: $lt_compiler_flag:'`
8603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8604 (eval "$lt_compile" 2>conftest.err)
8605 ac_status=$?
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 if (exit $ac_status) && test -s "$ac_outfile"; then
8609 # The compiler can only warn and ignore the option if not recognized
8610 # So say no if there are warnings other than the usual output.
8611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8613 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8614 lt_cv_prog_compiler_rtti_exceptions=yes
8615 fi
8616 fi
8617 $RM conftest*
8618
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8621 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8622
8623 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8624 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8625 else
8626 :
8627 fi
8628
8629 fi
8630
8631
8632
8633
8634
8635
8636 lt_prog_compiler_wl=
8637 lt_prog_compiler_pic=
8638 lt_prog_compiler_static=
8639
8640
8641 if test yes = "$GCC"; then
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_static='-static'
8644
8645 case $host_os in
8646 aix*)
8647 # All AIX code is PIC.
8648 if test ia64 = "$host_cpu"; then
8649 # AIX 5 now supports IA64 processor
8650 lt_prog_compiler_static='-Bstatic'
8651 fi
8652 lt_prog_compiler_pic='-fPIC'
8653 ;;
8654
8655 amigaos*)
8656 case $host_cpu in
8657 powerpc)
8658 # see comment about AmigaOS4 .so support
8659 lt_prog_compiler_pic='-fPIC'
8660 ;;
8661 m68k)
8662 # FIXME: we need at least 68020 code to build shared libraries, but
8663 # adding the '-m68020' flag to GCC prevents building anything better,
8664 # like '-m68040'.
8665 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8666 ;;
8667 esac
8668 ;;
8669
8670 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8671 # PIC is the default for these OSes.
8672 ;;
8673
8674 mingw* | cygwin* | pw32* | os2* | cegcc*)
8675 # This hack is so that the source file can tell whether it is being
8676 # built for inclusion in a dll (and should export symbols for example).
8677 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8678 # (--disable-auto-import) libraries
8679 lt_prog_compiler_pic='-DDLL_EXPORT'
8680 case $host_os in
8681 os2*)
8682 lt_prog_compiler_static='$wl-static'
8683 ;;
8684 esac
8685 ;;
8686
8687 darwin* | rhapsody*)
8688 # PIC is the default on this platform
8689 # Common symbols not allowed in MH_DYLIB files
8690 lt_prog_compiler_pic='-fno-common'
8691 ;;
8692
8693 haiku*)
8694 # PIC is the default for Haiku.
8695 # The "-static" flag exists, but is broken.
8696 lt_prog_compiler_static=
8697 ;;
8698
8699 hpux*)
8700 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8701 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8702 # sets the default TLS model and affects inlining.
8703 case $host_cpu in
8704 hppa*64*)
8705 # +Z the default
8706 ;;
8707 *)
8708 lt_prog_compiler_pic='-fPIC'
8709 ;;
8710 esac
8711 ;;
8712
8713 interix[3-9]*)
8714 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8715 # Instead, we relocate shared libraries at runtime.
8716 ;;
8717
8718 msdosdjgpp*)
8719 # Just because we use GCC doesn't mean we suddenly get shared libraries
8720 # on systems that don't support them.
8721 lt_prog_compiler_can_build_shared=no
8722 enable_shared=no
8723 ;;
8724
8725 *nto* | *qnx*)
8726 # QNX uses GNU C++, but need to define -shared option too, otherwise
8727 # it will coredump.
8728 lt_prog_compiler_pic='-fPIC -shared'
8729 ;;
8730
8731 sysv4*MP*)
8732 if test -d /usr/nec; then
8733 lt_prog_compiler_pic=-Kconform_pic
8734 fi
8735 ;;
8736
8737 *)
8738 lt_prog_compiler_pic='-fPIC'
8739 ;;
8740 esac
8741
8742 case $cc_basename in
8743 nvcc*) # Cuda Compiler Driver 2.2
8744 lt_prog_compiler_wl='-Xlinker '
8745 if test -n "$lt_prog_compiler_pic"; then
8746 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8747 fi
8748 ;;
8749 esac
8750 else
8751 # PORTME Check for flag to pass linker flags through the system compiler.
8752 case $host_os in
8753 aix*)
8754 lt_prog_compiler_wl='-Wl,'
8755 if test ia64 = "$host_cpu"; then
8756 # AIX 5 now supports IA64 processor
8757 lt_prog_compiler_static='-Bstatic'
8758 else
8759 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8760 fi
8761 ;;
8762
8763 darwin* | rhapsody*)
8764 # PIC is the default on this platform
8765 # Common symbols not allowed in MH_DYLIB files
8766 lt_prog_compiler_pic='-fno-common'
8767 case $cc_basename in
8768 nagfor*)
8769 # NAG Fortran compiler
8770 lt_prog_compiler_wl='-Wl,-Wl,,'
8771 lt_prog_compiler_pic='-PIC'
8772 lt_prog_compiler_static='-Bstatic'
8773 ;;
8774 esac
8775 ;;
8776
8777 mingw* | cygwin* | pw32* | os2* | cegcc*)
8778 # This hack is so that the source file can tell whether it is being
8779 # built for inclusion in a dll (and should export symbols for example).
8780 lt_prog_compiler_pic='-DDLL_EXPORT'
8781 case $host_os in
8782 os2*)
8783 lt_prog_compiler_static='$wl-static'
8784 ;;
8785 esac
8786 ;;
8787
8788 hpux9* | hpux10* | hpux11*)
8789 lt_prog_compiler_wl='-Wl,'
8790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8791 # not for PA HP-UX.
8792 case $host_cpu in
8793 hppa*64*|ia64*)
8794 # +Z the default
8795 ;;
8796 *)
8797 lt_prog_compiler_pic='+Z'
8798 ;;
8799 esac
8800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8801 lt_prog_compiler_static='$wl-a ${wl}archive'
8802 ;;
8803
8804 irix5* | irix6* | nonstopux*)
8805 lt_prog_compiler_wl='-Wl,'
8806 # PIC (with -KPIC) is the default.
8807 lt_prog_compiler_static='-non_shared'
8808 ;;
8809
8810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8811 case $cc_basename in
8812 # old Intel for x86_64, which still supported -KPIC.
8813 ecc*)
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_pic='-KPIC'
8816 lt_prog_compiler_static='-static'
8817 ;;
8818 # icc used to be incompatible with GCC.
8819 # ICC 10 doesn't accept -KPIC any more.
8820 icc* | ifort*)
8821 lt_prog_compiler_wl='-Wl,'
8822 lt_prog_compiler_pic='-fPIC'
8823 lt_prog_compiler_static='-static'
8824 ;;
8825 # Lahey Fortran 8.1.
8826 lf95*)
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='--shared'
8829 lt_prog_compiler_static='--static'
8830 ;;
8831 nagfor*)
8832 # NAG Fortran compiler
8833 lt_prog_compiler_wl='-Wl,-Wl,,'
8834 lt_prog_compiler_pic='-PIC'
8835 lt_prog_compiler_static='-Bstatic'
8836 ;;
8837 tcc*)
8838 # Fabrice Bellard et al's Tiny C Compiler
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-fPIC'
8841 lt_prog_compiler_static='-static'
8842 ;;
8843 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8844 # Portland Group compilers (*not* the Pentium gcc compiler,
8845 # which looks to be a dead project)
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-fpic'
8848 lt_prog_compiler_static='-Bstatic'
8849 ;;
8850 ccc*)
8851 lt_prog_compiler_wl='-Wl,'
8852 # All Alpha code is PIC.
8853 lt_prog_compiler_static='-non_shared'
8854 ;;
8855 xl* | bgxl* | bgf* | mpixl*)
8856 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-qpic'
8859 lt_prog_compiler_static='-qstaticlink'
8860 ;;
8861 *)
8862 case `$CC -V 2>&1 | sed 5q` in
8863 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8864 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8867 lt_prog_compiler_wl=''
8868 ;;
8869 *Sun\ F* | *Sun*Fortran*)
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_wl='-Qoption ld '
8873 ;;
8874 *Sun\ C*)
8875 # Sun C 5.9
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8879 ;;
8880 *Intel*\ [CF]*Compiler*)
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-fPIC'
8883 lt_prog_compiler_static='-static'
8884 ;;
8885 *Portland\ Group*)
8886 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='-fpic'
8888 lt_prog_compiler_static='-Bstatic'
8889 ;;
8890 esac
8891 ;;
8892 esac
8893 ;;
8894
8895 newsos6)
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 ;;
8899
8900 *nto* | *qnx*)
8901 # QNX uses GNU C++, but need to define -shared option too, otherwise
8902 # it will coredump.
8903 lt_prog_compiler_pic='-fPIC -shared'
8904 ;;
8905
8906 osf3* | osf4* | osf5*)
8907 lt_prog_compiler_wl='-Wl,'
8908 # All OSF/1 code is PIC.
8909 lt_prog_compiler_static='-non_shared'
8910 ;;
8911
8912 rdos*)
8913 lt_prog_compiler_static='-non_shared'
8914 ;;
8915
8916 solaris*)
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 case $cc_basename in
8920 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8921 lt_prog_compiler_wl='-Qoption ld ';;
8922 *)
8923 lt_prog_compiler_wl='-Wl,';;
8924 esac
8925 ;;
8926
8927 sunos4*)
8928 lt_prog_compiler_wl='-Qoption ld '
8929 lt_prog_compiler_pic='-PIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 ;;
8932
8933 sysv4 | sysv4.2uw2* | sysv4.3*)
8934 lt_prog_compiler_wl='-Wl,'
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 ;;
8938
8939 sysv4*MP*)
8940 if test -d /usr/nec; then
8941 lt_prog_compiler_pic='-Kconform_pic'
8942 lt_prog_compiler_static='-Bstatic'
8943 fi
8944 ;;
8945
8946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8947 lt_prog_compiler_wl='-Wl,'
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
8950 ;;
8951
8952 unicos*)
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_can_build_shared=no
8955 ;;
8956
8957 uts4*)
8958 lt_prog_compiler_pic='-pic'
8959 lt_prog_compiler_static='-Bstatic'
8960 ;;
8961
8962 *)
8963 lt_prog_compiler_can_build_shared=no
8964 ;;
8965 esac
8966 fi
8967
8968 case $host_os in
8969 # For platforms that do not support PIC, -DPIC is meaningless:
8970 *djgpp*)
8971 lt_prog_compiler_pic=
8972 ;;
8973 *)
8974 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8975 ;;
8976 esac
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8979 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8980 if ${lt_cv_prog_compiler_pic+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8986 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8987 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8988
8989 #
8990 # Check to make sure the PIC flag actually works.
8991 #
8992 if test -n "$lt_prog_compiler_pic"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8994 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8995 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 lt_cv_prog_compiler_pic_works=no
8999 ac_outfile=conftest.$ac_objext
9000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9002 # Insert the option either (1) after the last *FLAGS variable, or
9003 # (2) before a word containing "conftest.", or (3) at the end.
9004 # Note that $ac_compile itself does not contain backslashes and begins
9005 # with a dollar sign (not a hyphen), so the echo should work correctly.
9006 # The option is referenced via a variable to avoid confusing sed.
9007 lt_compile=`echo "$ac_compile" | $SED \
9008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9010 -e 's:$: $lt_compiler_flag:'`
9011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9012 (eval "$lt_compile" 2>conftest.err)
9013 ac_status=$?
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 if (exit $ac_status) && test -s "$ac_outfile"; then
9017 # The compiler can only warn and ignore the option if not recognized
9018 # So say no if there are warnings other than the usual output.
9019 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9022 lt_cv_prog_compiler_pic_works=yes
9023 fi
9024 fi
9025 $RM conftest*
9026
9027 fi
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9029 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9030
9031 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9032 case $lt_prog_compiler_pic in
9033 "" | " "*) ;;
9034 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9035 esac
9036 else
9037 lt_prog_compiler_pic=
9038 lt_prog_compiler_can_build_shared=no
9039 fi
9040
9041 fi
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053 #
9054 # Check to make sure the static flag actually works.
9055 #
9056 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9058 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9059 if ${lt_cv_prog_compiler_static_works+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 lt_cv_prog_compiler_static_works=no
9063 save_LDFLAGS=$LDFLAGS
9064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9067 # The linker can only warn and ignore the option if not recognized
9068 # So say no if there are warnings
9069 if test -s conftest.err; then
9070 # Append any errors to the config.log.
9071 cat conftest.err 1>&5
9072 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9074 if diff conftest.exp conftest.er2 >/dev/null; then
9075 lt_cv_prog_compiler_static_works=yes
9076 fi
9077 else
9078 lt_cv_prog_compiler_static_works=yes
9079 fi
9080 fi
9081 $RM -r conftest*
9082 LDFLAGS=$save_LDFLAGS
9083
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9086 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9087
9088 if test yes = "$lt_cv_prog_compiler_static_works"; then
9089 :
9090 else
9091 lt_prog_compiler_static=
9092 fi
9093
9094
9095
9096
9097
9098
9099
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9101 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9102 if ${lt_cv_prog_compiler_c_o+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 lt_cv_prog_compiler_c_o=no
9106 $RM -r conftest 2>/dev/null
9107 mkdir conftest
9108 cd conftest
9109 mkdir out
9110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9111
9112 lt_compiler_flag="-o out/conftest2.$ac_objext"
9113 # Insert the option either (1) after the last *FLAGS variable, or
9114 # (2) before a word containing "conftest.", or (3) at the end.
9115 # Note that $ac_compile itself does not contain backslashes and begins
9116 # with a dollar sign (not a hyphen), so the echo should work correctly.
9117 lt_compile=`echo "$ac_compile" | $SED \
9118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9120 -e 's:$: $lt_compiler_flag:'`
9121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9122 (eval "$lt_compile" 2>out/conftest.err)
9123 ac_status=$?
9124 cat out/conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9127 then
9128 # The compiler can only warn and ignore the option if not recognized
9129 # So say no if there are warnings
9130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9133 lt_cv_prog_compiler_c_o=yes
9134 fi
9135 fi
9136 chmod u+w . 2>&5
9137 $RM conftest*
9138 # SGI C++ compiler will create directory out/ii_files/ for
9139 # template instantiation
9140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9141 $RM out/* && rmdir out
9142 cd ..
9143 $RM -r conftest
9144 $RM conftest*
9145
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9148 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9149
9150
9151
9152
9153
9154
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9156 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9157 if ${lt_cv_prog_compiler_c_o+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 lt_cv_prog_compiler_c_o=no
9161 $RM -r conftest 2>/dev/null
9162 mkdir conftest
9163 cd conftest
9164 mkdir out
9165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9166
9167 lt_compiler_flag="-o out/conftest2.$ac_objext"
9168 # Insert the option either (1) after the last *FLAGS variable, or
9169 # (2) before a word containing "conftest.", or (3) at the end.
9170 # Note that $ac_compile itself does not contain backslashes and begins
9171 # with a dollar sign (not a hyphen), so the echo should work correctly.
9172 lt_compile=`echo "$ac_compile" | $SED \
9173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9175 -e 's:$: $lt_compiler_flag:'`
9176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9177 (eval "$lt_compile" 2>out/conftest.err)
9178 ac_status=$?
9179 cat out/conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9182 then
9183 # The compiler can only warn and ignore the option if not recognized
9184 # So say no if there are warnings
9185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9188 lt_cv_prog_compiler_c_o=yes
9189 fi
9190 fi
9191 chmod u+w . 2>&5
9192 $RM conftest*
9193 # SGI C++ compiler will create directory out/ii_files/ for
9194 # template instantiation
9195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9196 $RM out/* && rmdir out
9197 cd ..
9198 $RM -r conftest
9199 $RM conftest*
9200
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9203 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9204
9205
9206
9207
9208 hard_links=nottested
9209 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9210 # do not overwrite the value of need_locks provided by the user
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9212 $as_echo_n "checking if we can lock with hard links... " >&6; }
9213 hard_links=yes
9214 $RM conftest*
9215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9216 touch conftest.a
9217 ln conftest.a conftest.b 2>&5 || hard_links=no
9218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9220 $as_echo "$hard_links" >&6; }
9221 if test no = "$hard_links"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9223 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9224 need_locks=warn
9225 fi
9226 else
9227 need_locks=no
9228 fi
9229
9230
9231
9232
9233
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9236 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9237
9238 runpath_var=
9239 allow_undefined_flag=
9240 always_export_symbols=no
9241 archive_cmds=
9242 archive_expsym_cmds=
9243 compiler_needs_object=no
9244 enable_shared_with_static_runtimes=no
9245 export_dynamic_flag_spec=
9246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9247 hardcode_automatic=no
9248 hardcode_direct=no
9249 hardcode_direct_absolute=no
9250 hardcode_libdir_flag_spec=
9251 hardcode_libdir_separator=
9252 hardcode_minus_L=no
9253 hardcode_shlibpath_var=unsupported
9254 inherit_rpath=no
9255 link_all_deplibs=unknown
9256 module_cmds=
9257 module_expsym_cmds=
9258 old_archive_from_new_cmds=
9259 old_archive_from_expsyms_cmds=
9260 thread_safe_flag_spec=
9261 whole_archive_flag_spec=
9262 # include_expsyms should be a list of space-separated symbols to be *always*
9263 # included in the symbol list
9264 include_expsyms=
9265 # exclude_expsyms can be an extended regexp of symbols to exclude
9266 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9267 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9268 # as well as any symbol that contains 'd'.
9269 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9271 # platforms (ab)use it in PIC code, but their linkers get confused if
9272 # the symbol is explicitly referenced. Since portable code cannot
9273 # rely on this symbol name, it's probably fine to never include it in
9274 # preloaded symbol tables.
9275 # Exclude shared library initialization/finalization symbols.
9276 extract_expsyms_cmds=
9277
9278 case $host_os in
9279 cygwin* | mingw* | pw32* | cegcc*)
9280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9281 # When not using gcc, we currently assume that we are using
9282 # Microsoft Visual C++.
9283 if test yes != "$GCC"; then
9284 with_gnu_ld=no
9285 fi
9286 ;;
9287 interix*)
9288 # we just hope/assume this is gcc and not c89 (= MSVC++)
9289 with_gnu_ld=yes
9290 ;;
9291 openbsd* | bitrig*)
9292 with_gnu_ld=no
9293 ;;
9294 linux* | k*bsd*-gnu | gnu*)
9295 link_all_deplibs=no
9296 ;;
9297 esac
9298
9299 ld_shlibs=yes
9300
9301 # On some targets, GNU ld is compatible enough with the native linker
9302 # that we're better off using the native interface for both.
9303 lt_use_gnu_ld_interface=no
9304 if test yes = "$with_gnu_ld"; then
9305 case $host_os in
9306 aix*)
9307 # The AIX port of GNU ld has always aspired to compatibility
9308 # with the native linker. However, as the warning in the GNU ld
9309 # block says, versions before 2.19.5* couldn't really create working
9310 # shared libraries, regardless of the interface used.
9311 case `$LD -v 2>&1` in
9312 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9313 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9314 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9315 *)
9316 lt_use_gnu_ld_interface=yes
9317 ;;
9318 esac
9319 ;;
9320 *)
9321 lt_use_gnu_ld_interface=yes
9322 ;;
9323 esac
9324 fi
9325
9326 if test yes = "$lt_use_gnu_ld_interface"; then
9327 # If archive_cmds runs LD, not CC, wlarc should be empty
9328 wlarc='$wl'
9329
9330 # Set some defaults for GNU ld with shared library support. These
9331 # are reset later if shared libraries are not supported. Putting them
9332 # here allows them to be overridden if necessary.
9333 runpath_var=LD_RUN_PATH
9334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9335 export_dynamic_flag_spec='$wl--export-dynamic'
9336 # ancient GNU ld didn't support --whole-archive et. al.
9337 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9338 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9339 else
9340 whole_archive_flag_spec=
9341 fi
9342 supports_anon_versioning=no
9343 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9344 *GNU\ gold*) supports_anon_versioning=yes ;;
9345 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9346 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9347 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9348 *\ 2.11.*) ;; # other 2.11 versions
9349 *) supports_anon_versioning=yes ;;
9350 esac
9351
9352 # See if GNU ld supports shared libraries.
9353 case $host_os in
9354 aix[3-9]*)
9355 # On AIX/PPC, the GNU linker is very broken
9356 if test ia64 != "$host_cpu"; then
9357 ld_shlibs=no
9358 cat <<_LT_EOF 1>&2
9359
9360 *** Warning: the GNU linker, at least up to release 2.19, is reported
9361 *** to be unable to reliably create shared libraries on AIX.
9362 *** Therefore, libtool is disabling shared libraries support. If you
9363 *** really care for shared libraries, you may want to install binutils
9364 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9365 *** You will then need to restart the configuration process.
9366
9367 _LT_EOF
9368 fi
9369 ;;
9370
9371 amigaos*)
9372 case $host_cpu in
9373 powerpc)
9374 # see comment about AmigaOS4 .so support
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9376 archive_expsym_cmds=''
9377 ;;
9378 m68k)
9379 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)'
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_minus_L=yes
9382 ;;
9383 esac
9384 ;;
9385
9386 beos*)
9387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9388 allow_undefined_flag=unsupported
9389 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9390 # support --undefined. This deserves some investigation. FIXME
9391 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9392 else
9393 ld_shlibs=no
9394 fi
9395 ;;
9396
9397 cygwin* | mingw* | pw32* | cegcc*)
9398 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9399 # as there is no search path for DLLs.
9400 hardcode_libdir_flag_spec='-L$libdir'
9401 export_dynamic_flag_spec='$wl--export-all-symbols'
9402 allow_undefined_flag=unsupported
9403 always_export_symbols=no
9404 enable_shared_with_static_runtimes=yes
9405 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'
9406 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9407
9408 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9410 # If the export-symbols file already is a .def file, use it as
9411 # is; otherwise, prepend EXPORTS...
9412 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9413 cp $export_symbols $output_objdir/$soname.def;
9414 else
9415 echo EXPORTS > $output_objdir/$soname.def;
9416 cat $export_symbols >> $output_objdir/$soname.def;
9417 fi~
9418 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9419 else
9420 ld_shlibs=no
9421 fi
9422 ;;
9423
9424 haiku*)
9425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9426 link_all_deplibs=yes
9427 ;;
9428
9429 os2*)
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_minus_L=yes
9432 allow_undefined_flag=unsupported
9433 shrext_cmds=.dll
9434 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9435 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9436 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9437 $ECHO EXPORTS >> $output_objdir/$libname.def~
9438 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9439 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9440 emximp -o $lib $output_objdir/$libname.def'
9441 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9442 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9443 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9444 $ECHO EXPORTS >> $output_objdir/$libname.def~
9445 prefix_cmds="$SED"~
9446 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9447 prefix_cmds="$prefix_cmds -e 1d";
9448 fi~
9449 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9450 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9451 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9452 emximp -o $lib $output_objdir/$libname.def'
9453 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9454 enable_shared_with_static_runtimes=yes
9455 ;;
9456
9457 interix[3-9]*)
9458 hardcode_direct=no
9459 hardcode_shlibpath_var=no
9460 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9461 export_dynamic_flag_spec='$wl-E'
9462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9463 # Instead, shared libraries are loaded at an image base (0x10000000 by
9464 # default) and relocated if they conflict, which is a slow very memory
9465 # consuming and fragmenting process. To avoid this, we pick a random,
9466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9467 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9468 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9469 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'
9470 ;;
9471
9472 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9473 tmp_diet=no
9474 if test linux-dietlibc = "$host_os"; then
9475 case $cc_basename in
9476 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9477 esac
9478 fi
9479 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9480 && test no = "$tmp_diet"
9481 then
9482 tmp_addflag=' $pic_flag'
9483 tmp_sharedflag='-shared'
9484 case $cc_basename,$host_cpu in
9485 pgcc*) # Portland Group C compiler
9486 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'
9487 tmp_addflag=' $pic_flag'
9488 ;;
9489 pgf77* | pgf90* | pgf95* | pgfortran*)
9490 # Portland Group f77 and f90 compilers
9491 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'
9492 tmp_addflag=' $pic_flag -Mnomain' ;;
9493 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9494 tmp_addflag=' -i_dynamic' ;;
9495 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9496 tmp_addflag=' -i_dynamic -nofor_main' ;;
9497 ifc* | ifort*) # Intel Fortran compiler
9498 tmp_addflag=' -nofor_main' ;;
9499 lf95*) # Lahey Fortran 8.1
9500 whole_archive_flag_spec=
9501 tmp_sharedflag='--shared' ;;
9502 nagfor*) # NAGFOR 5.3
9503 tmp_sharedflag='-Wl,-shared' ;;
9504 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9505 tmp_sharedflag='-qmkshrobj'
9506 tmp_addflag= ;;
9507 nvcc*) # Cuda Compiler Driver 2.2
9508 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'
9509 compiler_needs_object=yes
9510 ;;
9511 esac
9512 case `$CC -V 2>&1 | sed 5q` in
9513 *Sun\ C*) # Sun C 5.9
9514 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'
9515 compiler_needs_object=yes
9516 tmp_sharedflag='-G' ;;
9517 *Sun\ F*) # Sun Fortran 8.3
9518 tmp_sharedflag='-G' ;;
9519 esac
9520 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9521
9522 if test yes = "$supports_anon_versioning"; then
9523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9525 echo "local: *; };" >> $output_objdir/$libname.ver~
9526 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9527 fi
9528
9529 case $cc_basename in
9530 tcc*)
9531 export_dynamic_flag_spec='-rdynamic'
9532 ;;
9533 xlf* | bgf* | bgxlf* | mpixlf*)
9534 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9535 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9537 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9538 if test yes = "$supports_anon_versioning"; then
9539 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9541 echo "local: *; };" >> $output_objdir/$libname.ver~
9542 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9543 fi
9544 ;;
9545 esac
9546 else
9547 ld_shlibs=no
9548 fi
9549 ;;
9550
9551 netbsd* | netbsdelf*-gnu)
9552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9553 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9554 wlarc=
9555 else
9556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9558 fi
9559 ;;
9560
9561 solaris*)
9562 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9563 ld_shlibs=no
9564 cat <<_LT_EOF 1>&2
9565
9566 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9567 *** create shared libraries on Solaris systems. Therefore, libtool
9568 *** is disabling shared libraries support. We urge you to upgrade GNU
9569 *** binutils to release 2.9.1 or newer. Another option is to modify
9570 *** your PATH or compiler configuration so that the native linker is
9571 *** used, and then restart.
9572
9573 _LT_EOF
9574 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9576 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9577 else
9578 ld_shlibs=no
9579 fi
9580 ;;
9581
9582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9583 case `$LD -v 2>&1` in
9584 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9585 ld_shlibs=no
9586 cat <<_LT_EOF 1>&2
9587
9588 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9589 *** reliably create shared libraries on SCO systems. Therefore, libtool
9590 *** is disabling shared libraries support. We urge you to upgrade GNU
9591 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9592 *** your PATH or compiler configuration so that the native linker is
9593 *** used, and then restart.
9594
9595 _LT_EOF
9596 ;;
9597 *)
9598 # For security reasons, it is highly recommended that you always
9599 # use absolute paths for naming shared libraries, and exclude the
9600 # DT_RUNPATH tag from executables and libraries. But doing so
9601 # requires that you compile everything twice, which is a pain.
9602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9603 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9606 else
9607 ld_shlibs=no
9608 fi
9609 ;;
9610 esac
9611 ;;
9612
9613 sunos4*)
9614 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9615 wlarc=
9616 hardcode_direct=yes
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 *)
9621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9624 else
9625 ld_shlibs=no
9626 fi
9627 ;;
9628 esac
9629
9630 if test no = "$ld_shlibs"; then
9631 runpath_var=
9632 hardcode_libdir_flag_spec=
9633 export_dynamic_flag_spec=
9634 whole_archive_flag_spec=
9635 fi
9636 else
9637 # PORTME fill in a description of your system's linker (not GNU ld)
9638 case $host_os in
9639 aix3*)
9640 allow_undefined_flag=unsupported
9641 always_export_symbols=yes
9642 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'
9643 # Note: this linker hardcodes the directories in LIBPATH if there
9644 # are no directories specified by -L.
9645 hardcode_minus_L=yes
9646 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9647 # Neither direct hardcoding nor static linking is supported with a
9648 # broken collect2.
9649 hardcode_direct=unsupported
9650 fi
9651 ;;
9652
9653 aix[4-9]*)
9654 if test ia64 = "$host_cpu"; then
9655 # On IA64, the linker does run time linking by default, so we don't
9656 # have to do anything special.
9657 aix_use_runtimelinking=no
9658 exp_sym_flag='-Bexport'
9659 no_entry_flag=
9660 else
9661 # If we're using GNU nm, then we don't want the "-C" option.
9662 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9663 # Without the "-l" option, or with the "-B" option, AIX nm treats
9664 # weak defined symbols like other global defined symbols, whereas
9665 # GNU nm marks them as "W".
9666 # While the 'weak' keyword is ignored in the Export File, we need
9667 # it in the Import File for the 'aix-soname' feature, so we have
9668 # to replace the "-B" option with "-P" for AIX nm.
9669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9670 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'
9671 else
9672 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9673 fi
9674 aix_use_runtimelinking=no
9675
9676 # Test if we are trying to use run time linking or normal
9677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9678 # have runtime linking enabled, and use it for executables.
9679 # For shared libraries, we enable/disable runtime linking
9680 # depending on the kind of the shared library created -
9681 # when "with_aix_soname,aix_use_runtimelinking" is:
9682 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9683 # "aix,yes" lib.so shared, rtl:yes, for executables
9684 # lib.a static archive
9685 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9686 # lib.a(lib.so.V) shared, rtl:no, for executables
9687 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9688 # lib.a(lib.so.V) shared, rtl:no
9689 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9690 # lib.a static archive
9691 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9692 for ld_flag in $LDFLAGS; do
9693 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9694 aix_use_runtimelinking=yes
9695 break
9696 fi
9697 done
9698 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9699 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9700 # so we don't have lib.a shared libs to link our executables.
9701 # We have to force runtime linking in this case.
9702 aix_use_runtimelinking=yes
9703 LDFLAGS="$LDFLAGS -Wl,-brtl"
9704 fi
9705 ;;
9706 esac
9707
9708 exp_sym_flag='-bexport'
9709 no_entry_flag='-bnoentry'
9710 fi
9711
9712 # When large executables or shared objects are built, AIX ld can
9713 # have problems creating the table of contents. If linking a library
9714 # or program results in "error TOC overflow" add -mminimal-toc to
9715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9717
9718 archive_cmds=''
9719 hardcode_direct=yes
9720 hardcode_direct_absolute=yes
9721 hardcode_libdir_separator=':'
9722 link_all_deplibs=yes
9723 file_list_spec='$wl-f,'
9724 case $with_aix_soname,$aix_use_runtimelinking in
9725 aix,*) ;; # traditional, no import file
9726 svr4,* | *,yes) # use import file
9727 # The Import File defines what to hardcode.
9728 hardcode_direct=no
9729 hardcode_direct_absolute=no
9730 ;;
9731 esac
9732
9733 if test yes = "$GCC"; then
9734 case $host_os in aix4.[012]|aix4.[012].*)
9735 # We only want to do this on AIX 4.2 and lower, the check
9736 # below for broken collect2 doesn't work under 4.3+
9737 collect2name=`$CC -print-prog-name=collect2`
9738 if test -f "$collect2name" &&
9739 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9740 then
9741 # We have reworked collect2
9742 :
9743 else
9744 # We have old collect2
9745 hardcode_direct=unsupported
9746 # It fails to find uninstalled libraries when the uninstalled
9747 # path is not listed in the libpath. Setting hardcode_minus_L
9748 # to unsupported forces relinking
9749 hardcode_minus_L=yes
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_libdir_separator=
9752 fi
9753 ;;
9754 esac
9755 shared_flag='-shared'
9756 if test yes = "$aix_use_runtimelinking"; then
9757 shared_flag="$shared_flag "'$wl-G'
9758 fi
9759 # Need to ensure runtime linking is disabled for the traditional
9760 # shared library, or the linker may eventually find shared libraries
9761 # /with/ Import File - we do not want to mix them.
9762 shared_flag_aix='-shared'
9763 shared_flag_svr4='-shared $wl-G'
9764 else
9765 # not using gcc
9766 if test ia64 = "$host_cpu"; then
9767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9768 # chokes on -Wl,-G. The following line is correct:
9769 shared_flag='-G'
9770 else
9771 if test yes = "$aix_use_runtimelinking"; then
9772 shared_flag='$wl-G'
9773 else
9774 shared_flag='$wl-bM:SRE'
9775 fi
9776 shared_flag_aix='$wl-bM:SRE'
9777 shared_flag_svr4='$wl-G'
9778 fi
9779 fi
9780
9781 export_dynamic_flag_spec='$wl-bexpall'
9782 # It seems that -bexpall does not export symbols beginning with
9783 # underscore (_), so it is better to generate a list of symbols to export.
9784 always_export_symbols=yes
9785 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9786 # Warning - without using the other runtime loading flags (-brtl),
9787 # -berok will link without error, but may produce a broken library.
9788 allow_undefined_flag='-berok'
9789 # Determine the default libpath from the value encoded in an
9790 # empty executable.
9791 if test set = "${lt_cv_aix_libpath+set}"; then
9792 aix_libpath=$lt_cv_aix_libpath
9793 else
9794 if ${lt_cv_aix_libpath_+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799
9800 int
9801 main ()
9802 {
9803
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9809
9810 lt_aix_libpath_sed='
9811 /Import File Strings/,/^$/ {
9812 /^0/ {
9813 s/^0 *\([^ ]*\) *$/\1/
9814 p
9815 }
9816 }'
9817 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9818 # Check for a 64-bit object if we didn't find anything.
9819 if test -z "$lt_cv_aix_libpath_"; then
9820 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9821 fi
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 if test -z "$lt_cv_aix_libpath_"; then
9826 lt_cv_aix_libpath_=/usr/lib:/lib
9827 fi
9828
9829 fi
9830
9831 aix_libpath=$lt_cv_aix_libpath_
9832 fi
9833
9834 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9835 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
9836 else
9837 if test ia64 = "$host_cpu"; then
9838 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9839 allow_undefined_flag="-z nodefs"
9840 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"
9841 else
9842 # Determine the default libpath from the value encoded in an
9843 # empty executable.
9844 if test set = "${lt_cv_aix_libpath+set}"; then
9845 aix_libpath=$lt_cv_aix_libpath
9846 else
9847 if ${lt_cv_aix_libpath_+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852
9853 int
9854 main ()
9855 {
9856
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9862
9863 lt_aix_libpath_sed='
9864 /Import File Strings/,/^$/ {
9865 /^0/ {
9866 s/^0 *\([^ ]*\) *$/\1/
9867 p
9868 }
9869 }'
9870 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871 # Check for a 64-bit object if we didn't find anything.
9872 if test -z "$lt_cv_aix_libpath_"; then
9873 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874 fi
9875 fi
9876 rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878 if test -z "$lt_cv_aix_libpath_"; then
9879 lt_cv_aix_libpath_=/usr/lib:/lib
9880 fi
9881
9882 fi
9883
9884 aix_libpath=$lt_cv_aix_libpath_
9885 fi
9886
9887 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9888 # Warning - without using the other run time loading flags,
9889 # -berok will link without error, but may produce a broken library.
9890 no_undefined_flag=' $wl-bernotok'
9891 allow_undefined_flag=' $wl-berok'
9892 if test yes = "$with_gnu_ld"; then
9893 # We only use this code for GNU lds that support --whole-archive.
9894 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9895 else
9896 # Exported symbols can be pulled into shared objects from archives
9897 whole_archive_flag_spec='$convenience'
9898 fi
9899 archive_cmds_need_lc=yes
9900 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9901 # -brtl affects multiple linker settings, -berok does not and is overridden later
9902 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9903 if test svr4 != "$with_aix_soname"; then
9904 # This is similar to how AIX traditionally builds its shared libraries.
9905 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'
9906 fi
9907 if test aix != "$with_aix_soname"; then
9908 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'
9909 else
9910 # used by -dlpreopen to get the symbols
9911 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9912 fi
9913 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9914 fi
9915 fi
9916 ;;
9917
9918 amigaos*)
9919 case $host_cpu in
9920 powerpc)
9921 # see comment about AmigaOS4 .so support
9922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9923 archive_expsym_cmds=''
9924 ;;
9925 m68k)
9926 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)'
9927 hardcode_libdir_flag_spec='-L$libdir'
9928 hardcode_minus_L=yes
9929 ;;
9930 esac
9931 ;;
9932
9933 bsdi[45]*)
9934 export_dynamic_flag_spec=-rdynamic
9935 ;;
9936
9937 cygwin* | mingw* | pw32* | cegcc*)
9938 # When not using gcc, we currently assume that we are using
9939 # Microsoft Visual C++.
9940 # hardcode_libdir_flag_spec is actually meaningless, as there is
9941 # no search path for DLLs.
9942 case $cc_basename in
9943 cl*)
9944 # Native MSVC
9945 hardcode_libdir_flag_spec=' '
9946 allow_undefined_flag=unsupported
9947 always_export_symbols=yes
9948 file_list_spec='@'
9949 # Tell ltmain to make .lib files, not .a files.
9950 libext=lib
9951 # Tell ltmain to make .dll files, not .so files.
9952 shrext_cmds=.dll
9953 # FIXME: Setting linknames here is a bad hack.
9954 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9955 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9956 cp "$export_symbols" "$output_objdir/$soname.def";
9957 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9958 else
9959 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9960 fi~
9961 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9962 linknames='
9963 # The linker will not automatically build a static lib if we build a DLL.
9964 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9965 enable_shared_with_static_runtimes=yes
9966 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9968 # Don't use ranlib
9969 old_postinstall_cmds='chmod 644 $oldlib'
9970 postlink_cmds='lt_outputfile="@OUTPUT@"~
9971 lt_tool_outputfile="@TOOL_OUTPUT@"~
9972 case $lt_outputfile in
9973 *.exe|*.EXE) ;;
9974 *)
9975 lt_outputfile=$lt_outputfile.exe
9976 lt_tool_outputfile=$lt_tool_outputfile.exe
9977 ;;
9978 esac~
9979 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9980 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9981 $RM "$lt_outputfile.manifest";
9982 fi'
9983 ;;
9984 *)
9985 # Assume MSVC wrapper
9986 hardcode_libdir_flag_spec=' '
9987 allow_undefined_flag=unsupported
9988 # Tell ltmain to make .lib files, not .a files.
9989 libext=lib
9990 # Tell ltmain to make .dll files, not .so files.
9991 shrext_cmds=.dll
9992 # FIXME: Setting linknames here is a bad hack.
9993 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9994 # The linker will automatically build a .lib file if we build a DLL.
9995 old_archive_from_new_cmds='true'
9996 # FIXME: Should let the user specify the lib program.
9997 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9998 enable_shared_with_static_runtimes=yes
9999 ;;
10000 esac
10001 ;;
10002
10003 darwin* | rhapsody*)
10004
10005
10006 archive_cmds_need_lc=no
10007 hardcode_direct=no
10008 hardcode_automatic=yes
10009 hardcode_shlibpath_var=unsupported
10010 if test yes = "$lt_cv_ld_force_load"; then
10011 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\"`'
10012
10013 else
10014 whole_archive_flag_spec=''
10015 fi
10016 link_all_deplibs=yes
10017 allow_undefined_flag=$_lt_dar_allow_undefined
10018 case $cc_basename in
10019 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10020 *) _lt_dar_can_shared=$GCC ;;
10021 esac
10022 if test yes = "$_lt_dar_can_shared"; then
10023 output_verbose_link_cmd=func_echo_all
10024 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10025 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10026 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"
10027 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"
10028
10029 else
10030 ld_shlibs=no
10031 fi
10032
10033 ;;
10034
10035 dgux*)
10036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_libdir_flag_spec='-L$libdir'
10038 hardcode_shlibpath_var=no
10039 ;;
10040
10041 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10042 # support. Future versions do this automatically, but an explicit c++rt0.o
10043 # does not break anything, and helps significantly (at the cost of a little
10044 # extra space).
10045 freebsd2.2*)
10046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10050 ;;
10051
10052 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10053 freebsd2.*)
10054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_direct=yes
10056 hardcode_minus_L=yes
10057 hardcode_shlibpath_var=no
10058 ;;
10059
10060 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10061 freebsd* | dragonfly*)
10062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10063 hardcode_libdir_flag_spec='-R$libdir'
10064 hardcode_direct=yes
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 hpux9*)
10069 if test yes = "$GCC"; then
10070 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'
10071 else
10072 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'
10073 fi
10074 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10075 hardcode_libdir_separator=:
10076 hardcode_direct=yes
10077
10078 # hardcode_minus_L: Not really in the search PATH,
10079 # but as the default location of the library.
10080 hardcode_minus_L=yes
10081 export_dynamic_flag_spec='$wl-E'
10082 ;;
10083
10084 hpux10*)
10085 if test yes,no = "$GCC,$with_gnu_ld"; then
10086 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10087 else
10088 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10089 fi
10090 if test no = "$with_gnu_ld"; then
10091 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10092 hardcode_libdir_separator=:
10093 hardcode_direct=yes
10094 hardcode_direct_absolute=yes
10095 export_dynamic_flag_spec='$wl-E'
10096 # hardcode_minus_L: Not really in the search PATH,
10097 # but as the default location of the library.
10098 hardcode_minus_L=yes
10099 fi
10100 ;;
10101
10102 hpux11*)
10103 if test yes,no = "$GCC,$with_gnu_ld"; then
10104 case $host_cpu in
10105 hppa*64*)
10106 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 ;;
10108 ia64*)
10109 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10110 ;;
10111 *)
10112 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10113 ;;
10114 esac
10115 else
10116 case $host_cpu in
10117 hppa*64*)
10118 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 ;;
10120 ia64*)
10121 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10122 ;;
10123 *)
10124
10125 # Older versions of the 11.00 compiler do not understand -b yet
10126 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10128 $as_echo_n "checking if $CC understands -b... " >&6; }
10129 if ${lt_cv_prog_compiler__b+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 lt_cv_prog_compiler__b=no
10133 save_LDFLAGS=$LDFLAGS
10134 LDFLAGS="$LDFLAGS -b"
10135 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10136 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10137 # The linker can only warn and ignore the option if not recognized
10138 # So say no if there are warnings
10139 if test -s conftest.err; then
10140 # Append any errors to the config.log.
10141 cat conftest.err 1>&5
10142 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10144 if diff conftest.exp conftest.er2 >/dev/null; then
10145 lt_cv_prog_compiler__b=yes
10146 fi
10147 else
10148 lt_cv_prog_compiler__b=yes
10149 fi
10150 fi
10151 $RM -r conftest*
10152 LDFLAGS=$save_LDFLAGS
10153
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10156 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10157
10158 if test yes = "$lt_cv_prog_compiler__b"; then
10159 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10160 else
10161 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10162 fi
10163
10164 ;;
10165 esac
10166 fi
10167 if test no = "$with_gnu_ld"; then
10168 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10169 hardcode_libdir_separator=:
10170
10171 case $host_cpu in
10172 hppa*64*|ia64*)
10173 hardcode_direct=no
10174 hardcode_shlibpath_var=no
10175 ;;
10176 *)
10177 hardcode_direct=yes
10178 hardcode_direct_absolute=yes
10179 export_dynamic_flag_spec='$wl-E'
10180
10181 # hardcode_minus_L: Not really in the search PATH,
10182 # but as the default location of the library.
10183 hardcode_minus_L=yes
10184 ;;
10185 esac
10186 fi
10187 ;;
10188
10189 irix5* | irix6* | nonstopux*)
10190 if test yes = "$GCC"; then
10191 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'
10192 # Try to use the -exported_symbol ld option, if it does not
10193 # work, assume that -exports_file does not work either and
10194 # implicitly export all symbols.
10195 # This should be the same for all languages, so no per-tag cache variable.
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10197 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10198 if ${lt_cv_irix_exported_symbol+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 save_LDFLAGS=$LDFLAGS
10202 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 int foo (void) { return 0; }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 lt_cv_irix_exported_symbol=yes
10209 else
10210 lt_cv_irix_exported_symbol=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LDFLAGS=$save_LDFLAGS
10215 fi
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10217 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10218 if test yes = "$lt_cv_irix_exported_symbol"; then
10219 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'
10220 fi
10221 link_all_deplibs=no
10222 else
10223 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'
10224 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'
10225 fi
10226 archive_cmds_need_lc='no'
10227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10228 hardcode_libdir_separator=:
10229 inherit_rpath=yes
10230 link_all_deplibs=yes
10231 ;;
10232
10233 linux*)
10234 case $cc_basename in
10235 tcc*)
10236 # Fabrice Bellard et al's Tiny C Compiler
10237 ld_shlibs=yes
10238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10239 ;;
10240 esac
10241 ;;
10242
10243 netbsd* | netbsdelf*-gnu)
10244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10246 else
10247 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10248 fi
10249 hardcode_libdir_flag_spec='-R$libdir'
10250 hardcode_direct=yes
10251 hardcode_shlibpath_var=no
10252 ;;
10253
10254 newsos6)
10255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256 hardcode_direct=yes
10257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10258 hardcode_libdir_separator=:
10259 hardcode_shlibpath_var=no
10260 ;;
10261
10262 *nto* | *qnx*)
10263 ;;
10264
10265 openbsd* | bitrig*)
10266 if test -f /usr/libexec/ld.so; then
10267 hardcode_direct=yes
10268 hardcode_shlibpath_var=no
10269 hardcode_direct_absolute=yes
10270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10273 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10274 export_dynamic_flag_spec='$wl-E'
10275 else
10276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10277 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10278 fi
10279 else
10280 ld_shlibs=no
10281 fi
10282 ;;
10283
10284 os2*)
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_minus_L=yes
10287 allow_undefined_flag=unsupported
10288 shrext_cmds=.dll
10289 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10290 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10291 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10292 $ECHO EXPORTS >> $output_objdir/$libname.def~
10293 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10294 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10295 emximp -o $lib $output_objdir/$libname.def'
10296 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10297 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10298 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10299 $ECHO EXPORTS >> $output_objdir/$libname.def~
10300 prefix_cmds="$SED"~
10301 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10302 prefix_cmds="$prefix_cmds -e 1d";
10303 fi~
10304 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10305 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10306 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10307 emximp -o $lib $output_objdir/$libname.def'
10308 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10309 enable_shared_with_static_runtimes=yes
10310 ;;
10311
10312 osf3*)
10313 if test yes = "$GCC"; then
10314 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10315 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'
10316 else
10317 allow_undefined_flag=' -expect_unresolved \*'
10318 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'
10319 fi
10320 archive_cmds_need_lc='no'
10321 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10322 hardcode_libdir_separator=:
10323 ;;
10324
10325 osf4* | osf5*) # as osf3* with the addition of -msym flag
10326 if test yes = "$GCC"; then
10327 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10328 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'
10329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10330 else
10331 allow_undefined_flag=' -expect_unresolved \*'
10332 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'
10333 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~
10334 $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'
10335
10336 # Both c and cxx compiler support -rpath directly
10337 hardcode_libdir_flag_spec='-rpath $libdir'
10338 fi
10339 archive_cmds_need_lc='no'
10340 hardcode_libdir_separator=:
10341 ;;
10342
10343 solaris*)
10344 no_undefined_flag=' -z defs'
10345 if test yes = "$GCC"; then
10346 wlarc='$wl'
10347 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10349 $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'
10350 else
10351 case `$CC -V 2>&1` in
10352 *"Compilers 5.0"*)
10353 wlarc=''
10354 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10356 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10357 ;;
10358 *)
10359 wlarc='$wl'
10360 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10362 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10363 ;;
10364 esac
10365 fi
10366 hardcode_libdir_flag_spec='-R$libdir'
10367 hardcode_shlibpath_var=no
10368 case $host_os in
10369 solaris2.[0-5] | solaris2.[0-5].*) ;;
10370 *)
10371 # The compiler driver will combine and reorder linker options,
10372 # but understands '-z linker_flag'. GCC discards it without '$wl',
10373 # but is careful enough not to reorder.
10374 # Supported since Solaris 2.6 (maybe 2.5.1?)
10375 if test yes = "$GCC"; then
10376 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10377 else
10378 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10379 fi
10380 ;;
10381 esac
10382 link_all_deplibs=yes
10383 ;;
10384
10385 sunos4*)
10386 if test sequent = "$host_vendor"; then
10387 # Use $CC to link under sequent, because it throws in some extra .o
10388 # files that make .init and .fini sections work.
10389 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10390 else
10391 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10392 fi
10393 hardcode_libdir_flag_spec='-L$libdir'
10394 hardcode_direct=yes
10395 hardcode_minus_L=yes
10396 hardcode_shlibpath_var=no
10397 ;;
10398
10399 sysv4)
10400 case $host_vendor in
10401 sni)
10402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403 hardcode_direct=yes # is this really true???
10404 ;;
10405 siemens)
10406 ## LD is ld it makes a PLAMLIB
10407 ## CC just makes a GrossModule.
10408 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10409 reload_cmds='$CC -r -o $output$reload_objs'
10410 hardcode_direct=no
10411 ;;
10412 motorola)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10415 ;;
10416 esac
10417 runpath_var='LD_RUN_PATH'
10418 hardcode_shlibpath_var=no
10419 ;;
10420
10421 sysv4.3*)
10422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10423 hardcode_shlibpath_var=no
10424 export_dynamic_flag_spec='-Bexport'
10425 ;;
10426
10427 sysv4*MP*)
10428 if test -d /usr/nec; then
10429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430 hardcode_shlibpath_var=no
10431 runpath_var=LD_RUN_PATH
10432 hardcode_runpath_var=yes
10433 ld_shlibs=yes
10434 fi
10435 ;;
10436
10437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10438 no_undefined_flag='$wl-z,text'
10439 archive_cmds_need_lc=no
10440 hardcode_shlibpath_var=no
10441 runpath_var='LD_RUN_PATH'
10442
10443 if test yes = "$GCC"; then
10444 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 else
10447 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 fi
10450 ;;
10451
10452 sysv5* | sco3.2v5* | sco5v6*)
10453 # Note: We CANNOT use -z defs as we might desire, because we do not
10454 # link with -lc, and that would cause any symbols used from libc to
10455 # always be unresolved, which means just about no library would
10456 # ever link correctly. If we're not using GNU ld we use -z text
10457 # though, which does catch some bad symbols but isn't as heavy-handed
10458 # as -z defs.
10459 no_undefined_flag='$wl-z,text'
10460 allow_undefined_flag='$wl-z,nodefs'
10461 archive_cmds_need_lc=no
10462 hardcode_shlibpath_var=no
10463 hardcode_libdir_flag_spec='$wl-R,$libdir'
10464 hardcode_libdir_separator=':'
10465 link_all_deplibs=yes
10466 export_dynamic_flag_spec='$wl-Bexport'
10467 runpath_var='LD_RUN_PATH'
10468
10469 if test yes = "$GCC"; then
10470 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472 else
10473 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 fi
10476 ;;
10477
10478 uts4*)
10479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480 hardcode_libdir_flag_spec='-L$libdir'
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 *)
10485 ld_shlibs=no
10486 ;;
10487 esac
10488
10489 if test sni = "$host_vendor"; then
10490 case $host in
10491 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10492 export_dynamic_flag_spec='$wl-Blargedynsym'
10493 ;;
10494 esac
10495 fi
10496 fi
10497
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10499 $as_echo "$ld_shlibs" >&6; }
10500 test no = "$ld_shlibs" && can_build_shared=no
10501
10502 with_gnu_ld=$with_gnu_ld
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518 #
10519 # Do we need to explicitly link libc?
10520 #
10521 case "x$archive_cmds_need_lc" in
10522 x|xyes)
10523 # Assume -lc should be added
10524 archive_cmds_need_lc=yes
10525
10526 if test yes,yes = "$GCC,$enable_shared"; then
10527 case $archive_cmds in
10528 *'~'*)
10529 # FIXME: we may have to deal with multi-command sequences.
10530 ;;
10531 '$CC '*)
10532 # Test whether the compiler implicitly links with -lc since on some
10533 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10534 # to ld, don't add -lc before -lgcc.
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10536 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10537 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 $RM conftest*
10541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10542
10543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10544 (eval $ac_compile) 2>&5
10545 ac_status=$?
10546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10547 test $ac_status = 0; } 2>conftest.err; then
10548 soname=conftest
10549 lib=conftest
10550 libobjs=conftest.$ac_objext
10551 deplibs=
10552 wl=$lt_prog_compiler_wl
10553 pic_flag=$lt_prog_compiler_pic
10554 compiler_flags=-v
10555 linker_flags=-v
10556 verstring=
10557 output_objdir=.
10558 libname=conftest
10559 lt_save_allow_undefined_flag=$allow_undefined_flag
10560 allow_undefined_flag=
10561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10562 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10563 ac_status=$?
10564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10565 test $ac_status = 0; }
10566 then
10567 lt_cv_archive_cmds_need_lc=no
10568 else
10569 lt_cv_archive_cmds_need_lc=yes
10570 fi
10571 allow_undefined_flag=$lt_save_allow_undefined_flag
10572 else
10573 cat conftest.err 1>&5
10574 fi
10575 $RM conftest*
10576
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10579 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10580 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10581 ;;
10582 esac
10583 fi
10584 ;;
10585 esac
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10739 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10740
10741 if test yes = "$GCC"; then
10742 case $host_os in
10743 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10744 *) lt_awk_arg='/^libraries:/' ;;
10745 esac
10746 case $host_os in
10747 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10748 *) lt_sed_strip_eq='s|=/|/|g' ;;
10749 esac
10750 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10751 case $lt_search_path_spec in
10752 *\;*)
10753 # if the path contains ";" then we assume it to be the separator
10754 # otherwise default to the standard path separator (i.e. ":") - it is
10755 # assumed that no part of a normal pathname contains ";" but that should
10756 # okay in the real world where ";" in dirpaths is itself problematic.
10757 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10758 ;;
10759 *)
10760 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10761 ;;
10762 esac
10763 # Ok, now we have the path, separated by spaces, we can step through it
10764 # and add multilib dir if necessary...
10765 lt_tmp_lt_search_path_spec=
10766 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10767 # ...but if some path component already ends with the multilib dir we assume
10768 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10769 case "$lt_multi_os_dir; $lt_search_path_spec " in
10770 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10771 lt_multi_os_dir=
10772 ;;
10773 esac
10774 for lt_sys_path in $lt_search_path_spec; do
10775 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10776 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10777 elif test -n "$lt_multi_os_dir"; then
10778 test -d "$lt_sys_path" && \
10779 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10780 fi
10781 done
10782 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10783 BEGIN {RS = " "; FS = "/|\n";} {
10784 lt_foo = "";
10785 lt_count = 0;
10786 for (lt_i = NF; lt_i > 0; lt_i--) {
10787 if ($lt_i != "" && $lt_i != ".") {
10788 if ($lt_i == "..") {
10789 lt_count++;
10790 } else {
10791 if (lt_count == 0) {
10792 lt_foo = "/" $lt_i lt_foo;
10793 } else {
10794 lt_count--;
10795 }
10796 }
10797 }
10798 }
10799 if (lt_foo != "") { lt_freq[lt_foo]++; }
10800 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10801 }'`
10802 # AWK program above erroneously prepends '/' to C:/dos/paths
10803 # for these hosts.
10804 case $host_os in
10805 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10806 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10807 esac
10808 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10809 else
10810 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10811 fi
10812 library_names_spec=
10813 libname_spec='lib$name'
10814 soname_spec=
10815 shrext_cmds=.so
10816 postinstall_cmds=
10817 postuninstall_cmds=
10818 finish_cmds=
10819 finish_eval=
10820 shlibpath_var=
10821 shlibpath_overrides_runpath=unknown
10822 version_type=none
10823 dynamic_linker="$host_os ld.so"
10824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10825 need_lib_prefix=unknown
10826 hardcode_into_libs=no
10827
10828 # when you set need_version to no, make sure it does not cause -set_version
10829 # flags to be left without arguments
10830 need_version=unknown
10831
10832
10833
10834 case $host_os in
10835 aix3*)
10836 version_type=linux # correct to gnu/linux during the next big refactor
10837 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10838 shlibpath_var=LIBPATH
10839
10840 # AIX 3 has no versioning support, so we append a major version to the name.
10841 soname_spec='$libname$release$shared_ext$major'
10842 ;;
10843
10844 aix[4-9]*)
10845 version_type=linux # correct to gnu/linux during the next big refactor
10846 need_lib_prefix=no
10847 need_version=no
10848 hardcode_into_libs=yes
10849 if test ia64 = "$host_cpu"; then
10850 # AIX 5 supports IA64
10851 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 else
10854 # With GCC up to 2.95.x, collect2 would create an import file
10855 # for dependence libraries. The import file would start with
10856 # the line '#! .'. This would cause the generated library to
10857 # depend on '.', always an invalid library. This was fixed in
10858 # development snapshots of GCC prior to 3.0.
10859 case $host_os in
10860 aix4 | aix4.[01] | aix4.[01].*)
10861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10862 echo ' yes '
10863 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10864 :
10865 else
10866 can_build_shared=no
10867 fi
10868 ;;
10869 esac
10870 # Using Import Files as archive members, it is possible to support
10871 # filename-based versioning of shared library archives on AIX. While
10872 # this would work for both with and without runtime linking, it will
10873 # prevent static linking of such archives. So we do filename-based
10874 # shared library versioning with .so extension only, which is used
10875 # when both runtime linking and shared linking is enabled.
10876 # Unfortunately, runtime linking may impact performance, so we do
10877 # not want this to be the default eventually. Also, we use the
10878 # versioned .so libs for executables only if there is the -brtl
10879 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10880 # To allow for filename-based versioning support, we need to create
10881 # libNAME.so.V as an archive file, containing:
10882 # *) an Import File, referring to the versioned filename of the
10883 # archive as well as the shared archive member, telling the
10884 # bitwidth (32 or 64) of that shared object, and providing the
10885 # list of exported symbols of that shared object, eventually
10886 # decorated with the 'weak' keyword
10887 # *) the shared object with the F_LOADONLY flag set, to really avoid
10888 # it being seen by the linker.
10889 # At run time we better use the real file rather than another symlink,
10890 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10891
10892 case $with_aix_soname,$aix_use_runtimelinking in
10893 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10894 # soname into executable. Probably we can add versioning support to
10895 # collect2, so additional links can be useful in future.
10896 aix,yes) # traditional libtool
10897 dynamic_linker='AIX unversionable lib.so'
10898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10899 # instead of lib<name>.a to let people know that these are not
10900 # typical AIX shared libraries.
10901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10902 ;;
10903 aix,no) # traditional AIX only
10904 dynamic_linker='AIX lib.a(lib.so.V)'
10905 # We preserve .a as extension for shared libraries through AIX4.2
10906 # and later when we are not doing run time linking.
10907 library_names_spec='$libname$release.a $libname.a'
10908 soname_spec='$libname$release$shared_ext$major'
10909 ;;
10910 svr4,*) # full svr4 only
10911 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10912 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10913 # We do not specify a path in Import Files, so LIBPATH fires.
10914 shlibpath_overrides_runpath=yes
10915 ;;
10916 *,yes) # both, prefer svr4
10917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10919 # unpreferred sharedlib libNAME.a needs extra handling
10920 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"'
10921 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"'
10922 # We do not specify a path in Import Files, so LIBPATH fires.
10923 shlibpath_overrides_runpath=yes
10924 ;;
10925 *,no) # both, prefer aix
10926 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10927 library_names_spec='$libname$release.a $libname.a'
10928 soname_spec='$libname$release$shared_ext$major'
10929 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10930 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)'
10931 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"'
10932 ;;
10933 esac
10934 shlibpath_var=LIBPATH
10935 fi
10936 ;;
10937
10938 amigaos*)
10939 case $host_cpu in
10940 powerpc)
10941 # Since July 2007 AmigaOS4 officially supports .so libraries.
10942 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10944 ;;
10945 m68k)
10946 library_names_spec='$libname.ixlibrary $libname.a'
10947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10948 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'
10949 ;;
10950 esac
10951 ;;
10952
10953 beos*)
10954 library_names_spec='$libname$shared_ext'
10955 dynamic_linker="$host_os ld.so"
10956 shlibpath_var=LIBRARY_PATH
10957 ;;
10958
10959 bsdi[45]*)
10960 version_type=linux # correct to gnu/linux during the next big refactor
10961 need_version=no
10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963 soname_spec='$libname$release$shared_ext$major'
10964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10968 # the default ld.so.conf also contains /usr/contrib/lib and
10969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10970 # libtool to hard-code these into programs
10971 ;;
10972
10973 cygwin* | mingw* | pw32* | cegcc*)
10974 version_type=windows
10975 shrext_cmds=.dll
10976 need_version=no
10977 need_lib_prefix=no
10978
10979 case $GCC,$cc_basename in
10980 yes,*)
10981 # gcc
10982 library_names_spec='$libname.dll.a'
10983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10984 postinstall_cmds='base_file=`basename \$file`~
10985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10986 dldir=$destdir/`dirname \$dlpath`~
10987 test -d \$dldir || mkdir -p \$dldir~
10988 $install_prog $dir/$dlname \$dldir/$dlname~
10989 chmod a+x \$dldir/$dlname~
10990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10992 fi'
10993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10994 dlpath=$dir/\$dldll~
10995 $RM \$dlpath'
10996 shlibpath_overrides_runpath=yes
10997
10998 case $host_os in
10999 cygwin*)
11000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11001 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11002
11003 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11004 ;;
11005 mingw* | cegcc*)
11006 # MinGW DLLs use traditional 'lib' prefix
11007 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11008 ;;
11009 pw32*)
11010 # pw32 DLLs use 'pw' prefix rather than 'lib'
11011 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11012 ;;
11013 esac
11014 dynamic_linker='Win32 ld.exe'
11015 ;;
11016
11017 *,cl*)
11018 # Native MSVC
11019 libname_spec='$name'
11020 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11021 library_names_spec='$libname.dll.lib'
11022
11023 case $build_os in
11024 mingw*)
11025 sys_lib_search_path_spec=
11026 lt_save_ifs=$IFS
11027 IFS=';'
11028 for lt_path in $LIB
11029 do
11030 IFS=$lt_save_ifs
11031 # Let DOS variable expansion print the short 8.3 style file name.
11032 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11033 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11034 done
11035 IFS=$lt_save_ifs
11036 # Convert to MSYS style.
11037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11038 ;;
11039 cygwin*)
11040 # Convert to unix form, then to dos form, then back to unix form
11041 # but this time dos style (no spaces!) so that the unix form looks
11042 # like /cygdrive/c/PROGRA~1:/cygdr...
11043 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11044 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11045 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11046 ;;
11047 *)
11048 sys_lib_search_path_spec=$LIB
11049 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11050 # It is most probably a Windows format PATH.
11051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11052 else
11053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11054 fi
11055 # FIXME: find the short name or the path components, as spaces are
11056 # common. (e.g. "Program Files" -> "PROGRA~1")
11057 ;;
11058 esac
11059
11060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11061 postinstall_cmds='base_file=`basename \$file`~
11062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11063 dldir=$destdir/`dirname \$dlpath`~
11064 test -d \$dldir || mkdir -p \$dldir~
11065 $install_prog $dir/$dlname \$dldir/$dlname'
11066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11067 dlpath=$dir/\$dldll~
11068 $RM \$dlpath'
11069 shlibpath_overrides_runpath=yes
11070 dynamic_linker='Win32 link.exe'
11071 ;;
11072
11073 *)
11074 # Assume MSVC wrapper
11075 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11076 dynamic_linker='Win32 ld.exe'
11077 ;;
11078 esac
11079 # FIXME: first we should search . and the directory the executable is in
11080 shlibpath_var=PATH
11081 ;;
11082
11083 darwin* | rhapsody*)
11084 dynamic_linker="$host_os dyld"
11085 version_type=darwin
11086 need_lib_prefix=no
11087 need_version=no
11088 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11089 soname_spec='$libname$release$major$shared_ext'
11090 shlibpath_overrides_runpath=yes
11091 shlibpath_var=DYLD_LIBRARY_PATH
11092 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11093
11094 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11096 ;;
11097
11098 dgux*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 ;;
11106
11107 freebsd* | dragonfly*)
11108 # DragonFly does not have aout. When/if they implement a new
11109 # versioning mechanism, adjust this.
11110 if test -x /usr/bin/objformat; then
11111 objformat=`/usr/bin/objformat`
11112 else
11113 case $host_os in
11114 freebsd[23].*) objformat=aout ;;
11115 *) objformat=elf ;;
11116 esac
11117 fi
11118 version_type=freebsd-$objformat
11119 case $version_type in
11120 freebsd-elf*)
11121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122 soname_spec='$libname$release$shared_ext$major'
11123 need_version=no
11124 need_lib_prefix=no
11125 ;;
11126 freebsd-*)
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11128 need_version=yes
11129 ;;
11130 esac
11131 shlibpath_var=LD_LIBRARY_PATH
11132 case $host_os in
11133 freebsd2.*)
11134 shlibpath_overrides_runpath=yes
11135 ;;
11136 freebsd3.[01]* | freebsdelf3.[01]*)
11137 shlibpath_overrides_runpath=yes
11138 hardcode_into_libs=yes
11139 ;;
11140 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11141 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11142 shlibpath_overrides_runpath=no
11143 hardcode_into_libs=yes
11144 ;;
11145 *) # from 4.6 on, and DragonFly
11146 shlibpath_overrides_runpath=yes
11147 hardcode_into_libs=yes
11148 ;;
11149 esac
11150 ;;
11151
11152 haiku*)
11153 version_type=linux # correct to gnu/linux during the next big refactor
11154 need_lib_prefix=no
11155 need_version=no
11156 dynamic_linker="$host_os runtime_loader"
11157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec='$libname$release$shared_ext$major'
11159 shlibpath_var=LIBRARY_PATH
11160 shlibpath_overrides_runpath=no
11161 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11162 hardcode_into_libs=yes
11163 ;;
11164
11165 hpux9* | hpux10* | hpux11*)
11166 # Give a soname corresponding to the major version so that dld.sl refuses to
11167 # link against other versions.
11168 version_type=sunos
11169 need_lib_prefix=no
11170 need_version=no
11171 case $host_cpu in
11172 ia64*)
11173 shrext_cmds='.so'
11174 hardcode_into_libs=yes
11175 dynamic_linker="$host_os dld.so"
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11179 soname_spec='$libname$release$shared_ext$major'
11180 if test 32 = "$HPUX_IA64_MODE"; then
11181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11182 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11183 else
11184 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11185 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11186 fi
11187 ;;
11188 hppa*64*)
11189 shrext_cmds='.sl'
11190 hardcode_into_libs=yes
11191 dynamic_linker="$host_os dld.sl"
11192 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195 soname_spec='$libname$release$shared_ext$major'
11196 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11198 ;;
11199 *)
11200 shrext_cmds='.sl'
11201 dynamic_linker="$host_os dld.sl"
11202 shlibpath_var=SHLIB_PATH
11203 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11205 soname_spec='$libname$release$shared_ext$major'
11206 ;;
11207 esac
11208 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11209 postinstall_cmds='chmod 555 $lib'
11210 # or fails outright, so override atomically:
11211 install_override_mode=555
11212 ;;
11213
11214 interix[3-9]*)
11215 version_type=linux # correct to gnu/linux during the next big refactor
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11219 soname_spec='$libname$release$shared_ext$major'
11220 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=no
11223 hardcode_into_libs=yes
11224 ;;
11225
11226 irix5* | irix6* | nonstopux*)
11227 case $host_os in
11228 nonstopux*) version_type=nonstopux ;;
11229 *)
11230 if test yes = "$lt_cv_prog_gnu_ld"; then
11231 version_type=linux # correct to gnu/linux during the next big refactor
11232 else
11233 version_type=irix
11234 fi ;;
11235 esac
11236 need_lib_prefix=no
11237 need_version=no
11238 soname_spec='$libname$release$shared_ext$major'
11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11240 case $host_os in
11241 irix5* | nonstopux*)
11242 libsuff= shlibsuff=
11243 ;;
11244 *)
11245 case $LD in # libtool.m4 will add one of these switches to LD
11246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11247 libsuff= shlibsuff= libmagic=32-bit;;
11248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11249 libsuff=32 shlibsuff=N32 libmagic=N32;;
11250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11251 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11252 *) libsuff= shlibsuff= libmagic=never-match;;
11253 esac
11254 ;;
11255 esac
11256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11257 shlibpath_overrides_runpath=no
11258 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11259 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11260 hardcode_into_libs=yes
11261 ;;
11262
11263 # No shared lib support for Linux oldld, aout, or coff.
11264 linux*oldld* | linux*aout* | linux*coff*)
11265 dynamic_linker=no
11266 ;;
11267
11268 linux*android*)
11269 version_type=none # Android doesn't support versioned libraries.
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='$libname$release$shared_ext'
11273 soname_spec='$libname$release$shared_ext'
11274 finish_cmds=
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=yes
11277
11278 # This implies no fast_install, which is unacceptable.
11279 # Some rework will be needed to allow for fast_install
11280 # before this can be enabled.
11281 hardcode_into_libs=yes
11282
11283 dynamic_linker='Android linker'
11284 # Don't embed -rpath directories since the linker doesn't support them.
11285 hardcode_libdir_flag_spec='-L$libdir'
11286 ;;
11287
11288 # This must be glibc/ELF.
11289 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11290 version_type=linux # correct to gnu/linux during the next big refactor
11291 need_lib_prefix=no
11292 need_version=no
11293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11294 soname_spec='$libname$release$shared_ext$major'
11295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=no
11298
11299 # Some binutils ld are patched to set DT_RUNPATH
11300 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 lt_cv_shlibpath_overrides_runpath=no
11304 save_LDFLAGS=$LDFLAGS
11305 save_libdir=$libdir
11306 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11307 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11310
11311 int
11312 main ()
11313 {
11314
11315 ;
11316 return 0;
11317 }
11318 _ACEOF
11319 if ac_fn_c_try_link "$LINENO"; then :
11320 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11321 lt_cv_shlibpath_overrides_runpath=yes
11322 fi
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 LDFLAGS=$save_LDFLAGS
11327 libdir=$save_libdir
11328
11329 fi
11330
11331 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11332
11333 # This implies no fast_install, which is unacceptable.
11334 # Some rework will be needed to allow for fast_install
11335 # before this can be enabled.
11336 hardcode_into_libs=yes
11337
11338 # Ideally, we could use ldconfig to report *all* directores which are
11339 # searched for libraries, however this is still not possible. Aside from not
11340 # being certain /sbin/ldconfig is available, command
11341 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11342 # even though it is searched at run-time. Try to do the best guess by
11343 # appending ld.so.conf contents (and includes) to the search path.
11344 if test -f /etc/ld.so.conf; then
11345 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' ' '`
11346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11347 fi
11348
11349 # We used to test for /lib/ld.so.1 and disable shared libraries on
11350 # powerpc, because MkLinux only supported shared libraries with the
11351 # GNU dynamic linker. Since this was broken with cross compilers,
11352 # most powerpc-linux boxes support dynamic linking these days and
11353 # people can always --disable-shared, the test was removed, and we
11354 # assume the GNU/Linux dynamic linker is in use.
11355 dynamic_linker='GNU/Linux ld.so'
11356 ;;
11357
11358 netbsdelf*-gnu)
11359 version_type=linux
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=no
11366 hardcode_into_libs=yes
11367 dynamic_linker='NetBSD ld.elf_so'
11368 ;;
11369
11370 netbsd*)
11371 version_type=sunos
11372 need_lib_prefix=no
11373 need_version=no
11374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11375 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11377 dynamic_linker='NetBSD (a.out) ld.so'
11378 else
11379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11380 soname_spec='$libname$release$shared_ext$major'
11381 dynamic_linker='NetBSD ld.elf_so'
11382 fi
11383 shlibpath_var=LD_LIBRARY_PATH
11384 shlibpath_overrides_runpath=yes
11385 hardcode_into_libs=yes
11386 ;;
11387
11388 newsos6)
11389 version_type=linux # correct to gnu/linux during the next big refactor
11390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 shlibpath_overrides_runpath=yes
11393 ;;
11394
11395 *nto* | *qnx*)
11396 version_type=qnx
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400 soname_spec='$libname$release$shared_ext$major'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=no
11403 hardcode_into_libs=yes
11404 dynamic_linker='ldqnx.so'
11405 ;;
11406
11407 openbsd* | bitrig*)
11408 version_type=sunos
11409 sys_lib_dlsearch_path_spec=/usr/lib
11410 need_lib_prefix=no
11411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11412 need_version=no
11413 else
11414 need_version=yes
11415 fi
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=yes
11420 ;;
11421
11422 os2*)
11423 libname_spec='$name'
11424 version_type=windows
11425 shrext_cmds=.dll
11426 need_version=no
11427 need_lib_prefix=no
11428 # OS/2 can only load a DLL with a base name of 8 characters or less.
11429 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11430 v=$($ECHO $release$versuffix | tr -d .-);
11431 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11432 $ECHO $n$v`$shared_ext'
11433 library_names_spec='${libname}_dll.$libext'
11434 dynamic_linker='OS/2 ld.exe'
11435 shlibpath_var=BEGINLIBPATH
11436 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11438 postinstall_cmds='base_file=`basename \$file`~
11439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11440 dldir=$destdir/`dirname \$dlpath`~
11441 test -d \$dldir || mkdir -p \$dldir~
11442 $install_prog $dir/$dlname \$dldir/$dlname~
11443 chmod a+x \$dldir/$dlname~
11444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11446 fi'
11447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11448 dlpath=$dir/\$dldll~
11449 $RM \$dlpath'
11450 ;;
11451
11452 osf3* | osf4* | osf5*)
11453 version_type=osf
11454 need_lib_prefix=no
11455 need_version=no
11456 soname_spec='$libname$release$shared_ext$major'
11457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11461 ;;
11462
11463 rdos*)
11464 dynamic_linker=no
11465 ;;
11466
11467 solaris*)
11468 version_type=linux # correct to gnu/linux during the next big refactor
11469 need_lib_prefix=no
11470 need_version=no
11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472 soname_spec='$libname$release$shared_ext$major'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=yes
11475 hardcode_into_libs=yes
11476 # ldd complains unless libraries are executable
11477 postinstall_cmds='chmod +x $lib'
11478 ;;
11479
11480 sunos4*)
11481 version_type=sunos
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=yes
11486 if test yes = "$with_gnu_ld"; then
11487 need_lib_prefix=no
11488 fi
11489 need_version=yes
11490 ;;
11491
11492 sysv4 | sysv4.3*)
11493 version_type=linux # correct to gnu/linux during the next big refactor
11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11495 soname_spec='$libname$release$shared_ext$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 case $host_vendor in
11498 sni)
11499 shlibpath_overrides_runpath=no
11500 need_lib_prefix=no
11501 runpath_var=LD_RUN_PATH
11502 ;;
11503 siemens)
11504 need_lib_prefix=no
11505 ;;
11506 motorola)
11507 need_lib_prefix=no
11508 need_version=no
11509 shlibpath_overrides_runpath=no
11510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11511 ;;
11512 esac
11513 ;;
11514
11515 sysv4*MP*)
11516 if test -d /usr/nec; then
11517 version_type=linux # correct to gnu/linux during the next big refactor
11518 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11519 soname_spec='$libname$shared_ext.$major'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 fi
11522 ;;
11523
11524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11525 version_type=sco
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11529 soname_spec='$libname$release$shared_ext$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes
11532 hardcode_into_libs=yes
11533 if test yes = "$with_gnu_ld"; then
11534 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11535 else
11536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11537 case $host_os in
11538 sco3.2v5*)
11539 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11540 ;;
11541 esac
11542 fi
11543 sys_lib_dlsearch_path_spec='/usr/lib'
11544 ;;
11545
11546 tpf*)
11547 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11548 version_type=linux # correct to gnu/linux during the next big refactor
11549 need_lib_prefix=no
11550 need_version=no
11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 shlibpath_overrides_runpath=no
11554 hardcode_into_libs=yes
11555 ;;
11556
11557 uts4*)
11558 version_type=linux # correct to gnu/linux during the next big refactor
11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11560 soname_spec='$libname$release$shared_ext$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 ;;
11563
11564 *)
11565 dynamic_linker=no
11566 ;;
11567 esac
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11569 $as_echo "$dynamic_linker" >&6; }
11570 test no = "$dynamic_linker" && can_build_shared=no
11571
11572 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11573 if test yes = "$GCC"; then
11574 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11575 fi
11576
11577 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11578 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11579 fi
11580
11581 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11582 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11583 fi
11584
11585 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11586 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11587
11588 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11589 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11590
11591 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11592 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11691 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11692 hardcode_action=
11693 if test -n "$hardcode_libdir_flag_spec" ||
11694 test -n "$runpath_var" ||
11695 test yes = "$hardcode_automatic"; then
11696
11697 # We can hardcode non-existent directories.
11698 if test no != "$hardcode_direct" &&
11699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11700 # have to relink, otherwise we might link with an installed library
11701 # when we should be linking with a yet-to-be-installed one
11702 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11703 test no != "$hardcode_minus_L"; then
11704 # Linking always hardcodes the temporary library directory.
11705 hardcode_action=relink
11706 else
11707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11708 hardcode_action=immediate
11709 fi
11710 else
11711 # We cannot hardcode anything, or else we can only hardcode existing
11712 # directories.
11713 hardcode_action=unsupported
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11716 $as_echo "$hardcode_action" >&6; }
11717
11718 if test relink = "$hardcode_action" ||
11719 test yes = "$inherit_rpath"; then
11720 # Fast installation is not supported
11721 enable_fast_install=no
11722 elif test yes = "$shlibpath_overrides_runpath" ||
11723 test no = "$enable_shared"; then
11724 # Fast installation is not necessary
11725 enable_fast_install=needless
11726 fi
11727
11728
11729
11730
11731
11732
11733 if test yes != "$enable_dlopen"; then
11734 enable_dlopen=unknown
11735 enable_dlopen_self=unknown
11736 enable_dlopen_self_static=unknown
11737 else
11738 lt_cv_dlopen=no
11739 lt_cv_dlopen_libs=
11740
11741 case $host_os in
11742 beos*)
11743 lt_cv_dlopen=load_add_on
11744 lt_cv_dlopen_libs=
11745 lt_cv_dlopen_self=yes
11746 ;;
11747
11748 mingw* | pw32* | cegcc*)
11749 lt_cv_dlopen=LoadLibrary
11750 lt_cv_dlopen_libs=
11751 ;;
11752
11753 cygwin*)
11754 lt_cv_dlopen=dlopen
11755 lt_cv_dlopen_libs=
11756 ;;
11757
11758 darwin*)
11759 # if libdl is installed we need to link against it
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11762 if ${ac_cv_lib_dl_dlopen+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-ldl $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11769
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char dlopen ();
11777 int
11778 main ()
11779 {
11780 return dlopen ();
11781 ;
11782 return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 ac_cv_lib_dl_dlopen=yes
11787 else
11788 ac_cv_lib_dl_dlopen=no
11789 fi
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11796 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11797 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11798 else
11799
11800 lt_cv_dlopen=dyld
11801 lt_cv_dlopen_libs=
11802 lt_cv_dlopen_self=yes
11803
11804 fi
11805
11806 ;;
11807
11808 tpf*)
11809 # Don't try to run any link tests for TPF. We know it's impossible
11810 # because TPF is a cross-compiler, and we know how we open DSOs.
11811 lt_cv_dlopen=dlopen
11812 lt_cv_dlopen_libs=
11813 lt_cv_dlopen_self=no
11814 ;;
11815
11816 *)
11817 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11818 if test "x$ac_cv_func_shl_load" = xyes; then :
11819 lt_cv_dlopen=shl_load
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11822 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11823 if ${ac_cv_lib_dld_shl_load+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-ldld $LIBS"
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char shl_load ();
11838 int
11839 main ()
11840 {
11841 return shl_load ();
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 ac_cv_lib_dld_shl_load=yes
11848 else
11849 ac_cv_lib_dld_shl_load=no
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11856 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11857 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11858 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11859 else
11860 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11861 if test "x$ac_cv_func_dlopen" = xyes; then :
11862 lt_cv_dlopen=dlopen
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11865 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11866 if ${ac_cv_lib_dl_dlopen+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-ldl $LIBS"
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873
11874 /* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11877 #ifdef __cplusplus
11878 extern "C"
11879 #endif
11880 char dlopen ();
11881 int
11882 main ()
11883 {
11884 return dlopen ();
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 if ac_fn_c_try_link "$LINENO"; then :
11890 ac_cv_lib_dl_dlopen=yes
11891 else
11892 ac_cv_lib_dl_dlopen=no
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11897 fi
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11899 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11900 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11901 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11904 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11905 if ${ac_cv_lib_svld_dlopen+:} false; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-lsvld $LIBS"
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11912
11913 /* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 char dlopen ();
11920 int
11921 main ()
11922 {
11923 return dlopen ();
11924 ;
11925 return 0;
11926 }
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929 ac_cv_lib_svld_dlopen=yes
11930 else
11931 ac_cv_lib_svld_dlopen=no
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11936 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11938 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11939 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11940 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11943 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11944 if ${ac_cv_lib_dld_dld_link+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-ldld $LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char dld_link ();
11959 int
11960 main ()
11961 {
11962 return dld_link ();
11963 ;
11964 return 0;
11965 }
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_dld_dld_link=yes
11969 else
11970 ac_cv_lib_dld_dld_link=no
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11977 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11978 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11979 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11980 fi
11981
11982
11983 fi
11984
11985
11986 fi
11987
11988
11989 fi
11990
11991
11992 fi
11993
11994
11995 fi
11996
11997 ;;
11998 esac
11999
12000 if test no = "$lt_cv_dlopen"; then
12001 enable_dlopen=no
12002 else
12003 enable_dlopen=yes
12004 fi
12005
12006 case $lt_cv_dlopen in
12007 dlopen)
12008 save_CPPFLAGS=$CPPFLAGS
12009 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12010
12011 save_LDFLAGS=$LDFLAGS
12012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12013
12014 save_LIBS=$LIBS
12015 LIBS="$lt_cv_dlopen_libs $LIBS"
12016
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12018 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12019 if ${lt_cv_dlopen_self+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 if test yes = "$cross_compiling"; then :
12023 lt_cv_dlopen_self=cross
12024 else
12025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12026 lt_status=$lt_dlunknown
12027 cat > conftest.$ac_ext <<_LT_EOF
12028 #line $LINENO "configure"
12029 #include "confdefs.h"
12030
12031 #if HAVE_DLFCN_H
12032 #include <dlfcn.h>
12033 #endif
12034
12035 #include <stdio.h>
12036
12037 #ifdef RTLD_GLOBAL
12038 # define LT_DLGLOBAL RTLD_GLOBAL
12039 #else
12040 # ifdef DL_GLOBAL
12041 # define LT_DLGLOBAL DL_GLOBAL
12042 # else
12043 # define LT_DLGLOBAL 0
12044 # endif
12045 #endif
12046
12047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12048 find out it does not work in some platform. */
12049 #ifndef LT_DLLAZY_OR_NOW
12050 # ifdef RTLD_LAZY
12051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12052 # else
12053 # ifdef DL_LAZY
12054 # define LT_DLLAZY_OR_NOW DL_LAZY
12055 # else
12056 # ifdef RTLD_NOW
12057 # define LT_DLLAZY_OR_NOW RTLD_NOW
12058 # else
12059 # ifdef DL_NOW
12060 # define LT_DLLAZY_OR_NOW DL_NOW
12061 # else
12062 # define LT_DLLAZY_OR_NOW 0
12063 # endif
12064 # endif
12065 # endif
12066 # endif
12067 #endif
12068
12069 /* When -fvisibility=hidden is used, assume the code has been annotated
12070 correspondingly for the symbols needed. */
12071 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12072 int fnord () __attribute__((visibility("default")));
12073 #endif
12074
12075 int fnord () { return 42; }
12076 int main ()
12077 {
12078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12079 int status = $lt_dlunknown;
12080
12081 if (self)
12082 {
12083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12084 else
12085 {
12086 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12087 else puts (dlerror ());
12088 }
12089 /* dlclose (self); */
12090 }
12091 else
12092 puts (dlerror ());
12093
12094 return status;
12095 }
12096 _LT_EOF
12097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12098 (eval $ac_link) 2>&5
12099 ac_status=$?
12100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12101 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12102 (./conftest; exit; ) >&5 2>/dev/null
12103 lt_status=$?
12104 case x$lt_status in
12105 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12106 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12107 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12108 esac
12109 else :
12110 # compilation failed
12111 lt_cv_dlopen_self=no
12112 fi
12113 fi
12114 rm -fr conftest*
12115
12116
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12119 $as_echo "$lt_cv_dlopen_self" >&6; }
12120
12121 if test yes = "$lt_cv_dlopen_self"; then
12122 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12124 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12125 if ${lt_cv_dlopen_self_static+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test yes = "$cross_compiling"; then :
12129 lt_cv_dlopen_self_static=cross
12130 else
12131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12132 lt_status=$lt_dlunknown
12133 cat > conftest.$ac_ext <<_LT_EOF
12134 #line $LINENO "configure"
12135 #include "confdefs.h"
12136
12137 #if HAVE_DLFCN_H
12138 #include <dlfcn.h>
12139 #endif
12140
12141 #include <stdio.h>
12142
12143 #ifdef RTLD_GLOBAL
12144 # define LT_DLGLOBAL RTLD_GLOBAL
12145 #else
12146 # ifdef DL_GLOBAL
12147 # define LT_DLGLOBAL DL_GLOBAL
12148 # else
12149 # define LT_DLGLOBAL 0
12150 # endif
12151 #endif
12152
12153 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12154 find out it does not work in some platform. */
12155 #ifndef LT_DLLAZY_OR_NOW
12156 # ifdef RTLD_LAZY
12157 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12158 # else
12159 # ifdef DL_LAZY
12160 # define LT_DLLAZY_OR_NOW DL_LAZY
12161 # else
12162 # ifdef RTLD_NOW
12163 # define LT_DLLAZY_OR_NOW RTLD_NOW
12164 # else
12165 # ifdef DL_NOW
12166 # define LT_DLLAZY_OR_NOW DL_NOW
12167 # else
12168 # define LT_DLLAZY_OR_NOW 0
12169 # endif
12170 # endif
12171 # endif
12172 # endif
12173 #endif
12174
12175 /* When -fvisibility=hidden is used, assume the code has been annotated
12176 correspondingly for the symbols needed. */
12177 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12178 int fnord () __attribute__((visibility("default")));
12179 #endif
12180
12181 int fnord () { return 42; }
12182 int main ()
12183 {
12184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12185 int status = $lt_dlunknown;
12186
12187 if (self)
12188 {
12189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12190 else
12191 {
12192 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12193 else puts (dlerror ());
12194 }
12195 /* dlclose (self); */
12196 }
12197 else
12198 puts (dlerror ());
12199
12200 return status;
12201 }
12202 _LT_EOF
12203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12204 (eval $ac_link) 2>&5
12205 ac_status=$?
12206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12207 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12208 (./conftest; exit; ) >&5 2>/dev/null
12209 lt_status=$?
12210 case x$lt_status in
12211 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12212 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12213 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12214 esac
12215 else :
12216 # compilation failed
12217 lt_cv_dlopen_self_static=no
12218 fi
12219 fi
12220 rm -fr conftest*
12221
12222
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12225 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12226 fi
12227
12228 CPPFLAGS=$save_CPPFLAGS
12229 LDFLAGS=$save_LDFLAGS
12230 LIBS=$save_LIBS
12231 ;;
12232 esac
12233
12234 case $lt_cv_dlopen_self in
12235 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12236 *) enable_dlopen_self=unknown ;;
12237 esac
12238
12239 case $lt_cv_dlopen_self_static in
12240 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12241 *) enable_dlopen_self_static=unknown ;;
12242 esac
12243 fi
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261 striplib=
12262 old_striplib=
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12264 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12265 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12266 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12267 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269 $as_echo "yes" >&6; }
12270 else
12271 # FIXME - insert some real tests, host_os isn't really good enough
12272 case $host_os in
12273 darwin*)
12274 if test -n "$STRIP"; then
12275 striplib="$STRIP -x"
12276 old_striplib="$STRIP -S"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12278 $as_echo "yes" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12282 fi
12283 ;;
12284 *)
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 ;;
12288 esac
12289 fi
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302 # Report what library types will actually be built
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12304 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12306 $as_echo "$can_build_shared" >&6; }
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12309 $as_echo_n "checking whether to build shared libraries... " >&6; }
12310 test no = "$can_build_shared" && enable_shared=no
12311
12312 # On AIX, shared libraries and static libraries use the same namespace, and
12313 # are all built from PIC.
12314 case $host_os in
12315 aix3*)
12316 test yes = "$enable_shared" && enable_static=no
12317 if test -n "$RANLIB"; then
12318 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12319 postinstall_cmds='$RANLIB $lib'
12320 fi
12321 ;;
12322
12323 aix[4-9]*)
12324 if test ia64 != "$host_cpu"; then
12325 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12326 yes,aix,yes) ;; # shared object as lib.so file only
12327 yes,svr4,*) ;; # shared object as lib.so archive member only
12328 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12329 esac
12330 fi
12331 ;;
12332 esac
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12334 $as_echo "$enable_shared" >&6; }
12335
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12337 $as_echo_n "checking whether to build static libraries... " >&6; }
12338 # Make sure either enable_shared or enable_static is yes.
12339 test yes = "$enable_shared" || enable_static=yes
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12341 $as_echo "$enable_static" >&6; }
12342
12343
12344
12345
12346 fi
12347 ac_ext=c
12348 ac_cpp='$CPP $CPPFLAGS'
12349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12352
12353 CC=$lt_save_CC
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369 ac_config_commands="$ac_config_commands libtool"
12370
12371
12372
12373
12374 # Only expand once:
12375
12376
12377
12378 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12391 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12392 if ${ac_cv_prog_cc_c99+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 ac_cv_prog_cc_c99=no
12396 ac_save_CC=$CC
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399 #include <stdarg.h>
12400 #include <stdbool.h>
12401 #include <stdlib.h>
12402 #include <wchar.h>
12403 #include <stdio.h>
12404
12405 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12406 #define debug(...) fprintf (stderr, __VA_ARGS__)
12407 #define showlist(...) puts (#__VA_ARGS__)
12408 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12409 static void
12410 test_varargs_macros (void)
12411 {
12412 int x = 1234;
12413 int y = 5678;
12414 debug ("Flag");
12415 debug ("X = %d\n", x);
12416 showlist (The first, second, and third items.);
12417 report (x>y, "x is %d but y is %d", x, y);
12418 }
12419
12420 // Check long long types.
12421 #define BIG64 18446744073709551615ull
12422 #define BIG32 4294967295ul
12423 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12424 #if !BIG_OK
12425 your preprocessor is broken;
12426 #endif
12427 #if BIG_OK
12428 #else
12429 your preprocessor is broken;
12430 #endif
12431 static long long int bignum = -9223372036854775807LL;
12432 static unsigned long long int ubignum = BIG64;
12433
12434 struct incomplete_array
12435 {
12436 int datasize;
12437 double data[];
12438 };
12439
12440 struct named_init {
12441 int number;
12442 const wchar_t *name;
12443 double average;
12444 };
12445
12446 typedef const char *ccp;
12447
12448 static inline int
12449 test_restrict (ccp restrict text)
12450 {
12451 // See if C++-style comments work.
12452 // Iterate through items via the restricted pointer.
12453 // Also check for declarations in for loops.
12454 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12455 continue;
12456 return 0;
12457 }
12458
12459 // Check varargs and va_copy.
12460 static void
12461 test_varargs (const char *format, ...)
12462 {
12463 va_list args;
12464 va_start (args, format);
12465 va_list args_copy;
12466 va_copy (args_copy, args);
12467
12468 const char *str;
12469 int number;
12470 float fnumber;
12471
12472 while (*format)
12473 {
12474 switch (*format++)
12475 {
12476 case 's': // string
12477 str = va_arg (args_copy, const char *);
12478 break;
12479 case 'd': // int
12480 number = va_arg (args_copy, int);
12481 break;
12482 case 'f': // float
12483 fnumber = va_arg (args_copy, double);
12484 break;
12485 default:
12486 break;
12487 }
12488 }
12489 va_end (args_copy);
12490 va_end (args);
12491 }
12492
12493 int
12494 main ()
12495 {
12496
12497 // Check bool.
12498 _Bool success = false;
12499
12500 // Check restrict.
12501 if (test_restrict ("String literal") == 0)
12502 success = true;
12503 char *restrict newvar = "Another string";
12504
12505 // Check varargs.
12506 test_varargs ("s, d' f .", "string", 65, 34.234);
12507 test_varargs_macros ();
12508
12509 // Check flexible array members.
12510 struct incomplete_array *ia =
12511 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12512 ia->datasize = 10;
12513 for (int i = 0; i < ia->datasize; ++i)
12514 ia->data[i] = i * 1.234;
12515
12516 // Check named initializers.
12517 struct named_init ni = {
12518 .number = 34,
12519 .name = L"Test wide string",
12520 .average = 543.34343,
12521 };
12522
12523 ni.number = 58;
12524
12525 int dynamic_array[ni.number];
12526 dynamic_array[ni.number - 1] = 543;
12527
12528 // work around unused variable warnings
12529 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12530 || dynamic_array[ni.number - 1] != 543);
12531
12532 ;
12533 return 0;
12534 }
12535 _ACEOF
12536 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12537 do
12538 CC="$ac_save_CC $ac_arg"
12539 if ac_fn_c_try_compile "$LINENO"; then :
12540 ac_cv_prog_cc_c99=$ac_arg
12541 fi
12542 rm -f core conftest.err conftest.$ac_objext
12543 test "x$ac_cv_prog_cc_c99" != "xno" && break
12544 done
12545 rm -f conftest.$ac_ext
12546 CC=$ac_save_CC
12547
12548 fi
12549 # AC_CACHE_VAL
12550 case "x$ac_cv_prog_cc_c99" in
12551 x)
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12553 $as_echo "none needed" >&6; } ;;
12554 xno)
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12556 $as_echo "unsupported" >&6; } ;;
12557 *)
12558 CC="$CC $ac_cv_prog_cc_c99"
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12560 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12561 esac
12562 if test "x$ac_cv_prog_cc_c99" != xno; then :
12563
12564 fi
12565
12566
12567
12568
12569
12570
12571 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12572 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12573 CLANGCC="yes"
12574 else
12575 CLANGCC="no"
12576 fi
12577
12578 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12579 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12580 INTELCC="yes"
12581 else
12582 INTELCC="no"
12583 fi
12584
12585 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12586 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12587 SUNCC="yes"
12588 else
12589 SUNCC="no"
12590 fi
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12601 if test -n "$ac_tool_prefix"; then
12602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12603 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 case $PKG_CONFIG in
12610 [\\/]* | ?:[\\/]*)
12611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12612 ;;
12613 *)
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12624 fi
12625 done
12626 done
12627 IFS=$as_save_IFS
12628
12629 ;;
12630 esac
12631 fi
12632 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12633 if test -n "$PKG_CONFIG"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12635 $as_echo "$PKG_CONFIG" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12639 fi
12640
12641
12642 fi
12643 if test -z "$ac_cv_path_PKG_CONFIG"; then
12644 ac_pt_PKG_CONFIG=$PKG_CONFIG
12645 # Extract the first word of "pkg-config", so it can be a program name with args.
12646 set dummy pkg-config; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 case $ac_pt_PKG_CONFIG in
12653 [\\/]* | ?:[\\/]*)
12654 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12655 ;;
12656 *)
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 for as_dir in $PATH
12659 do
12660 IFS=$as_save_IFS
12661 test -z "$as_dir" && as_dir=.
12662 for ac_exec_ext in '' $ac_executable_extensions; do
12663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12664 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12666 break 2
12667 fi
12668 done
12669 done
12670 IFS=$as_save_IFS
12671
12672 ;;
12673 esac
12674 fi
12675 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12676 if test -n "$ac_pt_PKG_CONFIG"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12678 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12682 fi
12683
12684 if test "x$ac_pt_PKG_CONFIG" = x; then
12685 PKG_CONFIG=""
12686 else
12687 case $cross_compiling:$ac_tool_warned in
12688 yes:)
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12691 ac_tool_warned=yes ;;
12692 esac
12693 PKG_CONFIG=$ac_pt_PKG_CONFIG
12694 fi
12695 else
12696 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12697 fi
12698
12699 fi
12700 if test -n "$PKG_CONFIG"; then
12701 _pkg_min_version=0.9.0
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12703 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12704 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706 $as_echo "yes" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12710 PKG_CONFIG=""
12711 fi
12712 fi
12713
12714
12715
12716
12717
12718 # Check whether --enable-selective-werror was given.
12719 if test "${enable_selective_werror+set}" = set; then :
12720 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12721 else
12722 SELECTIVE_WERROR=yes
12723 fi
12724
12725
12726
12727
12728
12729 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12730 if test "x$SUNCC" = "xyes"; then
12731 BASE_CFLAGS="-v"
12732 else
12733 BASE_CFLAGS=""
12734 fi
12735
12736 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750 xorg_testset_save_CFLAGS="$CFLAGS"
12751
12752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761 int i;
12762 _ACEOF
12763 if ac_fn_c_try_compile "$LINENO"; then :
12764 xorg_cv_cc_flag_unknown_warning_option=yes
12765 else
12766 xorg_cv_cc_flag_unknown_warning_option=no
12767 fi
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769 fi
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12773 CFLAGS="$xorg_testset_save_CFLAGS"
12774 fi
12775
12776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12779 fi
12780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 int i;
12789 _ACEOF
12790 if ac_fn_c_try_compile "$LINENO"; then :
12791 xorg_cv_cc_flag_unused_command_line_argument=yes
12792 else
12793 xorg_cv_cc_flag_unused_command_line_argument=no
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 fi
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12798 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12800 CFLAGS="$xorg_testset_save_CFLAGS"
12801 fi
12802
12803 found="no"
12804
12805 if test $found = "no" ; then
12806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12808 fi
12809
12810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12812 fi
12813
12814 CFLAGS="$CFLAGS -Wall"
12815
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12817 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12818 cacheid=xorg_cv_cc_flag__Wall
12819 if eval \${$cacheid+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 int i;
12825 int
12826 main ()
12827 {
12828
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_link "$LINENO"; then :
12834 eval $cacheid=yes
12835 else
12836 eval $cacheid=no
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12840 fi
12841
12842
12843 CFLAGS="$xorg_testset_save_CFLAGS"
12844
12845 eval supported=\$$cacheid
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12847 $as_echo "$supported" >&6; }
12848 if test "$supported" = "yes" ; then
12849 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12850 found="yes"
12851 fi
12852 fi
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868 xorg_testset_save_CFLAGS="$CFLAGS"
12869
12870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 int i;
12880 _ACEOF
12881 if ac_fn_c_try_compile "$LINENO"; then :
12882 xorg_cv_cc_flag_unknown_warning_option=yes
12883 else
12884 xorg_cv_cc_flag_unknown_warning_option=no
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 fi
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12891 CFLAGS="$xorg_testset_save_CFLAGS"
12892 fi
12893
12894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12897 fi
12898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906 int i;
12907 _ACEOF
12908 if ac_fn_c_try_compile "$LINENO"; then :
12909 xorg_cv_cc_flag_unused_command_line_argument=yes
12910 else
12911 xorg_cv_cc_flag_unused_command_line_argument=no
12912 fi
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 fi
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12918 CFLAGS="$xorg_testset_save_CFLAGS"
12919 fi
12920
12921 found="no"
12922
12923 if test $found = "no" ; then
12924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12926 fi
12927
12928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12930 fi
12931
12932 CFLAGS="$CFLAGS -Wpointer-arith"
12933
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12935 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12936 cacheid=xorg_cv_cc_flag__Wpointer_arith
12937 if eval \${$cacheid+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942 int i;
12943 int
12944 main ()
12945 {
12946
12947 ;
12948 return 0;
12949 }
12950 _ACEOF
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 eval $cacheid=yes
12953 else
12954 eval $cacheid=no
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 fi
12959
12960
12961 CFLAGS="$xorg_testset_save_CFLAGS"
12962
12963 eval supported=\$$cacheid
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12965 $as_echo "$supported" >&6; }
12966 if test "$supported" = "yes" ; then
12967 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12968 found="yes"
12969 fi
12970 fi
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986 xorg_testset_save_CFLAGS="$CFLAGS"
12987
12988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12997 int i;
12998 _ACEOF
12999 if ac_fn_c_try_compile "$LINENO"; then :
13000 xorg_cv_cc_flag_unknown_warning_option=yes
13001 else
13002 xorg_cv_cc_flag_unknown_warning_option=no
13003 fi
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13009 CFLAGS="$xorg_testset_save_CFLAGS"
13010 fi
13011
13012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13015 fi
13016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 int i;
13025 _ACEOF
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027 xorg_cv_cc_flag_unused_command_line_argument=yes
13028 else
13029 xorg_cv_cc_flag_unused_command_line_argument=no
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032 fi
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13036 CFLAGS="$xorg_testset_save_CFLAGS"
13037 fi
13038
13039 found="no"
13040
13041 if test $found = "no" ; then
13042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044 fi
13045
13046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13048 fi
13049
13050 CFLAGS="$CFLAGS -Wmissing-declarations"
13051
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13053 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13054 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13055 if eval \${$cacheid+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 int i;
13061 int
13062 main ()
13063 {
13064
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 eval $cacheid=yes
13071 else
13072 eval $cacheid=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 fi
13077
13078
13079 CFLAGS="$xorg_testset_save_CFLAGS"
13080
13081 eval supported=\$$cacheid
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13083 $as_echo "$supported" >&6; }
13084 if test "$supported" = "yes" ; then
13085 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13086 found="yes"
13087 fi
13088 fi
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104 xorg_testset_save_CFLAGS="$CFLAGS"
13105
13106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 int i;
13116 _ACEOF
13117 if ac_fn_c_try_compile "$LINENO"; then :
13118 xorg_cv_cc_flag_unknown_warning_option=yes
13119 else
13120 xorg_cv_cc_flag_unknown_warning_option=no
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13127 CFLAGS="$xorg_testset_save_CFLAGS"
13128 fi
13129
13130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13133 fi
13134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13142 int i;
13143 _ACEOF
13144 if ac_fn_c_try_compile "$LINENO"; then :
13145 xorg_cv_cc_flag_unused_command_line_argument=yes
13146 else
13147 xorg_cv_cc_flag_unused_command_line_argument=no
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13154 CFLAGS="$xorg_testset_save_CFLAGS"
13155 fi
13156
13157 found="no"
13158
13159 if test $found = "no" ; then
13160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162 fi
13163
13164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13166 fi
13167
13168 CFLAGS="$CFLAGS -Wformat=2"
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13171 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13172 cacheid=xorg_cv_cc_flag__Wformat_2
13173 if eval \${$cacheid+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13178 int i;
13179 int
13180 main ()
13181 {
13182
13183 ;
13184 return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_link "$LINENO"; then :
13188 eval $cacheid=yes
13189 else
13190 eval $cacheid=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13194 fi
13195
13196
13197 CFLAGS="$xorg_testset_save_CFLAGS"
13198
13199 eval supported=\$$cacheid
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13201 $as_echo "$supported" >&6; }
13202 if test "$supported" = "yes" ; then
13203 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13204 found="yes"
13205 fi
13206 fi
13207
13208 if test $found = "no" ; then
13209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13211 fi
13212
13213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13215 fi
13216
13217 CFLAGS="$CFLAGS -Wformat"
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13220 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13221 cacheid=xorg_cv_cc_flag__Wformat
13222 if eval \${$cacheid+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 int i;
13228 int
13229 main ()
13230 {
13231
13232 ;
13233 return 0;
13234 }
13235 _ACEOF
13236 if ac_fn_c_try_link "$LINENO"; then :
13237 eval $cacheid=yes
13238 else
13239 eval $cacheid=no
13240 fi
13241 rm -f core conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext conftest.$ac_ext
13243 fi
13244
13245
13246 CFLAGS="$xorg_testset_save_CFLAGS"
13247
13248 eval supported=\$$cacheid
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13250 $as_echo "$supported" >&6; }
13251 if test "$supported" = "yes" ; then
13252 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13253 found="yes"
13254 fi
13255 fi
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273 xorg_testset_save_CFLAGS="$CFLAGS"
13274
13275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 int i;
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287 xorg_cv_cc_flag_unknown_warning_option=yes
13288 else
13289 xorg_cv_cc_flag_unknown_warning_option=no
13290 fi
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13296 CFLAGS="$xorg_testset_save_CFLAGS"
13297 fi
13298
13299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13302 fi
13303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13311 int i;
13312 _ACEOF
13313 if ac_fn_c_try_compile "$LINENO"; then :
13314 xorg_cv_cc_flag_unused_command_line_argument=yes
13315 else
13316 xorg_cv_cc_flag_unused_command_line_argument=no
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 fi
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13323 CFLAGS="$xorg_testset_save_CFLAGS"
13324 fi
13325
13326 found="no"
13327
13328 if test $found = "no" ; then
13329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331 fi
13332
13333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13335 fi
13336
13337 CFLAGS="$CFLAGS -Wstrict-prototypes"
13338
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13340 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13341 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13342 if eval \${$cacheid+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 int i;
13348 int
13349 main ()
13350 {
13351
13352 ;
13353 return 0;
13354 }
13355 _ACEOF
13356 if ac_fn_c_try_link "$LINENO"; then :
13357 eval $cacheid=yes
13358 else
13359 eval $cacheid=no
13360 fi
13361 rm -f core conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
13363 fi
13364
13365
13366 CFLAGS="$xorg_testset_save_CFLAGS"
13367
13368 eval supported=\$$cacheid
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13370 $as_echo "$supported" >&6; }
13371 if test "$supported" = "yes" ; then
13372 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13373 found="yes"
13374 fi
13375 fi
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391 xorg_testset_save_CFLAGS="$CFLAGS"
13392
13393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 int i;
13403 _ACEOF
13404 if ac_fn_c_try_compile "$LINENO"; then :
13405 xorg_cv_cc_flag_unknown_warning_option=yes
13406 else
13407 xorg_cv_cc_flag_unknown_warning_option=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 fi
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13414 CFLAGS="$xorg_testset_save_CFLAGS"
13415 fi
13416
13417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420 fi
13421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 int i;
13430 _ACEOF
13431 if ac_fn_c_try_compile "$LINENO"; then :
13432 xorg_cv_cc_flag_unused_command_line_argument=yes
13433 else
13434 xorg_cv_cc_flag_unused_command_line_argument=no
13435 fi
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 fi
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13441 CFLAGS="$xorg_testset_save_CFLAGS"
13442 fi
13443
13444 found="no"
13445
13446 if test $found = "no" ; then
13447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13449 fi
13450
13451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13453 fi
13454
13455 CFLAGS="$CFLAGS -Wmissing-prototypes"
13456
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13458 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13459 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13460 if eval \${$cacheid+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 int i;
13466 int
13467 main ()
13468 {
13469
13470 ;
13471 return 0;
13472 }
13473 _ACEOF
13474 if ac_fn_c_try_link "$LINENO"; then :
13475 eval $cacheid=yes
13476 else
13477 eval $cacheid=no
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext \
13480 conftest$ac_exeext conftest.$ac_ext
13481 fi
13482
13483
13484 CFLAGS="$xorg_testset_save_CFLAGS"
13485
13486 eval supported=\$$cacheid
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13488 $as_echo "$supported" >&6; }
13489 if test "$supported" = "yes" ; then
13490 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13491 found="yes"
13492 fi
13493 fi
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509 xorg_testset_save_CFLAGS="$CFLAGS"
13510
13511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 int i;
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"; then :
13523 xorg_cv_cc_flag_unknown_warning_option=yes
13524 else
13525 xorg_cv_cc_flag_unknown_warning_option=no
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13532 CFLAGS="$xorg_testset_save_CFLAGS"
13533 fi
13534
13535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13538 fi
13539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547 int i;
13548 _ACEOF
13549 if ac_fn_c_try_compile "$LINENO"; then :
13550 xorg_cv_cc_flag_unused_command_line_argument=yes
13551 else
13552 xorg_cv_cc_flag_unused_command_line_argument=no
13553 fi
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13559 CFLAGS="$xorg_testset_save_CFLAGS"
13560 fi
13561
13562 found="no"
13563
13564 if test $found = "no" ; then
13565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13567 fi
13568
13569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13571 fi
13572
13573 CFLAGS="$CFLAGS -Wnested-externs"
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13576 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13577 cacheid=xorg_cv_cc_flag__Wnested_externs
13578 if eval \${$cacheid+:} false; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583 int i;
13584 int
13585 main ()
13586 {
13587
13588 ;
13589 return 0;
13590 }
13591 _ACEOF
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 eval $cacheid=yes
13594 else
13595 eval $cacheid=no
13596 fi
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 fi
13600
13601
13602 CFLAGS="$xorg_testset_save_CFLAGS"
13603
13604 eval supported=\$$cacheid
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13606 $as_echo "$supported" >&6; }
13607 if test "$supported" = "yes" ; then
13608 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13609 found="yes"
13610 fi
13611 fi
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627 xorg_testset_save_CFLAGS="$CFLAGS"
13628
13629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13632 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13633 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13634 $as_echo_n "(cached) " >&6
13635 else
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13638 int i;
13639 _ACEOF
13640 if ac_fn_c_try_compile "$LINENO"; then :
13641 xorg_cv_cc_flag_unknown_warning_option=yes
13642 else
13643 xorg_cv_cc_flag_unknown_warning_option=no
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13648 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13650 CFLAGS="$xorg_testset_save_CFLAGS"
13651 fi
13652
13653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656 fi
13657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13659 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13660 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665 int i;
13666 _ACEOF
13667 if ac_fn_c_try_compile "$LINENO"; then :
13668 xorg_cv_cc_flag_unused_command_line_argument=yes
13669 else
13670 xorg_cv_cc_flag_unused_command_line_argument=no
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 fi
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13675 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13677 CFLAGS="$xorg_testset_save_CFLAGS"
13678 fi
13679
13680 found="no"
13681
13682 if test $found = "no" ; then
13683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13685 fi
13686
13687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13689 fi
13690
13691 CFLAGS="$CFLAGS -Wbad-function-cast"
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13694 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13695 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13696 if eval \${$cacheid+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13701 int i;
13702 int
13703 main ()
13704 {
13705
13706 ;
13707 return 0;
13708 }
13709 _ACEOF
13710 if ac_fn_c_try_link "$LINENO"; then :
13711 eval $cacheid=yes
13712 else
13713 eval $cacheid=no
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 fi
13718
13719
13720 CFLAGS="$xorg_testset_save_CFLAGS"
13721
13722 eval supported=\$$cacheid
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13724 $as_echo "$supported" >&6; }
13725 if test "$supported" = "yes" ; then
13726 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13727 found="yes"
13728 fi
13729 fi
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745 xorg_testset_save_CFLAGS="$CFLAGS"
13746
13747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 int i;
13757 _ACEOF
13758 if ac_fn_c_try_compile "$LINENO"; then :
13759 xorg_cv_cc_flag_unknown_warning_option=yes
13760 else
13761 xorg_cv_cc_flag_unknown_warning_option=no
13762 fi
13763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 fi
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13768 CFLAGS="$xorg_testset_save_CFLAGS"
13769 fi
13770
13771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13774 fi
13775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 int i;
13784 _ACEOF
13785 if ac_fn_c_try_compile "$LINENO"; then :
13786 xorg_cv_cc_flag_unused_command_line_argument=yes
13787 else
13788 xorg_cv_cc_flag_unused_command_line_argument=no
13789 fi
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13791 fi
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13795 CFLAGS="$xorg_testset_save_CFLAGS"
13796 fi
13797
13798 found="no"
13799
13800 if test $found = "no" ; then
13801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13803 fi
13804
13805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13807 fi
13808
13809 CFLAGS="$CFLAGS -Wold-style-definition"
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13812 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13813 cacheid=xorg_cv_cc_flag__Wold_style_definition
13814 if eval \${$cacheid+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 int i;
13820 int
13821 main ()
13822 {
13823
13824 ;
13825 return 0;
13826 }
13827 _ACEOF
13828 if ac_fn_c_try_link "$LINENO"; then :
13829 eval $cacheid=yes
13830 else
13831 eval $cacheid=no
13832 fi
13833 rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 fi
13836
13837
13838 CFLAGS="$xorg_testset_save_CFLAGS"
13839
13840 eval supported=\$$cacheid
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13842 $as_echo "$supported" >&6; }
13843 if test "$supported" = "yes" ; then
13844 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13845 found="yes"
13846 fi
13847 fi
13848
13849 if test $found = "no" ; then
13850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13852 fi
13853
13854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13856 fi
13857
13858 CFLAGS="$CFLAGS -fd"
13859
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13861 $as_echo_n "checking if $CC supports -fd... " >&6; }
13862 cacheid=xorg_cv_cc_flag__fd
13863 if eval \${$cacheid+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13868 int i;
13869 int
13870 main ()
13871 {
13872
13873 ;
13874 return 0;
13875 }
13876 _ACEOF
13877 if ac_fn_c_try_link "$LINENO"; then :
13878 eval $cacheid=yes
13879 else
13880 eval $cacheid=no
13881 fi
13882 rm -f core conftest.err conftest.$ac_objext \
13883 conftest$ac_exeext conftest.$ac_ext
13884 fi
13885
13886
13887 CFLAGS="$xorg_testset_save_CFLAGS"
13888
13889 eval supported=\$$cacheid
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13891 $as_echo "$supported" >&6; }
13892 if test "$supported" = "yes" ; then
13893 BASE_CFLAGS="$BASE_CFLAGS -fd"
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923 int i;
13924 _ACEOF
13925 if ac_fn_c_try_compile "$LINENO"; then :
13926 xorg_cv_cc_flag_unknown_warning_option=yes
13927 else
13928 xorg_cv_cc_flag_unknown_warning_option=no
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13935 CFLAGS="$xorg_testset_save_CFLAGS"
13936 fi
13937
13938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941 fi
13942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13946 $as_echo_n "(cached) " >&6
13947 else
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13950 int i;
13951 _ACEOF
13952 if ac_fn_c_try_compile "$LINENO"; then :
13953 xorg_cv_cc_flag_unused_command_line_argument=yes
13954 else
13955 xorg_cv_cc_flag_unused_command_line_argument=no
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 fi
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13962 CFLAGS="$xorg_testset_save_CFLAGS"
13963 fi
13964
13965 found="no"
13966
13967 if test $found = "no" ; then
13968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13970 fi
13971
13972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13974 fi
13975
13976 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13977
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13979 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13980 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13981 if eval \${$cacheid+:} false; then :
13982 $as_echo_n "(cached) " >&6
13983 else
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986 int i;
13987 int
13988 main ()
13989 {
13990
13991 ;
13992 return 0;
13993 }
13994 _ACEOF
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 eval $cacheid=yes
13997 else
13998 eval $cacheid=no
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14002 fi
14003
14004
14005 CFLAGS="$xorg_testset_save_CFLAGS"
14006
14007 eval supported=\$$cacheid
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14009 $as_echo "$supported" >&6; }
14010 if test "$supported" = "yes" ; then
14011 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14012 found="yes"
14013 fi
14014 fi
14015
14016
14017
14018
14019
14020 # This chunk adds additional warnings that could catch undesired effects.
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034 xorg_testset_save_CFLAGS="$CFLAGS"
14035
14036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 int i;
14046 _ACEOF
14047 if ac_fn_c_try_compile "$LINENO"; then :
14048 xorg_cv_cc_flag_unknown_warning_option=yes
14049 else
14050 xorg_cv_cc_flag_unknown_warning_option=no
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14057 CFLAGS="$xorg_testset_save_CFLAGS"
14058 fi
14059
14060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14063 fi
14064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072 int i;
14073 _ACEOF
14074 if ac_fn_c_try_compile "$LINENO"; then :
14075 xorg_cv_cc_flag_unused_command_line_argument=yes
14076 else
14077 xorg_cv_cc_flag_unused_command_line_argument=no
14078 fi
14079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14080 fi
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14084 CFLAGS="$xorg_testset_save_CFLAGS"
14085 fi
14086
14087 found="no"
14088
14089 if test $found = "no" ; then
14090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092 fi
14093
14094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14096 fi
14097
14098 CFLAGS="$CFLAGS -Wunused"
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14101 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
14102 cacheid=xorg_cv_cc_flag__Wunused
14103 if eval \${$cacheid+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 int i;
14109 int
14110 main ()
14111 {
14112
14113 ;
14114 return 0;
14115 }
14116 _ACEOF
14117 if ac_fn_c_try_link "$LINENO"; then :
14118 eval $cacheid=yes
14119 else
14120 eval $cacheid=no
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14124 fi
14125
14126
14127 CFLAGS="$xorg_testset_save_CFLAGS"
14128
14129 eval supported=\$$cacheid
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14131 $as_echo "$supported" >&6; }
14132 if test "$supported" = "yes" ; then
14133 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14134 found="yes"
14135 fi
14136 fi
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152 xorg_testset_save_CFLAGS="$CFLAGS"
14153
14154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 int i;
14164 _ACEOF
14165 if ac_fn_c_try_compile "$LINENO"; then :
14166 xorg_cv_cc_flag_unknown_warning_option=yes
14167 else
14168 xorg_cv_cc_flag_unknown_warning_option=no
14169 fi
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14175 CFLAGS="$xorg_testset_save_CFLAGS"
14176 fi
14177
14178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14181 fi
14182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 int i;
14191 _ACEOF
14192 if ac_fn_c_try_compile "$LINENO"; then :
14193 xorg_cv_cc_flag_unused_command_line_argument=yes
14194 else
14195 xorg_cv_cc_flag_unused_command_line_argument=no
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14202 CFLAGS="$xorg_testset_save_CFLAGS"
14203 fi
14204
14205 found="no"
14206
14207 if test $found = "no" ; then
14208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14210 fi
14211
14212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14214 fi
14215
14216 CFLAGS="$CFLAGS -Wuninitialized"
14217
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14219 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14220 cacheid=xorg_cv_cc_flag__Wuninitialized
14221 if eval \${$cacheid+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 int i;
14227 int
14228 main ()
14229 {
14230
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_link "$LINENO"; then :
14236 eval $cacheid=yes
14237 else
14238 eval $cacheid=no
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14242 fi
14243
14244
14245 CFLAGS="$xorg_testset_save_CFLAGS"
14246
14247 eval supported=\$$cacheid
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14249 $as_echo "$supported" >&6; }
14250 if test "$supported" = "yes" ; then
14251 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14252 found="yes"
14253 fi
14254 fi
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270 xorg_testset_save_CFLAGS="$CFLAGS"
14271
14272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 int i;
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 xorg_cv_cc_flag_unknown_warning_option=yes
14285 else
14286 xorg_cv_cc_flag_unknown_warning_option=no
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14293 CFLAGS="$xorg_testset_save_CFLAGS"
14294 fi
14295
14296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14299 fi
14300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14308 int i;
14309 _ACEOF
14310 if ac_fn_c_try_compile "$LINENO"; then :
14311 xorg_cv_cc_flag_unused_command_line_argument=yes
14312 else
14313 xorg_cv_cc_flag_unused_command_line_argument=no
14314 fi
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 fi
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14320 CFLAGS="$xorg_testset_save_CFLAGS"
14321 fi
14322
14323 found="no"
14324
14325 if test $found = "no" ; then
14326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328 fi
14329
14330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14332 fi
14333
14334 CFLAGS="$CFLAGS -Wshadow"
14335
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14337 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14338 cacheid=xorg_cv_cc_flag__Wshadow
14339 if eval \${$cacheid+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 int i;
14345 int
14346 main ()
14347 {
14348
14349 ;
14350 return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 eval $cacheid=yes
14355 else
14356 eval $cacheid=no
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 fi
14361
14362
14363 CFLAGS="$xorg_testset_save_CFLAGS"
14364
14365 eval supported=\$$cacheid
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14367 $as_echo "$supported" >&6; }
14368 if test "$supported" = "yes" ; then
14369 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14370 found="yes"
14371 fi
14372 fi
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388 xorg_testset_save_CFLAGS="$CFLAGS"
14389
14390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399 int i;
14400 _ACEOF
14401 if ac_fn_c_try_compile "$LINENO"; then :
14402 xorg_cv_cc_flag_unknown_warning_option=yes
14403 else
14404 xorg_cv_cc_flag_unknown_warning_option=no
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14411 CFLAGS="$xorg_testset_save_CFLAGS"
14412 fi
14413
14414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14417 fi
14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 int i;
14427 _ACEOF
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429 xorg_cv_cc_flag_unused_command_line_argument=yes
14430 else
14431 xorg_cv_cc_flag_unused_command_line_argument=no
14432 fi
14433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434 fi
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14438 CFLAGS="$xorg_testset_save_CFLAGS"
14439 fi
14440
14441 found="no"
14442
14443 if test $found = "no" ; then
14444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446 fi
14447
14448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14450 fi
14451
14452 CFLAGS="$CFLAGS -Wmissing-noreturn"
14453
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14455 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14456 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14457 if eval \${$cacheid+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 int i;
14463 int
14464 main ()
14465 {
14466
14467 ;
14468 return 0;
14469 }
14470 _ACEOF
14471 if ac_fn_c_try_link "$LINENO"; then :
14472 eval $cacheid=yes
14473 else
14474 eval $cacheid=no
14475 fi
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14478 fi
14479
14480
14481 CFLAGS="$xorg_testset_save_CFLAGS"
14482
14483 eval supported=\$$cacheid
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14485 $as_echo "$supported" >&6; }
14486 if test "$supported" = "yes" ; then
14487 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14488 found="yes"
14489 fi
14490 fi
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506 xorg_testset_save_CFLAGS="$CFLAGS"
14507
14508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 int i;
14518 _ACEOF
14519 if ac_fn_c_try_compile "$LINENO"; then :
14520 xorg_cv_cc_flag_unknown_warning_option=yes
14521 else
14522 xorg_cv_cc_flag_unknown_warning_option=no
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14529 CFLAGS="$xorg_testset_save_CFLAGS"
14530 fi
14531
14532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14535 fi
14536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 int i;
14545 _ACEOF
14546 if ac_fn_c_try_compile "$LINENO"; then :
14547 xorg_cv_cc_flag_unused_command_line_argument=yes
14548 else
14549 xorg_cv_cc_flag_unused_command_line_argument=no
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14556 CFLAGS="$xorg_testset_save_CFLAGS"
14557 fi
14558
14559 found="no"
14560
14561 if test $found = "no" ; then
14562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14564 fi
14565
14566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14568 fi
14569
14570 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14571
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14573 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14574 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14575 if eval \${$cacheid+:} false; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 int i;
14581 int
14582 main ()
14583 {
14584
14585 ;
14586 return 0;
14587 }
14588 _ACEOF
14589 if ac_fn_c_try_link "$LINENO"; then :
14590 eval $cacheid=yes
14591 else
14592 eval $cacheid=no
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext \
14595 conftest$ac_exeext conftest.$ac_ext
14596 fi
14597
14598
14599 CFLAGS="$xorg_testset_save_CFLAGS"
14600
14601 eval supported=\$$cacheid
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14603 $as_echo "$supported" >&6; }
14604 if test "$supported" = "yes" ; then
14605 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14606 found="yes"
14607 fi
14608 fi
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624 xorg_testset_save_CFLAGS="$CFLAGS"
14625
14626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635 int i;
14636 _ACEOF
14637 if ac_fn_c_try_compile "$LINENO"; then :
14638 xorg_cv_cc_flag_unknown_warning_option=yes
14639 else
14640 xorg_cv_cc_flag_unknown_warning_option=no
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 fi
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14647 CFLAGS="$xorg_testset_save_CFLAGS"
14648 fi
14649
14650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653 fi
14654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14662 int i;
14663 _ACEOF
14664 if ac_fn_c_try_compile "$LINENO"; then :
14665 xorg_cv_cc_flag_unused_command_line_argument=yes
14666 else
14667 xorg_cv_cc_flag_unused_command_line_argument=no
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 fi
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14674 CFLAGS="$xorg_testset_save_CFLAGS"
14675 fi
14676
14677 found="no"
14678
14679 if test $found = "no" ; then
14680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14682 fi
14683
14684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14686 fi
14687
14688 CFLAGS="$CFLAGS -Wredundant-decls"
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14691 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14692 cacheid=xorg_cv_cc_flag__Wredundant_decls
14693 if eval \${$cacheid+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698 int i;
14699 int
14700 main ()
14701 {
14702
14703 ;
14704 return 0;
14705 }
14706 _ACEOF
14707 if ac_fn_c_try_link "$LINENO"; then :
14708 eval $cacheid=yes
14709 else
14710 eval $cacheid=no
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext \
14713 conftest$ac_exeext conftest.$ac_ext
14714 fi
14715
14716
14717 CFLAGS="$xorg_testset_save_CFLAGS"
14718
14719 eval supported=\$$cacheid
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14721 $as_echo "$supported" >&6; }
14722 if test "$supported" = "yes" ; then
14723 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14724 found="yes"
14725 fi
14726 fi
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742 xorg_testset_save_CFLAGS="$CFLAGS"
14743
14744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 int i;
14754 _ACEOF
14755 if ac_fn_c_try_compile "$LINENO"; then :
14756 xorg_cv_cc_flag_unknown_warning_option=yes
14757 else
14758 xorg_cv_cc_flag_unknown_warning_option=no
14759 fi
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 fi
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14765 CFLAGS="$xorg_testset_save_CFLAGS"
14766 fi
14767
14768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771 fi
14772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14780 int i;
14781 _ACEOF
14782 if ac_fn_c_try_compile "$LINENO"; then :
14783 xorg_cv_cc_flag_unused_command_line_argument=yes
14784 else
14785 xorg_cv_cc_flag_unused_command_line_argument=no
14786 fi
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 fi
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14792 CFLAGS="$xorg_testset_save_CFLAGS"
14793 fi
14794
14795 found="no"
14796
14797 if test $found = "no" ; then
14798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14800 fi
14801
14802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14804 fi
14805
14806 CFLAGS="$CFLAGS -Wlogical-op"
14807
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14809 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14810 cacheid=xorg_cv_cc_flag__Wlogical_op
14811 if eval \${$cacheid+:} false; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 int i;
14817 int
14818 main ()
14819 {
14820
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 if ac_fn_c_try_link "$LINENO"; then :
14826 eval $cacheid=yes
14827 else
14828 eval $cacheid=no
14829 fi
14830 rm -f core conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
14832 fi
14833
14834
14835 CFLAGS="$xorg_testset_save_CFLAGS"
14836
14837 eval supported=\$$cacheid
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14839 $as_echo "$supported" >&6; }
14840 if test "$supported" = "yes" ; then
14841 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14842 found="yes"
14843 fi
14844 fi
14845
14846
14847
14848 # These are currently disabled because they are noisy. They will be enabled
14849 # in the future once the codebase is sufficiently modernized to silence
14850 # them. For now, I don't want them to drown out the other warnings.
14851 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14852 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14853 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14854
14855 # Turn some warnings into errors, so we don't accidently get successful builds
14856 # when there are problems that should be fixed.
14857
14858 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872 xorg_testset_save_CFLAGS="$CFLAGS"
14873
14874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14877 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14878 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14883 int i;
14884 _ACEOF
14885 if ac_fn_c_try_compile "$LINENO"; then :
14886 xorg_cv_cc_flag_unknown_warning_option=yes
14887 else
14888 xorg_cv_cc_flag_unknown_warning_option=no
14889 fi
14890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14891 fi
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14893 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14895 CFLAGS="$xorg_testset_save_CFLAGS"
14896 fi
14897
14898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14901 fi
14902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14904 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14905 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910 int i;
14911 _ACEOF
14912 if ac_fn_c_try_compile "$LINENO"; then :
14913 xorg_cv_cc_flag_unused_command_line_argument=yes
14914 else
14915 xorg_cv_cc_flag_unused_command_line_argument=no
14916 fi
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 fi
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14920 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14922 CFLAGS="$xorg_testset_save_CFLAGS"
14923 fi
14924
14925 found="no"
14926
14927 if test $found = "no" ; then
14928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14930 fi
14931
14932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14934 fi
14935
14936 CFLAGS="$CFLAGS -Werror=implicit"
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14939 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14940 cacheid=xorg_cv_cc_flag__Werror_implicit
14941 if eval \${$cacheid+:} false; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 int i;
14947 int
14948 main ()
14949 {
14950
14951 ;
14952 return 0;
14953 }
14954 _ACEOF
14955 if ac_fn_c_try_link "$LINENO"; then :
14956 eval $cacheid=yes
14957 else
14958 eval $cacheid=no
14959 fi
14960 rm -f core conftest.err conftest.$ac_objext \
14961 conftest$ac_exeext conftest.$ac_ext
14962 fi
14963
14964
14965 CFLAGS="$xorg_testset_save_CFLAGS"
14966
14967 eval supported=\$$cacheid
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14969 $as_echo "$supported" >&6; }
14970 if test "$supported" = "yes" ; then
14971 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14972 found="yes"
14973 fi
14974 fi
14975
14976 if test $found = "no" ; then
14977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979 fi
14980
14981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14983 fi
14984
14985 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14986
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14988 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14989 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14990 if eval \${$cacheid+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 int i;
14996 int
14997 main ()
14998 {
14999
15000 ;
15001 return 0;
15002 }
15003 _ACEOF
15004 if ac_fn_c_try_link "$LINENO"; then :
15005 eval $cacheid=yes
15006 else
15007 eval $cacheid=no
15008 fi
15009 rm -f core conftest.err conftest.$ac_objext \
15010 conftest$ac_exeext conftest.$ac_ext
15011 fi
15012
15013
15014 CFLAGS="$xorg_testset_save_CFLAGS"
15015
15016 eval supported=\$$cacheid
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15018 $as_echo "$supported" >&6; }
15019 if test "$supported" = "yes" ; then
15020 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15021 found="yes"
15022 fi
15023 fi
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039 xorg_testset_save_CFLAGS="$CFLAGS"
15040
15041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15044 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15045 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15046 $as_echo_n "(cached) " >&6
15047 else
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15050 int i;
15051 _ACEOF
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053 xorg_cv_cc_flag_unknown_warning_option=yes
15054 else
15055 xorg_cv_cc_flag_unknown_warning_option=no
15056 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 fi
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15060 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15062 CFLAGS="$xorg_testset_save_CFLAGS"
15063 fi
15064
15065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068 fi
15069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15071 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15072 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15077 int i;
15078 _ACEOF
15079 if ac_fn_c_try_compile "$LINENO"; then :
15080 xorg_cv_cc_flag_unused_command_line_argument=yes
15081 else
15082 xorg_cv_cc_flag_unused_command_line_argument=no
15083 fi
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 fi
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15087 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15089 CFLAGS="$xorg_testset_save_CFLAGS"
15090 fi
15091
15092 found="no"
15093
15094 if test $found = "no" ; then
15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097 fi
15098
15099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101 fi
15102
15103 CFLAGS="$CFLAGS -Werror=nonnull"
15104
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15106 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15107 cacheid=xorg_cv_cc_flag__Werror_nonnull
15108 if eval \${$cacheid+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 int i;
15114 int
15115 main ()
15116 {
15117
15118 ;
15119 return 0;
15120 }
15121 _ACEOF
15122 if ac_fn_c_try_link "$LINENO"; then :
15123 eval $cacheid=yes
15124 else
15125 eval $cacheid=no
15126 fi
15127 rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129 fi
15130
15131
15132 CFLAGS="$xorg_testset_save_CFLAGS"
15133
15134 eval supported=\$$cacheid
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15136 $as_echo "$supported" >&6; }
15137 if test "$supported" = "yes" ; then
15138 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15139 found="yes"
15140 fi
15141 fi
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 xorg_testset_save_CFLAGS="$CFLAGS"
15158
15159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15162 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15163 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15168 int i;
15169 _ACEOF
15170 if ac_fn_c_try_compile "$LINENO"; then :
15171 xorg_cv_cc_flag_unknown_warning_option=yes
15172 else
15173 xorg_cv_cc_flag_unknown_warning_option=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 fi
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15178 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15180 CFLAGS="$xorg_testset_save_CFLAGS"
15181 fi
15182
15183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15186 fi
15187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15189 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15190 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15191 $as_echo_n "(cached) " >&6
15192 else
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195 int i;
15196 _ACEOF
15197 if ac_fn_c_try_compile "$LINENO"; then :
15198 xorg_cv_cc_flag_unused_command_line_argument=yes
15199 else
15200 xorg_cv_cc_flag_unused_command_line_argument=no
15201 fi
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 fi
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15205 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15207 CFLAGS="$xorg_testset_save_CFLAGS"
15208 fi
15209
15210 found="no"
15211
15212 if test $found = "no" ; then
15213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15215 fi
15216
15217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15219 fi
15220
15221 CFLAGS="$CFLAGS -Werror=init-self"
15222
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15224 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15225 cacheid=xorg_cv_cc_flag__Werror_init_self
15226 if eval \${$cacheid+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231 int i;
15232 int
15233 main ()
15234 {
15235
15236 ;
15237 return 0;
15238 }
15239 _ACEOF
15240 if ac_fn_c_try_link "$LINENO"; then :
15241 eval $cacheid=yes
15242 else
15243 eval $cacheid=no
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15247 fi
15248
15249
15250 CFLAGS="$xorg_testset_save_CFLAGS"
15251
15252 eval supported=\$$cacheid
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15254 $as_echo "$supported" >&6; }
15255 if test "$supported" = "yes" ; then
15256 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15257 found="yes"
15258 fi
15259 fi
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275 xorg_testset_save_CFLAGS="$CFLAGS"
15276
15277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15282 $as_echo_n "(cached) " >&6
15283 else
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286 int i;
15287 _ACEOF
15288 if ac_fn_c_try_compile "$LINENO"; then :
15289 xorg_cv_cc_flag_unknown_warning_option=yes
15290 else
15291 xorg_cv_cc_flag_unknown_warning_option=no
15292 fi
15293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15298 CFLAGS="$xorg_testset_save_CFLAGS"
15299 fi
15300
15301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15304 fi
15305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15309 $as_echo_n "(cached) " >&6
15310 else
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 int i;
15314 _ACEOF
15315 if ac_fn_c_try_compile "$LINENO"; then :
15316 xorg_cv_cc_flag_unused_command_line_argument=yes
15317 else
15318 xorg_cv_cc_flag_unused_command_line_argument=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15325 CFLAGS="$xorg_testset_save_CFLAGS"
15326 fi
15327
15328 found="no"
15329
15330 if test $found = "no" ; then
15331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15333 fi
15334
15335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15337 fi
15338
15339 CFLAGS="$CFLAGS -Werror=main"
15340
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15342 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15343 cacheid=xorg_cv_cc_flag__Werror_main
15344 if eval \${$cacheid+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 int i;
15350 int
15351 main ()
15352 {
15353
15354 ;
15355 return 0;
15356 }
15357 _ACEOF
15358 if ac_fn_c_try_link "$LINENO"; then :
15359 eval $cacheid=yes
15360 else
15361 eval $cacheid=no
15362 fi
15363 rm -f core conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
15365 fi
15366
15367
15368 CFLAGS="$xorg_testset_save_CFLAGS"
15369
15370 eval supported=\$$cacheid
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15372 $as_echo "$supported" >&6; }
15373 if test "$supported" = "yes" ; then
15374 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15375 found="yes"
15376 fi
15377 fi
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393 xorg_testset_save_CFLAGS="$CFLAGS"
15394
15395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15400 $as_echo_n "(cached) " >&6
15401 else
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 int i;
15405 _ACEOF
15406 if ac_fn_c_try_compile "$LINENO"; then :
15407 xorg_cv_cc_flag_unknown_warning_option=yes
15408 else
15409 xorg_cv_cc_flag_unknown_warning_option=no
15410 fi
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 fi
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15416 CFLAGS="$xorg_testset_save_CFLAGS"
15417 fi
15418
15419 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15422 fi
15423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15427 $as_echo_n "(cached) " >&6
15428 else
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 int i;
15432 _ACEOF
15433 if ac_fn_c_try_compile "$LINENO"; then :
15434 xorg_cv_cc_flag_unused_command_line_argument=yes
15435 else
15436 xorg_cv_cc_flag_unused_command_line_argument=no
15437 fi
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 fi
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15443 CFLAGS="$xorg_testset_save_CFLAGS"
15444 fi
15445
15446 found="no"
15447
15448 if test $found = "no" ; then
15449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15451 fi
15452
15453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15455 fi
15456
15457 CFLAGS="$CFLAGS -Werror=missing-braces"
15458
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15460 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15461 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15462 if eval \${$cacheid+:} false; then :
15463 $as_echo_n "(cached) " >&6
15464 else
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 int i;
15468 int
15469 main ()
15470 {
15471
15472 ;
15473 return 0;
15474 }
15475 _ACEOF
15476 if ac_fn_c_try_link "$LINENO"; then :
15477 eval $cacheid=yes
15478 else
15479 eval $cacheid=no
15480 fi
15481 rm -f core conftest.err conftest.$ac_objext \
15482 conftest$ac_exeext conftest.$ac_ext
15483 fi
15484
15485
15486 CFLAGS="$xorg_testset_save_CFLAGS"
15487
15488 eval supported=\$$cacheid
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15490 $as_echo "$supported" >&6; }
15491 if test "$supported" = "yes" ; then
15492 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15493 found="yes"
15494 fi
15495 fi
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511 xorg_testset_save_CFLAGS="$CFLAGS"
15512
15513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15516 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15517 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15518 $as_echo_n "(cached) " >&6
15519 else
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15522 int i;
15523 _ACEOF
15524 if ac_fn_c_try_compile "$LINENO"; then :
15525 xorg_cv_cc_flag_unknown_warning_option=yes
15526 else
15527 xorg_cv_cc_flag_unknown_warning_option=no
15528 fi
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 fi
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15532 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15534 CFLAGS="$xorg_testset_save_CFLAGS"
15535 fi
15536
15537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15540 fi
15541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15543 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15544 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 int i;
15550 _ACEOF
15551 if ac_fn_c_try_compile "$LINENO"; then :
15552 xorg_cv_cc_flag_unused_command_line_argument=yes
15553 else
15554 xorg_cv_cc_flag_unused_command_line_argument=no
15555 fi
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15559 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15561 CFLAGS="$xorg_testset_save_CFLAGS"
15562 fi
15563
15564 found="no"
15565
15566 if test $found = "no" ; then
15567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15569 fi
15570
15571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15573 fi
15574
15575 CFLAGS="$CFLAGS -Werror=sequence-point"
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15578 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15579 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15580 if eval \${$cacheid+:} false; then :
15581 $as_echo_n "(cached) " >&6
15582 else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 int i;
15586 int
15587 main ()
15588 {
15589
15590 ;
15591 return 0;
15592 }
15593 _ACEOF
15594 if ac_fn_c_try_link "$LINENO"; then :
15595 eval $cacheid=yes
15596 else
15597 eval $cacheid=no
15598 fi
15599 rm -f core conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 fi
15602
15603
15604 CFLAGS="$xorg_testset_save_CFLAGS"
15605
15606 eval supported=\$$cacheid
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15608 $as_echo "$supported" >&6; }
15609 if test "$supported" = "yes" ; then
15610 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15611 found="yes"
15612 fi
15613 fi
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629 xorg_testset_save_CFLAGS="$CFLAGS"
15630
15631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 int i;
15641 _ACEOF
15642 if ac_fn_c_try_compile "$LINENO"; then :
15643 xorg_cv_cc_flag_unknown_warning_option=yes
15644 else
15645 xorg_cv_cc_flag_unknown_warning_option=no
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648 fi
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652 CFLAGS="$xorg_testset_save_CFLAGS"
15653 fi
15654
15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 fi
15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 int i;
15668 _ACEOF
15669 if ac_fn_c_try_compile "$LINENO"; then :
15670 xorg_cv_cc_flag_unused_command_line_argument=yes
15671 else
15672 xorg_cv_cc_flag_unused_command_line_argument=no
15673 fi
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 fi
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15679 CFLAGS="$xorg_testset_save_CFLAGS"
15680 fi
15681
15682 found="no"
15683
15684 if test $found = "no" ; then
15685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15687 fi
15688
15689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15691 fi
15692
15693 CFLAGS="$CFLAGS -Werror=return-type"
15694
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15696 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15697 cacheid=xorg_cv_cc_flag__Werror_return_type
15698 if eval \${$cacheid+:} false; then :
15699 $as_echo_n "(cached) " >&6
15700 else
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 int i;
15704 int
15705 main ()
15706 {
15707
15708 ;
15709 return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_link "$LINENO"; then :
15713 eval $cacheid=yes
15714 else
15715 eval $cacheid=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext \
15718 conftest$ac_exeext conftest.$ac_ext
15719 fi
15720
15721
15722 CFLAGS="$xorg_testset_save_CFLAGS"
15723
15724 eval supported=\$$cacheid
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15726 $as_echo "$supported" >&6; }
15727 if test "$supported" = "yes" ; then
15728 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15729 found="yes"
15730 fi
15731 fi
15732
15733 if test $found = "no" ; then
15734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736 fi
15737
15738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15740 fi
15741
15742 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15743
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15745 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15746 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15747 if eval \${$cacheid+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 int i;
15753 int
15754 main ()
15755 {
15756
15757 ;
15758 return 0;
15759 }
15760 _ACEOF
15761 if ac_fn_c_try_link "$LINENO"; then :
15762 eval $cacheid=yes
15763 else
15764 eval $cacheid=no
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext \
15767 conftest$ac_exeext conftest.$ac_ext
15768 fi
15769
15770
15771 CFLAGS="$xorg_testset_save_CFLAGS"
15772
15773 eval supported=\$$cacheid
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15775 $as_echo "$supported" >&6; }
15776 if test "$supported" = "yes" ; then
15777 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15778 found="yes"
15779 fi
15780 fi
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796 xorg_testset_save_CFLAGS="$CFLAGS"
15797
15798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15803 $as_echo_n "(cached) " >&6
15804 else
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"; then :
15810 xorg_cv_cc_flag_unknown_warning_option=yes
15811 else
15812 xorg_cv_cc_flag_unknown_warning_option=no
15813 fi
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 fi
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15819 CFLAGS="$xorg_testset_save_CFLAGS"
15820 fi
15821
15822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15825 fi
15826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 int i;
15835 _ACEOF
15836 if ac_fn_c_try_compile "$LINENO"; then :
15837 xorg_cv_cc_flag_unused_command_line_argument=yes
15838 else
15839 xorg_cv_cc_flag_unused_command_line_argument=no
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 fi
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15846 CFLAGS="$xorg_testset_save_CFLAGS"
15847 fi
15848
15849 found="no"
15850
15851 if test $found = "no" ; then
15852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15854 fi
15855
15856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15858 fi
15859
15860 CFLAGS="$CFLAGS -Werror=trigraphs"
15861
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15863 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15864 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15865 if eval \${$cacheid+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 int i;
15871 int
15872 main ()
15873 {
15874
15875 ;
15876 return 0;
15877 }
15878 _ACEOF
15879 if ac_fn_c_try_link "$LINENO"; then :
15880 eval $cacheid=yes
15881 else
15882 eval $cacheid=no
15883 fi
15884 rm -f core conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15886 fi
15887
15888
15889 CFLAGS="$xorg_testset_save_CFLAGS"
15890
15891 eval supported=\$$cacheid
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15893 $as_echo "$supported" >&6; }
15894 if test "$supported" = "yes" ; then
15895 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15896 found="yes"
15897 fi
15898 fi
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914 xorg_testset_save_CFLAGS="$CFLAGS"
15915
15916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15921 $as_echo_n "(cached) " >&6
15922 else
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925 int i;
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"; then :
15928 xorg_cv_cc_flag_unknown_warning_option=yes
15929 else
15930 xorg_cv_cc_flag_unknown_warning_option=no
15931 fi
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 fi
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15937 CFLAGS="$xorg_testset_save_CFLAGS"
15938 fi
15939
15940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15943 fi
15944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15948 $as_echo_n "(cached) " >&6
15949 else
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 int i;
15953 _ACEOF
15954 if ac_fn_c_try_compile "$LINENO"; then :
15955 xorg_cv_cc_flag_unused_command_line_argument=yes
15956 else
15957 xorg_cv_cc_flag_unused_command_line_argument=no
15958 fi
15959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960 fi
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15964 CFLAGS="$xorg_testset_save_CFLAGS"
15965 fi
15966
15967 found="no"
15968
15969 if test $found = "no" ; then
15970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15972 fi
15973
15974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15976 fi
15977
15978 CFLAGS="$CFLAGS -Werror=array-bounds"
15979
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15981 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15982 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15983 if eval \${$cacheid+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 int i;
15989 int
15990 main ()
15991 {
15992
15993 ;
15994 return 0;
15995 }
15996 _ACEOF
15997 if ac_fn_c_try_link "$LINENO"; then :
15998 eval $cacheid=yes
15999 else
16000 eval $cacheid=no
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004 fi
16005
16006
16007 CFLAGS="$xorg_testset_save_CFLAGS"
16008
16009 eval supported=\$$cacheid
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16011 $as_echo "$supported" >&6; }
16012 if test "$supported" = "yes" ; then
16013 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16014 found="yes"
16015 fi
16016 fi
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032 xorg_testset_save_CFLAGS="$CFLAGS"
16033
16034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16039 $as_echo_n "(cached) " >&6
16040 else
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 int i;
16044 _ACEOF
16045 if ac_fn_c_try_compile "$LINENO"; then :
16046 xorg_cv_cc_flag_unknown_warning_option=yes
16047 else
16048 xorg_cv_cc_flag_unknown_warning_option=no
16049 fi
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 fi
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16055 CFLAGS="$xorg_testset_save_CFLAGS"
16056 fi
16057
16058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061 fi
16062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 int i;
16071 _ACEOF
16072 if ac_fn_c_try_compile "$LINENO"; then :
16073 xorg_cv_cc_flag_unused_command_line_argument=yes
16074 else
16075 xorg_cv_cc_flag_unused_command_line_argument=no
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16082 CFLAGS="$xorg_testset_save_CFLAGS"
16083 fi
16084
16085 found="no"
16086
16087 if test $found = "no" ; then
16088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16090 fi
16091
16092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16094 fi
16095
16096 CFLAGS="$CFLAGS -Werror=write-strings"
16097
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16099 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16100 cacheid=xorg_cv_cc_flag__Werror_write_strings
16101 if eval \${$cacheid+:} false; then :
16102 $as_echo_n "(cached) " >&6
16103 else
16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16106 int i;
16107 int
16108 main ()
16109 {
16110
16111 ;
16112 return 0;
16113 }
16114 _ACEOF
16115 if ac_fn_c_try_link "$LINENO"; then :
16116 eval $cacheid=yes
16117 else
16118 eval $cacheid=no
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext \
16121 conftest$ac_exeext conftest.$ac_ext
16122 fi
16123
16124
16125 CFLAGS="$xorg_testset_save_CFLAGS"
16126
16127 eval supported=\$$cacheid
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16129 $as_echo "$supported" >&6; }
16130 if test "$supported" = "yes" ; then
16131 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16132 found="yes"
16133 fi
16134 fi
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150 xorg_testset_save_CFLAGS="$CFLAGS"
16151
16152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16155 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16156 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16157 $as_echo_n "(cached) " >&6
16158 else
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161 int i;
16162 _ACEOF
16163 if ac_fn_c_try_compile "$LINENO"; then :
16164 xorg_cv_cc_flag_unknown_warning_option=yes
16165 else
16166 xorg_cv_cc_flag_unknown_warning_option=no
16167 fi
16168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16171 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16173 CFLAGS="$xorg_testset_save_CFLAGS"
16174 fi
16175
16176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16179 fi
16180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16182 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16183 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16184 $as_echo_n "(cached) " >&6
16185 else
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 int i;
16189 _ACEOF
16190 if ac_fn_c_try_compile "$LINENO"; then :
16191 xorg_cv_cc_flag_unused_command_line_argument=yes
16192 else
16193 xorg_cv_cc_flag_unused_command_line_argument=no
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196 fi
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16198 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16200 CFLAGS="$xorg_testset_save_CFLAGS"
16201 fi
16202
16203 found="no"
16204
16205 if test $found = "no" ; then
16206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16208 fi
16209
16210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16212 fi
16213
16214 CFLAGS="$CFLAGS -Werror=address"
16215
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16217 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16218 cacheid=xorg_cv_cc_flag__Werror_address
16219 if eval \${$cacheid+:} false; then :
16220 $as_echo_n "(cached) " >&6
16221 else
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 int i;
16225 int
16226 main ()
16227 {
16228
16229 ;
16230 return 0;
16231 }
16232 _ACEOF
16233 if ac_fn_c_try_link "$LINENO"; then :
16234 eval $cacheid=yes
16235 else
16236 eval $cacheid=no
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240 fi
16241
16242
16243 CFLAGS="$xorg_testset_save_CFLAGS"
16244
16245 eval supported=\$$cacheid
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16247 $as_echo "$supported" >&6; }
16248 if test "$supported" = "yes" ; then
16249 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16250 found="yes"
16251 fi
16252 fi
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268 xorg_testset_save_CFLAGS="$CFLAGS"
16269
16270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 int i;
16280 _ACEOF
16281 if ac_fn_c_try_compile "$LINENO"; then :
16282 xorg_cv_cc_flag_unknown_warning_option=yes
16283 else
16284 xorg_cv_cc_flag_unknown_warning_option=no
16285 fi
16286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287 fi
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16291 CFLAGS="$xorg_testset_save_CFLAGS"
16292 fi
16293
16294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16297 fi
16298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 int i;
16307 _ACEOF
16308 if ac_fn_c_try_compile "$LINENO"; then :
16309 xorg_cv_cc_flag_unused_command_line_argument=yes
16310 else
16311 xorg_cv_cc_flag_unused_command_line_argument=no
16312 fi
16313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314 fi
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16318 CFLAGS="$xorg_testset_save_CFLAGS"
16319 fi
16320
16321 found="no"
16322
16323 if test $found = "no" ; then
16324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16326 fi
16327
16328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16330 fi
16331
16332 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16335 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16336 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16337 if eval \${$cacheid+:} false; then :
16338 $as_echo_n "(cached) " >&6
16339 else
16340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341 /* end confdefs.h. */
16342 int i;
16343 int
16344 main ()
16345 {
16346
16347 ;
16348 return 0;
16349 }
16350 _ACEOF
16351 if ac_fn_c_try_link "$LINENO"; then :
16352 eval $cacheid=yes
16353 else
16354 eval $cacheid=no
16355 fi
16356 rm -f core conftest.err conftest.$ac_objext \
16357 conftest$ac_exeext conftest.$ac_ext
16358 fi
16359
16360
16361 CFLAGS="$xorg_testset_save_CFLAGS"
16362
16363 eval supported=\$$cacheid
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16365 $as_echo "$supported" >&6; }
16366 if test "$supported" = "yes" ; then
16367 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
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_BAD_PTR_INT_COMBINATION"
16382
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16384 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16385 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16386 if eval \${$cacheid+:} false; then :
16387 $as_echo_n "(cached) " >&6
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 int i;
16392 int
16393 main ()
16394 {
16395
16396 ;
16397 return 0;
16398 }
16399 _ACEOF
16400 if ac_fn_c_try_link "$LINENO"; then :
16401 eval $cacheid=yes
16402 else
16403 eval $cacheid=no
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16407 fi
16408
16409
16410 CFLAGS="$xorg_testset_save_CFLAGS"
16411
16412 eval supported=\$$cacheid
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16414 $as_echo "$supported" >&6; }
16415 if test "$supported" = "yes" ; then
16416 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16417 found="yes"
16418 fi
16419 fi
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435 xorg_testset_save_CFLAGS="$CFLAGS"
16436
16437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16440 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16441 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16442 $as_echo_n "(cached) " >&6
16443 else
16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16446 int i;
16447 _ACEOF
16448 if ac_fn_c_try_compile "$LINENO"; then :
16449 xorg_cv_cc_flag_unknown_warning_option=yes
16450 else
16451 xorg_cv_cc_flag_unknown_warning_option=no
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 fi
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16456 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16458 CFLAGS="$xorg_testset_save_CFLAGS"
16459 fi
16460
16461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16464 fi
16465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16467 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16468 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 int i;
16474 _ACEOF
16475 if ac_fn_c_try_compile "$LINENO"; then :
16476 xorg_cv_cc_flag_unused_command_line_argument=yes
16477 else
16478 xorg_cv_cc_flag_unused_command_line_argument=no
16479 fi
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 fi
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16483 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16485 CFLAGS="$xorg_testset_save_CFLAGS"
16486 fi
16487
16488 found="no"
16489
16490 if test $found = "no" ; then
16491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16493 fi
16494
16495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 fi
16498
16499 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16500
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16502 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16503 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16504 if eval \${$cacheid+:} false; then :
16505 $as_echo_n "(cached) " >&6
16506 else
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509 int i;
16510 int
16511 main ()
16512 {
16513
16514 ;
16515 return 0;
16516 }
16517 _ACEOF
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 eval $cacheid=yes
16520 else
16521 eval $cacheid=no
16522 fi
16523 rm -f core conftest.err conftest.$ac_objext \
16524 conftest$ac_exeext conftest.$ac_ext
16525 fi
16526
16527
16528 CFLAGS="$xorg_testset_save_CFLAGS"
16529
16530 eval supported=\$$cacheid
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16532 $as_echo "$supported" >&6; }
16533 if test "$supported" = "yes" ; then
16534 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16535 found="yes"
16536 fi
16537 fi
16538
16539 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16540 else
16541 { $as_echo "$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
16542 $as_echo "$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;}
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556 xorg_testset_save_CFLAGS="$CFLAGS"
16557
16558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16563 $as_echo_n "(cached) " >&6
16564 else
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16567 int i;
16568 _ACEOF
16569 if ac_fn_c_try_compile "$LINENO"; then :
16570 xorg_cv_cc_flag_unknown_warning_option=yes
16571 else
16572 xorg_cv_cc_flag_unknown_warning_option=no
16573 fi
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 fi
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16579 CFLAGS="$xorg_testset_save_CFLAGS"
16580 fi
16581
16582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16585 fi
16586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594 int i;
16595 _ACEOF
16596 if ac_fn_c_try_compile "$LINENO"; then :
16597 xorg_cv_cc_flag_unused_command_line_argument=yes
16598 else
16599 xorg_cv_cc_flag_unused_command_line_argument=no
16600 fi
16601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602 fi
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16606 CFLAGS="$xorg_testset_save_CFLAGS"
16607 fi
16608
16609 found="no"
16610
16611 if test $found = "no" ; then
16612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614 fi
16615
16616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16618 fi
16619
16620 CFLAGS="$CFLAGS -Wimplicit"
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16623 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16624 cacheid=xorg_cv_cc_flag__Wimplicit
16625 if eval \${$cacheid+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630 int i;
16631 int
16632 main ()
16633 {
16634
16635 ;
16636 return 0;
16637 }
16638 _ACEOF
16639 if ac_fn_c_try_link "$LINENO"; then :
16640 eval $cacheid=yes
16641 else
16642 eval $cacheid=no
16643 fi
16644 rm -f core conftest.err conftest.$ac_objext \
16645 conftest$ac_exeext conftest.$ac_ext
16646 fi
16647
16648
16649 CFLAGS="$xorg_testset_save_CFLAGS"
16650
16651 eval supported=\$$cacheid
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16653 $as_echo "$supported" >&6; }
16654 if test "$supported" = "yes" ; then
16655 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16656 found="yes"
16657 fi
16658 fi
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674 xorg_testset_save_CFLAGS="$CFLAGS"
16675
16676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685 int i;
16686 _ACEOF
16687 if ac_fn_c_try_compile "$LINENO"; then :
16688 xorg_cv_cc_flag_unknown_warning_option=yes
16689 else
16690 xorg_cv_cc_flag_unknown_warning_option=no
16691 fi
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 fi
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16697 CFLAGS="$xorg_testset_save_CFLAGS"
16698 fi
16699
16700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16703 fi
16704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16708 $as_echo_n "(cached) " >&6
16709 else
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16712 int i;
16713 _ACEOF
16714 if ac_fn_c_try_compile "$LINENO"; then :
16715 xorg_cv_cc_flag_unused_command_line_argument=yes
16716 else
16717 xorg_cv_cc_flag_unused_command_line_argument=no
16718 fi
16719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720 fi
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16724 CFLAGS="$xorg_testset_save_CFLAGS"
16725 fi
16726
16727 found="no"
16728
16729 if test $found = "no" ; then
16730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732 fi
16733
16734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16736 fi
16737
16738 CFLAGS="$CFLAGS -Wnonnull"
16739
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16741 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16742 cacheid=xorg_cv_cc_flag__Wnonnull
16743 if eval \${$cacheid+:} false; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16748 int i;
16749 int
16750 main ()
16751 {
16752
16753 ;
16754 return 0;
16755 }
16756 _ACEOF
16757 if ac_fn_c_try_link "$LINENO"; then :
16758 eval $cacheid=yes
16759 else
16760 eval $cacheid=no
16761 fi
16762 rm -f core conftest.err conftest.$ac_objext \
16763 conftest$ac_exeext conftest.$ac_ext
16764 fi
16765
16766
16767 CFLAGS="$xorg_testset_save_CFLAGS"
16768
16769 eval supported=\$$cacheid
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16771 $as_echo "$supported" >&6; }
16772 if test "$supported" = "yes" ; then
16773 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16774 found="yes"
16775 fi
16776 fi
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792 xorg_testset_save_CFLAGS="$CFLAGS"
16793
16794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16799 $as_echo_n "(cached) " >&6
16800 else
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16803 int i;
16804 _ACEOF
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806 xorg_cv_cc_flag_unknown_warning_option=yes
16807 else
16808 xorg_cv_cc_flag_unknown_warning_option=no
16809 fi
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 fi
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16815 CFLAGS="$xorg_testset_save_CFLAGS"
16816 fi
16817
16818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16821 fi
16822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827 else
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16830 int i;
16831 _ACEOF
16832 if ac_fn_c_try_compile "$LINENO"; then :
16833 xorg_cv_cc_flag_unused_command_line_argument=yes
16834 else
16835 xorg_cv_cc_flag_unused_command_line_argument=no
16836 fi
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 fi
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16842 CFLAGS="$xorg_testset_save_CFLAGS"
16843 fi
16844
16845 found="no"
16846
16847 if test $found = "no" ; then
16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850 fi
16851
16852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16854 fi
16855
16856 CFLAGS="$CFLAGS -Winit-self"
16857
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16859 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16860 cacheid=xorg_cv_cc_flag__Winit_self
16861 if eval \${$cacheid+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866 int i;
16867 int
16868 main ()
16869 {
16870
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"; then :
16876 eval $cacheid=yes
16877 else
16878 eval $cacheid=no
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16882 fi
16883
16884
16885 CFLAGS="$xorg_testset_save_CFLAGS"
16886
16887 eval supported=\$$cacheid
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16889 $as_echo "$supported" >&6; }
16890 if test "$supported" = "yes" ; then
16891 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16892 found="yes"
16893 fi
16894 fi
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910 xorg_testset_save_CFLAGS="$CFLAGS"
16911
16912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16917 $as_echo_n "(cached) " >&6
16918 else
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921 int i;
16922 _ACEOF
16923 if ac_fn_c_try_compile "$LINENO"; then :
16924 xorg_cv_cc_flag_unknown_warning_option=yes
16925 else
16926 xorg_cv_cc_flag_unknown_warning_option=no
16927 fi
16928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16933 CFLAGS="$xorg_testset_save_CFLAGS"
16934 fi
16935
16936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16939 fi
16940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16944 $as_echo_n "(cached) " >&6
16945 else
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 int i;
16949 _ACEOF
16950 if ac_fn_c_try_compile "$LINENO"; then :
16951 xorg_cv_cc_flag_unused_command_line_argument=yes
16952 else
16953 xorg_cv_cc_flag_unused_command_line_argument=no
16954 fi
16955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956 fi
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16960 CFLAGS="$xorg_testset_save_CFLAGS"
16961 fi
16962
16963 found="no"
16964
16965 if test $found = "no" ; then
16966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16968 fi
16969
16970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16972 fi
16973
16974 CFLAGS="$CFLAGS -Wmain"
16975
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16977 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16978 cacheid=xorg_cv_cc_flag__Wmain
16979 if eval \${$cacheid+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 int i;
16985 int
16986 main ()
16987 {
16988
16989 ;
16990 return 0;
16991 }
16992 _ACEOF
16993 if ac_fn_c_try_link "$LINENO"; then :
16994 eval $cacheid=yes
16995 else
16996 eval $cacheid=no
16997 fi
16998 rm -f core conftest.err conftest.$ac_objext \
16999 conftest$ac_exeext conftest.$ac_ext
17000 fi
17001
17002
17003 CFLAGS="$xorg_testset_save_CFLAGS"
17004
17005 eval supported=\$$cacheid
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17007 $as_echo "$supported" >&6; }
17008 if test "$supported" = "yes" ; then
17009 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17010 found="yes"
17011 fi
17012 fi
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028 xorg_testset_save_CFLAGS="$CFLAGS"
17029
17030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17035 $as_echo_n "(cached) " >&6
17036 else
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17039 int i;
17040 _ACEOF
17041 if ac_fn_c_try_compile "$LINENO"; then :
17042 xorg_cv_cc_flag_unknown_warning_option=yes
17043 else
17044 xorg_cv_cc_flag_unknown_warning_option=no
17045 fi
17046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17047 fi
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17051 CFLAGS="$xorg_testset_save_CFLAGS"
17052 fi
17053
17054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17057 fi
17058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17062 $as_echo_n "(cached) " >&6
17063 else
17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h. */
17066 int i;
17067 _ACEOF
17068 if ac_fn_c_try_compile "$LINENO"; then :
17069 xorg_cv_cc_flag_unused_command_line_argument=yes
17070 else
17071 xorg_cv_cc_flag_unused_command_line_argument=no
17072 fi
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 fi
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17078 CFLAGS="$xorg_testset_save_CFLAGS"
17079 fi
17080
17081 found="no"
17082
17083 if test $found = "no" ; then
17084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17086 fi
17087
17088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17090 fi
17091
17092 CFLAGS="$CFLAGS -Wmissing-braces"
17093
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17095 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17096 cacheid=xorg_cv_cc_flag__Wmissing_braces
17097 if eval \${$cacheid+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 int
17104 main ()
17105 {
17106
17107 ;
17108 return 0;
17109 }
17110 _ACEOF
17111 if ac_fn_c_try_link "$LINENO"; then :
17112 eval $cacheid=yes
17113 else
17114 eval $cacheid=no
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17118 fi
17119
17120
17121 CFLAGS="$xorg_testset_save_CFLAGS"
17122
17123 eval supported=\$$cacheid
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17125 $as_echo "$supported" >&6; }
17126 if test "$supported" = "yes" ; then
17127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17128 found="yes"
17129 fi
17130 fi
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146 xorg_testset_save_CFLAGS="$CFLAGS"
17147
17148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17153 $as_echo_n "(cached) " >&6
17154 else
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17157 int i;
17158 _ACEOF
17159 if ac_fn_c_try_compile "$LINENO"; then :
17160 xorg_cv_cc_flag_unknown_warning_option=yes
17161 else
17162 xorg_cv_cc_flag_unknown_warning_option=no
17163 fi
17164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17165 fi
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17169 CFLAGS="$xorg_testset_save_CFLAGS"
17170 fi
17171
17172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175 fi
17176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17180 $as_echo_n "(cached) " >&6
17181 else
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17184 int i;
17185 _ACEOF
17186 if ac_fn_c_try_compile "$LINENO"; then :
17187 xorg_cv_cc_flag_unused_command_line_argument=yes
17188 else
17189 xorg_cv_cc_flag_unused_command_line_argument=no
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 fi
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17196 CFLAGS="$xorg_testset_save_CFLAGS"
17197 fi
17198
17199 found="no"
17200
17201 if test $found = "no" ; then
17202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204 fi
17205
17206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17208 fi
17209
17210 CFLAGS="$CFLAGS -Wsequence-point"
17211
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17213 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17214 cacheid=xorg_cv_cc_flag__Wsequence_point
17215 if eval \${$cacheid+:} false; then :
17216 $as_echo_n "(cached) " >&6
17217 else
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 int
17222 main ()
17223 {
17224
17225 ;
17226 return 0;
17227 }
17228 _ACEOF
17229 if ac_fn_c_try_link "$LINENO"; then :
17230 eval $cacheid=yes
17231 else
17232 eval $cacheid=no
17233 fi
17234 rm -f core conftest.err conftest.$ac_objext \
17235 conftest$ac_exeext conftest.$ac_ext
17236 fi
17237
17238
17239 CFLAGS="$xorg_testset_save_CFLAGS"
17240
17241 eval supported=\$$cacheid
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17243 $as_echo "$supported" >&6; }
17244 if test "$supported" = "yes" ; then
17245 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17246 found="yes"
17247 fi
17248 fi
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264 xorg_testset_save_CFLAGS="$CFLAGS"
17265
17266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17271 $as_echo_n "(cached) " >&6
17272 else
17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274 /* end confdefs.h. */
17275 int i;
17276 _ACEOF
17277 if ac_fn_c_try_compile "$LINENO"; then :
17278 xorg_cv_cc_flag_unknown_warning_option=yes
17279 else
17280 xorg_cv_cc_flag_unknown_warning_option=no
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 fi
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17287 CFLAGS="$xorg_testset_save_CFLAGS"
17288 fi
17289
17290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17293 fi
17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17298 $as_echo_n "(cached) " >&6
17299 else
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 int i;
17303 _ACEOF
17304 if ac_fn_c_try_compile "$LINENO"; then :
17305 xorg_cv_cc_flag_unused_command_line_argument=yes
17306 else
17307 xorg_cv_cc_flag_unused_command_line_argument=no
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 fi
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17314 CFLAGS="$xorg_testset_save_CFLAGS"
17315 fi
17316
17317 found="no"
17318
17319 if test $found = "no" ; then
17320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17322 fi
17323
17324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17326 fi
17327
17328 CFLAGS="$CFLAGS -Wreturn-type"
17329
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17331 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17332 cacheid=xorg_cv_cc_flag__Wreturn_type
17333 if eval \${$cacheid+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 int i;
17339 int
17340 main ()
17341 {
17342
17343 ;
17344 return 0;
17345 }
17346 _ACEOF
17347 if ac_fn_c_try_link "$LINENO"; then :
17348 eval $cacheid=yes
17349 else
17350 eval $cacheid=no
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17354 fi
17355
17356
17357 CFLAGS="$xorg_testset_save_CFLAGS"
17358
17359 eval supported=\$$cacheid
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17361 $as_echo "$supported" >&6; }
17362 if test "$supported" = "yes" ; then
17363 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17364 found="yes"
17365 fi
17366 fi
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382 xorg_testset_save_CFLAGS="$CFLAGS"
17383
17384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17389 $as_echo_n "(cached) " >&6
17390 else
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393 int i;
17394 _ACEOF
17395 if ac_fn_c_try_compile "$LINENO"; then :
17396 xorg_cv_cc_flag_unknown_warning_option=yes
17397 else
17398 xorg_cv_cc_flag_unknown_warning_option=no
17399 fi
17400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17401 fi
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17405 CFLAGS="$xorg_testset_save_CFLAGS"
17406 fi
17407
17408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17411 fi
17412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17416 $as_echo_n "(cached) " >&6
17417 else
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17420 int i;
17421 _ACEOF
17422 if ac_fn_c_try_compile "$LINENO"; then :
17423 xorg_cv_cc_flag_unused_command_line_argument=yes
17424 else
17425 xorg_cv_cc_flag_unused_command_line_argument=no
17426 fi
17427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428 fi
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17432 CFLAGS="$xorg_testset_save_CFLAGS"
17433 fi
17434
17435 found="no"
17436
17437 if test $found = "no" ; then
17438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17440 fi
17441
17442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17444 fi
17445
17446 CFLAGS="$CFLAGS -Wtrigraphs"
17447
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17449 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17450 cacheid=xorg_cv_cc_flag__Wtrigraphs
17451 if eval \${$cacheid+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17456 int i;
17457 int
17458 main ()
17459 {
17460
17461 ;
17462 return 0;
17463 }
17464 _ACEOF
17465 if ac_fn_c_try_link "$LINENO"; then :
17466 eval $cacheid=yes
17467 else
17468 eval $cacheid=no
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17472 fi
17473
17474
17475 CFLAGS="$xorg_testset_save_CFLAGS"
17476
17477 eval supported=\$$cacheid
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17479 $as_echo "$supported" >&6; }
17480 if test "$supported" = "yes" ; then
17481 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17482 found="yes"
17483 fi
17484 fi
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500 xorg_testset_save_CFLAGS="$CFLAGS"
17501
17502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17505 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17506 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17507 $as_echo_n "(cached) " >&6
17508 else
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511 int i;
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"; then :
17514 xorg_cv_cc_flag_unknown_warning_option=yes
17515 else
17516 xorg_cv_cc_flag_unknown_warning_option=no
17517 fi
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 fi
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17521 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17523 CFLAGS="$xorg_testset_save_CFLAGS"
17524 fi
17525
17526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17529 fi
17530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17532 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17533 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17534 $as_echo_n "(cached) " >&6
17535 else
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538 int i;
17539 _ACEOF
17540 if ac_fn_c_try_compile "$LINENO"; then :
17541 xorg_cv_cc_flag_unused_command_line_argument=yes
17542 else
17543 xorg_cv_cc_flag_unused_command_line_argument=no
17544 fi
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546 fi
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17548 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17550 CFLAGS="$xorg_testset_save_CFLAGS"
17551 fi
17552
17553 found="no"
17554
17555 if test $found = "no" ; then
17556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17558 fi
17559
17560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17562 fi
17563
17564 CFLAGS="$CFLAGS -Warray-bounds"
17565
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17567 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17568 cacheid=xorg_cv_cc_flag__Warray_bounds
17569 if eval \${$cacheid+:} false; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 int i;
17575 int
17576 main ()
17577 {
17578
17579 ;
17580 return 0;
17581 }
17582 _ACEOF
17583 if ac_fn_c_try_link "$LINENO"; then :
17584 eval $cacheid=yes
17585 else
17586 eval $cacheid=no
17587 fi
17588 rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17590 fi
17591
17592
17593 CFLAGS="$xorg_testset_save_CFLAGS"
17594
17595 eval supported=\$$cacheid
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17597 $as_echo "$supported" >&6; }
17598 if test "$supported" = "yes" ; then
17599 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17600 found="yes"
17601 fi
17602 fi
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618 xorg_testset_save_CFLAGS="$CFLAGS"
17619
17620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17623 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17624 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17625 $as_echo_n "(cached) " >&6
17626 else
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17629 int i;
17630 _ACEOF
17631 if ac_fn_c_try_compile "$LINENO"; then :
17632 xorg_cv_cc_flag_unknown_warning_option=yes
17633 else
17634 xorg_cv_cc_flag_unknown_warning_option=no
17635 fi
17636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637 fi
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17639 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17641 CFLAGS="$xorg_testset_save_CFLAGS"
17642 fi
17643
17644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17647 fi
17648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17651 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17652 $as_echo_n "(cached) " >&6
17653 else
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656 int i;
17657 _ACEOF
17658 if ac_fn_c_try_compile "$LINENO"; then :
17659 xorg_cv_cc_flag_unused_command_line_argument=yes
17660 else
17661 xorg_cv_cc_flag_unused_command_line_argument=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664 fi
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17666 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17668 CFLAGS="$xorg_testset_save_CFLAGS"
17669 fi
17670
17671 found="no"
17672
17673 if test $found = "no" ; then
17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676 fi
17677
17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17680 fi
17681
17682 CFLAGS="$CFLAGS -Wwrite-strings"
17683
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17685 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17686 cacheid=xorg_cv_cc_flag__Wwrite_strings
17687 if eval \${$cacheid+:} false; then :
17688 $as_echo_n "(cached) " >&6
17689 else
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 int i;
17693 int
17694 main ()
17695 {
17696
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"; then :
17702 eval $cacheid=yes
17703 else
17704 eval $cacheid=no
17705 fi
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 fi
17709
17710
17711 CFLAGS="$xorg_testset_save_CFLAGS"
17712
17713 eval supported=\$$cacheid
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17715 $as_echo "$supported" >&6; }
17716 if test "$supported" = "yes" ; then
17717 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17718 found="yes"
17719 fi
17720 fi
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736 xorg_testset_save_CFLAGS="$CFLAGS"
17737
17738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17741 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17742 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17743 $as_echo_n "(cached) " >&6
17744 else
17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747 int i;
17748 _ACEOF
17749 if ac_fn_c_try_compile "$LINENO"; then :
17750 xorg_cv_cc_flag_unknown_warning_option=yes
17751 else
17752 xorg_cv_cc_flag_unknown_warning_option=no
17753 fi
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 fi
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17757 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17759 CFLAGS="$xorg_testset_save_CFLAGS"
17760 fi
17761
17762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17765 fi
17766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17768 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17769 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774 int i;
17775 _ACEOF
17776 if ac_fn_c_try_compile "$LINENO"; then :
17777 xorg_cv_cc_flag_unused_command_line_argument=yes
17778 else
17779 xorg_cv_cc_flag_unused_command_line_argument=no
17780 fi
17781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782 fi
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17784 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17786 CFLAGS="$xorg_testset_save_CFLAGS"
17787 fi
17788
17789 found="no"
17790
17791 if test $found = "no" ; then
17792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17794 fi
17795
17796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17798 fi
17799
17800 CFLAGS="$CFLAGS -Waddress"
17801
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17803 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17804 cacheid=xorg_cv_cc_flag__Waddress
17805 if eval \${$cacheid+:} false; then :
17806 $as_echo_n "(cached) " >&6
17807 else
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810 int i;
17811 int
17812 main ()
17813 {
17814
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 if ac_fn_c_try_link "$LINENO"; then :
17820 eval $cacheid=yes
17821 else
17822 eval $cacheid=no
17823 fi
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 fi
17827
17828
17829 CFLAGS="$xorg_testset_save_CFLAGS"
17830
17831 eval supported=\$$cacheid
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17833 $as_echo "$supported" >&6; }
17834 if test "$supported" = "yes" ; then
17835 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17836 found="yes"
17837 fi
17838 fi
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854 xorg_testset_save_CFLAGS="$CFLAGS"
17855
17856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17859 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17860 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17861 $as_echo_n "(cached) " >&6
17862 else
17863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864 /* end confdefs.h. */
17865 int i;
17866 _ACEOF
17867 if ac_fn_c_try_compile "$LINENO"; then :
17868 xorg_cv_cc_flag_unknown_warning_option=yes
17869 else
17870 xorg_cv_cc_flag_unknown_warning_option=no
17871 fi
17872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873 fi
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17875 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17877 CFLAGS="$xorg_testset_save_CFLAGS"
17878 fi
17879
17880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17883 fi
17884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17886 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17887 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17888 $as_echo_n "(cached) " >&6
17889 else
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892 int i;
17893 _ACEOF
17894 if ac_fn_c_try_compile "$LINENO"; then :
17895 xorg_cv_cc_flag_unused_command_line_argument=yes
17896 else
17897 xorg_cv_cc_flag_unused_command_line_argument=no
17898 fi
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900 fi
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17902 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17904 CFLAGS="$xorg_testset_save_CFLAGS"
17905 fi
17906
17907 found="no"
17908
17909 if test $found = "no" ; then
17910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17912 fi
17913
17914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17916 fi
17917
17918 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17919
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17921 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17922 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17923 if eval \${$cacheid+:} false; then :
17924 $as_echo_n "(cached) " >&6
17925 else
17926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927 /* end confdefs.h. */
17928 int i;
17929 int
17930 main ()
17931 {
17932
17933 ;
17934 return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_link "$LINENO"; then :
17938 eval $cacheid=yes
17939 else
17940 eval $cacheid=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17944 fi
17945
17946
17947 CFLAGS="$xorg_testset_save_CFLAGS"
17948
17949 eval supported=\$$cacheid
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17951 $as_echo "$supported" >&6; }
17952 if test "$supported" = "yes" ; then
17953 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17954 found="yes"
17955 fi
17956 fi
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972 xorg_testset_save_CFLAGS="$CFLAGS"
17973
17974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17978 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17979 $as_echo_n "(cached) " >&6
17980 else
17981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982 /* end confdefs.h. */
17983 int i;
17984 _ACEOF
17985 if ac_fn_c_try_compile "$LINENO"; then :
17986 xorg_cv_cc_flag_unknown_warning_option=yes
17987 else
17988 xorg_cv_cc_flag_unknown_warning_option=no
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991 fi
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17995 CFLAGS="$xorg_testset_save_CFLAGS"
17996 fi
17997
17998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18001 fi
18002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18006 $as_echo_n "(cached) " >&6
18007 else
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010 int i;
18011 _ACEOF
18012 if ac_fn_c_try_compile "$LINENO"; then :
18013 xorg_cv_cc_flag_unused_command_line_argument=yes
18014 else
18015 xorg_cv_cc_flag_unused_command_line_argument=no
18016 fi
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 fi
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18022 CFLAGS="$xorg_testset_save_CFLAGS"
18023 fi
18024
18025 found="no"
18026
18027 if test $found = "no" ; then
18028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18030 fi
18031
18032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18034 fi
18035
18036 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18037
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18039 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18040 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18041 if eval \${$cacheid+:} false; then :
18042 $as_echo_n "(cached) " >&6
18043 else
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046 int i;
18047 int
18048 main ()
18049 {
18050
18051 ;
18052 return 0;
18053 }
18054 _ACEOF
18055 if ac_fn_c_try_link "$LINENO"; then :
18056 eval $cacheid=yes
18057 else
18058 eval $cacheid=no
18059 fi
18060 rm -f core conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18062 fi
18063
18064
18065 CFLAGS="$xorg_testset_save_CFLAGS"
18066
18067 eval supported=\$$cacheid
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18069 $as_echo "$supported" >&6; }
18070 if test "$supported" = "yes" ; then
18071 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18072 found="yes"
18073 fi
18074 fi
18075
18076
18077 fi
18078
18079
18080
18081
18082
18083
18084
18085 CWARNFLAGS="$BASE_CFLAGS"
18086 if test "x$GCC" = xyes ; then
18087 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18088 fi
18089
18090
18091
18092
18093
18094
18095
18096
18097 # Check whether --enable-strict-compilation was given.
18098 if test "${enable_strict_compilation+set}" = set; then :
18099 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18100 else
18101 STRICT_COMPILE=no
18102 fi
18103
18104
18105
18106
18107
18108
18109 STRICT_CFLAGS=""
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123 xorg_testset_save_CFLAGS="$CFLAGS"
18124
18125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18128 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18129 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18130 $as_echo_n "(cached) " >&6
18131 else
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18134 int i;
18135 _ACEOF
18136 if ac_fn_c_try_compile "$LINENO"; then :
18137 xorg_cv_cc_flag_unknown_warning_option=yes
18138 else
18139 xorg_cv_cc_flag_unknown_warning_option=no
18140 fi
18141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18142 fi
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18144 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18146 CFLAGS="$xorg_testset_save_CFLAGS"
18147 fi
18148
18149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18152 fi
18153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18155 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18156 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18157 $as_echo_n "(cached) " >&6
18158 else
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161 int i;
18162 _ACEOF
18163 if ac_fn_c_try_compile "$LINENO"; then :
18164 xorg_cv_cc_flag_unused_command_line_argument=yes
18165 else
18166 xorg_cv_cc_flag_unused_command_line_argument=no
18167 fi
18168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18171 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18173 CFLAGS="$xorg_testset_save_CFLAGS"
18174 fi
18175
18176 found="no"
18177
18178 if test $found = "no" ; then
18179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18181 fi
18182
18183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18185 fi
18186
18187 CFLAGS="$CFLAGS -pedantic"
18188
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18190 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18191 cacheid=xorg_cv_cc_flag__pedantic
18192 if eval \${$cacheid+:} false; then :
18193 $as_echo_n "(cached) " >&6
18194 else
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197 int i;
18198 int
18199 main ()
18200 {
18201
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 if ac_fn_c_try_link "$LINENO"; then :
18207 eval $cacheid=yes
18208 else
18209 eval $cacheid=no
18210 fi
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18213 fi
18214
18215
18216 CFLAGS="$xorg_testset_save_CFLAGS"
18217
18218 eval supported=\$$cacheid
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18220 $as_echo "$supported" >&6; }
18221 if test "$supported" = "yes" ; then
18222 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18223 found="yes"
18224 fi
18225 fi
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241 xorg_testset_save_CFLAGS="$CFLAGS"
18242
18243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18246 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18247 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18252 int i;
18253 _ACEOF
18254 if ac_fn_c_try_compile "$LINENO"; then :
18255 xorg_cv_cc_flag_unknown_warning_option=yes
18256 else
18257 xorg_cv_cc_flag_unknown_warning_option=no
18258 fi
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 fi
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18262 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18264 CFLAGS="$xorg_testset_save_CFLAGS"
18265 fi
18266
18267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18270 fi
18271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18273 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18274 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18279 int i;
18280 _ACEOF
18281 if ac_fn_c_try_compile "$LINENO"; then :
18282 xorg_cv_cc_flag_unused_command_line_argument=yes
18283 else
18284 xorg_cv_cc_flag_unused_command_line_argument=no
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18287 fi
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18289 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18291 CFLAGS="$xorg_testset_save_CFLAGS"
18292 fi
18293
18294 found="no"
18295
18296 if test $found = "no" ; then
18297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18299 fi
18300
18301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18303 fi
18304
18305 CFLAGS="$CFLAGS -Werror"
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18308 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18309 cacheid=xorg_cv_cc_flag__Werror
18310 if eval \${$cacheid+:} false; then :
18311 $as_echo_n "(cached) " >&6
18312 else
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 int i;
18316 int
18317 main ()
18318 {
18319
18320 ;
18321 return 0;
18322 }
18323 _ACEOF
18324 if ac_fn_c_try_link "$LINENO"; then :
18325 eval $cacheid=yes
18326 else
18327 eval $cacheid=no
18328 fi
18329 rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 fi
18332
18333
18334 CFLAGS="$xorg_testset_save_CFLAGS"
18335
18336 eval supported=\$$cacheid
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18338 $as_echo "$supported" >&6; }
18339 if test "$supported" = "yes" ; then
18340 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18341 found="yes"
18342 fi
18343 fi
18344
18345 if test $found = "no" ; then
18346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18348 fi
18349
18350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18352 fi
18353
18354 CFLAGS="$CFLAGS -errwarn"
18355
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18357 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18358 cacheid=xorg_cv_cc_flag__errwarn
18359 if eval \${$cacheid+:} false; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18364 int i;
18365 int
18366 main ()
18367 {
18368
18369 ;
18370 return 0;
18371 }
18372 _ACEOF
18373 if ac_fn_c_try_link "$LINENO"; then :
18374 eval $cacheid=yes
18375 else
18376 eval $cacheid=no
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
18380 fi
18381
18382
18383 CFLAGS="$xorg_testset_save_CFLAGS"
18384
18385 eval supported=\$$cacheid
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18387 $as_echo "$supported" >&6; }
18388 if test "$supported" = "yes" ; then
18389 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18390 found="yes"
18391 fi
18392 fi
18393
18394
18395
18396 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18397 # activate it with -Werror, so we add it here explicitly.
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411 xorg_testset_save_CFLAGS="$CFLAGS"
18412
18413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18418 $as_echo_n "(cached) " >&6
18419 else
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 int i;
18423 _ACEOF
18424 if ac_fn_c_try_compile "$LINENO"; then :
18425 xorg_cv_cc_flag_unknown_warning_option=yes
18426 else
18427 xorg_cv_cc_flag_unknown_warning_option=no
18428 fi
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430 fi
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18434 CFLAGS="$xorg_testset_save_CFLAGS"
18435 fi
18436
18437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18440 fi
18441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18445 $as_echo_n "(cached) " >&6
18446 else
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449 int i;
18450 _ACEOF
18451 if ac_fn_c_try_compile "$LINENO"; then :
18452 xorg_cv_cc_flag_unused_command_line_argument=yes
18453 else
18454 xorg_cv_cc_flag_unused_command_line_argument=no
18455 fi
18456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18457 fi
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18461 CFLAGS="$xorg_testset_save_CFLAGS"
18462 fi
18463
18464 found="no"
18465
18466 if test $found = "no" ; then
18467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18469 fi
18470
18471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18473 fi
18474
18475 CFLAGS="$CFLAGS -Werror=attributes"
18476
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18478 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18479 cacheid=xorg_cv_cc_flag__Werror_attributes
18480 if eval \${$cacheid+:} false; then :
18481 $as_echo_n "(cached) " >&6
18482 else
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 int i;
18486 int
18487 main ()
18488 {
18489
18490 ;
18491 return 0;
18492 }
18493 _ACEOF
18494 if ac_fn_c_try_link "$LINENO"; then :
18495 eval $cacheid=yes
18496 else
18497 eval $cacheid=no
18498 fi
18499 rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501 fi
18502
18503
18504 CFLAGS="$xorg_testset_save_CFLAGS"
18505
18506 eval supported=\$$cacheid
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18508 $as_echo "$supported" >&6; }
18509 if test "$supported" = "yes" ; then
18510 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18511 found="yes"
18512 fi
18513 fi
18514
18515
18516
18517 if test "x$STRICT_COMPILE" = "xyes"; then
18518 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18519 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18520 fi
18521
18522
18523
18524
18525
18526
18527 cat >>confdefs.h <<_ACEOF
18528 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18529 _ACEOF
18530
18531 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18532 if test "x$PVM" = "x"; then
18533 PVM="0"
18534 fi
18535
18536 cat >>confdefs.h <<_ACEOF
18537 #define PACKAGE_VERSION_MINOR $PVM
18538 _ACEOF
18539
18540 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18541 if test "x$PVP" = "x"; then
18542 PVP="0"
18543 fi
18544
18545 cat >>confdefs.h <<_ACEOF
18546 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18547 _ACEOF
18548
18549
18550
18551 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18552 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18553 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18554 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18555
18556
18557
18558
18559 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18560 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18561 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18562 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18563 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18564
18565
18566
18567
18568
18569
18570 if test x$APP_MAN_SUFFIX = x ; then
18571 APP_MAN_SUFFIX=1
18572 fi
18573 if test x$APP_MAN_DIR = x ; then
18574 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18575 fi
18576
18577 if test x$LIB_MAN_SUFFIX = x ; then
18578 LIB_MAN_SUFFIX=3
18579 fi
18580 if test x$LIB_MAN_DIR = x ; then
18581 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18582 fi
18583
18584 if test x$FILE_MAN_SUFFIX = x ; then
18585 case $host_os in
18586 solaris*) FILE_MAN_SUFFIX=4 ;;
18587 *) FILE_MAN_SUFFIX=5 ;;
18588 esac
18589 fi
18590 if test x$FILE_MAN_DIR = x ; then
18591 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18592 fi
18593
18594 if test x$MISC_MAN_SUFFIX = x ; then
18595 case $host_os in
18596 solaris*) MISC_MAN_SUFFIX=5 ;;
18597 *) MISC_MAN_SUFFIX=7 ;;
18598 esac
18599 fi
18600 if test x$MISC_MAN_DIR = x ; then
18601 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18602 fi
18603
18604 if test x$DRIVER_MAN_SUFFIX = x ; then
18605 case $host_os in
18606 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18607 *) DRIVER_MAN_SUFFIX=4 ;;
18608 esac
18609 fi
18610 if test x$DRIVER_MAN_DIR = x ; then
18611 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18612 fi
18613
18614 if test x$ADMIN_MAN_SUFFIX = x ; then
18615 case $host_os in
18616 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18617 *) ADMIN_MAN_SUFFIX=8 ;;
18618 esac
18619 fi
18620 if test x$ADMIN_MAN_DIR = x ; then
18621 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18622 fi
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638 XORG_MAN_PAGE="X Version 11"
18639
18640 MAN_SUBSTS="\
18641 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18642 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18643 -e 's|__xservername__|Xorg|g' \
18644 -e 's|__xconfigfile__|xorg.conf|g' \
18645 -e 's|__projectroot__|\$(prefix)|g' \
18646 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18647 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18648 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18649 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18650 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18651 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18652 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18653
18654
18655
18656 # Check whether --enable-silent-rules was given.
18657 if test "${enable_silent_rules+set}" = set; then :
18658 enableval=$enable_silent_rules;
18659 fi
18660
18661 case $enable_silent_rules in # (((
18662 yes) AM_DEFAULT_VERBOSITY=0;;
18663 no) AM_DEFAULT_VERBOSITY=1;;
18664 *) AM_DEFAULT_VERBOSITY=0;;
18665 esac
18666 am_make=${MAKE-make}
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18668 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18669 if ${am_cv_make_support_nested_variables+:} false; then :
18670 $as_echo_n "(cached) " >&6
18671 else
18672 if $as_echo 'TRUE=$(BAR$(V))
18673 BAR0=false
18674 BAR1=true
18675 V=1
18676 am__doit:
18677 @$(TRUE)
18678 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18679 am_cv_make_support_nested_variables=yes
18680 else
18681 am_cv_make_support_nested_variables=no
18682 fi
18683 fi
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18685 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18686 if test $am_cv_make_support_nested_variables = yes; then
18687 AM_V='$(V)'
18688 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18689 else
18690 AM_V=$AM_DEFAULT_VERBOSITY
18691 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18692 fi
18693 AM_BACKSLASH='\'
18694
18695
18696
18697
18698 # Check whether --enable-devel-docs was given.
18699 if test "${enable_devel_docs+set}" = set; then :
18700 enableval=$enable_devel_docs; build_devel_docs=$enableval
18701 else
18702 build_devel_docs=yes
18703 fi
18704
18705
18706 if test x$build_devel_docs = xyes; then
18707 ENABLE_DEVEL_DOCS_TRUE=
18708 ENABLE_DEVEL_DOCS_FALSE='#'
18709 else
18710 ENABLE_DEVEL_DOCS_TRUE='#'
18711 ENABLE_DEVEL_DOCS_FALSE=
18712 fi
18713
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18715 $as_echo_n "checking whether to build developer documentation... " >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18717 $as_echo "$build_devel_docs" >&6; }
18718
18719
18720
18721
18722
18723 # Check whether --with-xmlto was given.
18724 if test "${with_xmlto+set}" = set; then :
18725 withval=$with_xmlto; use_xmlto=$withval
18726 else
18727 use_xmlto=auto
18728 fi
18729
18730
18731
18732 if test "x$use_xmlto" = x"auto"; then
18733 # Extract the first word of "xmlto", so it can be a program name with args.
18734 set dummy xmlto; ac_word=$2
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736 $as_echo_n "checking for $ac_word... " >&6; }
18737 if ${ac_cv_path_XMLTO+:} false; then :
18738 $as_echo_n "(cached) " >&6
18739 else
18740 case $XMLTO in
18741 [\\/]* | ?:[\\/]*)
18742 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18743 ;;
18744 *)
18745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746 for as_dir in $PATH
18747 do
18748 IFS=$as_save_IFS
18749 test -z "$as_dir" && as_dir=.
18750 for ac_exec_ext in '' $ac_executable_extensions; do
18751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18752 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18754 break 2
18755 fi
18756 done
18757 done
18758 IFS=$as_save_IFS
18759
18760 ;;
18761 esac
18762 fi
18763 XMLTO=$ac_cv_path_XMLTO
18764 if test -n "$XMLTO"; then
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18766 $as_echo "$XMLTO" >&6; }
18767 else
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18770 fi
18771
18772
18773 if test "x$XMLTO" = "x"; then
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18775 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18776 have_xmlto=no
18777 else
18778 have_xmlto=yes
18779 fi
18780 elif test "x$use_xmlto" = x"yes" ; then
18781 # Extract the first word of "xmlto", so it can be a program name with args.
18782 set dummy xmlto; ac_word=$2
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18784 $as_echo_n "checking for $ac_word... " >&6; }
18785 if ${ac_cv_path_XMLTO+:} false; then :
18786 $as_echo_n "(cached) " >&6
18787 else
18788 case $XMLTO in
18789 [\\/]* | ?:[\\/]*)
18790 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18791 ;;
18792 *)
18793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18794 for as_dir in $PATH
18795 do
18796 IFS=$as_save_IFS
18797 test -z "$as_dir" && as_dir=.
18798 for ac_exec_ext in '' $ac_executable_extensions; do
18799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18800 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18802 break 2
18803 fi
18804 done
18805 done
18806 IFS=$as_save_IFS
18807
18808 ;;
18809 esac
18810 fi
18811 XMLTO=$ac_cv_path_XMLTO
18812 if test -n "$XMLTO"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18814 $as_echo "$XMLTO" >&6; }
18815 else
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18818 fi
18819
18820
18821 if test "x$XMLTO" = "x"; then
18822 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18823 fi
18824 have_xmlto=yes
18825 elif test "x$use_xmlto" = x"no" ; then
18826 if test "x$XMLTO" != "x"; then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18828 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18829 fi
18830 have_xmlto=no
18831 else
18832 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18833 fi
18834
18835 # Test for a minimum version of xmlto, if provided.
18836 if test "$have_xmlto" = yes; then
18837 # scrape the xmlto version
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18839 $as_echo_n "checking the xmlto version... " >&6; }
18840 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18842 $as_echo "$xmlto_version" >&6; }
18843 as_arg_v1=$xmlto_version
18844 as_arg_v2=0.0.22
18845 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18846 case $? in #(
18847 1) :
18848 if test "x$use_xmlto" = xauto; then
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18850 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18851 have_xmlto=no
18852 else
18853 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18854 fi ;; #(
18855 0) :
18856 ;; #(
18857 2) :
18858 ;; #(
18859 *) :
18860 ;;
18861 esac
18862 fi
18863
18864 # Test for the ability of xmlto to generate a text target
18865 have_xmlto_text=no
18866 cat > conftest.xml << "EOF"
18867 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
18868 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
18869 <book id="saver">
18870 </book>
18871 EOF
18872 if test "$have_xmlto" = yes; then :
18873 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18874 have_xmlto_text=yes
18875 else
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18877 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18878 fi
18879 fi
18880 rm -f conftest.xml
18881 if test $have_xmlto_text = yes; then
18882 HAVE_XMLTO_TEXT_TRUE=
18883 HAVE_XMLTO_TEXT_FALSE='#'
18884 else
18885 HAVE_XMLTO_TEXT_TRUE='#'
18886 HAVE_XMLTO_TEXT_FALSE=
18887 fi
18888
18889 if test "$have_xmlto" = yes; then
18890 HAVE_XMLTO_TRUE=
18891 HAVE_XMLTO_FALSE='#'
18892 else
18893 HAVE_XMLTO_TRUE='#'
18894 HAVE_XMLTO_FALSE=
18895 fi
18896
18897
18898
18899
18900
18901
18902 # Check whether --with-fop was given.
18903 if test "${with_fop+set}" = set; then :
18904 withval=$with_fop; use_fop=$withval
18905 else
18906 use_fop=auto
18907 fi
18908
18909
18910
18911 if test "x$use_fop" = x"auto"; then
18912 # Extract the first word of "fop", so it can be a program name with args.
18913 set dummy fop; ac_word=$2
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18915 $as_echo_n "checking for $ac_word... " >&6; }
18916 if ${ac_cv_path_FOP+:} false; then :
18917 $as_echo_n "(cached) " >&6
18918 else
18919 case $FOP in
18920 [\\/]* | ?:[\\/]*)
18921 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18922 ;;
18923 *)
18924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925 for as_dir in $PATH
18926 do
18927 IFS=$as_save_IFS
18928 test -z "$as_dir" && as_dir=.
18929 for ac_exec_ext in '' $ac_executable_extensions; do
18930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18931 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18933 break 2
18934 fi
18935 done
18936 done
18937 IFS=$as_save_IFS
18938
18939 ;;
18940 esac
18941 fi
18942 FOP=$ac_cv_path_FOP
18943 if test -n "$FOP"; then
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18945 $as_echo "$FOP" >&6; }
18946 else
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948 $as_echo "no" >&6; }
18949 fi
18950
18951
18952 if test "x$FOP" = "x"; then
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18954 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18955 have_fop=no
18956 else
18957 have_fop=yes
18958 fi
18959 elif test "x$use_fop" = x"yes" ; then
18960 # Extract the first word of "fop", so it can be a program name with args.
18961 set dummy fop; ac_word=$2
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18963 $as_echo_n "checking for $ac_word... " >&6; }
18964 if ${ac_cv_path_FOP+:} false; then :
18965 $as_echo_n "(cached) " >&6
18966 else
18967 case $FOP in
18968 [\\/]* | ?:[\\/]*)
18969 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18970 ;;
18971 *)
18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973 for as_dir in $PATH
18974 do
18975 IFS=$as_save_IFS
18976 test -z "$as_dir" && as_dir=.
18977 for ac_exec_ext in '' $ac_executable_extensions; do
18978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18981 break 2
18982 fi
18983 done
18984 done
18985 IFS=$as_save_IFS
18986
18987 ;;
18988 esac
18989 fi
18990 FOP=$ac_cv_path_FOP
18991 if test -n "$FOP"; then
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18993 $as_echo "$FOP" >&6; }
18994 else
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18996 $as_echo "no" >&6; }
18997 fi
18998
18999
19000 if test "x$FOP" = "x"; then
19001 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19002 fi
19003 have_fop=yes
19004 elif test "x$use_fop" = x"no" ; then
19005 if test "x$FOP" != "x"; then
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19007 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19008 fi
19009 have_fop=no
19010 else
19011 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19012 fi
19013
19014 # Test for a minimum version of fop, if provided.
19015
19016 if test "$have_fop" = yes; then
19017 HAVE_FOP_TRUE=
19018 HAVE_FOP_FALSE='#'
19019 else
19020 HAVE_FOP_TRUE='#'
19021 HAVE_FOP_FALSE=
19022 fi
19023
19024
19025
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
19027 $as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
19028 XORG_SGML_PATH=
19029 if test -n "$PKG_CONFIG" && \
19030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
19031 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
19032 ac_status=$?
19033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19034 test $ac_status = 0; }; then
19035 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19036 else
19037 :
19038
19039 fi
19040
19041 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19042 # the path and the name of the doc stylesheet
19043 if test "x$XORG_SGML_PATH" != "x" ; then
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19045 $as_echo "$XORG_SGML_PATH" >&6; }
19046 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19047 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19048 else
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051 fi
19052
19053
19054
19055
19056 if test "x$XSL_STYLESHEET" != "x"; then
19057 HAVE_STYLESHEETS_TRUE=
19058 HAVE_STYLESHEETS_FALSE='#'
19059 else
19060 HAVE_STYLESHEETS_TRUE='#'
19061 HAVE_STYLESHEETS_FALSE=
19062 fi
19063
19064
19065
19066 # Checks for header files.
19067 for ac_header in endian.h poll.h sys/poll.h
19068 do :
19069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19070 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19072 cat >>confdefs.h <<_ACEOF
19073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19074 _ACEOF
19075
19076 fi
19077
19078 done
19079
19080
19081 # Checks for library functions.
19082 for ac_func in poll readlink
19083 do :
19084 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19085 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19086 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19087 cat >>confdefs.h <<_ACEOF
19088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19089 _ACEOF
19090
19091 fi
19092 done
19093
19094
19095 # If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
19096 # must first be located explicitly.
19097
19098
19099
19100
19101
19102
19103
19104 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19105 if test -n "$ac_tool_prefix"; then
19106 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19107 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19109 $as_echo_n "checking for $ac_word... " >&6; }
19110 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19111 $as_echo_n "(cached) " >&6
19112 else
19113 case $PKG_CONFIG in
19114 [\\/]* | ?:[\\/]*)
19115 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19116 ;;
19117 *)
19118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19119 for as_dir in $PATH
19120 do
19121 IFS=$as_save_IFS
19122 test -z "$as_dir" && as_dir=.
19123 for ac_exec_ext in '' $ac_executable_extensions; do
19124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19125 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19127 break 2
19128 fi
19129 done
19130 done
19131 IFS=$as_save_IFS
19132
19133 ;;
19134 esac
19135 fi
19136 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19137 if test -n "$PKG_CONFIG"; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19139 $as_echo "$PKG_CONFIG" >&6; }
19140 else
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19143 fi
19144
19145
19146 fi
19147 if test -z "$ac_cv_path_PKG_CONFIG"; then
19148 ac_pt_PKG_CONFIG=$PKG_CONFIG
19149 # Extract the first word of "pkg-config", so it can be a program name with args.
19150 set dummy pkg-config; ac_word=$2
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19152 $as_echo_n "checking for $ac_word... " >&6; }
19153 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19154 $as_echo_n "(cached) " >&6
19155 else
19156 case $ac_pt_PKG_CONFIG in
19157 [\\/]* | ?:[\\/]*)
19158 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19159 ;;
19160 *)
19161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19162 for as_dir in $PATH
19163 do
19164 IFS=$as_save_IFS
19165 test -z "$as_dir" && as_dir=.
19166 for ac_exec_ext in '' $ac_executable_extensions; do
19167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19168 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19170 break 2
19171 fi
19172 done
19173 done
19174 IFS=$as_save_IFS
19175
19176 ;;
19177 esac
19178 fi
19179 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19180 if test -n "$ac_pt_PKG_CONFIG"; then
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19182 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19183 else
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19185 $as_echo "no" >&6; }
19186 fi
19187
19188 if test "x$ac_pt_PKG_CONFIG" = x; then
19189 PKG_CONFIG=""
19190 else
19191 case $cross_compiling:$ac_tool_warned in
19192 yes:)
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19195 ac_tool_warned=yes ;;
19196 esac
19197 PKG_CONFIG=$ac_pt_PKG_CONFIG
19198 fi
19199 else
19200 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19201 fi
19202
19203 fi
19204 if test -n "$PKG_CONFIG"; then
19205 _pkg_min_version=0.9.0
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19207 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19208 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19210 $as_echo "yes" >&6; }
19211 else
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213 $as_echo "no" >&6; }
19214 PKG_CONFIG=""
19215 fi
19216 fi
19217
19218 #
19219 # select libraries to include
19220 #
19221
19222 XFONT_FONTFILE=no
19223
19224 #
19225 # FreeType for all scalable (OpenType, TrueType, PostScript) and
19226 # some bitmap formats (BDF & PCF)
19227 #
19228 # Check whether --enable-freetype was given.
19229 if test "${enable_freetype+set}" = set; then :
19230 enableval=$enable_freetype; XFONT_FREETYPE=$enableval
19231 else
19232 XFONT_FREETYPE=yes
19233 fi
19234
19235 if test x$XFONT_FREETYPE = xyes; then
19236 XFONT_FREETYPE_TRUE=
19237 XFONT_FREETYPE_FALSE='#'
19238 else
19239 XFONT_FREETYPE_TRUE='#'
19240 XFONT_FREETYPE_FALSE=
19241 fi
19242
19243 if test x$XFONT_FREETYPE = xyes; then
19244
19245 $as_echo "#define XFONT_FREETYPE 1" >>confdefs.h
19246
19247
19248 # Check whether --with-freetype-config was given.
19249 if test "${with_freetype_config+set}" = set; then :
19250 withval=$with_freetype_config; freetype_config=$withval
19251 else
19252 freetype_config=auto
19253 fi
19254
19255
19256 if test "$freetype_config" = "auto" ; then
19257
19258 pkg_failed=no
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
19260 $as_echo_n "checking for FREETYPE... " >&6; }
19261
19262 if test -n "$FREETYPE_CFLAGS"; then
19263 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
19264 elif test -n "$PKG_CONFIG"; then
19265 if test -n "$PKG_CONFIG" && \
19266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
19267 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
19268 ac_status=$?
19269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19270 test $ac_status = 0; }; then
19271 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
19272 test "x$?" != "x0" && pkg_failed=yes
19273 else
19274 pkg_failed=yes
19275 fi
19276 else
19277 pkg_failed=untried
19278 fi
19279 if test -n "$FREETYPE_LIBS"; then
19280 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
19281 elif test -n "$PKG_CONFIG"; then
19282 if test -n "$PKG_CONFIG" && \
19283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
19284 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
19285 ac_status=$?
19286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19287 test $ac_status = 0; }; then
19288 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
19289 test "x$?" != "x0" && pkg_failed=yes
19290 else
19291 pkg_failed=yes
19292 fi
19293 else
19294 pkg_failed=untried
19295 fi
19296
19297
19298
19299 if test $pkg_failed = yes; then
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19302
19303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19304 _pkg_short_errors_supported=yes
19305 else
19306 _pkg_short_errors_supported=no
19307 fi
19308 if test $_pkg_short_errors_supported = yes; then
19309 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
19310 else
19311 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
19312 fi
19313 # Put the nasty error message in config.log where it belongs
19314 echo "$FREETYPE_PKG_ERRORS" >&5
19315
19316 freetype_config=yes
19317 elif test $pkg_failed = untried; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19320 freetype_config=yes
19321 else
19322 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
19323 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19325 $as_echo "yes" >&6; }
19326 freetype_config=no
19327 fi
19328 fi
19329
19330 if test "$freetype_config" = "yes"; then
19331 # Extract the first word of "freetype-config", so it can be a program name with args.
19332 set dummy freetype-config; ac_word=$2
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19334 $as_echo_n "checking for $ac_word... " >&6; }
19335 if ${ac_cv_path_ft_config+:} false; then :
19336 $as_echo_n "(cached) " >&6
19337 else
19338 case $ft_config in
19339 [\\/]* | ?:[\\/]*)
19340 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
19341 ;;
19342 *)
19343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19344 for as_dir in $PATH
19345 do
19346 IFS=$as_save_IFS
19347 test -z "$as_dir" && as_dir=.
19348 for ac_exec_ext in '' $ac_executable_extensions; do
19349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19350 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
19351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19352 break 2
19353 fi
19354 done
19355 done
19356 IFS=$as_save_IFS
19357
19358 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
19359 ;;
19360 esac
19361 fi
19362 ft_config=$ac_cv_path_ft_config
19363 if test -n "$ft_config"; then
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
19365 $as_echo "$ft_config" >&6; }
19366 else
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19368 $as_echo "no" >&6; }
19369 fi
19370
19371
19372 if test "$ft_config" = "no"; then
19373 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
19374 fi
19375 else
19376 ft_config="$freetype_config"
19377 fi
19378
19379 if test "$freetype_config" != "no"; then
19380 FREETYPE_CFLAGS="`$ft_config --cflags`"
19381 FREETYPE_LIBS="`$ft_config --libs`"
19382 fi
19383 FREETYPE_REQUIRES="freetype2"
19384 XFONT_FONTFILE=yes
19385 else
19386 FREETYPE_CFLAGS=""
19387 FREETYPE_LIBS=""
19388 FREETYPE_REQUIRES=""
19389 fi
19390
19391
19392
19393
19394 #
19395 # Bitmap fonts in files:
19396 # Builtins (gzipped pcf format in .text segment)
19397 # PCF
19398 # BDF
19399 # SNF
19400 #
19401
19402
19403 $as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
19404
19405 X_GZIP_FONT_COMPRESSION=1
19406
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
19408 $as_echo_n "checking for gzopen in -lz... " >&6; }
19409 if ${ac_cv_lib_z_gzopen+:} false; then :
19410 $as_echo_n "(cached) " >&6
19411 else
19412 ac_check_lib_save_LIBS=$LIBS
19413 LIBS="-lz $LIBS"
19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19416
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char gzopen ();
19424 int
19425 main ()
19426 {
19427 return gzopen ();
19428 ;
19429 return 0;
19430 }
19431 _ACEOF
19432 if ac_fn_c_try_link "$LINENO"; then :
19433 ac_cv_lib_z_gzopen=yes
19434 else
19435 ac_cv_lib_z_gzopen=no
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext \
19438 conftest$ac_exeext conftest.$ac_ext
19439 LIBS=$ac_check_lib_save_LIBS
19440 fi
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
19442 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
19443 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
19444 Z_LIBS=-lz
19445 else
19446 as_fn_error $? "*** zlib is required" "$LINENO" 5
19447 fi
19448
19449
19450
19451 # Check whether --with-bzip2 was given.
19452 if test "${with_bzip2+set}" = set; then :
19453 withval=$with_bzip2;
19454 else
19455 with_bzip2=no
19456 fi
19457
19458 if test "x$with_bzip2" = xyes; then
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
19460 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
19461 if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
19462 $as_echo_n "(cached) " >&6
19463 else
19464 ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lbz2 $LIBS"
19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h. */
19468
19469 /* Override any GCC internal prototype to avoid an error.
19470 Use char because int might match the return type of a GCC
19471 builtin and then its argument prototype would still apply. */
19472 #ifdef __cplusplus
19473 extern "C"
19474 #endif
19475 char BZ2_bzopen ();
19476 int
19477 main ()
19478 {
19479 return BZ2_bzopen ();
19480 ;
19481 return 0;
19482 }
19483 _ACEOF
19484 if ac_fn_c_try_link "$LINENO"; then :
19485 ac_cv_lib_bz2_BZ2_bzopen=yes
19486 else
19487 ac_cv_lib_bz2_BZ2_bzopen=no
19488 fi
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
19494 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
19495 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
19496 Z_LIBS="$Z_LIBS -lbz2"
19497 else
19498 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
19499 fi
19500
19501
19502 $as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
19503
19504 fi
19505 if test "x$with_bzip2" = xyes ; then
19506 X_BZIP2_FONT_COMPRESSION_TRUE=
19507 X_BZIP2_FONT_COMPRESSION_FALSE='#'
19508 else
19509 X_BZIP2_FONT_COMPRESSION_TRUE='#'
19510 X_BZIP2_FONT_COMPRESSION_FALSE=
19511 fi
19512
19513
19514
19515 # Check whether --enable-builtins was given.
19516 if test "${enable_builtins+set}" = set; then :
19517 enableval=$enable_builtins; XFONT_BUILTINS=$enableval
19518 else
19519 XFONT_BUILTINS=yes
19520 fi
19521
19522 if test "x$XFONT_BUILTINS" = xyes ; then
19523 XFONT_BUILTINS_TRUE=
19524 XFONT_BUILTINS_FALSE='#'
19525 else
19526 XFONT_BUILTINS_TRUE='#'
19527 XFONT_BUILTINS_FALSE=
19528 fi
19529
19530 if test "x$XFONT_BUILTINS" = xyes; then
19531
19532 $as_echo "#define XFONT_BUILTINS 1" >>confdefs.h
19533
19534 XFONT_BITMAP=yes
19535 fi
19536
19537 # Check whether --enable-pcfformat was given.
19538 if test "${enable_pcfformat+set}" = set; then :
19539 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
19540 else
19541 XFONT_PCFFORMAT=yes
19542 fi
19543
19544 if test "x$XFONT_PCFFORMAT" = xyes; then
19545 XFONT_PCFFORMAT_TRUE=
19546 XFONT_PCFFORMAT_FALSE='#'
19547 else
19548 XFONT_PCFFORMAT_TRUE='#'
19549 XFONT_PCFFORMAT_FALSE=
19550 fi
19551
19552 if test "x$XFONT_PCFFORMAT" = xyes; then
19553
19554 $as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h
19555
19556 XFONT_BITMAP=yes
19557 fi
19558
19559 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then
19560 XFONT_PCF_OR_BUILTIN_TRUE=
19561 XFONT_PCF_OR_BUILTIN_FALSE='#'
19562 else
19563 XFONT_PCF_OR_BUILTIN_TRUE='#'
19564 XFONT_PCF_OR_BUILTIN_FALSE=
19565 fi
19566
19567
19568 # Check whether --enable-bdfformat was given.
19569 if test "${enable_bdfformat+set}" = set; then :
19570 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
19571 else
19572 XFONT_BDFFORMAT=yes
19573 fi
19574
19575 if test "x$XFONT_BDFFORMAT" = xyes; then
19576 XFONT_BDFFORMAT_TRUE=
19577 XFONT_BDFFORMAT_FALSE='#'
19578 else
19579 XFONT_BDFFORMAT_TRUE='#'
19580 XFONT_BDFFORMAT_FALSE=
19581 fi
19582
19583 if test "x$XFONT_BDFFORMAT" = xyes; then
19584
19585 $as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h
19586
19587 XFONT_BITMAP=yes
19588 fi
19589
19590 # Check whether --enable-snfformat was given.
19591 if test "${enable_snfformat+set}" = set; then :
19592 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
19593 else
19594 XFONT_SNFFORMAT=no
19595 fi
19596
19597 if test "x$XFONT_SNFFORMAT" = xyes; then
19598 XFONT_SNFFORMAT_TRUE=
19599 XFONT_SNFFORMAT_FALSE='#'
19600 else
19601 XFONT_SNFFORMAT_TRUE='#'
19602 XFONT_SNFFORMAT_FALSE=
19603 fi
19604
19605 if test "x$XFONT_SNFFORMAT" = xyes; then
19606
19607 $as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h
19608
19609 XFONT_BITMAP=yes
19610 fi
19611
19612 if test "x$XFONT_BITMAP" = xyes ; then
19613 XFONT_BITMAP_TRUE=
19614 XFONT_BITMAP_FALSE='#'
19615 else
19616 XFONT_BITMAP_TRUE='#'
19617 XFONT_BITMAP_FALSE=
19618 fi
19619
19620 if test "x$XFONT_BITMAP" = xyes; then
19621
19622 $as_echo "#define XFONT_BITMAP 1" >>confdefs.h
19623
19624 XFONT_FONTFILE=yes
19625 fi
19626
19627 if test "x$XFONT_FONTFILE" = xyes; then
19628 XFONT_FONTFILE_TRUE=
19629 XFONT_FONTFILE_FALSE='#'
19630 else
19631 XFONT_FONTFILE_TRUE='#'
19632 XFONT_FONTFILE_FALSE=
19633 fi
19634
19635 if test "x$XFONT_FONTFILE" = xyes; then
19636
19637 $as_echo "#define XFONT_FONTFILE 1" >>confdefs.h
19638
19639 fi
19640
19641 #
19642 # Support connection to font servers?
19643 #
19644
19645 # Check whether --enable-fc was given.
19646 if test "${enable_fc+set}" = set; then :
19647 enableval=$enable_fc; XFONT_FC=$enableval
19648 else
19649 XFONT_FC=yes
19650 fi
19651
19652 if test "x$XFONT_FC" = xyes; then
19653 XFONT_FC_TRUE=
19654 XFONT_FC_FALSE='#'
19655 else
19656 XFONT_FC_TRUE='#'
19657 XFONT_FC_FALSE=
19658 fi
19659
19660 if test "x$XFONT_FC" = xyes; then
19661
19662 $as_echo "#define XFONT_FC 1" >>confdefs.h
19663
19664 fi
19665
19666
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19668 $as_echo_n "checking for hypot in -lm... " >&6; }
19669 if ${ac_cv_lib_m_hypot+:} false; then :
19670 $as_echo_n "(cached) " >&6
19671 else
19672 ac_check_lib_save_LIBS=$LIBS
19673 LIBS="-lm $LIBS"
19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19676
19677 /* Override any GCC internal prototype to avoid an error.
19678 Use char because int might match the return type of a GCC
19679 builtin and then its argument prototype would still apply. */
19680 #ifdef __cplusplus
19681 extern "C"
19682 #endif
19683 char hypot ();
19684 int
19685 main ()
19686 {
19687 return hypot ();
19688 ;
19689 return 0;
19690 }
19691 _ACEOF
19692 if ac_fn_c_try_link "$LINENO"; then :
19693 ac_cv_lib_m_hypot=yes
19694 else
19695 ac_cv_lib_m_hypot=no
19696 fi
19697 rm -f core conftest.err conftest.$ac_objext \
19698 conftest$ac_exeext conftest.$ac_ext
19699 LIBS=$ac_check_lib_save_LIBS
19700 fi
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19702 $as_echo "$ac_cv_lib_m_hypot" >&6; }
19703 if test "x$ac_cv_lib_m_hypot" = xyes; then :
19704 MATH_LIBS=-lm
19705
19706 else
19707 as_fn_error $? "*** libm is required" "$LINENO" 5
19708 fi
19709
19710
19711
19712 pkg_failed=no
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
19714 $as_echo_n "checking for XFONT... " >&6; }
19715
19716 if test -n "$XFONT_CFLAGS"; then
19717 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
19718 elif test -n "$PKG_CONFIG"; then
19719 if test -n "$PKG_CONFIG" && \
19720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19721 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19722 ac_status=$?
19723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19724 test $ac_status = 0; }; then
19725 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19726 test "x$?" != "x0" && pkg_failed=yes
19727 else
19728 pkg_failed=yes
19729 fi
19730 else
19731 pkg_failed=untried
19732 fi
19733 if test -n "$XFONT_LIBS"; then
19734 pkg_cv_XFONT_LIBS="$XFONT_LIBS"
19735 elif test -n "$PKG_CONFIG"; then
19736 if test -n "$PKG_CONFIG" && \
19737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19738 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19739 ac_status=$?
19740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19741 test $ac_status = 0; }; then
19742 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19743 test "x$?" != "x0" && pkg_failed=yes
19744 else
19745 pkg_failed=yes
19746 fi
19747 else
19748 pkg_failed=untried
19749 fi
19750
19751
19752
19753 if test $pkg_failed = yes; then
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755 $as_echo "no" >&6; }
19756
19757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19758 _pkg_short_errors_supported=yes
19759 else
19760 _pkg_short_errors_supported=no
19761 fi
19762 if test $_pkg_short_errors_supported = yes; then
19763 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19764 else
19765 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19766 fi
19767 # Put the nasty error message in config.log where it belongs
19768 echo "$XFONT_PKG_ERRORS" >&5
19769
19770 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met:
19771
19772 $XFONT_PKG_ERRORS
19773
19774 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19775 installed software in a non-standard prefix.
19776
19777 Alternatively, you may set the environment variables XFONT_CFLAGS
19778 and XFONT_LIBS to avoid the need to call pkg-config.
19779 See the pkg-config man page for more details." "$LINENO" 5
19780 elif test $pkg_failed = untried; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19785 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19786 is in your PATH or set the PKG_CONFIG environment variable to the full
19787 path to pkg-config.
19788
19789 Alternatively, you may set the environment variables XFONT_CFLAGS
19790 and XFONT_LIBS to avoid the need to call pkg-config.
19791 See the pkg-config man page for more details.
19792
19793 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19794 See \`config.log' for more details" "$LINENO" 5; }
19795 else
19796 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
19797 XFONT_LIBS=$pkg_cv_XFONT_LIBS
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799 $as_echo "yes" >&6; }
19800
19801 fi
19802
19803 # Transport selection macro from xtrans.m4
19804
19805
19806 case $host_os in
19807 mingw*) unixdef="no" ;;
19808 *) unixdef="yes" ;;
19809 esac
19810 # Check whether --enable-unix-transport was given.
19811 if test "${enable_unix_transport+set}" = set; then :
19812 enableval=$enable_unix_transport; UNIXCONN=$enableval
19813 else
19814 UNIXCONN=$unixdef
19815 fi
19816
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19818 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19819 if test "$UNIXCONN" = "yes"; then
19820
19821 $as_echo "#define UNIXCONN 1" >>confdefs.h
19822
19823 fi
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19825 $as_echo "$UNIXCONN" >&6; }
19826 # Check whether --enable-tcp-transport was given.
19827 if test "${enable_tcp_transport+set}" = set; then :
19828 enableval=$enable_tcp_transport; TCPCONN=$enableval
19829 else
19830 TCPCONN=yes
19831 fi
19832
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19834 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19836 $as_echo "$TCPCONN" >&6; }
19837 if test "$TCPCONN" = "yes"; then
19838
19839 $as_echo "#define TCPCONN 1" >>confdefs.h
19840
19841
19842 # SVR4 hides these in libraries other than libc
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19844 $as_echo_n "checking for library containing socket... " >&6; }
19845 if ${ac_cv_search_socket+:} false; then :
19846 $as_echo_n "(cached) " >&6
19847 else
19848 ac_func_search_save_LIBS=$LIBS
19849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h. */
19851
19852 /* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
19855 #ifdef __cplusplus
19856 extern "C"
19857 #endif
19858 char socket ();
19859 int
19860 main ()
19861 {
19862 return socket ();
19863 ;
19864 return 0;
19865 }
19866 _ACEOF
19867 for ac_lib in '' socket; do
19868 if test -z "$ac_lib"; then
19869 ac_res="none required"
19870 else
19871 ac_res=-l$ac_lib
19872 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19873 fi
19874 if ac_fn_c_try_link "$LINENO"; then :
19875 ac_cv_search_socket=$ac_res
19876 fi
19877 rm -f core conftest.err conftest.$ac_objext \
19878 conftest$ac_exeext
19879 if ${ac_cv_search_socket+:} false; then :
19880 break
19881 fi
19882 done
19883 if ${ac_cv_search_socket+:} false; then :
19884
19885 else
19886 ac_cv_search_socket=no
19887 fi
19888 rm conftest.$ac_ext
19889 LIBS=$ac_func_search_save_LIBS
19890 fi
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19892 $as_echo "$ac_cv_search_socket" >&6; }
19893 ac_res=$ac_cv_search_socket
19894 if test "$ac_res" != no; then :
19895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19896
19897 fi
19898
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19900 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19901 if ${ac_cv_search_gethostbyname+:} false; then :
19902 $as_echo_n "(cached) " >&6
19903 else
19904 ac_func_search_save_LIBS=$LIBS
19905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906 /* end confdefs.h. */
19907
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19911 #ifdef __cplusplus
19912 extern "C"
19913 #endif
19914 char gethostbyname ();
19915 int
19916 main ()
19917 {
19918 return gethostbyname ();
19919 ;
19920 return 0;
19921 }
19922 _ACEOF
19923 for ac_lib in '' nsl; do
19924 if test -z "$ac_lib"; then
19925 ac_res="none required"
19926 else
19927 ac_res=-l$ac_lib
19928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19929 fi
19930 if ac_fn_c_try_link "$LINENO"; then :
19931 ac_cv_search_gethostbyname=$ac_res
19932 fi
19933 rm -f core conftest.err conftest.$ac_objext \
19934 conftest$ac_exeext
19935 if ${ac_cv_search_gethostbyname+:} false; then :
19936 break
19937 fi
19938 done
19939 if ${ac_cv_search_gethostbyname+:} false; then :
19940
19941 else
19942 ac_cv_search_gethostbyname=no
19943 fi
19944 rm conftest.$ac_ext
19945 LIBS=$ac_func_search_save_LIBS
19946 fi
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19948 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19949 ac_res=$ac_cv_search_gethostbyname
19950 if test "$ac_res" != no; then :
19951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19952
19953 fi
19954
19955 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19957 $as_echo_n "checking for main in -lws2_32... " >&6; }
19958 if ${ac_cv_lib_ws2_32_main+:} false; then :
19959 $as_echo_n "(cached) " >&6
19960 else
19961 ac_check_lib_save_LIBS=$LIBS
19962 LIBS="-lws2_32 $LIBS"
19963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964 /* end confdefs.h. */
19965
19966
19967 int
19968 main ()
19969 {
19970 return main ();
19971 ;
19972 return 0;
19973 }
19974 _ACEOF
19975 if ac_fn_c_try_link "$LINENO"; then :
19976 ac_cv_lib_ws2_32_main=yes
19977 else
19978 ac_cv_lib_ws2_32_main=no
19979 fi
19980 rm -f core conftest.err conftest.$ac_objext \
19981 conftest$ac_exeext conftest.$ac_ext
19982 LIBS=$ac_check_lib_save_LIBS
19983 fi
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19985 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19986 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19987 cat >>confdefs.h <<_ACEOF
19988 #define HAVE_LIBWS2_32 1
19989 _ACEOF
19990
19991 LIBS="-lws2_32 $LIBS"
19992
19993 fi
19994
19995 fi
19996
19997 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19998 # Check whether --enable-ipv6 was given.
19999 if test "${enable_ipv6+set}" = set; then :
20000 enableval=$enable_ipv6; IPV6CONN=$enableval
20001 else
20002 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20003 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20004 IPV6CONN=yes
20005 else
20006 IPV6CONN=no
20007 fi
20008
20009 fi
20010
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20012 $as_echo_n "checking if IPv6 support should be built... " >&6; }
20013 if test "$IPV6CONN" = "yes"; then
20014
20015 $as_echo "#define IPv6 1" >>confdefs.h
20016
20017 fi
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20019 $as_echo "$IPV6CONN" >&6; }
20020
20021 # 4.3BSD-Reno added a new member to struct sockaddr_in
20022 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20023 #include <sys/types.h>
20024 #include <sys/socket.h>
20025 #include <netinet/in.h>
20026
20027 "
20028 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
20029
20030 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
20031
20032 fi
20033
20034
20035 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20036 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20037 $ac_includes_default
20038 #include <sys/socket.h>
20039 "
20040 if test "x$ac_cv_type_socklen_t" = xyes; then :
20041
20042 cat >>confdefs.h <<_ACEOF
20043 #define HAVE_SOCKLEN_T 1
20044 _ACEOF
20045
20046
20047 fi
20048
20049
20050 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20051 # _XOPEN_SOURCE to get it (such as on Solaris)
20052 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20053 $ac_includes_default
20054 #include <sys/socket.h>
20055
20056 "
20057 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20058
20059 fi
20060
20061 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20062 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20063 unset ac_cv_member_struct_msghdr_msg_control
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20065 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20066 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20067 #define _XOPEN_SOURCE 600
20068 $ac_includes_default
20069 #include <sys/socket.h>
20070
20071 "
20072 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20073
20074 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20075
20076
20077 fi
20078
20079 fi
20080 # If that didn't work, fall back to XPG5/UNIX98 with C89
20081 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20082 unset ac_cv_member_struct_msghdr_msg_control
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20084 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20085 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20086 #define _XOPEN_SOURCE 500
20087 $ac_includes_default
20088 #include <sys/socket.h>
20089
20090 "
20091 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20092
20093 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20094
20095
20096 fi
20097
20098 fi
20099
20100
20101
20102 fi
20103 case $host_os in
20104 solaris*|sco*|sysv4*) localdef="yes" ;;
20105 *) localdef="no" ;;
20106 esac
20107 # Check whether --enable-local-transport was given.
20108 if test "${enable_local_transport+set}" = set; then :
20109 enableval=$enable_local_transport; LOCALCONN=$enableval
20110 else
20111 LOCALCONN=$localdef
20112 fi
20113
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20115 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20117 $as_echo "$LOCALCONN" >&6; }
20118 if test "$LOCALCONN" = "yes"; then
20119
20120 $as_echo "#define LOCALCONN 1" >>confdefs.h
20121
20122 fi
20123
20124
20125
20126 case $host_os in
20127 linux*)
20128 OS_CFLAGS="-D_XOPEN_SOURCE"
20129 ;;
20130 *)
20131 OS_CFLAGS=
20132 ;;
20133 esac
20134
20135
20136 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc"
20137
20138 cat >confcache <<\_ACEOF
20139 # This file is a shell script that caches the results of configure
20140 # tests run on this system so they can be shared between configure
20141 # scripts and configure runs, see configure's option --config-cache.
20142 # It is not useful on other systems. If it contains results you don't
20143 # want to keep, you may remove or edit it.
20144 #
20145 # config.status only pays attention to the cache file if you give it
20146 # the --recheck option to rerun configure.
20147 #
20148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20150 # following values.
20151
20152 _ACEOF
20153
20154 # The following way of writing the cache mishandles newlines in values,
20155 # but we know of no workaround that is simple, portable, and efficient.
20156 # So, we kill variables containing newlines.
20157 # Ultrix sh set writes to stderr and can't be redirected directly,
20158 # and sets the high bit in the cache file unless we assign to the vars.
20159 (
20160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20161 eval ac_val=\$$ac_var
20162 case $ac_val in #(
20163 *${as_nl}*)
20164 case $ac_var in #(
20165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20167 esac
20168 case $ac_var in #(
20169 _ | IFS | as_nl) ;; #(
20170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20171 *) { eval $ac_var=; unset $ac_var;} ;;
20172 esac ;;
20173 esac
20174 done
20175
20176 (set) 2>&1 |
20177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20178 *${as_nl}ac_space=\ *)
20179 # `set' does not quote correctly, so add quotes: double-quote
20180 # substitution turns \\\\ into \\, and sed turns \\ into \.
20181 sed -n \
20182 "s/'/'\\\\''/g;
20183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20184 ;; #(
20185 *)
20186 # `set' quotes correctly as required by POSIX, so do not add quotes.
20187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20188 ;;
20189 esac |
20190 sort
20191 ) |
20192 sed '
20193 /^ac_cv_env_/b end
20194 t clear
20195 :clear
20196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20197 t end
20198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20199 :end' >>confcache
20200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20201 if test -w "$cache_file"; then
20202 if test "x$cache_file" != "x/dev/null"; then
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20204 $as_echo "$as_me: updating cache $cache_file" >&6;}
20205 if test ! -f "$cache_file" || test -h "$cache_file"; then
20206 cat confcache >"$cache_file"
20207 else
20208 case $cache_file in #(
20209 */* | ?:*)
20210 mv -f confcache "$cache_file"$$ &&
20211 mv -f "$cache_file"$$ "$cache_file" ;; #(
20212 *)
20213 mv -f confcache "$cache_file" ;;
20214 esac
20215 fi
20216 fi
20217 else
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20219 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20220 fi
20221 fi
20222 rm -f confcache
20223
20224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20225 # Let make expand exec_prefix.
20226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20227
20228 DEFS=-DHAVE_CONFIG_H
20229
20230 ac_libobjs=
20231 ac_ltlibobjs=
20232 U=
20233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20234 # 1. Remove the extension, and $U if already installed.
20235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20236 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20238 # will be set to the directory where LIBOBJS objects are built.
20239 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20240 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20241 done
20242 LIBOBJS=$ac_libobjs
20243
20244 LTLIBOBJS=$ac_ltlibobjs
20245
20246
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20248 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20249 if test -n "$am_sleep_pid"; then
20250 # Hide warnings about reused PIDs.
20251 wait $am_sleep_pid 2>/dev/null
20252 fi
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20254 $as_echo "done" >&6; }
20255 if test -n "$EXEEXT"; then
20256 am__EXEEXT_TRUE=
20257 am__EXEEXT_FALSE='#'
20258 else
20259 am__EXEEXT_TRUE='#'
20260 am__EXEEXT_FALSE=
20261 fi
20262
20263 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20264 as_fn_error $? "conditional \"AMDEP\" was never defined.
20265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20266 fi
20267 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20268 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20270 fi
20271 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
20272 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
20273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20274 fi
20275 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20276 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20278 fi
20279 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20280 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20282 fi
20283 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20284 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20286 fi
20287 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20288 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20290 fi
20291 if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
20292 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
20293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20294 fi
20295 if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
20296 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
20297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20298 fi
20299 if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
20300 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
20301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20302 fi
20303 if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
20304 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
20305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20306 fi
20307 if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then
20308 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined.
20309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20310 fi
20311 if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
20312 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
20313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20314 fi
20315 if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
20316 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
20317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20318 fi
20319 if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
20320 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
20321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20322 fi
20323 if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
20324 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
20325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20326 fi
20327 if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
20328 as_fn_error $? "conditional \"XFONT_FC\" was never defined.
20329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20330 fi
20331
20332 : "${CONFIG_STATUS=./config.status}"
20333 ac_write_fail=0
20334 ac_clean_files_save=$ac_clean_files
20335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20337 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20338 as_write_fail=0
20339 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20340 #! $SHELL
20341 # Generated by $as_me.
20342 # Run this file to recreate the current configuration.
20343 # Compiler output produced by configure, useful for debugging
20344 # configure, is in config.log if it exists.
20345
20346 debug=false
20347 ac_cs_recheck=false
20348 ac_cs_silent=false
20349
20350 SHELL=\${CONFIG_SHELL-$SHELL}
20351 export SHELL
20352 _ASEOF
20353 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20354 ## -------------------- ##
20355 ## M4sh Initialization. ##
20356 ## -------------------- ##
20357
20358 # Be more Bourne compatible
20359 DUALCASE=1; export DUALCASE # for MKS sh
20360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20361 emulate sh
20362 NULLCMD=:
20363 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20364 # is contrary to our usage. Disable this feature.
20365 alias -g '${1+"$@"}'='"$@"'
20366 setopt NO_GLOB_SUBST
20367 else
20368 case `(set -o) 2>/dev/null` in #(
20369 *posix*) :
20370 set -o posix ;; #(
20371 *) :
20372 ;;
20373 esac
20374 fi
20375
20376
20377 as_nl='
20378 '
20379 export as_nl
20380 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20381 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20383 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20384 # Prefer a ksh shell builtin over an external printf program on Solaris,
20385 # but without wasting forks for bash or zsh.
20386 if test -z "$BASH_VERSION$ZSH_VERSION" \
20387 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20388 as_echo='print -r --'
20389 as_echo_n='print -rn --'
20390 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20391 as_echo='printf %s\n'
20392 as_echo_n='printf %s'
20393 else
20394 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20395 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20396 as_echo_n='/usr/ucb/echo -n'
20397 else
20398 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20399 as_echo_n_body='eval
20400 arg=$1;
20401 case $arg in #(
20402 *"$as_nl"*)
20403 expr "X$arg" : "X\\(.*\\)$as_nl";
20404 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20405 esac;
20406 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20407 '
20408 export as_echo_n_body
20409 as_echo_n='sh -c $as_echo_n_body as_echo'
20410 fi
20411 export as_echo_body
20412 as_echo='sh -c $as_echo_body as_echo'
20413 fi
20414
20415 # The user is always right.
20416 if test "${PATH_SEPARATOR+set}" != set; then
20417 PATH_SEPARATOR=:
20418 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20419 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20420 PATH_SEPARATOR=';'
20421 }
20422 fi
20423
20424
20425 # IFS
20426 # We need space, tab and new line, in precisely that order. Quoting is
20427 # there to prevent editors from complaining about space-tab.
20428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20429 # splitting by setting IFS to empty value.)
20430 IFS=" "" $as_nl"
20431
20432 # Find who we are. Look in the path if we contain no directory separator.
20433 as_myself=
20434 case $0 in #((
20435 *[\\/]* ) as_myself=$0 ;;
20436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20437 for as_dir in $PATH
20438 do
20439 IFS=$as_save_IFS
20440 test -z "$as_dir" && as_dir=.
20441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20442 done
20443 IFS=$as_save_IFS
20444
20445 ;;
20446 esac
20447 # We did not find ourselves, most probably we were run as `sh COMMAND'
20448 # in which case we are not to be found in the path.
20449 if test "x$as_myself" = x; then
20450 as_myself=$0
20451 fi
20452 if test ! -f "$as_myself"; then
20453 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20454 exit 1
20455 fi
20456
20457 # Unset variables that we do not need and which cause bugs (e.g. in
20458 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20459 # suppresses any "Segmentation fault" message there. '((' could
20460 # trigger a bug in pdksh 5.2.14.
20461 for as_var in BASH_ENV ENV MAIL MAILPATH
20462 do eval test x\${$as_var+set} = xset \
20463 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20464 done
20465 PS1='$ '
20466 PS2='> '
20467 PS4='+ '
20468
20469 # NLS nuisances.
20470 LC_ALL=C
20471 export LC_ALL
20472 LANGUAGE=C
20473 export LANGUAGE
20474
20475 # CDPATH.
20476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20477
20478
20479 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20480 # ----------------------------------------
20481 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20482 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20483 # script with STATUS, using 1 if that was 0.
20484 as_fn_error ()
20485 {
20486 as_status=$1; test $as_status -eq 0 && as_status=1
20487 if test "$4"; then
20488 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20489 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20490 fi
20491 $as_echo "$as_me: error: $2" >&2
20492 as_fn_exit $as_status
20493 } # as_fn_error
20494
20495
20496 # as_fn_set_status STATUS
20497 # -----------------------
20498 # Set $? to STATUS, without forking.
20499 as_fn_set_status ()
20500 {
20501 return $1
20502 } # as_fn_set_status
20503
20504 # as_fn_exit STATUS
20505 # -----------------
20506 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20507 as_fn_exit ()
20508 {
20509 set +e
20510 as_fn_set_status $1
20511 exit $1
20512 } # as_fn_exit
20513
20514 # as_fn_unset VAR
20515 # ---------------
20516 # Portably unset VAR.
20517 as_fn_unset ()
20518 {
20519 { eval $1=; unset $1;}
20520 }
20521 as_unset=as_fn_unset
20522 # as_fn_append VAR VALUE
20523 # ----------------------
20524 # Append the text in VALUE to the end of the definition contained in VAR. Take
20525 # advantage of any shell optimizations that allow amortized linear growth over
20526 # repeated appends, instead of the typical quadratic growth present in naive
20527 # implementations.
20528 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20529 eval 'as_fn_append ()
20530 {
20531 eval $1+=\$2
20532 }'
20533 else
20534 as_fn_append ()
20535 {
20536 eval $1=\$$1\$2
20537 }
20538 fi # as_fn_append
20539
20540 # as_fn_arith ARG...
20541 # ------------------
20542 # Perform arithmetic evaluation on the ARGs, and store the result in the
20543 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20544 # must be portable across $(()) and expr.
20545 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20546 eval 'as_fn_arith ()
20547 {
20548 as_val=$(( $* ))
20549 }'
20550 else
20551 as_fn_arith ()
20552 {
20553 as_val=`expr "$@" || test $? -eq 1`
20554 }
20555 fi # as_fn_arith
20556
20557
20558 if expr a : '\(a\)' >/dev/null 2>&1 &&
20559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20560 as_expr=expr
20561 else
20562 as_expr=false
20563 fi
20564
20565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20566 as_basename=basename
20567 else
20568 as_basename=false
20569 fi
20570
20571 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20572 as_dirname=dirname
20573 else
20574 as_dirname=false
20575 fi
20576
20577 as_me=`$as_basename -- "$0" ||
20578 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20579 X"$0" : 'X\(//\)$' \| \
20580 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20581 $as_echo X/"$0" |
20582 sed '/^.*\/\([^/][^/]*\)\/*$/{
20583 s//\1/
20584 q
20585 }
20586 /^X\/\(\/\/\)$/{
20587 s//\1/
20588 q
20589 }
20590 /^X\/\(\/\).*/{
20591 s//\1/
20592 q
20593 }
20594 s/.*/./; q'`
20595
20596 # Avoid depending upon Character Ranges.
20597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20600 as_cr_digits='0123456789'
20601 as_cr_alnum=$as_cr_Letters$as_cr_digits
20602
20603 ECHO_C= ECHO_N= ECHO_T=
20604 case `echo -n x` in #(((((
20605 -n*)
20606 case `echo 'xy\c'` in
20607 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20608 xy) ECHO_C='\c';;
20609 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20610 ECHO_T=' ';;
20611 esac;;
20612 *)
20613 ECHO_N='-n';;
20614 esac
20615
20616 rm -f conf$$ conf$$.exe conf$$.file
20617 if test -d conf$$.dir; then
20618 rm -f conf$$.dir/conf$$.file
20619 else
20620 rm -f conf$$.dir
20621 mkdir conf$$.dir 2>/dev/null
20622 fi
20623 if (echo >conf$$.file) 2>/dev/null; then
20624 if ln -s conf$$.file conf$$ 2>/dev/null; then
20625 as_ln_s='ln -s'
20626 # ... but there are two gotchas:
20627 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20628 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20629 # In both cases, we have to default to `cp -pR'.
20630 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20631 as_ln_s='cp -pR'
20632 elif ln conf$$.file conf$$ 2>/dev/null; then
20633 as_ln_s=ln
20634 else
20635 as_ln_s='cp -pR'
20636 fi
20637 else
20638 as_ln_s='cp -pR'
20639 fi
20640 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20641 rmdir conf$$.dir 2>/dev/null
20642
20643
20644 # as_fn_mkdir_p
20645 # -------------
20646 # Create "$as_dir" as a directory, including parents if necessary.
20647 as_fn_mkdir_p ()
20648 {
20649
20650 case $as_dir in #(
20651 -*) as_dir=./$as_dir;;
20652 esac
20653 test -d "$as_dir" || eval $as_mkdir_p || {
20654 as_dirs=
20655 while :; do
20656 case $as_dir in #(
20657 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20658 *) as_qdir=$as_dir;;
20659 esac
20660 as_dirs="'$as_qdir' $as_dirs"
20661 as_dir=`$as_dirname -- "$as_dir" ||
20662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20663 X"$as_dir" : 'X\(//\)[^/]' \| \
20664 X"$as_dir" : 'X\(//\)$' \| \
20665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20666 $as_echo X"$as_dir" |
20667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20668 s//\1/
20669 q
20670 }
20671 /^X\(\/\/\)[^/].*/{
20672 s//\1/
20673 q
20674 }
20675 /^X\(\/\/\)$/{
20676 s//\1/
20677 q
20678 }
20679 /^X\(\/\).*/{
20680 s//\1/
20681 q
20682 }
20683 s/.*/./; q'`
20684 test -d "$as_dir" && break
20685 done
20686 test -z "$as_dirs" || eval "mkdir $as_dirs"
20687 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20688
20689
20690 } # as_fn_mkdir_p
20691 if mkdir -p . 2>/dev/null; then
20692 as_mkdir_p='mkdir -p "$as_dir"'
20693 else
20694 test -d ./-p && rmdir ./-p
20695 as_mkdir_p=false
20696 fi
20697
20698
20699 # as_fn_executable_p FILE
20700 # -----------------------
20701 # Test if FILE is an executable regular file.
20702 as_fn_executable_p ()
20703 {
20704 test -f "$1" && test -x "$1"
20705 } # as_fn_executable_p
20706 as_test_x='test -x'
20707 as_executable_p=as_fn_executable_p
20708
20709 # Sed expression to map a string onto a valid CPP name.
20710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20711
20712 # Sed expression to map a string onto a valid variable name.
20713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20714
20715
20716 exec 6>&1
20717 ## ----------------------------------- ##
20718 ## Main body of $CONFIG_STATUS script. ##
20719 ## ----------------------------------- ##
20720 _ASEOF
20721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20722
20723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20724 # Save the log message, to keep $0 and so on meaningful, and to
20725 # report actual input values of CONFIG_FILES etc. instead of their
20726 # values after options handling.
20727 ac_log="
20728 This file was extended by libXfont $as_me 1.5.4, which was
20729 generated by GNU Autoconf 2.69. Invocation command line was
20730
20731 CONFIG_FILES = $CONFIG_FILES
20732 CONFIG_HEADERS = $CONFIG_HEADERS
20733 CONFIG_LINKS = $CONFIG_LINKS
20734 CONFIG_COMMANDS = $CONFIG_COMMANDS
20735 $ $0 $@
20736
20737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20738 "
20739
20740 _ACEOF
20741
20742 case $ac_config_files in *"
20743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20744 esac
20745
20746 case $ac_config_headers in *"
20747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20748 esac
20749
20750
20751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20752 # Files that config.status was made for.
20753 config_files="$ac_config_files"
20754 config_headers="$ac_config_headers"
20755 config_commands="$ac_config_commands"
20756
20757 _ACEOF
20758
20759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20760 ac_cs_usage="\
20761 \`$as_me' instantiates files and other configuration actions
20762 from templates according to the current configuration. Unless the files
20763 and actions are specified as TAGs, all are instantiated by default.
20764
20765 Usage: $0 [OPTION]... [TAG]...
20766
20767 -h, --help print this help, then exit
20768 -V, --version print version number and configuration settings, then exit
20769 --config print configuration, then exit
20770 -q, --quiet, --silent
20771 do not print progress messages
20772 -d, --debug don't remove temporary files
20773 --recheck update $as_me by reconfiguring in the same conditions
20774 --file=FILE[:TEMPLATE]
20775 instantiate the configuration file FILE
20776 --header=FILE[:TEMPLATE]
20777 instantiate the configuration header FILE
20778
20779 Configuration files:
20780 $config_files
20781
20782 Configuration headers:
20783 $config_headers
20784
20785 Configuration commands:
20786 $config_commands
20787
20788 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20789
20790 _ACEOF
20791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20792 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20793 ac_cs_version="\\
20794 libXfont config.status 1.5.4
20795 configured by $0, generated by GNU Autoconf 2.69,
20796 with options \\"\$ac_cs_config\\"
20797
20798 Copyright (C) 2012 Free Software Foundation, Inc.
20799 This config.status script is free software; the Free Software Foundation
20800 gives unlimited permission to copy, distribute and modify it."
20801
20802 ac_pwd='$ac_pwd'
20803 srcdir='$srcdir'
20804 INSTALL='$INSTALL'
20805 MKDIR_P='$MKDIR_P'
20806 AWK='$AWK'
20807 test -n "\$AWK" || AWK=awk
20808 _ACEOF
20809
20810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20811 # The default lists apply if the user does not specify any file.
20812 ac_need_defaults=:
20813 while test $# != 0
20814 do
20815 case $1 in
20816 --*=?*)
20817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20819 ac_shift=:
20820 ;;
20821 --*=)
20822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20823 ac_optarg=
20824 ac_shift=:
20825 ;;
20826 *)
20827 ac_option=$1
20828 ac_optarg=$2
20829 ac_shift=shift
20830 ;;
20831 esac
20832
20833 case $ac_option in
20834 # Handling of the options.
20835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20836 ac_cs_recheck=: ;;
20837 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20838 $as_echo "$ac_cs_version"; exit ;;
20839 --config | --confi | --conf | --con | --co | --c )
20840 $as_echo "$ac_cs_config"; exit ;;
20841 --debug | --debu | --deb | --de | --d | -d )
20842 debug=: ;;
20843 --file | --fil | --fi | --f )
20844 $ac_shift
20845 case $ac_optarg in
20846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20847 '') as_fn_error $? "missing file argument" ;;
20848 esac
20849 as_fn_append CONFIG_FILES " '$ac_optarg'"
20850 ac_need_defaults=false;;
20851 --header | --heade | --head | --hea )
20852 $ac_shift
20853 case $ac_optarg in
20854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20855 esac
20856 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20857 ac_need_defaults=false;;
20858 --he | --h)
20859 # Conflict between --help and --header
20860 as_fn_error $? "ambiguous option: \`$1'
20861 Try \`$0 --help' for more information.";;
20862 --help | --hel | -h )
20863 $as_echo "$ac_cs_usage"; exit ;;
20864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20866 ac_cs_silent=: ;;
20867
20868 # This is an error.
20869 -*) as_fn_error $? "unrecognized option: \`$1'
20870 Try \`$0 --help' for more information." ;;
20871
20872 *) as_fn_append ac_config_targets " $1"
20873 ac_need_defaults=false ;;
20874
20875 esac
20876 shift
20877 done
20878
20879 ac_configure_extra_args=
20880
20881 if $ac_cs_silent; then
20882 exec 6>/dev/null
20883 ac_configure_extra_args="$ac_configure_extra_args --silent"
20884 fi
20885
20886 _ACEOF
20887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20888 if \$ac_cs_recheck; then
20889 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20890 shift
20891 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20892 CONFIG_SHELL='$SHELL'
20893 export CONFIG_SHELL
20894 exec "\$@"
20895 fi
20896
20897 _ACEOF
20898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20899 exec 5>>config.log
20900 {
20901 echo
20902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20903 ## Running $as_me. ##
20904 _ASBOX
20905 $as_echo "$ac_log"
20906 } >&5
20907
20908 _ACEOF
20909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20910 #
20911 # INIT-COMMANDS
20912 #
20913 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20914
20915
20916 # The HP-UX ksh and POSIX shell print the target directory to stdout
20917 # if CDPATH is set.
20918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20919
20920 sed_quote_subst='$sed_quote_subst'
20921 double_quote_subst='$double_quote_subst'
20922 delay_variable_subst='$delay_variable_subst'
20923 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20924 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20925 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20926 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20927 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20928 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20929 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20930 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20931 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20932 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20933 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20934 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20935 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20936 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20937 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20938 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20939 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20940 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20941 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20942 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20943 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20944 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20945 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20946 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20947 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20948 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20949 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20950 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20951 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20952 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20953 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20954 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20955 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20956 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20957 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20958 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20959 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20960 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20961 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20962 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20963 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20964 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20965 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20966 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20967 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20968 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20969 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20970 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20971 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20972 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20973 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20974 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20975 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20976 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20977 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20978 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20979 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20980 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20981 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"`'
20982 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20983 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20984 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20985 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20986 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20987 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20988 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20989 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20990 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20991 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20992 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20993 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20994 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20995 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20996 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20997 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20998 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20999 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21000 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21001 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21002 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21003 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21004 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21005 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21006 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21007 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21008 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21009 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21010 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21011 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21012 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21013 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21014 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21015 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21016 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21017 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21018 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21019 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21020 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21021 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21022 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21023 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21024 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21025 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21026 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21027 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21028 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21029 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21030 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21031 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21032 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21033 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21034 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21035 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21036 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21037 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21038 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21039 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21040 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21041 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21042 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21043 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21044 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21045 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21046 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21047 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21048 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21049 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21050 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21051 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21052 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21053 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21054 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21055 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21056 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21057 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21058
21059 LTCC='$LTCC'
21060 LTCFLAGS='$LTCFLAGS'
21061 compiler='$compiler_DEFAULT'
21062
21063 # A function that is used when there is no print builtin or printf.
21064 func_fallback_echo ()
21065 {
21066 eval 'cat <<_LTECHO_EOF
21067 \$1
21068 _LTECHO_EOF'
21069 }
21070
21071 # Quote evaled strings.
21072 for var in SHELL \
21073 ECHO \
21074 PATH_SEPARATOR \
21075 SED \
21076 GREP \
21077 EGREP \
21078 FGREP \
21079 LD \
21080 NM \
21081 LN_S \
21082 lt_SP2NL \
21083 lt_NL2SP \
21084 reload_flag \
21085 OBJDUMP \
21086 deplibs_check_method \
21087 file_magic_cmd \
21088 file_magic_glob \
21089 want_nocaseglob \
21090 DLLTOOL \
21091 sharedlib_from_linklib_cmd \
21092 AR \
21093 AR_FLAGS \
21094 archiver_list_spec \
21095 STRIP \
21096 RANLIB \
21097 CC \
21098 CFLAGS \
21099 compiler \
21100 lt_cv_sys_global_symbol_pipe \
21101 lt_cv_sys_global_symbol_to_cdecl \
21102 lt_cv_sys_global_symbol_to_import \
21103 lt_cv_sys_global_symbol_to_c_name_address \
21104 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21105 lt_cv_nm_interface \
21106 nm_file_list_spec \
21107 lt_cv_truncate_bin \
21108 lt_prog_compiler_no_builtin_flag \
21109 lt_prog_compiler_pic \
21110 lt_prog_compiler_wl \
21111 lt_prog_compiler_static \
21112 lt_cv_prog_compiler_c_o \
21113 need_locks \
21114 MANIFEST_TOOL \
21115 DSYMUTIL \
21116 NMEDIT \
21117 LIPO \
21118 OTOOL \
21119 OTOOL64 \
21120 shrext_cmds \
21121 export_dynamic_flag_spec \
21122 whole_archive_flag_spec \
21123 compiler_needs_object \
21124 with_gnu_ld \
21125 allow_undefined_flag \
21126 no_undefined_flag \
21127 hardcode_libdir_flag_spec \
21128 hardcode_libdir_separator \
21129 exclude_expsyms \
21130 include_expsyms \
21131 file_list_spec \
21132 variables_saved_for_relink \
21133 libname_spec \
21134 library_names_spec \
21135 soname_spec \
21136 install_override_mode \
21137 finish_eval \
21138 old_striplib \
21139 striplib; do
21140 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21141 *[\\\\\\\`\\"\\\$]*)
21142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21143 ;;
21144 *)
21145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21146 ;;
21147 esac
21148 done
21149
21150 # Double-quote double-evaled strings.
21151 for var in reload_cmds \
21152 old_postinstall_cmds \
21153 old_postuninstall_cmds \
21154 old_archive_cmds \
21155 extract_expsyms_cmds \
21156 old_archive_from_new_cmds \
21157 old_archive_from_expsyms_cmds \
21158 archive_cmds \
21159 archive_expsym_cmds \
21160 module_cmds \
21161 module_expsym_cmds \
21162 export_symbols_cmds \
21163 prelink_cmds \
21164 postlink_cmds \
21165 postinstall_cmds \
21166 postuninstall_cmds \
21167 finish_cmds \
21168 sys_lib_search_path_spec \
21169 configure_time_dlsearch_path \
21170 configure_time_lt_sys_library_path; do
21171 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21172 *[\\\\\\\`\\"\\\$]*)
21173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21174 ;;
21175 *)
21176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21177 ;;
21178 esac
21179 done
21180
21181 ac_aux_dir='$ac_aux_dir'
21182
21183 # See if we are running on zsh, and set the options that allow our
21184 # commands through without removal of \ escapes INIT.
21185 if test -n "\${ZSH_VERSION+set}"; then
21186 setopt NO_GLOB_SUBST
21187 fi
21188
21189
21190 PACKAGE='$PACKAGE'
21191 VERSION='$VERSION'
21192 RM='$RM'
21193 ofile='$ofile'
21194
21195
21196
21197
21198 _ACEOF
21199
21200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21201
21202 # Handling of arguments.
21203 for ac_config_target in $ac_config_targets
21204 do
21205 case $ac_config_target in
21206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21207 "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;;
21208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21209 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21211 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21212 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21213 "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;;
21214 "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;;
21215 "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;;
21216 "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;;
21217 "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;;
21218 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
21219 "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;;
21220 "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;;
21221
21222 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21223 esac
21224 done
21225
21226
21227 # If the user did not use the arguments to specify the items to instantiate,
21228 # then the envvar interface is used. Set only those that are not.
21229 # We use the long form for the default assignment because of an extremely
21230 # bizarre bug on SunOS 4.1.3.
21231 if $ac_need_defaults; then
21232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21235 fi
21236
21237 # Have a temporary directory for convenience. Make it in the build tree
21238 # simply because there is no reason against having it here, and in addition,
21239 # creating and moving files from /tmp can sometimes cause problems.
21240 # Hook for its removal unless debugging.
21241 # Note that there is a small window in which the directory will not be cleaned:
21242 # after its creation but before its name has been assigned to `$tmp'.
21243 $debug ||
21244 {
21245 tmp= ac_tmp=
21246 trap 'exit_status=$?
21247 : "${ac_tmp:=$tmp}"
21248 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21249 ' 0
21250 trap 'as_fn_exit 1' 1 2 13 15
21251 }
21252 # Create a (secure) tmp directory for tmp files.
21253
21254 {
21255 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21256 test -d "$tmp"
21257 } ||
21258 {
21259 tmp=./conf$$-$RANDOM
21260 (umask 077 && mkdir "$tmp")
21261 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21262 ac_tmp=$tmp
21263
21264 # Set up the scripts for CONFIG_FILES section.
21265 # No need to generate them if there are no CONFIG_FILES.
21266 # This happens for instance with `./config.status config.h'.
21267 if test -n "$CONFIG_FILES"; then
21268
21269
21270 ac_cr=`echo X | tr X '\015'`
21271 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21272 # But we know of no other shell where ac_cr would be empty at this
21273 # point, so we can use a bashism as a fallback.
21274 if test "x$ac_cr" = x; then
21275 eval ac_cr=\$\'\\r\'
21276 fi
21277 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21278 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21279 ac_cs_awk_cr='\\r'
21280 else
21281 ac_cs_awk_cr=$ac_cr
21282 fi
21283
21284 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21285 _ACEOF
21286
21287
21288 {
21289 echo "cat >conf$$subs.awk <<_ACEOF" &&
21290 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21291 echo "_ACEOF"
21292 } >conf$$subs.sh ||
21293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21294 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21295 ac_delim='%!_!# '
21296 for ac_last_try in false false false false false :; do
21297 . ./conf$$subs.sh ||
21298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21299
21300 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21301 if test $ac_delim_n = $ac_delim_num; then
21302 break
21303 elif $ac_last_try; then
21304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21305 else
21306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21307 fi
21308 done
21309 rm -f conf$$subs.sh
21310
21311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21312 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21313 _ACEOF
21314 sed -n '
21315 h
21316 s/^/S["/; s/!.*/"]=/
21317 p
21318 g
21319 s/^[^!]*!//
21320 :repl
21321 t repl
21322 s/'"$ac_delim"'$//
21323 t delim
21324 :nl
21325 h
21326 s/\(.\{148\}\)..*/\1/
21327 t more1
21328 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21329 p
21330 n
21331 b repl
21332 :more1
21333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21334 p
21335 g
21336 s/.\{148\}//
21337 t nl
21338 :delim
21339 h
21340 s/\(.\{148\}\)..*/\1/
21341 t more2
21342 s/["\\]/\\&/g; s/^/"/; s/$/"/
21343 p
21344 b
21345 :more2
21346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21347 p
21348 g
21349 s/.\{148\}//
21350 t delim
21351 ' <conf$$subs.awk | sed '
21352 /^[^""]/{
21353 N
21354 s/\n//
21355 }
21356 ' >>$CONFIG_STATUS || ac_write_fail=1
21357 rm -f conf$$subs.awk
21358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21359 _ACAWK
21360 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21361 for (key in S) S_is_set[key] = 1
21362 FS = ""
21363
21364 }
21365 {
21366 line = $ 0
21367 nfields = split(line, field, "@")
21368 substed = 0
21369 len = length(field[1])
21370 for (i = 2; i < nfields; i++) {
21371 key = field[i]
21372 keylen = length(key)
21373 if (S_is_set[key]) {
21374 value = S[key]
21375 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21376 len += length(value) + length(field[++i])
21377 substed = 1
21378 } else
21379 len += 1 + keylen
21380 }
21381
21382 print line
21383 }
21384
21385 _ACAWK
21386 _ACEOF
21387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21388 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21389 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21390 else
21391 cat
21392 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21393 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21394 _ACEOF
21395
21396 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21397 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21398 # trailing colons and then remove the whole line if VPATH becomes empty
21399 # (actually we leave an empty line to preserve line numbers).
21400 if test "x$srcdir" = x.; then
21401 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21402 h
21403 s///
21404 s/^/:/
21405 s/[ ]*$/:/
21406 s/:\$(srcdir):/:/g
21407 s/:\${srcdir}:/:/g
21408 s/:@srcdir@:/:/g
21409 s/^:*//
21410 s/:*$//
21411 x
21412 s/\(=[ ]*\).*/\1/
21413 G
21414 s/\n//
21415 s/^[^=]*=[ ]*$//
21416 }'
21417 fi
21418
21419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21420 fi # test -n "$CONFIG_FILES"
21421
21422 # Set up the scripts for CONFIG_HEADERS section.
21423 # No need to generate them if there are no CONFIG_HEADERS.
21424 # This happens for instance with `./config.status Makefile'.
21425 if test -n "$CONFIG_HEADERS"; then
21426 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21427 BEGIN {
21428 _ACEOF
21429
21430 # Transform confdefs.h into an awk script `defines.awk', embedded as
21431 # here-document in config.status, that substitutes the proper values into
21432 # config.h.in to produce config.h.
21433
21434 # Create a delimiter string that does not exist in confdefs.h, to ease
21435 # handling of long lines.
21436 ac_delim='%!_!# '
21437 for ac_last_try in false false :; do
21438 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21439 if test -z "$ac_tt"; then
21440 break
21441 elif $ac_last_try; then
21442 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21443 else
21444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21445 fi
21446 done
21447
21448 # For the awk script, D is an array of macro values keyed by name,
21449 # likewise P contains macro parameters if any. Preserve backslash
21450 # newline sequences.
21451
21452 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21453 sed -n '
21454 s/.\{148\}/&'"$ac_delim"'/g
21455 t rset
21456 :rset
21457 s/^[ ]*#[ ]*define[ ][ ]*/ /
21458 t def
21459 d
21460 :def
21461 s/\\$//
21462 t bsnl
21463 s/["\\]/\\&/g
21464 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21465 D["\1"]=" \3"/p
21466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21467 d
21468 :bsnl
21469 s/["\\]/\\&/g
21470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21471 D["\1"]=" \3\\\\\\n"\\/p
21472 t cont
21473 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21474 t cont
21475 d
21476 :cont
21477 n
21478 s/.\{148\}/&'"$ac_delim"'/g
21479 t clear
21480 :clear
21481 s/\\$//
21482 t bsnlc
21483 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21484 d
21485 :bsnlc
21486 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21487 b cont
21488 ' <confdefs.h | sed '
21489 s/'"$ac_delim"'/"\\\
21490 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21491
21492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21493 for (key in D) D_is_set[key] = 1
21494 FS = ""
21495 }
21496 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21497 line = \$ 0
21498 split(line, arg, " ")
21499 if (arg[1] == "#") {
21500 defundef = arg[2]
21501 mac1 = arg[3]
21502 } else {
21503 defundef = substr(arg[1], 2)
21504 mac1 = arg[2]
21505 }
21506 split(mac1, mac2, "(") #)
21507 macro = mac2[1]
21508 prefix = substr(line, 1, index(line, defundef) - 1)
21509 if (D_is_set[macro]) {
21510 # Preserve the white space surrounding the "#".
21511 print prefix "define", macro P[macro] D[macro]
21512 next
21513 } else {
21514 # Replace #undef with comments. This is necessary, for example,
21515 # in the case of _POSIX_SOURCE, which is predefined and required
21516 # on some systems where configure will not decide to define it.
21517 if (defundef == "undef") {
21518 print "/*", prefix defundef, macro, "*/"
21519 next
21520 }
21521 }
21522 }
21523 { print }
21524 _ACAWK
21525 _ACEOF
21526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21527 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21528 fi # test -n "$CONFIG_HEADERS"
21529
21530
21531 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21532 shift
21533 for ac_tag
21534 do
21535 case $ac_tag in
21536 :[FHLC]) ac_mode=$ac_tag; continue;;
21537 esac
21538 case $ac_mode$ac_tag in
21539 :[FHL]*:*);;
21540 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21541 :[FH]-) ac_tag=-:-;;
21542 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21543 esac
21544 ac_save_IFS=$IFS
21545 IFS=:
21546 set x $ac_tag
21547 IFS=$ac_save_IFS
21548 shift
21549 ac_file=$1
21550 shift
21551
21552 case $ac_mode in
21553 :L) ac_source=$1;;
21554 :[FH])
21555 ac_file_inputs=
21556 for ac_f
21557 do
21558 case $ac_f in
21559 -) ac_f="$ac_tmp/stdin";;
21560 *) # Look for the file first in the build tree, then in the source tree
21561 # (if the path is not absolute). The absolute path cannot be DOS-style,
21562 # because $ac_f cannot contain `:'.
21563 test -f "$ac_f" ||
21564 case $ac_f in
21565 [\\/$]*) false;;
21566 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21567 esac ||
21568 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21569 esac
21570 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21571 as_fn_append ac_file_inputs " '$ac_f'"
21572 done
21573
21574 # Let's still pretend it is `configure' which instantiates (i.e., don't
21575 # use $as_me), people would be surprised to read:
21576 # /* config.h. Generated by config.status. */
21577 configure_input='Generated from '`
21578 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21579 `' by configure.'
21580 if test x"$ac_file" != x-; then
21581 configure_input="$ac_file. $configure_input"
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21583 $as_echo "$as_me: creating $ac_file" >&6;}
21584 fi
21585 # Neutralize special characters interpreted by sed in replacement strings.
21586 case $configure_input in #(
21587 *\&* | *\|* | *\\* )
21588 ac_sed_conf_input=`$as_echo "$configure_input" |
21589 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21590 *) ac_sed_conf_input=$configure_input;;
21591 esac
21592
21593 case $ac_tag in
21594 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21596 esac
21597 ;;
21598 esac
21599
21600 ac_dir=`$as_dirname -- "$ac_file" ||
21601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21602 X"$ac_file" : 'X\(//\)[^/]' \| \
21603 X"$ac_file" : 'X\(//\)$' \| \
21604 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21605 $as_echo X"$ac_file" |
21606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21607 s//\1/
21608 q
21609 }
21610 /^X\(\/\/\)[^/].*/{
21611 s//\1/
21612 q
21613 }
21614 /^X\(\/\/\)$/{
21615 s//\1/
21616 q
21617 }
21618 /^X\(\/\).*/{
21619 s//\1/
21620 q
21621 }
21622 s/.*/./; q'`
21623 as_dir="$ac_dir"; as_fn_mkdir_p
21624 ac_builddir=.
21625
21626 case "$ac_dir" in
21627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21628 *)
21629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21630 # A ".." for each directory in $ac_dir_suffix.
21631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21632 case $ac_top_builddir_sub in
21633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21635 esac ;;
21636 esac
21637 ac_abs_top_builddir=$ac_pwd
21638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21639 # for backward compatibility:
21640 ac_top_builddir=$ac_top_build_prefix
21641
21642 case $srcdir in
21643 .) # We are building in place.
21644 ac_srcdir=.
21645 ac_top_srcdir=$ac_top_builddir_sub
21646 ac_abs_top_srcdir=$ac_pwd ;;
21647 [\\/]* | ?:[\\/]* ) # Absolute name.
21648 ac_srcdir=$srcdir$ac_dir_suffix;
21649 ac_top_srcdir=$srcdir
21650 ac_abs_top_srcdir=$srcdir ;;
21651 *) # Relative name.
21652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21653 ac_top_srcdir=$ac_top_build_prefix$srcdir
21654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21655 esac
21656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21657
21658
21659 case $ac_mode in
21660 :F)
21661 #
21662 # CONFIG_FILE
21663 #
21664
21665 case $INSTALL in
21666 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21667 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21668 esac
21669 ac_MKDIR_P=$MKDIR_P
21670 case $MKDIR_P in
21671 [\\/$]* | ?:[\\/]* ) ;;
21672 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21673 esac
21674 _ACEOF
21675
21676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21677 # If the template does not know about datarootdir, expand it.
21678 # FIXME: This hack should be removed a few years after 2.60.
21679 ac_datarootdir_hack=; ac_datarootdir_seen=
21680 ac_sed_dataroot='
21681 /datarootdir/ {
21682 p
21683 q
21684 }
21685 /@datadir@/p
21686 /@docdir@/p
21687 /@infodir@/p
21688 /@localedir@/p
21689 /@mandir@/p'
21690 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21691 *datarootdir*) ac_datarootdir_seen=yes;;
21692 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21694 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21695 _ACEOF
21696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21697 ac_datarootdir_hack='
21698 s&@datadir@&$datadir&g
21699 s&@docdir@&$docdir&g
21700 s&@infodir@&$infodir&g
21701 s&@localedir@&$localedir&g
21702 s&@mandir@&$mandir&g
21703 s&\\\${datarootdir}&$datarootdir&g' ;;
21704 esac
21705 _ACEOF
21706
21707 # Neutralize VPATH when `$srcdir' = `.'.
21708 # Shell code in configure.ac might set extrasub.
21709 # FIXME: do we really want to maintain this feature?
21710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21711 ac_sed_extra="$ac_vpsub
21712 $extrasub
21713 _ACEOF
21714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21715 :t
21716 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21717 s|@configure_input@|$ac_sed_conf_input|;t t
21718 s&@top_builddir@&$ac_top_builddir_sub&;t t
21719 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21720 s&@srcdir@&$ac_srcdir&;t t
21721 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21722 s&@top_srcdir@&$ac_top_srcdir&;t t
21723 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21724 s&@builddir@&$ac_builddir&;t t
21725 s&@abs_builddir@&$ac_abs_builddir&;t t
21726 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21727 s&@INSTALL@&$ac_INSTALL&;t t
21728 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21729 $ac_datarootdir_hack
21730 "
21731 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21732 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21733
21734 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21735 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21736 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21737 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21739 which seems to be undefined. Please make sure it is defined" >&5
21740 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21741 which seems to be undefined. Please make sure it is defined" >&2;}
21742
21743 rm -f "$ac_tmp/stdin"
21744 case $ac_file in
21745 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21746 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21747 esac \
21748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21749 ;;
21750 :H)
21751 #
21752 # CONFIG_HEADER
21753 #
21754 if test x"$ac_file" != x-; then
21755 {
21756 $as_echo "/* $configure_input */" \
21757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21758 } >"$ac_tmp/config.h" \
21759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21760 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21762 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21763 else
21764 rm -f "$ac_file"
21765 mv "$ac_tmp/config.h" "$ac_file" \
21766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21767 fi
21768 else
21769 $as_echo "/* $configure_input */" \
21770 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21771 || as_fn_error $? "could not create -" "$LINENO" 5
21772 fi
21773 # Compute "$ac_file"'s index in $config_headers.
21774 _am_arg="$ac_file"
21775 _am_stamp_count=1
21776 for _am_header in $config_headers :; do
21777 case $_am_header in
21778 $_am_arg | $_am_arg:* )
21779 break ;;
21780 * )
21781 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21782 esac
21783 done
21784 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21785 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21786 X"$_am_arg" : 'X\(//\)[^/]' \| \
21787 X"$_am_arg" : 'X\(//\)$' \| \
21788 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21789 $as_echo X"$_am_arg" |
21790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21791 s//\1/
21792 q
21793 }
21794 /^X\(\/\/\)[^/].*/{
21795 s//\1/
21796 q
21797 }
21798 /^X\(\/\/\)$/{
21799 s//\1/
21800 q
21801 }
21802 /^X\(\/\).*/{
21803 s//\1/
21804 q
21805 }
21806 s/.*/./; q'`/stamp-h$_am_stamp_count
21807 ;;
21808
21809 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21810 $as_echo "$as_me: executing $ac_file commands" >&6;}
21811 ;;
21812 esac
21813
21814
21815 case $ac_file$ac_mode in
21816 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21817 # Older Autoconf quotes --file arguments for eval, but not when files
21818 # are listed without --file. Let's play safe and only enable the eval
21819 # if we detect the quoting.
21820 case $CONFIG_FILES in
21821 *\'*) eval set x "$CONFIG_FILES" ;;
21822 *) set x $CONFIG_FILES ;;
21823 esac
21824 shift
21825 for mf
21826 do
21827 # Strip MF so we end up with the name of the file.
21828 mf=`echo "$mf" | sed -e 's/:.*$//'`
21829 # Check whether this is an Automake generated Makefile or not.
21830 # We used to match only the files named 'Makefile.in', but
21831 # some people rename them; so instead we look at the file content.
21832 # Grep'ing the first line is not enough: some people post-process
21833 # each Makefile.in and add a new line on top of each file to say so.
21834 # Grep'ing the whole file is not good either: AIX grep has a line
21835 # limit of 2048, but all sed's we know have understand at least 4000.
21836 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21837 dirpart=`$as_dirname -- "$mf" ||
21838 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839 X"$mf" : 'X\(//\)[^/]' \| \
21840 X"$mf" : 'X\(//\)$' \| \
21841 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21842 $as_echo X"$mf" |
21843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21844 s//\1/
21845 q
21846 }
21847 /^X\(\/\/\)[^/].*/{
21848 s//\1/
21849 q
21850 }
21851 /^X\(\/\/\)$/{
21852 s//\1/
21853 q
21854 }
21855 /^X\(\/\).*/{
21856 s//\1/
21857 q
21858 }
21859 s/.*/./; q'`
21860 else
21861 continue
21862 fi
21863 # Extract the definition of DEPDIR, am__include, and am__quote
21864 # from the Makefile without running 'make'.
21865 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21866 test -z "$DEPDIR" && continue
21867 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21868 test -z "$am__include" && continue
21869 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21870 # Find all dependency output files, they are included files with
21871 # $(DEPDIR) in their names. We invoke sed twice because it is the
21872 # simplest approach to changing $(DEPDIR) to its actual value in the
21873 # expansion.
21874 for file in `sed -n "
21875 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21876 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21877 # Make sure the directory exists.
21878 test -f "$dirpart/$file" && continue
21879 fdir=`$as_dirname -- "$file" ||
21880 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21881 X"$file" : 'X\(//\)[^/]' \| \
21882 X"$file" : 'X\(//\)$' \| \
21883 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21884 $as_echo X"$file" |
21885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21886 s//\1/
21887 q
21888 }
21889 /^X\(\/\/\)[^/].*/{
21890 s//\1/
21891 q
21892 }
21893 /^X\(\/\/\)$/{
21894 s//\1/
21895 q
21896 }
21897 /^X\(\/\).*/{
21898 s//\1/
21899 q
21900 }
21901 s/.*/./; q'`
21902 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21903 # echo "creating $dirpart/$file"
21904 echo '# dummy' > "$dirpart/$file"
21905 done
21906 done
21907 }
21908 ;;
21909 "libtool":C)
21910
21911 # See if we are running on zsh, and set the options that allow our
21912 # commands through without removal of \ escapes.
21913 if test -n "${ZSH_VERSION+set}"; then
21914 setopt NO_GLOB_SUBST
21915 fi
21916
21917 cfgfile=${ofile}T
21918 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21919 $RM "$cfgfile"
21920
21921 cat <<_LT_EOF >> "$cfgfile"
21922 #! $SHELL
21923 # Generated automatically by $as_me ($PACKAGE) $VERSION
21924 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21926
21927 # Provide generalized library-building support services.
21928 # Written by Gordon Matzigkeit, 1996
21929
21930 # Copyright (C) 2014 Free Software Foundation, Inc.
21931 # This is free software; see the source for copying conditions. There is NO
21932 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21933
21934 # GNU Libtool is free software; you can redistribute it and/or modify
21935 # it under the terms of the GNU General Public License as published by
21936 # the Free Software Foundation; either version 2 of of the License, or
21937 # (at your option) any later version.
21938 #
21939 # As a special exception to the GNU General Public License, if you
21940 # distribute this file as part of a program or library that is built
21941 # using GNU Libtool, you may include this file under the same
21942 # distribution terms that you use for the rest of that program.
21943 #
21944 # GNU Libtool is distributed in the hope that it will be useful, but
21945 # WITHOUT ANY WARRANTY; without even the implied warranty of
21946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21947 # GNU General Public License for more details.
21948 #
21949 # You should have received a copy of the GNU General Public License
21950 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21951
21952
21953 # The names of the tagged configurations supported by this script.
21954 available_tags=''
21955
21956 # Configured defaults for sys_lib_dlsearch_path munging.
21957 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21958
21959 # ### BEGIN LIBTOOL CONFIG
21960
21961 # Which release of libtool.m4 was used?
21962 macro_version=$macro_version
21963 macro_revision=$macro_revision
21964
21965 # Whether or not to build shared libraries.
21966 build_libtool_libs=$enable_shared
21967
21968 # Whether or not to build static libraries.
21969 build_old_libs=$enable_static
21970
21971 # What type of objects to build.
21972 pic_mode=$pic_mode
21973
21974 # Whether or not to optimize for fast installation.
21975 fast_install=$enable_fast_install
21976
21977 # Shared archive member basename,for filename based shared library versioning on AIX.
21978 shared_archive_member_spec=$shared_archive_member_spec
21979
21980 # Shell to use when invoking shell scripts.
21981 SHELL=$lt_SHELL
21982
21983 # An echo program that protects backslashes.
21984 ECHO=$lt_ECHO
21985
21986 # The PATH separator for the build system.
21987 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21988
21989 # The host system.
21990 host_alias=$host_alias
21991 host=$host
21992 host_os=$host_os
21993
21994 # The build system.
21995 build_alias=$build_alias
21996 build=$build
21997 build_os=$build_os
21998
21999 # A sed program that does not truncate output.
22000 SED=$lt_SED
22001
22002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22003 Xsed="\$SED -e 1s/^X//"
22004
22005 # A grep program that handles long lines.
22006 GREP=$lt_GREP
22007
22008 # An ERE matcher.
22009 EGREP=$lt_EGREP
22010
22011 # A literal string matcher.
22012 FGREP=$lt_FGREP
22013
22014 # A BSD- or MS-compatible name lister.
22015 NM=$lt_NM
22016
22017 # Whether we need soft or hard links.
22018 LN_S=$lt_LN_S
22019
22020 # What is the maximum length of a command?
22021 max_cmd_len=$max_cmd_len
22022
22023 # Object file suffix (normally "o").
22024 objext=$ac_objext
22025
22026 # Executable file suffix (normally "").
22027 exeext=$exeext
22028
22029 # whether the shell understands "unset".
22030 lt_unset=$lt_unset
22031
22032 # turn spaces into newlines.
22033 SP2NL=$lt_lt_SP2NL
22034
22035 # turn newlines into spaces.
22036 NL2SP=$lt_lt_NL2SP
22037
22038 # convert \$build file names to \$host format.
22039 to_host_file_cmd=$lt_cv_to_host_file_cmd
22040
22041 # convert \$build files to toolchain format.
22042 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22043
22044 # An object symbol dumper.
22045 OBJDUMP=$lt_OBJDUMP
22046
22047 # Method to check whether dependent libraries are shared objects.
22048 deplibs_check_method=$lt_deplibs_check_method
22049
22050 # Command to use when deplibs_check_method = "file_magic".
22051 file_magic_cmd=$lt_file_magic_cmd
22052
22053 # How to find potential files when deplibs_check_method = "file_magic".
22054 file_magic_glob=$lt_file_magic_glob
22055
22056 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22057 want_nocaseglob=$lt_want_nocaseglob
22058
22059 # DLL creation program.
22060 DLLTOOL=$lt_DLLTOOL
22061
22062 # Command to associate shared and link libraries.
22063 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22064
22065 # The archiver.
22066 AR=$lt_AR
22067
22068 # Flags to create an archive.
22069 AR_FLAGS=$lt_AR_FLAGS
22070
22071 # How to feed a file listing to the archiver.
22072 archiver_list_spec=$lt_archiver_list_spec
22073
22074 # A symbol stripping program.
22075 STRIP=$lt_STRIP
22076
22077 # Commands used to install an old-style archive.
22078 RANLIB=$lt_RANLIB
22079 old_postinstall_cmds=$lt_old_postinstall_cmds
22080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22081
22082 # Whether to use a lock for old archive extraction.
22083 lock_old_archive_extraction=$lock_old_archive_extraction
22084
22085 # A C compiler.
22086 LTCC=$lt_CC
22087
22088 # LTCC compiler flags.
22089 LTCFLAGS=$lt_CFLAGS
22090
22091 # Take the output of nm and produce a listing of raw symbols and C names.
22092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22093
22094 # Transform the output of nm in a proper C declaration.
22095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22096
22097 # Transform the output of nm into a list of symbols to manually relocate.
22098 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22099
22100 # Transform the output of nm in a C name address pair.
22101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22102
22103 # Transform the output of nm in a C name address pair when lib prefix is needed.
22104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22105
22106 # The name lister interface.
22107 nm_interface=$lt_lt_cv_nm_interface
22108
22109 # Specify filename containing input files for \$NM.
22110 nm_file_list_spec=$lt_nm_file_list_spec
22111
22112 # The root where to search for dependent libraries,and where our libraries should be installed.
22113 lt_sysroot=$lt_sysroot
22114
22115 # Command to truncate a binary pipe.
22116 lt_truncate_bin=$lt_lt_cv_truncate_bin
22117
22118 # The name of the directory that contains temporary libtool files.
22119 objdir=$objdir
22120
22121 # Used to examine libraries when file_magic_cmd begins with "file".
22122 MAGIC_CMD=$MAGIC_CMD
22123
22124 # Must we lock files when doing compilation?
22125 need_locks=$lt_need_locks
22126
22127 # Manifest tool.
22128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22129
22130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22131 DSYMUTIL=$lt_DSYMUTIL
22132
22133 # Tool to change global to local symbols on Mac OS X.
22134 NMEDIT=$lt_NMEDIT
22135
22136 # Tool to manipulate fat objects and archives on Mac OS X.
22137 LIPO=$lt_LIPO
22138
22139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22140 OTOOL=$lt_OTOOL
22141
22142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22143 OTOOL64=$lt_OTOOL64
22144
22145 # Old archive suffix (normally "a").
22146 libext=$libext
22147
22148 # Shared library suffix (normally ".so").
22149 shrext_cmds=$lt_shrext_cmds
22150
22151 # The commands to extract the exported symbol list from a shared archive.
22152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22153
22154 # Variables whose values should be saved in libtool wrapper scripts and
22155 # restored at link time.
22156 variables_saved_for_relink=$lt_variables_saved_for_relink
22157
22158 # Do we need the "lib" prefix for modules?
22159 need_lib_prefix=$need_lib_prefix
22160
22161 # Do we need a version for libraries?
22162 need_version=$need_version
22163
22164 # Library versioning type.
22165 version_type=$version_type
22166
22167 # Shared library runtime path variable.
22168 runpath_var=$runpath_var
22169
22170 # Shared library path variable.
22171 shlibpath_var=$shlibpath_var
22172
22173 # Is shlibpath searched before the hard-coded library search path?
22174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22175
22176 # Format of library name prefix.
22177 libname_spec=$lt_libname_spec
22178
22179 # List of archive names. First name is the real one, the rest are links.
22180 # The last name is the one that the linker finds with -lNAME
22181 library_names_spec=$lt_library_names_spec
22182
22183 # The coded name of the library, if different from the real name.
22184 soname_spec=$lt_soname_spec
22185
22186 # Permission mode override for installation of shared libraries.
22187 install_override_mode=$lt_install_override_mode
22188
22189 # Command to use after installation of a shared archive.
22190 postinstall_cmds=$lt_postinstall_cmds
22191
22192 # Command to use after uninstallation of a shared archive.
22193 postuninstall_cmds=$lt_postuninstall_cmds
22194
22195 # Commands used to finish a libtool library installation in a directory.
22196 finish_cmds=$lt_finish_cmds
22197
22198 # As "finish_cmds", except a single script fragment to be evaled but
22199 # not shown.
22200 finish_eval=$lt_finish_eval
22201
22202 # Whether we should hardcode library paths into libraries.
22203 hardcode_into_libs=$hardcode_into_libs
22204
22205 # Compile-time system search path for libraries.
22206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22207
22208 # Detected run-time system search path for libraries.
22209 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22210
22211 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22212 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22213
22214 # Whether dlopen is supported.
22215 dlopen_support=$enable_dlopen
22216
22217 # Whether dlopen of programs is supported.
22218 dlopen_self=$enable_dlopen_self
22219
22220 # Whether dlopen of statically linked programs is supported.
22221 dlopen_self_static=$enable_dlopen_self_static
22222
22223 # Commands to strip libraries.
22224 old_striplib=$lt_old_striplib
22225 striplib=$lt_striplib
22226
22227
22228 # The linker used to build libraries.
22229 LD=$lt_LD
22230
22231 # How to create reloadable object files.
22232 reload_flag=$lt_reload_flag
22233 reload_cmds=$lt_reload_cmds
22234
22235 # Commands used to build an old-style archive.
22236 old_archive_cmds=$lt_old_archive_cmds
22237
22238 # A language specific compiler.
22239 CC=$lt_compiler
22240
22241 # Is the compiler the GNU compiler?
22242 with_gcc=$GCC
22243
22244 # Compiler flag to turn off builtin functions.
22245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22246
22247 # Additional compiler flags for building library objects.
22248 pic_flag=$lt_lt_prog_compiler_pic
22249
22250 # How to pass a linker flag through the compiler.
22251 wl=$lt_lt_prog_compiler_wl
22252
22253 # Compiler flag to prevent dynamic linking.
22254 link_static_flag=$lt_lt_prog_compiler_static
22255
22256 # Does compiler simultaneously support -c and -o options?
22257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22258
22259 # Whether or not to add -lc for building shared libraries.
22260 build_libtool_need_lc=$archive_cmds_need_lc
22261
22262 # Whether or not to disallow shared libs when runtime libs are static.
22263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22264
22265 # Compiler flag to allow reflexive dlopens.
22266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22267
22268 # Compiler flag to generate shared objects directly from archives.
22269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22270
22271 # Whether the compiler copes with passing no objects directly.
22272 compiler_needs_object=$lt_compiler_needs_object
22273
22274 # Create an old-style archive from a shared archive.
22275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22276
22277 # Create a temporary old-style archive to link instead of a shared archive.
22278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22279
22280 # Commands used to build a shared archive.
22281 archive_cmds=$lt_archive_cmds
22282 archive_expsym_cmds=$lt_archive_expsym_cmds
22283
22284 # Commands used to build a loadable module if different from building
22285 # a shared archive.
22286 module_cmds=$lt_module_cmds
22287 module_expsym_cmds=$lt_module_expsym_cmds
22288
22289 # Whether we are building with GNU ld or not.
22290 with_gnu_ld=$lt_with_gnu_ld
22291
22292 # Flag that allows shared libraries with undefined symbols to be built.
22293 allow_undefined_flag=$lt_allow_undefined_flag
22294
22295 # Flag that enforces no undefined symbols.
22296 no_undefined_flag=$lt_no_undefined_flag
22297
22298 # Flag to hardcode \$libdir into a binary during linking.
22299 # This must work even if \$libdir does not exist
22300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22301
22302 # Whether we need a single "-rpath" flag with a separated argument.
22303 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22304
22305 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22306 # DIR into the resulting binary.
22307 hardcode_direct=$hardcode_direct
22308
22309 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22310 # DIR into the resulting binary and the resulting library dependency is
22311 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22312 # library is relocated.
22313 hardcode_direct_absolute=$hardcode_direct_absolute
22314
22315 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22316 # into the resulting binary.
22317 hardcode_minus_L=$hardcode_minus_L
22318
22319 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22320 # into the resulting binary.
22321 hardcode_shlibpath_var=$hardcode_shlibpath_var
22322
22323 # Set to "yes" if building a shared library automatically hardcodes DIR
22324 # into the library and all subsequent libraries and executables linked
22325 # against it.
22326 hardcode_automatic=$hardcode_automatic
22327
22328 # Set to yes if linker adds runtime paths of dependent libraries
22329 # to runtime path list.
22330 inherit_rpath=$inherit_rpath
22331
22332 # Whether libtool must link a program against all its dependency libraries.
22333 link_all_deplibs=$link_all_deplibs
22334
22335 # Set to "yes" if exported symbols are required.
22336 always_export_symbols=$always_export_symbols
22337
22338 # The commands to list exported symbols.
22339 export_symbols_cmds=$lt_export_symbols_cmds
22340
22341 # Symbols that should not be listed in the preloaded symbols.
22342 exclude_expsyms=$lt_exclude_expsyms
22343
22344 # Symbols that must always be exported.
22345 include_expsyms=$lt_include_expsyms
22346
22347 # Commands necessary for linking programs (against libraries) with templates.
22348 prelink_cmds=$lt_prelink_cmds
22349
22350 # Commands necessary for finishing linking programs.
22351 postlink_cmds=$lt_postlink_cmds
22352
22353 # Specify filename containing input files.
22354 file_list_spec=$lt_file_list_spec
22355
22356 # How to hardcode a shared library path into an executable.
22357 hardcode_action=$hardcode_action
22358
22359 # ### END LIBTOOL CONFIG
22360
22361 _LT_EOF
22362
22363 cat <<'_LT_EOF' >> "$cfgfile"
22364
22365 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22366
22367 # func_munge_path_list VARIABLE PATH
22368 # -----------------------------------
22369 # VARIABLE is name of variable containing _space_ separated list of
22370 # directories to be munged by the contents of PATH, which is string
22371 # having a format:
22372 # "DIR[:DIR]:"
22373 # string "DIR[ DIR]" will be prepended to VARIABLE
22374 # ":DIR[:DIR]"
22375 # string "DIR[ DIR]" will be appended to VARIABLE
22376 # "DIRP[:DIRP]::[DIRA:]DIRA"
22377 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22378 # "DIRA[ DIRA]" will be appended to VARIABLE
22379 # "DIR[:DIR]"
22380 # VARIABLE will be replaced by "DIR[ DIR]"
22381 func_munge_path_list ()
22382 {
22383 case x$2 in
22384 x)
22385 ;;
22386 *:)
22387 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22388 ;;
22389 x:*)
22390 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22391 ;;
22392 *::*)
22393 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22394 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22395 ;;
22396 *)
22397 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22398 ;;
22399 esac
22400 }
22401
22402
22403 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22404 func_cc_basename ()
22405 {
22406 for cc_temp in $*""; do
22407 case $cc_temp in
22408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22410 \-*) ;;
22411 *) break;;
22412 esac
22413 done
22414 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22415 }
22416
22417
22418 # ### END FUNCTIONS SHARED WITH CONFIGURE
22419
22420 _LT_EOF
22421
22422 case $host_os in
22423 aix3*)
22424 cat <<\_LT_EOF >> "$cfgfile"
22425 # AIX sometimes has problems with the GCC collect2 program. For some
22426 # reason, if we set the COLLECT_NAMES environment variable, the problems
22427 # vanish in a puff of smoke.
22428 if test set != "${COLLECT_NAMES+set}"; then
22429 COLLECT_NAMES=
22430 export COLLECT_NAMES
22431 fi
22432 _LT_EOF
22433 ;;
22434 esac
22435
22436
22437 ltmain=$ac_aux_dir/ltmain.sh
22438
22439
22440 # We use sed instead of cat because bash on DJGPP gets confused if
22441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22442 # text mode, it properly converts lines to CR/LF. This bash problem
22443 # is reportedly fixed, but why not run on old versions too?
22444 sed '$q' "$ltmain" >> "$cfgfile" \
22445 || (rm -f "$cfgfile"; exit 1)
22446
22447 mv -f "$cfgfile" "$ofile" ||
22448 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22449 chmod +x "$ofile"
22450
22451 ;;
22452
22453 esac
22454 done # for ac_tag
22455
22456
22457 as_fn_exit 0
22458 _ACEOF
22459 ac_clean_files=$ac_clean_files_save
22460
22461 test $ac_write_fail = 0 ||
22462 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22463
22464
22465 # configure is writing to config.log, and then calls config.status.
22466 # config.status does its own redirection, appending to config.log.
22467 # Unfortunately, on DOS this fails, as config.log is still kept open
22468 # by configure, so config.status won't be able to write to it; its
22469 # output is simply discarded. So we exec the FD to /dev/null,
22470 # effectively closing config.log, so it can be properly (re)opened and
22471 # appended to by config.status. When coming back to configure, we
22472 # need to make the FD available again.
22473 if test "$no_create" != yes; then
22474 ac_cs_success=:
22475 ac_config_status_args=
22476 test "$silent" = yes &&
22477 ac_config_status_args="$ac_config_status_args --quiet"
22478 exec 5>/dev/null
22479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22480 exec 5>>config.log
22481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22482 # would make configure fail if this is the last instruction.
22483 $ac_cs_success || as_fn_exit 1
22484 fi
22485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22488 fi
22489
22490