configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXdmcp 1.1.3.
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='libXdmcp'
653 PACKAGE_TARNAME='libXdmcp'
654 PACKAGE_VERSION='1.1.3'
655 PACKAGE_STRING='libXdmcp 1.1.3'
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 ENABLE_UNIT_TESTS_FALSE
701 ENABLE_UNIT_TESTS_TRUE
702 XORG_MALLOC_DEBUG_ENV
703 MAKE_LINT_LIB_FALSE
704 MAKE_LINT_LIB_TRUE
705 LINTLIB
706 LINT_FALSE
707 LINT_TRUE
708 LINT_FLAGS
709 LINT
710 HASXDMAUTH_FALSE
711 HASXDMAUTH_TRUE
712 XDMCP_LIBS
713 XDMCP_CFLAGS
714 HAVE_STYLESHEETS_FALSE
715 HAVE_STYLESHEETS_TRUE
716 XSL_STYLESHEET
717 STYLESHEET_SRCDIR
718 XORG_SGML_PATH
719 HAVE_XSLTPROC_FALSE
720 HAVE_XSLTPROC_TRUE
721 XSLTPROC
722 HAVE_FOP_FALSE
723 HAVE_FOP_TRUE
724 FOP
725 HAVE_XMLTO_FALSE
726 HAVE_XMLTO_TRUE
727 HAVE_XMLTO_TEXT_FALSE
728 HAVE_XMLTO_TEXT_TRUE
729 XMLTO
730 ENABLE_DOCS_FALSE
731 ENABLE_DOCS_TRUE
732 MAN_SUBSTS
733 XORG_MAN_PAGE
734 ADMIN_MAN_DIR
735 DRIVER_MAN_DIR
736 MISC_MAN_DIR
737 FILE_MAN_DIR
738 LIB_MAN_DIR
739 APP_MAN_DIR
740 ADMIN_MAN_SUFFIX
741 DRIVER_MAN_SUFFIX
742 MISC_MAN_SUFFIX
743 FILE_MAN_SUFFIX
744 LIB_MAN_SUFFIX
745 APP_MAN_SUFFIX
746 INSTALL_CMD
747 PKG_CONFIG_LIBDIR
748 PKG_CONFIG_PATH
749 PKG_CONFIG
750 CHANGELOG_CMD
751 STRICT_CFLAGS
752 CWARNFLAGS
753 BASE_CFLAGS
754 LT_SYS_LIBRARY_PATH
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 MANIFEST_TOOL
761 RANLIB
762 ac_ct_AR
763 AR
764 LN_S
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 LD
769 FGREP
770 SED
771 LIBTOOL
772 OBJDUMP
773 DLLTOOL
774 AS
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 AM_BACKSLASH
784 AM_DEFAULT_VERBOSITY
785 AM_DEFAULT_V
786 AM_V
787 am__fastdepCC_FALSE
788 am__fastdepCC_TRUE
789 CCDEPMODE
790 am__nodep
791 AMDEPBACKSLASH
792 AMDEP_FALSE
793 AMDEP_TRUE
794 am__quote
795 am__include
796 DEPDIR
797 am__untar
798 am__tar
799 AMTAR
800 am__leading_dot
801 SET_MAKE
802 AWK
803 mkdir_p
804 MKDIR_P
805 INSTALL_STRIP_PROGRAM
806 STRIP
807 install_sh
808 MAKEINFO
809 AUTOHEADER
810 AUTOMAKE
811 AUTOCONF
812 ACLOCAL
813 VERSION
814 PACKAGE
815 CYGPATH_W
816 am__isrc
817 INSTALL_DATA
818 INSTALL_SCRIPT
819 INSTALL_PROGRAM
820 EGREP
821 GREP
822 CPP
823 OBJEXT
824 EXEEXT
825 ac_ct_CC
826 CPPFLAGS
827 LDFLAGS
828 CFLAGS
829 CC
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_dependency_tracking
872 enable_silent_rules
873 enable_shared
874 enable_static
875 with_pic
876 enable_fast_install
877 with_aix_soname
878 with_gnu_ld
879 with_sysroot
880 enable_libtool_lock
881 enable_selective_werror
882 enable_strict_compilation
883 enable_docs
884 with_xmlto
885 with_fop
886 with_xsltproc
887 with_lint
888 enable_lint_library
889 enable_unit_tests
890 '
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 LT_SYS_LIBRARY_PATH
901 PKG_CONFIG
902 PKG_CONFIG_PATH
903 PKG_CONFIG_LIBDIR
904 XMLTO
905 FOP
906 XSLTPROC
907 XDMCP_CFLAGS
908 XDMCP_LIBS
909 LINT
910 LINT_FLAGS
911 XORG_MALLOC_DEBUG_ENV'
912
913
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 ac_unrecognized_opts=
918 ac_unrecognized_sep=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
961
962 ac_prev=
963 ac_dashdash=
964 for ac_option
965 do
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
971 fi
972
973 case $ac_option in
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *=) ac_optarg= ;;
976 *) ac_optarg=yes ;;
977 esac
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 bindir=$ac_optarg ;;
989
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1004
1005 -datadir | --datadir | --datadi | --datad)
1006 ac_prev=datadir ;;
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1009
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
1017 -disable-* | --disable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=\$ac_optarg ;;
1058
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
1066 exec_prefix=$ac_optarg ;;
1067
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1071
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
1078
1079 -host | --host | --hos | --ho)
1080 ac_prev=host_alias ;;
1081 -host=* | --host=* | --hos=* | --ho=*)
1082 host_alias=$ac_optarg ;;
1083
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1089
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
1095 includedir=$ac_optarg ;;
1096
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100 infodir=$ac_optarg ;;
1101
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1105 libdir=$ac_optarg ;;
1106
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
1112 libexecdir=$ac_optarg ;;
1113
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1118
1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
1120 | --localstate | --localstat | --localsta | --localst | --locals)
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124 localstatedir=$ac_optarg ;;
1125
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129 mandir=$ac_optarg ;;
1130
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1134
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136 | --no-cr | --no-c | -n)
1137 no_create=yes ;;
1138
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1142
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150 oldincludedir=$ac_optarg ;;
1151
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155 prefix=$ac_optarg ;;
1156
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162 program_prefix=$ac_optarg ;;
1163
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169 program_suffix=$ac_optarg ;;
1170
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
1186 program_transform_name=$ac_optarg ;;
1187
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1192
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1197
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures libXdmcp 1.1.3 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdmcp]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1506
1507 cat <<\_ACEOF
1508
1509 Program names:
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513
1514 System types:
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517 _ACEOF
1518 fi
1519
1520 if test -n "$ac_init_help"; then
1521 case $ac_init_help in
1522 short | recursive ) echo "Configuration of libXdmcp 1.1.3:";;
1523 esac
1524 cat <<\_ACEOF
1525
1526 Optional Features:
1527 --disable-option-checking ignore unrecognized --enable/--with options
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-dependency-tracking
1531 do not reject slow dependency extractors
1532 --disable-dependency-tracking
1533 speeds up one-time build
1534 --enable-silent-rules less verbose build output (undo: "make V=1")
1535 --disable-silent-rules verbose build output (undo: "make V=0")
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --disable-selective-werror
1542 Turn off selective compiler errors. (default:
1543 enabled)
1544 --enable-strict-compilation
1545 Enable all warnings from compiler and make them
1546 errors (default: disabled)
1547 --enable-docs Enable building the documentation (default: yes)
1548 --enable-lint-library Create lint library (default: disabled)
1549 --enable-unit-tests Enable building unit test cases (default: yes)
1550
1551 Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1555 both]
1556 --with-aix-soname=aix|svr4|both
1557 shared library versioning (aka "SONAME") variant to
1558 provide on AIX, [default=aix].
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1561 compiler's sysroot if not specified).
1562 --with-xmlto Use xmlto to regenerate documentation (default:
1563 auto)
1564 --with-fop Use fop to regenerate documentation (default: auto)
1565 --with-xsltproc Use xsltproc for the transformation of XML documents
1566 (default: auto)
1567 --with-lint Use a lint-style source code checker (default:
1568 disabled)
1569
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CPP C preprocessor
1579 LT_SYS_LIBRARY_PATH
1580 User-defined run-time library search path.
1581 PKG_CONFIG path to pkg-config utility
1582 PKG_CONFIG_PATH
1583 directories to add to pkg-config's search path
1584 PKG_CONFIG_LIBDIR
1585 path overriding pkg-config's built-in search path
1586 XMLTO Path to xmlto command
1587 FOP Path to fop command
1588 XSLTPROC Path to xsltproc command
1589 XDMCP_CFLAGS
1590 C compiler flags for XDMCP, overriding pkg-config
1591 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config
1592 LINT Path to a lint-style command
1593 LINT_FLAGS Flags for the lint-style command
1594 XORG_MALLOC_DEBUG_ENV
1595 Environment variables to enable memory checking in tests
1596
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1599
1600 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 libXdmcp configure 1.1.3
1664 generated by GNU Autoconf 2.69
1665
1666 Copyright (C) 2012 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670 exit
1671 fi
1672
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1676
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_compile
1714
1715 # ac_fn_c_try_cpp LINENO
1716 # ----------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_cpp ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } > conftest.i && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746 fi
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_cpp
1751
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1756 # accordingly.
1757 ac_fn_c_check_header_mongrel ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if eval \${$3+:} false; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 else
1770 # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780 else
1781 ac_header_compiler=no
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1786
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796 else
1797 ac_header_preproc=no
1798 fi
1799 rm -f conftest.err conftest.i conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1802
1803 # So? What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ( $as_echo "## ---------------------------------------------------------------------- ##
1823 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1824 ## ---------------------------------------------------------------------- ##"
1825 ) | sed "s/^/$as_me: WARNING: /" >&2
1826 ;;
1827 esac
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1832 else
1833 eval "$3=\$ac_header_compiler"
1834 fi
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 fi
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_header_mongrel
1842
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1847 ac_fn_c_try_run ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=$ac_status
1878 fi
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_run
1884
1885 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists and can be compiled using the include files in
1888 # INCLUDES, setting the cache variable VAR accordingly.
1889 ac_fn_c_check_header_compile ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_header_compile
1915
1916 # ac_fn_c_try_link LINENO
1917 # -----------------------
1918 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_c_try_link ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_c_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
1943 test -x conftest$ac_exeext
1944 }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951 fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1959
1960 } # ac_fn_c_try_link
1961
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1977 #define $2 innocuous_$2
1978
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char $2 (); below.
1981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982 <limits.h> exists even on freestanding compilers. */
1983
1984 #ifdef __STDC__
1985 # include <limits.h>
1986 #else
1987 # include <assert.h>
1988 #endif
1989
1990 #undef $2
1991
1992 /* Override any GCC internal prototype to avoid an error.
1993 Use char because int might match the return type of a GCC
1994 builtin and then its argument prototype would still apply. */
1995 #ifdef __cplusplus
1996 extern "C"
1997 #endif
1998 char $2 ();
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined __stub_$2 || defined __stub___$2
2003 choke me
2004 #endif
2005
2006 int
2007 main ()
2008 {
2009 return $2 ();
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_link "$LINENO"; then :
2015 eval "$3=yes"
2016 else
2017 eval "$3=no"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext \
2020 conftest$ac_exeext conftest.$ac_ext
2021 fi
2022 eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_func
2028
2029 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2030 # ---------------------------------------------
2031 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2032 # accordingly.
2033 ac_fn_c_check_decl ()
2034 {
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 as_decl_name=`echo $2|sed 's/ *(.*//'`
2037 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2039 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 $4
2046 int
2047 main ()
2048 {
2049 #ifndef $as_decl_name
2050 #ifdef __cplusplus
2051 (void) $as_decl_use;
2052 #else
2053 (void) $as_decl_name;
2054 #endif
2055 #endif
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_c_check_decl
2074 cat >config.log <<_ACEOF
2075 This file contains any messages produced by compilers while
2076 running configure, to aid debugging if configure makes a mistake.
2077
2078 It was created by libXdmcp $as_me 1.1.3, which was
2079 generated by GNU Autoconf 2.69. Invocation command line was
2080
2081 $ $0 $@
2082
2083 _ACEOF
2084 exec 5>>config.log
2085 {
2086 cat <<_ASUNAME
2087 ## --------- ##
2088 ## Platform. ##
2089 ## --------- ##
2090
2091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096
2097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2099
2100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2107
2108 _ASUNAME
2109
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113 IFS=$as_save_IFS
2114 test -z "$as_dir" && as_dir=.
2115 $as_echo "PATH: $as_dir"
2116 done
2117 IFS=$as_save_IFS
2118
2119 } >&5
2120
2121 cat >&5 <<_ACEOF
2122
2123
2124 ## ----------- ##
2125 ## Core tests. ##
2126 ## ----------- ##
2127
2128 _ACEOF
2129
2130
2131 # Keep a trace of the command line.
2132 # Strip out --no-create and --no-recursion so they do not pile up.
2133 # Strip out --silent because we don't want to record it for future runs.
2134 # Also quote any args containing shell meta-characters.
2135 # Make two passes to allow for proper duplicate-argument suppression.
2136 ac_configure_args=
2137 ac_configure_args0=
2138 ac_configure_args1=
2139 ac_must_keep_next=false
2140 for ac_pass in 1 2
2141 do
2142 for ac_arg
2143 do
2144 case $ac_arg in
2145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147 | -silent | --silent | --silen | --sile | --sil)
2148 continue ;;
2149 *\'*)
2150 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2151 esac
2152 case $ac_pass in
2153 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154 2)
2155 as_fn_append ac_configure_args1 " '$ac_arg'"
2156 if test $ac_must_keep_next = true; then
2157 ac_must_keep_next=false # Got value, back to normal.
2158 else
2159 case $ac_arg in
2160 *=* | --config-cache | -C | -disable-* | --disable-* \
2161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163 | -with-* | --with-* | -without-* | --without-* | --x)
2164 case "$ac_configure_args0 " in
2165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2166 esac
2167 ;;
2168 -* ) ac_must_keep_next=true ;;
2169 esac
2170 fi
2171 as_fn_append ac_configure_args " '$ac_arg'"
2172 ;;
2173 esac
2174 done
2175 done
2176 { ac_configure_args0=; unset ac_configure_args0;}
2177 { ac_configure_args1=; unset ac_configure_args1;}
2178
2179 # When interrupted or exit'd, cleanup temporary files, and complete
2180 # config.log. We remove comments because anyway the quotes in there
2181 # would cause problems or look ugly.
2182 # WARNING: Use '\'' to represent an apostrophe within the trap.
2183 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184 trap 'exit_status=$?
2185 # Save into config.log some information that might help in debugging.
2186 {
2187 echo
2188
2189 $as_echo "## ---------------- ##
2190 ## Cache variables. ##
2191 ## ---------------- ##"
2192 echo
2193 # The following way of writing the cache mishandles newlines in values,
2194 (
2195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2196 eval ac_val=\$$ac_var
2197 case $ac_val in #(
2198 *${as_nl}*)
2199 case $ac_var in #(
2200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2201 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2202 esac
2203 case $ac_var in #(
2204 _ | IFS | as_nl) ;; #(
2205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2206 *) { eval $ac_var=; unset $ac_var;} ;;
2207 esac ;;
2208 esac
2209 done
2210 (set) 2>&1 |
2211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2212 *${as_nl}ac_space=\ *)
2213 sed -n \
2214 "s/'\''/'\''\\\\'\'''\''/g;
2215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2216 ;; #(
2217 *)
2218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2219 ;;
2220 esac |
2221 sort
2222 )
2223 echo
2224
2225 $as_echo "## ----------------- ##
2226 ## Output variables. ##
2227 ## ----------------- ##"
2228 echo
2229 for ac_var in $ac_subst_vars
2230 do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 esac
2235 $as_echo "$ac_var='\''$ac_val'\''"
2236 done | sort
2237 echo
2238
2239 if test -n "$ac_subst_files"; then
2240 $as_echo "## ------------------- ##
2241 ## File substitutions. ##
2242 ## ------------------- ##"
2243 echo
2244 for ac_var in $ac_subst_files
2245 do
2246 eval ac_val=\$$ac_var
2247 case $ac_val in
2248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249 esac
2250 $as_echo "$ac_var='\''$ac_val'\''"
2251 done | sort
2252 echo
2253 fi
2254
2255 if test -s confdefs.h; then
2256 $as_echo "## ----------- ##
2257 ## confdefs.h. ##
2258 ## ----------- ##"
2259 echo
2260 cat confdefs.h
2261 echo
2262 fi
2263 test "$ac_signal" != 0 &&
2264 $as_echo "$as_me: caught signal $ac_signal"
2265 $as_echo "$as_me: exit $exit_status"
2266 } >&5
2267 rm -f core *.core core.conftest.* &&
2268 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2269 exit $exit_status
2270 ' 0
2271 for ac_signal in 1 2 13 15; do
2272 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2273 done
2274 ac_signal=0
2275
2276 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2277 rm -f -r conftest* confdefs.h
2278
2279 $as_echo "/* confdefs.h */" > confdefs.h
2280
2281 # Predefined preprocessor variables.
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_NAME "$PACKAGE_NAME"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_STRING "$PACKAGE_STRING"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_URL "$PACKAGE_URL"
2305 _ACEOF
2306
2307
2308 # Let the site file select an alternate cache file if it wants to.
2309 # Prefer an explicitly selected file to automatically selected ones.
2310 ac_site_file1=NONE
2311 ac_site_file2=NONE
2312 if test -n "$CONFIG_SITE"; then
2313 # We do not want a PATH search for config.site.
2314 case $CONFIG_SITE in #((
2315 -*) ac_site_file1=./$CONFIG_SITE;;
2316 */*) ac_site_file1=$CONFIG_SITE;;
2317 *) ac_site_file1=./$CONFIG_SITE;;
2318 esac
2319 elif test "x$prefix" != xNONE; then
2320 ac_site_file1=$prefix/share/config.site
2321 ac_site_file2=$prefix/etc/config.site
2322 else
2323 ac_site_file1=$ac_default_prefix/share/config.site
2324 ac_site_file2=$ac_default_prefix/etc/config.site
2325 fi
2326 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327 do
2328 test "x$ac_site_file" = xNONE && continue
2329 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332 sed 's/^/| /' "$ac_site_file" >&5
2333 . "$ac_site_file" \
2334 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 as_fn_error $? "failed to load site script $ac_site_file
2337 See \`config.log' for more details" "$LINENO" 5; }
2338 fi
2339 done
2340
2341 if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special files
2343 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2344 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347 case $cache_file in
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349 *) . "./$cache_file";;
2350 esac
2351 fi
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354 $as_echo "$as_me: creating cache $cache_file" >&6;}
2355 >$cache_file
2356 fi
2357
2358 # Check that the precious variables saved in the cache have kept the same
2359 # value.
2360 ac_cache_corrupted=false
2361 for ac_var in $ac_precious_vars; do
2362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363 eval ac_new_set=\$ac_env_${ac_var}_set
2364 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365 eval ac_new_val=\$ac_env_${ac_var}_value
2366 case $ac_old_set,$ac_new_set in
2367 set,)
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370 ac_cache_corrupted=: ;;
2371 ,set)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2375 ,);;
2376 *)
2377 if test "x$ac_old_val" != "x$ac_new_val"; then
2378 # differences in whitespace do not lead to failure.
2379 ac_old_val_w=`echo x $ac_old_val`
2380 ac_new_val_w=`echo x $ac_new_val`
2381 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384 ac_cache_corrupted=:
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388 eval $ac_var=\$ac_old_val
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2391 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2393 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2394 fi;;
2395 esac
2396 # Pass precious variables to config.status.
2397 if test "$ac_new_set" = set; then
2398 case $ac_new_val in
2399 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 *) ac_arg=$ac_var=$ac_new_val ;;
2401 esac
2402 case " $ac_configure_args " in
2403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2404 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2405 esac
2406 fi
2407 done
2408 if $ac_cache_corrupted; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414 fi
2415 ## -------------------- ##
2416 ## Main body of script. ##
2417 ## -------------------- ##
2418
2419 ac_ext=c
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426
2427 ac_config_headers="$ac_config_headers config.h"
2428
2429 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2430 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2431 # to avoid autoconf errors.
2432 ac_aux_dir=
2433 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2434 if test -f "$ac_dir/install-sh"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/install-sh -c"
2437 break
2438 elif test -f "$ac_dir/install.sh"; then
2439 ac_aux_dir=$ac_dir
2440 ac_install_sh="$ac_aux_dir/install.sh -c"
2441 break
2442 elif test -f "$ac_dir/shtool"; then
2443 ac_aux_dir=$ac_dir
2444 ac_install_sh="$ac_aux_dir/shtool install -c"
2445 break
2446 fi
2447 done
2448 if test -z "$ac_aux_dir"; then
2449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2450 fi
2451
2452 # These three variables are undocumented and unsupported,
2453 # and are intended to be withdrawn in a future Autoconf release.
2454 # They can cause serious problems if a builder's source tree is in a directory
2455 # whose full name contains unusual characters.
2456 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2457 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2458 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2459
2460
2461 # Expand $ac_aux_dir to an absolute path.
2462 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2463
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if ${ac_cv_prog_CC+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 CC=$ac_cv_prog_CC
2498 if test -n "$CC"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2500 $as_echo "$CC" >&6; }
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2504 fi
2505
2506
2507 fi
2508 if test -z "$ac_cv_prog_CC"; then
2509 ac_ct_CC=$CC
2510 # Extract the first word of "gcc", so it can be a program name with args.
2511 set dummy gcc; ac_word=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_ac_ct_CC="gcc"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 fi
2536 fi
2537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2538 if test -n "$ac_ct_CC"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2540 $as_echo "$ac_ct_CC" >&6; }
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2544 fi
2545
2546 if test "x$ac_ct_CC" = x; then
2547 CC=""
2548 else
2549 case $cross_compiling:$ac_tool_warned in
2550 yes:)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553 ac_tool_warned=yes ;;
2554 esac
2555 CC=$ac_ct_CC
2556 fi
2557 else
2558 CC="$ac_cv_prog_CC"
2559 fi
2560
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}cc; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_CC+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_CC="${ac_tool_prefix}cc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 fi
2601 fi
2602 if test -z "$CC"; then
2603 # Extract the first word of "cc", so it can be a program name with args.
2604 set dummy cc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_CC+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 else
2613 ac_prog_rejected=no
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2622 ac_prog_rejected=yes
2623 continue
2624 fi
2625 ac_cv_prog_CC="cc"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 if test $ac_prog_rejected = yes; then
2634 # We found a bogon in the path, so make sure we never use it.
2635 set dummy $ac_cv_prog_CC
2636 shift
2637 if test $# != 0; then
2638 # We chose a different compiler from the bogus one.
2639 # However, it has the same basename, so the bogon will be chosen
2640 # first if we set CC to just the basename; use the full file name.
2641 shift
2642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2643 fi
2644 fi
2645 fi
2646 fi
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650 $as_echo "$CC" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657 fi
2658 if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
2660 for ac_prog in cl.exe
2661 do
2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_CC+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 test -n "$CC" && break
2700 done
2701 fi
2702 if test -z "$CC"; then
2703 ac_ct_CC=$CC
2704 for ac_prog in cl.exe
2705 do
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy $ac_prog; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$ac_ct_CC"; then
2714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 ac_cv_prog_ac_ct_CC="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2734 if test -n "$ac_ct_CC"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2736 $as_echo "$ac_ct_CC" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 fi
2741
2742
2743 test -n "$ac_ct_CC" && break
2744 done
2745
2746 if test "x$ac_ct_CC" = x; then
2747 CC=""
2748 else
2749 case $cross_compiling:$ac_tool_warned in
2750 yes:)
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753 ac_tool_warned=yes ;;
2754 esac
2755 CC=$ac_ct_CC
2756 fi
2757 fi
2758
2759 fi
2760
2761
2762 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "no acceptable C compiler found in \$PATH
2765 See \`config.log' for more details" "$LINENO" 5; }
2766
2767 # Provide some information about the compiler.
2768 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2769 set X $ac_compile
2770 ac_compiler=$2
2771 for ac_option in --version -v -V -qversion; do
2772 { { ac_try="$ac_compiler $ac_option >&5"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2780 ac_status=$?
2781 if test -s conftest.err; then
2782 sed '10a\
2783 ... rest of stderr output deleted ...
2784 10q' conftest.err >conftest.er1
2785 cat conftest.er1 >&5
2786 fi
2787 rm -f conftest.er1 conftest.err
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }
2790 done
2791
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2794
2795 int
2796 main ()
2797 {
2798
2799 ;
2800 return 0;
2801 }
2802 _ACEOF
2803 ac_clean_files_save=$ac_clean_files
2804 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2805 # Try to create an executable without -o first, disregard a.out.
2806 # It will help us diagnose broken compilers, and finding out an intuition
2807 # of exeext.
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2809 $as_echo_n "checking whether the C compiler works... " >&6; }
2810 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2811
2812 # The possible output files:
2813 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2814
2815 ac_rmfiles=
2816 for ac_file in $ac_files
2817 do
2818 case $ac_file in
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2821 esac
2822 done
2823 rm -f $ac_rmfiles
2824
2825 if { { ac_try="$ac_link_default"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link_default") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; then :
2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2839 # so that the user can short-circuit this test for compilers unknown to
2840 # Autoconf.
2841 for ac_file in $ac_files ''
2842 do
2843 test -f "$ac_file" || continue
2844 case $ac_file in
2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2846 ;;
2847 [ab].out )
2848 # We found the default executable, but exeext='' is most
2849 # certainly right.
2850 break;;
2851 *.* )
2852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2853 then :; else
2854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855 fi
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2860 # actually working.
2861 break;;
2862 * )
2863 break;;
2864 esac
2865 done
2866 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867
2868 else
2869 ac_file=''
2870 fi
2871 if test -z "$ac_file"; then :
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 as_fn_error 77 "C compiler cannot create executables
2880 See \`config.log' for more details" "$LINENO" 5; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 $as_echo "yes" >&6; }
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2886 $as_echo_n "checking for C compiler default output file name... " >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2888 $as_echo "$ac_file" >&6; }
2889 ac_exeext=$ac_cv_exeext
2890
2891 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2892 ac_clean_files=$ac_clean_files_save
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2894 $as_echo_n "checking for suffix of executables... " >&6; }
2895 if { { ac_try="$ac_link"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901 $as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link") 2>&5
2903 ac_status=$?
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }; then :
2906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2908 # work properly (i.e., refer to `conftest.exe'), while it won't with
2909 # `rm'.
2910 for ac_file in conftest.exe conftest conftest.*; do
2911 test -f "$ac_file" || continue
2912 case $ac_file in
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915 break;;
2916 * ) break;;
2917 esac
2918 done
2919 else
2920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details" "$LINENO" 5; }
2924 fi
2925 rm -f conftest conftest$ac_cv_exeext
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2927 $as_echo "$ac_cv_exeext" >&6; }
2928
2929 rm -f conftest.$ac_ext
2930 EXEEXT=$ac_cv_exeext
2931 ac_exeext=$EXEEXT
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2934 #include <stdio.h>
2935 int
2936 main ()
2937 {
2938 FILE *f = fopen ("conftest.out", "w");
2939 return ferror (f) || fclose (f) != 0;
2940
2941 ;
2942 return 0;
2943 }
2944 _ACEOF
2945 ac_clean_files="$ac_clean_files conftest.out"
2946 # Check that the compiler produces executables we can run. If not, either
2947 # the compiler is broken, or we cross compile.
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2949 $as_echo_n "checking whether we are cross compiling... " >&6; }
2950 if test "$cross_compiling" != yes; then
2951 { { ac_try="$ac_link"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_link") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }
2962 if { ac_try='./conftest$ac_cv_exeext'
2963 { { case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; }; then
2973 cross_compiling=no
2974 else
2975 if test "$cross_compiling" = maybe; then
2976 cross_compiling=yes
2977 else
2978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980 as_fn_error $? "cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details" "$LINENO" 5; }
2983 fi
2984 fi
2985 fi
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2987 $as_echo "$cross_compiling" >&6; }
2988
2989 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2990 ac_clean_files=$ac_clean_files_save
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2992 $as_echo_n "checking for suffix of object files... " >&6; }
2993 if ${ac_cv_objext+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997 /* end confdefs.h. */
2998
2999 int
3000 main ()
3001 {
3002
3003 ;
3004 return 0;
3005 }
3006 _ACEOF
3007 rm -f conftest.o conftest.obj
3008 if { { ac_try="$ac_compile"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_compile") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }; then :
3019 for ac_file in conftest.o conftest.obj conftest.*; do
3020 test -f "$ac_file" || continue;
3021 case $ac_file in
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3024 break;;
3025 esac
3026 done
3027 else
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error $? "cannot compute suffix of object files: cannot compile
3034 See \`config.log' for more details" "$LINENO" 5; }
3035 fi
3036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3039 $as_echo "$ac_cv_objext" >&6; }
3040 OBJEXT=$ac_cv_objext
3041 ac_objext=$OBJEXT
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3044 if ${ac_cv_c_compiler_gnu+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3049
3050 int
3051 main ()
3052 {
3053 #ifndef __GNUC__
3054 choke me
3055 #endif
3056
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_compiler_gnu=yes
3063 else
3064 ac_compiler_gnu=no
3065 fi
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3072 if test $ac_compiler_gnu = yes; then
3073 GCC=yes
3074 else
3075 GCC=
3076 fi
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3081 if ${ac_cv_prog_cc_g+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3086 ac_cv_prog_cc_g=no
3087 CFLAGS="-g"
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3090
3091 int
3092 main ()
3093 {
3094
3095 ;
3096 return 0;
3097 }
3098 _ACEOF
3099 if ac_fn_c_try_compile "$LINENO"; then :
3100 ac_cv_prog_cc_g=yes
3101 else
3102 CFLAGS=""
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3105
3106 int
3107 main ()
3108 {
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 if ac_fn_c_try_compile "$LINENO"; then :
3115
3116 else
3117 ac_c_werror_flag=$ac_save_c_werror_flag
3118 CFLAGS="-g"
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121
3122 int
3123 main ()
3124 {
3125
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_cv_prog_cc_g=yes
3132 fi
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 fi
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 fi
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3141 $as_echo "$ac_cv_prog_cc_g" >&6; }
3142 if test "$ac_test_CFLAGS" = set; then
3143 CFLAGS=$ac_save_CFLAGS
3144 elif test $ac_cv_prog_cc_g = yes; then
3145 if test "$GCC" = yes; then
3146 CFLAGS="-g -O2"
3147 else
3148 CFLAGS="-g"
3149 fi
3150 else
3151 if test "$GCC" = yes; then
3152 CFLAGS="-O2"
3153 else
3154 CFLAGS=
3155 fi
3156 fi
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3159 if ${ac_cv_prog_cc_c89+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 ac_cv_prog_cc_c89=no
3163 ac_save_CC=$CC
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3166 #include <stdarg.h>
3167 #include <stdio.h>
3168 struct stat;
3169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3170 struct buf { int x; };
3171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172 static char *e (p, i)
3173 char **p;
3174 int i;
3175 {
3176 return p[i];
3177 }
3178 static char *f (char * (*g) (char **, int), char **p, ...)
3179 {
3180 char *s;
3181 va_list v;
3182 va_start (v,p);
3183 s = g (p, va_arg (v,int));
3184 va_end (v);
3185 return s;
3186 }
3187
3188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3189 function prototypes and stuff, but not '\xHH' hex character constants.
3190 These don't provoke an error unfortunately, instead are silently treated
3191 as 'x'. The following induces an error, until -std is added to get
3192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3193 array size at least. It's necessary to write '\x00'==0 to get something
3194 that's true only with -std. */
3195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196
3197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198 inside strings and character constants. */
3199 #define FOO(x) 'x'
3200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206 int argc;
3207 char **argv;
3208 int
3209 main ()
3210 {
3211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218 do
3219 CC="$ac_save_CC $ac_arg"
3220 if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_cv_prog_cc_c89=$ac_arg
3222 fi
3223 rm -f core conftest.err conftest.$ac_objext
3224 test "x$ac_cv_prog_cc_c89" != "xno" && break
3225 done
3226 rm -f conftest.$ac_ext
3227 CC=$ac_save_CC
3228
3229 fi
3230 # AC_CACHE_VAL
3231 case "x$ac_cv_prog_cc_c89" in
3232 x)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3234 $as_echo "none needed" >&6; } ;;
3235 xno)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3237 $as_echo "unsupported" >&6; } ;;
3238 *)
3239 CC="$CC $ac_cv_prog_cc_c89"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3242 esac
3243 if test "x$ac_cv_prog_cc_c89" != xno; then :
3244
3245 fi
3246
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3259 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3260 if ${am_cv_prog_cc_c_o+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 # Make sure it works both with $CC and with simple cc.
3275 # Following AC_PROG_CC_C_O, we do the test twice because some
3276 # compilers refuse to overwrite an existing .o file with -o,
3277 # though they will create one.
3278 am_cv_prog_cc_c_o=yes
3279 for am_i in 1 2; do
3280 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3281 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } \
3285 && test -f conftest2.$ac_objext; then
3286 : OK
3287 else
3288 am_cv_prog_cc_c_o=no
3289 break
3290 fi
3291 done
3292 rm -f core conftest*
3293 unset am_i
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3296 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3297 if test "$am_cv_prog_cc_c_o" != yes; then
3298 # Losing compiler, so override with the script.
3299 # FIXME: It is wrong to rewrite CC.
3300 # But if we don't then we get into trouble of one sort or another.
3301 # A longer-term fix would be to have automake use am__CC in this case,
3302 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3303 CC="$am_aux_dir/compile $CC"
3304 fi
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311
3312
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3319 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3320 # On Suns, sometimes $CPP names a directory.
3321 if test -n "$CPP" && test -d "$CPP"; then
3322 CPP=
3323 fi
3324 if test -z "$CPP"; then
3325 if ${ac_cv_prog_CPP+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 # Double quotes because CPP needs to be expanded
3329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3330 do
3331 ac_preproc_ok=false
3332 for ac_c_preproc_warn_flag in '' yes
3333 do
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3342 #ifdef __STDC__
3343 # include <limits.h>
3344 #else
3345 # include <assert.h>
3346 #endif
3347 Syntax error
3348 _ACEOF
3349 if ac_fn_c_try_cpp "$LINENO"; then :
3350
3351 else
3352 # Broken: fails on valid input.
3353 continue
3354 fi
3355 rm -f conftest.err conftest.i conftest.$ac_ext
3356
3357 # OK, works on sane cases. Now check whether nonexistent headers
3358 # can be detected and how.
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361 #include <ac_nonexistent.h>
3362 _ACEOF
3363 if ac_fn_c_try_cpp "$LINENO"; then :
3364 # Broken: success on invalid input.
3365 continue
3366 else
3367 # Passes both tests.
3368 ac_preproc_ok=:
3369 break
3370 fi
3371 rm -f conftest.err conftest.i conftest.$ac_ext
3372
3373 done
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.i conftest.err conftest.$ac_ext
3376 if $ac_preproc_ok; then :
3377 break
3378 fi
3379
3380 done
3381 ac_cv_prog_CPP=$CPP
3382
3383 fi
3384 CPP=$ac_cv_prog_CPP
3385 else
3386 ac_cv_prog_CPP=$CPP
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3389 $as_echo "$CPP" >&6; }
3390 ac_preproc_ok=false
3391 for ac_c_preproc_warn_flag in '' yes
3392 do
3393 # Use a header file that comes with gcc, so configuring glibc
3394 # with a fresh cross-compiler works.
3395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3396 # <limits.h> exists even on freestanding compilers.
3397 # On the NeXT, cc -E runs the code through the compiler's parser,
3398 # not just through cpp. "Syntax error" is here to catch this case.
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401 #ifdef __STDC__
3402 # include <limits.h>
3403 #else
3404 # include <assert.h>
3405 #endif
3406 Syntax error
3407 _ACEOF
3408 if ac_fn_c_try_cpp "$LINENO"; then :
3409
3410 else
3411 # Broken: fails on valid input.
3412 continue
3413 fi
3414 rm -f conftest.err conftest.i conftest.$ac_ext
3415
3416 # OK, works on sane cases. Now check whether nonexistent headers
3417 # can be detected and how.
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420 #include <ac_nonexistent.h>
3421 _ACEOF
3422 if ac_fn_c_try_cpp "$LINENO"; then :
3423 # Broken: success on invalid input.
3424 continue
3425 else
3426 # Passes both tests.
3427 ac_preproc_ok=:
3428 break
3429 fi
3430 rm -f conftest.err conftest.i conftest.$ac_ext
3431
3432 done
3433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434 rm -f conftest.i conftest.err conftest.$ac_ext
3435 if $ac_preproc_ok; then :
3436
3437 else
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details" "$LINENO" 5; }
3442 fi
3443
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449
3450
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3452 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3453 if ${ac_cv_path_GREP+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -z "$GREP"; then
3457 ac_path_GREP_found=false
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_prog in grep ggrep; do
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3467 as_fn_executable_p "$ac_path_GREP" || continue
3468 # Check for GNU ac_path_GREP and select it if it is found.
3469 # Check for GNU $ac_path_GREP
3470 case `"$ac_path_GREP" --version 2>&1` in
3471 *GNU*)
3472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3473 *)
3474 ac_count=0
3475 $as_echo_n 0123456789 >"conftest.in"
3476 while :
3477 do
3478 cat "conftest.in" "conftest.in" >"conftest.tmp"
3479 mv "conftest.tmp" "conftest.in"
3480 cp "conftest.in" "conftest.nl"
3481 $as_echo 'GREP' >> "conftest.nl"
3482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484 as_fn_arith $ac_count + 1 && ac_count=$as_val
3485 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3486 # Best one so far, save it but keep looking for a better one
3487 ac_cv_path_GREP="$ac_path_GREP"
3488 ac_path_GREP_max=$ac_count
3489 fi
3490 # 10*(2^10) chars as input seems more than enough
3491 test $ac_count -gt 10 && break
3492 done
3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3494 esac
3495
3496 $ac_path_GREP_found && break 3
3497 done
3498 done
3499 done
3500 IFS=$as_save_IFS
3501 if test -z "$ac_cv_path_GREP"; then
3502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3503 fi
3504 else
3505 ac_cv_path_GREP=$GREP
3506 fi
3507
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3510 $as_echo "$ac_cv_path_GREP" >&6; }
3511 GREP="$ac_cv_path_GREP"
3512
3513
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3515 $as_echo_n "checking for egrep... " >&6; }
3516 if ${ac_cv_path_EGREP+:} false; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3520 then ac_cv_path_EGREP="$GREP -E"
3521 else
3522 if test -z "$EGREP"; then
3523 ac_path_EGREP_found=false
3524 # Loop through the user's path and test for each of PROGNAME-LIST
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_prog in egrep; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3533 as_fn_executable_p "$ac_path_EGREP" || continue
3534 # Check for GNU ac_path_EGREP and select it if it is found.
3535 # Check for GNU $ac_path_EGREP
3536 case `"$ac_path_EGREP" --version 2>&1` in
3537 *GNU*)
3538 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3539 *)
3540 ac_count=0
3541 $as_echo_n 0123456789 >"conftest.in"
3542 while :
3543 do
3544 cat "conftest.in" "conftest.in" >"conftest.tmp"
3545 mv "conftest.tmp" "conftest.in"
3546 cp "conftest.in" "conftest.nl"
3547 $as_echo 'EGREP' >> "conftest.nl"
3548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3550 as_fn_arith $ac_count + 1 && ac_count=$as_val
3551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3552 # Best one so far, save it but keep looking for a better one
3553 ac_cv_path_EGREP="$ac_path_EGREP"
3554 ac_path_EGREP_max=$ac_count
3555 fi
3556 # 10*(2^10) chars as input seems more than enough
3557 test $ac_count -gt 10 && break
3558 done
3559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3560 esac
3561
3562 $ac_path_EGREP_found && break 3
3563 done
3564 done
3565 done
3566 IFS=$as_save_IFS
3567 if test -z "$ac_cv_path_EGREP"; then
3568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3569 fi
3570 else
3571 ac_cv_path_EGREP=$EGREP
3572 fi
3573
3574 fi
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3577 $as_echo "$ac_cv_path_EGREP" >&6; }
3578 EGREP="$ac_cv_path_EGREP"
3579
3580
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3582 $as_echo_n "checking for ANSI C header files... " >&6; }
3583 if ${ac_cv_header_stdc+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588 #include <stdlib.h>
3589 #include <stdarg.h>
3590 #include <string.h>
3591 #include <float.h>
3592
3593 int
3594 main ()
3595 {
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_cv_header_stdc=yes
3603 else
3604 ac_cv_header_stdc=no
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607
3608 if test $ac_cv_header_stdc = yes; then
3609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 #include <string.h>
3613
3614 _ACEOF
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 $EGREP "memchr" >/dev/null 2>&1; then :
3617
3618 else
3619 ac_cv_header_stdc=no
3620 fi
3621 rm -f conftest*
3622
3623 fi
3624
3625 if test $ac_cv_header_stdc = yes; then
3626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <stdlib.h>
3630
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "free" >/dev/null 2>&1; then :
3634
3635 else
3636 ac_cv_header_stdc=no
3637 fi
3638 rm -f conftest*
3639
3640 fi
3641
3642 if test $ac_cv_header_stdc = yes; then
3643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3644 if test "$cross_compiling" = yes; then :
3645 :
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #include <ctype.h>
3650 #include <stdlib.h>
3651 #if ((' ' & 0x0FF) == 0x020)
3652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3654 #else
3655 # define ISLOWER(c) \
3656 (('a' <= (c) && (c) <= 'i') \
3657 || ('j' <= (c) && (c) <= 'r') \
3658 || ('s' <= (c) && (c) <= 'z'))
3659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3660 #endif
3661
3662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3663 int
3664 main ()
3665 {
3666 int i;
3667 for (i = 0; i < 256; i++)
3668 if (XOR (islower (i), ISLOWER (i))
3669 || toupper (i) != TOUPPER (i))
3670 return 2;
3671 return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_run "$LINENO"; then :
3675
3676 else
3677 ac_cv_header_stdc=no
3678 fi
3679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3680 conftest.$ac_objext conftest.beam conftest.$ac_ext
3681 fi
3682
3683 fi
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3686 $as_echo "$ac_cv_header_stdc" >&6; }
3687 if test $ac_cv_header_stdc = yes; then
3688
3689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3690
3691 fi
3692
3693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3695 inttypes.h stdint.h unistd.h
3696 do :
3697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3699 "
3700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3701 cat >>confdefs.h <<_ACEOF
3702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3703 _ACEOF
3704
3705 fi
3706
3707 done
3708
3709
3710
3711 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3712 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3713 MINIX=yes
3714 else
3715 MINIX=
3716 fi
3717
3718
3719 if test "$MINIX" = yes; then
3720
3721 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3722
3723
3724 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3725
3726
3727 $as_echo "#define _MINIX 1" >>confdefs.h
3728
3729 fi
3730
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3733 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3734 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 # define __EXTENSIONS__ 1
3741 $ac_includes_default
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_safe_to_define___extensions__=yes
3752 else
3753 ac_cv_safe_to_define___extensions__=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3758 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3759 test $ac_cv_safe_to_define___extensions__ = yes &&
3760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3761
3762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3763
3764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3765
3766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3767
3768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3769
3770
3771
3772 # Initialize Automake
3773 am__api_version='1.15'
3774
3775 # Find a good install program. We prefer a C program (faster),
3776 # so one script is as good as another. But avoid the broken or
3777 # incompatible versions:
3778 # SysV /etc/install, /usr/sbin/install
3779 # SunOS /usr/etc/install
3780 # IRIX /sbin/install
3781 # AIX /bin/install
3782 # AmigaOS /C/install, which installs bootblocks on floppy discs
3783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786 # OS/2's system install, which has a completely different semantic
3787 # ./install, which can be erroneously created by make from ./install.sh.
3788 # Reject install programs that cannot install multiple files.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3790 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3791 if test -z "$INSTALL"; then
3792 if ${ac_cv_path_install+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 # Account for people who put trailing slashes in PATH elements.
3801 case $as_dir/ in #((
3802 ./ | .// | /[cC]/* | \
3803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3805 /usr/ucb/* ) ;;
3806 *)
3807 # OSF1 and SCO ODT 3.0 have their own names for install.
3808 # Don't use installbsd from OSF since it installs stuff as root
3809 # by default.
3810 for ac_prog in ginstall scoinst install; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3813 if test $ac_prog = install &&
3814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # AIX install. It has an incompatible calling convention.
3816 :
3817 elif test $ac_prog = install &&
3818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819 # program-specific install script used by HP pwplus--don't use.
3820 :
3821 else
3822 rm -rf conftest.one conftest.two conftest.dir
3823 echo one > conftest.one
3824 echo two > conftest.two
3825 mkdir conftest.dir
3826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3827 test -s conftest.one && test -s conftest.two &&
3828 test -s conftest.dir/conftest.one &&
3829 test -s conftest.dir/conftest.two
3830 then
3831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3832 break 3
3833 fi
3834 fi
3835 fi
3836 done
3837 done
3838 ;;
3839 esac
3840
3841 done
3842 IFS=$as_save_IFS
3843
3844 rm -rf conftest.one conftest.two conftest.dir
3845
3846 fi
3847 if test "${ac_cv_path_install+set}" = set; then
3848 INSTALL=$ac_cv_path_install
3849 else
3850 # As a last resort, use the slow shell script. Don't cache a
3851 # value for INSTALL within a source directory, because that will
3852 # break other packages using the cache if that directory is
3853 # removed, or if the value is a relative name.
3854 INSTALL=$ac_install_sh
3855 fi
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3858 $as_echo "$INSTALL" >&6; }
3859
3860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861 # It thinks the first close brace ends the variable substitution.
3862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3863
3864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3865
3866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3867
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3869 $as_echo_n "checking whether build environment is sane... " >&6; }
3870 # Reject unsafe characters in $srcdir or the absolute working directory
3871 # name. Accept space and tab only in the latter.
3872 am_lf='
3873 '
3874 case `pwd` in
3875 *[\\\"\#\$\&\'\`$am_lf]*)
3876 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3877 esac
3878 case $srcdir in
3879 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3880 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3881 esac
3882
3883 # Do 'set' in a subshell so we don't clobber the current shell's
3884 # arguments. Must try -L first in case configure is actually a
3885 # symlink; some systems play weird games with the mod time of symlinks
3886 # (eg FreeBSD returns the mod time of the symlink's containing
3887 # directory).
3888 if (
3889 am_has_slept=no
3890 for am_try in 1 2; do
3891 echo "timestamp, slept: $am_has_slept" > conftest.file
3892 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3893 if test "$*" = "X"; then
3894 # -L didn't work.
3895 set X `ls -t "$srcdir/configure" conftest.file`
3896 fi
3897 if test "$*" != "X $srcdir/configure conftest.file" \
3898 && test "$*" != "X conftest.file $srcdir/configure"; then
3899
3900 # If neither matched, then we have a broken ls. This can happen
3901 # if, for instance, CONFIG_SHELL is bash and it inherits a
3902 # broken ls alias from the environment. This has actually
3903 # happened. Such a system could not be considered "sane".
3904 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3905 alias in your environment" "$LINENO" 5
3906 fi
3907 if test "$2" = conftest.file || test $am_try -eq 2; then
3908 break
3909 fi
3910 # Just in case.
3911 sleep 1
3912 am_has_slept=yes
3913 done
3914 test "$2" = conftest.file
3915 )
3916 then
3917 # Ok.
3918 :
3919 else
3920 as_fn_error $? "newly created file is older than distributed files!
3921 Check your system clock" "$LINENO" 5
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 $as_echo "yes" >&6; }
3925 # If we didn't sleep, we still need to ensure time stamps of config.status and
3926 # generated files are strictly newer.
3927 am_sleep_pid=
3928 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3929 ( sleep 1 ) &
3930 am_sleep_pid=$!
3931 fi
3932
3933 rm -f conftest.file
3934
3935 test "$program_prefix" != NONE &&
3936 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3937 # Use a double $ so make ignores it.
3938 test "$program_suffix" != NONE &&
3939 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3940 # Double any \ or $.
3941 # By default was `s,x,x', remove it if useless.
3942 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3943 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3944
3945 if test x"${MISSING+set}" != xset; then
3946 case $am_aux_dir in
3947 *\ * | *\ *)
3948 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3949 *)
3950 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3951 esac
3952 fi
3953 # Use eval to expand $SHELL
3954 if eval "$MISSING --is-lightweight"; then
3955 am_missing_run="$MISSING "
3956 else
3957 am_missing_run=
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3959 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3960 fi
3961
3962 if test x"${install_sh+set}" != xset; then
3963 case $am_aux_dir in
3964 *\ * | *\ *)
3965 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3966 *)
3967 install_sh="\${SHELL} $am_aux_dir/install-sh"
3968 esac
3969 fi
3970
3971 # Installed binaries are usually stripped using 'strip' when the user
3972 # run "make install-strip". However 'strip' might not be the right
3973 # tool to use in cross-compilation environments, therefore Automake
3974 # will honor the 'STRIP' environment variable to overrule this program.
3975 if test "$cross_compiling" != no; then
3976 if test -n "$ac_tool_prefix"; then
3977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3978 set dummy ${ac_tool_prefix}strip; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_STRIP+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$STRIP"; then
3985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3989 do
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998 done
3999 done
4000 IFS=$as_save_IFS
4001
4002 fi
4003 fi
4004 STRIP=$ac_cv_prog_STRIP
4005 if test -n "$STRIP"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4007 $as_echo "$STRIP" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 fi
4012
4013
4014 fi
4015 if test -z "$ac_cv_prog_STRIP"; then
4016 ac_ct_STRIP=$STRIP
4017 # Extract the first word of "strip", so it can be a program name with args.
4018 set dummy strip; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -n "$ac_ct_STRIP"; then
4025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_ac_ct_STRIP="strip"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040 IFS=$as_save_IFS
4041
4042 fi
4043 fi
4044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4045 if test -n "$ac_ct_STRIP"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4047 $as_echo "$ac_ct_STRIP" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4051 fi
4052
4053 if test "x$ac_ct_STRIP" = x; then
4054 STRIP=":"
4055 else
4056 case $cross_compiling:$ac_tool_warned in
4057 yes:)
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4060 ac_tool_warned=yes ;;
4061 esac
4062 STRIP=$ac_ct_STRIP
4063 fi
4064 else
4065 STRIP="$ac_cv_prog_STRIP"
4066 fi
4067
4068 fi
4069 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4073 if test -z "$MKDIR_P"; then
4074 if ${ac_cv_path_mkdir+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4079 do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_prog in mkdir gmkdir; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4086 'mkdir (GNU coreutils) '* | \
4087 'mkdir (coreutils) '* | \
4088 'mkdir (fileutils) '4.1*)
4089 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4090 break 3;;
4091 esac
4092 done
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 fi
4098
4099 test -d ./--version && rmdir ./--version
4100 if test "${ac_cv_path_mkdir+set}" = set; then
4101 MKDIR_P="$ac_cv_path_mkdir -p"
4102 else
4103 # As a last resort, use the slow shell script. Don't cache a
4104 # value for MKDIR_P within a source directory, because that will
4105 # break other packages using the cache if that directory is
4106 # removed, or if the value is a relative name.
4107 MKDIR_P="$ac_install_sh -d"
4108 fi
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4111 $as_echo "$MKDIR_P" >&6; }
4112
4113 for ac_prog in gawk mawk nawk awk
4114 do
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_AWK+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$AWK"; then
4123 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_AWK="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140 fi
4141 fi
4142 AWK=$ac_cv_prog_AWK
4143 if test -n "$AWK"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4145 $as_echo "$AWK" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151
4152 test -n "$AWK" && break
4153 done
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4156 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4157 set x ${MAKE-make}
4158 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4159 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 cat >conftest.make <<\_ACEOF
4163 SHELL = /bin/sh
4164 all:
4165 @echo '@@@%%%=$(MAKE)=@@@%%%'
4166 _ACEOF
4167 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4168 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4169 *@@@%%%=?*=@@@%%%*)
4170 eval ac_cv_prog_make_${ac_make}_set=yes;;
4171 *)
4172 eval ac_cv_prog_make_${ac_make}_set=no;;
4173 esac
4174 rm -f conftest.make
4175 fi
4176 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178 $as_echo "yes" >&6; }
4179 SET_MAKE=
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 SET_MAKE="MAKE=${MAKE-make}"
4184 fi
4185
4186 rm -rf .tst 2>/dev/null
4187 mkdir .tst 2>/dev/null
4188 if test -d .tst; then
4189 am__leading_dot=.
4190 else
4191 am__leading_dot=_
4192 fi
4193 rmdir .tst 2>/dev/null
4194
4195 DEPDIR="${am__leading_dot}deps"
4196
4197 ac_config_commands="$ac_config_commands depfiles"
4198
4199
4200 am_make=${MAKE-make}
4201 cat > confinc << 'END'
4202 am__doit:
4203 @echo this is the am__doit target
4204 .PHONY: am__doit
4205 END
4206 # If we don't find an include directive, just comment out the code.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4208 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4209 am__include="#"
4210 am__quote=
4211 _am_result=none
4212 # First try GNU make style include.
4213 echo "include confinc" > confmf
4214 # Ignore all kinds of additional output from 'make'.
4215 case `$am_make -s -f confmf 2> /dev/null` in #(
4216 *the\ am__doit\ target*)
4217 am__include=include
4218 am__quote=
4219 _am_result=GNU
4220 ;;
4221 esac
4222 # Now try BSD make style include.
4223 if test "$am__include" = "#"; then
4224 echo '.include "confinc"' > confmf
4225 case `$am_make -s -f confmf 2> /dev/null` in #(
4226 *the\ am__doit\ target*)
4227 am__include=.include
4228 am__quote="\""
4229 _am_result=BSD
4230 ;;
4231 esac
4232 fi
4233
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4236 $as_echo "$_am_result" >&6; }
4237 rm -f confinc confmf
4238
4239 # Check whether --enable-dependency-tracking was given.
4240 if test "${enable_dependency_tracking+set}" = set; then :
4241 enableval=$enable_dependency_tracking;
4242 fi
4243
4244 if test "x$enable_dependency_tracking" != xno; then
4245 am_depcomp="$ac_aux_dir/depcomp"
4246 AMDEPBACKSLASH='\'
4247 am__nodep='_no'
4248 fi
4249 if test "x$enable_dependency_tracking" != xno; then
4250 AMDEP_TRUE=
4251 AMDEP_FALSE='#'
4252 else
4253 AMDEP_TRUE='#'
4254 AMDEP_FALSE=
4255 fi
4256
4257
4258 # Check whether --enable-silent-rules was given.
4259 if test "${enable_silent_rules+set}" = set; then :
4260 enableval=$enable_silent_rules;
4261 fi
4262
4263 case $enable_silent_rules in # (((
4264 yes) AM_DEFAULT_VERBOSITY=0;;
4265 no) AM_DEFAULT_VERBOSITY=1;;
4266 *) AM_DEFAULT_VERBOSITY=1;;
4267 esac
4268 am_make=${MAKE-make}
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4270 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4271 if ${am_cv_make_support_nested_variables+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if $as_echo 'TRUE=$(BAR$(V))
4275 BAR0=false
4276 BAR1=true
4277 V=1
4278 am__doit:
4279 @$(TRUE)
4280 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4281 am_cv_make_support_nested_variables=yes
4282 else
4283 am_cv_make_support_nested_variables=no
4284 fi
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4287 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4288 if test $am_cv_make_support_nested_variables = yes; then
4289 AM_V='$(V)'
4290 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4291 else
4292 AM_V=$AM_DEFAULT_VERBOSITY
4293 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4294 fi
4295 AM_BACKSLASH='\'
4296
4297 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4298 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4299 # is not polluted with repeated "-I."
4300 am__isrc=' -I$(srcdir)'
4301 # test to see if srcdir already configured
4302 if test -f $srcdir/config.status; then
4303 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4304 fi
4305 fi
4306
4307 # test whether we have cygpath
4308 if test -z "$CYGPATH_W"; then
4309 if (cygpath --version) >/dev/null 2>/dev/null; then
4310 CYGPATH_W='cygpath -w'
4311 else
4312 CYGPATH_W=echo
4313 fi
4314 fi
4315
4316
4317 # Define the identity of the package.
4318 PACKAGE='libXdmcp'
4319 VERSION='1.1.3'
4320
4321
4322 cat >>confdefs.h <<_ACEOF
4323 #define PACKAGE "$PACKAGE"
4324 _ACEOF
4325
4326
4327 cat >>confdefs.h <<_ACEOF
4328 #define VERSION "$VERSION"
4329 _ACEOF
4330
4331 # Some tools Automake needs.
4332
4333 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4334
4335
4336 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4337
4338
4339 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4340
4341
4342 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4343
4344
4345 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4346
4347 # For better backward compatibility. To be removed once Automake 1.9.x
4348 # dies out for good. For more background, see:
4349 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4350 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4351 mkdir_p='$(MKDIR_P)'
4352
4353 # We need awk for the "check" target (and possibly the TAP driver). The
4354 # system "awk" is bad on some platforms.
4355 # Always define AMTAR for backward compatibility. Yes, it's still used
4356 # in the wild :-( We should find a proper way to deprecate it ...
4357 AMTAR='$${TAR-tar}'
4358
4359
4360 # We'll loop over all known methods to create a tar archive until one works.
4361 _am_tools='gnutar pax cpio none'
4362
4363 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4364
4365
4366
4367
4368
4369 depcc="$CC" am_compiler_list=
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4372 $as_echo_n "checking dependency style of $depcc... " >&6; }
4373 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4377 # We make a subdir and do the tests there. Otherwise we can end up
4378 # making bogus files that we don't know about and never remove. For
4379 # instance it was reported that on HP-UX the gcc test will end up
4380 # making a dummy file named 'D' -- because '-MD' means "put the output
4381 # in D".
4382 rm -rf conftest.dir
4383 mkdir conftest.dir
4384 # Copy depcomp to subdir because otherwise we won't find it if we're
4385 # using a relative directory.
4386 cp "$am_depcomp" conftest.dir
4387 cd conftest.dir
4388 # We will build objects and dependencies in a subdirectory because
4389 # it helps to detect inapplicable dependency modes. For instance
4390 # both Tru64's cc and ICC support -MD to output dependencies as a
4391 # side effect of compilation, but ICC will put the dependencies in
4392 # the current directory while Tru64 will put them in the object
4393 # directory.
4394 mkdir sub
4395
4396 am_cv_CC_dependencies_compiler_type=none
4397 if test "$am_compiler_list" = ""; then
4398 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4399 fi
4400 am__universal=false
4401 case " $depcc " in #(
4402 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4403 esac
4404
4405 for depmode in $am_compiler_list; do
4406 # Setup a source with many dependencies, because some compilers
4407 # like to wrap large dependency lists on column 80 (with \), and
4408 # we should not choose a depcomp mode which is confused by this.
4409 #
4410 # We need to recreate these files for each test, as the compiler may
4411 # overwrite some of them when testing with obscure command lines.
4412 # This happens at least with the AIX C compiler.
4413 : > sub/conftest.c
4414 for i in 1 2 3 4 5 6; do
4415 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4416 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4417 # Solaris 10 /bin/sh.
4418 echo '/* dummy */' > sub/conftst$i.h
4419 done
4420 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4421
4422 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4423 # mode. It turns out that the SunPro C++ compiler does not properly
4424 # handle '-M -o', and we need to detect this. Also, some Intel
4425 # versions had trouble with output in subdirs.
4426 am__obj=sub/conftest.${OBJEXT-o}
4427 am__minus_obj="-o $am__obj"
4428 case $depmode in
4429 gcc)
4430 # This depmode causes a compiler race in universal mode.
4431 test "$am__universal" = false || continue
4432 ;;
4433 nosideeffect)
4434 # After this tag, mechanisms are not by side-effect, so they'll
4435 # only be used when explicitly requested.
4436 if test "x$enable_dependency_tracking" = xyes; then
4437 continue
4438 else
4439 break
4440 fi
4441 ;;
4442 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4443 # This compiler won't grok '-c -o', but also, the minuso test has
4444 # not run yet. These depmodes are late enough in the game, and
4445 # so weak that their functioning should not be impacted.
4446 am__obj=conftest.${OBJEXT-o}
4447 am__minus_obj=
4448 ;;
4449 none) break ;;
4450 esac
4451 if depmode=$depmode \
4452 source=sub/conftest.c object=$am__obj \
4453 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4454 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4455 >/dev/null 2>conftest.err &&
4456 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4457 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4458 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4459 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4460 # icc doesn't choke on unknown options, it will just issue warnings
4461 # or remarks (even with -Werror). So we grep stderr for any message
4462 # that says an option was ignored or not supported.
4463 # When given -MP, icc 7.0 and 7.1 complain thusly:
4464 # icc: Command line warning: ignoring option '-M'; no argument required
4465 # The diagnosis changed in icc 8.0:
4466 # icc: Command line remark: option '-MP' not supported
4467 if (grep 'ignoring option' conftest.err ||
4468 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4469 am_cv_CC_dependencies_compiler_type=$depmode
4470 break
4471 fi
4472 fi
4473 done
4474
4475 cd ..
4476 rm -rf conftest.dir
4477 else
4478 am_cv_CC_dependencies_compiler_type=none
4479 fi
4480
4481 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4483 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4484 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4485
4486 if
4487 test "x$enable_dependency_tracking" != xno \
4488 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4489 am__fastdepCC_TRUE=
4490 am__fastdepCC_FALSE='#'
4491 else
4492 am__fastdepCC_TRUE='#'
4493 am__fastdepCC_FALSE=
4494 fi
4495
4496
4497
4498 # POSIX will say in a future version that running "rm -f" with no argument
4499 # is OK; and we want to be able to make that assumption in our Makefile
4500 # recipes. So use an aggressive probe to check that the usage we want is
4501 # actually supported "in the wild" to an acceptable degree.
4502 # See automake bug#10828.
4503 # To make any issue more visible, cause the running configure to be aborted
4504 # by default if the 'rm' program in use doesn't match our expectations; the
4505 # user can still override this though.
4506 if rm -f && rm -fr && rm -rf; then : OK; else
4507 cat >&2 <<'END'
4508 Oops!
4509
4510 Your 'rm' program seems unable to run without file operands specified
4511 on the command line, even when the '-f' option is present. This is contrary
4512 to the behaviour of most rm programs out there, and not conforming with
4513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4514
4515 Please tell bug-automake@gnu.org about your system, including the value
4516 of your $PATH and any error possibly output before this message. This
4517 can help us improve future automake versions.
4518
4519 END
4520 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4521 echo 'Configuration will proceed anyway, since you have set the' >&2
4522 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4523 echo >&2
4524 else
4525 cat >&2 <<'END'
4526 Aborting the configuration process, to ensure you take notice of the issue.
4527
4528 You can download and install GNU coreutils to get an 'rm' implementation
4529 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4530
4531 If you want to complete the configuration process using your problematic
4532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4533 to "yes", and re-run configure.
4534
4535 END
4536 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4537 fi
4538 fi
4539
4540
4541 # Initialize libtool
4542 # Make sure we can run config.sub.
4543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4544 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4547 $as_echo_n "checking build system type... " >&6; }
4548 if ${ac_cv_build+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 ac_build_alias=$build_alias
4552 test "x$ac_build_alias" = x &&
4553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4554 test "x$ac_build_alias" = x &&
4555 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4557 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4558
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4561 $as_echo "$ac_cv_build" >&6; }
4562 case $ac_cv_build in
4563 *-*-*) ;;
4564 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4565 esac
4566 build=$ac_cv_build
4567 ac_save_IFS=$IFS; IFS='-'
4568 set x $ac_cv_build
4569 shift
4570 build_cpu=$1
4571 build_vendor=$2
4572 shift; shift
4573 # Remember, the first character of IFS is used to create $*,
4574 # except with old shells:
4575 build_os=$*
4576 IFS=$ac_save_IFS
4577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4581 $as_echo_n "checking host system type... " >&6; }
4582 if ${ac_cv_host+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test "x$host_alias" = x; then
4586 ac_cv_host=$ac_cv_build
4587 else
4588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4590 fi
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4594 $as_echo "$ac_cv_host" >&6; }
4595 case $ac_cv_host in
4596 *-*-*) ;;
4597 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4598 esac
4599 host=$ac_cv_host
4600 ac_save_IFS=$IFS; IFS='-'
4601 set x $ac_cv_host
4602 shift
4603 host_cpu=$1
4604 host_vendor=$2
4605 shift; shift
4606 # Remember, the first character of IFS is used to create $*,
4607 # except with old shells:
4608 host_os=$*
4609 IFS=$ac_save_IFS
4610 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4611
4612
4613 enable_win32_dll=yes
4614
4615 case $host in
4616 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}as; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_prog_AS+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$AS"; then
4626 ac_cv_prog_AS="$AS" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_AS="${ac_tool_prefix}as"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 AS=$ac_cv_prog_AS
4646 if test -n "$AS"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4648 $as_echo "$AS" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_prog_AS"; then
4657 ac_ct_AS=$AS
4658 # Extract the first word of "as", so it can be a program name with args.
4659 set dummy as; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$ac_ct_AS"; then
4666 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4675 ac_cv_prog_ac_ct_AS="as"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4686 if test -n "$ac_ct_AS"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4688 $as_echo "$ac_ct_AS" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694 if test "x$ac_ct_AS" = x; then
4695 AS="false"
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703 AS=$ac_ct_AS
4704 fi
4705 else
4706 AS="$ac_cv_prog_AS"
4707 fi
4708
4709 if test -n "$ac_tool_prefix"; then
4710 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4711 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_DLLTOOL+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$DLLTOOL"; then
4718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 DLLTOOL=$ac_cv_prog_DLLTOOL
4738 if test -n "$DLLTOOL"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4740 $as_echo "$DLLTOOL" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747 fi
4748 if test -z "$ac_cv_prog_DLLTOOL"; then
4749 ac_ct_DLLTOOL=$DLLTOOL
4750 # Extract the first word of "dlltool", so it can be a program name with args.
4751 set dummy dlltool; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$ac_ct_DLLTOOL"; then
4758 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4778 if test -n "$ac_ct_DLLTOOL"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4780 $as_echo "$ac_ct_DLLTOOL" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786 if test "x$ac_ct_DLLTOOL" = x; then
4787 DLLTOOL="false"
4788 else
4789 case $cross_compiling:$ac_tool_warned in
4790 yes:)
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4793 ac_tool_warned=yes ;;
4794 esac
4795 DLLTOOL=$ac_ct_DLLTOOL
4796 fi
4797 else
4798 DLLTOOL="$ac_cv_prog_DLLTOOL"
4799 fi
4800
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_OBJDUMP+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$OBJDUMP"; then
4810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823 done
4824 done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 OBJDUMP=$ac_cv_prog_OBJDUMP
4830 if test -n "$OBJDUMP"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4832 $as_echo "$OBJDUMP" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838
4839 fi
4840 if test -z "$ac_cv_prog_OBJDUMP"; then
4841 ac_ct_OBJDUMP=$OBJDUMP
4842 # Extract the first word of "objdump", so it can be a program name with args.
4843 set dummy objdump; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$ac_ct_OBJDUMP"; then
4850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4870 if test -n "$ac_ct_OBJDUMP"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4872 $as_echo "$ac_ct_OBJDUMP" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878 if test "x$ac_ct_OBJDUMP" = x; then
4879 OBJDUMP="false"
4880 else
4881 case $cross_compiling:$ac_tool_warned in
4882 yes:)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned=yes ;;
4886 esac
4887 OBJDUMP=$ac_ct_OBJDUMP
4888 fi
4889 else
4890 OBJDUMP="$ac_cv_prog_OBJDUMP"
4891 fi
4892
4893 ;;
4894 esac
4895
4896 test -z "$AS" && AS=as
4897
4898
4899
4900
4901
4902 test -z "$DLLTOOL" && DLLTOOL=dlltool
4903
4904
4905
4906
4907
4908 test -z "$OBJDUMP" && OBJDUMP=objdump
4909
4910
4911
4912
4913
4914
4915
4916 case `pwd` in
4917 *\ * | *\ *)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4919 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4920 esac
4921
4922
4923
4924 macro_version='2.4.6'
4925 macro_revision='2.4.6'
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 ltmain=$ac_aux_dir/ltmain.sh
4940
4941 # Backslashify metacharacters that are still active within
4942 # double-quoted strings.
4943 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4944
4945 # Same as above, but do not quote variable references.
4946 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4947
4948 # Sed substitution to delay expansion of an escaped shell variable in a
4949 # double_quote_subst'ed string.
4950 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4951
4952 # Sed substitution to delay expansion of an escaped single quote.
4953 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4954
4955 # Sed substitution to avoid accidental globbing in evaled expressions
4956 no_glob_subst='s/\*/\\\*/g'
4957
4958 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4963 $as_echo_n "checking how to print strings... " >&6; }
4964 # Test print first, because it will be a builtin if present.
4965 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4966 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4967 ECHO='print -r --'
4968 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4969 ECHO='printf %s\n'
4970 else
4971 # Use this function as a fallback that always works.
4972 func_fallback_echo ()
4973 {
4974 eval 'cat <<_LTECHO_EOF
4975 $1
4976 _LTECHO_EOF'
4977 }
4978 ECHO='func_fallback_echo'
4979 fi
4980
4981 # func_echo_all arg...
4982 # Invoke $ECHO with all args, space-separated.
4983 func_echo_all ()
4984 {
4985 $ECHO ""
4986 }
4987
4988 case $ECHO in
4989 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4990 $as_echo "printf" >&6; } ;;
4991 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4992 $as_echo "print -r" >&6; } ;;
4993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4994 $as_echo "cat" >&6; } ;;
4995 esac
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5011 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5012 if ${ac_cv_path_SED+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5016 for ac_i in 1 2 3 4 5 6 7; do
5017 ac_script="$ac_script$as_nl$ac_script"
5018 done
5019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5020 { ac_script=; unset ac_script;}
5021 if test -z "$SED"; then
5022 ac_path_SED_found=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_prog in sed gsed; do
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5032 as_fn_executable_p "$ac_path_SED" || continue
5033 # Check for GNU ac_path_SED and select it if it is found.
5034 # Check for GNU $ac_path_SED
5035 case `"$ac_path_SED" --version 2>&1` in
5036 *GNU*)
5037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5038 *)
5039 ac_count=0
5040 $as_echo_n 0123456789 >"conftest.in"
5041 while :
5042 do
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 $as_echo '' >> "conftest.nl"
5047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5049 as_fn_arith $ac_count + 1 && ac_count=$as_val
5050 if test $ac_count -gt ${ac_path_SED_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_SED="$ac_path_SED"
5053 ac_path_SED_max=$ac_count
5054 fi
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5057 done
5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 esac
5060
5061 $ac_path_SED_found && break 3
5062 done
5063 done
5064 done
5065 IFS=$as_save_IFS
5066 if test -z "$ac_cv_path_SED"; then
5067 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5068 fi
5069 else
5070 ac_cv_path_SED=$SED
5071 fi
5072
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5075 $as_echo "$ac_cv_path_SED" >&6; }
5076 SED="$ac_cv_path_SED"
5077 rm -f conftest.sed
5078
5079 test -z "$SED" && SED=sed
5080 Xsed="$SED -e 1s/^X//"
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5093 $as_echo_n "checking for fgrep... " >&6; }
5094 if ${ac_cv_path_FGREP+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5098 then ac_cv_path_FGREP="$GREP -F"
5099 else
5100 if test -z "$FGREP"; then
5101 ac_path_FGREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in fgrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5111 as_fn_executable_p "$ac_path_FGREP" || continue
5112 # Check for GNU ac_path_FGREP and select it if it is found.
5113 # Check for GNU $ac_path_FGREP
5114 case `"$ac_path_FGREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5117 *)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'FGREP' >> "conftest.nl"
5126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_FGREP="$ac_path_FGREP"
5132 ac_path_FGREP_max=$ac_count
5133 fi
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5139
5140 $ac_path_FGREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_FGREP"; then
5146 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 fi
5148 else
5149 ac_cv_path_FGREP=$FGREP
5150 fi
5151
5152 fi
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5155 $as_echo "$ac_cv_path_FGREP" >&6; }
5156 FGREP="$ac_cv_path_FGREP"
5157
5158
5159 test -z "$GREP" && GREP=grep
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179 # Check whether --with-gnu-ld was given.
5180 if test "${with_gnu_ld+set}" = set; then :
5181 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5182 else
5183 with_gnu_ld=no
5184 fi
5185
5186 ac_prog=ld
5187 if test yes = "$GCC"; then
5188 # Check if gcc -print-prog-name=ld gives a path.
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5190 $as_echo_n "checking for ld used by $CC... " >&6; }
5191 case $host in
5192 *-*-mingw*)
5193 # gcc leaves a trailing carriage return, which upsets mingw
5194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5195 *)
5196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5197 esac
5198 case $ac_prog in
5199 # Accept absolute paths.
5200 [\\/]* | ?:[\\/]*)
5201 re_direlt='/[^/][^/]*/\.\./'
5202 # Canonicalize the pathname of ld
5203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5206 done
5207 test -z "$LD" && LD=$ac_prog
5208 ;;
5209 "")
5210 # If it fails, then pretend we aren't using GCC.
5211 ac_prog=ld
5212 ;;
5213 *)
5214 # If it is relative, then search for the first ld in PATH.
5215 with_gnu_ld=unknown
5216 ;;
5217 esac
5218 elif test yes = "$with_gnu_ld"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5220 $as_echo_n "checking for GNU ld... " >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5223 $as_echo_n "checking for non-GNU ld... " >&6; }
5224 fi
5225 if ${lt_cv_path_LD+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -z "$LD"; then
5229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5230 for ac_dir in $PATH; do
5231 IFS=$lt_save_ifs
5232 test -z "$ac_dir" && ac_dir=.
5233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5234 lt_cv_path_LD=$ac_dir/$ac_prog
5235 # Check to see if the program is GNU ld. I'd rather use --version,
5236 # but apparently some variants of GNU ld only accept -v.
5237 # Break only if it was the GNU/non-GNU ld that we prefer.
5238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5239 *GNU* | *'with BFD'*)
5240 test no != "$with_gnu_ld" && break
5241 ;;
5242 *)
5243 test yes != "$with_gnu_ld" && break
5244 ;;
5245 esac
5246 fi
5247 done
5248 IFS=$lt_save_ifs
5249 else
5250 lt_cv_path_LD=$LD # Let the user override the test with a path.
5251 fi
5252 fi
5253
5254 LD=$lt_cv_path_LD
5255 if test -n "$LD"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5257 $as_echo "$LD" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5264 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5265 if ${lt_cv_prog_gnu_ld+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5269 case `$LD -v 2>&1 </dev/null` in
5270 *GNU* | *'with BFD'*)
5271 lt_cv_prog_gnu_ld=yes
5272 ;;
5273 *)
5274 lt_cv_prog_gnu_ld=no
5275 ;;
5276 esac
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5279 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5280 with_gnu_ld=$lt_cv_prog_gnu_ld
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5291 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5292 if ${lt_cv_path_NM+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$NM"; then
5296 # Let the user override the test.
5297 lt_cv_path_NM=$NM
5298 else
5299 lt_nm_to_check=${ac_tool_prefix}nm
5300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5301 lt_nm_to_check="$lt_nm_to_check nm"
5302 fi
5303 for lt_tmp_nm in $lt_nm_to_check; do
5304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5306 IFS=$lt_save_ifs
5307 test -z "$ac_dir" && ac_dir=.
5308 tmp_nm=$ac_dir/$lt_tmp_nm
5309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5310 # Check to see if the nm accepts a BSD-compat flag.
5311 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5312 # nm: unknown option "B" ignored
5313 # Tru64's nm complains that /dev/null is an invalid object file
5314 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5315 case $build_os in
5316 mingw*) lt_bad_file=conftest.nm/nofile ;;
5317 *) lt_bad_file=/dev/null ;;
5318 esac
5319 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5320 *$lt_bad_file* | *'Invalid file or object type'*)
5321 lt_cv_path_NM="$tmp_nm -B"
5322 break 2
5323 ;;
5324 *)
5325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5326 */dev/null*)
5327 lt_cv_path_NM="$tmp_nm -p"
5328 break 2
5329 ;;
5330 *)
5331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5332 continue # so that we can try to find one that supports BSD flags
5333 ;;
5334 esac
5335 ;;
5336 esac
5337 fi
5338 done
5339 IFS=$lt_save_ifs
5340 done
5341 : ${lt_cv_path_NM=no}
5342 fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5345 $as_echo "$lt_cv_path_NM" >&6; }
5346 if test no != "$lt_cv_path_NM"; then
5347 NM=$lt_cv_path_NM
5348 else
5349 # Didn't find any BSD compatible name lister, look for dumpbin.
5350 if test -n "$DUMPBIN"; then :
5351 # Let the user override the test.
5352 else
5353 if test -n "$ac_tool_prefix"; then
5354 for ac_prog in dumpbin "link -dump"
5355 do
5356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_DUMPBIN+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$DUMPBIN"; then
5364 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 DUMPBIN=$ac_cv_prog_DUMPBIN
5384 if test -n "$DUMPBIN"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5386 $as_echo "$DUMPBIN" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392
5393 test -n "$DUMPBIN" && break
5394 done
5395 fi
5396 if test -z "$DUMPBIN"; then
5397 ac_ct_DUMPBIN=$DUMPBIN
5398 for ac_prog in dumpbin "link -dump"
5399 do
5400 # Extract the first word of "$ac_prog", so it can be a program name with args.
5401 set dummy $ac_prog; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$ac_ct_DUMPBIN"; then
5408 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5428 if test -n "$ac_ct_DUMPBIN"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5430 $as_echo "$ac_ct_DUMPBIN" >&6; }
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436
5437 test -n "$ac_ct_DUMPBIN" && break
5438 done
5439
5440 if test "x$ac_ct_DUMPBIN" = x; then
5441 DUMPBIN=":"
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 DUMPBIN=$ac_ct_DUMPBIN
5450 fi
5451 fi
5452
5453 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5454 *COFF*)
5455 DUMPBIN="$DUMPBIN -symbols -headers"
5456 ;;
5457 *)
5458 DUMPBIN=:
5459 ;;
5460 esac
5461 fi
5462
5463 if test : != "$DUMPBIN"; then
5464 NM=$DUMPBIN
5465 fi
5466 fi
5467 test -z "$NM" && NM=nm
5468
5469
5470
5471
5472
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5475 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5476 if ${lt_cv_nm_interface+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 lt_cv_nm_interface="BSD nm"
5480 echo "int some_variable = 0;" > conftest.$ac_ext
5481 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5482 (eval "$ac_compile" 2>conftest.err)
5483 cat conftest.err >&5
5484 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5485 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5486 cat conftest.err >&5
5487 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5488 cat conftest.out >&5
5489 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5490 lt_cv_nm_interface="MS dumpbin"
5491 fi
5492 rm -f conftest*
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5495 $as_echo "$lt_cv_nm_interface" >&6; }
5496
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5498 $as_echo_n "checking whether ln -s works... " >&6; }
5499 LN_S=$as_ln_s
5500 if test "$LN_S" = "ln -s"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5505 $as_echo "no, using $LN_S" >&6; }
5506 fi
5507
5508 # find the maximum length of command line arguments
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5510 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5511 if ${lt_cv_sys_max_cmd_len+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 i=0
5515 teststring=ABCD
5516
5517 case $build_os in
5518 msdosdjgpp*)
5519 # On DJGPP, this test can blow up pretty badly due to problems in libc
5520 # (any single argument exceeding 2000 bytes causes a buffer overrun
5521 # during glob expansion). Even if it were fixed, the result of this
5522 # check would be larger than it should be.
5523 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5524 ;;
5525
5526 gnu*)
5527 # Under GNU Hurd, this test is not required because there is
5528 # no limit to the length of command line arguments.
5529 # Libtool will interpret -1 as no limit whatsoever
5530 lt_cv_sys_max_cmd_len=-1;
5531 ;;
5532
5533 cygwin* | mingw* | cegcc*)
5534 # On Win9x/ME, this test blows up -- it succeeds, but takes
5535 # about 5 minutes as the teststring grows exponentially.
5536 # Worse, since 9x/ME are not pre-emptively multitasking,
5537 # you end up with a "frozen" computer, even though with patience
5538 # the test eventually succeeds (with a max line length of 256k).
5539 # Instead, let's just punt: use the minimum linelength reported by
5540 # all of the supported platforms: 8192 (on NT/2K/XP).
5541 lt_cv_sys_max_cmd_len=8192;
5542 ;;
5543
5544 mint*)
5545 # On MiNT this can take a long time and run out of memory.
5546 lt_cv_sys_max_cmd_len=8192;
5547 ;;
5548
5549 amigaos*)
5550 # On AmigaOS with pdksh, this test takes hours, literally.
5551 # So we just punt and use a minimum line length of 8192.
5552 lt_cv_sys_max_cmd_len=8192;
5553 ;;
5554
5555 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5556 # This has been around since 386BSD, at least. Likely further.
5557 if test -x /sbin/sysctl; then
5558 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5559 elif test -x /usr/sbin/sysctl; then
5560 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5561 else
5562 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5563 fi
5564 # And add a safety zone
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5567 ;;
5568
5569 interix*)
5570 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5571 lt_cv_sys_max_cmd_len=196608
5572 ;;
5573
5574 os2*)
5575 # The test takes a long time on OS/2.
5576 lt_cv_sys_max_cmd_len=8192
5577 ;;
5578
5579 osf*)
5580 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5581 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5582 # nice to cause kernel panics so lets avoid the loop below.
5583 # First set a reasonable default.
5584 lt_cv_sys_max_cmd_len=16384
5585 #
5586 if test -x /sbin/sysconfig; then
5587 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5588 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5589 esac
5590 fi
5591 ;;
5592 sco3.2v5*)
5593 lt_cv_sys_max_cmd_len=102400
5594 ;;
5595 sysv5* | sco5v6* | sysv4.2uw2*)
5596 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5597 if test -n "$kargmax"; then
5598 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5599 else
5600 lt_cv_sys_max_cmd_len=32768
5601 fi
5602 ;;
5603 *)
5604 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5605 if test -n "$lt_cv_sys_max_cmd_len" && \
5606 test undefined != "$lt_cv_sys_max_cmd_len"; then
5607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5609 else
5610 # Make teststring a little bigger before we do anything with it.
5611 # a 1K string should be a reasonable start.
5612 for i in 1 2 3 4 5 6 7 8; do
5613 teststring=$teststring$teststring
5614 done
5615 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5616 # If test is not a shell built-in, we'll probably end up computing a
5617 # maximum length that is only half of the actual maximum length, but
5618 # we can't tell.
5619 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5620 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5621 test 17 != "$i" # 1/2 MB should be enough
5622 do
5623 i=`expr $i + 1`
5624 teststring=$teststring$teststring
5625 done
5626 # Only check the string length outside the loop.
5627 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5628 teststring=
5629 # Add a significant safety factor because C++ compilers can tack on
5630 # massive amounts of additional arguments before passing them to the
5631 # linker. It appears as though 1/2 is a usable value.
5632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5633 fi
5634 ;;
5635 esac
5636
5637 fi
5638
5639 if test -n "$lt_cv_sys_max_cmd_len"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5641 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5644 $as_echo "none" >&6; }
5645 fi
5646 max_cmd_len=$lt_cv_sys_max_cmd_len
5647
5648
5649
5650
5651
5652
5653 : ${CP="cp -f"}
5654 : ${MV="mv -f"}
5655 : ${RM="rm -f"}
5656
5657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5658 lt_unset=unset
5659 else
5660 lt_unset=false
5661 fi
5662
5663
5664
5665
5666
5667 # test EBCDIC or ASCII
5668 case `echo X|tr X '\101'` in
5669 A) # ASCII based system
5670 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5671 lt_SP2NL='tr \040 \012'
5672 lt_NL2SP='tr \015\012 \040\040'
5673 ;;
5674 *) # EBCDIC based system
5675 lt_SP2NL='tr \100 \n'
5676 lt_NL2SP='tr \r\n \100\100'
5677 ;;
5678 esac
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5689 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5690 if ${lt_cv_to_host_file_cmd+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 case $host in
5694 *-*-mingw* )
5695 case $build in
5696 *-*-mingw* ) # actually msys
5697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5698 ;;
5699 *-*-cygwin* )
5700 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5701 ;;
5702 * ) # otherwise, assume *nix
5703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5704 ;;
5705 esac
5706 ;;
5707 *-*-cygwin* )
5708 case $build in
5709 *-*-mingw* ) # actually msys
5710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5711 ;;
5712 *-*-cygwin* )
5713 lt_cv_to_host_file_cmd=func_convert_file_noop
5714 ;;
5715 * ) # otherwise, assume *nix
5716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5717 ;;
5718 esac
5719 ;;
5720 * ) # unhandled hosts (and "normal" native builds)
5721 lt_cv_to_host_file_cmd=func_convert_file_noop
5722 ;;
5723 esac
5724
5725 fi
5726
5727 to_host_file_cmd=$lt_cv_to_host_file_cmd
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5729 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5730
5731
5732
5733
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5736 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5737 if ${lt_cv_to_tool_file_cmd+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 #assume ordinary cross tools, or native build.
5741 lt_cv_to_tool_file_cmd=func_convert_file_noop
5742 case $host in
5743 *-*-mingw* )
5744 case $build in
5745 *-*-mingw* ) # actually msys
5746 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5747 ;;
5748 esac
5749 ;;
5750 esac
5751
5752 fi
5753
5754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5756 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5757
5758
5759
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5763 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5764 if ${lt_cv_ld_reload_flag+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 lt_cv_ld_reload_flag='-r'
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5770 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5771 reload_flag=$lt_cv_ld_reload_flag
5772 case $reload_flag in
5773 "" | " "*) ;;
5774 *) reload_flag=" $reload_flag" ;;
5775 esac
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5777 case $host_os in
5778 cygwin* | mingw* | pw32* | cegcc*)
5779 if test yes != "$GCC"; then
5780 reload_cmds=false
5781 fi
5782 ;;
5783 darwin*)
5784 if test yes = "$GCC"; then
5785 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5786 else
5787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5788 fi
5789 ;;
5790 esac
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_OBJDUMP+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if test -n "$OBJDUMP"; then
5809 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 OBJDUMP=$ac_cv_prog_OBJDUMP
5829 if test -n "$OBJDUMP"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5831 $as_echo "$OBJDUMP" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838 fi
5839 if test -z "$ac_cv_prog_OBJDUMP"; then
5840 ac_ct_OBJDUMP=$OBJDUMP
5841 # Extract the first word of "objdump", so it can be a program name with args.
5842 set dummy objdump; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$ac_ct_OBJDUMP"; then
5849 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5869 if test -n "$ac_ct_OBJDUMP"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5871 $as_echo "$ac_ct_OBJDUMP" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877 if test "x$ac_ct_OBJDUMP" = x; then
5878 OBJDUMP="false"
5879 else
5880 case $cross_compiling:$ac_tool_warned in
5881 yes:)
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5885 esac
5886 OBJDUMP=$ac_ct_OBJDUMP
5887 fi
5888 else
5889 OBJDUMP="$ac_cv_prog_OBJDUMP"
5890 fi
5891
5892 test -z "$OBJDUMP" && OBJDUMP=objdump
5893
5894
5895
5896
5897
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5900 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5901 if ${lt_cv_deplibs_check_method+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 lt_cv_file_magic_cmd='$MAGIC_CMD'
5905 lt_cv_file_magic_test_file=
5906 lt_cv_deplibs_check_method='unknown'
5907 # Need to set the preceding variable on all platforms that support
5908 # interlibrary dependencies.
5909 # 'none' -- dependencies not supported.
5910 # 'unknown' -- same as none, but documents that we really don't know.
5911 # 'pass_all' -- all dependencies passed with no checks.
5912 # 'test_compile' -- check by making test program.
5913 # 'file_magic [[regex]]' -- check by looking for files in library path
5914 # that responds to the $file_magic_cmd with a given extended regex.
5915 # If you have 'file' or equivalent on your system and you're not sure
5916 # whether 'pass_all' will *always* work, you probably want this one.
5917
5918 case $host_os in
5919 aix[4-9]*)
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922
5923 beos*)
5924 lt_cv_deplibs_check_method=pass_all
5925 ;;
5926
5927 bsdi[45]*)
5928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5929 lt_cv_file_magic_cmd='/usr/bin/file -L'
5930 lt_cv_file_magic_test_file=/shlib/libc.so
5931 ;;
5932
5933 cygwin*)
5934 # func_win32_libid is a shell function defined in ltmain.sh
5935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5936 lt_cv_file_magic_cmd='func_win32_libid'
5937 ;;
5938
5939 mingw* | pw32*)
5940 # Base MSYS/MinGW do not provide the 'file' command needed by
5941 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5942 # unless we find 'file', for example because we are cross-compiling.
5943 if ( file / ) >/dev/null 2>&1; then
5944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5945 lt_cv_file_magic_cmd='func_win32_libid'
5946 else
5947 # Keep this pattern in sync with the one in func_win32_libid.
5948 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5949 lt_cv_file_magic_cmd='$OBJDUMP -f'
5950 fi
5951 ;;
5952
5953 cegcc*)
5954 # use the weaker test based on 'objdump'. See mingw*.
5955 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5956 lt_cv_file_magic_cmd='$OBJDUMP -f'
5957 ;;
5958
5959 darwin* | rhapsody*)
5960 lt_cv_deplibs_check_method=pass_all
5961 ;;
5962
5963 freebsd* | dragonfly*)
5964 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5965 case $host_cpu in
5966 i*86 )
5967 # Not sure whether the presence of OpenBSD here was a mistake.
5968 # Let's accept both of them until this is cleared up.
5969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5970 lt_cv_file_magic_cmd=/usr/bin/file
5971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5972 ;;
5973 esac
5974 else
5975 lt_cv_deplibs_check_method=pass_all
5976 fi
5977 ;;
5978
5979 haiku*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982
5983 hpux10.20* | hpux11*)
5984 lt_cv_file_magic_cmd=/usr/bin/file
5985 case $host_cpu in
5986 ia64*)
5987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5989 ;;
5990 hppa*64*)
5991 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]'
5992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5993 ;;
5994 *)
5995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5997 ;;
5998 esac
5999 ;;
6000
6001 interix[3-9]*)
6002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6004 ;;
6005
6006 irix5* | irix6* | nonstopux*)
6007 case $LD in
6008 *-32|*"-32 ") libmagic=32-bit;;
6009 *-n32|*"-n32 ") libmagic=N32;;
6010 *-64|*"-64 ") libmagic=64-bit;;
6011 *) libmagic=never-match;;
6012 esac
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 # This must be glibc/ELF.
6017 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020
6021 netbsd*)
6022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6024 else
6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6026 fi
6027 ;;
6028
6029 newos6*)
6030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6031 lt_cv_file_magic_cmd=/usr/bin/file
6032 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6033 ;;
6034
6035 *nto* | *qnx*)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038
6039 openbsd* | bitrig*)
6040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6042 else
6043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6044 fi
6045 ;;
6046
6047 osf3* | osf4* | osf5*)
6048 lt_cv_deplibs_check_method=pass_all
6049 ;;
6050
6051 rdos*)
6052 lt_cv_deplibs_check_method=pass_all
6053 ;;
6054
6055 solaris*)
6056 lt_cv_deplibs_check_method=pass_all
6057 ;;
6058
6059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6060 lt_cv_deplibs_check_method=pass_all
6061 ;;
6062
6063 sysv4 | sysv4.3*)
6064 case $host_vendor in
6065 motorola)
6066 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]'
6067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6068 ;;
6069 ncr)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072 sequent)
6073 lt_cv_file_magic_cmd='/bin/file'
6074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6075 ;;
6076 sni)
6077 lt_cv_file_magic_cmd='/bin/file'
6078 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6079 lt_cv_file_magic_test_file=/lib/libc.so
6080 ;;
6081 siemens)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084 pc)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087 esac
6088 ;;
6089
6090 tpf*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093 os2*)
6094 lt_cv_deplibs_check_method=pass_all
6095 ;;
6096 esac
6097
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6101
6102 file_magic_glob=
6103 want_nocaseglob=no
6104 if test "$build" = "$host"; then
6105 case $host_os in
6106 mingw* | pw32*)
6107 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6108 want_nocaseglob=yes
6109 else
6110 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6111 fi
6112 ;;
6113 esac
6114 fi
6115
6116 file_magic_cmd=$lt_cv_file_magic_cmd
6117 deplibs_check_method=$lt_cv_deplibs_check_method
6118 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_DLLTOOL+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$DLLTOOL"; then
6150 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 DLLTOOL=$ac_cv_prog_DLLTOOL
6170 if test -n "$DLLTOOL"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6172 $as_echo "$DLLTOOL" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_DLLTOOL"; then
6181 ac_ct_DLLTOOL=$DLLTOOL
6182 # Extract the first word of "dlltool", so it can be a program name with args.
6183 set dummy dlltool; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$ac_ct_DLLTOOL"; then
6190 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6199 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6210 if test -n "$ac_ct_DLLTOOL"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6212 $as_echo "$ac_ct_DLLTOOL" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218 if test "x$ac_ct_DLLTOOL" = x; then
6219 DLLTOOL="false"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227 DLLTOOL=$ac_ct_DLLTOOL
6228 fi
6229 else
6230 DLLTOOL="$ac_cv_prog_DLLTOOL"
6231 fi
6232
6233 test -z "$DLLTOOL" && DLLTOOL=dlltool
6234
6235
6236
6237
6238
6239
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6242 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6243 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 lt_cv_sharedlib_from_linklib_cmd='unknown'
6247
6248 case $host_os in
6249 cygwin* | mingw* | pw32* | cegcc*)
6250 # two different shell functions defined in ltmain.sh;
6251 # decide which one to use based on capabilities of $DLLTOOL
6252 case `$DLLTOOL --help 2>&1` in
6253 *--identify-strict*)
6254 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6255 ;;
6256 *)
6257 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6258 ;;
6259 esac
6260 ;;
6261 *)
6262 # fallback: assume linklib IS sharedlib
6263 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6264 ;;
6265 esac
6266
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6269 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6270 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6271 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6272
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280 for ac_prog in ar
6281 do
6282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_AR+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$AR"; then
6290 ac_cv_prog_AR="$AR" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 AR=$ac_cv_prog_AR
6310 if test -n "$AR"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6312 $as_echo "$AR" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319 test -n "$AR" && break
6320 done
6321 fi
6322 if test -z "$AR"; then
6323 ac_ct_AR=$AR
6324 for ac_prog in ar
6325 do
6326 # Extract the first word of "$ac_prog", so it can be a program name with args.
6327 set dummy $ac_prog; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$ac_ct_AR"; then
6334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_ac_ct_AR="$ac_prog"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6354 if test -n "$ac_ct_AR"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6356 $as_echo "$ac_ct_AR" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362
6363 test -n "$ac_ct_AR" && break
6364 done
6365
6366 if test "x$ac_ct_AR" = x; then
6367 AR="false"
6368 else
6369 case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375 AR=$ac_ct_AR
6376 fi
6377 fi
6378
6379 : ${AR=ar}
6380 : ${AR_FLAGS=cru}
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6393 $as_echo_n "checking for archiver @FILE support... " >&6; }
6394 if ${lt_cv_ar_at_file+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 lt_cv_ar_at_file=no
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400
6401 int
6402 main ()
6403 {
6404
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 if ac_fn_c_try_compile "$LINENO"; then :
6410 echo conftest.$ac_objext > conftest.lst
6411 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6413 (eval $lt_ar_try) 2>&5
6414 ac_status=$?
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }
6417 if test 0 -eq "$ac_status"; then
6418 # Ensure the archiver fails upon bogus file names.
6419 rm -f conftest.$ac_objext libconftest.a
6420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6421 (eval $lt_ar_try) 2>&5
6422 ac_status=$?
6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }
6425 if test 0 -ne "$ac_status"; then
6426 lt_cv_ar_at_file=@
6427 fi
6428 fi
6429 rm -f conftest.* libconftest.a
6430
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6436 $as_echo "$lt_cv_ar_at_file" >&6; }
6437
6438 if test no = "$lt_cv_ar_at_file"; then
6439 archiver_list_spec=
6440 else
6441 archiver_list_spec=$lt_cv_ar_at_file
6442 fi
6443
6444
6445
6446
6447
6448
6449
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}strip; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_STRIP+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$STRIP"; then
6459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 STRIP=$ac_cv_prog_STRIP
6479 if test -n "$STRIP"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6481 $as_echo "$STRIP" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 fi
6489 if test -z "$ac_cv_prog_STRIP"; then
6490 ac_ct_STRIP=$STRIP
6491 # Extract the first word of "strip", so it can be a program name with args.
6492 set dummy strip; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 if test -n "$ac_ct_STRIP"; then
6499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_ac_ct_STRIP="strip"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512 done
6513 done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6519 if test -n "$ac_ct_STRIP"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6521 $as_echo "$ac_ct_STRIP" >&6; }
6522 else
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527 if test "x$ac_ct_STRIP" = x; then
6528 STRIP=":"
6529 else
6530 case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536 STRIP=$ac_ct_STRIP
6537 fi
6538 else
6539 STRIP="$ac_cv_prog_STRIP"
6540 fi
6541
6542 test -z "$STRIP" && STRIP=:
6543
6544
6545
6546
6547
6548
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_RANLIB+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if test -n "$RANLIB"; then
6558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 RANLIB=$ac_cv_prog_RANLIB
6578 if test -n "$RANLIB"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6580 $as_echo "$RANLIB" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_RANLIB"; then
6589 ac_ct_RANLIB=$RANLIB
6590 # Extract the first word of "ranlib", so it can be a program name with args.
6591 set dummy ranlib; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 if test -n "$ac_ct_RANLIB"; then
6598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_ac_ct_RANLIB="ranlib"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6618 if test -n "$ac_ct_RANLIB"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6620 $as_echo "$ac_ct_RANLIB" >&6; }
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626 if test "x$ac_ct_RANLIB" = x; then
6627 RANLIB=":"
6628 else
6629 case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635 RANLIB=$ac_ct_RANLIB
6636 fi
6637 else
6638 RANLIB="$ac_cv_prog_RANLIB"
6639 fi
6640
6641 test -z "$RANLIB" && RANLIB=:
6642
6643
6644
6645
6646
6647
6648 # Determine commands to create old-style static archives.
6649 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6650 old_postinstall_cmds='chmod 644 $oldlib'
6651 old_postuninstall_cmds=
6652
6653 if test -n "$RANLIB"; then
6654 case $host_os in
6655 bitrig* | openbsd*)
6656 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6657 ;;
6658 *)
6659 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6660 ;;
6661 esac
6662 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6663 fi
6664
6665 case $host_os in
6666 darwin*)
6667 lock_old_archive_extraction=yes ;;
6668 *)
6669 lock_old_archive_extraction=no ;;
6670 esac
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 # If no C compiler was specified, use CC.
6711 LTCC=${LTCC-"$CC"}
6712
6713 # If no C compiler flags were specified, use CFLAGS.
6714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6715
6716 # Allow CC to be a program name with arguments.
6717 compiler=$CC
6718
6719
6720 # Check for command to grab the raw symbol name followed by C symbol from nm.
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6722 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6723 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726
6727 # These are sane defaults that work on at least a few old systems.
6728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729
6730 # Character class describing NM global symbol codes.
6731 symcode='[BCDEGRST]'
6732
6733 # Regexp to match symbols that can be accessed directly from C.
6734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735
6736 # Define system-specific variables.
6737 case $host_os in
6738 aix*)
6739 symcode='[BCDT]'
6740 ;;
6741 cygwin* | mingw* | pw32* | cegcc*)
6742 symcode='[ABCDGISTW]'
6743 ;;
6744 hpux*)
6745 if test ia64 = "$host_cpu"; then
6746 symcode='[ABCDEGRST]'
6747 fi
6748 ;;
6749 irix* | nonstopux*)
6750 symcode='[BCDEGRST]'
6751 ;;
6752 osf*)
6753 symcode='[BCDEGQRST]'
6754 ;;
6755 solaris*)
6756 symcode='[BDRT]'
6757 ;;
6758 sco3.2v5*)
6759 symcode='[DT]'
6760 ;;
6761 sysv4.2uw2*)
6762 symcode='[DT]'
6763 ;;
6764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6765 symcode='[ABDT]'
6766 ;;
6767 sysv4)
6768 symcode='[DFNSTU]'
6769 ;;
6770 esac
6771
6772 # If we're using GNU nm, then use its standard symbol codes.
6773 case `$NM -V 2>&1` in
6774 *GNU* | *'with BFD'*)
6775 symcode='[ABCDGIRSTW]' ;;
6776 esac
6777
6778 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6779 # Gets list of data symbols to import.
6780 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6781 # Adjust the below global symbol transforms to fixup imported variables.
6782 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6783 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6784 lt_c_name_lib_hook="\
6785 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6786 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6787 else
6788 # Disable hooks by default.
6789 lt_cv_sys_global_symbol_to_import=
6790 lt_cdecl_hook=
6791 lt_c_name_hook=
6792 lt_c_name_lib_hook=
6793 fi
6794
6795 # Transform an extracted symbol line into a proper C declaration.
6796 # Some systems (esp. on ia64) link data and code symbols differently,
6797 # so use this general approach.
6798 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6799 $lt_cdecl_hook\
6800 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6801 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6802
6803 # Transform an extracted symbol line into symbol name and symbol address
6804 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6805 $lt_c_name_hook\
6806 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6807 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6808
6809 # Transform an extracted symbol line into symbol name with lib prefix and
6810 # symbol address.
6811 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6812 $lt_c_name_lib_hook\
6813 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6814 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6815 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6816
6817 # Handle CRLF in mingw tool chain
6818 opt_cr=
6819 case $build_os in
6820 mingw*)
6821 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6822 ;;
6823 esac
6824
6825 # Try without a prefix underscore, then with it.
6826 for ac_symprfx in "" "_"; do
6827
6828 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6829 symxfrm="\\1 $ac_symprfx\\2 \\2"
6830
6831 # Write the raw and C identifiers.
6832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6833 # Fake it for dumpbin and say T for any non-static function,
6834 # D for any global variable and I for any imported variable.
6835 # Also find C++ and __fastcall symbols from MSVC++,
6836 # which start with @ or ?.
6837 lt_cv_sys_global_symbol_pipe="$AWK '"\
6838 " {last_section=section; section=\$ 3};"\
6839 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6840 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6841 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6842 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6843 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6844 " \$ 0!~/External *\|/{next};"\
6845 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6846 " {if(hide[section]) next};"\
6847 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6848 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6849 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6850 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6851 " ' prfx=^$ac_symprfx"
6852 else
6853 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6854 fi
6855 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6856
6857 # Check to see that the pipe works correctly.
6858 pipe_works=no
6859
6860 rm -f conftest*
6861 cat > conftest.$ac_ext <<_LT_EOF
6862 #ifdef __cplusplus
6863 extern "C" {
6864 #endif
6865 char nm_test_var;
6866 void nm_test_func(void);
6867 void nm_test_func(void){}
6868 #ifdef __cplusplus
6869 }
6870 #endif
6871 int main(){nm_test_var='a';nm_test_func();return(0);}
6872 _LT_EOF
6873
6874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875 (eval $ac_compile) 2>&5
6876 ac_status=$?
6877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878 test $ac_status = 0; }; then
6879 # Now try to grab the symbols.
6880 nlist=conftest.nm
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6882 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; } && test -s "$nlist"; then
6886 # Try sorting and uniquifying the output.
6887 if sort "$nlist" | uniq > "$nlist"T; then
6888 mv -f "$nlist"T "$nlist"
6889 else
6890 rm -f "$nlist"T
6891 fi
6892
6893 # Make sure that we snagged all the symbols we need.
6894 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6895 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6896 cat <<_LT_EOF > conftest.$ac_ext
6897 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6898 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6899 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6900 relocations are performed -- see ld's documentation on pseudo-relocs. */
6901 # define LT_DLSYM_CONST
6902 #elif defined __osf__
6903 /* This system does not cope well with relocations in const data. */
6904 # define LT_DLSYM_CONST
6905 #else
6906 # define LT_DLSYM_CONST const
6907 #endif
6908
6909 #ifdef __cplusplus
6910 extern "C" {
6911 #endif
6912
6913 _LT_EOF
6914 # Now generate the symbol file.
6915 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6916
6917 cat <<_LT_EOF >> conftest.$ac_ext
6918
6919 /* The mapping between symbol names and symbols. */
6920 LT_DLSYM_CONST struct {
6921 const char *name;
6922 void *address;
6923 }
6924 lt__PROGRAM__LTX_preloaded_symbols[] =
6925 {
6926 { "@PROGRAM@", (void *) 0 },
6927 _LT_EOF
6928 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6929 cat <<\_LT_EOF >> conftest.$ac_ext
6930 {0, (void *) 0}
6931 };
6932
6933 /* This works around a problem in FreeBSD linker */
6934 #ifdef FREEBSD_WORKAROUND
6935 static const void *lt_preloaded_setup() {
6936 return lt__PROGRAM__LTX_preloaded_symbols;
6937 }
6938 #endif
6939
6940 #ifdef __cplusplus
6941 }
6942 #endif
6943 _LT_EOF
6944 # Now try linking the two files.
6945 mv conftest.$ac_objext conftstm.$ac_objext
6946 lt_globsym_save_LIBS=$LIBS
6947 lt_globsym_save_CFLAGS=$CFLAGS
6948 LIBS=conftstm.$ac_objext
6949 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6951 (eval $ac_link) 2>&5
6952 ac_status=$?
6953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6955 pipe_works=yes
6956 fi
6957 LIBS=$lt_globsym_save_LIBS
6958 CFLAGS=$lt_globsym_save_CFLAGS
6959 else
6960 echo "cannot find nm_test_func in $nlist" >&5
6961 fi
6962 else
6963 echo "cannot find nm_test_var in $nlist" >&5
6964 fi
6965 else
6966 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6967 fi
6968 else
6969 echo "$progname: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6971 fi
6972 rm -rf conftest* conftst*
6973
6974 # Do not use the global_symbol_pipe unless it works.
6975 if test yes = "$pipe_works"; then
6976 break
6977 else
6978 lt_cv_sys_global_symbol_pipe=
6979 fi
6980 done
6981
6982 fi
6983
6984 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6985 lt_cv_sys_global_symbol_to_cdecl=
6986 fi
6987 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6989 $as_echo "failed" >&6; }
6990 else
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6992 $as_echo "ok" >&6; }
6993 fi
6994
6995 # Response file support.
6996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6997 nm_file_list_spec='@'
6998 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6999 nm_file_list_spec='@'
7000 fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7039 $as_echo_n "checking for sysroot... " >&6; }
7040
7041 # Check whether --with-sysroot was given.
7042 if test "${with_sysroot+set}" = set; then :
7043 withval=$with_sysroot;
7044 else
7045 with_sysroot=no
7046 fi
7047
7048
7049 lt_sysroot=
7050 case $with_sysroot in #(
7051 yes)
7052 if test yes = "$GCC"; then
7053 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7054 fi
7055 ;; #(
7056 /*)
7057 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7058 ;; #(
7059 no|'')
7060 ;; #(
7061 *)
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7063 $as_echo "$with_sysroot" >&6; }
7064 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7065 ;;
7066 esac
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7069 $as_echo "${lt_sysroot:-no}" >&6; }
7070
7071
7072
7073
7074
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7076 $as_echo_n "checking for a working dd... " >&6; }
7077 if ${ac_cv_path_lt_DD+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 printf 0123456789abcdef0123456789abcdef >conftest.i
7081 cat conftest.i conftest.i >conftest2.i
7082 : ${lt_DD:=$DD}
7083 if test -z "$lt_DD"; then
7084 ac_path_lt_DD_found=false
7085 # Loop through the user's path and test for each of PROGNAME-LIST
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_prog in dd; do
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7094 as_fn_executable_p "$ac_path_lt_DD" || continue
7095 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7096 cmp -s conftest.i conftest.out \
7097 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7098 fi
7099 $ac_path_lt_DD_found && break 3
7100 done
7101 done
7102 done
7103 IFS=$as_save_IFS
7104 if test -z "$ac_cv_path_lt_DD"; then
7105 :
7106 fi
7107 else
7108 ac_cv_path_lt_DD=$lt_DD
7109 fi
7110
7111 rm -f conftest.i conftest2.i conftest.out
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7114 $as_echo "$ac_cv_path_lt_DD" >&6; }
7115
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7118 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7119 if ${lt_cv_truncate_bin+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 printf 0123456789abcdef0123456789abcdef >conftest.i
7123 cat conftest.i conftest.i >conftest2.i
7124 lt_cv_truncate_bin=
7125 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7126 cmp -s conftest.i conftest.out \
7127 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7128 fi
7129 rm -f conftest.i conftest2.i conftest.out
7130 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7133 $as_echo "$lt_cv_truncate_bin" >&6; }
7134
7135
7136
7137
7138
7139
7140
7141 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7142 func_cc_basename ()
7143 {
7144 for cc_temp in $*""; do
7145 case $cc_temp in
7146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7148 \-*) ;;
7149 *) break;;
7150 esac
7151 done
7152 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7153 }
7154
7155 # Check whether --enable-libtool-lock was given.
7156 if test "${enable_libtool_lock+set}" = set; then :
7157 enableval=$enable_libtool_lock;
7158 fi
7159
7160 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7161
7162 # Some flags need to be propagated to the compiler or linker for good
7163 # libtool support.
7164 case $host in
7165 ia64-*-hpux*)
7166 # Find out what ABI is being produced by ac_compile, and set mode
7167 # options accordingly.
7168 echo 'int i;' > conftest.$ac_ext
7169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7170 (eval $ac_compile) 2>&5
7171 ac_status=$?
7172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7173 test $ac_status = 0; }; then
7174 case `/usr/bin/file conftest.$ac_objext` in
7175 *ELF-32*)
7176 HPUX_IA64_MODE=32
7177 ;;
7178 *ELF-64*)
7179 HPUX_IA64_MODE=64
7180 ;;
7181 esac
7182 fi
7183 rm -rf conftest*
7184 ;;
7185 *-*-irix6*)
7186 # Find out what ABI is being produced by ac_compile, and set linker
7187 # options accordingly.
7188 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7190 (eval $ac_compile) 2>&5
7191 ac_status=$?
7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7193 test $ac_status = 0; }; then
7194 if test yes = "$lt_cv_prog_gnu_ld"; then
7195 case `/usr/bin/file conftest.$ac_objext` in
7196 *32-bit*)
7197 LD="${LD-ld} -melf32bsmip"
7198 ;;
7199 *N32*)
7200 LD="${LD-ld} -melf32bmipn32"
7201 ;;
7202 *64-bit*)
7203 LD="${LD-ld} -melf64bmip"
7204 ;;
7205 esac
7206 else
7207 case `/usr/bin/file conftest.$ac_objext` in
7208 *32-bit*)
7209 LD="${LD-ld} -32"
7210 ;;
7211 *N32*)
7212 LD="${LD-ld} -n32"
7213 ;;
7214 *64-bit*)
7215 LD="${LD-ld} -64"
7216 ;;
7217 esac
7218 fi
7219 fi
7220 rm -rf conftest*
7221 ;;
7222
7223 mips64*-*linux*)
7224 # Find out what ABI is being produced by ac_compile, and set linker
7225 # options accordingly.
7226 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228 (eval $ac_compile) 2>&5
7229 ac_status=$?
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; }; then
7232 emul=elf
7233 case `/usr/bin/file conftest.$ac_objext` in
7234 *32-bit*)
7235 emul="${emul}32"
7236 ;;
7237 *64-bit*)
7238 emul="${emul}64"
7239 ;;
7240 esac
7241 case `/usr/bin/file conftest.$ac_objext` in
7242 *MSB*)
7243 emul="${emul}btsmip"
7244 ;;
7245 *LSB*)
7246 emul="${emul}ltsmip"
7247 ;;
7248 esac
7249 case `/usr/bin/file conftest.$ac_objext` in
7250 *N32*)
7251 emul="${emul}n32"
7252 ;;
7253 esac
7254 LD="${LD-ld} -m $emul"
7255 fi
7256 rm -rf conftest*
7257 ;;
7258
7259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7260 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7261 # Find out what ABI is being produced by ac_compile, and set linker
7262 # options accordingly. Note that the listed cases only cover the
7263 # situations where additional linker options are needed (such as when
7264 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7265 # vice versa); the common cases where no linker options are needed do
7266 # not appear in the list.
7267 echo 'int i;' > conftest.$ac_ext
7268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7269 (eval $ac_compile) 2>&5
7270 ac_status=$?
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 case `/usr/bin/file conftest.o` in
7274 *32-bit*)
7275 case $host in
7276 x86_64-*kfreebsd*-gnu)
7277 LD="${LD-ld} -m elf_i386_fbsd"
7278 ;;
7279 x86_64-*linux*)
7280 case `/usr/bin/file conftest.o` in
7281 *x86-64*)
7282 LD="${LD-ld} -m elf32_x86_64"
7283 ;;
7284 *)
7285 LD="${LD-ld} -m elf_i386"
7286 ;;
7287 esac
7288 ;;
7289 powerpc64le-*linux*)
7290 LD="${LD-ld} -m elf32lppclinux"
7291 ;;
7292 powerpc64-*linux*)
7293 LD="${LD-ld} -m elf32ppclinux"
7294 ;;
7295 s390x-*linux*)
7296 LD="${LD-ld} -m elf_s390"
7297 ;;
7298 sparc64-*linux*)
7299 LD="${LD-ld} -m elf32_sparc"
7300 ;;
7301 esac
7302 ;;
7303 *64-bit*)
7304 case $host in
7305 x86_64-*kfreebsd*-gnu)
7306 LD="${LD-ld} -m elf_x86_64_fbsd"
7307 ;;
7308 x86_64-*linux*)
7309 LD="${LD-ld} -m elf_x86_64"
7310 ;;
7311 powerpcle-*linux*)
7312 LD="${LD-ld} -m elf64lppc"
7313 ;;
7314 powerpc-*linux*)
7315 LD="${LD-ld} -m elf64ppc"
7316 ;;
7317 s390*-*linux*|s390*-*tpf*)
7318 LD="${LD-ld} -m elf64_s390"
7319 ;;
7320 sparc*-*linux*)
7321 LD="${LD-ld} -m elf64_sparc"
7322 ;;
7323 esac
7324 ;;
7325 esac
7326 fi
7327 rm -rf conftest*
7328 ;;
7329
7330 *-*-sco3.2v5*)
7331 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7332 SAVE_CFLAGS=$CFLAGS
7333 CFLAGS="$CFLAGS -belf"
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7335 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7336 if ${lt_cv_cc_needs_belf+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7344
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347
7348 int
7349 main ()
7350 {
7351
7352 ;
7353 return 0;
7354 }
7355 _ACEOF
7356 if ac_fn_c_try_link "$LINENO"; then :
7357 lt_cv_cc_needs_belf=yes
7358 else
7359 lt_cv_cc_needs_belf=no
7360 fi
7361 rm -f core conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363 ac_ext=c
7364 ac_cpp='$CPP $CPPFLAGS'
7365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7368
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7371 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7372 if test yes != "$lt_cv_cc_needs_belf"; then
7373 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7374 CFLAGS=$SAVE_CFLAGS
7375 fi
7376 ;;
7377 *-*solaris*)
7378 # Find out what ABI is being produced by ac_compile, and set linker
7379 # options accordingly.
7380 echo 'int i;' > conftest.$ac_ext
7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7382 (eval $ac_compile) 2>&5
7383 ac_status=$?
7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385 test $ac_status = 0; }; then
7386 case `/usr/bin/file conftest.o` in
7387 *64-bit*)
7388 case $lt_cv_prog_gnu_ld in
7389 yes*)
7390 case $host in
7391 i?86-*-solaris*|x86_64-*-solaris*)
7392 LD="${LD-ld} -m elf_x86_64"
7393 ;;
7394 sparc*-*-solaris*)
7395 LD="${LD-ld} -m elf64_sparc"
7396 ;;
7397 esac
7398 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7399 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7400 LD=${LD-ld}_sol2
7401 fi
7402 ;;
7403 *)
7404 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7405 LD="${LD-ld} -64"
7406 fi
7407 ;;
7408 esac
7409 ;;
7410 esac
7411 fi
7412 rm -rf conftest*
7413 ;;
7414 esac
7415
7416 need_locks=$enable_libtool_lock
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}mt; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$MANIFEST_TOOL"; then
7427 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7447 if test -n "$MANIFEST_TOOL"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7449 $as_echo "$MANIFEST_TOOL" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455
7456 fi
7457 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7458 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7459 # Extract the first word of "mt", so it can be a program name with args.
7460 set dummy mt; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$ac_ct_MANIFEST_TOOL"; then
7467 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7487 if test -n "$ac_ct_MANIFEST_TOOL"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7489 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7496 MANIFEST_TOOL=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7505 fi
7506 else
7507 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7508 fi
7509
7510 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7512 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7513 if ${lt_cv_path_mainfest_tool+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 lt_cv_path_mainfest_tool=no
7517 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7518 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7519 cat conftest.err >&5
7520 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7521 lt_cv_path_mainfest_tool=yes
7522 fi
7523 rm -f conftest*
7524 fi
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7526 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7527 if test yes != "$lt_cv_path_mainfest_tool"; then
7528 MANIFEST_TOOL=:
7529 fi
7530
7531
7532
7533
7534
7535
7536 case $host_os in
7537 rhapsody* | darwin*)
7538 if test -n "$ac_tool_prefix"; then
7539 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7540 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$DSYMUTIL"; then
7547 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7567 if test -n "$DSYMUTIL"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7569 $as_echo "$DSYMUTIL" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575
7576 fi
7577 if test -z "$ac_cv_prog_DSYMUTIL"; then
7578 ac_ct_DSYMUTIL=$DSYMUTIL
7579 # Extract the first word of "dsymutil", so it can be a program name with args.
7580 set dummy dsymutil; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 if test -n "$ac_ct_DSYMUTIL"; then
7587 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600 done
7601 done
7602 IFS=$as_save_IFS
7603
7604 fi
7605 fi
7606 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7607 if test -n "$ac_ct_DSYMUTIL"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7609 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614
7615 if test "x$ac_ct_DSYMUTIL" = x; then
7616 DSYMUTIL=":"
7617 else
7618 case $cross_compiling:$ac_tool_warned in
7619 yes:)
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622 ac_tool_warned=yes ;;
7623 esac
7624 DSYMUTIL=$ac_ct_DSYMUTIL
7625 fi
7626 else
7627 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7628 fi
7629
7630 if test -n "$ac_tool_prefix"; then
7631 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7632 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_NMEDIT+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 if test -n "$NMEDIT"; then
7639 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 NMEDIT=$ac_cv_prog_NMEDIT
7659 if test -n "$NMEDIT"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7661 $as_echo "$NMEDIT" >&6; }
7662 else
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667
7668 fi
7669 if test -z "$ac_cv_prog_NMEDIT"; then
7670 ac_ct_NMEDIT=$NMEDIT
7671 # Extract the first word of "nmedit", so it can be a program name with args.
7672 set dummy nmedit; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 if test -n "$ac_ct_NMEDIT"; then
7679 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7699 if test -n "$ac_ct_NMEDIT"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7701 $as_echo "$ac_ct_NMEDIT" >&6; }
7702 else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7705 fi
7706
7707 if test "x$ac_ct_NMEDIT" = x; then
7708 NMEDIT=":"
7709 else
7710 case $cross_compiling:$ac_tool_warned in
7711 yes:)
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714 ac_tool_warned=yes ;;
7715 esac
7716 NMEDIT=$ac_ct_NMEDIT
7717 fi
7718 else
7719 NMEDIT="$ac_cv_prog_NMEDIT"
7720 fi
7721
7722 if test -n "$ac_tool_prefix"; then
7723 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7724 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_LIPO+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 if test -n "$LIPO"; then
7731 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744 done
7745 done
7746 IFS=$as_save_IFS
7747
7748 fi
7749 fi
7750 LIPO=$ac_cv_prog_LIPO
7751 if test -n "$LIPO"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7753 $as_echo "$LIPO" >&6; }
7754 else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759
7760 fi
7761 if test -z "$ac_cv_prog_LIPO"; then
7762 ac_ct_LIPO=$LIPO
7763 # Extract the first word of "lipo", so it can be a program name with args.
7764 set dummy lipo; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 if test -n "$ac_ct_LIPO"; then
7771 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_ac_ct_LIPO="lipo"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7791 if test -n "$ac_ct_LIPO"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7793 $as_echo "$ac_ct_LIPO" >&6; }
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799 if test "x$ac_ct_LIPO" = x; then
7800 LIPO=":"
7801 else
7802 case $cross_compiling:$ac_tool_warned in
7803 yes:)
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7806 ac_tool_warned=yes ;;
7807 esac
7808 LIPO=$ac_ct_LIPO
7809 fi
7810 else
7811 LIPO="$ac_cv_prog_LIPO"
7812 fi
7813
7814 if test -n "$ac_tool_prefix"; then
7815 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7816 set dummy ${ac_tool_prefix}otool; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if ${ac_cv_prog_OTOOL+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 if test -n "$OTOOL"; then
7823 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840 fi
7841 fi
7842 OTOOL=$ac_cv_prog_OTOOL
7843 if test -n "$OTOOL"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7845 $as_echo "$OTOOL" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7849 fi
7850
7851
7852 fi
7853 if test -z "$ac_cv_prog_OTOOL"; then
7854 ac_ct_OTOOL=$OTOOL
7855 # Extract the first word of "otool", so it can be a program name with args.
7856 set dummy otool; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 if test -n "$ac_ct_OTOOL"; then
7863 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872 ac_cv_prog_ac_ct_OTOOL="otool"
7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880 fi
7881 fi
7882 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7883 if test -n "$ac_ct_OTOOL"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7885 $as_echo "$ac_ct_OTOOL" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890
7891 if test "x$ac_ct_OTOOL" = x; then
7892 OTOOL=":"
7893 else
7894 case $cross_compiling:$ac_tool_warned in
7895 yes:)
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7898 ac_tool_warned=yes ;;
7899 esac
7900 OTOOL=$ac_ct_OTOOL
7901 fi
7902 else
7903 OTOOL="$ac_cv_prog_OTOOL"
7904 fi
7905
7906 if test -n "$ac_tool_prefix"; then
7907 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7908 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if ${ac_cv_prog_OTOOL64+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 if test -n "$OTOOL64"; then
7915 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928 done
7929 done
7930 IFS=$as_save_IFS
7931
7932 fi
7933 fi
7934 OTOOL64=$ac_cv_prog_OTOOL64
7935 if test -n "$OTOOL64"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7937 $as_echo "$OTOOL64" >&6; }
7938 else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7941 fi
7942
7943
7944 fi
7945 if test -z "$ac_cv_prog_OTOOL64"; then
7946 ac_ct_OTOOL64=$OTOOL64
7947 # Extract the first word of "otool64", so it can be a program name with args.
7948 set dummy otool64; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 if test -n "$ac_ct_OTOOL64"; then
7955 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_ac_ct_OTOOL64="otool64"
7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7975 if test -n "$ac_ct_OTOOL64"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7977 $as_echo "$ac_ct_OTOOL64" >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983 if test "x$ac_ct_OTOOL64" = x; then
7984 OTOOL64=":"
7985 else
7986 case $cross_compiling:$ac_tool_warned in
7987 yes:)
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7990 ac_tool_warned=yes ;;
7991 esac
7992 OTOOL64=$ac_ct_OTOOL64
7993 fi
7994 else
7995 OTOOL64="$ac_cv_prog_OTOOL64"
7996 fi
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8025 $as_echo_n "checking for -single_module linker flag... " >&6; }
8026 if ${lt_cv_apple_cc_single_mod+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 lt_cv_apple_cc_single_mod=no
8030 if test -z "$LT_MULTI_MODULE"; then
8031 # By default we will add the -single_module flag. You can override
8032 # by either setting the environment variable LT_MULTI_MODULE
8033 # non-empty at configure time, or by adding -multi_module to the
8034 # link flags.
8035 rm -rf libconftest.dylib*
8036 echo "int foo(void){return 1;}" > conftest.c
8037 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8038 -dynamiclib -Wl,-single_module conftest.c" >&5
8039 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8040 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8041 _lt_result=$?
8042 # If there is a non-empty error log, and "single_module"
8043 # appears in it, assume the flag caused a linker warning
8044 if test -s conftest.err && $GREP single_module conftest.err; then
8045 cat conftest.err >&5
8046 # Otherwise, if the output was created with a 0 exit code from
8047 # the compiler, it worked.
8048 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8049 lt_cv_apple_cc_single_mod=yes
8050 else
8051 cat conftest.err >&5
8052 fi
8053 rm -rf libconftest.dylib*
8054 rm -f conftest.*
8055 fi
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8058 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8061 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8062 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 lt_cv_ld_exported_symbols_list=no
8066 save_LDFLAGS=$LDFLAGS
8067 echo "_main" > conftest.sym
8068 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071
8072 int
8073 main ()
8074 {
8075
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 if ac_fn_c_try_link "$LINENO"; then :
8081 lt_cv_ld_exported_symbols_list=yes
8082 else
8083 lt_cv_ld_exported_symbols_list=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LDFLAGS=$save_LDFLAGS
8088
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8091 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8092
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8094 $as_echo_n "checking for -force_load linker flag... " >&6; }
8095 if ${lt_cv_ld_force_load+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 lt_cv_ld_force_load=no
8099 cat > conftest.c << _LT_EOF
8100 int forced_loaded() { return 2;}
8101 _LT_EOF
8102 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8103 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8104 echo "$AR cru libconftest.a conftest.o" >&5
8105 $AR cru libconftest.a conftest.o 2>&5
8106 echo "$RANLIB libconftest.a" >&5
8107 $RANLIB libconftest.a 2>&5
8108 cat > conftest.c << _LT_EOF
8109 int main() { return 0;}
8110 _LT_EOF
8111 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8112 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8113 _lt_result=$?
8114 if test -s conftest.err && $GREP force_load conftest.err; then
8115 cat conftest.err >&5
8116 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8117 lt_cv_ld_force_load=yes
8118 else
8119 cat conftest.err >&5
8120 fi
8121 rm -f conftest.err libconftest.a conftest conftest.c
8122 rm -rf conftest.dSYM
8123
8124 fi
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8126 $as_echo "$lt_cv_ld_force_load" >&6; }
8127 case $host_os in
8128 rhapsody* | darwin1.[012])
8129 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8130 darwin1.*)
8131 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8132 darwin*) # darwin 5.x on
8133 # if running on 10.5 or later, the deployment target defaults
8134 # to the OS version, if on x86, and 10.4, the deployment
8135 # target defaults to 10.4. Don't you love it?
8136 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8137 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8138 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8139 10.[012][,.]*)
8140 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8141 10.*)
8142 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8143 esac
8144 ;;
8145 esac
8146 if test yes = "$lt_cv_apple_cc_single_mod"; then
8147 _lt_dar_single_mod='$single_module'
8148 fi
8149 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8150 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8151 else
8152 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8153 fi
8154 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8155 _lt_dsymutil='~$DSYMUTIL $lib || :'
8156 else
8157 _lt_dsymutil=
8158 fi
8159 ;;
8160 esac
8161
8162 # func_munge_path_list VARIABLE PATH
8163 # -----------------------------------
8164 # VARIABLE is name of variable containing _space_ separated list of
8165 # directories to be munged by the contents of PATH, which is string
8166 # having a format:
8167 # "DIR[:DIR]:"
8168 # string "DIR[ DIR]" will be prepended to VARIABLE
8169 # ":DIR[:DIR]"
8170 # string "DIR[ DIR]" will be appended to VARIABLE
8171 # "DIRP[:DIRP]::[DIRA:]DIRA"
8172 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8173 # "DIRA[ DIRA]" will be appended to VARIABLE
8174 # "DIR[:DIR]"
8175 # VARIABLE will be replaced by "DIR[ DIR]"
8176 func_munge_path_list ()
8177 {
8178 case x$2 in
8179 x)
8180 ;;
8181 *:)
8182 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8183 ;;
8184 x:*)
8185 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8186 ;;
8187 *::*)
8188 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8189 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8190 ;;
8191 *)
8192 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8193 ;;
8194 esac
8195 }
8196
8197 for ac_header in dlfcn.h
8198 do :
8199 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8200 "
8201 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_DLFCN_H 1
8204 _ACEOF
8205
8206 fi
8207
8208 done
8209
8210
8211
8212
8213
8214 # Set options
8215
8216
8217
8218 enable_dlopen=no
8219
8220
8221
8222 # Check whether --enable-shared was given.
8223 if test "${enable_shared+set}" = set; then :
8224 enableval=$enable_shared; p=${PACKAGE-default}
8225 case $enableval in
8226 yes) enable_shared=yes ;;
8227 no) enable_shared=no ;;
8228 *)
8229 enable_shared=no
8230 # Look at the argument we got. We use all the common list separators.
8231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8232 for pkg in $enableval; do
8233 IFS=$lt_save_ifs
8234 if test "X$pkg" = "X$p"; then
8235 enable_shared=yes
8236 fi
8237 done
8238 IFS=$lt_save_ifs
8239 ;;
8240 esac
8241 else
8242 enable_shared=yes
8243 fi
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 # Check whether --enable-static was given.
8254 if test "${enable_static+set}" = set; then :
8255 enableval=$enable_static; p=${PACKAGE-default}
8256 case $enableval in
8257 yes) enable_static=yes ;;
8258 no) enable_static=no ;;
8259 *)
8260 enable_static=no
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8263 for pkg in $enableval; do
8264 IFS=$lt_save_ifs
8265 if test "X$pkg" = "X$p"; then
8266 enable_static=yes
8267 fi
8268 done
8269 IFS=$lt_save_ifs
8270 ;;
8271 esac
8272 else
8273 enable_static=yes
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285 # Check whether --with-pic was given.
8286 if test "${with_pic+set}" = set; then :
8287 withval=$with_pic; lt_p=${PACKAGE-default}
8288 case $withval in
8289 yes|no) pic_mode=$withval ;;
8290 *)
8291 pic_mode=default
8292 # Look at the argument we got. We use all the common list separators.
8293 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8294 for lt_pkg in $withval; do
8295 IFS=$lt_save_ifs
8296 if test "X$lt_pkg" = "X$lt_p"; then
8297 pic_mode=yes
8298 fi
8299 done
8300 IFS=$lt_save_ifs
8301 ;;
8302 esac
8303 else
8304 pic_mode=default
8305 fi
8306
8307
8308
8309
8310
8311
8312
8313
8314 # Check whether --enable-fast-install was given.
8315 if test "${enable_fast_install+set}" = set; then :
8316 enableval=$enable_fast_install; p=${PACKAGE-default}
8317 case $enableval in
8318 yes) enable_fast_install=yes ;;
8319 no) enable_fast_install=no ;;
8320 *)
8321 enable_fast_install=no
8322 # Look at the argument we got. We use all the common list separators.
8323 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8324 for pkg in $enableval; do
8325 IFS=$lt_save_ifs
8326 if test "X$pkg" = "X$p"; then
8327 enable_fast_install=yes
8328 fi
8329 done
8330 IFS=$lt_save_ifs
8331 ;;
8332 esac
8333 else
8334 enable_fast_install=yes
8335 fi
8336
8337
8338
8339
8340
8341
8342
8343
8344 shared_archive_member_spec=
8345 case $host,$enable_shared in
8346 power*-*-aix[5-9]*,yes)
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8348 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8349
8350 # Check whether --with-aix-soname was given.
8351 if test "${with_aix_soname+set}" = set; then :
8352 withval=$with_aix_soname; case $withval in
8353 aix|svr4|both)
8354 ;;
8355 *)
8356 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8357 ;;
8358 esac
8359 lt_cv_with_aix_soname=$with_aix_soname
8360 else
8361 if ${lt_cv_with_aix_soname+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 lt_cv_with_aix_soname=aix
8365 fi
8366
8367 with_aix_soname=$lt_cv_with_aix_soname
8368 fi
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8371 $as_echo "$with_aix_soname" >&6; }
8372 if test aix != "$with_aix_soname"; then
8373 # For the AIX way of multilib, we name the shared archive member
8374 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8375 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8376 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8377 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8378 if test 64 = "${OBJECT_MODE-32}"; then
8379 shared_archive_member_spec=shr_64
8380 else
8381 shared_archive_member_spec=shr
8382 fi
8383 fi
8384 ;;
8385 *)
8386 with_aix_soname=aix
8387 ;;
8388 esac
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399 # This can be used to rebuild libtool when needed
8400 LIBTOOL_DEPS=$ltmain
8401
8402 # Always use our own libtool.
8403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434 test -z "$LN_S" && LN_S="ln -s"
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449 if test -n "${ZSH_VERSION+set}"; then
8450 setopt NO_GLOB_SUBST
8451 fi
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8454 $as_echo_n "checking for objdir... " >&6; }
8455 if ${lt_cv_objdir+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 rm -f .libs 2>/dev/null
8459 mkdir .libs 2>/dev/null
8460 if test -d .libs; then
8461 lt_cv_objdir=.libs
8462 else
8463 # MS-DOS does not allow filenames that begin with a dot.
8464 lt_cv_objdir=_libs
8465 fi
8466 rmdir .libs 2>/dev/null
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8469 $as_echo "$lt_cv_objdir" >&6; }
8470 objdir=$lt_cv_objdir
8471
8472
8473
8474
8475
8476 cat >>confdefs.h <<_ACEOF
8477 #define LT_OBJDIR "$lt_cv_objdir/"
8478 _ACEOF
8479
8480
8481
8482
8483 case $host_os in
8484 aix3*)
8485 # AIX sometimes has problems with the GCC collect2 program. For some
8486 # reason, if we set the COLLECT_NAMES environment variable, the problems
8487 # vanish in a puff of smoke.
8488 if test set != "${COLLECT_NAMES+set}"; then
8489 COLLECT_NAMES=
8490 export COLLECT_NAMES
8491 fi
8492 ;;
8493 esac
8494
8495 # Global variables:
8496 ofile=libtool
8497 can_build_shared=yes
8498
8499 # All known linkers require a '.a' archive for static linking (except MSVC,
8500 # which needs '.lib').
8501 libext=a
8502
8503 with_gnu_ld=$lt_cv_prog_gnu_ld
8504
8505 old_CC=$CC
8506 old_CFLAGS=$CFLAGS
8507
8508 # Set sane defaults for various variables
8509 test -z "$CC" && CC=cc
8510 test -z "$LTCC" && LTCC=$CC
8511 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8512 test -z "$LD" && LD=ld
8513 test -z "$ac_objext" && ac_objext=o
8514
8515 func_cc_basename $compiler
8516 cc_basename=$func_cc_basename_result
8517
8518
8519 # Only perform the check for file, if the check method requires it
8520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8521 case $deplibs_check_method in
8522 file_magic*)
8523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8525 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 case $MAGIC_CMD in
8530 [\\/*] | ?:[\\/]*)
8531 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8532 ;;
8533 *)
8534 lt_save_MAGIC_CMD=$MAGIC_CMD
8535 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537 for ac_dir in $ac_dummy; do
8538 IFS=$lt_save_ifs
8539 test -z "$ac_dir" && ac_dir=.
8540 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8541 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8542 if test -n "$file_magic_test_file"; then
8543 case $deplibs_check_method in
8544 "file_magic "*)
8545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548 $EGREP "$file_magic_regex" > /dev/null; then
8549 :
8550 else
8551 cat <<_LT_EOF 1>&2
8552
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such. This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem. Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool (at] gnu.org
8561
8562 _LT_EOF
8563 fi ;;
8564 esac
8565 fi
8566 break
8567 fi
8568 done
8569 IFS=$lt_save_ifs
8570 MAGIC_CMD=$lt_save_MAGIC_CMD
8571 ;;
8572 esac
8573 fi
8574
8575 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8576 if test -n "$MAGIC_CMD"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578 $as_echo "$MAGIC_CMD" >&6; }
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584
8585
8586
8587
8588 if test -z "$lt_cv_path_MAGIC_CMD"; then
8589 if test -n "$ac_tool_prefix"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8591 $as_echo_n "checking for file... " >&6; }
8592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 case $MAGIC_CMD in
8596 [\\/*] | ?:[\\/]*)
8597 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8598 ;;
8599 *)
8600 lt_save_MAGIC_CMD=$MAGIC_CMD
8601 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603 for ac_dir in $ac_dummy; do
8604 IFS=$lt_save_ifs
8605 test -z "$ac_dir" && ac_dir=.
8606 if test -f "$ac_dir/file"; then
8607 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8608 if test -n "$file_magic_test_file"; then
8609 case $deplibs_check_method in
8610 "file_magic "*)
8611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614 $EGREP "$file_magic_regex" > /dev/null; then
8615 :
8616 else
8617 cat <<_LT_EOF 1>&2
8618
8619 *** Warning: the command libtool uses to detect shared libraries,
8620 *** $file_magic_cmd, produces output that libtool cannot recognize.
8621 *** The result is that libtool may fail to recognize shared libraries
8622 *** as such. This will affect the creation of libtool libraries that
8623 *** depend on shared libraries, but programs linked with such libtool
8624 *** libraries will work regardless of this problem. Nevertheless, you
8625 *** may want to report the problem to your system manager and/or to
8626 *** bug-libtool (at] gnu.org
8627
8628 _LT_EOF
8629 fi ;;
8630 esac
8631 fi
8632 break
8633 fi
8634 done
8635 IFS=$lt_save_ifs
8636 MAGIC_CMD=$lt_save_MAGIC_CMD
8637 ;;
8638 esac
8639 fi
8640
8641 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8642 if test -n "$MAGIC_CMD"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644 $as_echo "$MAGIC_CMD" >&6; }
8645 else
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650
8651 else
8652 MAGIC_CMD=:
8653 fi
8654 fi
8655
8656 fi
8657 ;;
8658 esac
8659
8660 # Use C for the default configuration in the libtool script
8661
8662 lt_save_CC=$CC
8663 ac_ext=c
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668
8669
8670 # Source file extension for C test sources.
8671 ac_ext=c
8672
8673 # Object file extension for compiled C test sources.
8674 objext=o
8675 objext=$objext
8676
8677 # Code to be used in simple compile tests
8678 lt_simple_compile_test_code="int some_variable = 0;"
8679
8680 # Code to be used in simple link tests
8681 lt_simple_link_test_code='int main(){return(0);}'
8682
8683
8684
8685
8686
8687
8688
8689 # If no C compiler was specified, use CC.
8690 LTCC=${LTCC-"$CC"}
8691
8692 # If no C compiler flags were specified, use CFLAGS.
8693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8694
8695 # Allow CC to be a program name with arguments.
8696 compiler=$CC
8697
8698 # Save the default compiler, since it gets overwritten when the other
8699 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8700 compiler_DEFAULT=$CC
8701
8702 # save warnings/boilerplate of simple test code
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_compiler_boilerplate=`cat conftest.err`
8707 $RM conftest*
8708
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712 _lt_linker_boilerplate=`cat conftest.err`
8713 $RM -r conftest*
8714
8715
8716 if test -n "$compiler"; then
8717
8718 lt_prog_compiler_no_builtin_flag=
8719
8720 if test yes = "$GCC"; then
8721 case $cc_basename in
8722 nvcc*)
8723 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8724 *)
8725 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8726 esac
8727
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8729 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8730 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 lt_cv_prog_compiler_rtti_exceptions=no
8734 ac_outfile=conftest.$ac_objext
8735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8737 # Insert the option either (1) after the last *FLAGS variable, or
8738 # (2) before a word containing "conftest.", or (3) at the end.
8739 # Note that $ac_compile itself does not contain backslashes and begins
8740 # with a dollar sign (not a hyphen), so the echo should work correctly.
8741 # The option is referenced via a variable to avoid confusing sed.
8742 lt_compile=`echo "$ac_compile" | $SED \
8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745 -e 's:$: $lt_compiler_flag:'`
8746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8747 (eval "$lt_compile" 2>conftest.err)
8748 ac_status=$?
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 if (exit $ac_status) && test -s "$ac_outfile"; then
8752 # The compiler can only warn and ignore the option if not recognized
8753 # So say no if there are warnings other than the usual output.
8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_rtti_exceptions=yes
8758 fi
8759 fi
8760 $RM conftest*
8761
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8764 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8765
8766 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8768 else
8769 :
8770 fi
8771
8772 fi
8773
8774
8775
8776
8777
8778
8779 lt_prog_compiler_wl=
8780 lt_prog_compiler_pic=
8781 lt_prog_compiler_static=
8782
8783
8784 if test yes = "$GCC"; then
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_static='-static'
8787
8788 case $host_os in
8789 aix*)
8790 # All AIX code is PIC.
8791 if test ia64 = "$host_cpu"; then
8792 # AIX 5 now supports IA64 processor
8793 lt_prog_compiler_static='-Bstatic'
8794 fi
8795 lt_prog_compiler_pic='-fPIC'
8796 ;;
8797
8798 amigaos*)
8799 case $host_cpu in
8800 powerpc)
8801 # see comment about AmigaOS4 .so support
8802 lt_prog_compiler_pic='-fPIC'
8803 ;;
8804 m68k)
8805 # FIXME: we need at least 68020 code to build shared libraries, but
8806 # adding the '-m68020' flag to GCC prevents building anything better,
8807 # like '-m68040'.
8808 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8809 ;;
8810 esac
8811 ;;
8812
8813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8814 # PIC is the default for these OSes.
8815 ;;
8816
8817 mingw* | cygwin* | pw32* | os2* | cegcc*)
8818 # This hack is so that the source file can tell whether it is being
8819 # built for inclusion in a dll (and should export symbols for example).
8820 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8821 # (--disable-auto-import) libraries
8822 lt_prog_compiler_pic='-DDLL_EXPORT'
8823 case $host_os in
8824 os2*)
8825 lt_prog_compiler_static='$wl-static'
8826 ;;
8827 esac
8828 ;;
8829
8830 darwin* | rhapsody*)
8831 # PIC is the default on this platform
8832 # Common symbols not allowed in MH_DYLIB files
8833 lt_prog_compiler_pic='-fno-common'
8834 ;;
8835
8836 haiku*)
8837 # PIC is the default for Haiku.
8838 # The "-static" flag exists, but is broken.
8839 lt_prog_compiler_static=
8840 ;;
8841
8842 hpux*)
8843 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8844 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8845 # sets the default TLS model and affects inlining.
8846 case $host_cpu in
8847 hppa*64*)
8848 # +Z the default
8849 ;;
8850 *)
8851 lt_prog_compiler_pic='-fPIC'
8852 ;;
8853 esac
8854 ;;
8855
8856 interix[3-9]*)
8857 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8858 # Instead, we relocate shared libraries at runtime.
8859 ;;
8860
8861 msdosdjgpp*)
8862 # Just because we use GCC doesn't mean we suddenly get shared libraries
8863 # on systems that don't support them.
8864 lt_prog_compiler_can_build_shared=no
8865 enable_shared=no
8866 ;;
8867
8868 *nto* | *qnx*)
8869 # QNX uses GNU C++, but need to define -shared option too, otherwise
8870 # it will coredump.
8871 lt_prog_compiler_pic='-fPIC -shared'
8872 ;;
8873
8874 sysv4*MP*)
8875 if test -d /usr/nec; then
8876 lt_prog_compiler_pic=-Kconform_pic
8877 fi
8878 ;;
8879
8880 *)
8881 lt_prog_compiler_pic='-fPIC'
8882 ;;
8883 esac
8884
8885 case $cc_basename in
8886 nvcc*) # Cuda Compiler Driver 2.2
8887 lt_prog_compiler_wl='-Xlinker '
8888 if test -n "$lt_prog_compiler_pic"; then
8889 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8890 fi
8891 ;;
8892 esac
8893 else
8894 # PORTME Check for flag to pass linker flags through the system compiler.
8895 case $host_os in
8896 aix*)
8897 lt_prog_compiler_wl='-Wl,'
8898 if test ia64 = "$host_cpu"; then
8899 # AIX 5 now supports IA64 processor
8900 lt_prog_compiler_static='-Bstatic'
8901 else
8902 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8903 fi
8904 ;;
8905
8906 darwin* | rhapsody*)
8907 # PIC is the default on this platform
8908 # Common symbols not allowed in MH_DYLIB files
8909 lt_prog_compiler_pic='-fno-common'
8910 case $cc_basename in
8911 nagfor*)
8912 # NAG Fortran compiler
8913 lt_prog_compiler_wl='-Wl,-Wl,,'
8914 lt_prog_compiler_pic='-PIC'
8915 lt_prog_compiler_static='-Bstatic'
8916 ;;
8917 esac
8918 ;;
8919
8920 mingw* | cygwin* | pw32* | os2* | cegcc*)
8921 # This hack is so that the source file can tell whether it is being
8922 # built for inclusion in a dll (and should export symbols for example).
8923 lt_prog_compiler_pic='-DDLL_EXPORT'
8924 case $host_os in
8925 os2*)
8926 lt_prog_compiler_static='$wl-static'
8927 ;;
8928 esac
8929 ;;
8930
8931 hpux9* | hpux10* | hpux11*)
8932 lt_prog_compiler_wl='-Wl,'
8933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8934 # not for PA HP-UX.
8935 case $host_cpu in
8936 hppa*64*|ia64*)
8937 # +Z the default
8938 ;;
8939 *)
8940 lt_prog_compiler_pic='+Z'
8941 ;;
8942 esac
8943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8944 lt_prog_compiler_static='$wl-a ${wl}archive'
8945 ;;
8946
8947 irix5* | irix6* | nonstopux*)
8948 lt_prog_compiler_wl='-Wl,'
8949 # PIC (with -KPIC) is the default.
8950 lt_prog_compiler_static='-non_shared'
8951 ;;
8952
8953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8954 case $cc_basename in
8955 # old Intel for x86_64, which still supported -KPIC.
8956 ecc*)
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-static'
8960 ;;
8961 # icc used to be incompatible with GCC.
8962 # ICC 10 doesn't accept -KPIC any more.
8963 icc* | ifort*)
8964 lt_prog_compiler_wl='-Wl,'
8965 lt_prog_compiler_pic='-fPIC'
8966 lt_prog_compiler_static='-static'
8967 ;;
8968 # Lahey Fortran 8.1.
8969 lf95*)
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_pic='--shared'
8972 lt_prog_compiler_static='--static'
8973 ;;
8974 nagfor*)
8975 # NAG Fortran compiler
8976 lt_prog_compiler_wl='-Wl,-Wl,,'
8977 lt_prog_compiler_pic='-PIC'
8978 lt_prog_compiler_static='-Bstatic'
8979 ;;
8980 tcc*)
8981 # Fabrice Bellard et al's Tiny C Compiler
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_pic='-fPIC'
8984 lt_prog_compiler_static='-static'
8985 ;;
8986 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8987 # Portland Group compilers (*not* the Pentium gcc compiler,
8988 # which looks to be a dead project)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-fpic'
8991 lt_prog_compiler_static='-Bstatic'
8992 ;;
8993 ccc*)
8994 lt_prog_compiler_wl='-Wl,'
8995 # All Alpha code is PIC.
8996 lt_prog_compiler_static='-non_shared'
8997 ;;
8998 xl* | bgxl* | bgf* | mpixl*)
8999 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9000 lt_prog_compiler_wl='-Wl,'
9001 lt_prog_compiler_pic='-qpic'
9002 lt_prog_compiler_static='-qstaticlink'
9003 ;;
9004 *)
9005 case `$CC -V 2>&1 | sed 5q` in
9006 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9007 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl=''
9011 ;;
9012 *Sun\ F* | *Sun*Fortran*)
9013 lt_prog_compiler_pic='-KPIC'
9014 lt_prog_compiler_static='-Bstatic'
9015 lt_prog_compiler_wl='-Qoption ld '
9016 ;;
9017 *Sun\ C*)
9018 # Sun C 5.9
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 lt_prog_compiler_wl='-Wl,'
9022 ;;
9023 *Intel*\ [CF]*Compiler*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_pic='-fPIC'
9026 lt_prog_compiler_static='-static'
9027 ;;
9028 *Portland\ Group*)
9029 lt_prog_compiler_wl='-Wl,'
9030 lt_prog_compiler_pic='-fpic'
9031 lt_prog_compiler_static='-Bstatic'
9032 ;;
9033 esac
9034 ;;
9035 esac
9036 ;;
9037
9038 newsos6)
9039 lt_prog_compiler_pic='-KPIC'
9040 lt_prog_compiler_static='-Bstatic'
9041 ;;
9042
9043 *nto* | *qnx*)
9044 # QNX uses GNU C++, but need to define -shared option too, otherwise
9045 # it will coredump.
9046 lt_prog_compiler_pic='-fPIC -shared'
9047 ;;
9048
9049 osf3* | osf4* | osf5*)
9050 lt_prog_compiler_wl='-Wl,'
9051 # All OSF/1 code is PIC.
9052 lt_prog_compiler_static='-non_shared'
9053 ;;
9054
9055 rdos*)
9056 lt_prog_compiler_static='-non_shared'
9057 ;;
9058
9059 solaris*)
9060 lt_prog_compiler_pic='-KPIC'
9061 lt_prog_compiler_static='-Bstatic'
9062 case $cc_basename in
9063 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9064 lt_prog_compiler_wl='-Qoption ld ';;
9065 *)
9066 lt_prog_compiler_wl='-Wl,';;
9067 esac
9068 ;;
9069
9070 sunos4*)
9071 lt_prog_compiler_wl='-Qoption ld '
9072 lt_prog_compiler_pic='-PIC'
9073 lt_prog_compiler_static='-Bstatic'
9074 ;;
9075
9076 sysv4 | sysv4.2uw2* | sysv4.3*)
9077 lt_prog_compiler_wl='-Wl,'
9078 lt_prog_compiler_pic='-KPIC'
9079 lt_prog_compiler_static='-Bstatic'
9080 ;;
9081
9082 sysv4*MP*)
9083 if test -d /usr/nec; then
9084 lt_prog_compiler_pic='-Kconform_pic'
9085 lt_prog_compiler_static='-Bstatic'
9086 fi
9087 ;;
9088
9089 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9090 lt_prog_compiler_wl='-Wl,'
9091 lt_prog_compiler_pic='-KPIC'
9092 lt_prog_compiler_static='-Bstatic'
9093 ;;
9094
9095 unicos*)
9096 lt_prog_compiler_wl='-Wl,'
9097 lt_prog_compiler_can_build_shared=no
9098 ;;
9099
9100 uts4*)
9101 lt_prog_compiler_pic='-pic'
9102 lt_prog_compiler_static='-Bstatic'
9103 ;;
9104
9105 *)
9106 lt_prog_compiler_can_build_shared=no
9107 ;;
9108 esac
9109 fi
9110
9111 case $host_os in
9112 # For platforms that do not support PIC, -DPIC is meaningless:
9113 *djgpp*)
9114 lt_prog_compiler_pic=
9115 ;;
9116 *)
9117 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9118 ;;
9119 esac
9120
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9122 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9123 if ${lt_cv_prog_compiler_pic+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9129 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9130 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9131
9132 #
9133 # Check to make sure the PIC flag actually works.
9134 #
9135 if test -n "$lt_prog_compiler_pic"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9137 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9138 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 lt_cv_prog_compiler_pic_works=no
9142 ac_outfile=conftest.$ac_objext
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 # The option is referenced via a variable to avoid confusing sed.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>conftest.err)
9156 ac_status=$?
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s "$ac_outfile"; then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings other than the usual output.
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_pic_works=yes
9166 fi
9167 fi
9168 $RM conftest*
9169
9170 fi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9172 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9173
9174 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9175 case $lt_prog_compiler_pic in
9176 "" | " "*) ;;
9177 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9178 esac
9179 else
9180 lt_prog_compiler_pic=
9181 lt_prog_compiler_can_build_shared=no
9182 fi
9183
9184 fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196 #
9197 # Check to make sure the static flag actually works.
9198 #
9199 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9201 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9202 if ${lt_cv_prog_compiler_static_works+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 lt_cv_prog_compiler_static_works=no
9206 save_LDFLAGS=$LDFLAGS
9207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9210 # The linker can only warn and ignore the option if not recognized
9211 # So say no if there are warnings
9212 if test -s conftest.err; then
9213 # Append any errors to the config.log.
9214 cat conftest.err 1>&5
9215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9217 if diff conftest.exp conftest.er2 >/dev/null; then
9218 lt_cv_prog_compiler_static_works=yes
9219 fi
9220 else
9221 lt_cv_prog_compiler_static_works=yes
9222 fi
9223 fi
9224 $RM -r conftest*
9225 LDFLAGS=$save_LDFLAGS
9226
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9229 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9230
9231 if test yes = "$lt_cv_prog_compiler_static_works"; then
9232 :
9233 else
9234 lt_prog_compiler_static=
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9245 if ${lt_cv_prog_compiler_c_o+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 lt_cv_prog_compiler_c_o=no
9249 $RM -r conftest 2>/dev/null
9250 mkdir conftest
9251 cd conftest
9252 mkdir out
9253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9254
9255 lt_compiler_flag="-o out/conftest2.$ac_objext"
9256 # Insert the option either (1) after the last *FLAGS variable, or
9257 # (2) before a word containing "conftest.", or (3) at the end.
9258 # Note that $ac_compile itself does not contain backslashes and begins
9259 # with a dollar sign (not a hyphen), so the echo should work correctly.
9260 lt_compile=`echo "$ac_compile" | $SED \
9261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9263 -e 's:$: $lt_compiler_flag:'`
9264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9265 (eval "$lt_compile" 2>out/conftest.err)
9266 ac_status=$?
9267 cat out/conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9270 then
9271 # The compiler can only warn and ignore the option if not recognized
9272 # So say no if there are warnings
9273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9276 lt_cv_prog_compiler_c_o=yes
9277 fi
9278 fi
9279 chmod u+w . 2>&5
9280 $RM conftest*
9281 # SGI C++ compiler will create directory out/ii_files/ for
9282 # template instantiation
9283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9284 $RM out/* && rmdir out
9285 cd ..
9286 $RM -r conftest
9287 $RM conftest*
9288
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9292
9293
9294
9295
9296
9297
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9300 if ${lt_cv_prog_compiler_c_o+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 lt_cv_prog_compiler_c_o=no
9304 $RM -r conftest 2>/dev/null
9305 mkdir conftest
9306 cd conftest
9307 mkdir out
9308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9309
9310 lt_compiler_flag="-o out/conftest2.$ac_objext"
9311 # Insert the option either (1) after the last *FLAGS variable, or
9312 # (2) before a word containing "conftest.", or (3) at the end.
9313 # Note that $ac_compile itself does not contain backslashes and begins
9314 # with a dollar sign (not a hyphen), so the echo should work correctly.
9315 lt_compile=`echo "$ac_compile" | $SED \
9316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9318 -e 's:$: $lt_compiler_flag:'`
9319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9320 (eval "$lt_compile" 2>out/conftest.err)
9321 ac_status=$?
9322 cat out/conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9325 then
9326 # The compiler can only warn and ignore the option if not recognized
9327 # So say no if there are warnings
9328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9331 lt_cv_prog_compiler_c_o=yes
9332 fi
9333 fi
9334 chmod u+w . 2>&5
9335 $RM conftest*
9336 # SGI C++ compiler will create directory out/ii_files/ for
9337 # template instantiation
9338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9339 $RM out/* && rmdir out
9340 cd ..
9341 $RM -r conftest
9342 $RM conftest*
9343
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9346 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9347
9348
9349
9350
9351 hard_links=nottested
9352 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9353 # do not overwrite the value of need_locks provided by the user
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9355 $as_echo_n "checking if we can lock with hard links... " >&6; }
9356 hard_links=yes
9357 $RM conftest*
9358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9359 touch conftest.a
9360 ln conftest.a conftest.b 2>&5 || hard_links=no
9361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9363 $as_echo "$hard_links" >&6; }
9364 if test no = "$hard_links"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9366 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9367 need_locks=warn
9368 fi
9369 else
9370 need_locks=no
9371 fi
9372
9373
9374
9375
9376
9377
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9380
9381 runpath_var=
9382 allow_undefined_flag=
9383 always_export_symbols=no
9384 archive_cmds=
9385 archive_expsym_cmds=
9386 compiler_needs_object=no
9387 enable_shared_with_static_runtimes=no
9388 export_dynamic_flag_spec=
9389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9390 hardcode_automatic=no
9391 hardcode_direct=no
9392 hardcode_direct_absolute=no
9393 hardcode_libdir_flag_spec=
9394 hardcode_libdir_separator=
9395 hardcode_minus_L=no
9396 hardcode_shlibpath_var=unsupported
9397 inherit_rpath=no
9398 link_all_deplibs=unknown
9399 module_cmds=
9400 module_expsym_cmds=
9401 old_archive_from_new_cmds=
9402 old_archive_from_expsyms_cmds=
9403 thread_safe_flag_spec=
9404 whole_archive_flag_spec=
9405 # include_expsyms should be a list of space-separated symbols to be *always*
9406 # included in the symbol list
9407 include_expsyms=
9408 # exclude_expsyms can be an extended regexp of symbols to exclude
9409 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9410 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9411 # as well as any symbol that contains 'd'.
9412 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9414 # platforms (ab)use it in PIC code, but their linkers get confused if
9415 # the symbol is explicitly referenced. Since portable code cannot
9416 # rely on this symbol name, it's probably fine to never include it in
9417 # preloaded symbol tables.
9418 # Exclude shared library initialization/finalization symbols.
9419 extract_expsyms_cmds=
9420
9421 case $host_os in
9422 cygwin* | mingw* | pw32* | cegcc*)
9423 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9424 # When not using gcc, we currently assume that we are using
9425 # Microsoft Visual C++.
9426 if test yes != "$GCC"; then
9427 with_gnu_ld=no
9428 fi
9429 ;;
9430 interix*)
9431 # we just hope/assume this is gcc and not c89 (= MSVC++)
9432 with_gnu_ld=yes
9433 ;;
9434 openbsd* | bitrig*)
9435 with_gnu_ld=no
9436 ;;
9437 esac
9438
9439 ld_shlibs=yes
9440
9441 # On some targets, GNU ld is compatible enough with the native linker
9442 # that we're better off using the native interface for both.
9443 lt_use_gnu_ld_interface=no
9444 if test yes = "$with_gnu_ld"; then
9445 case $host_os in
9446 aix*)
9447 # The AIX port of GNU ld has always aspired to compatibility
9448 # with the native linker. However, as the warning in the GNU ld
9449 # block says, versions before 2.19.5* couldn't really create working
9450 # shared libraries, regardless of the interface used.
9451 case `$LD -v 2>&1` in
9452 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9453 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9454 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9455 *)
9456 lt_use_gnu_ld_interface=yes
9457 ;;
9458 esac
9459 ;;
9460 *)
9461 lt_use_gnu_ld_interface=yes
9462 ;;
9463 esac
9464 fi
9465
9466 if test yes = "$lt_use_gnu_ld_interface"; then
9467 # If archive_cmds runs LD, not CC, wlarc should be empty
9468 wlarc='$wl'
9469
9470 # Set some defaults for GNU ld with shared library support. These
9471 # are reset later if shared libraries are not supported. Putting them
9472 # here allows them to be overridden if necessary.
9473 runpath_var=LD_RUN_PATH
9474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9475 export_dynamic_flag_spec='$wl--export-dynamic'
9476 # ancient GNU ld didn't support --whole-archive et. al.
9477 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9478 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9479 else
9480 whole_archive_flag_spec=
9481 fi
9482 supports_anon_versioning=no
9483 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9484 *GNU\ gold*) supports_anon_versioning=yes ;;
9485 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9486 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9487 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9488 *\ 2.11.*) ;; # other 2.11 versions
9489 *) supports_anon_versioning=yes ;;
9490 esac
9491
9492 # See if GNU ld supports shared libraries.
9493 case $host_os in
9494 aix[3-9]*)
9495 # On AIX/PPC, the GNU linker is very broken
9496 if test ia64 != "$host_cpu"; then
9497 ld_shlibs=no
9498 cat <<_LT_EOF 1>&2
9499
9500 *** Warning: the GNU linker, at least up to release 2.19, is reported
9501 *** to be unable to reliably create shared libraries on AIX.
9502 *** Therefore, libtool is disabling shared libraries support. If you
9503 *** really care for shared libraries, you may want to install binutils
9504 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9505 *** You will then need to restart the configuration process.
9506
9507 _LT_EOF
9508 fi
9509 ;;
9510
9511 amigaos*)
9512 case $host_cpu in
9513 powerpc)
9514 # see comment about AmigaOS4 .so support
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9516 archive_expsym_cmds=''
9517 ;;
9518 m68k)
9519 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)'
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_minus_L=yes
9522 ;;
9523 esac
9524 ;;
9525
9526 beos*)
9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528 allow_undefined_flag=unsupported
9529 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9530 # support --undefined. This deserves some investigation. FIXME
9531 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9532 else
9533 ld_shlibs=no
9534 fi
9535 ;;
9536
9537 cygwin* | mingw* | pw32* | cegcc*)
9538 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9539 # as there is no search path for DLLs.
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 export_dynamic_flag_spec='$wl--export-all-symbols'
9542 allow_undefined_flag=unsupported
9543 always_export_symbols=no
9544 enable_shared_with_static_runtimes=yes
9545 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'
9546 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9547
9548 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9550 # If the export-symbols file already is a .def file, use it as
9551 # is; otherwise, prepend EXPORTS...
9552 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9553 cp $export_symbols $output_objdir/$soname.def;
9554 else
9555 echo EXPORTS > $output_objdir/$soname.def;
9556 cat $export_symbols >> $output_objdir/$soname.def;
9557 fi~
9558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9559 else
9560 ld_shlibs=no
9561 fi
9562 ;;
9563
9564 haiku*)
9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9566 link_all_deplibs=yes
9567 ;;
9568
9569 os2*)
9570 hardcode_libdir_flag_spec='-L$libdir'
9571 hardcode_minus_L=yes
9572 allow_undefined_flag=unsupported
9573 shrext_cmds=.dll
9574 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9575 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9576 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9577 $ECHO EXPORTS >> $output_objdir/$libname.def~
9578 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9579 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9580 emximp -o $lib $output_objdir/$libname.def'
9581 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9582 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9583 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9584 $ECHO EXPORTS >> $output_objdir/$libname.def~
9585 prefix_cmds="$SED"~
9586 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9587 prefix_cmds="$prefix_cmds -e 1d";
9588 fi~
9589 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9590 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9591 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9592 emximp -o $lib $output_objdir/$libname.def'
9593 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9594 enable_shared_with_static_runtimes=yes
9595 ;;
9596
9597 interix[3-9]*)
9598 hardcode_direct=no
9599 hardcode_shlibpath_var=no
9600 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9601 export_dynamic_flag_spec='$wl-E'
9602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9603 # Instead, shared libraries are loaded at an image base (0x10000000 by
9604 # default) and relocated if they conflict, which is a slow very memory
9605 # consuming and fragmenting process. To avoid this, we pick a random,
9606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9607 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9609 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'
9610 ;;
9611
9612 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9613 tmp_diet=no
9614 if test linux-dietlibc = "$host_os"; then
9615 case $cc_basename in
9616 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9617 esac
9618 fi
9619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9620 && test no = "$tmp_diet"
9621 then
9622 tmp_addflag=' $pic_flag'
9623 tmp_sharedflag='-shared'
9624 case $cc_basename,$host_cpu in
9625 pgcc*) # Portland Group C compiler
9626 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'
9627 tmp_addflag=' $pic_flag'
9628 ;;
9629 pgf77* | pgf90* | pgf95* | pgfortran*)
9630 # Portland Group f77 and f90 compilers
9631 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'
9632 tmp_addflag=' $pic_flag -Mnomain' ;;
9633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9634 tmp_addflag=' -i_dynamic' ;;
9635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9636 tmp_addflag=' -i_dynamic -nofor_main' ;;
9637 ifc* | ifort*) # Intel Fortran compiler
9638 tmp_addflag=' -nofor_main' ;;
9639 lf95*) # Lahey Fortran 8.1
9640 whole_archive_flag_spec=
9641 tmp_sharedflag='--shared' ;;
9642 nagfor*) # NAGFOR 5.3
9643 tmp_sharedflag='-Wl,-shared' ;;
9644 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9645 tmp_sharedflag='-qmkshrobj'
9646 tmp_addflag= ;;
9647 nvcc*) # Cuda Compiler Driver 2.2
9648 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'
9649 compiler_needs_object=yes
9650 ;;
9651 esac
9652 case `$CC -V 2>&1 | sed 5q` in
9653 *Sun\ C*) # Sun C 5.9
9654 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'
9655 compiler_needs_object=yes
9656 tmp_sharedflag='-G' ;;
9657 *Sun\ F*) # Sun Fortran 8.3
9658 tmp_sharedflag='-G' ;;
9659 esac
9660 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9661
9662 if test yes = "$supports_anon_versioning"; then
9663 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9665 echo "local: *; };" >> $output_objdir/$libname.ver~
9666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9667 fi
9668
9669 case $cc_basename in
9670 tcc*)
9671 export_dynamic_flag_spec='-rdynamic'
9672 ;;
9673 xlf* | bgf* | bgxlf* | mpixlf*)
9674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9677 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9678 if test yes = "$supports_anon_versioning"; then
9679 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9681 echo "local: *; };" >> $output_objdir/$libname.ver~
9682 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9683 fi
9684 ;;
9685 esac
9686 else
9687 ld_shlibs=no
9688 fi
9689 ;;
9690
9691 netbsd*)
9692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9693 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9694 wlarc=
9695 else
9696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9698 fi
9699 ;;
9700
9701 solaris*)
9702 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9703 ld_shlibs=no
9704 cat <<_LT_EOF 1>&2
9705
9706 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9707 *** create shared libraries on Solaris systems. Therefore, libtool
9708 *** is disabling shared libraries support. We urge you to upgrade GNU
9709 *** binutils to release 2.9.1 or newer. Another option is to modify
9710 *** your PATH or compiler configuration so that the native linker is
9711 *** used, and then restart.
9712
9713 _LT_EOF
9714 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9717 else
9718 ld_shlibs=no
9719 fi
9720 ;;
9721
9722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9723 case `$LD -v 2>&1` in
9724 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9725 ld_shlibs=no
9726 cat <<_LT_EOF 1>&2
9727
9728 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9729 *** reliably create shared libraries on SCO systems. Therefore, libtool
9730 *** is disabling shared libraries support. We urge you to upgrade GNU
9731 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9732 *** your PATH or compiler configuration so that the native linker is
9733 *** used, and then restart.
9734
9735 _LT_EOF
9736 ;;
9737 *)
9738 # For security reasons, it is highly recommended that you always
9739 # use absolute paths for naming shared libraries, and exclude the
9740 # DT_RUNPATH tag from executables and libraries. But doing so
9741 # requires that you compile everything twice, which is a pain.
9742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9746 else
9747 ld_shlibs=no
9748 fi
9749 ;;
9750 esac
9751 ;;
9752
9753 sunos4*)
9754 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9755 wlarc=
9756 hardcode_direct=yes
9757 hardcode_shlibpath_var=no
9758 ;;
9759
9760 *)
9761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9764 else
9765 ld_shlibs=no
9766 fi
9767 ;;
9768 esac
9769
9770 if test no = "$ld_shlibs"; then
9771 runpath_var=
9772 hardcode_libdir_flag_spec=
9773 export_dynamic_flag_spec=
9774 whole_archive_flag_spec=
9775 fi
9776 else
9777 # PORTME fill in a description of your system's linker (not GNU ld)
9778 case $host_os in
9779 aix3*)
9780 allow_undefined_flag=unsupported
9781 always_export_symbols=yes
9782 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'
9783 # Note: this linker hardcodes the directories in LIBPATH if there
9784 # are no directories specified by -L.
9785 hardcode_minus_L=yes
9786 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9787 # Neither direct hardcoding nor static linking is supported with a
9788 # broken collect2.
9789 hardcode_direct=unsupported
9790 fi
9791 ;;
9792
9793 aix[4-9]*)
9794 if test ia64 = "$host_cpu"; then
9795 # On IA64, the linker does run time linking by default, so we don't
9796 # have to do anything special.
9797 aix_use_runtimelinking=no
9798 exp_sym_flag='-Bexport'
9799 no_entry_flag=
9800 else
9801 # If we're using GNU nm, then we don't want the "-C" option.
9802 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9803 # Without the "-l" option, or with the "-B" option, AIX nm treats
9804 # weak defined symbols like other global defined symbols, whereas
9805 # GNU nm marks them as "W".
9806 # While the 'weak' keyword is ignored in the Export File, we need
9807 # it in the Import File for the 'aix-soname' feature, so we have
9808 # to replace the "-B" option with "-P" for AIX nm.
9809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9810 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'
9811 else
9812 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'
9813 fi
9814 aix_use_runtimelinking=no
9815
9816 # Test if we are trying to use run time linking or normal
9817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9818 # have runtime linking enabled, and use it for executables.
9819 # For shared libraries, we enable/disable runtime linking
9820 # depending on the kind of the shared library created -
9821 # when "with_aix_soname,aix_use_runtimelinking" is:
9822 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9823 # "aix,yes" lib.so shared, rtl:yes, for executables
9824 # lib.a static archive
9825 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9826 # lib.a(lib.so.V) shared, rtl:no, for executables
9827 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9828 # lib.a(lib.so.V) shared, rtl:no
9829 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9830 # lib.a static archive
9831 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9832 for ld_flag in $LDFLAGS; do
9833 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9834 aix_use_runtimelinking=yes
9835 break
9836 fi
9837 done
9838 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9839 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9840 # so we don't have lib.a shared libs to link our executables.
9841 # We have to force runtime linking in this case.
9842 aix_use_runtimelinking=yes
9843 LDFLAGS="$LDFLAGS -Wl,-brtl"
9844 fi
9845 ;;
9846 esac
9847
9848 exp_sym_flag='-bexport'
9849 no_entry_flag='-bnoentry'
9850 fi
9851
9852 # When large executables or shared objects are built, AIX ld can
9853 # have problems creating the table of contents. If linking a library
9854 # or program results in "error TOC overflow" add -mminimal-toc to
9855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9857
9858 archive_cmds=''
9859 hardcode_direct=yes
9860 hardcode_direct_absolute=yes
9861 hardcode_libdir_separator=':'
9862 link_all_deplibs=yes
9863 file_list_spec='$wl-f,'
9864 case $with_aix_soname,$aix_use_runtimelinking in
9865 aix,*) ;; # traditional, no import file
9866 svr4,* | *,yes) # use import file
9867 # The Import File defines what to hardcode.
9868 hardcode_direct=no
9869 hardcode_direct_absolute=no
9870 ;;
9871 esac
9872
9873 if test yes = "$GCC"; then
9874 case $host_os in aix4.[012]|aix4.[012].*)
9875 # We only want to do this on AIX 4.2 and lower, the check
9876 # below for broken collect2 doesn't work under 4.3+
9877 collect2name=`$CC -print-prog-name=collect2`
9878 if test -f "$collect2name" &&
9879 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9880 then
9881 # We have reworked collect2
9882 :
9883 else
9884 # We have old collect2
9885 hardcode_direct=unsupported
9886 # It fails to find uninstalled libraries when the uninstalled
9887 # path is not listed in the libpath. Setting hardcode_minus_L
9888 # to unsupported forces relinking
9889 hardcode_minus_L=yes
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_libdir_separator=
9892 fi
9893 ;;
9894 esac
9895 shared_flag='-shared'
9896 if test yes = "$aix_use_runtimelinking"; then
9897 shared_flag="$shared_flag "'$wl-G'
9898 fi
9899 # Need to ensure runtime linking is disabled for the traditional
9900 # shared library, or the linker may eventually find shared libraries
9901 # /with/ Import File - we do not want to mix them.
9902 shared_flag_aix='-shared'
9903 shared_flag_svr4='-shared $wl-G'
9904 else
9905 # not using gcc
9906 if test ia64 = "$host_cpu"; then
9907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9908 # chokes on -Wl,-G. The following line is correct:
9909 shared_flag='-G'
9910 else
9911 if test yes = "$aix_use_runtimelinking"; then
9912 shared_flag='$wl-G'
9913 else
9914 shared_flag='$wl-bM:SRE'
9915 fi
9916 shared_flag_aix='$wl-bM:SRE'
9917 shared_flag_svr4='$wl-G'
9918 fi
9919 fi
9920
9921 export_dynamic_flag_spec='$wl-bexpall'
9922 # It seems that -bexpall does not export symbols beginning with
9923 # underscore (_), so it is better to generate a list of symbols to export.
9924 always_export_symbols=yes
9925 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9926 # Warning - without using the other runtime loading flags (-brtl),
9927 # -berok will link without error, but may produce a broken library.
9928 allow_undefined_flag='-berok'
9929 # Determine the default libpath from the value encoded in an
9930 # empty executable.
9931 if test set = "${lt_cv_aix_libpath+set}"; then
9932 aix_libpath=$lt_cv_aix_libpath
9933 else
9934 if ${lt_cv_aix_libpath_+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939
9940 int
9941 main ()
9942 {
9943
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 if ac_fn_c_try_link "$LINENO"; then :
9949
9950 lt_aix_libpath_sed='
9951 /Import File Strings/,/^$/ {
9952 /^0/ {
9953 s/^0 *\([^ ]*\) *$/\1/
9954 p
9955 }
9956 }'
9957 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9958 # Check for a 64-bit object if we didn't find anything.
9959 if test -z "$lt_cv_aix_libpath_"; then
9960 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961 fi
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 if test -z "$lt_cv_aix_libpath_"; then
9966 lt_cv_aix_libpath_=/usr/lib:/lib
9967 fi
9968
9969 fi
9970
9971 aix_libpath=$lt_cv_aix_libpath_
9972 fi
9973
9974 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9975 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
9976 else
9977 if test ia64 = "$host_cpu"; then
9978 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9979 allow_undefined_flag="-z nodefs"
9980 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"
9981 else
9982 # Determine the default libpath from the value encoded in an
9983 # empty executable.
9984 if test set = "${lt_cv_aix_libpath+set}"; then
9985 aix_libpath=$lt_cv_aix_libpath
9986 else
9987 if ${lt_cv_aix_libpath_+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992
9993 int
9994 main ()
9995 {
9996
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002
10003 lt_aix_libpath_sed='
10004 /Import File Strings/,/^$/ {
10005 /^0/ {
10006 s/^0 *\([^ ]*\) *$/\1/
10007 p
10008 }
10009 }'
10010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10011 # Check for a 64-bit object if we didn't find anything.
10012 if test -z "$lt_cv_aix_libpath_"; then
10013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10014 fi
10015 fi
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 if test -z "$lt_cv_aix_libpath_"; then
10019 lt_cv_aix_libpath_=/usr/lib:/lib
10020 fi
10021
10022 fi
10023
10024 aix_libpath=$lt_cv_aix_libpath_
10025 fi
10026
10027 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10028 # Warning - without using the other run time loading flags,
10029 # -berok will link without error, but may produce a broken library.
10030 no_undefined_flag=' $wl-bernotok'
10031 allow_undefined_flag=' $wl-berok'
10032 if test yes = "$with_gnu_ld"; then
10033 # We only use this code for GNU lds that support --whole-archive.
10034 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10035 else
10036 # Exported symbols can be pulled into shared objects from archives
10037 whole_archive_flag_spec='$convenience'
10038 fi
10039 archive_cmds_need_lc=yes
10040 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10041 # -brtl affects multiple linker settings, -berok does not and is overridden later
10042 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10043 if test svr4 != "$with_aix_soname"; then
10044 # This is similar to how AIX traditionally builds its shared libraries.
10045 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'
10046 fi
10047 if test aix != "$with_aix_soname"; then
10048 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'
10049 else
10050 # used by -dlpreopen to get the symbols
10051 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10052 fi
10053 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10054 fi
10055 fi
10056 ;;
10057
10058 amigaos*)
10059 case $host_cpu in
10060 powerpc)
10061 # see comment about AmigaOS4 .so support
10062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10063 archive_expsym_cmds=''
10064 ;;
10065 m68k)
10066 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)'
10067 hardcode_libdir_flag_spec='-L$libdir'
10068 hardcode_minus_L=yes
10069 ;;
10070 esac
10071 ;;
10072
10073 bsdi[45]*)
10074 export_dynamic_flag_spec=-rdynamic
10075 ;;
10076
10077 cygwin* | mingw* | pw32* | cegcc*)
10078 # When not using gcc, we currently assume that we are using
10079 # Microsoft Visual C++.
10080 # hardcode_libdir_flag_spec is actually meaningless, as there is
10081 # no search path for DLLs.
10082 case $cc_basename in
10083 cl*)
10084 # Native MSVC
10085 hardcode_libdir_flag_spec=' '
10086 allow_undefined_flag=unsupported
10087 always_export_symbols=yes
10088 file_list_spec='@'
10089 # Tell ltmain to make .lib files, not .a files.
10090 libext=lib
10091 # Tell ltmain to make .dll files, not .so files.
10092 shrext_cmds=.dll
10093 # FIXME: Setting linknames here is a bad hack.
10094 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10095 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10096 cp "$export_symbols" "$output_objdir/$soname.def";
10097 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10098 else
10099 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10100 fi~
10101 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10102 linknames='
10103 # The linker will not automatically build a static lib if we build a DLL.
10104 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10105 enable_shared_with_static_runtimes=yes
10106 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10108 # Don't use ranlib
10109 old_postinstall_cmds='chmod 644 $oldlib'
10110 postlink_cmds='lt_outputfile="@OUTPUT@"~
10111 lt_tool_outputfile="@TOOL_OUTPUT@"~
10112 case $lt_outputfile in
10113 *.exe|*.EXE) ;;
10114 *)
10115 lt_outputfile=$lt_outputfile.exe
10116 lt_tool_outputfile=$lt_tool_outputfile.exe
10117 ;;
10118 esac~
10119 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10120 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10121 $RM "$lt_outputfile.manifest";
10122 fi'
10123 ;;
10124 *)
10125 # Assume MSVC wrapper
10126 hardcode_libdir_flag_spec=' '
10127 allow_undefined_flag=unsupported
10128 # Tell ltmain to make .lib files, not .a files.
10129 libext=lib
10130 # Tell ltmain to make .dll files, not .so files.
10131 shrext_cmds=.dll
10132 # FIXME: Setting linknames here is a bad hack.
10133 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10134 # The linker will automatically build a .lib file if we build a DLL.
10135 old_archive_from_new_cmds='true'
10136 # FIXME: Should let the user specify the lib program.
10137 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10138 enable_shared_with_static_runtimes=yes
10139 ;;
10140 esac
10141 ;;
10142
10143 darwin* | rhapsody*)
10144
10145
10146 archive_cmds_need_lc=no
10147 hardcode_direct=no
10148 hardcode_automatic=yes
10149 hardcode_shlibpath_var=unsupported
10150 if test yes = "$lt_cv_ld_force_load"; then
10151 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\"`'
10152
10153 else
10154 whole_archive_flag_spec=''
10155 fi
10156 link_all_deplibs=yes
10157 allow_undefined_flag=$_lt_dar_allow_undefined
10158 case $cc_basename in
10159 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10160 *) _lt_dar_can_shared=$GCC ;;
10161 esac
10162 if test yes = "$_lt_dar_can_shared"; then
10163 output_verbose_link_cmd=func_echo_all
10164 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10165 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10166 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"
10167 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"
10168
10169 else
10170 ld_shlibs=no
10171 fi
10172
10173 ;;
10174
10175 dgux*)
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_libdir_flag_spec='-L$libdir'
10178 hardcode_shlibpath_var=no
10179 ;;
10180
10181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10182 # support. Future versions do this automatically, but an explicit c++rt0.o
10183 # does not break anything, and helps significantly (at the cost of a little
10184 # extra space).
10185 freebsd2.2*)
10186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10187 hardcode_libdir_flag_spec='-R$libdir'
10188 hardcode_direct=yes
10189 hardcode_shlibpath_var=no
10190 ;;
10191
10192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10193 freebsd2.*)
10194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_direct=yes
10196 hardcode_minus_L=yes
10197 hardcode_shlibpath_var=no
10198 ;;
10199
10200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10201 freebsd* | dragonfly*)
10202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10203 hardcode_libdir_flag_spec='-R$libdir'
10204 hardcode_direct=yes
10205 hardcode_shlibpath_var=no
10206 ;;
10207
10208 hpux9*)
10209 if test yes = "$GCC"; then
10210 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'
10211 else
10212 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'
10213 fi
10214 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10215 hardcode_libdir_separator=:
10216 hardcode_direct=yes
10217
10218 # hardcode_minus_L: Not really in the search PATH,
10219 # but as the default location of the library.
10220 hardcode_minus_L=yes
10221 export_dynamic_flag_spec='$wl-E'
10222 ;;
10223
10224 hpux10*)
10225 if test yes,no = "$GCC,$with_gnu_ld"; then
10226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10227 else
10228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10229 fi
10230 if test no = "$with_gnu_ld"; then
10231 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10232 hardcode_libdir_separator=:
10233 hardcode_direct=yes
10234 hardcode_direct_absolute=yes
10235 export_dynamic_flag_spec='$wl-E'
10236 # hardcode_minus_L: Not really in the search PATH,
10237 # but as the default location of the library.
10238 hardcode_minus_L=yes
10239 fi
10240 ;;
10241
10242 hpux11*)
10243 if test yes,no = "$GCC,$with_gnu_ld"; then
10244 case $host_cpu in
10245 hppa*64*)
10246 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 ;;
10248 ia64*)
10249 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10250 ;;
10251 *)
10252 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10253 ;;
10254 esac
10255 else
10256 case $host_cpu in
10257 hppa*64*)
10258 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 ;;
10260 ia64*)
10261 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10262 ;;
10263 *)
10264
10265 # Older versions of the 11.00 compiler do not understand -b yet
10266 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10268 $as_echo_n "checking if $CC understands -b... " >&6; }
10269 if ${lt_cv_prog_compiler__b+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 lt_cv_prog_compiler__b=no
10273 save_LDFLAGS=$LDFLAGS
10274 LDFLAGS="$LDFLAGS -b"
10275 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10277 # The linker can only warn and ignore the option if not recognized
10278 # So say no if there are warnings
10279 if test -s conftest.err; then
10280 # Append any errors to the config.log.
10281 cat conftest.err 1>&5
10282 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10284 if diff conftest.exp conftest.er2 >/dev/null; then
10285 lt_cv_prog_compiler__b=yes
10286 fi
10287 else
10288 lt_cv_prog_compiler__b=yes
10289 fi
10290 fi
10291 $RM -r conftest*
10292 LDFLAGS=$save_LDFLAGS
10293
10294 fi
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10296 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10297
10298 if test yes = "$lt_cv_prog_compiler__b"; then
10299 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300 else
10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10302 fi
10303
10304 ;;
10305 esac
10306 fi
10307 if test no = "$with_gnu_ld"; then
10308 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10309 hardcode_libdir_separator=:
10310
10311 case $host_cpu in
10312 hppa*64*|ia64*)
10313 hardcode_direct=no
10314 hardcode_shlibpath_var=no
10315 ;;
10316 *)
10317 hardcode_direct=yes
10318 hardcode_direct_absolute=yes
10319 export_dynamic_flag_spec='$wl-E'
10320
10321 # hardcode_minus_L: Not really in the search PATH,
10322 # but as the default location of the library.
10323 hardcode_minus_L=yes
10324 ;;
10325 esac
10326 fi
10327 ;;
10328
10329 irix5* | irix6* | nonstopux*)
10330 if test yes = "$GCC"; then
10331 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'
10332 # Try to use the -exported_symbol ld option, if it does not
10333 # work, assume that -exports_file does not work either and
10334 # implicitly export all symbols.
10335 # This should be the same for all languages, so no per-tag cache variable.
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10337 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10338 if ${lt_cv_irix_exported_symbol+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 save_LDFLAGS=$LDFLAGS
10342 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int foo (void) { return 0; }
10346 _ACEOF
10347 if ac_fn_c_try_link "$LINENO"; then :
10348 lt_cv_irix_exported_symbol=yes
10349 else
10350 lt_cv_irix_exported_symbol=no
10351 fi
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LDFLAGS=$save_LDFLAGS
10355 fi
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10357 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10358 if test yes = "$lt_cv_irix_exported_symbol"; then
10359 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'
10360 fi
10361 else
10362 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'
10363 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'
10364 fi
10365 archive_cmds_need_lc='no'
10366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10367 hardcode_libdir_separator=:
10368 inherit_rpath=yes
10369 link_all_deplibs=yes
10370 ;;
10371
10372 linux*)
10373 case $cc_basename in
10374 tcc*)
10375 # Fabrice Bellard et al's Tiny C Compiler
10376 ld_shlibs=yes
10377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10378 ;;
10379 esac
10380 ;;
10381
10382 netbsd*)
10383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10385 else
10386 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10387 fi
10388 hardcode_libdir_flag_spec='-R$libdir'
10389 hardcode_direct=yes
10390 hardcode_shlibpath_var=no
10391 ;;
10392
10393 newsos6)
10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_direct=yes
10396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10397 hardcode_libdir_separator=:
10398 hardcode_shlibpath_var=no
10399 ;;
10400
10401 *nto* | *qnx*)
10402 ;;
10403
10404 openbsd* | bitrig*)
10405 if test -f /usr/libexec/ld.so; then
10406 hardcode_direct=yes
10407 hardcode_shlibpath_var=no
10408 hardcode_direct_absolute=yes
10409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10411 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10412 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10413 export_dynamic_flag_spec='$wl-E'
10414 else
10415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10417 fi
10418 else
10419 ld_shlibs=no
10420 fi
10421 ;;
10422
10423 os2*)
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_minus_L=yes
10426 allow_undefined_flag=unsupported
10427 shrext_cmds=.dll
10428 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10429 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10430 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10431 $ECHO EXPORTS >> $output_objdir/$libname.def~
10432 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10433 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10434 emximp -o $lib $output_objdir/$libname.def'
10435 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10436 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10437 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10438 $ECHO EXPORTS >> $output_objdir/$libname.def~
10439 prefix_cmds="$SED"~
10440 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10441 prefix_cmds="$prefix_cmds -e 1d";
10442 fi~
10443 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10444 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10445 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10446 emximp -o $lib $output_objdir/$libname.def'
10447 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10448 enable_shared_with_static_runtimes=yes
10449 ;;
10450
10451 osf3*)
10452 if test yes = "$GCC"; then
10453 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10454 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'
10455 else
10456 allow_undefined_flag=' -expect_unresolved \*'
10457 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'
10458 fi
10459 archive_cmds_need_lc='no'
10460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10461 hardcode_libdir_separator=:
10462 ;;
10463
10464 osf4* | osf5*) # as osf3* with the addition of -msym flag
10465 if test yes = "$GCC"; then
10466 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10467 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'
10468 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10469 else
10470 allow_undefined_flag=' -expect_unresolved \*'
10471 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'
10472 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~
10473 $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'
10474
10475 # Both c and cxx compiler support -rpath directly
10476 hardcode_libdir_flag_spec='-rpath $libdir'
10477 fi
10478 archive_cmds_need_lc='no'
10479 hardcode_libdir_separator=:
10480 ;;
10481
10482 solaris*)
10483 no_undefined_flag=' -z defs'
10484 if test yes = "$GCC"; then
10485 wlarc='$wl'
10486 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10488 $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'
10489 else
10490 case `$CC -V 2>&1` in
10491 *"Compilers 5.0"*)
10492 wlarc=''
10493 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10495 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10496 ;;
10497 *)
10498 wlarc='$wl'
10499 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10501 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10502 ;;
10503 esac
10504 fi
10505 hardcode_libdir_flag_spec='-R$libdir'
10506 hardcode_shlibpath_var=no
10507 case $host_os in
10508 solaris2.[0-5] | solaris2.[0-5].*) ;;
10509 *)
10510 # The compiler driver will combine and reorder linker options,
10511 # but understands '-z linker_flag'. GCC discards it without '$wl',
10512 # but is careful enough not to reorder.
10513 # Supported since Solaris 2.6 (maybe 2.5.1?)
10514 if test yes = "$GCC"; then
10515 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10516 else
10517 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10518 fi
10519 ;;
10520 esac
10521 link_all_deplibs=yes
10522 ;;
10523
10524 sunos4*)
10525 if test sequent = "$host_vendor"; then
10526 # Use $CC to link under sequent, because it throws in some extra .o
10527 # files that make .init and .fini sections work.
10528 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10529 else
10530 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10531 fi
10532 hardcode_libdir_flag_spec='-L$libdir'
10533 hardcode_direct=yes
10534 hardcode_minus_L=yes
10535 hardcode_shlibpath_var=no
10536 ;;
10537
10538 sysv4)
10539 case $host_vendor in
10540 sni)
10541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10542 hardcode_direct=yes # is this really true???
10543 ;;
10544 siemens)
10545 ## LD is ld it makes a PLAMLIB
10546 ## CC just makes a GrossModule.
10547 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10548 reload_cmds='$CC -r -o $output$reload_objs'
10549 hardcode_direct=no
10550 ;;
10551 motorola)
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10554 ;;
10555 esac
10556 runpath_var='LD_RUN_PATH'
10557 hardcode_shlibpath_var=no
10558 ;;
10559
10560 sysv4.3*)
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_shlibpath_var=no
10563 export_dynamic_flag_spec='-Bexport'
10564 ;;
10565
10566 sysv4*MP*)
10567 if test -d /usr/nec; then
10568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_shlibpath_var=no
10570 runpath_var=LD_RUN_PATH
10571 hardcode_runpath_var=yes
10572 ld_shlibs=yes
10573 fi
10574 ;;
10575
10576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10577 no_undefined_flag='$wl-z,text'
10578 archive_cmds_need_lc=no
10579 hardcode_shlibpath_var=no
10580 runpath_var='LD_RUN_PATH'
10581
10582 if test yes = "$GCC"; then
10583 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 else
10586 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588 fi
10589 ;;
10590
10591 sysv5* | sco3.2v5* | sco5v6*)
10592 # Note: We CANNOT use -z defs as we might desire, because we do not
10593 # link with -lc, and that would cause any symbols used from libc to
10594 # always be unresolved, which means just about no library would
10595 # ever link correctly. If we're not using GNU ld we use -z text
10596 # though, which does catch some bad symbols but isn't as heavy-handed
10597 # as -z defs.
10598 no_undefined_flag='$wl-z,text'
10599 allow_undefined_flag='$wl-z,nodefs'
10600 archive_cmds_need_lc=no
10601 hardcode_shlibpath_var=no
10602 hardcode_libdir_flag_spec='$wl-R,$libdir'
10603 hardcode_libdir_separator=':'
10604 link_all_deplibs=yes
10605 export_dynamic_flag_spec='$wl-Bexport'
10606 runpath_var='LD_RUN_PATH'
10607
10608 if test yes = "$GCC"; then
10609 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 else
10612 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614 fi
10615 ;;
10616
10617 uts4*)
10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_libdir_flag_spec='-L$libdir'
10620 hardcode_shlibpath_var=no
10621 ;;
10622
10623 *)
10624 ld_shlibs=no
10625 ;;
10626 esac
10627
10628 if test sni = "$host_vendor"; then
10629 case $host in
10630 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10631 export_dynamic_flag_spec='$wl-Blargedynsym'
10632 ;;
10633 esac
10634 fi
10635 fi
10636
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10638 $as_echo "$ld_shlibs" >&6; }
10639 test no = "$ld_shlibs" && can_build_shared=no
10640
10641 with_gnu_ld=$with_gnu_ld
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657 #
10658 # Do we need to explicitly link libc?
10659 #
10660 case "x$archive_cmds_need_lc" in
10661 x|xyes)
10662 # Assume -lc should be added
10663 archive_cmds_need_lc=yes
10664
10665 if test yes,yes = "$GCC,$enable_shared"; then
10666 case $archive_cmds in
10667 *'~'*)
10668 # FIXME: we may have to deal with multi-command sequences.
10669 ;;
10670 '$CC '*)
10671 # Test whether the compiler implicitly links with -lc since on some
10672 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10673 # to ld, don't add -lc before -lgcc.
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10675 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10676 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 $RM conftest*
10680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10681
10682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10683 (eval $ac_compile) 2>&5
10684 ac_status=$?
10685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10686 test $ac_status = 0; } 2>conftest.err; then
10687 soname=conftest
10688 lib=conftest
10689 libobjs=conftest.$ac_objext
10690 deplibs=
10691 wl=$lt_prog_compiler_wl
10692 pic_flag=$lt_prog_compiler_pic
10693 compiler_flags=-v
10694 linker_flags=-v
10695 verstring=
10696 output_objdir=.
10697 libname=conftest
10698 lt_save_allow_undefined_flag=$allow_undefined_flag
10699 allow_undefined_flag=
10700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10701 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10702 ac_status=$?
10703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10704 test $ac_status = 0; }
10705 then
10706 lt_cv_archive_cmds_need_lc=no
10707 else
10708 lt_cv_archive_cmds_need_lc=yes
10709 fi
10710 allow_undefined_flag=$lt_save_allow_undefined_flag
10711 else
10712 cat conftest.err 1>&5
10713 fi
10714 $RM conftest*
10715
10716 fi
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10718 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10719 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10720 ;;
10721 esac
10722 fi
10723 ;;
10724 esac
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10878 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10879
10880 if test yes = "$GCC"; then
10881 case $host_os in
10882 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10883 *) lt_awk_arg='/^libraries:/' ;;
10884 esac
10885 case $host_os in
10886 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10887 *) lt_sed_strip_eq='s|=/|/|g' ;;
10888 esac
10889 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10890 case $lt_search_path_spec in
10891 *\;*)
10892 # if the path contains ";" then we assume it to be the separator
10893 # otherwise default to the standard path separator (i.e. ":") - it is
10894 # assumed that no part of a normal pathname contains ";" but that should
10895 # okay in the real world where ";" in dirpaths is itself problematic.
10896 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10897 ;;
10898 *)
10899 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10900 ;;
10901 esac
10902 # Ok, now we have the path, separated by spaces, we can step through it
10903 # and add multilib dir if necessary...
10904 lt_tmp_lt_search_path_spec=
10905 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10906 # ...but if some path component already ends with the multilib dir we assume
10907 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10908 case "$lt_multi_os_dir; $lt_search_path_spec " in
10909 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10910 lt_multi_os_dir=
10911 ;;
10912 esac
10913 for lt_sys_path in $lt_search_path_spec; do
10914 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10915 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10916 elif test -n "$lt_multi_os_dir"; then
10917 test -d "$lt_sys_path" && \
10918 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10919 fi
10920 done
10921 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10922 BEGIN {RS = " "; FS = "/|\n";} {
10923 lt_foo = "";
10924 lt_count = 0;
10925 for (lt_i = NF; lt_i > 0; lt_i--) {
10926 if ($lt_i != "" && $lt_i != ".") {
10927 if ($lt_i == "..") {
10928 lt_count++;
10929 } else {
10930 if (lt_count == 0) {
10931 lt_foo = "/" $lt_i lt_foo;
10932 } else {
10933 lt_count--;
10934 }
10935 }
10936 }
10937 }
10938 if (lt_foo != "") { lt_freq[lt_foo]++; }
10939 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10940 }'`
10941 # AWK program above erroneously prepends '/' to C:/dos/paths
10942 # for these hosts.
10943 case $host_os in
10944 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10945 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10946 esac
10947 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10948 else
10949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10950 fi
10951 library_names_spec=
10952 libname_spec='lib$name'
10953 soname_spec=
10954 shrext_cmds=.so
10955 postinstall_cmds=
10956 postuninstall_cmds=
10957 finish_cmds=
10958 finish_eval=
10959 shlibpath_var=
10960 shlibpath_overrides_runpath=unknown
10961 version_type=none
10962 dynamic_linker="$host_os ld.so"
10963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10964 need_lib_prefix=unknown
10965 hardcode_into_libs=no
10966
10967 # when you set need_version to no, make sure it does not cause -set_version
10968 # flags to be left without arguments
10969 need_version=unknown
10970
10971
10972
10973 case $host_os in
10974 aix3*)
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10977 shlibpath_var=LIBPATH
10978
10979 # AIX 3 has no versioning support, so we append a major version to the name.
10980 soname_spec='$libname$release$shared_ext$major'
10981 ;;
10982
10983 aix[4-9]*)
10984 version_type=linux # correct to gnu/linux during the next big refactor
10985 need_lib_prefix=no
10986 need_version=no
10987 hardcode_into_libs=yes
10988 if test ia64 = "$host_cpu"; then
10989 # AIX 5 supports IA64
10990 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 else
10993 # With GCC up to 2.95.x, collect2 would create an import file
10994 # for dependence libraries. The import file would start with
10995 # the line '#! .'. This would cause the generated library to
10996 # depend on '.', always an invalid library. This was fixed in
10997 # development snapshots of GCC prior to 3.0.
10998 case $host_os in
10999 aix4 | aix4.[01] | aix4.[01].*)
11000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11001 echo ' yes '
11002 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11003 :
11004 else
11005 can_build_shared=no
11006 fi
11007 ;;
11008 esac
11009 # Using Import Files as archive members, it is possible to support
11010 # filename-based versioning of shared library archives on AIX. While
11011 # this would work for both with and without runtime linking, it will
11012 # prevent static linking of such archives. So we do filename-based
11013 # shared library versioning with .so extension only, which is used
11014 # when both runtime linking and shared linking is enabled.
11015 # Unfortunately, runtime linking may impact performance, so we do
11016 # not want this to be the default eventually. Also, we use the
11017 # versioned .so libs for executables only if there is the -brtl
11018 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11019 # To allow for filename-based versioning support, we need to create
11020 # libNAME.so.V as an archive file, containing:
11021 # *) an Import File, referring to the versioned filename of the
11022 # archive as well as the shared archive member, telling the
11023 # bitwidth (32 or 64) of that shared object, and providing the
11024 # list of exported symbols of that shared object, eventually
11025 # decorated with the 'weak' keyword
11026 # *) the shared object with the F_LOADONLY flag set, to really avoid
11027 # it being seen by the linker.
11028 # At run time we better use the real file rather than another symlink,
11029 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11030
11031 case $with_aix_soname,$aix_use_runtimelinking in
11032 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11033 # soname into executable. Probably we can add versioning support to
11034 # collect2, so additional links can be useful in future.
11035 aix,yes) # traditional libtool
11036 dynamic_linker='AIX unversionable lib.so'
11037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11038 # instead of lib<name>.a to let people know that these are not
11039 # typical AIX shared libraries.
11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11041 ;;
11042 aix,no) # traditional AIX only
11043 dynamic_linker='AIX lib.a(lib.so.V)'
11044 # We preserve .a as extension for shared libraries through AIX4.2
11045 # and later when we are not doing run time linking.
11046 library_names_spec='$libname$release.a $libname.a'
11047 soname_spec='$libname$release$shared_ext$major'
11048 ;;
11049 svr4,*) # full svr4 only
11050 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11051 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11052 # We do not specify a path in Import Files, so LIBPATH fires.
11053 shlibpath_overrides_runpath=yes
11054 ;;
11055 *,yes) # both, prefer svr4
11056 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11057 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11058 # unpreferred sharedlib libNAME.a needs extra handling
11059 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"'
11060 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"'
11061 # We do not specify a path in Import Files, so LIBPATH fires.
11062 shlibpath_overrides_runpath=yes
11063 ;;
11064 *,no) # both, prefer aix
11065 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11066 library_names_spec='$libname$release.a $libname.a'
11067 soname_spec='$libname$release$shared_ext$major'
11068 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11069 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)'
11070 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"'
11071 ;;
11072 esac
11073 shlibpath_var=LIBPATH
11074 fi
11075 ;;
11076
11077 amigaos*)
11078 case $host_cpu in
11079 powerpc)
11080 # Since July 2007 AmigaOS4 officially supports .so libraries.
11081 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083 ;;
11084 m68k)
11085 library_names_spec='$libname.ixlibrary $libname.a'
11086 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11087 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'
11088 ;;
11089 esac
11090 ;;
11091
11092 beos*)
11093 library_names_spec='$libname$shared_ext'
11094 dynamic_linker="$host_os ld.so"
11095 shlibpath_var=LIBRARY_PATH
11096 ;;
11097
11098 bsdi[45]*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_version=no
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
11103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11107 # the default ld.so.conf also contains /usr/contrib/lib and
11108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11109 # libtool to hard-code these into programs
11110 ;;
11111
11112 cygwin* | mingw* | pw32* | cegcc*)
11113 version_type=windows
11114 shrext_cmds=.dll
11115 need_version=no
11116 need_lib_prefix=no
11117
11118 case $GCC,$cc_basename in
11119 yes,*)
11120 # gcc
11121 library_names_spec='$libname.dll.a'
11122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11123 postinstall_cmds='base_file=`basename \$file`~
11124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11125 dldir=$destdir/`dirname \$dlpath`~
11126 test -d \$dldir || mkdir -p \$dldir~
11127 $install_prog $dir/$dlname \$dldir/$dlname~
11128 chmod a+x \$dldir/$dlname~
11129 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11130 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11131 fi'
11132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11133 dlpath=$dir/\$dldll~
11134 $RM \$dlpath'
11135 shlibpath_overrides_runpath=yes
11136
11137 case $host_os in
11138 cygwin*)
11139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11140 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11141
11142 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11143 ;;
11144 mingw* | cegcc*)
11145 # MinGW DLLs use traditional 'lib' prefix
11146 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11147 ;;
11148 pw32*)
11149 # pw32 DLLs use 'pw' prefix rather than 'lib'
11150 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11151 ;;
11152 esac
11153 dynamic_linker='Win32 ld.exe'
11154 ;;
11155
11156 *,cl*)
11157 # Native MSVC
11158 libname_spec='$name'
11159 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11160 library_names_spec='$libname.dll.lib'
11161
11162 case $build_os in
11163 mingw*)
11164 sys_lib_search_path_spec=
11165 lt_save_ifs=$IFS
11166 IFS=';'
11167 for lt_path in $LIB
11168 do
11169 IFS=$lt_save_ifs
11170 # Let DOS variable expansion print the short 8.3 style file name.
11171 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11172 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11173 done
11174 IFS=$lt_save_ifs
11175 # Convert to MSYS style.
11176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11177 ;;
11178 cygwin*)
11179 # Convert to unix form, then to dos form, then back to unix form
11180 # but this time dos style (no spaces!) so that the unix form looks
11181 # like /cygdrive/c/PROGRA~1:/cygdr...
11182 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11183 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11184 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11185 ;;
11186 *)
11187 sys_lib_search_path_spec=$LIB
11188 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11189 # It is most probably a Windows format PATH.
11190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11191 else
11192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11193 fi
11194 # FIXME: find the short name or the path components, as spaces are
11195 # common. (e.g. "Program Files" -> "PROGRA~1")
11196 ;;
11197 esac
11198
11199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11200 postinstall_cmds='base_file=`basename \$file`~
11201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11202 dldir=$destdir/`dirname \$dlpath`~
11203 test -d \$dldir || mkdir -p \$dldir~
11204 $install_prog $dir/$dlname \$dldir/$dlname'
11205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11206 dlpath=$dir/\$dldll~
11207 $RM \$dlpath'
11208 shlibpath_overrides_runpath=yes
11209 dynamic_linker='Win32 link.exe'
11210 ;;
11211
11212 *)
11213 # Assume MSVC wrapper
11214 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11215 dynamic_linker='Win32 ld.exe'
11216 ;;
11217 esac
11218 # FIXME: first we should search . and the directory the executable is in
11219 shlibpath_var=PATH
11220 ;;
11221
11222 darwin* | rhapsody*)
11223 dynamic_linker="$host_os dyld"
11224 version_type=darwin
11225 need_lib_prefix=no
11226 need_version=no
11227 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11228 soname_spec='$libname$release$major$shared_ext'
11229 shlibpath_overrides_runpath=yes
11230 shlibpath_var=DYLD_LIBRARY_PATH
11231 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11232
11233 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11235 ;;
11236
11237 dgux*)
11238 version_type=linux # correct to gnu/linux during the next big refactor
11239 need_lib_prefix=no
11240 need_version=no
11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11242 soname_spec='$libname$release$shared_ext$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 ;;
11245
11246 freebsd* | dragonfly*)
11247 # DragonFly does not have aout. When/if they implement a new
11248 # versioning mechanism, adjust this.
11249 if test -x /usr/bin/objformat; then
11250 objformat=`/usr/bin/objformat`
11251 else
11252 case $host_os in
11253 freebsd[23].*) objformat=aout ;;
11254 *) objformat=elf ;;
11255 esac
11256 fi
11257 version_type=freebsd-$objformat
11258 case $version_type in
11259 freebsd-elf*)
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11261 soname_spec='$libname$release$shared_ext$major'
11262 need_version=no
11263 need_lib_prefix=no
11264 ;;
11265 freebsd-*)
11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11267 need_version=yes
11268 ;;
11269 esac
11270 shlibpath_var=LD_LIBRARY_PATH
11271 case $host_os in
11272 freebsd2.*)
11273 shlibpath_overrides_runpath=yes
11274 ;;
11275 freebsd3.[01]* | freebsdelf3.[01]*)
11276 shlibpath_overrides_runpath=yes
11277 hardcode_into_libs=yes
11278 ;;
11279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11281 shlibpath_overrides_runpath=no
11282 hardcode_into_libs=yes
11283 ;;
11284 *) # from 4.6 on, and DragonFly
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11287 ;;
11288 esac
11289 ;;
11290
11291 haiku*)
11292 version_type=linux # correct to gnu/linux during the next big refactor
11293 need_lib_prefix=no
11294 need_version=no
11295 dynamic_linker="$host_os runtime_loader"
11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11297 soname_spec='$libname$release$shared_ext$major'
11298 shlibpath_var=LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11301 hardcode_into_libs=yes
11302 ;;
11303
11304 hpux9* | hpux10* | hpux11*)
11305 # Give a soname corresponding to the major version so that dld.sl refuses to
11306 # link against other versions.
11307 version_type=sunos
11308 need_lib_prefix=no
11309 need_version=no
11310 case $host_cpu in
11311 ia64*)
11312 shrext_cmds='.so'
11313 hardcode_into_libs=yes
11314 dynamic_linker="$host_os dld.so"
11315 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11318 soname_spec='$libname$release$shared_ext$major'
11319 if test 32 = "$HPUX_IA64_MODE"; then
11320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11321 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11322 else
11323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11324 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11325 fi
11326 ;;
11327 hppa*64*)
11328 shrext_cmds='.sl'
11329 hardcode_into_libs=yes
11330 dynamic_linker="$host_os dld.sl"
11331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11334 soname_spec='$libname$release$shared_ext$major'
11335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11337 ;;
11338 *)
11339 shrext_cmds='.sl'
11340 dynamic_linker="$host_os dld.sl"
11341 shlibpath_var=SHLIB_PATH
11342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11344 soname_spec='$libname$release$shared_ext$major'
11345 ;;
11346 esac
11347 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11348 postinstall_cmds='chmod 555 $lib'
11349 # or fails outright, so override atomically:
11350 install_override_mode=555
11351 ;;
11352
11353 interix[3-9]*)
11354 version_type=linux # correct to gnu/linux during the next big refactor
11355 need_lib_prefix=no
11356 need_version=no
11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11358 soname_spec='$libname$release$shared_ext$major'
11359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 shlibpath_overrides_runpath=no
11362 hardcode_into_libs=yes
11363 ;;
11364
11365 irix5* | irix6* | nonstopux*)
11366 case $host_os in
11367 nonstopux*) version_type=nonstopux ;;
11368 *)
11369 if test yes = "$lt_cv_prog_gnu_ld"; then
11370 version_type=linux # correct to gnu/linux during the next big refactor
11371 else
11372 version_type=irix
11373 fi ;;
11374 esac
11375 need_lib_prefix=no
11376 need_version=no
11377 soname_spec='$libname$release$shared_ext$major'
11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11379 case $host_os in
11380 irix5* | nonstopux*)
11381 libsuff= shlibsuff=
11382 ;;
11383 *)
11384 case $LD in # libtool.m4 will add one of these switches to LD
11385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11386 libsuff= shlibsuff= libmagic=32-bit;;
11387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11388 libsuff=32 shlibsuff=N32 libmagic=N32;;
11389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11391 *) libsuff= shlibsuff= libmagic=never-match;;
11392 esac
11393 ;;
11394 esac
11395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11396 shlibpath_overrides_runpath=no
11397 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11398 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11399 hardcode_into_libs=yes
11400 ;;
11401
11402 # No shared lib support for Linux oldld, aout, or coff.
11403 linux*oldld* | linux*aout* | linux*coff*)
11404 dynamic_linker=no
11405 ;;
11406
11407 linux*android*)
11408 version_type=none # Android doesn't support versioned libraries.
11409 need_lib_prefix=no
11410 need_version=no
11411 library_names_spec='$libname$release$shared_ext'
11412 soname_spec='$libname$release$shared_ext'
11413 finish_cmds=
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=yes
11416
11417 # This implies no fast_install, which is unacceptable.
11418 # Some rework will be needed to allow for fast_install
11419 # before this can be enabled.
11420 hardcode_into_libs=yes
11421
11422 dynamic_linker='Android linker'
11423 # Don't embed -rpath directories since the linker doesn't support them.
11424 hardcode_libdir_flag_spec='-L$libdir'
11425 ;;
11426
11427 # This must be glibc/ELF.
11428 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11429 version_type=linux # correct to gnu/linux during the next big refactor
11430 need_lib_prefix=no
11431 need_version=no
11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11433 soname_spec='$libname$release$shared_ext$major'
11434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437
11438 # Some binutils ld are patched to set DT_RUNPATH
11439 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 lt_cv_shlibpath_overrides_runpath=no
11443 save_LDFLAGS=$LDFLAGS
11444 save_libdir=$libdir
11445 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11446 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449
11450 int
11451 main ()
11452 {
11453
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"; then :
11459 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11460 lt_cv_shlibpath_overrides_runpath=yes
11461 fi
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 LDFLAGS=$save_LDFLAGS
11466 libdir=$save_libdir
11467
11468 fi
11469
11470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11471
11472 # This implies no fast_install, which is unacceptable.
11473 # Some rework will be needed to allow for fast_install
11474 # before this can be enabled.
11475 hardcode_into_libs=yes
11476
11477 # Ideally, we could use ldconfig to report *all* directores which are
11478 # searched for libraries, however this is still not possible. Aside from not
11479 # being certain /sbin/ldconfig is available, command
11480 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11481 # even though it is searched at run-time. Try to do the best guess by
11482 # appending ld.so.conf contents (and includes) to the search path.
11483 if test -f /etc/ld.so.conf; then
11484 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' ' '`
11485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11486 fi
11487
11488 # We used to test for /lib/ld.so.1 and disable shared libraries on
11489 # powerpc, because MkLinux only supported shared libraries with the
11490 # GNU dynamic linker. Since this was broken with cross compilers,
11491 # most powerpc-linux boxes support dynamic linking these days and
11492 # people can always --disable-shared, the test was removed, and we
11493 # assume the GNU/Linux dynamic linker is in use.
11494 dynamic_linker='GNU/Linux ld.so'
11495 ;;
11496
11497 netbsd*)
11498 version_type=sunos
11499 need_lib_prefix=no
11500 need_version=no
11501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11504 dynamic_linker='NetBSD (a.out) ld.so'
11505 else
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec='$libname$release$shared_ext$major'
11508 dynamic_linker='NetBSD ld.elf_so'
11509 fi
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11513 ;;
11514
11515 newsos6)
11516 version_type=linux # correct to gnu/linux during the next big refactor
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 ;;
11521
11522 *nto* | *qnx*)
11523 version_type=qnx
11524 need_lib_prefix=no
11525 need_version=no
11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11527 soname_spec='$libname$release$shared_ext$major'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=no
11530 hardcode_into_libs=yes
11531 dynamic_linker='ldqnx.so'
11532 ;;
11533
11534 openbsd* | bitrig*)
11535 version_type=sunos
11536 sys_lib_dlsearch_path_spec=/usr/lib
11537 need_lib_prefix=no
11538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11539 need_version=no
11540 else
11541 need_version=yes
11542 fi
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11547 ;;
11548
11549 os2*)
11550 libname_spec='$name'
11551 version_type=windows
11552 shrext_cmds=.dll
11553 need_version=no
11554 need_lib_prefix=no
11555 # OS/2 can only load a DLL with a base name of 8 characters or less.
11556 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11557 v=$($ECHO $release$versuffix | tr -d .-);
11558 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11559 $ECHO $n$v`$shared_ext'
11560 library_names_spec='${libname}_dll.$libext'
11561 dynamic_linker='OS/2 ld.exe'
11562 shlibpath_var=BEGINLIBPATH
11563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11565 postinstall_cmds='base_file=`basename \$file`~
11566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11567 dldir=$destdir/`dirname \$dlpath`~
11568 test -d \$dldir || mkdir -p \$dldir~
11569 $install_prog $dir/$dlname \$dldir/$dlname~
11570 chmod a+x \$dldir/$dlname~
11571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11573 fi'
11574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11575 dlpath=$dir/\$dldll~
11576 $RM \$dlpath'
11577 ;;
11578
11579 osf3* | osf4* | osf5*)
11580 version_type=osf
11581 need_lib_prefix=no
11582 need_version=no
11583 soname_spec='$libname$release$shared_ext$major'
11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11588 ;;
11589
11590 rdos*)
11591 dynamic_linker=no
11592 ;;
11593
11594 solaris*)
11595 version_type=linux # correct to gnu/linux during the next big refactor
11596 need_lib_prefix=no
11597 need_version=no
11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599 soname_spec='$libname$release$shared_ext$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes
11602 hardcode_into_libs=yes
11603 # ldd complains unless libraries are executable
11604 postinstall_cmds='chmod +x $lib'
11605 ;;
11606
11607 sunos4*)
11608 version_type=sunos
11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=yes
11613 if test yes = "$with_gnu_ld"; then
11614 need_lib_prefix=no
11615 fi
11616 need_version=yes
11617 ;;
11618
11619 sysv4 | sysv4.3*)
11620 version_type=linux # correct to gnu/linux during the next big refactor
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 case $host_vendor in
11625 sni)
11626 shlibpath_overrides_runpath=no
11627 need_lib_prefix=no
11628 runpath_var=LD_RUN_PATH
11629 ;;
11630 siemens)
11631 need_lib_prefix=no
11632 ;;
11633 motorola)
11634 need_lib_prefix=no
11635 need_version=no
11636 shlibpath_overrides_runpath=no
11637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11638 ;;
11639 esac
11640 ;;
11641
11642 sysv4*MP*)
11643 if test -d /usr/nec; then
11644 version_type=linux # correct to gnu/linux during the next big refactor
11645 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11646 soname_spec='$libname$shared_ext.$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 fi
11649 ;;
11650
11651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11652 version_type=sco
11653 need_lib_prefix=no
11654 need_version=no
11655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11656 soname_spec='$libname$release$shared_ext$major'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes
11659 hardcode_into_libs=yes
11660 if test yes = "$with_gnu_ld"; then
11661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11662 else
11663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11664 case $host_os in
11665 sco3.2v5*)
11666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11667 ;;
11668 esac
11669 fi
11670 sys_lib_dlsearch_path_spec='/usr/lib'
11671 ;;
11672
11673 tpf*)
11674 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11675 version_type=linux # correct to gnu/linux during the next big refactor
11676 need_lib_prefix=no
11677 need_version=no
11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=no
11681 hardcode_into_libs=yes
11682 ;;
11683
11684 uts4*)
11685 version_type=linux # correct to gnu/linux during the next big refactor
11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 soname_spec='$libname$release$shared_ext$major'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 ;;
11690
11691 *)
11692 dynamic_linker=no
11693 ;;
11694 esac
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11696 $as_echo "$dynamic_linker" >&6; }
11697 test no = "$dynamic_linker" && can_build_shared=no
11698
11699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11700 if test yes = "$GCC"; then
11701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11702 fi
11703
11704 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11705 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11706 fi
11707
11708 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11709 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11710 fi
11711
11712 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11713 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11714
11715 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11716 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11717
11718 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11719 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11818 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11819 hardcode_action=
11820 if test -n "$hardcode_libdir_flag_spec" ||
11821 test -n "$runpath_var" ||
11822 test yes = "$hardcode_automatic"; then
11823
11824 # We can hardcode non-existent directories.
11825 if test no != "$hardcode_direct" &&
11826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11827 # have to relink, otherwise we might link with an installed library
11828 # when we should be linking with a yet-to-be-installed one
11829 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11830 test no != "$hardcode_minus_L"; then
11831 # Linking always hardcodes the temporary library directory.
11832 hardcode_action=relink
11833 else
11834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11835 hardcode_action=immediate
11836 fi
11837 else
11838 # We cannot hardcode anything, or else we can only hardcode existing
11839 # directories.
11840 hardcode_action=unsupported
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11843 $as_echo "$hardcode_action" >&6; }
11844
11845 if test relink = "$hardcode_action" ||
11846 test yes = "$inherit_rpath"; then
11847 # Fast installation is not supported
11848 enable_fast_install=no
11849 elif test yes = "$shlibpath_overrides_runpath" ||
11850 test no = "$enable_shared"; then
11851 # Fast installation is not necessary
11852 enable_fast_install=needless
11853 fi
11854
11855
11856
11857
11858
11859
11860 if test yes != "$enable_dlopen"; then
11861 enable_dlopen=unknown
11862 enable_dlopen_self=unknown
11863 enable_dlopen_self_static=unknown
11864 else
11865 lt_cv_dlopen=no
11866 lt_cv_dlopen_libs=
11867
11868 case $host_os in
11869 beos*)
11870 lt_cv_dlopen=load_add_on
11871 lt_cv_dlopen_libs=
11872 lt_cv_dlopen_self=yes
11873 ;;
11874
11875 mingw* | pw32* | cegcc*)
11876 lt_cv_dlopen=LoadLibrary
11877 lt_cv_dlopen_libs=
11878 ;;
11879
11880 cygwin*)
11881 lt_cv_dlopen=dlopen
11882 lt_cv_dlopen_libs=
11883 ;;
11884
11885 darwin*)
11886 # if libdl is installed we need to link against it
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11889 if ${ac_cv_lib_dl_dlopen+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-ldl $LIBS"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char dlopen ();
11904 int
11905 main ()
11906 {
11907 return dlopen ();
11908 ;
11909 return 0;
11910 }
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 ac_cv_lib_dl_dlopen=yes
11914 else
11915 ac_cv_lib_dl_dlopen=no
11916 fi
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11923 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11924 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11925 else
11926
11927 lt_cv_dlopen=dyld
11928 lt_cv_dlopen_libs=
11929 lt_cv_dlopen_self=yes
11930
11931 fi
11932
11933 ;;
11934
11935 tpf*)
11936 # Don't try to run any link tests for TPF. We know it's impossible
11937 # because TPF is a cross-compiler, and we know how we open DSOs.
11938 lt_cv_dlopen=dlopen
11939 lt_cv_dlopen_libs=
11940 lt_cv_dlopen_self=no
11941 ;;
11942
11943 *)
11944 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11945 if test "x$ac_cv_func_shl_load" = xyes; then :
11946 lt_cv_dlopen=shl_load
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11949 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11950 if ${ac_cv_lib_dld_shl_load+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-ldld $LIBS"
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char shl_load ();
11965 int
11966 main ()
11967 {
11968 return shl_load ();
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 if ac_fn_c_try_link "$LINENO"; then :
11974 ac_cv_lib_dld_shl_load=yes
11975 else
11976 ac_cv_lib_dld_shl_load=no
11977 fi
11978 rm -f core conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_lib_save_LIBS
11981 fi
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11983 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11984 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11985 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11986 else
11987 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11988 if test "x$ac_cv_func_dlopen" = xyes; then :
11989 lt_cv_dlopen=dlopen
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11993 if ${ac_cv_lib_dl_dlopen+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 ac_check_lib_save_LIBS=$LIBS
11997 LIBS="-ldl $LIBS"
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 char dlopen ();
12008 int
12009 main ()
12010 {
12011 return dlopen ();
12012 ;
12013 return 0;
12014 }
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"; then :
12017 ac_cv_lib_dl_dlopen=yes
12018 else
12019 ac_cv_lib_dl_dlopen=no
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12027 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12031 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12032 if ${ac_cv_lib_svld_dlopen+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 ac_check_lib_save_LIBS=$LIBS
12036 LIBS="-lsvld $LIBS"
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039
12040 /* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12043 #ifdef __cplusplus
12044 extern "C"
12045 #endif
12046 char dlopen ();
12047 int
12048 main ()
12049 {
12050 return dlopen ();
12051 ;
12052 return 0;
12053 }
12054 _ACEOF
12055 if ac_fn_c_try_link "$LINENO"; then :
12056 ac_cv_lib_svld_dlopen=yes
12057 else
12058 ac_cv_lib_svld_dlopen=no
12059 fi
12060 rm -f core conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062 LIBS=$ac_check_lib_save_LIBS
12063 fi
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12065 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12066 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12067 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12070 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12071 if ${ac_cv_lib_dld_dld_link+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-ldld $LIBS"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 char dld_link ();
12086 int
12087 main ()
12088 {
12089 return dld_link ();
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_dld_dld_link=yes
12096 else
12097 ac_cv_lib_dld_dld_link=no
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12104 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12105 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12106 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12107 fi
12108
12109
12110 fi
12111
12112
12113 fi
12114
12115
12116 fi
12117
12118
12119 fi
12120
12121
12122 fi
12123
12124 ;;
12125 esac
12126
12127 if test no = "$lt_cv_dlopen"; then
12128 enable_dlopen=no
12129 else
12130 enable_dlopen=yes
12131 fi
12132
12133 case $lt_cv_dlopen in
12134 dlopen)
12135 save_CPPFLAGS=$CPPFLAGS
12136 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12137
12138 save_LDFLAGS=$LDFLAGS
12139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12140
12141 save_LIBS=$LIBS
12142 LIBS="$lt_cv_dlopen_libs $LIBS"
12143
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12145 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12146 if ${lt_cv_dlopen_self+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 if test yes = "$cross_compiling"; then :
12150 lt_cv_dlopen_self=cross
12151 else
12152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12153 lt_status=$lt_dlunknown
12154 cat > conftest.$ac_ext <<_LT_EOF
12155 #line $LINENO "configure"
12156 #include "confdefs.h"
12157
12158 #if HAVE_DLFCN_H
12159 #include <dlfcn.h>
12160 #endif
12161
12162 #include <stdio.h>
12163
12164 #ifdef RTLD_GLOBAL
12165 # define LT_DLGLOBAL RTLD_GLOBAL
12166 #else
12167 # ifdef DL_GLOBAL
12168 # define LT_DLGLOBAL DL_GLOBAL
12169 # else
12170 # define LT_DLGLOBAL 0
12171 # endif
12172 #endif
12173
12174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12175 find out it does not work in some platform. */
12176 #ifndef LT_DLLAZY_OR_NOW
12177 # ifdef RTLD_LAZY
12178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12179 # else
12180 # ifdef DL_LAZY
12181 # define LT_DLLAZY_OR_NOW DL_LAZY
12182 # else
12183 # ifdef RTLD_NOW
12184 # define LT_DLLAZY_OR_NOW RTLD_NOW
12185 # else
12186 # ifdef DL_NOW
12187 # define LT_DLLAZY_OR_NOW DL_NOW
12188 # else
12189 # define LT_DLLAZY_OR_NOW 0
12190 # endif
12191 # endif
12192 # endif
12193 # endif
12194 #endif
12195
12196 /* When -fvisibility=hidden is used, assume the code has been annotated
12197 correspondingly for the symbols needed. */
12198 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12199 int fnord () __attribute__((visibility("default")));
12200 #endif
12201
12202 int fnord () { return 42; }
12203 int main ()
12204 {
12205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12206 int status = $lt_dlunknown;
12207
12208 if (self)
12209 {
12210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12211 else
12212 {
12213 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12214 else puts (dlerror ());
12215 }
12216 /* dlclose (self); */
12217 }
12218 else
12219 puts (dlerror ());
12220
12221 return status;
12222 }
12223 _LT_EOF
12224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12225 (eval $ac_link) 2>&5
12226 ac_status=$?
12227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12228 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12229 (./conftest; exit; ) >&5 2>/dev/null
12230 lt_status=$?
12231 case x$lt_status in
12232 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12233 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12234 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12235 esac
12236 else :
12237 # compilation failed
12238 lt_cv_dlopen_self=no
12239 fi
12240 fi
12241 rm -fr conftest*
12242
12243
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12246 $as_echo "$lt_cv_dlopen_self" >&6; }
12247
12248 if test yes = "$lt_cv_dlopen_self"; then
12249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12251 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12252 if ${lt_cv_dlopen_self_static+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 if test yes = "$cross_compiling"; then :
12256 lt_cv_dlopen_self_static=cross
12257 else
12258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12259 lt_status=$lt_dlunknown
12260 cat > conftest.$ac_ext <<_LT_EOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12263
12264 #if HAVE_DLFCN_H
12265 #include <dlfcn.h>
12266 #endif
12267
12268 #include <stdio.h>
12269
12270 #ifdef RTLD_GLOBAL
12271 # define LT_DLGLOBAL RTLD_GLOBAL
12272 #else
12273 # ifdef DL_GLOBAL
12274 # define LT_DLGLOBAL DL_GLOBAL
12275 # else
12276 # define LT_DLGLOBAL 0
12277 # endif
12278 #endif
12279
12280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12281 find out it does not work in some platform. */
12282 #ifndef LT_DLLAZY_OR_NOW
12283 # ifdef RTLD_LAZY
12284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12285 # else
12286 # ifdef DL_LAZY
12287 # define LT_DLLAZY_OR_NOW DL_LAZY
12288 # else
12289 # ifdef RTLD_NOW
12290 # define LT_DLLAZY_OR_NOW RTLD_NOW
12291 # else
12292 # ifdef DL_NOW
12293 # define LT_DLLAZY_OR_NOW DL_NOW
12294 # else
12295 # define LT_DLLAZY_OR_NOW 0
12296 # endif
12297 # endif
12298 # endif
12299 # endif
12300 #endif
12301
12302 /* When -fvisibility=hidden is used, assume the code has been annotated
12303 correspondingly for the symbols needed. */
12304 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12305 int fnord () __attribute__((visibility("default")));
12306 #endif
12307
12308 int fnord () { return 42; }
12309 int main ()
12310 {
12311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12312 int status = $lt_dlunknown;
12313
12314 if (self)
12315 {
12316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12317 else
12318 {
12319 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12320 else puts (dlerror ());
12321 }
12322 /* dlclose (self); */
12323 }
12324 else
12325 puts (dlerror ());
12326
12327 return status;
12328 }
12329 _LT_EOF
12330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12331 (eval $ac_link) 2>&5
12332 ac_status=$?
12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12335 (./conftest; exit; ) >&5 2>/dev/null
12336 lt_status=$?
12337 case x$lt_status in
12338 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12339 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12340 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12341 esac
12342 else :
12343 # compilation failed
12344 lt_cv_dlopen_self_static=no
12345 fi
12346 fi
12347 rm -fr conftest*
12348
12349
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12352 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12353 fi
12354
12355 CPPFLAGS=$save_CPPFLAGS
12356 LDFLAGS=$save_LDFLAGS
12357 LIBS=$save_LIBS
12358 ;;
12359 esac
12360
12361 case $lt_cv_dlopen_self in
12362 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12363 *) enable_dlopen_self=unknown ;;
12364 esac
12365
12366 case $lt_cv_dlopen_self_static in
12367 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12368 *) enable_dlopen_self_static=unknown ;;
12369 esac
12370 fi
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388 striplib=
12389 old_striplib=
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12391 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12392 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12393 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12394 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12396 $as_echo "yes" >&6; }
12397 else
12398 # FIXME - insert some real tests, host_os isn't really good enough
12399 case $host_os in
12400 darwin*)
12401 if test -n "$STRIP"; then
12402 striplib="$STRIP -x"
12403 old_striplib="$STRIP -S"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12405 $as_echo "yes" >&6; }
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12409 fi
12410 ;;
12411 *)
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12414 ;;
12415 esac
12416 fi
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429 # Report what library types will actually be built
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12431 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12433 $as_echo "$can_build_shared" >&6; }
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12436 $as_echo_n "checking whether to build shared libraries... " >&6; }
12437 test no = "$can_build_shared" && enable_shared=no
12438
12439 # On AIX, shared libraries and static libraries use the same namespace, and
12440 # are all built from PIC.
12441 case $host_os in
12442 aix3*)
12443 test yes = "$enable_shared" && enable_static=no
12444 if test -n "$RANLIB"; then
12445 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12446 postinstall_cmds='$RANLIB $lib'
12447 fi
12448 ;;
12449
12450 aix[4-9]*)
12451 if test ia64 != "$host_cpu"; then
12452 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12453 yes,aix,yes) ;; # shared object as lib.so file only
12454 yes,svr4,*) ;; # shared object as lib.so archive member only
12455 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12456 esac
12457 fi
12458 ;;
12459 esac
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12461 $as_echo "$enable_shared" >&6; }
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12464 $as_echo_n "checking whether to build static libraries... " >&6; }
12465 # Make sure either enable_shared or enable_static is yes.
12466 test yes = "$enable_shared" || enable_static=yes
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12468 $as_echo "$enable_static" >&6; }
12469
12470
12471
12472
12473 fi
12474 ac_ext=c
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 CC=$lt_save_CC
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496 ac_config_commands="$ac_config_commands libtool"
12497
12498
12499
12500
12501 # Only expand once:
12502
12503
12504
12505 # Require xorg-macros minimum of 1.16 for unit testing with memory checks
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12518 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12519 if ${ac_cv_prog_cc_c99+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 ac_cv_prog_cc_c99=no
12523 ac_save_CC=$CC
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12526 #include <stdarg.h>
12527 #include <stdbool.h>
12528 #include <stdlib.h>
12529 #include <wchar.h>
12530 #include <stdio.h>
12531
12532 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12533 #define debug(...) fprintf (stderr, __VA_ARGS__)
12534 #define showlist(...) puts (#__VA_ARGS__)
12535 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12536 static void
12537 test_varargs_macros (void)
12538 {
12539 int x = 1234;
12540 int y = 5678;
12541 debug ("Flag");
12542 debug ("X = %d\n", x);
12543 showlist (The first, second, and third items.);
12544 report (x>y, "x is %d but y is %d", x, y);
12545 }
12546
12547 // Check long long types.
12548 #define BIG64 18446744073709551615ull
12549 #define BIG32 4294967295ul
12550 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12551 #if !BIG_OK
12552 your preprocessor is broken;
12553 #endif
12554 #if BIG_OK
12555 #else
12556 your preprocessor is broken;
12557 #endif
12558 static long long int bignum = -9223372036854775807LL;
12559 static unsigned long long int ubignum = BIG64;
12560
12561 struct incomplete_array
12562 {
12563 int datasize;
12564 double data[];
12565 };
12566
12567 struct named_init {
12568 int number;
12569 const wchar_t *name;
12570 double average;
12571 };
12572
12573 typedef const char *ccp;
12574
12575 static inline int
12576 test_restrict (ccp restrict text)
12577 {
12578 // See if C++-style comments work.
12579 // Iterate through items via the restricted pointer.
12580 // Also check for declarations in for loops.
12581 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12582 continue;
12583 return 0;
12584 }
12585
12586 // Check varargs and va_copy.
12587 static void
12588 test_varargs (const char *format, ...)
12589 {
12590 va_list args;
12591 va_start (args, format);
12592 va_list args_copy;
12593 va_copy (args_copy, args);
12594
12595 const char *str;
12596 int number;
12597 float fnumber;
12598
12599 while (*format)
12600 {
12601 switch (*format++)
12602 {
12603 case 's': // string
12604 str = va_arg (args_copy, const char *);
12605 break;
12606 case 'd': // int
12607 number = va_arg (args_copy, int);
12608 break;
12609 case 'f': // float
12610 fnumber = va_arg (args_copy, double);
12611 break;
12612 default:
12613 break;
12614 }
12615 }
12616 va_end (args_copy);
12617 va_end (args);
12618 }
12619
12620 int
12621 main ()
12622 {
12623
12624 // Check bool.
12625 _Bool success = false;
12626
12627 // Check restrict.
12628 if (test_restrict ("String literal") == 0)
12629 success = true;
12630 char *restrict newvar = "Another string";
12631
12632 // Check varargs.
12633 test_varargs ("s, d' f .", "string", 65, 34.234);
12634 test_varargs_macros ();
12635
12636 // Check flexible array members.
12637 struct incomplete_array *ia =
12638 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12639 ia->datasize = 10;
12640 for (int i = 0; i < ia->datasize; ++i)
12641 ia->data[i] = i * 1.234;
12642
12643 // Check named initializers.
12644 struct named_init ni = {
12645 .number = 34,
12646 .name = L"Test wide string",
12647 .average = 543.34343,
12648 };
12649
12650 ni.number = 58;
12651
12652 int dynamic_array[ni.number];
12653 dynamic_array[ni.number - 1] = 543;
12654
12655 // work around unused variable warnings
12656 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12657 || dynamic_array[ni.number - 1] != 543);
12658
12659 ;
12660 return 0;
12661 }
12662 _ACEOF
12663 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12664 do
12665 CC="$ac_save_CC $ac_arg"
12666 if ac_fn_c_try_compile "$LINENO"; then :
12667 ac_cv_prog_cc_c99=$ac_arg
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext
12670 test "x$ac_cv_prog_cc_c99" != "xno" && break
12671 done
12672 rm -f conftest.$ac_ext
12673 CC=$ac_save_CC
12674
12675 fi
12676 # AC_CACHE_VAL
12677 case "x$ac_cv_prog_cc_c99" in
12678 x)
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12680 $as_echo "none needed" >&6; } ;;
12681 xno)
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12683 $as_echo "unsupported" >&6; } ;;
12684 *)
12685 CC="$CC $ac_cv_prog_cc_c99"
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12687 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12688 esac
12689 if test "x$ac_cv_prog_cc_c99" != xno; then :
12690
12691 fi
12692
12693
12694
12695
12696
12697
12698 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12699 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12700 CLANGCC="yes"
12701 else
12702 CLANGCC="no"
12703 fi
12704
12705 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12706 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12707 INTELCC="yes"
12708 else
12709 INTELCC="no"
12710 fi
12711
12712 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12713 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12714 SUNCC="yes"
12715 else
12716 SUNCC="no"
12717 fi
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12728 if test -n "$ac_tool_prefix"; then
12729 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12730 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 case $PKG_CONFIG in
12737 [\\/]* | ?:[\\/]*)
12738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12739 ;;
12740 *)
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12751 fi
12752 done
12753 done
12754 IFS=$as_save_IFS
12755
12756 ;;
12757 esac
12758 fi
12759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12760 if test -n "$PKG_CONFIG"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12762 $as_echo "$PKG_CONFIG" >&6; }
12763 else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766 fi
12767
12768
12769 fi
12770 if test -z "$ac_cv_path_PKG_CONFIG"; then
12771 ac_pt_PKG_CONFIG=$PKG_CONFIG
12772 # Extract the first word of "pkg-config", so it can be a program name with args.
12773 set dummy pkg-config; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 case $ac_pt_PKG_CONFIG in
12780 [\\/]* | ?:[\\/]*)
12781 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12782 ;;
12783 *)
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 ;;
12800 esac
12801 fi
12802 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12803 if test -n "$ac_pt_PKG_CONFIG"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12805 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810
12811 if test "x$ac_pt_PKG_CONFIG" = x; then
12812 PKG_CONFIG=""
12813 else
12814 case $cross_compiling:$ac_tool_warned in
12815 yes:)
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12818 ac_tool_warned=yes ;;
12819 esac
12820 PKG_CONFIG=$ac_pt_PKG_CONFIG
12821 fi
12822 else
12823 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12824 fi
12825
12826 fi
12827 if test -n "$PKG_CONFIG"; then
12828 _pkg_min_version=0.9.0
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12830 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12831 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12833 $as_echo "yes" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837 PKG_CONFIG=""
12838 fi
12839 fi
12840
12841
12842
12843
12844
12845 # Check whether --enable-selective-werror was given.
12846 if test "${enable_selective_werror+set}" = set; then :
12847 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12848 else
12849 SELECTIVE_WERROR=yes
12850 fi
12851
12852
12853
12854
12855
12856 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12857 if test "x$SUNCC" = "xyes"; then
12858 BASE_CFLAGS="-v"
12859 else
12860 BASE_CFLAGS=""
12861 fi
12862
12863 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877 xorg_testset_save_CFLAGS="$CFLAGS"
12878
12879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12888 int i;
12889 _ACEOF
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891 xorg_cv_cc_flag_unknown_warning_option=yes
12892 else
12893 xorg_cv_cc_flag_unknown_warning_option=no
12894 fi
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 fi
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12900 CFLAGS="$xorg_testset_save_CFLAGS"
12901 fi
12902
12903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12906 fi
12907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 int i;
12916 _ACEOF
12917 if ac_fn_c_try_compile "$LINENO"; then :
12918 xorg_cv_cc_flag_unused_command_line_argument=yes
12919 else
12920 xorg_cv_cc_flag_unused_command_line_argument=no
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 fi
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12927 CFLAGS="$xorg_testset_save_CFLAGS"
12928 fi
12929
12930 found="no"
12931
12932 if test $found = "no" ; then
12933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12935 fi
12936
12937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12939 fi
12940
12941 CFLAGS="$CFLAGS -Wall"
12942
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12944 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12945 cacheid=xorg_cv_cc_flag__Wall
12946 if eval \${$cacheid+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951 int i;
12952 int
12953 main ()
12954 {
12955
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 eval $cacheid=yes
12962 else
12963 eval $cacheid=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 fi
12968
12969
12970 CFLAGS="$xorg_testset_save_CFLAGS"
12971
12972 eval supported=\$$cacheid
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12974 $as_echo "$supported" >&6; }
12975 if test "$supported" = "yes" ; then
12976 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12977 found="yes"
12978 fi
12979 fi
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995 xorg_testset_save_CFLAGS="$CFLAGS"
12996
12997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 int i;
13007 _ACEOF
13008 if ac_fn_c_try_compile "$LINENO"; then :
13009 xorg_cv_cc_flag_unknown_warning_option=yes
13010 else
13011 xorg_cv_cc_flag_unknown_warning_option=no
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 fi
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13018 CFLAGS="$xorg_testset_save_CFLAGS"
13019 fi
13020
13021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13024 fi
13025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 int i;
13034 _ACEOF
13035 if ac_fn_c_try_compile "$LINENO"; then :
13036 xorg_cv_cc_flag_unused_command_line_argument=yes
13037 else
13038 xorg_cv_cc_flag_unused_command_line_argument=no
13039 fi
13040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13045 CFLAGS="$xorg_testset_save_CFLAGS"
13046 fi
13047
13048 found="no"
13049
13050 if test $found = "no" ; then
13051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13053 fi
13054
13055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13057 fi
13058
13059 CFLAGS="$CFLAGS -Wpointer-arith"
13060
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13062 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13063 cacheid=xorg_cv_cc_flag__Wpointer_arith
13064 if eval \${$cacheid+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13069 int i;
13070 int
13071 main ()
13072 {
13073
13074 ;
13075 return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_link "$LINENO"; then :
13079 eval $cacheid=yes
13080 else
13081 eval $cacheid=no
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 fi
13086
13087
13088 CFLAGS="$xorg_testset_save_CFLAGS"
13089
13090 eval supported=\$$cacheid
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13092 $as_echo "$supported" >&6; }
13093 if test "$supported" = "yes" ; then
13094 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13095 found="yes"
13096 fi
13097 fi
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113 xorg_testset_save_CFLAGS="$CFLAGS"
13114
13115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13118 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13119 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13124 int i;
13125 _ACEOF
13126 if ac_fn_c_try_compile "$LINENO"; then :
13127 xorg_cv_cc_flag_unknown_warning_option=yes
13128 else
13129 xorg_cv_cc_flag_unknown_warning_option=no
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13134 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13136 CFLAGS="$xorg_testset_save_CFLAGS"
13137 fi
13138
13139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13142 fi
13143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13145 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13146 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151 int i;
13152 _ACEOF
13153 if ac_fn_c_try_compile "$LINENO"; then :
13154 xorg_cv_cc_flag_unused_command_line_argument=yes
13155 else
13156 xorg_cv_cc_flag_unused_command_line_argument=no
13157 fi
13158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13161 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13163 CFLAGS="$xorg_testset_save_CFLAGS"
13164 fi
13165
13166 found="no"
13167
13168 if test $found = "no" ; then
13169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13171 fi
13172
13173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13175 fi
13176
13177 CFLAGS="$CFLAGS -Wmissing-declarations"
13178
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13180 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13181 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13182 if eval \${$cacheid+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 int i;
13188 int
13189 main ()
13190 {
13191
13192 ;
13193 return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 eval $cacheid=yes
13198 else
13199 eval $cacheid=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 fi
13204
13205
13206 CFLAGS="$xorg_testset_save_CFLAGS"
13207
13208 eval supported=\$$cacheid
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13210 $as_echo "$supported" >&6; }
13211 if test "$supported" = "yes" ; then
13212 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13213 found="yes"
13214 fi
13215 fi
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231 xorg_testset_save_CFLAGS="$CFLAGS"
13232
13233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13236 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13237 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 int i;
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"; then :
13245 xorg_cv_cc_flag_unknown_warning_option=yes
13246 else
13247 xorg_cv_cc_flag_unknown_warning_option=no
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 fi
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13252 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13254 CFLAGS="$xorg_testset_save_CFLAGS"
13255 fi
13256
13257 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260 fi
13261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13263 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13264 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 int i;
13270 _ACEOF
13271 if ac_fn_c_try_compile "$LINENO"; then :
13272 xorg_cv_cc_flag_unused_command_line_argument=yes
13273 else
13274 xorg_cv_cc_flag_unused_command_line_argument=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13279 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13281 CFLAGS="$xorg_testset_save_CFLAGS"
13282 fi
13283
13284 found="no"
13285
13286 if test $found = "no" ; then
13287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289 fi
13290
13291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13293 fi
13294
13295 CFLAGS="$CFLAGS -Wformat=2"
13296
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13298 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13299 cacheid=xorg_cv_cc_flag__Wformat_2
13300 if eval \${$cacheid+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 int i;
13306 int
13307 main ()
13308 {
13309
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"; then :
13315 eval $cacheid=yes
13316 else
13317 eval $cacheid=no
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 fi
13322
13323
13324 CFLAGS="$xorg_testset_save_CFLAGS"
13325
13326 eval supported=\$$cacheid
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13328 $as_echo "$supported" >&6; }
13329 if test "$supported" = "yes" ; then
13330 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13331 found="yes"
13332 fi
13333 fi
13334
13335 if test $found = "no" ; then
13336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13338 fi
13339
13340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13342 fi
13343
13344 CFLAGS="$CFLAGS -Wformat"
13345
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13347 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13348 cacheid=xorg_cv_cc_flag__Wformat
13349 if eval \${$cacheid+:} false; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 int i;
13355 int
13356 main ()
13357 {
13358
13359 ;
13360 return 0;
13361 }
13362 _ACEOF
13363 if ac_fn_c_try_link "$LINENO"; then :
13364 eval $cacheid=yes
13365 else
13366 eval $cacheid=no
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370 fi
13371
13372
13373 CFLAGS="$xorg_testset_save_CFLAGS"
13374
13375 eval supported=\$$cacheid
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13377 $as_echo "$supported" >&6; }
13378 if test "$supported" = "yes" ; then
13379 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13380 found="yes"
13381 fi
13382 fi
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400 xorg_testset_save_CFLAGS="$CFLAGS"
13401
13402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 int i;
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"; then :
13414 xorg_cv_cc_flag_unknown_warning_option=yes
13415 else
13416 xorg_cv_cc_flag_unknown_warning_option=no
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13423 CFLAGS="$xorg_testset_save_CFLAGS"
13424 fi
13425
13426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13429 fi
13430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 int i;
13439 _ACEOF
13440 if ac_fn_c_try_compile "$LINENO"; then :
13441 xorg_cv_cc_flag_unused_command_line_argument=yes
13442 else
13443 xorg_cv_cc_flag_unused_command_line_argument=no
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 fi
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13450 CFLAGS="$xorg_testset_save_CFLAGS"
13451 fi
13452
13453 found="no"
13454
13455 if test $found = "no" ; then
13456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13458 fi
13459
13460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13462 fi
13463
13464 CFLAGS="$CFLAGS -Wstrict-prototypes"
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13467 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13468 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13469 if eval \${$cacheid+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13474 int i;
13475 int
13476 main ()
13477 {
13478
13479 ;
13480 return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_link "$LINENO"; then :
13484 eval $cacheid=yes
13485 else
13486 eval $cacheid=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13490 fi
13491
13492
13493 CFLAGS="$xorg_testset_save_CFLAGS"
13494
13495 eval supported=\$$cacheid
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13497 $as_echo "$supported" >&6; }
13498 if test "$supported" = "yes" ; then
13499 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13500 found="yes"
13501 fi
13502 fi
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518 xorg_testset_save_CFLAGS="$CFLAGS"
13519
13520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529 int i;
13530 _ACEOF
13531 if ac_fn_c_try_compile "$LINENO"; then :
13532 xorg_cv_cc_flag_unknown_warning_option=yes
13533 else
13534 xorg_cv_cc_flag_unknown_warning_option=no
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 fi
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13541 CFLAGS="$xorg_testset_save_CFLAGS"
13542 fi
13543
13544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547 fi
13548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13552 $as_echo_n "(cached) " >&6
13553 else
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 int i;
13557 _ACEOF
13558 if ac_fn_c_try_compile "$LINENO"; then :
13559 xorg_cv_cc_flag_unused_command_line_argument=yes
13560 else
13561 xorg_cv_cc_flag_unused_command_line_argument=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13568 CFLAGS="$xorg_testset_save_CFLAGS"
13569 fi
13570
13571 found="no"
13572
13573 if test $found = "no" ; then
13574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13576 fi
13577
13578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13580 fi
13581
13582 CFLAGS="$CFLAGS -Wmissing-prototypes"
13583
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13585 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13586 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13587 if eval \${$cacheid+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 int i;
13593 int
13594 main ()
13595 {
13596
13597 ;
13598 return 0;
13599 }
13600 _ACEOF
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 eval $cacheid=yes
13603 else
13604 eval $cacheid=no
13605 fi
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 fi
13609
13610
13611 CFLAGS="$xorg_testset_save_CFLAGS"
13612
13613 eval supported=\$$cacheid
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13615 $as_echo "$supported" >&6; }
13616 if test "$supported" = "yes" ; then
13617 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13618 found="yes"
13619 fi
13620 fi
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636 xorg_testset_save_CFLAGS="$CFLAGS"
13637
13638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13647 int i;
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650 xorg_cv_cc_flag_unknown_warning_option=yes
13651 else
13652 xorg_cv_cc_flag_unknown_warning_option=no
13653 fi
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13659 CFLAGS="$xorg_testset_save_CFLAGS"
13660 fi
13661
13662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665 fi
13666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13674 int i;
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"; then :
13677 xorg_cv_cc_flag_unused_command_line_argument=yes
13678 else
13679 xorg_cv_cc_flag_unused_command_line_argument=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13686 CFLAGS="$xorg_testset_save_CFLAGS"
13687 fi
13688
13689 found="no"
13690
13691 if test $found = "no" ; then
13692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13694 fi
13695
13696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13698 fi
13699
13700 CFLAGS="$CFLAGS -Wnested-externs"
13701
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13703 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13704 cacheid=xorg_cv_cc_flag__Wnested_externs
13705 if eval \${$cacheid+:} false; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 int i;
13711 int
13712 main ()
13713 {
13714
13715 ;
13716 return 0;
13717 }
13718 _ACEOF
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 eval $cacheid=yes
13721 else
13722 eval $cacheid=no
13723 fi
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 fi
13727
13728
13729 CFLAGS="$xorg_testset_save_CFLAGS"
13730
13731 eval supported=\$$cacheid
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13733 $as_echo "$supported" >&6; }
13734 if test "$supported" = "yes" ; then
13735 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13736 found="yes"
13737 fi
13738 fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754 xorg_testset_save_CFLAGS="$CFLAGS"
13755
13756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13765 int i;
13766 _ACEOF
13767 if ac_fn_c_try_compile "$LINENO"; then :
13768 xorg_cv_cc_flag_unknown_warning_option=yes
13769 else
13770 xorg_cv_cc_flag_unknown_warning_option=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 fi
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13777 CFLAGS="$xorg_testset_save_CFLAGS"
13778 fi
13779
13780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783 fi
13784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 int i;
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"; then :
13795 xorg_cv_cc_flag_unused_command_line_argument=yes
13796 else
13797 xorg_cv_cc_flag_unused_command_line_argument=no
13798 fi
13799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13804 CFLAGS="$xorg_testset_save_CFLAGS"
13805 fi
13806
13807 found="no"
13808
13809 if test $found = "no" ; then
13810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13812 fi
13813
13814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13816 fi
13817
13818 CFLAGS="$CFLAGS -Wbad-function-cast"
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13821 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13822 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13823 if eval \${$cacheid+:} false; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 int i;
13829 int
13830 main ()
13831 {
13832
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 eval $cacheid=yes
13839 else
13840 eval $cacheid=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 fi
13845
13846
13847 CFLAGS="$xorg_testset_save_CFLAGS"
13848
13849 eval supported=\$$cacheid
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13851 $as_echo "$supported" >&6; }
13852 if test "$supported" = "yes" ; then
13853 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13854 found="yes"
13855 fi
13856 fi
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872 xorg_testset_save_CFLAGS="$CFLAGS"
13873
13874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13877 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13878 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 int i;
13884 _ACEOF
13885 if ac_fn_c_try_compile "$LINENO"; then :
13886 xorg_cv_cc_flag_unknown_warning_option=yes
13887 else
13888 xorg_cv_cc_flag_unknown_warning_option=no
13889 fi
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 fi
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13893 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13895 CFLAGS="$xorg_testset_save_CFLAGS"
13896 fi
13897
13898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 fi
13902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13904 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13905 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 int i;
13911 _ACEOF
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913 xorg_cv_cc_flag_unused_command_line_argument=yes
13914 else
13915 xorg_cv_cc_flag_unused_command_line_argument=no
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 fi
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13920 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13922 CFLAGS="$xorg_testset_save_CFLAGS"
13923 fi
13924
13925 found="no"
13926
13927 if test $found = "no" ; then
13928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930 fi
13931
13932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13934 fi
13935
13936 CFLAGS="$CFLAGS -Wold-style-definition"
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13939 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13940 cacheid=xorg_cv_cc_flag__Wold_style_definition
13941 if eval \${$cacheid+:} false; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13946 int i;
13947 int
13948 main ()
13949 {
13950
13951 ;
13952 return 0;
13953 }
13954 _ACEOF
13955 if ac_fn_c_try_link "$LINENO"; then :
13956 eval $cacheid=yes
13957 else
13958 eval $cacheid=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext \
13961 conftest$ac_exeext conftest.$ac_ext
13962 fi
13963
13964
13965 CFLAGS="$xorg_testset_save_CFLAGS"
13966
13967 eval supported=\$$cacheid
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13969 $as_echo "$supported" >&6; }
13970 if test "$supported" = "yes" ; then
13971 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13972 found="yes"
13973 fi
13974 fi
13975
13976 if test $found = "no" ; then
13977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13979 fi
13980
13981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13983 fi
13984
13985 CFLAGS="$CFLAGS -fd"
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13988 $as_echo_n "checking if $CC supports -fd... " >&6; }
13989 cacheid=xorg_cv_cc_flag__fd
13990 if eval \${$cacheid+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 int i;
13996 int
13997 main ()
13998 {
13999
14000 ;
14001 return 0;
14002 }
14003 _ACEOF
14004 if ac_fn_c_try_link "$LINENO"; then :
14005 eval $cacheid=yes
14006 else
14007 eval $cacheid=no
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 fi
14012
14013
14014 CFLAGS="$xorg_testset_save_CFLAGS"
14015
14016 eval supported=\$$cacheid
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14018 $as_echo "$supported" >&6; }
14019 if test "$supported" = "yes" ; then
14020 BASE_CFLAGS="$BASE_CFLAGS -fd"
14021 found="yes"
14022 fi
14023 fi
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039 xorg_testset_save_CFLAGS="$CFLAGS"
14040
14041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14044 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14045 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050 int i;
14051 _ACEOF
14052 if ac_fn_c_try_compile "$LINENO"; then :
14053 xorg_cv_cc_flag_unknown_warning_option=yes
14054 else
14055 xorg_cv_cc_flag_unknown_warning_option=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 fi
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14060 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14062 CFLAGS="$xorg_testset_save_CFLAGS"
14063 fi
14064
14065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14068 fi
14069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14071 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14072 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 int i;
14078 _ACEOF
14079 if ac_fn_c_try_compile "$LINENO"; then :
14080 xorg_cv_cc_flag_unused_command_line_argument=yes
14081 else
14082 xorg_cv_cc_flag_unused_command_line_argument=no
14083 fi
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14087 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14089 CFLAGS="$xorg_testset_save_CFLAGS"
14090 fi
14091
14092 found="no"
14093
14094 if test $found = "no" ; then
14095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14097 fi
14098
14099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14101 fi
14102
14103 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14106 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14107 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14108 if eval \${$cacheid+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113 int i;
14114 int
14115 main ()
14116 {
14117
14118 ;
14119 return 0;
14120 }
14121 _ACEOF
14122 if ac_fn_c_try_link "$LINENO"; then :
14123 eval $cacheid=yes
14124 else
14125 eval $cacheid=no
14126 fi
14127 rm -f core conftest.err conftest.$ac_objext \
14128 conftest$ac_exeext conftest.$ac_ext
14129 fi
14130
14131
14132 CFLAGS="$xorg_testset_save_CFLAGS"
14133
14134 eval supported=\$$cacheid
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14136 $as_echo "$supported" >&6; }
14137 if test "$supported" = "yes" ; then
14138 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14139 found="yes"
14140 fi
14141 fi
14142
14143
14144
14145
14146
14147 # This chunk adds additional warnings that could catch undesired effects.
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161 xorg_testset_save_CFLAGS="$CFLAGS"
14162
14163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14166 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14167 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14168 $as_echo_n "(cached) " >&6
14169 else
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 int i;
14173 _ACEOF
14174 if ac_fn_c_try_compile "$LINENO"; then :
14175 xorg_cv_cc_flag_unknown_warning_option=yes
14176 else
14177 xorg_cv_cc_flag_unknown_warning_option=no
14178 fi
14179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 fi
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14182 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14184 CFLAGS="$xorg_testset_save_CFLAGS"
14185 fi
14186
14187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14190 fi
14191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14193 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14194 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 int i;
14200 _ACEOF
14201 if ac_fn_c_try_compile "$LINENO"; then :
14202 xorg_cv_cc_flag_unused_command_line_argument=yes
14203 else
14204 xorg_cv_cc_flag_unused_command_line_argument=no
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 fi
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14209 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14211 CFLAGS="$xorg_testset_save_CFLAGS"
14212 fi
14213
14214 found="no"
14215
14216 if test $found = "no" ; then
14217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14219 fi
14220
14221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14223 fi
14224
14225 CFLAGS="$CFLAGS -Wunused"
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14228 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
14229 cacheid=xorg_cv_cc_flag__Wunused
14230 if eval \${$cacheid+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 int i;
14236 int
14237 main ()
14238 {
14239
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 eval $cacheid=yes
14246 else
14247 eval $cacheid=no
14248 fi
14249 rm -f core conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
14251 fi
14252
14253
14254 CFLAGS="$xorg_testset_save_CFLAGS"
14255
14256 eval supported=\$$cacheid
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14258 $as_echo "$supported" >&6; }
14259 if test "$supported" = "yes" ; then
14260 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14261 found="yes"
14262 fi
14263 fi
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279 xorg_testset_save_CFLAGS="$CFLAGS"
14280
14281 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14284 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14285 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 int i;
14291 _ACEOF
14292 if ac_fn_c_try_compile "$LINENO"; then :
14293 xorg_cv_cc_flag_unknown_warning_option=yes
14294 else
14295 xorg_cv_cc_flag_unknown_warning_option=no
14296 fi
14297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14300 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14302 CFLAGS="$xorg_testset_save_CFLAGS"
14303 fi
14304
14305 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14308 fi
14309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14311 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14312 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 int i;
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 xorg_cv_cc_flag_unused_command_line_argument=yes
14321 else
14322 xorg_cv_cc_flag_unused_command_line_argument=no
14323 fi
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14327 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14329 CFLAGS="$xorg_testset_save_CFLAGS"
14330 fi
14331
14332 found="no"
14333
14334 if test $found = "no" ; then
14335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14337 fi
14338
14339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14341 fi
14342
14343 CFLAGS="$CFLAGS -Wuninitialized"
14344
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14346 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14347 cacheid=xorg_cv_cc_flag__Wuninitialized
14348 if eval \${$cacheid+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 int i;
14354 int
14355 main ()
14356 {
14357
14358 ;
14359 return 0;
14360 }
14361 _ACEOF
14362 if ac_fn_c_try_link "$LINENO"; then :
14363 eval $cacheid=yes
14364 else
14365 eval $cacheid=no
14366 fi
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 fi
14370
14371
14372 CFLAGS="$xorg_testset_save_CFLAGS"
14373
14374 eval supported=\$$cacheid
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14376 $as_echo "$supported" >&6; }
14377 if test "$supported" = "yes" ; then
14378 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14379 found="yes"
14380 fi
14381 fi
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397 xorg_testset_save_CFLAGS="$CFLAGS"
14398
14399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14402 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14403 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 int i;
14409 _ACEOF
14410 if ac_fn_c_try_compile "$LINENO"; then :
14411 xorg_cv_cc_flag_unknown_warning_option=yes
14412 else
14413 xorg_cv_cc_flag_unknown_warning_option=no
14414 fi
14415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416 fi
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14418 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14420 CFLAGS="$xorg_testset_save_CFLAGS"
14421 fi
14422
14423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14426 fi
14427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14429 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14430 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 int i;
14436 _ACEOF
14437 if ac_fn_c_try_compile "$LINENO"; then :
14438 xorg_cv_cc_flag_unused_command_line_argument=yes
14439 else
14440 xorg_cv_cc_flag_unused_command_line_argument=no
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 fi
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14445 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14447 CFLAGS="$xorg_testset_save_CFLAGS"
14448 fi
14449
14450 found="no"
14451
14452 if test $found = "no" ; then
14453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14455 fi
14456
14457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14459 fi
14460
14461 CFLAGS="$CFLAGS -Wshadow"
14462
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14464 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14465 cacheid=xorg_cv_cc_flag__Wshadow
14466 if eval \${$cacheid+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 int i;
14472 int
14473 main ()
14474 {
14475
14476 ;
14477 return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_c_try_link "$LINENO"; then :
14481 eval $cacheid=yes
14482 else
14483 eval $cacheid=no
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext \
14486 conftest$ac_exeext conftest.$ac_ext
14487 fi
14488
14489
14490 CFLAGS="$xorg_testset_save_CFLAGS"
14491
14492 eval supported=\$$cacheid
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14494 $as_echo "$supported" >&6; }
14495 if test "$supported" = "yes" ; then
14496 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14497 found="yes"
14498 fi
14499 fi
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515 xorg_testset_save_CFLAGS="$CFLAGS"
14516
14517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14520 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14521 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 int i;
14527 _ACEOF
14528 if ac_fn_c_try_compile "$LINENO"; then :
14529 xorg_cv_cc_flag_unknown_warning_option=yes
14530 else
14531 xorg_cv_cc_flag_unknown_warning_option=no
14532 fi
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14536 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14538 CFLAGS="$xorg_testset_save_CFLAGS"
14539 fi
14540
14541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14544 fi
14545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14547 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14548 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553 int i;
14554 _ACEOF
14555 if ac_fn_c_try_compile "$LINENO"; then :
14556 xorg_cv_cc_flag_unused_command_line_argument=yes
14557 else
14558 xorg_cv_cc_flag_unused_command_line_argument=no
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14563 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14565 CFLAGS="$xorg_testset_save_CFLAGS"
14566 fi
14567
14568 found="no"
14569
14570 if test $found = "no" ; then
14571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573 fi
14574
14575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14577 fi
14578
14579 CFLAGS="$CFLAGS -Wmissing-noreturn"
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14582 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14583 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14584 if eval \${$cacheid+:} false; then :
14585 $as_echo_n "(cached) " >&6
14586 else
14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 int i;
14590 int
14591 main ()
14592 {
14593
14594 ;
14595 return 0;
14596 }
14597 _ACEOF
14598 if ac_fn_c_try_link "$LINENO"; then :
14599 eval $cacheid=yes
14600 else
14601 eval $cacheid=no
14602 fi
14603 rm -f core conftest.err conftest.$ac_objext \
14604 conftest$ac_exeext conftest.$ac_ext
14605 fi
14606
14607
14608 CFLAGS="$xorg_testset_save_CFLAGS"
14609
14610 eval supported=\$$cacheid
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14612 $as_echo "$supported" >&6; }
14613 if test "$supported" = "yes" ; then
14614 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14615 found="yes"
14616 fi
14617 fi
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633 xorg_testset_save_CFLAGS="$CFLAGS"
14634
14635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14638 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14639 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 int i;
14645 _ACEOF
14646 if ac_fn_c_try_compile "$LINENO"; then :
14647 xorg_cv_cc_flag_unknown_warning_option=yes
14648 else
14649 xorg_cv_cc_flag_unknown_warning_option=no
14650 fi
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14654 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14656 CFLAGS="$xorg_testset_save_CFLAGS"
14657 fi
14658
14659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662 fi
14663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14665 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14666 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14667 $as_echo_n "(cached) " >&6
14668 else
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 int i;
14672 _ACEOF
14673 if ac_fn_c_try_compile "$LINENO"; then :
14674 xorg_cv_cc_flag_unused_command_line_argument=yes
14675 else
14676 xorg_cv_cc_flag_unused_command_line_argument=no
14677 fi
14678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14681 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14683 CFLAGS="$xorg_testset_save_CFLAGS"
14684 fi
14685
14686 found="no"
14687
14688 if test $found = "no" ; then
14689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14691 fi
14692
14693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14695 fi
14696
14697 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14700 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14701 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14702 if eval \${$cacheid+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14707 int i;
14708 int
14709 main ()
14710 {
14711
14712 ;
14713 return 0;
14714 }
14715 _ACEOF
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 eval $cacheid=yes
14718 else
14719 eval $cacheid=no
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 fi
14724
14725
14726 CFLAGS="$xorg_testset_save_CFLAGS"
14727
14728 eval supported=\$$cacheid
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14730 $as_echo "$supported" >&6; }
14731 if test "$supported" = "yes" ; then
14732 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14733 found="yes"
14734 fi
14735 fi
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751 xorg_testset_save_CFLAGS="$CFLAGS"
14752
14753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14756 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14757 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14758 $as_echo_n "(cached) " >&6
14759 else
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h. */
14762 int i;
14763 _ACEOF
14764 if ac_fn_c_try_compile "$LINENO"; then :
14765 xorg_cv_cc_flag_unknown_warning_option=yes
14766 else
14767 xorg_cv_cc_flag_unknown_warning_option=no
14768 fi
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 fi
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14772 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14774 CFLAGS="$xorg_testset_save_CFLAGS"
14775 fi
14776
14777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780 fi
14781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14783 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14784 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 int i;
14790 _ACEOF
14791 if ac_fn_c_try_compile "$LINENO"; then :
14792 xorg_cv_cc_flag_unused_command_line_argument=yes
14793 else
14794 xorg_cv_cc_flag_unused_command_line_argument=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 fi
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14799 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14801 CFLAGS="$xorg_testset_save_CFLAGS"
14802 fi
14803
14804 found="no"
14805
14806 if test $found = "no" ; then
14807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14809 fi
14810
14811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14813 fi
14814
14815 CFLAGS="$CFLAGS -Wredundant-decls"
14816
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14818 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14819 cacheid=xorg_cv_cc_flag__Wredundant_decls
14820 if eval \${$cacheid+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 int i;
14826 int
14827 main ()
14828 {
14829
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"; then :
14835 eval $cacheid=yes
14836 else
14837 eval $cacheid=no
14838 fi
14839 rm -f core conftest.err conftest.$ac_objext \
14840 conftest$ac_exeext conftest.$ac_ext
14841 fi
14842
14843
14844 CFLAGS="$xorg_testset_save_CFLAGS"
14845
14846 eval supported=\$$cacheid
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14848 $as_echo "$supported" >&6; }
14849 if test "$supported" = "yes" ; then
14850 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14851 found="yes"
14852 fi
14853 fi
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869 xorg_testset_save_CFLAGS="$CFLAGS"
14870
14871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14874 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14875 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880 int i;
14881 _ACEOF
14882 if ac_fn_c_try_compile "$LINENO"; then :
14883 xorg_cv_cc_flag_unknown_warning_option=yes
14884 else
14885 xorg_cv_cc_flag_unknown_warning_option=no
14886 fi
14887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888 fi
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14890 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14892 CFLAGS="$xorg_testset_save_CFLAGS"
14893 fi
14894
14895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14898 fi
14899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14901 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14902 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14903 $as_echo_n "(cached) " >&6
14904 else
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906 /* end confdefs.h. */
14907 int i;
14908 _ACEOF
14909 if ac_fn_c_try_compile "$LINENO"; then :
14910 xorg_cv_cc_flag_unused_command_line_argument=yes
14911 else
14912 xorg_cv_cc_flag_unused_command_line_argument=no
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915 fi
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14917 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14919 CFLAGS="$xorg_testset_save_CFLAGS"
14920 fi
14921
14922 found="no"
14923
14924 if test $found = "no" ; then
14925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14927 fi
14928
14929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14931 fi
14932
14933 CFLAGS="$CFLAGS -Wlogical-op"
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14936 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14937 cacheid=xorg_cv_cc_flag__Wlogical_op
14938 if eval \${$cacheid+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14943 int i;
14944 int
14945 main ()
14946 {
14947
14948 ;
14949 return 0;
14950 }
14951 _ACEOF
14952 if ac_fn_c_try_link "$LINENO"; then :
14953 eval $cacheid=yes
14954 else
14955 eval $cacheid=no
14956 fi
14957 rm -f core conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959 fi
14960
14961
14962 CFLAGS="$xorg_testset_save_CFLAGS"
14963
14964 eval supported=\$$cacheid
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14966 $as_echo "$supported" >&6; }
14967 if test "$supported" = "yes" ; then
14968 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14969 found="yes"
14970 fi
14971 fi
14972
14973
14974
14975 # These are currently disabled because they are noisy. They will be enabled
14976 # in the future once the codebase is sufficiently modernized to silence
14977 # them. For now, I don't want them to drown out the other warnings.
14978 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14979 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14980 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14981
14982 # Turn some warnings into errors, so we don't accidently get successful builds
14983 # when there are problems that should be fixed.
14984
14985 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999 xorg_testset_save_CFLAGS="$CFLAGS"
15000
15001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15004 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15005 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010 int i;
15011 _ACEOF
15012 if ac_fn_c_try_compile "$LINENO"; then :
15013 xorg_cv_cc_flag_unknown_warning_option=yes
15014 else
15015 xorg_cv_cc_flag_unknown_warning_option=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 fi
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15020 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15022 CFLAGS="$xorg_testset_save_CFLAGS"
15023 fi
15024
15025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15028 fi
15029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15031 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15032 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037 int i;
15038 _ACEOF
15039 if ac_fn_c_try_compile "$LINENO"; then :
15040 xorg_cv_cc_flag_unused_command_line_argument=yes
15041 else
15042 xorg_cv_cc_flag_unused_command_line_argument=no
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15047 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15049 CFLAGS="$xorg_testset_save_CFLAGS"
15050 fi
15051
15052 found="no"
15053
15054 if test $found = "no" ; then
15055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057 fi
15058
15059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15061 fi
15062
15063 CFLAGS="$CFLAGS -Werror=implicit"
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15066 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15067 cacheid=xorg_cv_cc_flag__Werror_implicit
15068 if eval \${$cacheid+:} false; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 int i;
15074 int
15075 main ()
15076 {
15077
15078 ;
15079 return 0;
15080 }
15081 _ACEOF
15082 if ac_fn_c_try_link "$LINENO"; then :
15083 eval $cacheid=yes
15084 else
15085 eval $cacheid=no
15086 fi
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 fi
15090
15091
15092 CFLAGS="$xorg_testset_save_CFLAGS"
15093
15094 eval supported=\$$cacheid
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15096 $as_echo "$supported" >&6; }
15097 if test "$supported" = "yes" ; then
15098 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15099 found="yes"
15100 fi
15101 fi
15102
15103 if test $found = "no" ; then
15104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15106 fi
15107
15108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15110 fi
15111
15112 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15113
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15115 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15116 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15117 if eval \${$cacheid+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 int
15124 main ()
15125 {
15126
15127 ;
15128 return 0;
15129 }
15130 _ACEOF
15131 if ac_fn_c_try_link "$LINENO"; then :
15132 eval $cacheid=yes
15133 else
15134 eval $cacheid=no
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 fi
15139
15140
15141 CFLAGS="$xorg_testset_save_CFLAGS"
15142
15143 eval supported=\$$cacheid
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15145 $as_echo "$supported" >&6; }
15146 if test "$supported" = "yes" ; then
15147 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15148 found="yes"
15149 fi
15150 fi
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166 xorg_testset_save_CFLAGS="$CFLAGS"
15167
15168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 int i;
15178 _ACEOF
15179 if ac_fn_c_try_compile "$LINENO"; then :
15180 xorg_cv_cc_flag_unknown_warning_option=yes
15181 else
15182 xorg_cv_cc_flag_unknown_warning_option=no
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15189 CFLAGS="$xorg_testset_save_CFLAGS"
15190 fi
15191
15192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15195 fi
15196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 int i;
15205 _ACEOF
15206 if ac_fn_c_try_compile "$LINENO"; then :
15207 xorg_cv_cc_flag_unused_command_line_argument=yes
15208 else
15209 xorg_cv_cc_flag_unused_command_line_argument=no
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15216 CFLAGS="$xorg_testset_save_CFLAGS"
15217 fi
15218
15219 found="no"
15220
15221 if test $found = "no" ; then
15222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224 fi
15225
15226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15228 fi
15229
15230 CFLAGS="$CFLAGS -Werror=nonnull"
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15233 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15234 cacheid=xorg_cv_cc_flag__Werror_nonnull
15235 if eval \${$cacheid+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 int i;
15241 int
15242 main ()
15243 {
15244
15245 ;
15246 return 0;
15247 }
15248 _ACEOF
15249 if ac_fn_c_try_link "$LINENO"; then :
15250 eval $cacheid=yes
15251 else
15252 eval $cacheid=no
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15256 fi
15257
15258
15259 CFLAGS="$xorg_testset_save_CFLAGS"
15260
15261 eval supported=\$$cacheid
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15263 $as_echo "$supported" >&6; }
15264 if test "$supported" = "yes" ; then
15265 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15266 found="yes"
15267 fi
15268 fi
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284 xorg_testset_save_CFLAGS="$CFLAGS"
15285
15286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292 else
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295 int i;
15296 _ACEOF
15297 if ac_fn_c_try_compile "$LINENO"; then :
15298 xorg_cv_cc_flag_unknown_warning_option=yes
15299 else
15300 xorg_cv_cc_flag_unknown_warning_option=no
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15307 CFLAGS="$xorg_testset_save_CFLAGS"
15308 fi
15309
15310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313 fi
15314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15318 $as_echo_n "(cached) " >&6
15319 else
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 int i;
15323 _ACEOF
15324 if ac_fn_c_try_compile "$LINENO"; then :
15325 xorg_cv_cc_flag_unused_command_line_argument=yes
15326 else
15327 xorg_cv_cc_flag_unused_command_line_argument=no
15328 fi
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 fi
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15334 CFLAGS="$xorg_testset_save_CFLAGS"
15335 fi
15336
15337 found="no"
15338
15339 if test $found = "no" ; then
15340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342 fi
15343
15344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15346 fi
15347
15348 CFLAGS="$CFLAGS -Werror=init-self"
15349
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15351 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15352 cacheid=xorg_cv_cc_flag__Werror_init_self
15353 if eval \${$cacheid+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 int i;
15359 int
15360 main ()
15361 {
15362
15363 ;
15364 return 0;
15365 }
15366 _ACEOF
15367 if ac_fn_c_try_link "$LINENO"; then :
15368 eval $cacheid=yes
15369 else
15370 eval $cacheid=no
15371 fi
15372 rm -f core conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 fi
15375
15376
15377 CFLAGS="$xorg_testset_save_CFLAGS"
15378
15379 eval supported=\$$cacheid
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15381 $as_echo "$supported" >&6; }
15382 if test "$supported" = "yes" ; then
15383 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15384 found="yes"
15385 fi
15386 fi
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402 xorg_testset_save_CFLAGS="$CFLAGS"
15403
15404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15407 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15408 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 int i;
15414 _ACEOF
15415 if ac_fn_c_try_compile "$LINENO"; then :
15416 xorg_cv_cc_flag_unknown_warning_option=yes
15417 else
15418 xorg_cv_cc_flag_unknown_warning_option=no
15419 fi
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15423 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15425 CFLAGS="$xorg_testset_save_CFLAGS"
15426 fi
15427
15428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431 fi
15432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15434 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15435 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440 int i;
15441 _ACEOF
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443 xorg_cv_cc_flag_unused_command_line_argument=yes
15444 else
15445 xorg_cv_cc_flag_unused_command_line_argument=no
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 fi
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15450 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15452 CFLAGS="$xorg_testset_save_CFLAGS"
15453 fi
15454
15455 found="no"
15456
15457 if test $found = "no" ; then
15458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15460 fi
15461
15462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15464 fi
15465
15466 CFLAGS="$CFLAGS -Werror=main"
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15469 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15470 cacheid=xorg_cv_cc_flag__Werror_main
15471 if eval \${$cacheid+:} false; then :
15472 $as_echo_n "(cached) " >&6
15473 else
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476 int i;
15477 int
15478 main ()
15479 {
15480
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 if ac_fn_c_try_link "$LINENO"; then :
15486 eval $cacheid=yes
15487 else
15488 eval $cacheid=no
15489 fi
15490 rm -f core conftest.err conftest.$ac_objext \
15491 conftest$ac_exeext conftest.$ac_ext
15492 fi
15493
15494
15495 CFLAGS="$xorg_testset_save_CFLAGS"
15496
15497 eval supported=\$$cacheid
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15499 $as_echo "$supported" >&6; }
15500 if test "$supported" = "yes" ; then
15501 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15502 found="yes"
15503 fi
15504 fi
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520 xorg_testset_save_CFLAGS="$CFLAGS"
15521
15522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15525 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15526 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15527 $as_echo_n "(cached) " >&6
15528 else
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15531 int i;
15532 _ACEOF
15533 if ac_fn_c_try_compile "$LINENO"; then :
15534 xorg_cv_cc_flag_unknown_warning_option=yes
15535 else
15536 xorg_cv_cc_flag_unknown_warning_option=no
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 fi
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15541 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15543 CFLAGS="$xorg_testset_save_CFLAGS"
15544 fi
15545
15546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15549 fi
15550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15552 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15553 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15554 $as_echo_n "(cached) " >&6
15555 else
15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15558 int i;
15559 _ACEOF
15560 if ac_fn_c_try_compile "$LINENO"; then :
15561 xorg_cv_cc_flag_unused_command_line_argument=yes
15562 else
15563 xorg_cv_cc_flag_unused_command_line_argument=no
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 fi
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15568 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15570 CFLAGS="$xorg_testset_save_CFLAGS"
15571 fi
15572
15573 found="no"
15574
15575 if test $found = "no" ; then
15576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15578 fi
15579
15580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15582 fi
15583
15584 CFLAGS="$CFLAGS -Werror=missing-braces"
15585
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15587 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15588 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15589 if eval \${$cacheid+:} false; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15594 int i;
15595 int
15596 main ()
15597 {
15598
15599 ;
15600 return 0;
15601 }
15602 _ACEOF
15603 if ac_fn_c_try_link "$LINENO"; then :
15604 eval $cacheid=yes
15605 else
15606 eval $cacheid=no
15607 fi
15608 rm -f core conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
15610 fi
15611
15612
15613 CFLAGS="$xorg_testset_save_CFLAGS"
15614
15615 eval supported=\$$cacheid
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15617 $as_echo "$supported" >&6; }
15618 if test "$supported" = "yes" ; then
15619 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15620 found="yes"
15621 fi
15622 fi
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638 xorg_testset_save_CFLAGS="$CFLAGS"
15639
15640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15643 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15644 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 int i;
15650 _ACEOF
15651 if ac_fn_c_try_compile "$LINENO"; then :
15652 xorg_cv_cc_flag_unknown_warning_option=yes
15653 else
15654 xorg_cv_cc_flag_unknown_warning_option=no
15655 fi
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 fi
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15659 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15661 CFLAGS="$xorg_testset_save_CFLAGS"
15662 fi
15663
15664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15667 fi
15668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15670 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15671 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 int i;
15677 _ACEOF
15678 if ac_fn_c_try_compile "$LINENO"; then :
15679 xorg_cv_cc_flag_unused_command_line_argument=yes
15680 else
15681 xorg_cv_cc_flag_unused_command_line_argument=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15686 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15688 CFLAGS="$xorg_testset_save_CFLAGS"
15689 fi
15690
15691 found="no"
15692
15693 if test $found = "no" ; then
15694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15696 fi
15697
15698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15700 fi
15701
15702 CFLAGS="$CFLAGS -Werror=sequence-point"
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15705 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15706 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15707 if eval \${$cacheid+:} false; then :
15708 $as_echo_n "(cached) " >&6
15709 else
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 int i;
15713 int
15714 main ()
15715 {
15716
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 eval $cacheid=yes
15723 else
15724 eval $cacheid=no
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15728 fi
15729
15730
15731 CFLAGS="$xorg_testset_save_CFLAGS"
15732
15733 eval supported=\$$cacheid
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15735 $as_echo "$supported" >&6; }
15736 if test "$supported" = "yes" ; then
15737 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15738 found="yes"
15739 fi
15740 fi
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756 xorg_testset_save_CFLAGS="$CFLAGS"
15757
15758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15761 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15762 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15763 $as_echo_n "(cached) " >&6
15764 else
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 int i;
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 xorg_cv_cc_flag_unknown_warning_option=yes
15771 else
15772 xorg_cv_cc_flag_unknown_warning_option=no
15773 fi
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 fi
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15777 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15779 CFLAGS="$xorg_testset_save_CFLAGS"
15780 fi
15781
15782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785 fi
15786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15788 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15789 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15790 $as_echo_n "(cached) " >&6
15791 else
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15794 int i;
15795 _ACEOF
15796 if ac_fn_c_try_compile "$LINENO"; then :
15797 xorg_cv_cc_flag_unused_command_line_argument=yes
15798 else
15799 xorg_cv_cc_flag_unused_command_line_argument=no
15800 fi
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 fi
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15804 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15806 CFLAGS="$xorg_testset_save_CFLAGS"
15807 fi
15808
15809 found="no"
15810
15811 if test $found = "no" ; then
15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814 fi
15815
15816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818 fi
15819
15820 CFLAGS="$CFLAGS -Werror=return-type"
15821
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15823 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15824 cacheid=xorg_cv_cc_flag__Werror_return_type
15825 if eval \${$cacheid+:} false; then :
15826 $as_echo_n "(cached) " >&6
15827 else
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 int i;
15831 int
15832 main ()
15833 {
15834
15835 ;
15836 return 0;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_link "$LINENO"; then :
15840 eval $cacheid=yes
15841 else
15842 eval $cacheid=no
15843 fi
15844 rm -f core conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15846 fi
15847
15848
15849 CFLAGS="$xorg_testset_save_CFLAGS"
15850
15851 eval supported=\$$cacheid
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15853 $as_echo "$supported" >&6; }
15854 if test "$supported" = "yes" ; then
15855 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15856 found="yes"
15857 fi
15858 fi
15859
15860 if test $found = "no" ; then
15861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15863 fi
15864
15865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15867 fi
15868
15869 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15870
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15872 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15873 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15874 if eval \${$cacheid+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 int i;
15880 int
15881 main ()
15882 {
15883
15884 ;
15885 return 0;
15886 }
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889 eval $cacheid=yes
15890 else
15891 eval $cacheid=no
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895 fi
15896
15897
15898 CFLAGS="$xorg_testset_save_CFLAGS"
15899
15900 eval supported=\$$cacheid
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15902 $as_echo "$supported" >&6; }
15903 if test "$supported" = "yes" ; then
15904 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15905 found="yes"
15906 fi
15907 fi
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923 xorg_testset_save_CFLAGS="$CFLAGS"
15924
15925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15930 $as_echo_n "(cached) " >&6
15931 else
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15934 int i;
15935 _ACEOF
15936 if ac_fn_c_try_compile "$LINENO"; then :
15937 xorg_cv_cc_flag_unknown_warning_option=yes
15938 else
15939 xorg_cv_cc_flag_unknown_warning_option=no
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942 fi
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15946 CFLAGS="$xorg_testset_save_CFLAGS"
15947 fi
15948
15949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15952 fi
15953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15957 $as_echo_n "(cached) " >&6
15958 else
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 int i;
15962 _ACEOF
15963 if ac_fn_c_try_compile "$LINENO"; then :
15964 xorg_cv_cc_flag_unused_command_line_argument=yes
15965 else
15966 xorg_cv_cc_flag_unused_command_line_argument=no
15967 fi
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15973 CFLAGS="$xorg_testset_save_CFLAGS"
15974 fi
15975
15976 found="no"
15977
15978 if test $found = "no" ; then
15979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15981 fi
15982
15983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15985 fi
15986
15987 CFLAGS="$CFLAGS -Werror=trigraphs"
15988
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15990 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15991 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15992 if eval \${$cacheid+:} false; then :
15993 $as_echo_n "(cached) " >&6
15994 else
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 int i;
15998 int
15999 main ()
16000 {
16001
16002 ;
16003 return 0;
16004 }
16005 _ACEOF
16006 if ac_fn_c_try_link "$LINENO"; then :
16007 eval $cacheid=yes
16008 else
16009 eval $cacheid=no
16010 fi
16011 rm -f core conftest.err conftest.$ac_objext \
16012 conftest$ac_exeext conftest.$ac_ext
16013 fi
16014
16015
16016 CFLAGS="$xorg_testset_save_CFLAGS"
16017
16018 eval supported=\$$cacheid
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16020 $as_echo "$supported" >&6; }
16021 if test "$supported" = "yes" ; then
16022 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16023 found="yes"
16024 fi
16025 fi
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041 xorg_testset_save_CFLAGS="$CFLAGS"
16042
16043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16052 int i;
16053 _ACEOF
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055 xorg_cv_cc_flag_unknown_warning_option=yes
16056 else
16057 xorg_cv_cc_flag_unknown_warning_option=no
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 fi
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16064 CFLAGS="$xorg_testset_save_CFLAGS"
16065 fi
16066
16067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16070 fi
16071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16075 $as_echo_n "(cached) " >&6
16076 else
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079 int i;
16080 _ACEOF
16081 if ac_fn_c_try_compile "$LINENO"; then :
16082 xorg_cv_cc_flag_unused_command_line_argument=yes
16083 else
16084 xorg_cv_cc_flag_unused_command_line_argument=no
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087 fi
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16091 CFLAGS="$xorg_testset_save_CFLAGS"
16092 fi
16093
16094 found="no"
16095
16096 if test $found = "no" ; then
16097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16099 fi
16100
16101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16103 fi
16104
16105 CFLAGS="$CFLAGS -Werror=array-bounds"
16106
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16108 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16109 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16110 if eval \${$cacheid+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112 else
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 int i;
16116 int
16117 main ()
16118 {
16119
16120 ;
16121 return 0;
16122 }
16123 _ACEOF
16124 if ac_fn_c_try_link "$LINENO"; then :
16125 eval $cacheid=yes
16126 else
16127 eval $cacheid=no
16128 fi
16129 rm -f core conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16131 fi
16132
16133
16134 CFLAGS="$xorg_testset_save_CFLAGS"
16135
16136 eval supported=\$$cacheid
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16138 $as_echo "$supported" >&6; }
16139 if test "$supported" = "yes" ; then
16140 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16141 found="yes"
16142 fi
16143 fi
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159 xorg_testset_save_CFLAGS="$CFLAGS"
16160
16161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 int i;
16171 _ACEOF
16172 if ac_fn_c_try_compile "$LINENO"; then :
16173 xorg_cv_cc_flag_unknown_warning_option=yes
16174 else
16175 xorg_cv_cc_flag_unknown_warning_option=no
16176 fi
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 fi
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16182 CFLAGS="$xorg_testset_save_CFLAGS"
16183 fi
16184
16185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16188 fi
16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16193 $as_echo_n "(cached) " >&6
16194 else
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197 int i;
16198 _ACEOF
16199 if ac_fn_c_try_compile "$LINENO"; then :
16200 xorg_cv_cc_flag_unused_command_line_argument=yes
16201 else
16202 xorg_cv_cc_flag_unused_command_line_argument=no
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 fi
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16209 CFLAGS="$xorg_testset_save_CFLAGS"
16210 fi
16211
16212 found="no"
16213
16214 if test $found = "no" ; then
16215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16217 fi
16218
16219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16221 fi
16222
16223 CFLAGS="$CFLAGS -Werror=write-strings"
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16226 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16227 cacheid=xorg_cv_cc_flag__Werror_write_strings
16228 if eval \${$cacheid+:} false; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 int i;
16234 int
16235 main ()
16236 {
16237
16238 ;
16239 return 0;
16240 }
16241 _ACEOF
16242 if ac_fn_c_try_link "$LINENO"; then :
16243 eval $cacheid=yes
16244 else
16245 eval $cacheid=no
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext \
16248 conftest$ac_exeext conftest.$ac_ext
16249 fi
16250
16251
16252 CFLAGS="$xorg_testset_save_CFLAGS"
16253
16254 eval supported=\$$cacheid
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16256 $as_echo "$supported" >&6; }
16257 if test "$supported" = "yes" ; then
16258 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16259 found="yes"
16260 fi
16261 fi
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277 xorg_testset_save_CFLAGS="$CFLAGS"
16278
16279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16284 $as_echo_n "(cached) " >&6
16285 else
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16288 int i;
16289 _ACEOF
16290 if ac_fn_c_try_compile "$LINENO"; then :
16291 xorg_cv_cc_flag_unknown_warning_option=yes
16292 else
16293 xorg_cv_cc_flag_unknown_warning_option=no
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16300 CFLAGS="$xorg_testset_save_CFLAGS"
16301 fi
16302
16303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306 fi
16307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16311 $as_echo_n "(cached) " >&6
16312 else
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16315 int i;
16316 _ACEOF
16317 if ac_fn_c_try_compile "$LINENO"; then :
16318 xorg_cv_cc_flag_unused_command_line_argument=yes
16319 else
16320 xorg_cv_cc_flag_unused_command_line_argument=no
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 fi
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16327 CFLAGS="$xorg_testset_save_CFLAGS"
16328 fi
16329
16330 found="no"
16331
16332 if test $found = "no" ; then
16333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16335 fi
16336
16337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16339 fi
16340
16341 CFLAGS="$CFLAGS -Werror=address"
16342
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16344 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16345 cacheid=xorg_cv_cc_flag__Werror_address
16346 if eval \${$cacheid+:} false; then :
16347 $as_echo_n "(cached) " >&6
16348 else
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 int i;
16352 int
16353 main ()
16354 {
16355
16356 ;
16357 return 0;
16358 }
16359 _ACEOF
16360 if ac_fn_c_try_link "$LINENO"; then :
16361 eval $cacheid=yes
16362 else
16363 eval $cacheid=no
16364 fi
16365 rm -f core conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16367 fi
16368
16369
16370 CFLAGS="$xorg_testset_save_CFLAGS"
16371
16372 eval supported=\$$cacheid
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16374 $as_echo "$supported" >&6; }
16375 if test "$supported" = "yes" ; then
16376 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16377 found="yes"
16378 fi
16379 fi
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395 xorg_testset_save_CFLAGS="$CFLAGS"
16396
16397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406 int i;
16407 _ACEOF
16408 if ac_fn_c_try_compile "$LINENO"; then :
16409 xorg_cv_cc_flag_unknown_warning_option=yes
16410 else
16411 xorg_cv_cc_flag_unknown_warning_option=no
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 fi
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16418 CFLAGS="$xorg_testset_save_CFLAGS"
16419 fi
16420
16421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424 fi
16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16429 $as_echo_n "(cached) " >&6
16430 else
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 int i;
16434 _ACEOF
16435 if ac_fn_c_try_compile "$LINENO"; then :
16436 xorg_cv_cc_flag_unused_command_line_argument=yes
16437 else
16438 xorg_cv_cc_flag_unused_command_line_argument=no
16439 fi
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 fi
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16445 CFLAGS="$xorg_testset_save_CFLAGS"
16446 fi
16447
16448 found="no"
16449
16450 if test $found = "no" ; then
16451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453 fi
16454
16455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16457 fi
16458
16459 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16460
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16462 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16463 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16464 if eval \${$cacheid+:} false; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 int i;
16470 int
16471 main ()
16472 {
16473
16474 ;
16475 return 0;
16476 }
16477 _ACEOF
16478 if ac_fn_c_try_link "$LINENO"; then :
16479 eval $cacheid=yes
16480 else
16481 eval $cacheid=no
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext \
16484 conftest$ac_exeext conftest.$ac_ext
16485 fi
16486
16487
16488 CFLAGS="$xorg_testset_save_CFLAGS"
16489
16490 eval supported=\$$cacheid
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16492 $as_echo "$supported" >&6; }
16493 if test "$supported" = "yes" ; then
16494 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16495 found="yes"
16496 fi
16497 fi
16498
16499 if test $found = "no" ; then
16500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502 fi
16503
16504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16506 fi
16507
16508 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16509
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16511 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16512 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16513 if eval \${$cacheid+:} false; then :
16514 $as_echo_n "(cached) " >&6
16515 else
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 int i;
16519 int
16520 main ()
16521 {
16522
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 if ac_fn_c_try_link "$LINENO"; then :
16528 eval $cacheid=yes
16529 else
16530 eval $cacheid=no
16531 fi
16532 rm -f core conftest.err conftest.$ac_objext \
16533 conftest$ac_exeext conftest.$ac_ext
16534 fi
16535
16536
16537 CFLAGS="$xorg_testset_save_CFLAGS"
16538
16539 eval supported=\$$cacheid
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16541 $as_echo "$supported" >&6; }
16542 if test "$supported" = "yes" ; then
16543 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16544 found="yes"
16545 fi
16546 fi
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562 xorg_testset_save_CFLAGS="$CFLAGS"
16563
16564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16569 $as_echo_n "(cached) " >&6
16570 else
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 int i;
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"; then :
16576 xorg_cv_cc_flag_unknown_warning_option=yes
16577 else
16578 xorg_cv_cc_flag_unknown_warning_option=no
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16585 CFLAGS="$xorg_testset_save_CFLAGS"
16586 fi
16587
16588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16591 fi
16592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16596 $as_echo_n "(cached) " >&6
16597 else
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 int i;
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"; then :
16603 xorg_cv_cc_flag_unused_command_line_argument=yes
16604 else
16605 xorg_cv_cc_flag_unused_command_line_argument=no
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 fi
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16612 CFLAGS="$xorg_testset_save_CFLAGS"
16613 fi
16614
16615 found="no"
16616
16617 if test $found = "no" ; then
16618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620 fi
16621
16622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624 fi
16625
16626 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16627
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16629 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16630 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16631 if eval \${$cacheid+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16636 int i;
16637 int
16638 main ()
16639 {
16640
16641 ;
16642 return 0;
16643 }
16644 _ACEOF
16645 if ac_fn_c_try_link "$LINENO"; then :
16646 eval $cacheid=yes
16647 else
16648 eval $cacheid=no
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 fi
16653
16654
16655 CFLAGS="$xorg_testset_save_CFLAGS"
16656
16657 eval supported=\$$cacheid
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16659 $as_echo "$supported" >&6; }
16660 if test "$supported" = "yes" ; then
16661 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16662 found="yes"
16663 fi
16664 fi
16665
16666 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16667 else
16668 { $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
16669 $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;}
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683 xorg_testset_save_CFLAGS="$CFLAGS"
16684
16685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16690 $as_echo_n "(cached) " >&6
16691 else
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16694 int i;
16695 _ACEOF
16696 if ac_fn_c_try_compile "$LINENO"; then :
16697 xorg_cv_cc_flag_unknown_warning_option=yes
16698 else
16699 xorg_cv_cc_flag_unknown_warning_option=no
16700 fi
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 fi
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16706 CFLAGS="$xorg_testset_save_CFLAGS"
16707 fi
16708
16709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16712 fi
16713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721 int i;
16722 _ACEOF
16723 if ac_fn_c_try_compile "$LINENO"; then :
16724 xorg_cv_cc_flag_unused_command_line_argument=yes
16725 else
16726 xorg_cv_cc_flag_unused_command_line_argument=no
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16733 CFLAGS="$xorg_testset_save_CFLAGS"
16734 fi
16735
16736 found="no"
16737
16738 if test $found = "no" ; then
16739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16741 fi
16742
16743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16745 fi
16746
16747 CFLAGS="$CFLAGS -Wimplicit"
16748
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16750 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16751 cacheid=xorg_cv_cc_flag__Wimplicit
16752 if eval \${$cacheid+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757 int i;
16758 int
16759 main ()
16760 {
16761
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"; then :
16767 eval $cacheid=yes
16768 else
16769 eval $cacheid=no
16770 fi
16771 rm -f core conftest.err conftest.$ac_objext \
16772 conftest$ac_exeext conftest.$ac_ext
16773 fi
16774
16775
16776 CFLAGS="$xorg_testset_save_CFLAGS"
16777
16778 eval supported=\$$cacheid
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16780 $as_echo "$supported" >&6; }
16781 if test "$supported" = "yes" ; then
16782 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16783 found="yes"
16784 fi
16785 fi
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801 xorg_testset_save_CFLAGS="$CFLAGS"
16802
16803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16808 $as_echo_n "(cached) " >&6
16809 else
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812 int i;
16813 _ACEOF
16814 if ac_fn_c_try_compile "$LINENO"; then :
16815 xorg_cv_cc_flag_unknown_warning_option=yes
16816 else
16817 xorg_cv_cc_flag_unknown_warning_option=no
16818 fi
16819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820 fi
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16824 CFLAGS="$xorg_testset_save_CFLAGS"
16825 fi
16826
16827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16830 fi
16831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16839 int i;
16840 _ACEOF
16841 if ac_fn_c_try_compile "$LINENO"; then :
16842 xorg_cv_cc_flag_unused_command_line_argument=yes
16843 else
16844 xorg_cv_cc_flag_unused_command_line_argument=no
16845 fi
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 fi
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16851 CFLAGS="$xorg_testset_save_CFLAGS"
16852 fi
16853
16854 found="no"
16855
16856 if test $found = "no" ; then
16857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16859 fi
16860
16861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16863 fi
16864
16865 CFLAGS="$CFLAGS -Wnonnull"
16866
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16868 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16869 cacheid=xorg_cv_cc_flag__Wnonnull
16870 if eval \${$cacheid+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 int i;
16876 int
16877 main ()
16878 {
16879
16880 ;
16881 return 0;
16882 }
16883 _ACEOF
16884 if ac_fn_c_try_link "$LINENO"; then :
16885 eval $cacheid=yes
16886 else
16887 eval $cacheid=no
16888 fi
16889 rm -f core conftest.err conftest.$ac_objext \
16890 conftest$ac_exeext conftest.$ac_ext
16891 fi
16892
16893
16894 CFLAGS="$xorg_testset_save_CFLAGS"
16895
16896 eval supported=\$$cacheid
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16898 $as_echo "$supported" >&6; }
16899 if test "$supported" = "yes" ; then
16900 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16901 found="yes"
16902 fi
16903 fi
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919 xorg_testset_save_CFLAGS="$CFLAGS"
16920
16921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16926 $as_echo_n "(cached) " >&6
16927 else
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16930 int i;
16931 _ACEOF
16932 if ac_fn_c_try_compile "$LINENO"; then :
16933 xorg_cv_cc_flag_unknown_warning_option=yes
16934 else
16935 xorg_cv_cc_flag_unknown_warning_option=no
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 fi
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16942 CFLAGS="$xorg_testset_save_CFLAGS"
16943 fi
16944
16945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16948 fi
16949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16953 $as_echo_n "(cached) " >&6
16954 else
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 int i;
16958 _ACEOF
16959 if ac_fn_c_try_compile "$LINENO"; then :
16960 xorg_cv_cc_flag_unused_command_line_argument=yes
16961 else
16962 xorg_cv_cc_flag_unused_command_line_argument=no
16963 fi
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 fi
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16969 CFLAGS="$xorg_testset_save_CFLAGS"
16970 fi
16971
16972 found="no"
16973
16974 if test $found = "no" ; then
16975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977 fi
16978
16979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16981 fi
16982
16983 CFLAGS="$CFLAGS -Winit-self"
16984
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16986 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16987 cacheid=xorg_cv_cc_flag__Winit_self
16988 if eval \${$cacheid+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 int i;
16994 int
16995 main ()
16996 {
16997
16998 ;
16999 return 0;
17000 }
17001 _ACEOF
17002 if ac_fn_c_try_link "$LINENO"; then :
17003 eval $cacheid=yes
17004 else
17005 eval $cacheid=no
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009 fi
17010
17011
17012 CFLAGS="$xorg_testset_save_CFLAGS"
17013
17014 eval supported=\$$cacheid
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17016 $as_echo "$supported" >&6; }
17017 if test "$supported" = "yes" ; then
17018 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17019 found="yes"
17020 fi
17021 fi
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037 xorg_testset_save_CFLAGS="$CFLAGS"
17038
17039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17042 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17043 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17044 $as_echo_n "(cached) " >&6
17045 else
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17048 int i;
17049 _ACEOF
17050 if ac_fn_c_try_compile "$LINENO"; then :
17051 xorg_cv_cc_flag_unknown_warning_option=yes
17052 else
17053 xorg_cv_cc_flag_unknown_warning_option=no
17054 fi
17055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056 fi
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17058 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17060 CFLAGS="$xorg_testset_save_CFLAGS"
17061 fi
17062
17063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17066 fi
17067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17069 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17070 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075 int i;
17076 _ACEOF
17077 if ac_fn_c_try_compile "$LINENO"; then :
17078 xorg_cv_cc_flag_unused_command_line_argument=yes
17079 else
17080 xorg_cv_cc_flag_unused_command_line_argument=no
17081 fi
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 fi
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17085 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17087 CFLAGS="$xorg_testset_save_CFLAGS"
17088 fi
17089
17090 found="no"
17091
17092 if test $found = "no" ; then
17093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095 fi
17096
17097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17099 fi
17100
17101 CFLAGS="$CFLAGS -Wmain"
17102
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17104 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
17105 cacheid=xorg_cv_cc_flag__Wmain
17106 if eval \${$cacheid+:} false; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17111 int i;
17112 int
17113 main ()
17114 {
17115
17116 ;
17117 return 0;
17118 }
17119 _ACEOF
17120 if ac_fn_c_try_link "$LINENO"; then :
17121 eval $cacheid=yes
17122 else
17123 eval $cacheid=no
17124 fi
17125 rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17127 fi
17128
17129
17130 CFLAGS="$xorg_testset_save_CFLAGS"
17131
17132 eval supported=\$$cacheid
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17134 $as_echo "$supported" >&6; }
17135 if test "$supported" = "yes" ; then
17136 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17137 found="yes"
17138 fi
17139 fi
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155 xorg_testset_save_CFLAGS="$CFLAGS"
17156
17157 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17160 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17161 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17162 $as_echo_n "(cached) " >&6
17163 else
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17166 int i;
17167 _ACEOF
17168 if ac_fn_c_try_compile "$LINENO"; then :
17169 xorg_cv_cc_flag_unknown_warning_option=yes
17170 else
17171 xorg_cv_cc_flag_unknown_warning_option=no
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 fi
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17176 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17178 CFLAGS="$xorg_testset_save_CFLAGS"
17179 fi
17180
17181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17184 fi
17185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17187 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17188 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17189 $as_echo_n "(cached) " >&6
17190 else
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17193 int i;
17194 _ACEOF
17195 if ac_fn_c_try_compile "$LINENO"; then :
17196 xorg_cv_cc_flag_unused_command_line_argument=yes
17197 else
17198 xorg_cv_cc_flag_unused_command_line_argument=no
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201 fi
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17203 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17205 CFLAGS="$xorg_testset_save_CFLAGS"
17206 fi
17207
17208 found="no"
17209
17210 if test $found = "no" ; then
17211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17213 fi
17214
17215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17217 fi
17218
17219 CFLAGS="$CFLAGS -Wmissing-braces"
17220
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17222 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17223 cacheid=xorg_cv_cc_flag__Wmissing_braces
17224 if eval \${$cacheid+:} false; then :
17225 $as_echo_n "(cached) " >&6
17226 else
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17229 int i;
17230 int
17231 main ()
17232 {
17233
17234 ;
17235 return 0;
17236 }
17237 _ACEOF
17238 if ac_fn_c_try_link "$LINENO"; then :
17239 eval $cacheid=yes
17240 else
17241 eval $cacheid=no
17242 fi
17243 rm -f core conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17245 fi
17246
17247
17248 CFLAGS="$xorg_testset_save_CFLAGS"
17249
17250 eval supported=\$$cacheid
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17252 $as_echo "$supported" >&6; }
17253 if test "$supported" = "yes" ; then
17254 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17255 found="yes"
17256 fi
17257 fi
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273 xorg_testset_save_CFLAGS="$CFLAGS"
17274
17275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17280 $as_echo_n "(cached) " >&6
17281 else
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284 int i;
17285 _ACEOF
17286 if ac_fn_c_try_compile "$LINENO"; then :
17287 xorg_cv_cc_flag_unknown_warning_option=yes
17288 else
17289 xorg_cv_cc_flag_unknown_warning_option=no
17290 fi
17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292 fi
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17296 CFLAGS="$xorg_testset_save_CFLAGS"
17297 fi
17298
17299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17302 fi
17303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311 int i;
17312 _ACEOF
17313 if ac_fn_c_try_compile "$LINENO"; then :
17314 xorg_cv_cc_flag_unused_command_line_argument=yes
17315 else
17316 xorg_cv_cc_flag_unused_command_line_argument=no
17317 fi
17318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 fi
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17323 CFLAGS="$xorg_testset_save_CFLAGS"
17324 fi
17325
17326 found="no"
17327
17328 if test $found = "no" ; then
17329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17331 fi
17332
17333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17335 fi
17336
17337 CFLAGS="$CFLAGS -Wsequence-point"
17338
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17340 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17341 cacheid=xorg_cv_cc_flag__Wsequence_point
17342 if eval \${$cacheid+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 int i;
17348 int
17349 main ()
17350 {
17351
17352 ;
17353 return 0;
17354 }
17355 _ACEOF
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 eval $cacheid=yes
17358 else
17359 eval $cacheid=no
17360 fi
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363 fi
17364
17365
17366 CFLAGS="$xorg_testset_save_CFLAGS"
17367
17368 eval supported=\$$cacheid
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17370 $as_echo "$supported" >&6; }
17371 if test "$supported" = "yes" ; then
17372 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17373 found="yes"
17374 fi
17375 fi
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391 xorg_testset_save_CFLAGS="$CFLAGS"
17392
17393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17398 $as_echo_n "(cached) " >&6
17399 else
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17402 int i;
17403 _ACEOF
17404 if ac_fn_c_try_compile "$LINENO"; then :
17405 xorg_cv_cc_flag_unknown_warning_option=yes
17406 else
17407 xorg_cv_cc_flag_unknown_warning_option=no
17408 fi
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410 fi
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17414 CFLAGS="$xorg_testset_save_CFLAGS"
17415 fi
17416
17417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17420 fi
17421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17425 $as_echo_n "(cached) " >&6
17426 else
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429 int i;
17430 _ACEOF
17431 if ac_fn_c_try_compile "$LINENO"; then :
17432 xorg_cv_cc_flag_unused_command_line_argument=yes
17433 else
17434 xorg_cv_cc_flag_unused_command_line_argument=no
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17441 CFLAGS="$xorg_testset_save_CFLAGS"
17442 fi
17443
17444 found="no"
17445
17446 if test $found = "no" ; then
17447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17449 fi
17450
17451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17453 fi
17454
17455 CFLAGS="$CFLAGS -Wreturn-type"
17456
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17458 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17459 cacheid=xorg_cv_cc_flag__Wreturn_type
17460 if eval \${$cacheid+:} false; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 int i;
17466 int
17467 main ()
17468 {
17469
17470 ;
17471 return 0;
17472 }
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"; then :
17475 eval $cacheid=yes
17476 else
17477 eval $cacheid=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17481 fi
17482
17483
17484 CFLAGS="$xorg_testset_save_CFLAGS"
17485
17486 eval supported=\$$cacheid
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17488 $as_echo "$supported" >&6; }
17489 if test "$supported" = "yes" ; then
17490 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17491 found="yes"
17492 fi
17493 fi
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509 xorg_testset_save_CFLAGS="$CFLAGS"
17510
17511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17516 $as_echo_n "(cached) " >&6
17517 else
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17520 int i;
17521 _ACEOF
17522 if ac_fn_c_try_compile "$LINENO"; then :
17523 xorg_cv_cc_flag_unknown_warning_option=yes
17524 else
17525 xorg_cv_cc_flag_unknown_warning_option=no
17526 fi
17527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528 fi
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17532 CFLAGS="$xorg_testset_save_CFLAGS"
17533 fi
17534
17535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17538 fi
17539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17543 $as_echo_n "(cached) " >&6
17544 else
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 int i;
17548 _ACEOF
17549 if ac_fn_c_try_compile "$LINENO"; then :
17550 xorg_cv_cc_flag_unused_command_line_argument=yes
17551 else
17552 xorg_cv_cc_flag_unused_command_line_argument=no
17553 fi
17554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555 fi
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17559 CFLAGS="$xorg_testset_save_CFLAGS"
17560 fi
17561
17562 found="no"
17563
17564 if test $found = "no" ; then
17565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17567 fi
17568
17569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17571 fi
17572
17573 CFLAGS="$CFLAGS -Wtrigraphs"
17574
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17576 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17577 cacheid=xorg_cv_cc_flag__Wtrigraphs
17578 if eval \${$cacheid+:} false; then :
17579 $as_echo_n "(cached) " >&6
17580 else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583 int i;
17584 int
17585 main ()
17586 {
17587
17588 ;
17589 return 0;
17590 }
17591 _ACEOF
17592 if ac_fn_c_try_link "$LINENO"; then :
17593 eval $cacheid=yes
17594 else
17595 eval $cacheid=no
17596 fi
17597 rm -f core conftest.err conftest.$ac_objext \
17598 conftest$ac_exeext conftest.$ac_ext
17599 fi
17600
17601
17602 CFLAGS="$xorg_testset_save_CFLAGS"
17603
17604 eval supported=\$$cacheid
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17606 $as_echo "$supported" >&6; }
17607 if test "$supported" = "yes" ; then
17608 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17609 found="yes"
17610 fi
17611 fi
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627 xorg_testset_save_CFLAGS="$CFLAGS"
17628
17629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17632 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17633 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17634 $as_echo_n "(cached) " >&6
17635 else
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638 int i;
17639 _ACEOF
17640 if ac_fn_c_try_compile "$LINENO"; then :
17641 xorg_cv_cc_flag_unknown_warning_option=yes
17642 else
17643 xorg_cv_cc_flag_unknown_warning_option=no
17644 fi
17645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17646 fi
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17648 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17650 CFLAGS="$xorg_testset_save_CFLAGS"
17651 fi
17652
17653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17656 fi
17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17659 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17660 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17665 int i;
17666 _ACEOF
17667 if ac_fn_c_try_compile "$LINENO"; then :
17668 xorg_cv_cc_flag_unused_command_line_argument=yes
17669 else
17670 xorg_cv_cc_flag_unused_command_line_argument=no
17671 fi
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673 fi
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17675 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17677 CFLAGS="$xorg_testset_save_CFLAGS"
17678 fi
17679
17680 found="no"
17681
17682 if test $found = "no" ; then
17683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17685 fi
17686
17687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17689 fi
17690
17691 CFLAGS="$CFLAGS -Warray-bounds"
17692
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17694 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17695 cacheid=xorg_cv_cc_flag__Warray_bounds
17696 if eval \${$cacheid+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 int i;
17702 int
17703 main ()
17704 {
17705
17706 ;
17707 return 0;
17708 }
17709 _ACEOF
17710 if ac_fn_c_try_link "$LINENO"; then :
17711 eval $cacheid=yes
17712 else
17713 eval $cacheid=no
17714 fi
17715 rm -f core conftest.err conftest.$ac_objext \
17716 conftest$ac_exeext conftest.$ac_ext
17717 fi
17718
17719
17720 CFLAGS="$xorg_testset_save_CFLAGS"
17721
17722 eval supported=\$$cacheid
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17724 $as_echo "$supported" >&6; }
17725 if test "$supported" = "yes" ; then
17726 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17727 found="yes"
17728 fi
17729 fi
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745 xorg_testset_save_CFLAGS="$CFLAGS"
17746
17747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17752 $as_echo_n "(cached) " >&6
17753 else
17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h. */
17756 int i;
17757 _ACEOF
17758 if ac_fn_c_try_compile "$LINENO"; then :
17759 xorg_cv_cc_flag_unknown_warning_option=yes
17760 else
17761 xorg_cv_cc_flag_unknown_warning_option=no
17762 fi
17763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17764 fi
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17768 CFLAGS="$xorg_testset_save_CFLAGS"
17769 fi
17770
17771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17774 fi
17775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17783 int i;
17784 _ACEOF
17785 if ac_fn_c_try_compile "$LINENO"; then :
17786 xorg_cv_cc_flag_unused_command_line_argument=yes
17787 else
17788 xorg_cv_cc_flag_unused_command_line_argument=no
17789 fi
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17795 CFLAGS="$xorg_testset_save_CFLAGS"
17796 fi
17797
17798 found="no"
17799
17800 if test $found = "no" ; then
17801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17803 fi
17804
17805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17807 fi
17808
17809 CFLAGS="$CFLAGS -Wwrite-strings"
17810
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17812 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17813 cacheid=xorg_cv_cc_flag__Wwrite_strings
17814 if eval \${$cacheid+:} false; then :
17815 $as_echo_n "(cached) " >&6
17816 else
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819 int i;
17820 int
17821 main ()
17822 {
17823
17824 ;
17825 return 0;
17826 }
17827 _ACEOF
17828 if ac_fn_c_try_link "$LINENO"; then :
17829 eval $cacheid=yes
17830 else
17831 eval $cacheid=no
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext conftest.$ac_ext
17835 fi
17836
17837
17838 CFLAGS="$xorg_testset_save_CFLAGS"
17839
17840 eval supported=\$$cacheid
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17842 $as_echo "$supported" >&6; }
17843 if test "$supported" = "yes" ; then
17844 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17845 found="yes"
17846 fi
17847 fi
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863 xorg_testset_save_CFLAGS="$CFLAGS"
17864
17865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17870 $as_echo_n "(cached) " >&6
17871 else
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17874 int i;
17875 _ACEOF
17876 if ac_fn_c_try_compile "$LINENO"; then :
17877 xorg_cv_cc_flag_unknown_warning_option=yes
17878 else
17879 xorg_cv_cc_flag_unknown_warning_option=no
17880 fi
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17886 CFLAGS="$xorg_testset_save_CFLAGS"
17887 fi
17888
17889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17892 fi
17893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17897 $as_echo_n "(cached) " >&6
17898 else
17899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17900 /* end confdefs.h. */
17901 int i;
17902 _ACEOF
17903 if ac_fn_c_try_compile "$LINENO"; then :
17904 xorg_cv_cc_flag_unused_command_line_argument=yes
17905 else
17906 xorg_cv_cc_flag_unused_command_line_argument=no
17907 fi
17908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 fi
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17913 CFLAGS="$xorg_testset_save_CFLAGS"
17914 fi
17915
17916 found="no"
17917
17918 if test $found = "no" ; then
17919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17921 fi
17922
17923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17925 fi
17926
17927 CFLAGS="$CFLAGS -Waddress"
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17930 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17931 cacheid=xorg_cv_cc_flag__Waddress
17932 if eval \${$cacheid+:} false; then :
17933 $as_echo_n "(cached) " >&6
17934 else
17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936 /* end confdefs.h. */
17937 int i;
17938 int
17939 main ()
17940 {
17941
17942 ;
17943 return 0;
17944 }
17945 _ACEOF
17946 if ac_fn_c_try_link "$LINENO"; then :
17947 eval $cacheid=yes
17948 else
17949 eval $cacheid=no
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 fi
17954
17955
17956 CFLAGS="$xorg_testset_save_CFLAGS"
17957
17958 eval supported=\$$cacheid
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17960 $as_echo "$supported" >&6; }
17961 if test "$supported" = "yes" ; then
17962 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17963 found="yes"
17964 fi
17965 fi
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981 xorg_testset_save_CFLAGS="$CFLAGS"
17982
17983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17988 $as_echo_n "(cached) " >&6
17989 else
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 int i;
17993 _ACEOF
17994 if ac_fn_c_try_compile "$LINENO"; then :
17995 xorg_cv_cc_flag_unknown_warning_option=yes
17996 else
17997 xorg_cv_cc_flag_unknown_warning_option=no
17998 fi
17999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18000 fi
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18004 CFLAGS="$xorg_testset_save_CFLAGS"
18005 fi
18006
18007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18010 fi
18011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18015 $as_echo_n "(cached) " >&6
18016 else
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18019 int i;
18020 _ACEOF
18021 if ac_fn_c_try_compile "$LINENO"; then :
18022 xorg_cv_cc_flag_unused_command_line_argument=yes
18023 else
18024 xorg_cv_cc_flag_unused_command_line_argument=no
18025 fi
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 fi
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18031 CFLAGS="$xorg_testset_save_CFLAGS"
18032 fi
18033
18034 found="no"
18035
18036 if test $found = "no" ; then
18037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18039 fi
18040
18041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18043 fi
18044
18045 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18046
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18048 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18049 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18050 if eval \${$cacheid+:} false; then :
18051 $as_echo_n "(cached) " >&6
18052 else
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18055 int i;
18056 int
18057 main ()
18058 {
18059
18060 ;
18061 return 0;
18062 }
18063 _ACEOF
18064 if ac_fn_c_try_link "$LINENO"; then :
18065 eval $cacheid=yes
18066 else
18067 eval $cacheid=no
18068 fi
18069 rm -f core conftest.err conftest.$ac_objext \
18070 conftest$ac_exeext conftest.$ac_ext
18071 fi
18072
18073
18074 CFLAGS="$xorg_testset_save_CFLAGS"
18075
18076 eval supported=\$$cacheid
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18078 $as_echo "$supported" >&6; }
18079 if test "$supported" = "yes" ; then
18080 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18081 found="yes"
18082 fi
18083 fi
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099 xorg_testset_save_CFLAGS="$CFLAGS"
18100
18101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18106 $as_echo_n "(cached) " >&6
18107 else
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18110 int i;
18111 _ACEOF
18112 if ac_fn_c_try_compile "$LINENO"; then :
18113 xorg_cv_cc_flag_unknown_warning_option=yes
18114 else
18115 xorg_cv_cc_flag_unknown_warning_option=no
18116 fi
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 fi
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18122 CFLAGS="$xorg_testset_save_CFLAGS"
18123 fi
18124
18125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18128 fi
18129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18133 $as_echo_n "(cached) " >&6
18134 else
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18137 int i;
18138 _ACEOF
18139 if ac_fn_c_try_compile "$LINENO"; then :
18140 xorg_cv_cc_flag_unused_command_line_argument=yes
18141 else
18142 xorg_cv_cc_flag_unused_command_line_argument=no
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145 fi
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18149 CFLAGS="$xorg_testset_save_CFLAGS"
18150 fi
18151
18152 found="no"
18153
18154 if test $found = "no" ; then
18155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18157 fi
18158
18159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18161 fi
18162
18163 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18164
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18166 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18167 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18168 if eval \${$cacheid+:} false; then :
18169 $as_echo_n "(cached) " >&6
18170 else
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173 int i;
18174 int
18175 main ()
18176 {
18177
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 if ac_fn_c_try_link "$LINENO"; then :
18183 eval $cacheid=yes
18184 else
18185 eval $cacheid=no
18186 fi
18187 rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18189 fi
18190
18191
18192 CFLAGS="$xorg_testset_save_CFLAGS"
18193
18194 eval supported=\$$cacheid
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18196 $as_echo "$supported" >&6; }
18197 if test "$supported" = "yes" ; then
18198 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18199 found="yes"
18200 fi
18201 fi
18202
18203
18204 fi
18205
18206
18207
18208
18209
18210
18211
18212 CWARNFLAGS="$BASE_CFLAGS"
18213 if test "x$GCC" = xyes ; then
18214 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18215 fi
18216
18217
18218
18219
18220
18221
18222
18223
18224 # Check whether --enable-strict-compilation was given.
18225 if test "${enable_strict_compilation+set}" = set; then :
18226 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18227 else
18228 STRICT_COMPILE=no
18229 fi
18230
18231
18232
18233
18234
18235
18236 STRICT_CFLAGS=""
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250 xorg_testset_save_CFLAGS="$CFLAGS"
18251
18252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18257 $as_echo_n "(cached) " >&6
18258 else
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261 int i;
18262 _ACEOF
18263 if ac_fn_c_try_compile "$LINENO"; then :
18264 xorg_cv_cc_flag_unknown_warning_option=yes
18265 else
18266 xorg_cv_cc_flag_unknown_warning_option=no
18267 fi
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269 fi
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18273 CFLAGS="$xorg_testset_save_CFLAGS"
18274 fi
18275
18276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18279 fi
18280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18284 $as_echo_n "(cached) " >&6
18285 else
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 int i;
18289 _ACEOF
18290 if ac_fn_c_try_compile "$LINENO"; then :
18291 xorg_cv_cc_flag_unused_command_line_argument=yes
18292 else
18293 xorg_cv_cc_flag_unused_command_line_argument=no
18294 fi
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18296 fi
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18300 CFLAGS="$xorg_testset_save_CFLAGS"
18301 fi
18302
18303 found="no"
18304
18305 if test $found = "no" ; then
18306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18308 fi
18309
18310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18312 fi
18313
18314 CFLAGS="$CFLAGS -pedantic"
18315
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18317 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18318 cacheid=xorg_cv_cc_flag__pedantic
18319 if eval \${$cacheid+:} false; then :
18320 $as_echo_n "(cached) " >&6
18321 else
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18324 int i;
18325 int
18326 main ()
18327 {
18328
18329 ;
18330 return 0;
18331 }
18332 _ACEOF
18333 if ac_fn_c_try_link "$LINENO"; then :
18334 eval $cacheid=yes
18335 else
18336 eval $cacheid=no
18337 fi
18338 rm -f core conftest.err conftest.$ac_objext \
18339 conftest$ac_exeext conftest.$ac_ext
18340 fi
18341
18342
18343 CFLAGS="$xorg_testset_save_CFLAGS"
18344
18345 eval supported=\$$cacheid
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18347 $as_echo "$supported" >&6; }
18348 if test "$supported" = "yes" ; then
18349 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18350 found="yes"
18351 fi
18352 fi
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368 xorg_testset_save_CFLAGS="$CFLAGS"
18369
18370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18373 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18374 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18375 $as_echo_n "(cached) " >&6
18376 else
18377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h. */
18379 int i;
18380 _ACEOF
18381 if ac_fn_c_try_compile "$LINENO"; then :
18382 xorg_cv_cc_flag_unknown_warning_option=yes
18383 else
18384 xorg_cv_cc_flag_unknown_warning_option=no
18385 fi
18386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18387 fi
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18389 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18391 CFLAGS="$xorg_testset_save_CFLAGS"
18392 fi
18393
18394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18397 fi
18398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18400 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18401 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18402 $as_echo_n "(cached) " >&6
18403 else
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 int i;
18407 _ACEOF
18408 if ac_fn_c_try_compile "$LINENO"; then :
18409 xorg_cv_cc_flag_unused_command_line_argument=yes
18410 else
18411 xorg_cv_cc_flag_unused_command_line_argument=no
18412 fi
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 fi
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18416 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18418 CFLAGS="$xorg_testset_save_CFLAGS"
18419 fi
18420
18421 found="no"
18422
18423 if test $found = "no" ; then
18424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18426 fi
18427
18428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18430 fi
18431
18432 CFLAGS="$CFLAGS -Werror"
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18435 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18436 cacheid=xorg_cv_cc_flag__Werror
18437 if eval \${$cacheid+:} false; then :
18438 $as_echo_n "(cached) " >&6
18439 else
18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18442 int i;
18443 int
18444 main ()
18445 {
18446
18447 ;
18448 return 0;
18449 }
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 eval $cacheid=yes
18453 else
18454 eval $cacheid=no
18455 fi
18456 rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 fi
18459
18460
18461 CFLAGS="$xorg_testset_save_CFLAGS"
18462
18463 eval supported=\$$cacheid
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18465 $as_echo "$supported" >&6; }
18466 if test "$supported" = "yes" ; then
18467 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18468 found="yes"
18469 fi
18470 fi
18471
18472 if test $found = "no" ; then
18473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18475 fi
18476
18477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18479 fi
18480
18481 CFLAGS="$CFLAGS -errwarn"
18482
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18484 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18485 cacheid=xorg_cv_cc_flag__errwarn
18486 if eval \${$cacheid+:} false; then :
18487 $as_echo_n "(cached) " >&6
18488 else
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18491 int i;
18492 int
18493 main ()
18494 {
18495
18496 ;
18497 return 0;
18498 }
18499 _ACEOF
18500 if ac_fn_c_try_link "$LINENO"; then :
18501 eval $cacheid=yes
18502 else
18503 eval $cacheid=no
18504 fi
18505 rm -f core conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18507 fi
18508
18509
18510 CFLAGS="$xorg_testset_save_CFLAGS"
18511
18512 eval supported=\$$cacheid
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18514 $as_echo "$supported" >&6; }
18515 if test "$supported" = "yes" ; then
18516 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18517 found="yes"
18518 fi
18519 fi
18520
18521
18522
18523 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18524 # activate it with -Werror, so we add it here explicitly.
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538 xorg_testset_save_CFLAGS="$CFLAGS"
18539
18540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18543 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18544 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18545 $as_echo_n "(cached) " >&6
18546 else
18547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h. */
18549 int i;
18550 _ACEOF
18551 if ac_fn_c_try_compile "$LINENO"; then :
18552 xorg_cv_cc_flag_unknown_warning_option=yes
18553 else
18554 xorg_cv_cc_flag_unknown_warning_option=no
18555 fi
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 fi
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18559 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18561 CFLAGS="$xorg_testset_save_CFLAGS"
18562 fi
18563
18564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18567 fi
18568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18570 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18571 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18572 $as_echo_n "(cached) " >&6
18573 else
18574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18576 int i;
18577 _ACEOF
18578 if ac_fn_c_try_compile "$LINENO"; then :
18579 xorg_cv_cc_flag_unused_command_line_argument=yes
18580 else
18581 xorg_cv_cc_flag_unused_command_line_argument=no
18582 fi
18583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 fi
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18586 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18588 CFLAGS="$xorg_testset_save_CFLAGS"
18589 fi
18590
18591 found="no"
18592
18593 if test $found = "no" ; then
18594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18596 fi
18597
18598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18600 fi
18601
18602 CFLAGS="$CFLAGS -Werror=attributes"
18603
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18605 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18606 cacheid=xorg_cv_cc_flag__Werror_attributes
18607 if eval \${$cacheid+:} false; then :
18608 $as_echo_n "(cached) " >&6
18609 else
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612 int i;
18613 int
18614 main ()
18615 {
18616
18617 ;
18618 return 0;
18619 }
18620 _ACEOF
18621 if ac_fn_c_try_link "$LINENO"; then :
18622 eval $cacheid=yes
18623 else
18624 eval $cacheid=no
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18628 fi
18629
18630
18631 CFLAGS="$xorg_testset_save_CFLAGS"
18632
18633 eval supported=\$$cacheid
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18635 $as_echo "$supported" >&6; }
18636 if test "$supported" = "yes" ; then
18637 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18638 found="yes"
18639 fi
18640 fi
18641
18642
18643
18644 if test "x$STRICT_COMPILE" = "xyes"; then
18645 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18646 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18647 fi
18648
18649
18650
18651
18652
18653
18654 cat >>confdefs.h <<_ACEOF
18655 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18656 _ACEOF
18657
18658 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18659 if test "x$PVM" = "x"; then
18660 PVM="0"
18661 fi
18662
18663 cat >>confdefs.h <<_ACEOF
18664 #define PACKAGE_VERSION_MINOR $PVM
18665 _ACEOF
18666
18667 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18668 if test "x$PVP" = "x"; then
18669 PVP="0"
18670 fi
18671
18672 cat >>confdefs.h <<_ACEOF
18673 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18674 _ACEOF
18675
18676
18677
18678 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18679 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18680 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18681 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18682
18683
18684
18685
18686 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18687 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18688 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18689 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18690 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18691
18692
18693
18694
18695
18696
18697 if test x$APP_MAN_SUFFIX = x ; then
18698 APP_MAN_SUFFIX=1
18699 fi
18700 if test x$APP_MAN_DIR = x ; then
18701 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18702 fi
18703
18704 if test x$LIB_MAN_SUFFIX = x ; then
18705 LIB_MAN_SUFFIX=3
18706 fi
18707 if test x$LIB_MAN_DIR = x ; then
18708 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18709 fi
18710
18711 if test x$FILE_MAN_SUFFIX = x ; then
18712 case $host_os in
18713 # Solaris 2.0 - 11 use SysV man page sections
18714 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18715 *) FILE_MAN_SUFFIX=5 ;;
18716 esac
18717 fi
18718 if test x$FILE_MAN_DIR = x ; then
18719 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18720 fi
18721
18722 if test x$MISC_MAN_SUFFIX = x ; then
18723 case $host_os in
18724 # Solaris 2.0 - 11 use SysV man page sections
18725 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18726 *) MISC_MAN_SUFFIX=7 ;;
18727 esac
18728 fi
18729 if test x$MISC_MAN_DIR = x ; then
18730 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18731 fi
18732
18733 if test x$DRIVER_MAN_SUFFIX = x ; then
18734 case $host_os in
18735 # Solaris 2.0 - 11 use SysV man page sections
18736 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18737 *) DRIVER_MAN_SUFFIX=4 ;;
18738 esac
18739 fi
18740 if test x$DRIVER_MAN_DIR = x ; then
18741 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18742 fi
18743
18744 if test x$ADMIN_MAN_SUFFIX = x ; then
18745 case $host_os in
18746 # Solaris 2.0 - 11 use SysV man page sections
18747 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18748 *) ADMIN_MAN_SUFFIX=8 ;;
18749 esac
18750 fi
18751 if test x$ADMIN_MAN_DIR = x ; then
18752 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18753 fi
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769 XORG_MAN_PAGE="X Version 11"
18770
18771 MAN_SUBSTS="\
18772 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18773 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18774 -e 's|__xservername__|Xorg|g' \
18775 -e 's|__xconfigfile__|xorg.conf|g' \
18776 -e 's|__projectroot__|\$(prefix)|g' \
18777 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18778 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18779 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18780 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18781 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18782 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18783 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18784
18785
18786
18787 # Check whether --enable-silent-rules was given.
18788 if test "${enable_silent_rules+set}" = set; then :
18789 enableval=$enable_silent_rules;
18790 fi
18791
18792 case $enable_silent_rules in # (((
18793 yes) AM_DEFAULT_VERBOSITY=0;;
18794 no) AM_DEFAULT_VERBOSITY=1;;
18795 *) AM_DEFAULT_VERBOSITY=0;;
18796 esac
18797 am_make=${MAKE-make}
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18799 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18800 if ${am_cv_make_support_nested_variables+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 if $as_echo 'TRUE=$(BAR$(V))
18804 BAR0=false
18805 BAR1=true
18806 V=1
18807 am__doit:
18808 @$(TRUE)
18809 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18810 am_cv_make_support_nested_variables=yes
18811 else
18812 am_cv_make_support_nested_variables=no
18813 fi
18814 fi
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18816 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18817 if test $am_cv_make_support_nested_variables = yes; then
18818 AM_V='$(V)'
18819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18820 else
18821 AM_V=$AM_DEFAULT_VERBOSITY
18822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18823 fi
18824 AM_BACKSLASH='\'
18825
18826
18827
18828
18829 # Check whether --enable-docs was given.
18830 if test "${enable_docs+set}" = set; then :
18831 enableval=$enable_docs; build_docs=$enableval
18832 else
18833 build_docs=yes
18834 fi
18835
18836
18837 if test x$build_docs = xyes; then
18838 ENABLE_DOCS_TRUE=
18839 ENABLE_DOCS_FALSE='#'
18840 else
18841 ENABLE_DOCS_TRUE='#'
18842 ENABLE_DOCS_FALSE=
18843 fi
18844
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18846 $as_echo_n "checking whether to build documentation... " >&6; }
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18848 $as_echo "$build_docs" >&6; }
18849
18850
18851
18852
18853
18854 # Check whether --with-xmlto was given.
18855 if test "${with_xmlto+set}" = set; then :
18856 withval=$with_xmlto; use_xmlto=$withval
18857 else
18858 use_xmlto=auto
18859 fi
18860
18861
18862
18863 if test "x$use_xmlto" = x"auto"; then
18864 # Extract the first word of "xmlto", so it can be a program name with args.
18865 set dummy xmlto; ac_word=$2
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18867 $as_echo_n "checking for $ac_word... " >&6; }
18868 if ${ac_cv_path_XMLTO+:} false; then :
18869 $as_echo_n "(cached) " >&6
18870 else
18871 case $XMLTO in
18872 [\\/]* | ?:[\\/]*)
18873 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18874 ;;
18875 *)
18876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877 for as_dir in $PATH
18878 do
18879 IFS=$as_save_IFS
18880 test -z "$as_dir" && as_dir=.
18881 for ac_exec_ext in '' $ac_executable_extensions; do
18882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18883 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18885 break 2
18886 fi
18887 done
18888 done
18889 IFS=$as_save_IFS
18890
18891 ;;
18892 esac
18893 fi
18894 XMLTO=$ac_cv_path_XMLTO
18895 if test -n "$XMLTO"; then
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18897 $as_echo "$XMLTO" >&6; }
18898 else
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18900 $as_echo "no" >&6; }
18901 fi
18902
18903
18904 if test "x$XMLTO" = "x"; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18906 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18907 have_xmlto=no
18908 else
18909 have_xmlto=yes
18910 fi
18911 elif test "x$use_xmlto" = x"yes" ; then
18912 # Extract the first word of "xmlto", so it can be a program name with args.
18913 set dummy xmlto; 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_XMLTO+:} false; then :
18917 $as_echo_n "(cached) " >&6
18918 else
18919 case $XMLTO in
18920 [\\/]* | ?:[\\/]*)
18921 ac_cv_path_XMLTO="$XMLTO" # 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_XMLTO="$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 XMLTO=$ac_cv_path_XMLTO
18943 if test -n "$XMLTO"; then
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18945 $as_echo "$XMLTO" >&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$XMLTO" = "x"; then
18953 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18954 fi
18955 have_xmlto=yes
18956 elif test "x$use_xmlto" = x"no" ; then
18957 if test "x$XMLTO" != "x"; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18959 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18960 fi
18961 have_xmlto=no
18962 else
18963 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18964 fi
18965
18966 # Test for a minimum version of xmlto, if provided.
18967 if test "$have_xmlto" = yes; then
18968 # scrape the xmlto version
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18970 $as_echo_n "checking the xmlto version... " >&6; }
18971 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18973 $as_echo "$xmlto_version" >&6; }
18974 as_arg_v1=$xmlto_version
18975 as_arg_v2=0.0.22
18976 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18977 case $? in #(
18978 1) :
18979 if test "x$use_xmlto" = xauto; then
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18981 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18982 have_xmlto=no
18983 else
18984 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18985 fi ;; #(
18986 0) :
18987 ;; #(
18988 2) :
18989 ;; #(
18990 *) :
18991 ;;
18992 esac
18993 fi
18994
18995 # Test for the ability of xmlto to generate a text target
18996 #
18997 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18998 # following test for empty XML docbook files.
18999 # For compatibility reasons use the following empty XML docbook file and if
19000 # it fails try it again with a non-empty XML file.
19001 have_xmlto_text=no
19002 cat > conftest.xml << "EOF"
19003 EOF
19004 if test "$have_xmlto" = yes; then :
19005 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19006 have_xmlto_text=yes
19007 else
19008 # Try it again with a non-empty XML file.
19009 cat > conftest.xml << "EOF"
19010 <x></x>
19011 EOF
19012 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19013 have_xmlto_text=yes
19014 else
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19016 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19017 fi
19018 fi
19019 fi
19020 rm -f conftest.xml
19021 if test $have_xmlto_text = yes; then
19022 HAVE_XMLTO_TEXT_TRUE=
19023 HAVE_XMLTO_TEXT_FALSE='#'
19024 else
19025 HAVE_XMLTO_TEXT_TRUE='#'
19026 HAVE_XMLTO_TEXT_FALSE=
19027 fi
19028
19029 if test "$have_xmlto" = yes; then
19030 HAVE_XMLTO_TRUE=
19031 HAVE_XMLTO_FALSE='#'
19032 else
19033 HAVE_XMLTO_TRUE='#'
19034 HAVE_XMLTO_FALSE=
19035 fi
19036
19037
19038
19039
19040
19041
19042 # Check whether --with-fop was given.
19043 if test "${with_fop+set}" = set; then :
19044 withval=$with_fop; use_fop=$withval
19045 else
19046 use_fop=auto
19047 fi
19048
19049
19050
19051 if test "x$use_fop" = x"auto"; then
19052 # Extract the first word of "fop", so it can be a program name with args.
19053 set dummy fop; ac_word=$2
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19055 $as_echo_n "checking for $ac_word... " >&6; }
19056 if ${ac_cv_path_FOP+:} false; then :
19057 $as_echo_n "(cached) " >&6
19058 else
19059 case $FOP in
19060 [\\/]* | ?:[\\/]*)
19061 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19062 ;;
19063 *)
19064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19065 for as_dir in $PATH
19066 do
19067 IFS=$as_save_IFS
19068 test -z "$as_dir" && as_dir=.
19069 for ac_exec_ext in '' $ac_executable_extensions; do
19070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19071 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19073 break 2
19074 fi
19075 done
19076 done
19077 IFS=$as_save_IFS
19078
19079 ;;
19080 esac
19081 fi
19082 FOP=$ac_cv_path_FOP
19083 if test -n "$FOP"; then
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19085 $as_echo "$FOP" >&6; }
19086 else
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19088 $as_echo "no" >&6; }
19089 fi
19090
19091
19092 if test "x$FOP" = "x"; then
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19094 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19095 have_fop=no
19096 else
19097 have_fop=yes
19098 fi
19099 elif test "x$use_fop" = x"yes" ; then
19100 # Extract the first word of "fop", so it can be a program name with args.
19101 set dummy fop; ac_word=$2
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19103 $as_echo_n "checking for $ac_word... " >&6; }
19104 if ${ac_cv_path_FOP+:} false; then :
19105 $as_echo_n "(cached) " >&6
19106 else
19107 case $FOP in
19108 [\\/]* | ?:[\\/]*)
19109 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19110 ;;
19111 *)
19112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19113 for as_dir in $PATH
19114 do
19115 IFS=$as_save_IFS
19116 test -z "$as_dir" && as_dir=.
19117 for ac_exec_ext in '' $ac_executable_extensions; do
19118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19119 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19121 break 2
19122 fi
19123 done
19124 done
19125 IFS=$as_save_IFS
19126
19127 ;;
19128 esac
19129 fi
19130 FOP=$ac_cv_path_FOP
19131 if test -n "$FOP"; then
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19133 $as_echo "$FOP" >&6; }
19134 else
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 $as_echo "no" >&6; }
19137 fi
19138
19139
19140 if test "x$FOP" = "x"; then
19141 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19142 fi
19143 have_fop=yes
19144 elif test "x$use_fop" = x"no" ; then
19145 if test "x$FOP" != "x"; then
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19147 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19148 fi
19149 have_fop=no
19150 else
19151 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19152 fi
19153
19154 # Test for a minimum version of fop, if provided.
19155
19156 if test "$have_fop" = yes; then
19157 HAVE_FOP_TRUE=
19158 HAVE_FOP_FALSE='#'
19159 else
19160 HAVE_FOP_TRUE='#'
19161 HAVE_FOP_FALSE=
19162 fi
19163
19164
19165
19166
19167 # Preserves the interface, should it be implemented later
19168
19169
19170
19171 # Check whether --with-xsltproc was given.
19172 if test "${with_xsltproc+set}" = set; then :
19173 withval=$with_xsltproc; use_xsltproc=$withval
19174 else
19175 use_xsltproc=auto
19176 fi
19177
19178
19179
19180 if test "x$use_xsltproc" = x"auto"; then
19181 # Extract the first word of "xsltproc", so it can be a program name with args.
19182 set dummy xsltproc; ac_word=$2
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19184 $as_echo_n "checking for $ac_word... " >&6; }
19185 if ${ac_cv_path_XSLTPROC+:} false; then :
19186 $as_echo_n "(cached) " >&6
19187 else
19188 case $XSLTPROC in
19189 [\\/]* | ?:[\\/]*)
19190 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19191 ;;
19192 *)
19193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19194 for as_dir in $PATH
19195 do
19196 IFS=$as_save_IFS
19197 test -z "$as_dir" && as_dir=.
19198 for ac_exec_ext in '' $ac_executable_extensions; do
19199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19200 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19202 break 2
19203 fi
19204 done
19205 done
19206 IFS=$as_save_IFS
19207
19208 ;;
19209 esac
19210 fi
19211 XSLTPROC=$ac_cv_path_XSLTPROC
19212 if test -n "$XSLTPROC"; then
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19214 $as_echo "$XSLTPROC" >&6; }
19215 else
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 $as_echo "no" >&6; }
19218 fi
19219
19220
19221 if test "x$XSLTPROC" = "x"; then
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19223 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19224 have_xsltproc=no
19225 else
19226 have_xsltproc=yes
19227 fi
19228 elif test "x$use_xsltproc" = x"yes" ; then
19229 # Extract the first word of "xsltproc", so it can be a program name with args.
19230 set dummy xsltproc; ac_word=$2
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19232 $as_echo_n "checking for $ac_word... " >&6; }
19233 if ${ac_cv_path_XSLTPROC+:} false; then :
19234 $as_echo_n "(cached) " >&6
19235 else
19236 case $XSLTPROC in
19237 [\\/]* | ?:[\\/]*)
19238 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19239 ;;
19240 *)
19241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19242 for as_dir in $PATH
19243 do
19244 IFS=$as_save_IFS
19245 test -z "$as_dir" && as_dir=.
19246 for ac_exec_ext in '' $ac_executable_extensions; do
19247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19248 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19250 break 2
19251 fi
19252 done
19253 done
19254 IFS=$as_save_IFS
19255
19256 ;;
19257 esac
19258 fi
19259 XSLTPROC=$ac_cv_path_XSLTPROC
19260 if test -n "$XSLTPROC"; then
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19262 $as_echo "$XSLTPROC" >&6; }
19263 else
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265 $as_echo "no" >&6; }
19266 fi
19267
19268
19269 if test "x$XSLTPROC" = "x"; then
19270 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19271 fi
19272 have_xsltproc=yes
19273 elif test "x$use_xsltproc" = x"no" ; then
19274 if test "x$XSLTPROC" != "x"; then
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19276 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19277 fi
19278 have_xsltproc=no
19279 else
19280 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19281 fi
19282
19283 if test "$have_xsltproc" = yes; then
19284 HAVE_XSLTPROC_TRUE=
19285 HAVE_XSLTPROC_FALSE='#'
19286 else
19287 HAVE_XSLTPROC_TRUE='#'
19288 HAVE_XSLTPROC_FALSE=
19289 fi
19290
19291
19292
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19294 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
19295 XORG_SGML_PATH=
19296 if test -n "$PKG_CONFIG" && \
19297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19298 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19299 ac_status=$?
19300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19301 test $ac_status = 0; }; then
19302 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19303 else
19304 :
19305
19306 fi
19307
19308 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19309 # the path and the name of the doc stylesheet
19310 if test "x$XORG_SGML_PATH" != "x" ; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19312 $as_echo "$XORG_SGML_PATH" >&6; }
19313 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19314 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19315 else
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19318 fi
19319
19320
19321
19322
19323 if test "x$XSL_STYLESHEET" != "x"; then
19324 HAVE_STYLESHEETS_TRUE=
19325 HAVE_STYLESHEETS_FALSE='#'
19326 else
19327 HAVE_STYLESHEETS_TRUE='#'
19328 HAVE_STYLESHEETS_FALSE=
19329 fi
19330
19331
19332
19333 # Checks for programs.
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19335 $as_echo_n "checking whether ln -s works... " >&6; }
19336 LN_S=$as_ln_s
19337 if test "$LN_S" = "ln -s"; then
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339 $as_echo "yes" >&6; }
19340 else
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19342 $as_echo "no, using $LN_S" >&6; }
19343 fi
19344
19345
19346 # Checks for libraries.
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
19348 $as_echo_n "checking for library containing recvfrom... " >&6; }
19349 if ${ac_cv_search_recvfrom+:} false; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19352 ac_func_search_save_LIBS=$LIBS
19353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19355
19356 /* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19359 #ifdef __cplusplus
19360 extern "C"
19361 #endif
19362 char recvfrom ();
19363 int
19364 main ()
19365 {
19366 return recvfrom ();
19367 ;
19368 return 0;
19369 }
19370 _ACEOF
19371 for ac_lib in '' socket; do
19372 if test -z "$ac_lib"; then
19373 ac_res="none required"
19374 else
19375 ac_res=-l$ac_lib
19376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19377 fi
19378 if ac_fn_c_try_link "$LINENO"; then :
19379 ac_cv_search_recvfrom=$ac_res
19380 fi
19381 rm -f core conftest.err conftest.$ac_objext \
19382 conftest$ac_exeext
19383 if ${ac_cv_search_recvfrom+:} false; then :
19384 break
19385 fi
19386 done
19387 if ${ac_cv_search_recvfrom+:} false; then :
19388
19389 else
19390 ac_cv_search_recvfrom=no
19391 fi
19392 rm conftest.$ac_ext
19393 LIBS=$ac_func_search_save_LIBS
19394 fi
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
19396 $as_echo "$ac_cv_search_recvfrom" >&6; }
19397 ac_res=$ac_cv_search_recvfrom
19398 if test "$ac_res" != no; then :
19399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19400
19401 fi
19402
19403
19404 case $host_os in
19405 *mingw*)
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19407 $as_echo_n "checking for main in -lws2_32... " >&6; }
19408 if ${ac_cv_lib_ws2_32_main+:} false; then :
19409 $as_echo_n "(cached) " >&6
19410 else
19411 ac_check_lib_save_LIBS=$LIBS
19412 LIBS="-lws2_32 $LIBS"
19413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h. */
19415
19416
19417 int
19418 main ()
19419 {
19420 return main ();
19421 ;
19422 return 0;
19423 }
19424 _ACEOF
19425 if ac_fn_c_try_link "$LINENO"; then :
19426 ac_cv_lib_ws2_32_main=yes
19427 else
19428 ac_cv_lib_ws2_32_main=no
19429 fi
19430 rm -f core conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext conftest.$ac_ext
19432 LIBS=$ac_check_lib_save_LIBS
19433 fi
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19435 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19436 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_LIBWS2_32 1
19439 _ACEOF
19440
19441 LIBS="-lws2_32 $LIBS"
19442
19443 fi
19444
19445 ;;
19446 *)
19447 ;;
19448 esac
19449
19450 # Checks for library functions.
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
19452 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
19453 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
19454 $as_echo_n "(cached) " >&6
19455 else
19456 ac_check_lib_save_LIBS=$LIBS
19457 LIBS="-lbsd $LIBS"
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19460
19461 /* Override any GCC internal prototype to avoid an error.
19462 Use char because int might match the return type of a GCC
19463 builtin and then its argument prototype would still apply. */
19464 #ifdef __cplusplus
19465 extern "C"
19466 #endif
19467 char arc4random_buf ();
19468 int
19469 main ()
19470 {
19471 return arc4random_buf ();
19472 ;
19473 return 0;
19474 }
19475 _ACEOF
19476 if ac_fn_c_try_link "$LINENO"; then :
19477 ac_cv_lib_bsd_arc4random_buf=yes
19478 else
19479 ac_cv_lib_bsd_arc4random_buf=no
19480 fi
19481 rm -f core conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19484 fi
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
19486 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
19487 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_LIBBSD 1
19490 _ACEOF
19491
19492 LIBS="-lbsd $LIBS"
19493
19494 fi
19495
19496 for ac_func in srand48 lrand48 arc4random_buf getentropy
19497 do :
19498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19499 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19500 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19501 cat >>confdefs.h <<_ACEOF
19502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19503 _ACEOF
19504
19505 fi
19506 done
19507
19508
19509 # Obtain compiler/linker options for depedencies
19510
19511 pkg_failed=no
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
19513 $as_echo_n "checking for XDMCP... " >&6; }
19514
19515 if test -n "$XDMCP_CFLAGS"; then
19516 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
19517 elif test -n "$PKG_CONFIG"; then
19518 if test -n "$PKG_CONFIG" && \
19519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19520 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19521 ac_status=$?
19522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19523 test $ac_status = 0; }; then
19524 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
19525 test "x$?" != "x0" && pkg_failed=yes
19526 else
19527 pkg_failed=yes
19528 fi
19529 else
19530 pkg_failed=untried
19531 fi
19532 if test -n "$XDMCP_LIBS"; then
19533 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
19534 elif test -n "$PKG_CONFIG"; then
19535 if test -n "$PKG_CONFIG" && \
19536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19537 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19538 ac_status=$?
19539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19540 test $ac_status = 0; }; then
19541 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
19542 test "x$?" != "x0" && pkg_failed=yes
19543 else
19544 pkg_failed=yes
19545 fi
19546 else
19547 pkg_failed=untried
19548 fi
19549
19550
19551
19552 if test $pkg_failed = yes; then
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554 $as_echo "no" >&6; }
19555
19556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19557 _pkg_short_errors_supported=yes
19558 else
19559 _pkg_short_errors_supported=no
19560 fi
19561 if test $_pkg_short_errors_supported = yes; then
19562 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
19563 else
19564 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
19565 fi
19566 # Put the nasty error message in config.log where it belongs
19567 echo "$XDMCP_PKG_ERRORS" >&5
19568
19569 as_fn_error $? "Package requirements (xproto) were not met:
19570
19571 $XDMCP_PKG_ERRORS
19572
19573 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19574 installed software in a non-standard prefix.
19575
19576 Alternatively, you may set the environment variables XDMCP_CFLAGS
19577 and XDMCP_LIBS to avoid the need to call pkg-config.
19578 See the pkg-config man page for more details." "$LINENO" 5
19579 elif test $pkg_failed = untried; then
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19581 $as_echo "no" >&6; }
19582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19584 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19585 is in your PATH or set the PKG_CONFIG environment variable to the full
19586 path to pkg-config.
19587
19588 Alternatively, you may set the environment variables XDMCP_CFLAGS
19589 and XDMCP_LIBS to avoid the need to call pkg-config.
19590 See the pkg-config man page for more details.
19591
19592 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19593 See \`config.log' for more details" "$LINENO" 5; }
19594 else
19595 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19596 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19598 $as_echo "yes" >&6; }
19599
19600 fi
19601
19602 if test -f ${srcdir}/Wraphelp.c; then
19603
19604 $as_echo "#define HASXDMAUTH 1" >>confdefs.h
19605
19606 HASXDMAUTH=yes
19607 else
19608 HASXDMAUTH=no
19609 fi
19610
19611 if test x$HASXDMAUTH = xyes; then
19612 HASXDMAUTH_TRUE=
19613 HASXDMAUTH_FALSE='#'
19614 else
19615 HASXDMAUTH_TRUE='#'
19616 HASXDMAUTH_FALSE=
19617 fi
19618
19619
19620 # Allow checking code with lint, sparse, etc.
19621
19622
19623
19624
19625
19626 # Check whether --with-lint was given.
19627 if test "${with_lint+set}" = set; then :
19628 withval=$with_lint; use_lint=$withval
19629 else
19630 use_lint=no
19631 fi
19632
19633
19634 # Obtain platform specific info like program name and options
19635 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
19636 case $host_os in
19637 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19638 lint_name=splint
19639 lint_options="-badflag"
19640 ;;
19641 *freebsd* | *netbsd*)
19642 lint_name=lint
19643 lint_options="-u -b"
19644 ;;
19645 *solaris*)
19646 lint_name=lint
19647 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19648 ;;
19649 esac
19650
19651 # Test for the presence of the program (either guessed by the code or spelled out by the user)
19652 if test "x$use_lint" = x"yes" ; then
19653 # Extract the first word of "$lint_name", so it can be a program name with args.
19654 set dummy $lint_name; ac_word=$2
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19656 $as_echo_n "checking for $ac_word... " >&6; }
19657 if ${ac_cv_path_LINT+:} false; then :
19658 $as_echo_n "(cached) " >&6
19659 else
19660 case $LINT in
19661 [\\/]* | ?:[\\/]*)
19662 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19663 ;;
19664 *)
19665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19666 for as_dir in $PATH
19667 do
19668 IFS=$as_save_IFS
19669 test -z "$as_dir" && as_dir=.
19670 for ac_exec_ext in '' $ac_executable_extensions; do
19671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19672 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
19673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19674 break 2
19675 fi
19676 done
19677 done
19678 IFS=$as_save_IFS
19679
19680 ;;
19681 esac
19682 fi
19683 LINT=$ac_cv_path_LINT
19684 if test -n "$LINT"; then
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19686 $as_echo "$LINT" >&6; }
19687 else
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689 $as_echo "no" >&6; }
19690 fi
19691
19692
19693 if test "x$LINT" = "x"; then
19694 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19695 fi
19696 elif test "x$use_lint" = x"no" ; then
19697 if test "x$LINT" != "x"; then
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19699 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19700 fi
19701 else
19702 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19703 fi
19704
19705 # User supplied flags override default flags
19706 if test "x$LINT_FLAGS" != "x"; then
19707 lint_options=$LINT_FLAGS
19708 fi
19709
19710 LINT_FLAGS=$lint_options
19711
19712 if test "x$LINT" != x; then
19713 LINT_TRUE=
19714 LINT_FALSE='#'
19715 else
19716 LINT_TRUE='#'
19717 LINT_FALSE=
19718 fi
19719
19720
19721
19722
19723
19724 # Check whether --enable-lint-library was given.
19725 if test "${enable_lint_library+set}" = set; then :
19726 enableval=$enable_lint_library; make_lint_lib=$enableval
19727 else
19728 make_lint_lib=no
19729 fi
19730
19731
19732 if test "x$make_lint_lib" = x"yes" ; then
19733 LINTLIB=llib-lXdmcp.ln
19734 if test "x$LINT" = "x"; then
19735 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
19736 fi
19737 elif test "x$make_lint_lib" != x"no" ; then
19738 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
19739 fi
19740
19741
19742 if test x$make_lint_lib != xno; then
19743 MAKE_LINT_LIB_TRUE=
19744 MAKE_LINT_LIB_FALSE='#'
19745 else
19746 MAKE_LINT_LIB_TRUE='#'
19747 MAKE_LINT_LIB_FALSE=
19748 fi
19749
19750
19751
19752
19753 # --enable-unit-tests
19754
19755
19756
19757
19758
19759 # Check for different types of support on different platforms
19760 case $host_os in
19761 solaris*)
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
19763 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
19764 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
19765 $as_echo_n "(cached) " >&6
19766 else
19767 ac_check_lib_save_LIBS=$LIBS
19768 LIBS="-lumem $LIBS"
19769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19771
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 char umem_alloc ();
19779 int
19780 main ()
19781 {
19782 return umem_alloc ();
19783 ;
19784 return 0;
19785 }
19786 _ACEOF
19787 if ac_fn_c_try_link "$LINENO"; then :
19788 ac_cv_lib_umem_umem_alloc=yes
19789 else
19790 ac_cv_lib_umem_umem_alloc=no
19791 fi
19792 rm -f core conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19795 fi
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
19797 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
19798 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
19799 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
19800 fi
19801
19802 ;;
19803 *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
19804 # both directly and inverted, so should not be 0 or 255.
19805 malloc_debug_env='MALLOC_PERTURB_=15'
19806 ;;
19807 darwin*)
19808 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
19809 ;;
19810 *bsd*)
19811 malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
19812 ;;
19813 esac
19814
19815 # User supplied flags override default flags
19816 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
19817 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
19818 fi
19819
19820 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
19821
19822
19823
19824
19825
19826
19827
19828 # Check whether --enable-unit-tests was given.
19829 if test "${enable_unit_tests+set}" = set; then :
19830 enableval=$enable_unit_tests; enable_unit_tests=$enableval
19831 else
19832 enable_unit_tests=yes
19833 fi
19834
19835
19836 if test "x$enable_unit_tests" != xno; then
19837 ENABLE_UNIT_TESTS_TRUE=
19838 ENABLE_UNIT_TESTS_FALSE='#'
19839 else
19840 ENABLE_UNIT_TESTS_TRUE='#'
19841 ENABLE_UNIT_TESTS_FALSE=
19842 fi
19843
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
19845 $as_echo_n "checking whether to build unit test cases... " >&6; }
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
19847 $as_echo "$enable_unit_tests" >&6; }
19848
19849
19850 ac_config_files="$ac_config_files Makefile doc/Makefile test/Makefile xdmcp.pc"
19851
19852 cat >confcache <<\_ACEOF
19853 # This file is a shell script that caches the results of configure
19854 # tests run on this system so they can be shared between configure
19855 # scripts and configure runs, see configure's option --config-cache.
19856 # It is not useful on other systems. If it contains results you don't
19857 # want to keep, you may remove or edit it.
19858 #
19859 # config.status only pays attention to the cache file if you give it
19860 # the --recheck option to rerun configure.
19861 #
19862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19864 # following values.
19865
19866 _ACEOF
19867
19868 # The following way of writing the cache mishandles newlines in values,
19869 # but we know of no workaround that is simple, portable, and efficient.
19870 # So, we kill variables containing newlines.
19871 # Ultrix sh set writes to stderr and can't be redirected directly,
19872 # and sets the high bit in the cache file unless we assign to the vars.
19873 (
19874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19875 eval ac_val=\$$ac_var
19876 case $ac_val in #(
19877 *${as_nl}*)
19878 case $ac_var in #(
19879 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19881 esac
19882 case $ac_var in #(
19883 _ | IFS | as_nl) ;; #(
19884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19885 *) { eval $ac_var=; unset $ac_var;} ;;
19886 esac ;;
19887 esac
19888 done
19889
19890 (set) 2>&1 |
19891 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19892 *${as_nl}ac_space=\ *)
19893 # `set' does not quote correctly, so add quotes: double-quote
19894 # substitution turns \\\\ into \\, and sed turns \\ into \.
19895 sed -n \
19896 "s/'/'\\\\''/g;
19897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19898 ;; #(
19899 *)
19900 # `set' quotes correctly as required by POSIX, so do not add quotes.
19901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19902 ;;
19903 esac |
19904 sort
19905 ) |
19906 sed '
19907 /^ac_cv_env_/b end
19908 t clear
19909 :clear
19910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19911 t end
19912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19913 :end' >>confcache
19914 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19915 if test -w "$cache_file"; then
19916 if test "x$cache_file" != "x/dev/null"; then
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19918 $as_echo "$as_me: updating cache $cache_file" >&6;}
19919 if test ! -f "$cache_file" || test -h "$cache_file"; then
19920 cat confcache >"$cache_file"
19921 else
19922 case $cache_file in #(
19923 */* | ?:*)
19924 mv -f confcache "$cache_file"$$ &&
19925 mv -f "$cache_file"$$ "$cache_file" ;; #(
19926 *)
19927 mv -f confcache "$cache_file" ;;
19928 esac
19929 fi
19930 fi
19931 else
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19933 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19934 fi
19935 fi
19936 rm -f confcache
19937
19938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19939 # Let make expand exec_prefix.
19940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19941
19942 DEFS=-DHAVE_CONFIG_H
19943
19944 ac_libobjs=
19945 ac_ltlibobjs=
19946 U=
19947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19948 # 1. Remove the extension, and $U if already installed.
19949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19950 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19952 # will be set to the directory where LIBOBJS objects are built.
19953 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19954 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19955 done
19956 LIBOBJS=$ac_libobjs
19957
19958 LTLIBOBJS=$ac_ltlibobjs
19959
19960
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19962 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19963 if test -n "$am_sleep_pid"; then
19964 # Hide warnings about reused PIDs.
19965 wait $am_sleep_pid 2>/dev/null
19966 fi
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19968 $as_echo "done" >&6; }
19969 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19970 as_fn_error $? "conditional \"AMDEP\" was never defined.
19971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19972 fi
19973 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19974 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19976 fi
19977 if test -n "$EXEEXT"; then
19978 am__EXEEXT_TRUE=
19979 am__EXEEXT_FALSE='#'
19980 else
19981 am__EXEEXT_TRUE='#'
19982 am__EXEEXT_FALSE=
19983 fi
19984
19985 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19986 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19988 fi
19989 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19990 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19992 fi
19993 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19994 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19996 fi
19997 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19998 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20000 fi
20001 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20002 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20004 fi
20005 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20006 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20008 fi
20009 if test -z "${HASXDMAUTH_TRUE}" && test -z "${HASXDMAUTH_FALSE}"; then
20010 as_fn_error $? "conditional \"HASXDMAUTH\" was never defined.
20011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20012 fi
20013 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20014 as_fn_error $? "conditional \"LINT\" was never defined.
20015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20016 fi
20017 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20018 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20020 fi
20021 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
20022 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
20023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20024 fi
20025
20026 : "${CONFIG_STATUS=./config.status}"
20027 ac_write_fail=0
20028 ac_clean_files_save=$ac_clean_files
20029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20032 as_write_fail=0
20033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20034 #! $SHELL
20035 # Generated by $as_me.
20036 # Run this file to recreate the current configuration.
20037 # Compiler output produced by configure, useful for debugging
20038 # configure, is in config.log if it exists.
20039
20040 debug=false
20041 ac_cs_recheck=false
20042 ac_cs_silent=false
20043
20044 SHELL=\${CONFIG_SHELL-$SHELL}
20045 export SHELL
20046 _ASEOF
20047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20048 ## -------------------- ##
20049 ## M4sh Initialization. ##
20050 ## -------------------- ##
20051
20052 # Be more Bourne compatible
20053 DUALCASE=1; export DUALCASE # for MKS sh
20054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20055 emulate sh
20056 NULLCMD=:
20057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20058 # is contrary to our usage. Disable this feature.
20059 alias -g '${1+"$@"}'='"$@"'
20060 setopt NO_GLOB_SUBST
20061 else
20062 case `(set -o) 2>/dev/null` in #(
20063 *posix*) :
20064 set -o posix ;; #(
20065 *) :
20066 ;;
20067 esac
20068 fi
20069
20070
20071 as_nl='
20072 '
20073 export as_nl
20074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20075 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20078 # Prefer a ksh shell builtin over an external printf program on Solaris,
20079 # but without wasting forks for bash or zsh.
20080 if test -z "$BASH_VERSION$ZSH_VERSION" \
20081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20082 as_echo='print -r --'
20083 as_echo_n='print -rn --'
20084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20085 as_echo='printf %s\n'
20086 as_echo_n='printf %s'
20087 else
20088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20090 as_echo_n='/usr/ucb/echo -n'
20091 else
20092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20093 as_echo_n_body='eval
20094 arg=$1;
20095 case $arg in #(
20096 *"$as_nl"*)
20097 expr "X$arg" : "X\\(.*\\)$as_nl";
20098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20099 esac;
20100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20101 '
20102 export as_echo_n_body
20103 as_echo_n='sh -c $as_echo_n_body as_echo'
20104 fi
20105 export as_echo_body
20106 as_echo='sh -c $as_echo_body as_echo'
20107 fi
20108
20109 # The user is always right.
20110 if test "${PATH_SEPARATOR+set}" != set; then
20111 PATH_SEPARATOR=:
20112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20114 PATH_SEPARATOR=';'
20115 }
20116 fi
20117
20118
20119 # IFS
20120 # We need space, tab and new line, in precisely that order. Quoting is
20121 # there to prevent editors from complaining about space-tab.
20122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20123 # splitting by setting IFS to empty value.)
20124 IFS=" "" $as_nl"
20125
20126 # Find who we are. Look in the path if we contain no directory separator.
20127 as_myself=
20128 case $0 in #((
20129 *[\\/]* ) as_myself=$0 ;;
20130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20131 for as_dir in $PATH
20132 do
20133 IFS=$as_save_IFS
20134 test -z "$as_dir" && as_dir=.
20135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20136 done
20137 IFS=$as_save_IFS
20138
20139 ;;
20140 esac
20141 # We did not find ourselves, most probably we were run as `sh COMMAND'
20142 # in which case we are not to be found in the path.
20143 if test "x$as_myself" = x; then
20144 as_myself=$0
20145 fi
20146 if test ! -f "$as_myself"; then
20147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20148 exit 1
20149 fi
20150
20151 # Unset variables that we do not need and which cause bugs (e.g. in
20152 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20153 # suppresses any "Segmentation fault" message there. '((' could
20154 # trigger a bug in pdksh 5.2.14.
20155 for as_var in BASH_ENV ENV MAIL MAILPATH
20156 do eval test x\${$as_var+set} = xset \
20157 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20158 done
20159 PS1='$ '
20160 PS2='> '
20161 PS4='+ '
20162
20163 # NLS nuisances.
20164 LC_ALL=C
20165 export LC_ALL
20166 LANGUAGE=C
20167 export LANGUAGE
20168
20169 # CDPATH.
20170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20171
20172
20173 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20174 # ----------------------------------------
20175 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20176 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20177 # script with STATUS, using 1 if that was 0.
20178 as_fn_error ()
20179 {
20180 as_status=$1; test $as_status -eq 0 && as_status=1
20181 if test "$4"; then
20182 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20183 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20184 fi
20185 $as_echo "$as_me: error: $2" >&2
20186 as_fn_exit $as_status
20187 } # as_fn_error
20188
20189
20190 # as_fn_set_status STATUS
20191 # -----------------------
20192 # Set $? to STATUS, without forking.
20193 as_fn_set_status ()
20194 {
20195 return $1
20196 } # as_fn_set_status
20197
20198 # as_fn_exit STATUS
20199 # -----------------
20200 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20201 as_fn_exit ()
20202 {
20203 set +e
20204 as_fn_set_status $1
20205 exit $1
20206 } # as_fn_exit
20207
20208 # as_fn_unset VAR
20209 # ---------------
20210 # Portably unset VAR.
20211 as_fn_unset ()
20212 {
20213 { eval $1=; unset $1;}
20214 }
20215 as_unset=as_fn_unset
20216 # as_fn_append VAR VALUE
20217 # ----------------------
20218 # Append the text in VALUE to the end of the definition contained in VAR. Take
20219 # advantage of any shell optimizations that allow amortized linear growth over
20220 # repeated appends, instead of the typical quadratic growth present in naive
20221 # implementations.
20222 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20223 eval 'as_fn_append ()
20224 {
20225 eval $1+=\$2
20226 }'
20227 else
20228 as_fn_append ()
20229 {
20230 eval $1=\$$1\$2
20231 }
20232 fi # as_fn_append
20233
20234 # as_fn_arith ARG...
20235 # ------------------
20236 # Perform arithmetic evaluation on the ARGs, and store the result in the
20237 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20238 # must be portable across $(()) and expr.
20239 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20240 eval 'as_fn_arith ()
20241 {
20242 as_val=$(( $* ))
20243 }'
20244 else
20245 as_fn_arith ()
20246 {
20247 as_val=`expr "$@" || test $? -eq 1`
20248 }
20249 fi # as_fn_arith
20250
20251
20252 if expr a : '\(a\)' >/dev/null 2>&1 &&
20253 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20254 as_expr=expr
20255 else
20256 as_expr=false
20257 fi
20258
20259 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20260 as_basename=basename
20261 else
20262 as_basename=false
20263 fi
20264
20265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20266 as_dirname=dirname
20267 else
20268 as_dirname=false
20269 fi
20270
20271 as_me=`$as_basename -- "$0" ||
20272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20273 X"$0" : 'X\(//\)$' \| \
20274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20275 $as_echo X/"$0" |
20276 sed '/^.*\/\([^/][^/]*\)\/*$/{
20277 s//\1/
20278 q
20279 }
20280 /^X\/\(\/\/\)$/{
20281 s//\1/
20282 q
20283 }
20284 /^X\/\(\/\).*/{
20285 s//\1/
20286 q
20287 }
20288 s/.*/./; q'`
20289
20290 # Avoid depending upon Character Ranges.
20291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20292 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20293 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20294 as_cr_digits='0123456789'
20295 as_cr_alnum=$as_cr_Letters$as_cr_digits
20296
20297 ECHO_C= ECHO_N= ECHO_T=
20298 case `echo -n x` in #(((((
20299 -n*)
20300 case `echo 'xy\c'` in
20301 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20302 xy) ECHO_C='\c';;
20303 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20304 ECHO_T=' ';;
20305 esac;;
20306 *)
20307 ECHO_N='-n';;
20308 esac
20309
20310 rm -f conf$$ conf$$.exe conf$$.file
20311 if test -d conf$$.dir; then
20312 rm -f conf$$.dir/conf$$.file
20313 else
20314 rm -f conf$$.dir
20315 mkdir conf$$.dir 2>/dev/null
20316 fi
20317 if (echo >conf$$.file) 2>/dev/null; then
20318 if ln -s conf$$.file conf$$ 2>/dev/null; then
20319 as_ln_s='ln -s'
20320 # ... but there are two gotchas:
20321 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20322 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20323 # In both cases, we have to default to `cp -pR'.
20324 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20325 as_ln_s='cp -pR'
20326 elif ln conf$$.file conf$$ 2>/dev/null; then
20327 as_ln_s=ln
20328 else
20329 as_ln_s='cp -pR'
20330 fi
20331 else
20332 as_ln_s='cp -pR'
20333 fi
20334 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20335 rmdir conf$$.dir 2>/dev/null
20336
20337
20338 # as_fn_mkdir_p
20339 # -------------
20340 # Create "$as_dir" as a directory, including parents if necessary.
20341 as_fn_mkdir_p ()
20342 {
20343
20344 case $as_dir in #(
20345 -*) as_dir=./$as_dir;;
20346 esac
20347 test -d "$as_dir" || eval $as_mkdir_p || {
20348 as_dirs=
20349 while :; do
20350 case $as_dir in #(
20351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20352 *) as_qdir=$as_dir;;
20353 esac
20354 as_dirs="'$as_qdir' $as_dirs"
20355 as_dir=`$as_dirname -- "$as_dir" ||
20356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20357 X"$as_dir" : 'X\(//\)[^/]' \| \
20358 X"$as_dir" : 'X\(//\)$' \| \
20359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20360 $as_echo X"$as_dir" |
20361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20362 s//\1/
20363 q
20364 }
20365 /^X\(\/\/\)[^/].*/{
20366 s//\1/
20367 q
20368 }
20369 /^X\(\/\/\)$/{
20370 s//\1/
20371 q
20372 }
20373 /^X\(\/\).*/{
20374 s//\1/
20375 q
20376 }
20377 s/.*/./; q'`
20378 test -d "$as_dir" && break
20379 done
20380 test -z "$as_dirs" || eval "mkdir $as_dirs"
20381 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20382
20383
20384 } # as_fn_mkdir_p
20385 if mkdir -p . 2>/dev/null; then
20386 as_mkdir_p='mkdir -p "$as_dir"'
20387 else
20388 test -d ./-p && rmdir ./-p
20389 as_mkdir_p=false
20390 fi
20391
20392
20393 # as_fn_executable_p FILE
20394 # -----------------------
20395 # Test if FILE is an executable regular file.
20396 as_fn_executable_p ()
20397 {
20398 test -f "$1" && test -x "$1"
20399 } # as_fn_executable_p
20400 as_test_x='test -x'
20401 as_executable_p=as_fn_executable_p
20402
20403 # Sed expression to map a string onto a valid CPP name.
20404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20405
20406 # Sed expression to map a string onto a valid variable name.
20407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20408
20409
20410 exec 6>&1
20411 ## ----------------------------------- ##
20412 ## Main body of $CONFIG_STATUS script. ##
20413 ## ----------------------------------- ##
20414 _ASEOF
20415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20416
20417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20418 # Save the log message, to keep $0 and so on meaningful, and to
20419 # report actual input values of CONFIG_FILES etc. instead of their
20420 # values after options handling.
20421 ac_log="
20422 This file was extended by libXdmcp $as_me 1.1.3, which was
20423 generated by GNU Autoconf 2.69. Invocation command line was
20424
20425 CONFIG_FILES = $CONFIG_FILES
20426 CONFIG_HEADERS = $CONFIG_HEADERS
20427 CONFIG_LINKS = $CONFIG_LINKS
20428 CONFIG_COMMANDS = $CONFIG_COMMANDS
20429 $ $0 $@
20430
20431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20432 "
20433
20434 _ACEOF
20435
20436 case $ac_config_files in *"
20437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20438 esac
20439
20440 case $ac_config_headers in *"
20441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20442 esac
20443
20444
20445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20446 # Files that config.status was made for.
20447 config_files="$ac_config_files"
20448 config_headers="$ac_config_headers"
20449 config_commands="$ac_config_commands"
20450
20451 _ACEOF
20452
20453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20454 ac_cs_usage="\
20455 \`$as_me' instantiates files and other configuration actions
20456 from templates according to the current configuration. Unless the files
20457 and actions are specified as TAGs, all are instantiated by default.
20458
20459 Usage: $0 [OPTION]... [TAG]...
20460
20461 -h, --help print this help, then exit
20462 -V, --version print version number and configuration settings, then exit
20463 --config print configuration, then exit
20464 -q, --quiet, --silent
20465 do not print progress messages
20466 -d, --debug don't remove temporary files
20467 --recheck update $as_me by reconfiguring in the same conditions
20468 --file=FILE[:TEMPLATE]
20469 instantiate the configuration file FILE
20470 --header=FILE[:TEMPLATE]
20471 instantiate the configuration header FILE
20472
20473 Configuration files:
20474 $config_files
20475
20476 Configuration headers:
20477 $config_headers
20478
20479 Configuration commands:
20480 $config_commands
20481
20482 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20483
20484 _ACEOF
20485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20487 ac_cs_version="\\
20488 libXdmcp config.status 1.1.3
20489 configured by $0, generated by GNU Autoconf 2.69,
20490 with options \\"\$ac_cs_config\\"
20491
20492 Copyright (C) 2012 Free Software Foundation, Inc.
20493 This config.status script is free software; the Free Software Foundation
20494 gives unlimited permission to copy, distribute and modify it."
20495
20496 ac_pwd='$ac_pwd'
20497 srcdir='$srcdir'
20498 INSTALL='$INSTALL'
20499 MKDIR_P='$MKDIR_P'
20500 AWK='$AWK'
20501 test -n "\$AWK" || AWK=awk
20502 _ACEOF
20503
20504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20505 # The default lists apply if the user does not specify any file.
20506 ac_need_defaults=:
20507 while test $# != 0
20508 do
20509 case $1 in
20510 --*=?*)
20511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20513 ac_shift=:
20514 ;;
20515 --*=)
20516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20517 ac_optarg=
20518 ac_shift=:
20519 ;;
20520 *)
20521 ac_option=$1
20522 ac_optarg=$2
20523 ac_shift=shift
20524 ;;
20525 esac
20526
20527 case $ac_option in
20528 # Handling of the options.
20529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20530 ac_cs_recheck=: ;;
20531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20532 $as_echo "$ac_cs_version"; exit ;;
20533 --config | --confi | --conf | --con | --co | --c )
20534 $as_echo "$ac_cs_config"; exit ;;
20535 --debug | --debu | --deb | --de | --d | -d )
20536 debug=: ;;
20537 --file | --fil | --fi | --f )
20538 $ac_shift
20539 case $ac_optarg in
20540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20541 '') as_fn_error $? "missing file argument" ;;
20542 esac
20543 as_fn_append CONFIG_FILES " '$ac_optarg'"
20544 ac_need_defaults=false;;
20545 --header | --heade | --head | --hea )
20546 $ac_shift
20547 case $ac_optarg in
20548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20549 esac
20550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20551 ac_need_defaults=false;;
20552 --he | --h)
20553 # Conflict between --help and --header
20554 as_fn_error $? "ambiguous option: \`$1'
20555 Try \`$0 --help' for more information.";;
20556 --help | --hel | -h )
20557 $as_echo "$ac_cs_usage"; exit ;;
20558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20560 ac_cs_silent=: ;;
20561
20562 # This is an error.
20563 -*) as_fn_error $? "unrecognized option: \`$1'
20564 Try \`$0 --help' for more information." ;;
20565
20566 *) as_fn_append ac_config_targets " $1"
20567 ac_need_defaults=false ;;
20568
20569 esac
20570 shift
20571 done
20572
20573 ac_configure_extra_args=
20574
20575 if $ac_cs_silent; then
20576 exec 6>/dev/null
20577 ac_configure_extra_args="$ac_configure_extra_args --silent"
20578 fi
20579
20580 _ACEOF
20581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20582 if \$ac_cs_recheck; then
20583 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20584 shift
20585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20586 CONFIG_SHELL='$SHELL'
20587 export CONFIG_SHELL
20588 exec "\$@"
20589 fi
20590
20591 _ACEOF
20592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20593 exec 5>>config.log
20594 {
20595 echo
20596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20597 ## Running $as_me. ##
20598 _ASBOX
20599 $as_echo "$ac_log"
20600 } >&5
20601
20602 _ACEOF
20603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20604 #
20605 # INIT-COMMANDS
20606 #
20607 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20608
20609
20610 # The HP-UX ksh and POSIX shell print the target directory to stdout
20611 # if CDPATH is set.
20612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20613
20614 sed_quote_subst='$sed_quote_subst'
20615 double_quote_subst='$double_quote_subst'
20616 delay_variable_subst='$delay_variable_subst'
20617 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20618 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20619 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20620 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20621 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20622 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20623 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20624 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20625 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20626 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20627 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20628 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20629 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20630 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20631 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20632 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20633 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20634 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20635 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20636 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20637 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20638 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20639 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20640 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20641 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20642 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20643 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20644 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20645 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20646 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20647 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20648 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20649 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20650 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20651 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20652 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20653 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20654 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20655 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20656 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20657 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20658 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20659 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20660 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20661 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20662 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20663 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20664 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20665 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20666 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20667 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20668 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20669 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20670 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20671 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20672 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20673 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20674 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20675 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20676 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"`'
20677 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20678 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20679 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20680 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20681 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20682 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20683 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20684 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20685 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20686 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20687 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20688 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20689 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20690 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20691 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20692 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20693 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20694 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20695 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20696 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20697 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20698 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20699 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20700 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20701 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20702 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20703 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20704 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20705 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20706 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20707 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20708 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20709 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20710 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20711 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20712 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20713 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20714 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20715 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20716 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20717 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20718 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20719 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20720 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20721 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20722 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20723 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20724 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20725 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20726 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20727 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20728 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20729 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20730 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20731 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20732 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20733 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20734 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20735 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20736 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20737 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20738 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20739 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20740 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20741 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20742 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20743 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20744 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20745 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20746 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20747 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20748 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20749 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20750 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20751 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20752 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20753
20754 LTCC='$LTCC'
20755 LTCFLAGS='$LTCFLAGS'
20756 compiler='$compiler_DEFAULT'
20757
20758 # A function that is used when there is no print builtin or printf.
20759 func_fallback_echo ()
20760 {
20761 eval 'cat <<_LTECHO_EOF
20762 \$1
20763 _LTECHO_EOF'
20764 }
20765
20766 # Quote evaled strings.
20767 for var in AS \
20768 DLLTOOL \
20769 OBJDUMP \
20770 SHELL \
20771 ECHO \
20772 PATH_SEPARATOR \
20773 SED \
20774 GREP \
20775 EGREP \
20776 FGREP \
20777 LD \
20778 NM \
20779 LN_S \
20780 lt_SP2NL \
20781 lt_NL2SP \
20782 reload_flag \
20783 deplibs_check_method \
20784 file_magic_cmd \
20785 file_magic_glob \
20786 want_nocaseglob \
20787 sharedlib_from_linklib_cmd \
20788 AR \
20789 AR_FLAGS \
20790 archiver_list_spec \
20791 STRIP \
20792 RANLIB \
20793 CC \
20794 CFLAGS \
20795 compiler \
20796 lt_cv_sys_global_symbol_pipe \
20797 lt_cv_sys_global_symbol_to_cdecl \
20798 lt_cv_sys_global_symbol_to_import \
20799 lt_cv_sys_global_symbol_to_c_name_address \
20800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20801 lt_cv_nm_interface \
20802 nm_file_list_spec \
20803 lt_cv_truncate_bin \
20804 lt_prog_compiler_no_builtin_flag \
20805 lt_prog_compiler_pic \
20806 lt_prog_compiler_wl \
20807 lt_prog_compiler_static \
20808 lt_cv_prog_compiler_c_o \
20809 need_locks \
20810 MANIFEST_TOOL \
20811 DSYMUTIL \
20812 NMEDIT \
20813 LIPO \
20814 OTOOL \
20815 OTOOL64 \
20816 shrext_cmds \
20817 export_dynamic_flag_spec \
20818 whole_archive_flag_spec \
20819 compiler_needs_object \
20820 with_gnu_ld \
20821 allow_undefined_flag \
20822 no_undefined_flag \
20823 hardcode_libdir_flag_spec \
20824 hardcode_libdir_separator \
20825 exclude_expsyms \
20826 include_expsyms \
20827 file_list_spec \
20828 variables_saved_for_relink \
20829 libname_spec \
20830 library_names_spec \
20831 soname_spec \
20832 install_override_mode \
20833 finish_eval \
20834 old_striplib \
20835 striplib; do
20836 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20837 *[\\\\\\\`\\"\\\$]*)
20838 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20839 ;;
20840 *)
20841 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20842 ;;
20843 esac
20844 done
20845
20846 # Double-quote double-evaled strings.
20847 for var in reload_cmds \
20848 old_postinstall_cmds \
20849 old_postuninstall_cmds \
20850 old_archive_cmds \
20851 extract_expsyms_cmds \
20852 old_archive_from_new_cmds \
20853 old_archive_from_expsyms_cmds \
20854 archive_cmds \
20855 archive_expsym_cmds \
20856 module_cmds \
20857 module_expsym_cmds \
20858 export_symbols_cmds \
20859 prelink_cmds \
20860 postlink_cmds \
20861 postinstall_cmds \
20862 postuninstall_cmds \
20863 finish_cmds \
20864 sys_lib_search_path_spec \
20865 configure_time_dlsearch_path \
20866 configure_time_lt_sys_library_path; do
20867 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20868 *[\\\\\\\`\\"\\\$]*)
20869 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20870 ;;
20871 *)
20872 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20873 ;;
20874 esac
20875 done
20876
20877 ac_aux_dir='$ac_aux_dir'
20878
20879 # See if we are running on zsh, and set the options that allow our
20880 # commands through without removal of \ escapes INIT.
20881 if test -n "\${ZSH_VERSION+set}"; then
20882 setopt NO_GLOB_SUBST
20883 fi
20884
20885
20886 PACKAGE='$PACKAGE'
20887 VERSION='$VERSION'
20888 RM='$RM'
20889 ofile='$ofile'
20890
20891
20892
20893
20894 _ACEOF
20895
20896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20897
20898 # Handling of arguments.
20899 for ac_config_target in $ac_config_targets
20900 do
20901 case $ac_config_target in
20902 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20903 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20904 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20905 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20906 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20907 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20908 "xdmcp.pc") CONFIG_FILES="$CONFIG_FILES xdmcp.pc" ;;
20909
20910 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20911 esac
20912 done
20913
20914
20915 # If the user did not use the arguments to specify the items to instantiate,
20916 # then the envvar interface is used. Set only those that are not.
20917 # We use the long form for the default assignment because of an extremely
20918 # bizarre bug on SunOS 4.1.3.
20919 if $ac_need_defaults; then
20920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20921 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20922 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20923 fi
20924
20925 # Have a temporary directory for convenience. Make it in the build tree
20926 # simply because there is no reason against having it here, and in addition,
20927 # creating and moving files from /tmp can sometimes cause problems.
20928 # Hook for its removal unless debugging.
20929 # Note that there is a small window in which the directory will not be cleaned:
20930 # after its creation but before its name has been assigned to `$tmp'.
20931 $debug ||
20932 {
20933 tmp= ac_tmp=
20934 trap 'exit_status=$?
20935 : "${ac_tmp:=$tmp}"
20936 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20937 ' 0
20938 trap 'as_fn_exit 1' 1 2 13 15
20939 }
20940 # Create a (secure) tmp directory for tmp files.
20941
20942 {
20943 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20944 test -d "$tmp"
20945 } ||
20946 {
20947 tmp=./conf$$-$RANDOM
20948 (umask 077 && mkdir "$tmp")
20949 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20950 ac_tmp=$tmp
20951
20952 # Set up the scripts for CONFIG_FILES section.
20953 # No need to generate them if there are no CONFIG_FILES.
20954 # This happens for instance with `./config.status config.h'.
20955 if test -n "$CONFIG_FILES"; then
20956
20957
20958 ac_cr=`echo X | tr X '\015'`
20959 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20960 # But we know of no other shell where ac_cr would be empty at this
20961 # point, so we can use a bashism as a fallback.
20962 if test "x$ac_cr" = x; then
20963 eval ac_cr=\$\'\\r\'
20964 fi
20965 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20966 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20967 ac_cs_awk_cr='\\r'
20968 else
20969 ac_cs_awk_cr=$ac_cr
20970 fi
20971
20972 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20973 _ACEOF
20974
20975
20976 {
20977 echo "cat >conf$$subs.awk <<_ACEOF" &&
20978 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20979 echo "_ACEOF"
20980 } >conf$$subs.sh ||
20981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20982 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20983 ac_delim='%!_!# '
20984 for ac_last_try in false false false false false :; do
20985 . ./conf$$subs.sh ||
20986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20987
20988 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20989 if test $ac_delim_n = $ac_delim_num; then
20990 break
20991 elif $ac_last_try; then
20992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20993 else
20994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20995 fi
20996 done
20997 rm -f conf$$subs.sh
20998
20999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21000 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21001 _ACEOF
21002 sed -n '
21003 h
21004 s/^/S["/; s/!.*/"]=/
21005 p
21006 g
21007 s/^[^!]*!//
21008 :repl
21009 t repl
21010 s/'"$ac_delim"'$//
21011 t delim
21012 :nl
21013 h
21014 s/\(.\{148\}\)..*/\1/
21015 t more1
21016 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21017 p
21018 n
21019 b repl
21020 :more1
21021 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21022 p
21023 g
21024 s/.\{148\}//
21025 t nl
21026 :delim
21027 h
21028 s/\(.\{148\}\)..*/\1/
21029 t more2
21030 s/["\\]/\\&/g; s/^/"/; s/$/"/
21031 p
21032 b
21033 :more2
21034 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21035 p
21036 g
21037 s/.\{148\}//
21038 t delim
21039 ' <conf$$subs.awk | sed '
21040 /^[^""]/{
21041 N
21042 s/\n//
21043 }
21044 ' >>$CONFIG_STATUS || ac_write_fail=1
21045 rm -f conf$$subs.awk
21046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21047 _ACAWK
21048 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21049 for (key in S) S_is_set[key] = 1
21050 FS = ""
21051
21052 }
21053 {
21054 line = $ 0
21055 nfields = split(line, field, "@")
21056 substed = 0
21057 len = length(field[1])
21058 for (i = 2; i < nfields; i++) {
21059 key = field[i]
21060 keylen = length(key)
21061 if (S_is_set[key]) {
21062 value = S[key]
21063 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21064 len += length(value) + length(field[++i])
21065 substed = 1
21066 } else
21067 len += 1 + keylen
21068 }
21069
21070 print line
21071 }
21072
21073 _ACAWK
21074 _ACEOF
21075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21076 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21077 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21078 else
21079 cat
21080 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21081 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21082 _ACEOF
21083
21084 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21085 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21086 # trailing colons and then remove the whole line if VPATH becomes empty
21087 # (actually we leave an empty line to preserve line numbers).
21088 if test "x$srcdir" = x.; then
21089 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21090 h
21091 s///
21092 s/^/:/
21093 s/[ ]*$/:/
21094 s/:\$(srcdir):/:/g
21095 s/:\${srcdir}:/:/g
21096 s/:@srcdir@:/:/g
21097 s/^:*//
21098 s/:*$//
21099 x
21100 s/\(=[ ]*\).*/\1/
21101 G
21102 s/\n//
21103 s/^[^=]*=[ ]*$//
21104 }'
21105 fi
21106
21107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21108 fi # test -n "$CONFIG_FILES"
21109
21110 # Set up the scripts for CONFIG_HEADERS section.
21111 # No need to generate them if there are no CONFIG_HEADERS.
21112 # This happens for instance with `./config.status Makefile'.
21113 if test -n "$CONFIG_HEADERS"; then
21114 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21115 BEGIN {
21116 _ACEOF
21117
21118 # Transform confdefs.h into an awk script `defines.awk', embedded as
21119 # here-document in config.status, that substitutes the proper values into
21120 # config.h.in to produce config.h.
21121
21122 # Create a delimiter string that does not exist in confdefs.h, to ease
21123 # handling of long lines.
21124 ac_delim='%!_!# '
21125 for ac_last_try in false false :; do
21126 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21127 if test -z "$ac_tt"; then
21128 break
21129 elif $ac_last_try; then
21130 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21131 else
21132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21133 fi
21134 done
21135
21136 # For the awk script, D is an array of macro values keyed by name,
21137 # likewise P contains macro parameters if any. Preserve backslash
21138 # newline sequences.
21139
21140 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21141 sed -n '
21142 s/.\{148\}/&'"$ac_delim"'/g
21143 t rset
21144 :rset
21145 s/^[ ]*#[ ]*define[ ][ ]*/ /
21146 t def
21147 d
21148 :def
21149 s/\\$//
21150 t bsnl
21151 s/["\\]/\\&/g
21152 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21153 D["\1"]=" \3"/p
21154 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21155 d
21156 :bsnl
21157 s/["\\]/\\&/g
21158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21159 D["\1"]=" \3\\\\\\n"\\/p
21160 t cont
21161 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21162 t cont
21163 d
21164 :cont
21165 n
21166 s/.\{148\}/&'"$ac_delim"'/g
21167 t clear
21168 :clear
21169 s/\\$//
21170 t bsnlc
21171 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21172 d
21173 :bsnlc
21174 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21175 b cont
21176 ' <confdefs.h | sed '
21177 s/'"$ac_delim"'/"\\\
21178 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21179
21180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21181 for (key in D) D_is_set[key] = 1
21182 FS = ""
21183 }
21184 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21185 line = \$ 0
21186 split(line, arg, " ")
21187 if (arg[1] == "#") {
21188 defundef = arg[2]
21189 mac1 = arg[3]
21190 } else {
21191 defundef = substr(arg[1], 2)
21192 mac1 = arg[2]
21193 }
21194 split(mac1, mac2, "(") #)
21195 macro = mac2[1]
21196 prefix = substr(line, 1, index(line, defundef) - 1)
21197 if (D_is_set[macro]) {
21198 # Preserve the white space surrounding the "#".
21199 print prefix "define", macro P[macro] D[macro]
21200 next
21201 } else {
21202 # Replace #undef with comments. This is necessary, for example,
21203 # in the case of _POSIX_SOURCE, which is predefined and required
21204 # on some systems where configure will not decide to define it.
21205 if (defundef == "undef") {
21206 print "/*", prefix defundef, macro, "*/"
21207 next
21208 }
21209 }
21210 }
21211 { print }
21212 _ACAWK
21213 _ACEOF
21214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21215 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21216 fi # test -n "$CONFIG_HEADERS"
21217
21218
21219 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21220 shift
21221 for ac_tag
21222 do
21223 case $ac_tag in
21224 :[FHLC]) ac_mode=$ac_tag; continue;;
21225 esac
21226 case $ac_mode$ac_tag in
21227 :[FHL]*:*);;
21228 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21229 :[FH]-) ac_tag=-:-;;
21230 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21231 esac
21232 ac_save_IFS=$IFS
21233 IFS=:
21234 set x $ac_tag
21235 IFS=$ac_save_IFS
21236 shift
21237 ac_file=$1
21238 shift
21239
21240 case $ac_mode in
21241 :L) ac_source=$1;;
21242 :[FH])
21243 ac_file_inputs=
21244 for ac_f
21245 do
21246 case $ac_f in
21247 -) ac_f="$ac_tmp/stdin";;
21248 *) # Look for the file first in the build tree, then in the source tree
21249 # (if the path is not absolute). The absolute path cannot be DOS-style,
21250 # because $ac_f cannot contain `:'.
21251 test -f "$ac_f" ||
21252 case $ac_f in
21253 [\\/$]*) false;;
21254 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21255 esac ||
21256 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21257 esac
21258 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21259 as_fn_append ac_file_inputs " '$ac_f'"
21260 done
21261
21262 # Let's still pretend it is `configure' which instantiates (i.e., don't
21263 # use $as_me), people would be surprised to read:
21264 # /* config.h. Generated by config.status. */
21265 configure_input='Generated from '`
21266 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21267 `' by configure.'
21268 if test x"$ac_file" != x-; then
21269 configure_input="$ac_file. $configure_input"
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21271 $as_echo "$as_me: creating $ac_file" >&6;}
21272 fi
21273 # Neutralize special characters interpreted by sed in replacement strings.
21274 case $configure_input in #(
21275 *\&* | *\|* | *\\* )
21276 ac_sed_conf_input=`$as_echo "$configure_input" |
21277 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21278 *) ac_sed_conf_input=$configure_input;;
21279 esac
21280
21281 case $ac_tag in
21282 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21284 esac
21285 ;;
21286 esac
21287
21288 ac_dir=`$as_dirname -- "$ac_file" ||
21289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21290 X"$ac_file" : 'X\(//\)[^/]' \| \
21291 X"$ac_file" : 'X\(//\)$' \| \
21292 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21293 $as_echo X"$ac_file" |
21294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21295 s//\1/
21296 q
21297 }
21298 /^X\(\/\/\)[^/].*/{
21299 s//\1/
21300 q
21301 }
21302 /^X\(\/\/\)$/{
21303 s//\1/
21304 q
21305 }
21306 /^X\(\/\).*/{
21307 s//\1/
21308 q
21309 }
21310 s/.*/./; q'`
21311 as_dir="$ac_dir"; as_fn_mkdir_p
21312 ac_builddir=.
21313
21314 case "$ac_dir" in
21315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21316 *)
21317 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21318 # A ".." for each directory in $ac_dir_suffix.
21319 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21320 case $ac_top_builddir_sub in
21321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21323 esac ;;
21324 esac
21325 ac_abs_top_builddir=$ac_pwd
21326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21327 # for backward compatibility:
21328 ac_top_builddir=$ac_top_build_prefix
21329
21330 case $srcdir in
21331 .) # We are building in place.
21332 ac_srcdir=.
21333 ac_top_srcdir=$ac_top_builddir_sub
21334 ac_abs_top_srcdir=$ac_pwd ;;
21335 [\\/]* | ?:[\\/]* ) # Absolute name.
21336 ac_srcdir=$srcdir$ac_dir_suffix;
21337 ac_top_srcdir=$srcdir
21338 ac_abs_top_srcdir=$srcdir ;;
21339 *) # Relative name.
21340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21341 ac_top_srcdir=$ac_top_build_prefix$srcdir
21342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21343 esac
21344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21345
21346
21347 case $ac_mode in
21348 :F)
21349 #
21350 # CONFIG_FILE
21351 #
21352
21353 case $INSTALL in
21354 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21355 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21356 esac
21357 ac_MKDIR_P=$MKDIR_P
21358 case $MKDIR_P in
21359 [\\/$]* | ?:[\\/]* ) ;;
21360 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21361 esac
21362 _ACEOF
21363
21364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21365 # If the template does not know about datarootdir, expand it.
21366 # FIXME: This hack should be removed a few years after 2.60.
21367 ac_datarootdir_hack=; ac_datarootdir_seen=
21368 ac_sed_dataroot='
21369 /datarootdir/ {
21370 p
21371 q
21372 }
21373 /@datadir@/p
21374 /@docdir@/p
21375 /@infodir@/p
21376 /@localedir@/p
21377 /@mandir@/p'
21378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21379 *datarootdir*) ac_datarootdir_seen=yes;;
21380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21383 _ACEOF
21384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21385 ac_datarootdir_hack='
21386 s&@datadir@&$datadir&g
21387 s&@docdir@&$docdir&g
21388 s&@infodir@&$infodir&g
21389 s&@localedir@&$localedir&g
21390 s&@mandir@&$mandir&g
21391 s&\\\${datarootdir}&$datarootdir&g' ;;
21392 esac
21393 _ACEOF
21394
21395 # Neutralize VPATH when `$srcdir' = `.'.
21396 # Shell code in configure.ac might set extrasub.
21397 # FIXME: do we really want to maintain this feature?
21398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21399 ac_sed_extra="$ac_vpsub
21400 $extrasub
21401 _ACEOF
21402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21403 :t
21404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21405 s|@configure_input@|$ac_sed_conf_input|;t t
21406 s&@top_builddir@&$ac_top_builddir_sub&;t t
21407 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21408 s&@srcdir@&$ac_srcdir&;t t
21409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21410 s&@top_srcdir@&$ac_top_srcdir&;t t
21411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21412 s&@builddir@&$ac_builddir&;t t
21413 s&@abs_builddir@&$ac_abs_builddir&;t t
21414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21415 s&@INSTALL@&$ac_INSTALL&;t t
21416 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21417 $ac_datarootdir_hack
21418 "
21419 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21420 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21421
21422 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21423 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21424 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21425 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21427 which seems to be undefined. Please make sure it is defined" >&5
21428 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21429 which seems to be undefined. Please make sure it is defined" >&2;}
21430
21431 rm -f "$ac_tmp/stdin"
21432 case $ac_file in
21433 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21434 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21435 esac \
21436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21437 ;;
21438 :H)
21439 #
21440 # CONFIG_HEADER
21441 #
21442 if test x"$ac_file" != x-; then
21443 {
21444 $as_echo "/* $configure_input */" \
21445 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21446 } >"$ac_tmp/config.h" \
21447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21448 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21450 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21451 else
21452 rm -f "$ac_file"
21453 mv "$ac_tmp/config.h" "$ac_file" \
21454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21455 fi
21456 else
21457 $as_echo "/* $configure_input */" \
21458 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21459 || as_fn_error $? "could not create -" "$LINENO" 5
21460 fi
21461 # Compute "$ac_file"'s index in $config_headers.
21462 _am_arg="$ac_file"
21463 _am_stamp_count=1
21464 for _am_header in $config_headers :; do
21465 case $_am_header in
21466 $_am_arg | $_am_arg:* )
21467 break ;;
21468 * )
21469 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21470 esac
21471 done
21472 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21473 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21474 X"$_am_arg" : 'X\(//\)[^/]' \| \
21475 X"$_am_arg" : 'X\(//\)$' \| \
21476 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21477 $as_echo X"$_am_arg" |
21478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21479 s//\1/
21480 q
21481 }
21482 /^X\(\/\/\)[^/].*/{
21483 s//\1/
21484 q
21485 }
21486 /^X\(\/\/\)$/{
21487 s//\1/
21488 q
21489 }
21490 /^X\(\/\).*/{
21491 s//\1/
21492 q
21493 }
21494 s/.*/./; q'`/stamp-h$_am_stamp_count
21495 ;;
21496
21497 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21498 $as_echo "$as_me: executing $ac_file commands" >&6;}
21499 ;;
21500 esac
21501
21502
21503 case $ac_file$ac_mode in
21504 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21505 # Older Autoconf quotes --file arguments for eval, but not when files
21506 # are listed without --file. Let's play safe and only enable the eval
21507 # if we detect the quoting.
21508 case $CONFIG_FILES in
21509 *\'*) eval set x "$CONFIG_FILES" ;;
21510 *) set x $CONFIG_FILES ;;
21511 esac
21512 shift
21513 for mf
21514 do
21515 # Strip MF so we end up with the name of the file.
21516 mf=`echo "$mf" | sed -e 's/:.*$//'`
21517 # Check whether this is an Automake generated Makefile or not.
21518 # We used to match only the files named 'Makefile.in', but
21519 # some people rename them; so instead we look at the file content.
21520 # Grep'ing the first line is not enough: some people post-process
21521 # each Makefile.in and add a new line on top of each file to say so.
21522 # Grep'ing the whole file is not good either: AIX grep has a line
21523 # limit of 2048, but all sed's we know have understand at least 4000.
21524 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21525 dirpart=`$as_dirname -- "$mf" ||
21526 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21527 X"$mf" : 'X\(//\)[^/]' \| \
21528 X"$mf" : 'X\(//\)$' \| \
21529 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21530 $as_echo X"$mf" |
21531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21532 s//\1/
21533 q
21534 }
21535 /^X\(\/\/\)[^/].*/{
21536 s//\1/
21537 q
21538 }
21539 /^X\(\/\/\)$/{
21540 s//\1/
21541 q
21542 }
21543 /^X\(\/\).*/{
21544 s//\1/
21545 q
21546 }
21547 s/.*/./; q'`
21548 else
21549 continue
21550 fi
21551 # Extract the definition of DEPDIR, am__include, and am__quote
21552 # from the Makefile without running 'make'.
21553 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21554 test -z "$DEPDIR" && continue
21555 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21556 test -z "$am__include" && continue
21557 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21558 # Find all dependency output files, they are included files with
21559 # $(DEPDIR) in their names. We invoke sed twice because it is the
21560 # simplest approach to changing $(DEPDIR) to its actual value in the
21561 # expansion.
21562 for file in `sed -n "
21563 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21564 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21565 # Make sure the directory exists.
21566 test -f "$dirpart/$file" && continue
21567 fdir=`$as_dirname -- "$file" ||
21568 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21569 X"$file" : 'X\(//\)[^/]' \| \
21570 X"$file" : 'X\(//\)$' \| \
21571 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21572 $as_echo X"$file" |
21573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21574 s//\1/
21575 q
21576 }
21577 /^X\(\/\/\)[^/].*/{
21578 s//\1/
21579 q
21580 }
21581 /^X\(\/\/\)$/{
21582 s//\1/
21583 q
21584 }
21585 /^X\(\/\).*/{
21586 s//\1/
21587 q
21588 }
21589 s/.*/./; q'`
21590 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21591 # echo "creating $dirpart/$file"
21592 echo '# dummy' > "$dirpart/$file"
21593 done
21594 done
21595 }
21596 ;;
21597 "libtool":C)
21598
21599 # See if we are running on zsh, and set the options that allow our
21600 # commands through without removal of \ escapes.
21601 if test -n "${ZSH_VERSION+set}"; then
21602 setopt NO_GLOB_SUBST
21603 fi
21604
21605 cfgfile=${ofile}T
21606 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21607 $RM "$cfgfile"
21608
21609 cat <<_LT_EOF >> "$cfgfile"
21610 #! $SHELL
21611 # Generated automatically by $as_me ($PACKAGE) $VERSION
21612 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21613 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21614
21615 # Provide generalized library-building support services.
21616 # Written by Gordon Matzigkeit, 1996
21617
21618 # Copyright (C) 2014 Free Software Foundation, Inc.
21619 # This is free software; see the source for copying conditions. There is NO
21620 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21621
21622 # GNU Libtool is free software; you can redistribute it and/or modify
21623 # it under the terms of the GNU General Public License as published by
21624 # the Free Software Foundation; either version 2 of of the License, or
21625 # (at your option) any later version.
21626 #
21627 # As a special exception to the GNU General Public License, if you
21628 # distribute this file as part of a program or library that is built
21629 # using GNU Libtool, you may include this file under the same
21630 # distribution terms that you use for the rest of that program.
21631 #
21632 # GNU Libtool is distributed in the hope that it will be useful, but
21633 # WITHOUT ANY WARRANTY; without even the implied warranty of
21634 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21635 # GNU General Public License for more details.
21636 #
21637 # You should have received a copy of the GNU General Public License
21638 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21639
21640
21641 # The names of the tagged configurations supported by this script.
21642 available_tags=''
21643
21644 # Configured defaults for sys_lib_dlsearch_path munging.
21645 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21646
21647 # ### BEGIN LIBTOOL CONFIG
21648
21649 # Assembler program.
21650 AS=$lt_AS
21651
21652 # DLL creation program.
21653 DLLTOOL=$lt_DLLTOOL
21654
21655 # Object dumper program.
21656 OBJDUMP=$lt_OBJDUMP
21657
21658 # Which release of libtool.m4 was used?
21659 macro_version=$macro_version
21660 macro_revision=$macro_revision
21661
21662 # Whether or not to build shared libraries.
21663 build_libtool_libs=$enable_shared
21664
21665 # Whether or not to build static libraries.
21666 build_old_libs=$enable_static
21667
21668 # What type of objects to build.
21669 pic_mode=$pic_mode
21670
21671 # Whether or not to optimize for fast installation.
21672 fast_install=$enable_fast_install
21673
21674 # Shared archive member basename,for filename based shared library versioning on AIX.
21675 shared_archive_member_spec=$shared_archive_member_spec
21676
21677 # Shell to use when invoking shell scripts.
21678 SHELL=$lt_SHELL
21679
21680 # An echo program that protects backslashes.
21681 ECHO=$lt_ECHO
21682
21683 # The PATH separator for the build system.
21684 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21685
21686 # The host system.
21687 host_alias=$host_alias
21688 host=$host
21689 host_os=$host_os
21690
21691 # The build system.
21692 build_alias=$build_alias
21693 build=$build
21694 build_os=$build_os
21695
21696 # A sed program that does not truncate output.
21697 SED=$lt_SED
21698
21699 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21700 Xsed="\$SED -e 1s/^X//"
21701
21702 # A grep program that handles long lines.
21703 GREP=$lt_GREP
21704
21705 # An ERE matcher.
21706 EGREP=$lt_EGREP
21707
21708 # A literal string matcher.
21709 FGREP=$lt_FGREP
21710
21711 # A BSD- or MS-compatible name lister.
21712 NM=$lt_NM
21713
21714 # Whether we need soft or hard links.
21715 LN_S=$lt_LN_S
21716
21717 # What is the maximum length of a command?
21718 max_cmd_len=$max_cmd_len
21719
21720 # Object file suffix (normally "o").
21721 objext=$ac_objext
21722
21723 # Executable file suffix (normally "").
21724 exeext=$exeext
21725
21726 # whether the shell understands "unset".
21727 lt_unset=$lt_unset
21728
21729 # turn spaces into newlines.
21730 SP2NL=$lt_lt_SP2NL
21731
21732 # turn newlines into spaces.
21733 NL2SP=$lt_lt_NL2SP
21734
21735 # convert \$build file names to \$host format.
21736 to_host_file_cmd=$lt_cv_to_host_file_cmd
21737
21738 # convert \$build files to toolchain format.
21739 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21740
21741 # Method to check whether dependent libraries are shared objects.
21742 deplibs_check_method=$lt_deplibs_check_method
21743
21744 # Command to use when deplibs_check_method = "file_magic".
21745 file_magic_cmd=$lt_file_magic_cmd
21746
21747 # How to find potential files when deplibs_check_method = "file_magic".
21748 file_magic_glob=$lt_file_magic_glob
21749
21750 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21751 want_nocaseglob=$lt_want_nocaseglob
21752
21753 # Command to associate shared and link libraries.
21754 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21755
21756 # The archiver.
21757 AR=$lt_AR
21758
21759 # Flags to create an archive.
21760 AR_FLAGS=$lt_AR_FLAGS
21761
21762 # How to feed a file listing to the archiver.
21763 archiver_list_spec=$lt_archiver_list_spec
21764
21765 # A symbol stripping program.
21766 STRIP=$lt_STRIP
21767
21768 # Commands used to install an old-style archive.
21769 RANLIB=$lt_RANLIB
21770 old_postinstall_cmds=$lt_old_postinstall_cmds
21771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21772
21773 # Whether to use a lock for old archive extraction.
21774 lock_old_archive_extraction=$lock_old_archive_extraction
21775
21776 # A C compiler.
21777 LTCC=$lt_CC
21778
21779 # LTCC compiler flags.
21780 LTCFLAGS=$lt_CFLAGS
21781
21782 # Take the output of nm and produce a listing of raw symbols and C names.
21783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21784
21785 # Transform the output of nm in a proper C declaration.
21786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21787
21788 # Transform the output of nm into a list of symbols to manually relocate.
21789 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21790
21791 # Transform the output of nm in a C name address pair.
21792 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21793
21794 # Transform the output of nm in a C name address pair when lib prefix is needed.
21795 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21796
21797 # The name lister interface.
21798 nm_interface=$lt_lt_cv_nm_interface
21799
21800 # Specify filename containing input files for \$NM.
21801 nm_file_list_spec=$lt_nm_file_list_spec
21802
21803 # The root where to search for dependent libraries,and where our libraries should be installed.
21804 lt_sysroot=$lt_sysroot
21805
21806 # Command to truncate a binary pipe.
21807 lt_truncate_bin=$lt_lt_cv_truncate_bin
21808
21809 # The name of the directory that contains temporary libtool files.
21810 objdir=$objdir
21811
21812 # Used to examine libraries when file_magic_cmd begins with "file".
21813 MAGIC_CMD=$MAGIC_CMD
21814
21815 # Must we lock files when doing compilation?
21816 need_locks=$lt_need_locks
21817
21818 # Manifest tool.
21819 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21820
21821 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21822 DSYMUTIL=$lt_DSYMUTIL
21823
21824 # Tool to change global to local symbols on Mac OS X.
21825 NMEDIT=$lt_NMEDIT
21826
21827 # Tool to manipulate fat objects and archives on Mac OS X.
21828 LIPO=$lt_LIPO
21829
21830 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21831 OTOOL=$lt_OTOOL
21832
21833 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21834 OTOOL64=$lt_OTOOL64
21835
21836 # Old archive suffix (normally "a").
21837 libext=$libext
21838
21839 # Shared library suffix (normally ".so").
21840 shrext_cmds=$lt_shrext_cmds
21841
21842 # The commands to extract the exported symbol list from a shared archive.
21843 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21844
21845 # Variables whose values should be saved in libtool wrapper scripts and
21846 # restored at link time.
21847 variables_saved_for_relink=$lt_variables_saved_for_relink
21848
21849 # Do we need the "lib" prefix for modules?
21850 need_lib_prefix=$need_lib_prefix
21851
21852 # Do we need a version for libraries?
21853 need_version=$need_version
21854
21855 # Library versioning type.
21856 version_type=$version_type
21857
21858 # Shared library runtime path variable.
21859 runpath_var=$runpath_var
21860
21861 # Shared library path variable.
21862 shlibpath_var=$shlibpath_var
21863
21864 # Is shlibpath searched before the hard-coded library search path?
21865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21866
21867 # Format of library name prefix.
21868 libname_spec=$lt_libname_spec
21869
21870 # List of archive names. First name is the real one, the rest are links.
21871 # The last name is the one that the linker finds with -lNAME
21872 library_names_spec=$lt_library_names_spec
21873
21874 # The coded name of the library, if different from the real name.
21875 soname_spec=$lt_soname_spec
21876
21877 # Permission mode override for installation of shared libraries.
21878 install_override_mode=$lt_install_override_mode
21879
21880 # Command to use after installation of a shared archive.
21881 postinstall_cmds=$lt_postinstall_cmds
21882
21883 # Command to use after uninstallation of a shared archive.
21884 postuninstall_cmds=$lt_postuninstall_cmds
21885
21886 # Commands used to finish a libtool library installation in a directory.
21887 finish_cmds=$lt_finish_cmds
21888
21889 # As "finish_cmds", except a single script fragment to be evaled but
21890 # not shown.
21891 finish_eval=$lt_finish_eval
21892
21893 # Whether we should hardcode library paths into libraries.
21894 hardcode_into_libs=$hardcode_into_libs
21895
21896 # Compile-time system search path for libraries.
21897 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21898
21899 # Detected run-time system search path for libraries.
21900 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21901
21902 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21903 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21904
21905 # Whether dlopen is supported.
21906 dlopen_support=$enable_dlopen
21907
21908 # Whether dlopen of programs is supported.
21909 dlopen_self=$enable_dlopen_self
21910
21911 # Whether dlopen of statically linked programs is supported.
21912 dlopen_self_static=$enable_dlopen_self_static
21913
21914 # Commands to strip libraries.
21915 old_striplib=$lt_old_striplib
21916 striplib=$lt_striplib
21917
21918
21919 # The linker used to build libraries.
21920 LD=$lt_LD
21921
21922 # How to create reloadable object files.
21923 reload_flag=$lt_reload_flag
21924 reload_cmds=$lt_reload_cmds
21925
21926 # Commands used to build an old-style archive.
21927 old_archive_cmds=$lt_old_archive_cmds
21928
21929 # A language specific compiler.
21930 CC=$lt_compiler
21931
21932 # Is the compiler the GNU compiler?
21933 with_gcc=$GCC
21934
21935 # Compiler flag to turn off builtin functions.
21936 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21937
21938 # Additional compiler flags for building library objects.
21939 pic_flag=$lt_lt_prog_compiler_pic
21940
21941 # How to pass a linker flag through the compiler.
21942 wl=$lt_lt_prog_compiler_wl
21943
21944 # Compiler flag to prevent dynamic linking.
21945 link_static_flag=$lt_lt_prog_compiler_static
21946
21947 # Does compiler simultaneously support -c and -o options?
21948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21949
21950 # Whether or not to add -lc for building shared libraries.
21951 build_libtool_need_lc=$archive_cmds_need_lc
21952
21953 # Whether or not to disallow shared libs when runtime libs are static.
21954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21955
21956 # Compiler flag to allow reflexive dlopens.
21957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21958
21959 # Compiler flag to generate shared objects directly from archives.
21960 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21961
21962 # Whether the compiler copes with passing no objects directly.
21963 compiler_needs_object=$lt_compiler_needs_object
21964
21965 # Create an old-style archive from a shared archive.
21966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21967
21968 # Create a temporary old-style archive to link instead of a shared archive.
21969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21970
21971 # Commands used to build a shared archive.
21972 archive_cmds=$lt_archive_cmds
21973 archive_expsym_cmds=$lt_archive_expsym_cmds
21974
21975 # Commands used to build a loadable module if different from building
21976 # a shared archive.
21977 module_cmds=$lt_module_cmds
21978 module_expsym_cmds=$lt_module_expsym_cmds
21979
21980 # Whether we are building with GNU ld or not.
21981 with_gnu_ld=$lt_with_gnu_ld
21982
21983 # Flag that allows shared libraries with undefined symbols to be built.
21984 allow_undefined_flag=$lt_allow_undefined_flag
21985
21986 # Flag that enforces no undefined symbols.
21987 no_undefined_flag=$lt_no_undefined_flag
21988
21989 # Flag to hardcode \$libdir into a binary during linking.
21990 # This must work even if \$libdir does not exist
21991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21992
21993 # Whether we need a single "-rpath" flag with a separated argument.
21994 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21995
21996 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21997 # DIR into the resulting binary.
21998 hardcode_direct=$hardcode_direct
21999
22000 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22001 # DIR into the resulting binary and the resulting library dependency is
22002 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22003 # library is relocated.
22004 hardcode_direct_absolute=$hardcode_direct_absolute
22005
22006 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22007 # into the resulting binary.
22008 hardcode_minus_L=$hardcode_minus_L
22009
22010 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22011 # into the resulting binary.
22012 hardcode_shlibpath_var=$hardcode_shlibpath_var
22013
22014 # Set to "yes" if building a shared library automatically hardcodes DIR
22015 # into the library and all subsequent libraries and executables linked
22016 # against it.
22017 hardcode_automatic=$hardcode_automatic
22018
22019 # Set to yes if linker adds runtime paths of dependent libraries
22020 # to runtime path list.
22021 inherit_rpath=$inherit_rpath
22022
22023 # Whether libtool must link a program against all its dependency libraries.
22024 link_all_deplibs=$link_all_deplibs
22025
22026 # Set to "yes" if exported symbols are required.
22027 always_export_symbols=$always_export_symbols
22028
22029 # The commands to list exported symbols.
22030 export_symbols_cmds=$lt_export_symbols_cmds
22031
22032 # Symbols that should not be listed in the preloaded symbols.
22033 exclude_expsyms=$lt_exclude_expsyms
22034
22035 # Symbols that must always be exported.
22036 include_expsyms=$lt_include_expsyms
22037
22038 # Commands necessary for linking programs (against libraries) with templates.
22039 prelink_cmds=$lt_prelink_cmds
22040
22041 # Commands necessary for finishing linking programs.
22042 postlink_cmds=$lt_postlink_cmds
22043
22044 # Specify filename containing input files.
22045 file_list_spec=$lt_file_list_spec
22046
22047 # How to hardcode a shared library path into an executable.
22048 hardcode_action=$hardcode_action
22049
22050 # ### END LIBTOOL CONFIG
22051
22052 _LT_EOF
22053
22054 cat <<'_LT_EOF' >> "$cfgfile"
22055
22056 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22057
22058 # func_munge_path_list VARIABLE PATH
22059 # -----------------------------------
22060 # VARIABLE is name of variable containing _space_ separated list of
22061 # directories to be munged by the contents of PATH, which is string
22062 # having a format:
22063 # "DIR[:DIR]:"
22064 # string "DIR[ DIR]" will be prepended to VARIABLE
22065 # ":DIR[:DIR]"
22066 # string "DIR[ DIR]" will be appended to VARIABLE
22067 # "DIRP[:DIRP]::[DIRA:]DIRA"
22068 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22069 # "DIRA[ DIRA]" will be appended to VARIABLE
22070 # "DIR[:DIR]"
22071 # VARIABLE will be replaced by "DIR[ DIR]"
22072 func_munge_path_list ()
22073 {
22074 case x$2 in
22075 x)
22076 ;;
22077 *:)
22078 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22079 ;;
22080 x:*)
22081 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22082 ;;
22083 *::*)
22084 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22085 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22086 ;;
22087 *)
22088 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22089 ;;
22090 esac
22091 }
22092
22093
22094 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22095 func_cc_basename ()
22096 {
22097 for cc_temp in $*""; do
22098 case $cc_temp in
22099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22101 \-*) ;;
22102 *) break;;
22103 esac
22104 done
22105 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22106 }
22107
22108
22109 # ### END FUNCTIONS SHARED WITH CONFIGURE
22110
22111 _LT_EOF
22112
22113 case $host_os in
22114 aix3*)
22115 cat <<\_LT_EOF >> "$cfgfile"
22116 # AIX sometimes has problems with the GCC collect2 program. For some
22117 # reason, if we set the COLLECT_NAMES environment variable, the problems
22118 # vanish in a puff of smoke.
22119 if test set != "${COLLECT_NAMES+set}"; then
22120 COLLECT_NAMES=
22121 export COLLECT_NAMES
22122 fi
22123 _LT_EOF
22124 ;;
22125 esac
22126
22127
22128 ltmain=$ac_aux_dir/ltmain.sh
22129
22130
22131 # We use sed instead of cat because bash on DJGPP gets confused if
22132 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22133 # text mode, it properly converts lines to CR/LF. This bash problem
22134 # is reportedly fixed, but why not run on old versions too?
22135 sed '$q' "$ltmain" >> "$cfgfile" \
22136 || (rm -f "$cfgfile"; exit 1)
22137
22138 mv -f "$cfgfile" "$ofile" ||
22139 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22140 chmod +x "$ofile"
22141
22142 ;;
22143
22144 esac
22145 done # for ac_tag
22146
22147
22148 as_fn_exit 0
22149 _ACEOF
22150 ac_clean_files=$ac_clean_files_save
22151
22152 test $ac_write_fail = 0 ||
22153 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22154
22155
22156 # configure is writing to config.log, and then calls config.status.
22157 # config.status does its own redirection, appending to config.log.
22158 # Unfortunately, on DOS this fails, as config.log is still kept open
22159 # by configure, so config.status won't be able to write to it; its
22160 # output is simply discarded. So we exec the FD to /dev/null,
22161 # effectively closing config.log, so it can be properly (re)opened and
22162 # appended to by config.status. When coming back to configure, we
22163 # need to make the FD available again.
22164 if test "$no_create" != yes; then
22165 ac_cs_success=:
22166 ac_config_status_args=
22167 test "$silent" = yes &&
22168 ac_config_status_args="$ac_config_status_args --quiet"
22169 exec 5>/dev/null
22170 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22171 exec 5>>config.log
22172 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22173 # would make configure fail if this is the last instruction.
22174 $ac_cs_success || as_fn_exit 1
22175 fi
22176 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22178 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22179 fi
22180
22181