libXv should not try to build into a pure wayland platform.
[platform/upstream/libXv.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXv 1.0.7.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXv'
573 PACKAGE_TARNAME='libXv'
574 PACKAGE_VERSION='1.0.7'
575 PACKAGE_STRING='libXv 1.0.7'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 MAKE_LINT_LIB_FALSE
621 MAKE_LINT_LIB_TRUE
622 LINTLIB
623 LINT_FALSE
624 LINT_TRUE
625 LINT_FLAGS
626 LINT
627 XV_LIBS
628 XV_CFLAGS
629 XTMALLOC_ZERO_CFLAGS
630 XMALLOC_ZERO_CFLAGS
631 MALLOC_ZERO_CFLAGS
632 AM_BACKSLASH
633 AM_DEFAULT_VERBOSITY
634 MAN_SUBSTS
635 XORG_MAN_PAGE
636 ADMIN_MAN_DIR
637 DRIVER_MAN_DIR
638 MISC_MAN_DIR
639 FILE_MAN_DIR
640 LIB_MAN_DIR
641 APP_MAN_DIR
642 ADMIN_MAN_SUFFIX
643 DRIVER_MAN_SUFFIX
644 MISC_MAN_SUFFIX
645 FILE_MAN_SUFFIX
646 LIB_MAN_SUFFIX
647 APP_MAN_SUFFIX
648 INSTALL_CMD
649 PKG_CONFIG
650 CHANGELOG_CMD
651 STRICT_CFLAGS
652 CWARNFLAGS
653 BASE_CFLAGS
654 CPP
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 EGREP
673 GREP
674 SED
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 LIBTOOL
700 MAINT
701 MAINTAINER_MODE_FALSE
702 MAINTAINER_MODE_TRUE
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_maintainer_mode
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 enable_dependency_tracking
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 enable_selective_werror
777 enable_strict_compilation
778 enable_silent_rules
779 enable_malloc0returnsnull
780 with_lint
781 enable_lint_library
782 '
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG
793 XV_CFLAGS
794 XV_LIBS
795 LINT
796 LINT_FLAGS'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
846
847 ac_prev=
848 ac_dashdash=
849 for ac_option
850 do
851   # If the previous option needs an argument, assign it.
852   if test -n "$ac_prev"; then
853     eval $ac_prev=\$ac_option
854     ac_prev=
855     continue
856   fi
857
858   case $ac_option in
859   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860   *=)   ac_optarg= ;;
861   *)    ac_optarg=yes ;;
862   esac
863
864   # Accept the important Cygnus configure options, so we can diagnose typos.
865
866   case $ac_dashdash$ac_option in
867   --)
868     ac_dashdash=yes ;;
869
870   -bindir | --bindir | --bindi | --bind | --bin | --bi)
871     ac_prev=bindir ;;
872   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873     bindir=$ac_optarg ;;
874
875   -build | --build | --buil | --bui | --bu)
876     ac_prev=build_alias ;;
877   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878     build_alias=$ac_optarg ;;
879
880   -cache-file | --cache-file | --cache-fil | --cache-fi \
881   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882     ac_prev=cache_file ;;
883   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885     cache_file=$ac_optarg ;;
886
887   --config-cache | -C)
888     cache_file=config.cache ;;
889
890   -datadir | --datadir | --datadi | --datad)
891     ac_prev=datadir ;;
892   -datadir=* | --datadir=* | --datadi=* | --datad=*)
893     datadir=$ac_optarg ;;
894
895   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896   | --dataroo | --dataro | --datar)
897     ac_prev=datarootdir ;;
898   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900     datarootdir=$ac_optarg ;;
901
902   -disable-* | --disable-*)
903     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904     # Reject names that are not valid shell variable names.
905     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906       as_fn_error $? "invalid feature name: $ac_useropt"
907     ac_useropt_orig=$ac_useropt
908     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909     case $ac_user_opts in
910       *"
911 "enable_$ac_useropt"
912 "*) ;;
913       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914          ac_unrecognized_sep=', ';;
915     esac
916     eval enable_$ac_useropt=no ;;
917
918   -docdir | --docdir | --docdi | --doc | --do)
919     ac_prev=docdir ;;
920   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921     docdir=$ac_optarg ;;
922
923   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924     ac_prev=dvidir ;;
925   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926     dvidir=$ac_optarg ;;
927
928   -enable-* | --enable-*)
929     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932       as_fn_error $? "invalid feature name: $ac_useropt"
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=\$ac_optarg ;;
943
944   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946   | --exec | --exe | --ex)
947     ac_prev=exec_prefix ;;
948   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950   | --exec=* | --exe=* | --ex=*)
951     exec_prefix=$ac_optarg ;;
952
953   -gas | --gas | --ga | --g)
954     # Obsolete; use --with-gas.
955     with_gas=yes ;;
956
957   -help | --help | --hel | --he | -h)
958     ac_init_help=long ;;
959   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960     ac_init_help=recursive ;;
961   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962     ac_init_help=short ;;
963
964   -host | --host | --hos | --ho)
965     ac_prev=host_alias ;;
966   -host=* | --host=* | --hos=* | --ho=*)
967     host_alias=$ac_optarg ;;
968
969   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970     ac_prev=htmldir ;;
971   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972   | --ht=*)
973     htmldir=$ac_optarg ;;
974
975   -includedir | --includedir | --includedi | --included | --include \
976   | --includ | --inclu | --incl | --inc)
977     ac_prev=includedir ;;
978   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979   | --includ=* | --inclu=* | --incl=* | --inc=*)
980     includedir=$ac_optarg ;;
981
982   -infodir | --infodir | --infodi | --infod | --info | --inf)
983     ac_prev=infodir ;;
984   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985     infodir=$ac_optarg ;;
986
987   -libdir | --libdir | --libdi | --libd)
988     ac_prev=libdir ;;
989   -libdir=* | --libdir=* | --libdi=* | --libd=*)
990     libdir=$ac_optarg ;;
991
992   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993   | --libexe | --libex | --libe)
994     ac_prev=libexecdir ;;
995   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996   | --libexe=* | --libex=* | --libe=*)
997     libexecdir=$ac_optarg ;;
998
999   -localedir | --localedir | --localedi | --localed | --locale)
1000     ac_prev=localedir ;;
1001   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002     localedir=$ac_optarg ;;
1003
1004   -localstatedir | --localstatedir | --localstatedi | --localstated \
1005   | --localstate | --localstat | --localsta | --localst | --locals)
1006     ac_prev=localstatedir ;;
1007   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009     localstatedir=$ac_optarg ;;
1010
1011   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012     ac_prev=mandir ;;
1013   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014     mandir=$ac_optarg ;;
1015
1016   -nfp | --nfp | --nf)
1017     # Obsolete; use --without-fp.
1018     with_fp=no ;;
1019
1020   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021   | --no-cr | --no-c | -n)
1022     no_create=yes ;;
1023
1024   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026     no_recursion=yes ;;
1027
1028   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030   | --oldin | --oldi | --old | --ol | --o)
1031     ac_prev=oldincludedir ;;
1032   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035     oldincludedir=$ac_optarg ;;
1036
1037   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038     ac_prev=prefix ;;
1039   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040     prefix=$ac_optarg ;;
1041
1042   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043   | --program-pre | --program-pr | --program-p)
1044     ac_prev=program_prefix ;;
1045   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047     program_prefix=$ac_optarg ;;
1048
1049   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050   | --program-suf | --program-su | --program-s)
1051     ac_prev=program_suffix ;;
1052   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054     program_suffix=$ac_optarg ;;
1055
1056   -program-transform-name | --program-transform-name \
1057   | --program-transform-nam | --program-transform-na \
1058   | --program-transform-n | --program-transform- \
1059   | --program-transform | --program-transfor \
1060   | --program-transfo | --program-transf \
1061   | --program-trans | --program-tran \
1062   | --progr-tra | --program-tr | --program-t)
1063     ac_prev=program_transform_name ;;
1064   -program-transform-name=* | --program-transform-name=* \
1065   | --program-transform-nam=* | --program-transform-na=* \
1066   | --program-transform-n=* | --program-transform-=* \
1067   | --program-transform=* | --program-transfor=* \
1068   | --program-transfo=* | --program-transf=* \
1069   | --program-trans=* | --program-tran=* \
1070   | --progr-tra=* | --program-tr=* | --program-t=*)
1071     program_transform_name=$ac_optarg ;;
1072
1073   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074     ac_prev=pdfdir ;;
1075   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076     pdfdir=$ac_optarg ;;
1077
1078   -psdir | --psdir | --psdi | --psd | --ps)
1079     ac_prev=psdir ;;
1080   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081     psdir=$ac_optarg ;;
1082
1083   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084   | -silent | --silent | --silen | --sile | --sil)
1085     silent=yes ;;
1086
1087   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088     ac_prev=sbindir ;;
1089   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090   | --sbi=* | --sb=*)
1091     sbindir=$ac_optarg ;;
1092
1093   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095   | --sharedst | --shareds | --shared | --share | --shar \
1096   | --sha | --sh)
1097     ac_prev=sharedstatedir ;;
1098   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101   | --sha=* | --sh=*)
1102     sharedstatedir=$ac_optarg ;;
1103
1104   -site | --site | --sit)
1105     ac_prev=site ;;
1106   -site=* | --site=* | --sit=*)
1107     site=$ac_optarg ;;
1108
1109   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110     ac_prev=srcdir ;;
1111   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112     srcdir=$ac_optarg ;;
1113
1114   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115   | --syscon | --sysco | --sysc | --sys | --sy)
1116     ac_prev=sysconfdir ;;
1117   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119     sysconfdir=$ac_optarg ;;
1120
1121   -target | --target | --targe | --targ | --tar | --ta | --t)
1122     ac_prev=target_alias ;;
1123   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124     target_alias=$ac_optarg ;;
1125
1126   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127     verbose=yes ;;
1128
1129   -version | --version | --versio | --versi | --vers | -V)
1130     ac_init_version=: ;;
1131
1132   -with-* | --with-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=\$ac_optarg ;;
1147
1148   -without-* | --without-*)
1149     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152       as_fn_error $? "invalid package name: $ac_useropt"
1153     ac_useropt_orig=$ac_useropt
1154     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155     case $ac_user_opts in
1156       *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160          ac_unrecognized_sep=', ';;
1161     esac
1162     eval with_$ac_useropt=no ;;
1163
1164   --x)
1165     # Obsolete; use --with-x.
1166     with_x=yes ;;
1167
1168   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169   | --x-incl | --x-inc | --x-in | --x-i)
1170     ac_prev=x_includes ;;
1171   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173     x_includes=$ac_optarg ;;
1174
1175   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177     ac_prev=x_libraries ;;
1178   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180     x_libraries=$ac_optarg ;;
1181
1182   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1184     ;;
1185
1186   *=*)
1187     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188     # Reject names that are not valid shell variable names.
1189     case $ac_envvar in #(
1190       '' | [0-9]* | *[!_$as_cr_alnum]* )
1191       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192     esac
1193     eval $ac_envvar=\$ac_optarg
1194     export $ac_envvar ;;
1195
1196   *)
1197     # FIXME: should be removed in autoconf 3.0.
1198     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202     ;;
1203
1204   esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209   as_fn_error $? "missing argument to $ac_option"
1210 fi
1211
1212 if test -n "$ac_unrecognized_opts"; then
1213   case $enable_option_checking in
1214     no) ;;
1215     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217   esac
1218 fi
1219
1220 # Check all directory arguments for consistency.
1221 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222                 datadir sysconfdir sharedstatedir localstatedir includedir \
1223                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224                 libdir localedir mandir
1225 do
1226   eval ac_val=\$$ac_var
1227   # Remove trailing slashes.
1228   case $ac_val in
1229     */ )
1230       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231       eval $ac_var=\$ac_val;;
1232   esac
1233   # Be sure to have absolute directory names.
1234   case $ac_val in
1235     [\\/$]* | ?:[\\/]* )  continue;;
1236     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237   esac
1238   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239 done
1240
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1244 build=$build_alias
1245 host=$host_alias
1246 target=$target_alias
1247
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250   if test "x$build_alias" = x; then
1251     cross_compiling=maybe
1252     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1253     If a cross compiler is detected then cross compile mode will be used" >&2
1254   elif test "x$build_alias" != "x$host_alias"; then
1255     cross_compiling=yes
1256   fi
1257 fi
1258
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262 test "$silent" = yes && exec 6>/dev/null
1263
1264
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268   as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270   as_fn_error $? "pwd does not report name of working directory"
1271
1272
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275   ac_srcdir_defaulted=yes
1276   # Try the directory containing this script, then the parent directory.
1277   ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279          X"$as_myself" : 'X\(//\)[^/]' \| \
1280          X"$as_myself" : 'X\(//\)$' \| \
1281          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\/\)[^/].*/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\/\)$/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\).*/{
1296             s//\1/
1297             q
1298           }
1299           s/.*/./; q'`
1300   srcdir=$ac_confdir
1301   if test ! -r "$srcdir/$ac_unique_file"; then
1302     srcdir=..
1303   fi
1304 else
1305   ac_srcdir_defaulted=no
1306 fi
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 fi
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314         pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317   srcdir=.
1318 fi
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327   eval ac_env_${ac_var}_value=\$${ac_var}
1328   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1331
1332 #
1333 # Report the --help message.
1334 #
1335 if test "$ac_init_help" = "long"; then
1336   # Omit some internal or obsolete options to make the list less imposing.
1337   # This message is too long to be a string in the A/UX 3.1 sh.
1338   cat <<_ACEOF
1339 \`configure' configures libXv 1.0.7 to adapt to many kinds of systems.
1340
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE.  See below for descriptions of some of the useful variables.
1345
1346 Defaults for the options are specified in brackets.
1347
1348 Configuration:
1349   -h, --help              display this help and exit
1350       --help=short        display options specific to this package
1351       --help=recursive    display the short help of all the included packages
1352   -V, --version           display version information and exit
1353   -q, --quiet, --silent   do not print \`checking ...' messages
1354       --cache-file=FILE   cache test results in FILE [disabled]
1355   -C, --config-cache      alias for \`--cache-file=config.cache'
1356   -n, --no-create         do not create output files
1357       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1358
1359 Installation directories:
1360   --prefix=PREFIX         install architecture-independent files in PREFIX
1361                           [$ac_default_prefix]
1362   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1363                           [PREFIX]
1364
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1369
1370 For better control, use the options below.
1371
1372 Fine tuning of the installation directories:
1373   --bindir=DIR            user executables [EPREFIX/bin]
1374   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1375   --libexecdir=DIR        program executables [EPREFIX/libexec]
1376   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1377   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1378   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1379   --libdir=DIR            object code libraries [EPREFIX/lib]
1380   --includedir=DIR        C header files [PREFIX/include]
1381   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1382   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1383   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1384   --infodir=DIR           info documentation [DATAROOTDIR/info]
1385   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1386   --mandir=DIR            man documentation [DATAROOTDIR/man]
1387   --docdir=DIR            documentation root [DATAROOTDIR/doc/libXv]
1388   --htmldir=DIR           html documentation [DOCDIR]
1389   --dvidir=DIR            dvi documentation [DOCDIR]
1390   --pdfdir=DIR            pdf documentation [DOCDIR]
1391   --psdir=DIR             ps documentation [DOCDIR]
1392 _ACEOF
1393
1394   cat <<\_ACEOF
1395
1396 Program names:
1397   --program-prefix=PREFIX            prepend PREFIX to installed program names
1398   --program-suffix=SUFFIX            append SUFFIX to installed program names
1399   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1400
1401 System types:
1402   --build=BUILD     configure for building on BUILD [guessed]
1403   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408   case $ac_init_help in
1409      short | recursive ) echo "Configuration of libXv 1.0.7:";;
1410    esac
1411   cat <<\_ACEOF
1412
1413 Optional Features:
1414   --disable-option-checking  ignore unrecognized --enable/--with options
1415   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417   --enable-maintainer-mode  enable make rules and dependencies not useful
1418                           (and sometimes confusing) to the casual installer
1419   --enable-shared[=PKGS]  build shared libraries [default=yes]
1420   --enable-static[=PKGS]  build static libraries [default=yes]
1421   --enable-fast-install[=PKGS]
1422                           optimize for fast installation [default=yes]
1423   --disable-dependency-tracking  speeds up one-time build
1424   --enable-dependency-tracking   do not reject slow dependency extractors
1425   --disable-libtool-lock  avoid locking (might break parallel builds)
1426   --disable-selective-werror
1427                           Turn off selective compiler errors. (default:
1428                           enabled)
1429   --enable-strict-compilation
1430                           Enable all warnings from compiler and make them
1431                           errors (default: disabled)
1432   --enable-silent-rules          less verbose build output (undo: `make V=1')
1433   --disable-silent-rules         verbose build output (undo: `make V=0')
1434   --enable-malloc0returnsnull
1435                           malloc(0) returns NULL (default: auto)
1436   --enable-lint-library   Create lint library (default: disabled)
1437
1438 Optional Packages:
1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441   --with-pic              try to use only PIC/non-PIC objects [default=use
1442                           both]
1443   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1444   --with-sysroot=DIR Search for dependent libraries within DIR
1445                         (or the compiler's sysroot if not specified).
1446   --with-lint             Use a lint-style source code checker (default:
1447                           disabled)
1448
1449 Some influential environment variables:
1450   CC          C compiler command
1451   CFLAGS      C compiler flags
1452   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453               nonstandard directory <lib dir>
1454   LIBS        libraries to pass to the linker, e.g. -l<library>
1455   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456               you have headers in a nonstandard directory <include dir>
1457   CPP         C preprocessor
1458   PKG_CONFIG  path to pkg-config utility
1459   XV_CFLAGS   C compiler flags for XV, overriding pkg-config
1460   XV_LIBS     linker flags for XV, overriding pkg-config
1461   LINT        Path to a lint-style command
1462   LINT_FLAGS  Flags for the lint-style command
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473   # If there are subdirs, report their specific --help.
1474   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475     test -d "$ac_dir" ||
1476       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477       continue
1478     ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484   # A ".." for each directory in $ac_dir_suffix.
1485   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486   case $ac_top_builddir_sub in
1487   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489   esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497   .)  # We are building in place.
1498     ac_srcdir=.
1499     ac_top_srcdir=$ac_top_builddir_sub
1500     ac_abs_top_srcdir=$ac_pwd ;;
1501   [\\/]* | ?:[\\/]* )  # Absolute name.
1502     ac_srcdir=$srcdir$ac_dir_suffix;
1503     ac_top_srcdir=$srcdir
1504     ac_abs_top_srcdir=$srcdir ;;
1505   *) # Relative name.
1506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507     ac_top_srcdir=$ac_top_build_prefix$srcdir
1508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512     cd "$ac_dir" || { ac_status=$?; continue; }
1513     # Check for guested configure.
1514     if test -f "$ac_srcdir/configure.gnu"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517     elif test -f "$ac_srcdir/configure"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure" --help=recursive
1520     else
1521       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522     fi || ac_status=$?
1523     cd "$ac_pwd" || { ac_status=$?; break; }
1524   done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529   cat <<\_ACEOF
1530 libXv configure 1.0.7
1531 generated by GNU Autoconf 2.68
1532
1533 Copyright (C) 2010 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537   exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550   rm -f conftest.$ac_objext
1551   if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554   *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558   (eval "$ac_compile") 2>conftest.err
1559   ac_status=$?
1560   if test -s conftest.err; then
1561     grep -v '^ *+' conftest.err >conftest.er1
1562     cat conftest.er1 >&5
1563     mv -f conftest.er1 conftest.err
1564   fi
1565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566   test $ac_status = 0; } && {
1567          test -z "$ac_c_werror_flag" ||
1568          test ! -s conftest.err
1569        } && test -s conftest.$ac_objext; then :
1570   ac_retval=0
1571 else
1572   $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575         ac_retval=1
1576 fi
1577   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578   as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1586 {
1587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588   rm -f conftest.$ac_objext conftest$ac_exeext
1589   if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592   *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596   (eval "$ac_link") 2>conftest.err
1597   ac_status=$?
1598   if test -s conftest.err; then
1599     grep -v '^ *+' conftest.err >conftest.er1
1600     cat conftest.er1 >&5
1601     mv -f conftest.er1 conftest.err
1602   fi
1603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604   test $ac_status = 0; } && {
1605          test -z "$ac_c_werror_flag" ||
1606          test ! -s conftest.err
1607        } && test -s conftest$ac_exeext && {
1608          test "$cross_compiling" = yes ||
1609          $as_test_x conftest$ac_exeext
1610        }; then :
1611   ac_retval=0
1612 else
1613   $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616         ac_retval=1
1617 fi
1618   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620   # interfere with the next link command; also delete a directory that is
1621   # left behind by Apple's compiler.  We do this before executing the actions.
1622   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638   $as_echo_n "(cached) " >&6
1639 else
1640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h.  */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646   eval "$3=yes"
1647 else
1648   eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } > conftest.i && {
1681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689     ac_retval=1
1690 fi
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703   if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706   *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710   (eval "$ac_link") 2>&5
1711   ac_status=$?
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714   { { case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_try") 2>&5
1721   ac_status=$?
1722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723   test $ac_status = 0; }; }; then :
1724   ac_retval=0
1725 else
1726   $as_echo "$as_me: program exited with status $ac_status" >&5
1727        $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730        ac_retval=$ac_status
1731 fi
1732   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756     which can conflict with char $2 (); below.
1757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758     <limits.h> exists even on freestanding compilers.  */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769    Use char because int might match the return type of a GCC
1770    builtin and then its argument prototype would still apply.  */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776     to always fail with ENOSYS.  Some functions are actually named
1777     something starting with __ and the normal name is an alias.  */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786   ;
1787   return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791   eval "$3=yes"
1792 else
1793   eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796     conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804
1805 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1806 # ---------------------------------------------
1807 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1808 # accordingly.
1809 ac_fn_c_check_decl ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   as_decl_name=`echo $2|sed 's/ *(.*//'`
1813   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1815 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1816 if eval \${$3+:} false; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 int
1823 main ()
1824 {
1825 #ifndef $as_decl_name
1826 #ifdef __cplusplus
1827   (void) $as_decl_use;
1828 #else
1829   (void) $as_decl_name;
1830 #endif
1831 #endif
1832
1833   ;
1834   return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838   eval "$3=yes"
1839 else
1840   eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$3
1845                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_decl
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by libXv $as_me 1.0.7, which was
1855 generated by GNU Autoconf 2.68.  Invocation command line was
1856
1857   $ $0 $@
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1875
1876 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1877 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1880 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1881 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1882 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891     $as_echo "PATH: $as_dir"
1892   done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918   for ac_arg
1919   do
1920     case $ac_arg in
1921     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923     | -silent | --silent | --silen | --sile | --sil)
1924       continue ;;
1925     *\'*)
1926       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927     esac
1928     case $ac_pass in
1929     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930     2)
1931       as_fn_append ac_configure_args1 " '$ac_arg'"
1932       if test $ac_must_keep_next = true; then
1933         ac_must_keep_next=false # Got value, back to normal.
1934       else
1935         case $ac_arg in
1936           *=* | --config-cache | -C | -disable-* | --disable-* \
1937           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939           | -with-* | --with-* | -without-* | --without-* | --x)
1940             case "$ac_configure_args0 " in
1941               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942             esac
1943             ;;
1944           -* ) ac_must_keep_next=true ;;
1945         esac
1946       fi
1947       as_fn_append ac_configure_args " '$ac_arg'"
1948       ;;
1949     esac
1950   done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log.  We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961   # Save into config.log some information that might help in debugging.
1962   {
1963     echo
1964
1965     $as_echo "## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##"
1968     echo
1969     # The following way of writing the cache mishandles newlines in values,
1970 (
1971   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972     eval ac_val=\$$ac_var
1973     case $ac_val in #(
1974     *${as_nl}*)
1975       case $ac_var in #(
1976       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978       esac
1979       case $ac_var in #(
1980       _ | IFS | as_nl) ;; #(
1981       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982       *) { eval $ac_var=; unset $ac_var;} ;;
1983       esac ;;
1984     esac
1985   done
1986   (set) 2>&1 |
1987     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988     *${as_nl}ac_space=\ *)
1989       sed -n \
1990         "s/'\''/'\''\\\\'\'''\''/g;
1991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992       ;; #(
1993     *)
1994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995       ;;
1996     esac |
1997     sort
1998 )
1999     echo
2000
2001     $as_echo "## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##"
2004     echo
2005     for ac_var in $ac_subst_vars
2006     do
2007       eval ac_val=\$$ac_var
2008       case $ac_val in
2009       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010       esac
2011       $as_echo "$ac_var='\''$ac_val'\''"
2012     done | sort
2013     echo
2014
2015     if test -n "$ac_subst_files"; then
2016       $as_echo "## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##"
2019       echo
2020       for ac_var in $ac_subst_files
2021       do
2022         eval ac_val=\$$ac_var
2023         case $ac_val in
2024         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025         esac
2026         $as_echo "$ac_var='\''$ac_val'\''"
2027       done | sort
2028       echo
2029     fi
2030
2031     if test -s confdefs.h; then
2032       $as_echo "## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##"
2035       echo
2036       cat confdefs.h
2037       echo
2038     fi
2039     test "$ac_signal" != 0 &&
2040       $as_echo "$as_me: caught signal $ac_signal"
2041     $as_echo "$as_me: exit $exit_status"
2042   } >&5
2043   rm -f core *.core core.conftest.* &&
2044     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045     exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 $as_echo "/* confdefs.h */" > confdefs.h
2056
2057 # Predefined preprocessor variables.
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_URL "$PACKAGE_URL"
2081 _ACEOF
2082
2083
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2086 ac_site_file1=NONE
2087 ac_site_file2=NONE
2088 if test -n "$CONFIG_SITE"; then
2089   # We do not want a PATH search for config.site.
2090   case $CONFIG_SITE in #((
2091     -*)  ac_site_file1=./$CONFIG_SITE;;
2092     */*) ac_site_file1=$CONFIG_SITE;;
2093     *)   ac_site_file1=./$CONFIG_SITE;;
2094   esac
2095 elif test "x$prefix" != xNONE; then
2096   ac_site_file1=$prefix/share/config.site
2097   ac_site_file2=$prefix/etc/config.site
2098 else
2099   ac_site_file1=$ac_default_prefix/share/config.site
2100   ac_site_file2=$ac_default_prefix/etc/config.site
2101 fi
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103 do
2104   test "x$ac_site_file" = xNONE && continue
2105   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108     sed 's/^/| /' "$ac_site_file" >&5
2109     . "$ac_site_file" \
2110       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2114   fi
2115 done
2116
2117 if test -r "$cache_file"; then
2118   # Some versions of bash will fail to source /dev/null (special files
2119   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2120   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123     case $cache_file in
2124       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125       *)                      . "./$cache_file";;
2126     esac
2127   fi
2128 else
2129   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131   >$cache_file
2132 fi
2133
2134 # Check that the precious variables saved in the cache have kept the same
2135 # value.
2136 ac_cache_corrupted=false
2137 for ac_var in $ac_precious_vars; do
2138   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139   eval ac_new_set=\$ac_env_${ac_var}_set
2140   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141   eval ac_new_val=\$ac_env_${ac_var}_value
2142   case $ac_old_set,$ac_new_set in
2143     set,)
2144       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146       ac_cache_corrupted=: ;;
2147     ,set)
2148       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150       ac_cache_corrupted=: ;;
2151     ,);;
2152     *)
2153       if test "x$ac_old_val" != "x$ac_new_val"; then
2154         # differences in whitespace do not lead to failure.
2155         ac_old_val_w=`echo x $ac_old_val`
2156         ac_new_val_w=`echo x $ac_new_val`
2157         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160           ac_cache_corrupted=:
2161         else
2162           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164           eval $ac_var=\$ac_old_val
2165         fi
2166         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2167 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2168         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2169 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2170       fi;;
2171   esac
2172   # Pass precious variables to config.status.
2173   if test "$ac_new_set" = set; then
2174     case $ac_new_val in
2175     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176     *) ac_arg=$ac_var=$ac_new_val ;;
2177     esac
2178     case " $ac_configure_args " in
2179       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2180       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181     esac
2182   fi
2183 done
2184 if $ac_cache_corrupted; then
2185   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190 fi
2191 ## -------------------- ##
2192 ## Main body of script. ##
2193 ## -------------------- ##
2194
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200
2201
2202
2203 ac_config_headers="$ac_config_headers config.h"
2204
2205
2206 # Initialize Automake
2207 am__api_version='1.11'
2208
2209 ac_aux_dir=
2210 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2211   if test -f "$ac_dir/install-sh"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/install-sh -c"
2214     break
2215   elif test -f "$ac_dir/install.sh"; then
2216     ac_aux_dir=$ac_dir
2217     ac_install_sh="$ac_aux_dir/install.sh -c"
2218     break
2219   elif test -f "$ac_dir/shtool"; then
2220     ac_aux_dir=$ac_dir
2221     ac_install_sh="$ac_aux_dir/shtool install -c"
2222     break
2223   fi
2224 done
2225 if test -z "$ac_aux_dir"; then
2226   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2227 fi
2228
2229 # These three variables are undocumented and unsupported,
2230 # and are intended to be withdrawn in a future Autoconf release.
2231 # They can cause serious problems if a builder's source tree is in a directory
2232 # whose full name contains unusual characters.
2233 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2234 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2235 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2236
2237
2238 # Find a good install program.  We prefer a C program (faster),
2239 # so one script is as good as another.  But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2244 # AIX /bin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 # Reject install programs that cannot install multiple files.
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2253 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2254 if test -z "$INSTALL"; then
2255 if ${ac_cv_path_install+:} false; then :
2256   $as_echo_n "(cached) " >&6
2257 else
2258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261   IFS=$as_save_IFS
2262   test -z "$as_dir" && as_dir=.
2263     # Account for people who put trailing slashes in PATH elements.
2264 case $as_dir/ in #((
2265   ./ | .// | /[cC]/* | \
2266   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2267   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2268   /usr/ucb/* ) ;;
2269   *)
2270     # OSF1 and SCO ODT 3.0 have their own names for install.
2271     # Don't use installbsd from OSF since it installs stuff as root
2272     # by default.
2273     for ac_prog in ginstall scoinst install; do
2274       for ac_exec_ext in '' $ac_executable_extensions; do
2275         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2276           if test $ac_prog = install &&
2277             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278             # AIX install.  It has an incompatible calling convention.
2279             :
2280           elif test $ac_prog = install &&
2281             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282             # program-specific install script used by HP pwplus--don't use.
2283             :
2284           else
2285             rm -rf conftest.one conftest.two conftest.dir
2286             echo one > conftest.one
2287             echo two > conftest.two
2288             mkdir conftest.dir
2289             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2290               test -s conftest.one && test -s conftest.two &&
2291               test -s conftest.dir/conftest.one &&
2292               test -s conftest.dir/conftest.two
2293             then
2294               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2295               break 3
2296             fi
2297           fi
2298         fi
2299       done
2300     done
2301     ;;
2302 esac
2303
2304   done
2305 IFS=$as_save_IFS
2306
2307 rm -rf conftest.one conftest.two conftest.dir
2308
2309 fi
2310   if test "${ac_cv_path_install+set}" = set; then
2311     INSTALL=$ac_cv_path_install
2312   else
2313     # As a last resort, use the slow shell script.  Don't cache a
2314     # value for INSTALL within a source directory, because that will
2315     # break other packages using the cache if that directory is
2316     # removed, or if the value is a relative name.
2317     INSTALL=$ac_install_sh
2318   fi
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2321 $as_echo "$INSTALL" >&6; }
2322
2323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2324 # It thinks the first close brace ends the variable substitution.
2325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2326
2327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2328
2329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2330
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2332 $as_echo_n "checking whether build environment is sane... " >&6; }
2333 # Just in case
2334 sleep 1
2335 echo timestamp > conftest.file
2336 # Reject unsafe characters in $srcdir or the absolute working directory
2337 # name.  Accept space and tab only in the latter.
2338 am_lf='
2339 '
2340 case `pwd` in
2341   *[\\\"\#\$\&\'\`$am_lf]*)
2342     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2343 esac
2344 case $srcdir in
2345   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2346     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2347 esac
2348
2349 # Do `set' in a subshell so we don't clobber the current shell's
2350 # arguments.  Must try -L first in case configure is actually a
2351 # symlink; some systems play weird games with the mod time of symlinks
2352 # (eg FreeBSD returns the mod time of the symlink's containing
2353 # directory).
2354 if (
2355    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2356    if test "$*" = "X"; then
2357       # -L didn't work.
2358       set X `ls -t "$srcdir/configure" conftest.file`
2359    fi
2360    rm -f conftest.file
2361    if test "$*" != "X $srcdir/configure conftest.file" \
2362       && test "$*" != "X conftest.file $srcdir/configure"; then
2363
2364       # If neither matched, then we have a broken ls.  This can happen
2365       # if, for instance, CONFIG_SHELL is bash and it inherits a
2366       # broken ls alias from the environment.  This has actually
2367       # happened.  Such a system could not be considered "sane".
2368       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2369 alias in your environment" "$LINENO" 5
2370    fi
2371
2372    test "$2" = conftest.file
2373    )
2374 then
2375    # Ok.
2376    :
2377 else
2378    as_fn_error $? "newly created file is older than distributed files!
2379 Check your system clock" "$LINENO" 5
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2382 $as_echo "yes" >&6; }
2383 test "$program_prefix" != NONE &&
2384   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2385 # Use a double $ so make ignores it.
2386 test "$program_suffix" != NONE &&
2387   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2388 # Double any \ or $.
2389 # By default was `s,x,x', remove it if useless.
2390 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2391 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2392
2393 # expand $ac_aux_dir to an absolute path
2394 am_aux_dir=`cd $ac_aux_dir && pwd`
2395
2396 if test x"${MISSING+set}" != xset; then
2397   case $am_aux_dir in
2398   *\ * | *\     *)
2399     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2400   *)
2401     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2402   esac
2403 fi
2404 # Use eval to expand $SHELL
2405 if eval "$MISSING --run true"; then
2406   am_missing_run="$MISSING --run "
2407 else
2408   am_missing_run=
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2410 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2411 fi
2412
2413 if test x"${install_sh}" != xset; then
2414   case $am_aux_dir in
2415   *\ * | *\     *)
2416     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2417   *)
2418     install_sh="\${SHELL} $am_aux_dir/install-sh"
2419   esac
2420 fi
2421
2422 # Installed binaries are usually stripped using `strip' when the user
2423 # run `make install-strip'.  However `strip' might not be the right
2424 # tool to use in cross-compilation environments, therefore Automake
2425 # will honor the `STRIP' environment variable to overrule this program.
2426 if test "$cross_compiling" != no; then
2427   if test -n "$ac_tool_prefix"; then
2428   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}strip; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if ${ac_cv_prog_STRIP+:} false; then :
2433   $as_echo_n "(cached) " >&6
2434 else
2435   if test -n "$STRIP"; then
2436   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443     for ac_exec_ext in '' $ac_executable_extensions; do
2444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450   done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 STRIP=$ac_cv_prog_STRIP
2456 if test -n "$STRIP"; then
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2458 $as_echo "$STRIP" >&6; }
2459 else
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2462 fi
2463
2464
2465 fi
2466 if test -z "$ac_cv_prog_STRIP"; then
2467   ac_ct_STRIP=$STRIP
2468   # Extract the first word of "strip", so it can be a program name with args.
2469 set dummy strip; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   if test -n "$ac_ct_STRIP"; then
2476   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483     for ac_exec_ext in '' $ac_executable_extensions; do
2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485     ac_cv_prog_ac_ct_STRIP="strip"
2486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490   done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496 if test -n "$ac_ct_STRIP"; then
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2498 $as_echo "$ac_ct_STRIP" >&6; }
2499 else
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504   if test "x$ac_ct_STRIP" = x; then
2505     STRIP=":"
2506   else
2507     case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511 ac_tool_warned=yes ;;
2512 esac
2513     STRIP=$ac_ct_STRIP
2514   fi
2515 else
2516   STRIP="$ac_cv_prog_STRIP"
2517 fi
2518
2519 fi
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2521
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2523 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2524 if test -z "$MKDIR_P"; then
2525   if ${ac_cv_path_mkdir+:} false; then :
2526   $as_echo_n "(cached) " >&6
2527 else
2528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533     for ac_prog in mkdir gmkdir; do
2534          for ac_exec_ext in '' $ac_executable_extensions; do
2535            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2536            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2537              'mkdir (GNU coreutils) '* | \
2538              'mkdir (coreutils) '* | \
2539              'mkdir (fileutils) '4.1*)
2540                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2541                break 3;;
2542            esac
2543          done
2544        done
2545   done
2546 IFS=$as_save_IFS
2547
2548 fi
2549
2550   test -d ./--version && rmdir ./--version
2551   if test "${ac_cv_path_mkdir+set}" = set; then
2552     MKDIR_P="$ac_cv_path_mkdir -p"
2553   else
2554     # As a last resort, use the slow shell script.  Don't cache a
2555     # value for MKDIR_P within a source directory, because that will
2556     # break other packages using the cache if that directory is
2557     # removed, or if the value is a relative name.
2558     MKDIR_P="$ac_install_sh -d"
2559   fi
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2562 $as_echo "$MKDIR_P" >&6; }
2563
2564 mkdir_p="$MKDIR_P"
2565 case $mkdir_p in
2566   [\\/$]* | ?:[\\/]*) ;;
2567   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2568 esac
2569
2570 for ac_prog in gawk mawk nawk awk
2571 do
2572   # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_AWK+:} false; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579   if test -n "$AWK"; then
2580   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587     for ac_exec_ext in '' $ac_executable_extensions; do
2588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589     ac_cv_prog_AWK="$ac_prog"
2590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591     break 2
2592   fi
2593 done
2594   done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 AWK=$ac_cv_prog_AWK
2600 if test -n "$AWK"; then
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602 $as_echo "$AWK" >&6; }
2603 else
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609   test -n "$AWK" && break
2610 done
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2614 set x ${MAKE-make}
2615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   cat >conftest.make <<\_ACEOF
2620 SHELL = /bin/sh
2621 all:
2622         @echo '@@@%%%=$(MAKE)=@@@%%%'
2623 _ACEOF
2624 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2626   *@@@%%%=?*=@@@%%%*)
2627     eval ac_cv_prog_make_${ac_make}_set=yes;;
2628   *)
2629     eval ac_cv_prog_make_${ac_make}_set=no;;
2630 esac
2631 rm -f conftest.make
2632 fi
2633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636   SET_MAKE=
2637 else
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640   SET_MAKE="MAKE=${MAKE-make}"
2641 fi
2642
2643 rm -rf .tst 2>/dev/null
2644 mkdir .tst 2>/dev/null
2645 if test -d .tst; then
2646   am__leading_dot=.
2647 else
2648   am__leading_dot=_
2649 fi
2650 rmdir .tst 2>/dev/null
2651
2652 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2653   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2654   # is not polluted with repeated "-I."
2655   am__isrc=' -I$(srcdir)'
2656   # test to see if srcdir already configured
2657   if test -f $srcdir/config.status; then
2658     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2659   fi
2660 fi
2661
2662 # test whether we have cygpath
2663 if test -z "$CYGPATH_W"; then
2664   if (cygpath --version) >/dev/null 2>/dev/null; then
2665     CYGPATH_W='cygpath -w'
2666   else
2667     CYGPATH_W=echo
2668   fi
2669 fi
2670
2671
2672 # Define the identity of the package.
2673  PACKAGE='libXv'
2674  VERSION='1.0.7'
2675
2676
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE "$PACKAGE"
2679 _ACEOF
2680
2681
2682 cat >>confdefs.h <<_ACEOF
2683 #define VERSION "$VERSION"
2684 _ACEOF
2685
2686 # Some tools Automake needs.
2687
2688 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2689
2690
2691 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2692
2693
2694 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2695
2696
2697 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2698
2699
2700 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2701
2702 # We need awk for the "check" target.  The system "awk" is bad on
2703 # some platforms.
2704 # Always define AMTAR for backward compatibility.
2705
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2707
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2709
2710
2711
2712
2713
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2716 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2717     # Check whether --enable-maintainer-mode was given.
2718 if test "${enable_maintainer_mode+set}" = set; then :
2719   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2720 else
2721   USE_MAINTAINER_MODE=no
2722 fi
2723
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2725 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2726    if test $USE_MAINTAINER_MODE = yes; then
2727   MAINTAINER_MODE_TRUE=
2728   MAINTAINER_MODE_FALSE='#'
2729 else
2730   MAINTAINER_MODE_TRUE='#'
2731   MAINTAINER_MODE_FALSE=
2732 fi
2733
2734   MAINT=$MAINTAINER_MODE_TRUE
2735
2736
2737
2738 # Initialize libtool
2739 case `pwd` in
2740   *\ * | *\     *)
2741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2743 esac
2744
2745
2746
2747 macro_version='2.4'
2748 macro_revision='1.3293'
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762 ltmain="$ac_aux_dir/ltmain.sh"
2763
2764 # Make sure we can run config.sub.
2765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2769 $as_echo_n "checking build system type... " >&6; }
2770 if ${ac_cv_build+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   ac_build_alias=$build_alias
2774 test "x$ac_build_alias" = x &&
2775   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2776 test "x$ac_build_alias" = x &&
2777   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2779   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2780
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2783 $as_echo "$ac_cv_build" >&6; }
2784 case $ac_cv_build in
2785 *-*-*) ;;
2786 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2787 esac
2788 build=$ac_cv_build
2789 ac_save_IFS=$IFS; IFS='-'
2790 set x $ac_cv_build
2791 shift
2792 build_cpu=$1
2793 build_vendor=$2
2794 shift; shift
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2797 build_os=$*
2798 IFS=$ac_save_IFS
2799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2800
2801
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2803 $as_echo_n "checking host system type... " >&6; }
2804 if ${ac_cv_host+:} false; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   if test "x$host_alias" = x; then
2808   ac_cv_host=$ac_cv_build
2809 else
2810   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2811     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812 fi
2813
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2816 $as_echo "$ac_cv_host" >&6; }
2817 case $ac_cv_host in
2818 *-*-*) ;;
2819 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2820 esac
2821 host=$ac_cv_host
2822 ac_save_IFS=$IFS; IFS='-'
2823 set x $ac_cv_host
2824 shift
2825 host_cpu=$1
2826 host_vendor=$2
2827 shift; shift
2828 # Remember, the first character of IFS is used to create $*,
2829 # except with old shells:
2830 host_os=$*
2831 IFS=$ac_save_IFS
2832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2833
2834
2835 # Backslashify metacharacters that are still active within
2836 # double-quoted strings.
2837 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2838
2839 # Same as above, but do not quote variable references.
2840 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2841
2842 # Sed substitution to delay expansion of an escaped shell variable in a
2843 # double_quote_subst'ed string.
2844 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2845
2846 # Sed substitution to delay expansion of an escaped single quote.
2847 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2848
2849 # Sed substitution to avoid accidental globbing in evaled expressions
2850 no_glob_subst='s/\*/\\\*/g'
2851
2852 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2853 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2857 $as_echo_n "checking how to print strings... " >&6; }
2858 # Test print first, because it will be a builtin if present.
2859 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2860    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2861   ECHO='print -r --'
2862 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2863   ECHO='printf %s\n'
2864 else
2865   # Use this function as a fallback that always works.
2866   func_fallback_echo ()
2867   {
2868     eval 'cat <<_LTECHO_EOF
2869 $1
2870 _LTECHO_EOF'
2871   }
2872   ECHO='func_fallback_echo'
2873 fi
2874
2875 # func_echo_all arg...
2876 # Invoke $ECHO with all args, space-separated.
2877 func_echo_all ()
2878 {
2879     $ECHO ""
2880 }
2881
2882 case "$ECHO" in
2883   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2884 $as_echo "printf" >&6; } ;;
2885   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2886 $as_echo "print -r" >&6; } ;;
2887   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2888 $as_echo "cat" >&6; } ;;
2889 esac
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904 DEPDIR="${am__leading_dot}deps"
2905
2906 ac_config_commands="$ac_config_commands depfiles"
2907
2908
2909 am_make=${MAKE-make}
2910 cat > confinc << 'END'
2911 am__doit:
2912         @echo this is the am__doit target
2913 .PHONY: am__doit
2914 END
2915 # If we don't find an include directive, just comment out the code.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2917 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2918 am__include="#"
2919 am__quote=
2920 _am_result=none
2921 # First try GNU make style include.
2922 echo "include confinc" > confmf
2923 # Ignore all kinds of additional output from `make'.
2924 case `$am_make -s -f confmf 2> /dev/null` in #(
2925 *the\ am__doit\ target*)
2926   am__include=include
2927   am__quote=
2928   _am_result=GNU
2929   ;;
2930 esac
2931 # Now try BSD make style include.
2932 if test "$am__include" = "#"; then
2933    echo '.include "confinc"' > confmf
2934    case `$am_make -s -f confmf 2> /dev/null` in #(
2935    *the\ am__doit\ target*)
2936      am__include=.include
2937      am__quote="\""
2938      _am_result=BSD
2939      ;;
2940    esac
2941 fi
2942
2943
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2945 $as_echo "$_am_result" >&6; }
2946 rm -f confinc confmf
2947
2948 # Check whether --enable-dependency-tracking was given.
2949 if test "${enable_dependency_tracking+set}" = set; then :
2950   enableval=$enable_dependency_tracking;
2951 fi
2952
2953 if test "x$enable_dependency_tracking" != xno; then
2954   am_depcomp="$ac_aux_dir/depcomp"
2955   AMDEPBACKSLASH='\'
2956 fi
2957  if test "x$enable_dependency_tracking" != xno; then
2958   AMDEP_TRUE=
2959   AMDEP_FALSE='#'
2960 else
2961   AMDEP_TRUE='#'
2962   AMDEP_FALSE=
2963 fi
2964
2965
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 if test -n "$ac_tool_prefix"; then
2972   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987     for ac_exec_ext in '' $ac_executable_extensions; do
2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994   done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009 fi
3010 if test -z "$ac_cv_prog_CC"; then
3011   ac_ct_CC=$CC
3012   # Extract the first word of "gcc", so it can be a program name with args.
3013 set dummy gcc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   if test -n "$ac_ct_CC"; then
3020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027     for ac_exec_ext in '' $ac_executable_extensions; do
3028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029     ac_cv_prog_ac_ct_CC="gcc"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048   if test "x$ac_ct_CC" = x; then
3049     CC=""
3050   else
3051     case $cross_compiling:$ac_tool_warned in
3052 yes:)
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3056 esac
3057     CC=$ac_ct_CC
3058   fi
3059 else
3060   CC="$ac_cv_prog_CC"
3061 fi
3062
3063 if test -z "$CC"; then
3064           if test -n "$ac_tool_prefix"; then
3065     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test -n "$CC"; then
3073   ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     ac_cv_prog_CC="${ac_tool_prefix}cc"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102   fi
3103 fi
3104 if test -z "$CC"; then
3105   # Extract the first word of "cc", so it can be a program name with args.
3106 set dummy cc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_CC+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test -n "$CC"; then
3113   ac_cv_prog_CC="$CC" # Let the user override the test.
3114 else
3115   ac_prog_rejected=no
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121     for ac_exec_ext in '' $ac_executable_extensions; do
3122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3124        ac_prog_rejected=yes
3125        continue
3126      fi
3127     ac_cv_prog_CC="cc"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 if test $ac_prog_rejected = yes; then
3136   # We found a bogon in the path, so make sure we never use it.
3137   set dummy $ac_cv_prog_CC
3138   shift
3139   if test $# != 0; then
3140     # We chose a different compiler from the bogus one.
3141     # However, it has the same basename, so the bogon will be chosen
3142     # first if we set CC to just the basename; use the full file name.
3143     shift
3144     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145   fi
3146 fi
3147 fi
3148 fi
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 if test -z "$CC"; then
3161   if test -n "$ac_tool_prefix"; then
3162   for ac_prog in cl.exe
3163   do
3164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$CC"; then
3172   ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201     test -n "$CC" && break
3202   done
3203 fi
3204 if test -z "$CC"; then
3205   ac_ct_CC=$CC
3206   for ac_prog in cl.exe
3207 do
3208   # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$ac_ct_CC"; then
3216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225     ac_cv_prog_ac_ct_CC="$ac_prog"
3226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230   done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245   test -n "$ac_ct_CC" && break
3246 done
3247
3248   if test "x$ac_ct_CC" = x; then
3249     CC=""
3250   else
3251     case $cross_compiling:$ac_tool_warned in
3252 yes:)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257     CC=$ac_ct_CC
3258   fi
3259 fi
3260
3261 fi
3262
3263
3264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details" "$LINENO" 5; }
3268
3269 # Provide some information about the compiler.
3270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3271 set X $ac_compile
3272 ac_compiler=$2
3273 for ac_option in --version -v -V -qversion; do
3274   { { ac_try="$ac_compiler $ac_option >&5"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3282   ac_status=$?
3283   if test -s conftest.err; then
3284     sed '10a\
3285 ... rest of stderr output deleted ...
3286          10q' conftest.err >conftest.er1
3287     cat conftest.er1 >&5
3288   fi
3289   rm -f conftest.er1 conftest.err
3290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291   test $ac_status = 0; }
3292 done
3293
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h.  */
3296
3297 int
3298 main ()
3299 {
3300
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 ac_clean_files_save=$ac_clean_files
3306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3307 # Try to create an executable without -o first, disregard a.out.
3308 # It will help us diagnose broken compilers, and finding out an intuition
3309 # of exeext.
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3311 $as_echo_n "checking whether the C compiler works... " >&6; }
3312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313
3314 # The possible output files:
3315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3316
3317 ac_rmfiles=
3318 for ac_file in $ac_files
3319 do
3320   case $ac_file in
3321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323   esac
3324 done
3325 rm -f $ac_rmfiles
3326
3327 if { { ac_try="$ac_link_default"
3328 case "(($ac_try" in
3329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330   *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334   (eval "$ac_link_default") 2>&5
3335   ac_status=$?
3336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337   test $ac_status = 0; }; then :
3338   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3340 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3341 # so that the user can short-circuit this test for compilers unknown to
3342 # Autoconf.
3343 for ac_file in $ac_files ''
3344 do
3345   test -f "$ac_file" || continue
3346   case $ac_file in
3347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3348         ;;
3349     [ab].out )
3350         # We found the default executable, but exeext='' is most
3351         # certainly right.
3352         break;;
3353     *.* )
3354         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355         then :; else
3356            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357         fi
3358         # We set ac_cv_exeext here because the later test for it is not
3359         # safe: cross compilers may not add the suffix if given an `-o'
3360         # argument, so we may need to know it at that point already.
3361         # Even if this section looks crufty: it has the advantage of
3362         # actually working.
3363         break;;
3364     * )
3365         break;;
3366   esac
3367 done
3368 test "$ac_cv_exeext" = no && ac_cv_exeext=
3369
3370 else
3371   ac_file=''
3372 fi
3373 if test -z "$ac_file"; then :
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error 77 "C compiler cannot create executables
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 $as_echo "yes" >&6; }
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3388 $as_echo_n "checking for C compiler default output file name... " >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3390 $as_echo "$ac_file" >&6; }
3391 ac_exeext=$ac_cv_exeext
3392
3393 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3396 $as_echo_n "checking for suffix of executables... " >&6; }
3397 if { { ac_try="$ac_link"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404   (eval "$ac_link") 2>&5
3405   ac_status=$?
3406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407   test $ac_status = 0; }; then :
3408   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 # `rm'.
3412 for ac_file in conftest.exe conftest conftest.*; do
3413   test -f "$ac_file" || continue
3414   case $ac_file in
3415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417           break;;
3418     * ) break;;
3419   esac
3420 done
3421 else
3422   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details" "$LINENO" 5; }
3426 fi
3427 rm -f conftest conftest$ac_cv_exeext
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3429 $as_echo "$ac_cv_exeext" >&6; }
3430
3431 rm -f conftest.$ac_ext
3432 EXEEXT=$ac_cv_exeext
3433 ac_exeext=$EXEEXT
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436 #include <stdio.h>
3437 int
3438 main ()
3439 {
3440 FILE *f = fopen ("conftest.out", "w");
3441  return ferror (f) || fclose (f) != 0;
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 ac_clean_files="$ac_clean_files conftest.out"
3448 # Check that the compiler produces executables we can run.  If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3451 $as_echo_n "checking whether we are cross compiling... " >&6; }
3452 if test "$cross_compiling" != yes; then
3453   { { ac_try="$ac_link"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_link") 2>&5
3461   ac_status=$?
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }
3464   if { ac_try='./conftest$ac_cv_exeext'
3465   { { case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471   (eval "$ac_try") 2>&5
3472   ac_status=$?
3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474   test $ac_status = 0; }; }; then
3475     cross_compiling=no
3476   else
3477     if test "$cross_compiling" = maybe; then
3478         cross_compiling=yes
3479     else
3480         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot run C compiled programs.
3483 If you meant to cross compile, use \`--host'.
3484 See \`config.log' for more details" "$LINENO" 5; }
3485     fi
3486   fi
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3489 $as_echo "$cross_compiling" >&6; }
3490
3491 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3492 ac_clean_files=$ac_clean_files_save
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3494 $as_echo_n "checking for suffix of object files... " >&6; }
3495 if ${ac_cv_objext+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.o conftest.obj
3510 if { { ac_try="$ac_compile"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517   (eval "$ac_compile") 2>&5
3518   ac_status=$?
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }; then :
3521   for ac_file in conftest.o conftest.obj conftest.*; do
3522   test -f "$ac_file" || continue;
3523   case $ac_file in
3524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3525     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3526        break;;
3527   esac
3528 done
3529 else
3530   $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "cannot compute suffix of object files: cannot compile
3536 See \`config.log' for more details" "$LINENO" 5; }
3537 fi
3538 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3541 $as_echo "$ac_cv_objext" >&6; }
3542 OBJEXT=$ac_cv_objext
3543 ac_objext=$OBJEXT
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3546 if ${ac_cv_c_compiler_gnu+:} false; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551
3552 int
3553 main ()
3554 {
3555 #ifndef __GNUC__
3556        choke me
3557 #endif
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564   ac_compiler_gnu=yes
3565 else
3566   ac_compiler_gnu=no
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3570
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3574 if test $ac_compiler_gnu = yes; then
3575   GCC=yes
3576 else
3577   GCC=
3578 fi
3579 ac_test_CFLAGS=${CFLAGS+set}
3580 ac_save_CFLAGS=$CFLAGS
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3583 if ${ac_cv_prog_cc_g+:} false; then :
3584   $as_echo_n "(cached) " >&6
3585 else
3586   ac_save_c_werror_flag=$ac_c_werror_flag
3587    ac_c_werror_flag=yes
3588    ac_cv_prog_cc_g=no
3589    CFLAGS="-g"
3590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.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_prog_cc_g=yes
3603 else
3604   CFLAGS=""
3605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617
3618 else
3619   ac_c_werror_flag=$ac_save_c_werror_flag
3620          CFLAGS="-g"
3621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633   ac_cv_prog_cc_g=yes
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640    ac_c_werror_flag=$ac_save_c_werror_flag
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3643 $as_echo "$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645   CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647   if test "$GCC" = yes; then
3648     CFLAGS="-g -O2"
3649   else
3650     CFLAGS="-g"
3651   fi
3652 else
3653   if test "$GCC" = yes; then
3654     CFLAGS="-O2"
3655   else
3656     CFLAGS=
3657   fi
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3661 if ${ac_cv_prog_cc_c89+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   ac_cv_prog_cc_c89=no
3665 ac_save_CC=$CC
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668 #include <stdarg.h>
3669 #include <stdio.h>
3670 #include <sys/types.h>
3671 #include <sys/stat.h>
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3676      char **p;
3677      int i;
3678 {
3679   return p[i];
3680 }
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3682 {
3683   char *s;
3684   va_list v;
3685   va_start (v,p);
3686   s = g (p, va_arg (v,int));
3687   va_end (v);
3688   return s;
3689 }
3690
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3692    function prototypes and stuff, but not '\xHH' hex character constants.
3693    These don't provoke an error unfortunately, instead are silently treated
3694    as 'x'.  The following induces an error, until -std is added to get
3695    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3696    array size at least.  It's necessary to write '\x00'==0 to get something
3697    that's true only with -std.  */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699
3700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3701    inside strings and character constants.  */
3702 #define FOO(x) 'x'
3703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3704
3705 int test (int i, double x);
3706 struct s1 {int (*f) (int a);};
3707 struct s2 {int (*f) (double a);};
3708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 int argc;
3710 char **argv;
3711 int
3712 main ()
3713 {
3714 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3720         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3721 do
3722   CC="$ac_save_CC $ac_arg"
3723   if ac_fn_c_try_compile "$LINENO"; then :
3724   ac_cv_prog_cc_c89=$ac_arg
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext
3727   test "x$ac_cv_prog_cc_c89" != "xno" && break
3728 done
3729 rm -f conftest.$ac_ext
3730 CC=$ac_save_CC
3731
3732 fi
3733 # AC_CACHE_VAL
3734 case "x$ac_cv_prog_cc_c89" in
3735   x)
3736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3738   xno)
3739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3741   *)
3742     CC="$CC $ac_cv_prog_cc_c89"
3743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3745 esac
3746 if test "x$ac_cv_prog_cc_c89" != xno; then :
3747
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756 depcc="$CC"   am_compiler_list=
3757
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3759 $as_echo_n "checking dependency style of $depcc... " >&6; }
3760 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764   # We make a subdir and do the tests there.  Otherwise we can end up
3765   # making bogus files that we don't know about and never remove.  For
3766   # instance it was reported that on HP-UX the gcc test will end up
3767   # making a dummy file named `D' -- because `-MD' means `put the output
3768   # in D'.
3769   mkdir conftest.dir
3770   # Copy depcomp to subdir because otherwise we won't find it if we're
3771   # using a relative directory.
3772   cp "$am_depcomp" conftest.dir
3773   cd conftest.dir
3774   # We will build objects and dependencies in a subdirectory because
3775   # it helps to detect inapplicable dependency modes.  For instance
3776   # both Tru64's cc and ICC support -MD to output dependencies as a
3777   # side effect of compilation, but ICC will put the dependencies in
3778   # the current directory while Tru64 will put them in the object
3779   # directory.
3780   mkdir sub
3781
3782   am_cv_CC_dependencies_compiler_type=none
3783   if test "$am_compiler_list" = ""; then
3784      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785   fi
3786   am__universal=false
3787   case " $depcc " in #(
3788      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3789      esac
3790
3791   for depmode in $am_compiler_list; do
3792     # Setup a source with many dependencies, because some compilers
3793     # like to wrap large dependency lists on column 80 (with \), and
3794     # we should not choose a depcomp mode which is confused by this.
3795     #
3796     # We need to recreate these files for each test, as the compiler may
3797     # overwrite some of them when testing with obscure command lines.
3798     # This happens at least with the AIX C compiler.
3799     : > sub/conftest.c
3800     for i in 1 2 3 4 5 6; do
3801       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3802       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3803       # Solaris 8's {/usr,}/bin/sh.
3804       touch sub/conftst$i.h
3805     done
3806     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3807
3808     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3809     # mode.  It turns out that the SunPro C++ compiler does not properly
3810     # handle `-M -o', and we need to detect this.  Also, some Intel
3811     # versions had trouble with output in subdirs
3812     am__obj=sub/conftest.${OBJEXT-o}
3813     am__minus_obj="-o $am__obj"
3814     case $depmode in
3815     gcc)
3816       # This depmode causes a compiler race in universal mode.
3817       test "$am__universal" = false || continue
3818       ;;
3819     nosideeffect)
3820       # after this tag, mechanisms are not by side-effect, so they'll
3821       # only be used when explicitly requested
3822       if test "x$enable_dependency_tracking" = xyes; then
3823         continue
3824       else
3825         break
3826       fi
3827       ;;
3828     msvisualcpp | msvcmsys)
3829       # This compiler won't grok `-c -o', but also, the minuso test has
3830       # not run yet.  These depmodes are late enough in the game, and
3831       # so weak that their functioning should not be impacted.
3832       am__obj=conftest.${OBJEXT-o}
3833       am__minus_obj=
3834       ;;
3835     none) break ;;
3836     esac
3837     if depmode=$depmode \
3838        source=sub/conftest.c object=$am__obj \
3839        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3840        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3841          >/dev/null 2>conftest.err &&
3842        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3843        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3844        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3845        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846       # icc doesn't choke on unknown options, it will just issue warnings
3847       # or remarks (even with -Werror).  So we grep stderr for any message
3848       # that says an option was ignored or not supported.
3849       # When given -MP, icc 7.0 and 7.1 complain thusly:
3850       #   icc: Command line warning: ignoring option '-M'; no argument required
3851       # The diagnosis changed in icc 8.0:
3852       #   icc: Command line remark: option '-MP' not supported
3853       if (grep 'ignoring option' conftest.err ||
3854           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3855         am_cv_CC_dependencies_compiler_type=$depmode
3856         break
3857       fi
3858     fi
3859   done
3860
3861   cd ..
3862   rm -rf conftest.dir
3863 else
3864   am_cv_CC_dependencies_compiler_type=none
3865 fi
3866
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3871
3872  if
3873   test "x$enable_dependency_tracking" != xno \
3874   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3875   am__fastdepCC_TRUE=
3876   am__fastdepCC_FALSE='#'
3877 else
3878   am__fastdepCC_TRUE='#'
3879   am__fastdepCC_FALSE=
3880 fi
3881
3882
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3884 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3885 if ${ac_cv_path_SED+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3889      for ac_i in 1 2 3 4 5 6 7; do
3890        ac_script="$ac_script$as_nl$ac_script"
3891      done
3892      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3893      { ac_script=; unset ac_script;}
3894      if test -z "$SED"; then
3895   ac_path_SED_found=false
3896   # Loop through the user's path and test for each of PROGNAME-LIST
3897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902     for ac_prog in sed gsed; do
3903     for ac_exec_ext in '' $ac_executable_extensions; do
3904       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3905       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3906 # Check for GNU ac_path_SED and select it if it is found.
3907   # Check for GNU $ac_path_SED
3908 case `"$ac_path_SED" --version 2>&1` in
3909 *GNU*)
3910   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3911 *)
3912   ac_count=0
3913   $as_echo_n 0123456789 >"conftest.in"
3914   while :
3915   do
3916     cat "conftest.in" "conftest.in" >"conftest.tmp"
3917     mv "conftest.tmp" "conftest.in"
3918     cp "conftest.in" "conftest.nl"
3919     $as_echo '' >> "conftest.nl"
3920     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922     as_fn_arith $ac_count + 1 && ac_count=$as_val
3923     if test $ac_count -gt ${ac_path_SED_max-0}; then
3924       # Best one so far, save it but keep looking for a better one
3925       ac_cv_path_SED="$ac_path_SED"
3926       ac_path_SED_max=$ac_count
3927     fi
3928     # 10*(2^10) chars as input seems more than enough
3929     test $ac_count -gt 10 && break
3930   done
3931   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 esac
3933
3934       $ac_path_SED_found && break 3
3935     done
3936   done
3937   done
3938 IFS=$as_save_IFS
3939   if test -z "$ac_cv_path_SED"; then
3940     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3941   fi
3942 else
3943   ac_cv_path_SED=$SED
3944 fi
3945
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3948 $as_echo "$ac_cv_path_SED" >&6; }
3949  SED="$ac_cv_path_SED"
3950   rm -f conftest.sed
3951
3952 test -z "$SED" && SED=sed
3953 Xsed="$SED -e 1s/^X//"
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3966 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3967 if ${ac_cv_path_GREP+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   if test -z "$GREP"; then
3971   ac_path_GREP_found=false
3972   # Loop through the user's path and test for each of PROGNAME-LIST
3973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978     for ac_prog in grep ggrep; do
3979     for ac_exec_ext in '' $ac_executable_extensions; do
3980       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3981       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3982 # Check for GNU ac_path_GREP and select it if it is found.
3983   # Check for GNU $ac_path_GREP
3984 case `"$ac_path_GREP" --version 2>&1` in
3985 *GNU*)
3986   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3987 *)
3988   ac_count=0
3989   $as_echo_n 0123456789 >"conftest.in"
3990   while :
3991   do
3992     cat "conftest.in" "conftest.in" >"conftest.tmp"
3993     mv "conftest.tmp" "conftest.in"
3994     cp "conftest.in" "conftest.nl"
3995     $as_echo 'GREP' >> "conftest.nl"
3996     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998     as_fn_arith $ac_count + 1 && ac_count=$as_val
3999     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4000       # Best one so far, save it but keep looking for a better one
4001       ac_cv_path_GREP="$ac_path_GREP"
4002       ac_path_GREP_max=$ac_count
4003     fi
4004     # 10*(2^10) chars as input seems more than enough
4005     test $ac_count -gt 10 && break
4006   done
4007   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4009
4010       $ac_path_GREP_found && break 3
4011     done
4012   done
4013   done
4014 IFS=$as_save_IFS
4015   if test -z "$ac_cv_path_GREP"; then
4016     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4017   fi
4018 else
4019   ac_cv_path_GREP=$GREP
4020 fi
4021
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4024 $as_echo "$ac_cv_path_GREP" >&6; }
4025  GREP="$ac_cv_path_GREP"
4026
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4029 $as_echo_n "checking for egrep... " >&6; }
4030 if ${ac_cv_path_EGREP+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034    then ac_cv_path_EGREP="$GREP -E"
4035    else
4036      if test -z "$EGREP"; then
4037   ac_path_EGREP_found=false
4038   # Loop through the user's path and test for each of PROGNAME-LIST
4039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044     for ac_prog in egrep; do
4045     for ac_exec_ext in '' $ac_executable_extensions; do
4046       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4047       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4048 # Check for GNU ac_path_EGREP and select it if it is found.
4049   # Check for GNU $ac_path_EGREP
4050 case `"$ac_path_EGREP" --version 2>&1` in
4051 *GNU*)
4052   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4053 *)
4054   ac_count=0
4055   $as_echo_n 0123456789 >"conftest.in"
4056   while :
4057   do
4058     cat "conftest.in" "conftest.in" >"conftest.tmp"
4059     mv "conftest.tmp" "conftest.in"
4060     cp "conftest.in" "conftest.nl"
4061     $as_echo 'EGREP' >> "conftest.nl"
4062     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064     as_fn_arith $ac_count + 1 && ac_count=$as_val
4065     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4066       # Best one so far, save it but keep looking for a better one
4067       ac_cv_path_EGREP="$ac_path_EGREP"
4068       ac_path_EGREP_max=$ac_count
4069     fi
4070     # 10*(2^10) chars as input seems more than enough
4071     test $ac_count -gt 10 && break
4072   done
4073   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074 esac
4075
4076       $ac_path_EGREP_found && break 3
4077     done
4078   done
4079   done
4080 IFS=$as_save_IFS
4081   if test -z "$ac_cv_path_EGREP"; then
4082     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4083   fi
4084 else
4085   ac_cv_path_EGREP=$EGREP
4086 fi
4087
4088    fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4091 $as_echo "$ac_cv_path_EGREP" >&6; }
4092  EGREP="$ac_cv_path_EGREP"
4093
4094
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4096 $as_echo_n "checking for fgrep... " >&6; }
4097 if ${ac_cv_path_FGREP+:} false; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4101    then ac_cv_path_FGREP="$GREP -F"
4102    else
4103      if test -z "$FGREP"; then
4104   ac_path_FGREP_found=false
4105   # Loop through the user's path and test for each of PROGNAME-LIST
4106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111     for ac_prog in fgrep; do
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4114       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4115 # Check for GNU ac_path_FGREP and select it if it is found.
4116   # Check for GNU $ac_path_FGREP
4117 case `"$ac_path_FGREP" --version 2>&1` in
4118 *GNU*)
4119   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4120 *)
4121   ac_count=0
4122   $as_echo_n 0123456789 >"conftest.in"
4123   while :
4124   do
4125     cat "conftest.in" "conftest.in" >"conftest.tmp"
4126     mv "conftest.tmp" "conftest.in"
4127     cp "conftest.in" "conftest.nl"
4128     $as_echo 'FGREP' >> "conftest.nl"
4129     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131     as_fn_arith $ac_count + 1 && ac_count=$as_val
4132     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4133       # Best one so far, save it but keep looking for a better one
4134       ac_cv_path_FGREP="$ac_path_FGREP"
4135       ac_path_FGREP_max=$ac_count
4136     fi
4137     # 10*(2^10) chars as input seems more than enough
4138     test $ac_count -gt 10 && break
4139   done
4140   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4141 esac
4142
4143       $ac_path_FGREP_found && break 3
4144     done
4145   done
4146   done
4147 IFS=$as_save_IFS
4148   if test -z "$ac_cv_path_FGREP"; then
4149     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4150   fi
4151 else
4152   ac_cv_path_FGREP=$FGREP
4153 fi
4154
4155    fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4158 $as_echo "$ac_cv_path_FGREP" >&6; }
4159  FGREP="$ac_cv_path_FGREP"
4160
4161
4162 test -z "$GREP" && GREP=grep
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182 # Check whether --with-gnu-ld was given.
4183 if test "${with_gnu_ld+set}" = set; then :
4184   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4185 else
4186   with_gnu_ld=no
4187 fi
4188
4189 ac_prog=ld
4190 if test "$GCC" = yes; then
4191   # Check if gcc -print-prog-name=ld gives a path.
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4193 $as_echo_n "checking for ld used by $CC... " >&6; }
4194   case $host in
4195   *-*-mingw*)
4196     # gcc leaves a trailing carriage return which upsets mingw
4197     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4198   *)
4199     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4200   esac
4201   case $ac_prog in
4202     # Accept absolute paths.
4203     [\\/]* | ?:[\\/]*)
4204       re_direlt='/[^/][^/]*/\.\./'
4205       # Canonicalize the pathname of ld
4206       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4207       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4208         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4209       done
4210       test -z "$LD" && LD="$ac_prog"
4211       ;;
4212   "")
4213     # If it fails, then pretend we aren't using GCC.
4214     ac_prog=ld
4215     ;;
4216   *)
4217     # If it is relative, then search for the first ld in PATH.
4218     with_gnu_ld=unknown
4219     ;;
4220   esac
4221 elif test "$with_gnu_ld" = yes; then
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4223 $as_echo_n "checking for GNU ld... " >&6; }
4224 else
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4226 $as_echo_n "checking for non-GNU ld... " >&6; }
4227 fi
4228 if ${lt_cv_path_LD+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   if test -z "$LD"; then
4232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4233   for ac_dir in $PATH; do
4234     IFS="$lt_save_ifs"
4235     test -z "$ac_dir" && ac_dir=.
4236     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4237       lt_cv_path_LD="$ac_dir/$ac_prog"
4238       # Check to see if the program is GNU ld.  I'd rather use --version,
4239       # but apparently some variants of GNU ld only accept -v.
4240       # Break only if it was the GNU/non-GNU ld that we prefer.
4241       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4242       *GNU* | *'with BFD'*)
4243         test "$with_gnu_ld" != no && break
4244         ;;
4245       *)
4246         test "$with_gnu_ld" != yes && break
4247         ;;
4248       esac
4249     fi
4250   done
4251   IFS="$lt_save_ifs"
4252 else
4253   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4254 fi
4255 fi
4256
4257 LD="$lt_cv_path_LD"
4258 if test -n "$LD"; then
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4260 $as_echo "$LD" >&6; }
4261 else
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4268 if ${lt_cv_prog_gnu_ld+:} false; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4272 case `$LD -v 2>&1 </dev/null` in
4273 *GNU* | *'with BFD'*)
4274   lt_cv_prog_gnu_ld=yes
4275   ;;
4276 *)
4277   lt_cv_prog_gnu_ld=no
4278   ;;
4279 esac
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4282 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4283 with_gnu_ld=$lt_cv_prog_gnu_ld
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4294 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4295 if ${lt_cv_path_NM+:} false; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   if test -n "$NM"; then
4299   # Let the user override the test.
4300   lt_cv_path_NM="$NM"
4301 else
4302   lt_nm_to_check="${ac_tool_prefix}nm"
4303   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4304     lt_nm_to_check="$lt_nm_to_check nm"
4305   fi
4306   for lt_tmp_nm in $lt_nm_to_check; do
4307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4308     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4309       IFS="$lt_save_ifs"
4310       test -z "$ac_dir" && ac_dir=.
4311       tmp_nm="$ac_dir/$lt_tmp_nm"
4312       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4313         # Check to see if the nm accepts a BSD-compat flag.
4314         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4315         #   nm: unknown option "B" ignored
4316         # Tru64's nm complains that /dev/null is an invalid object file
4317         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4318         */dev/null* | *'Invalid file or object type'*)
4319           lt_cv_path_NM="$tmp_nm -B"
4320           break
4321           ;;
4322         *)
4323           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4324           */dev/null*)
4325             lt_cv_path_NM="$tmp_nm -p"
4326             break
4327             ;;
4328           *)
4329             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4330             continue # so that we can try to find one that supports BSD flags
4331             ;;
4332           esac
4333           ;;
4334         esac
4335       fi
4336     done
4337     IFS="$lt_save_ifs"
4338   done
4339   : ${lt_cv_path_NM=no}
4340 fi
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4343 $as_echo "$lt_cv_path_NM" >&6; }
4344 if test "$lt_cv_path_NM" != "no"; then
4345   NM="$lt_cv_path_NM"
4346 else
4347   # Didn't find any BSD compatible name lister, look for dumpbin.
4348   if test -n "$DUMPBIN"; then :
4349     # Let the user override the test.
4350   else
4351     if test -n "$ac_tool_prefix"; then
4352   for ac_prog in dumpbin "link -dump"
4353   do
4354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_DUMPBIN+:} false; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   if test -n "$DUMPBIN"; then
4362   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376   done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 DUMPBIN=$ac_cv_prog_DUMPBIN
4382 if test -n "$DUMPBIN"; then
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4384 $as_echo "$DUMPBIN" >&6; }
4385 else
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389
4390
4391     test -n "$DUMPBIN" && break
4392   done
4393 fi
4394 if test -z "$DUMPBIN"; then
4395   ac_ct_DUMPBIN=$DUMPBIN
4396   for ac_prog in dumpbin "link -dump"
4397 do
4398   # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   if test -n "$ac_ct_DUMPBIN"; then
4406   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413     for ac_exec_ext in '' $ac_executable_extensions; do
4414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420   done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4426 if test -n "$ac_ct_DUMPBIN"; then
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4428 $as_echo "$ac_ct_DUMPBIN" >&6; }
4429 else
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435   test -n "$ac_ct_DUMPBIN" && break
4436 done
4437
4438   if test "x$ac_ct_DUMPBIN" = x; then
4439     DUMPBIN=":"
4440   else
4441     case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447     DUMPBIN=$ac_ct_DUMPBIN
4448   fi
4449 fi
4450
4451     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4452     *COFF*)
4453       DUMPBIN="$DUMPBIN -symbols"
4454       ;;
4455     *)
4456       DUMPBIN=:
4457       ;;
4458     esac
4459   fi
4460
4461   if test "$DUMPBIN" != ":"; then
4462     NM="$DUMPBIN"
4463   fi
4464 fi
4465 test -z "$NM" && NM=nm
4466
4467
4468
4469
4470
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4474 if ${lt_cv_nm_interface+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   lt_cv_nm_interface="BSD nm"
4478   echo "int some_variable = 0;" > conftest.$ac_ext
4479   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4480   (eval "$ac_compile" 2>conftest.err)
4481   cat conftest.err >&5
4482   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4483   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4484   cat conftest.err >&5
4485   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4486   cat conftest.out >&5
4487   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4488     lt_cv_nm_interface="MS dumpbin"
4489   fi
4490   rm -f conftest*
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4493 $as_echo "$lt_cv_nm_interface" >&6; }
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4496 $as_echo_n "checking whether ln -s works... " >&6; }
4497 LN_S=$as_ln_s
4498 if test "$LN_S" = "ln -s"; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500 $as_echo "yes" >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4503 $as_echo "no, using $LN_S" >&6; }
4504 fi
4505
4506 # find the maximum length of command line arguments
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4508 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4509 if ${lt_cv_sys_max_cmd_len+:} false; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512     i=0
4513   teststring="ABCD"
4514
4515   case $build_os in
4516   msdosdjgpp*)
4517     # On DJGPP, this test can blow up pretty badly due to problems in libc
4518     # (any single argument exceeding 2000 bytes causes a buffer overrun
4519     # during glob expansion).  Even if it were fixed, the result of this
4520     # check would be larger than it should be.
4521     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4522     ;;
4523
4524   gnu*)
4525     # Under GNU Hurd, this test is not required because there is
4526     # no limit to the length of command line arguments.
4527     # Libtool will interpret -1 as no limit whatsoever
4528     lt_cv_sys_max_cmd_len=-1;
4529     ;;
4530
4531   cygwin* | mingw* | cegcc*)
4532     # On Win9x/ME, this test blows up -- it succeeds, but takes
4533     # about 5 minutes as the teststring grows exponentially.
4534     # Worse, since 9x/ME are not pre-emptively multitasking,
4535     # you end up with a "frozen" computer, even though with patience
4536     # the test eventually succeeds (with a max line length of 256k).
4537     # Instead, let's just punt: use the minimum linelength reported by
4538     # all of the supported platforms: 8192 (on NT/2K/XP).
4539     lt_cv_sys_max_cmd_len=8192;
4540     ;;
4541
4542   mint*)
4543     # On MiNT this can take a long time and run out of memory.
4544     lt_cv_sys_max_cmd_len=8192;
4545     ;;
4546
4547   amigaos*)
4548     # On AmigaOS with pdksh, this test takes hours, literally.
4549     # So we just punt and use a minimum line length of 8192.
4550     lt_cv_sys_max_cmd_len=8192;
4551     ;;
4552
4553   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4554     # This has been around since 386BSD, at least.  Likely further.
4555     if test -x /sbin/sysctl; then
4556       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4557     elif test -x /usr/sbin/sysctl; then
4558       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4559     else
4560       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4561     fi
4562     # And add a safety zone
4563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4564     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4565     ;;
4566
4567   interix*)
4568     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4569     lt_cv_sys_max_cmd_len=196608
4570     ;;
4571
4572   osf*)
4573     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4574     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4575     # nice to cause kernel panics so lets avoid the loop below.
4576     # First set a reasonable default.
4577     lt_cv_sys_max_cmd_len=16384
4578     #
4579     if test -x /sbin/sysconfig; then
4580       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4581         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4582       esac
4583     fi
4584     ;;
4585   sco3.2v5*)
4586     lt_cv_sys_max_cmd_len=102400
4587     ;;
4588   sysv5* | sco5v6* | sysv4.2uw2*)
4589     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4590     if test -n "$kargmax"; then
4591       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4592     else
4593       lt_cv_sys_max_cmd_len=32768
4594     fi
4595     ;;
4596   *)
4597     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4598     if test -n "$lt_cv_sys_max_cmd_len"; then
4599       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4600       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4601     else
4602       # Make teststring a little bigger before we do anything with it.
4603       # a 1K string should be a reasonable start.
4604       for i in 1 2 3 4 5 6 7 8 ; do
4605         teststring=$teststring$teststring
4606       done
4607       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4608       # If test is not a shell built-in, we'll probably end up computing a
4609       # maximum length that is only half of the actual maximum length, but
4610       # we can't tell.
4611       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4612                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4613               test $i != 17 # 1/2 MB should be enough
4614       do
4615         i=`expr $i + 1`
4616         teststring=$teststring$teststring
4617       done
4618       # Only check the string length outside the loop.
4619       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4620       teststring=
4621       # Add a significant safety factor because C++ compilers can tack on
4622       # massive amounts of additional arguments before passing them to the
4623       # linker.  It appears as though 1/2 is a usable value.
4624       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4625     fi
4626     ;;
4627   esac
4628
4629 fi
4630
4631 if test -n $lt_cv_sys_max_cmd_len ; then
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4633 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4634 else
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4636 $as_echo "none" >&6; }
4637 fi
4638 max_cmd_len=$lt_cv_sys_max_cmd_len
4639
4640
4641
4642
4643
4644
4645 : ${CP="cp -f"}
4646 : ${MV="mv -f"}
4647 : ${RM="rm -f"}
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4650 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4651 # Try some XSI features
4652 xsi_shell=no
4653 ( _lt_dummy="a/b/c"
4654   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4655       = c,a/b,b/c, \
4656     && eval 'test $(( 1 + 1 )) -eq 2 \
4657     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4658   && xsi_shell=yes
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4660 $as_echo "$xsi_shell" >&6; }
4661
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4664 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4665 lt_shell_append=no
4666 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4667     >/dev/null 2>&1 \
4668   && lt_shell_append=yes
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4670 $as_echo "$lt_shell_append" >&6; }
4671
4672
4673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4674   lt_unset=unset
4675 else
4676   lt_unset=false
4677 fi
4678
4679
4680
4681
4682
4683 # test EBCDIC or ASCII
4684 case `echo X|tr X '\101'` in
4685  A) # ASCII based system
4686     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4687   lt_SP2NL='tr \040 \012'
4688   lt_NL2SP='tr \015\012 \040\040'
4689   ;;
4690  *) # EBCDIC based system
4691   lt_SP2NL='tr \100 \n'
4692   lt_NL2SP='tr \r\n \100\100'
4693   ;;
4694 esac
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4705 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4706 if ${lt_cv_to_host_file_cmd+:} false; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   case $host in
4710   *-*-mingw* )
4711     case $build in
4712       *-*-mingw* ) # actually msys
4713         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4714         ;;
4715       *-*-cygwin* )
4716         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4717         ;;
4718       * ) # otherwise, assume *nix
4719         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4720         ;;
4721     esac
4722     ;;
4723   *-*-cygwin* )
4724     case $build in
4725       *-*-mingw* ) # actually msys
4726         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4727         ;;
4728       *-*-cygwin* )
4729         lt_cv_to_host_file_cmd=func_convert_file_noop
4730         ;;
4731       * ) # otherwise, assume *nix
4732         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4733         ;;
4734     esac
4735     ;;
4736   * ) # unhandled hosts (and "normal" native builds)
4737     lt_cv_to_host_file_cmd=func_convert_file_noop
4738     ;;
4739 esac
4740
4741 fi
4742
4743 to_host_file_cmd=$lt_cv_to_host_file_cmd
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4745 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4746
4747
4748
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4752 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4753 if ${lt_cv_to_tool_file_cmd+:} false; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756   #assume ordinary cross tools, or native build.
4757 lt_cv_to_tool_file_cmd=func_convert_file_noop
4758 case $host in
4759   *-*-mingw* )
4760     case $build in
4761       *-*-mingw* ) # actually msys
4762         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4763         ;;
4764     esac
4765     ;;
4766 esac
4767
4768 fi
4769
4770 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4772 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4773
4774
4775
4776
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4779 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4780 if ${lt_cv_ld_reload_flag+:} false; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   lt_cv_ld_reload_flag='-r'
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4786 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4787 reload_flag=$lt_cv_ld_reload_flag
4788 case $reload_flag in
4789 "" | " "*) ;;
4790 *) reload_flag=" $reload_flag" ;;
4791 esac
4792 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4793 case $host_os in
4794   cygwin* | mingw* | pw32* | cegcc*)
4795     if test "$GCC" != yes; then
4796       reload_cmds=false
4797     fi
4798     ;;
4799   darwin*)
4800     if test "$GCC" = yes; then
4801       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4802     else
4803       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4804     fi
4805     ;;
4806 esac
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816 if test -n "$ac_tool_prefix"; then
4817   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4818 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_OBJDUMP+:} false; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   if test -n "$OBJDUMP"; then
4825   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832     for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839   done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 OBJDUMP=$ac_cv_prog_OBJDUMP
4845 if test -n "$OBJDUMP"; then
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4847 $as_echo "$OBJDUMP" >&6; }
4848 else
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 fi
4852
4853
4854 fi
4855 if test -z "$ac_cv_prog_OBJDUMP"; then
4856   ac_ct_OBJDUMP=$OBJDUMP
4857   # Extract the first word of "objdump", so it can be a program name with args.
4858 set dummy objdump; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864   if test -n "$ac_ct_OBJDUMP"; then
4865   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879   done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4885 if test -n "$ac_ct_OBJDUMP"; then
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4887 $as_echo "$ac_ct_OBJDUMP" >&6; }
4888 else
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893   if test "x$ac_ct_OBJDUMP" = x; then
4894     OBJDUMP="false"
4895   else
4896     case $cross_compiling:$ac_tool_warned in
4897 yes:)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4901 esac
4902     OBJDUMP=$ac_ct_OBJDUMP
4903   fi
4904 else
4905   OBJDUMP="$ac_cv_prog_OBJDUMP"
4906 fi
4907
4908 test -z "$OBJDUMP" && OBJDUMP=objdump
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4919 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4920 if ${lt_cv_deplibs_check_method+:} false; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   lt_cv_file_magic_cmd='$MAGIC_CMD'
4924 lt_cv_file_magic_test_file=
4925 lt_cv_deplibs_check_method='unknown'
4926 # Need to set the preceding variable on all platforms that support
4927 # interlibrary dependencies.
4928 # 'none' -- dependencies not supported.
4929 # `unknown' -- same as none, but documents that we really don't know.
4930 # 'pass_all' -- all dependencies passed with no checks.
4931 # 'test_compile' -- check by making test program.
4932 # 'file_magic [[regex]]' -- check by looking for files in library path
4933 # which responds to the $file_magic_cmd with a given extended regex.
4934 # If you have `file' or equivalent on your system and you're not sure
4935 # whether `pass_all' will *always* work, you probably want this one.
4936
4937 case $host_os in
4938 aix[4-9]*)
4939   lt_cv_deplibs_check_method=pass_all
4940   ;;
4941
4942 beos*)
4943   lt_cv_deplibs_check_method=pass_all
4944   ;;
4945
4946 bsdi[45]*)
4947   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4948   lt_cv_file_magic_cmd='/usr/bin/file -L'
4949   lt_cv_file_magic_test_file=/shlib/libc.so
4950   ;;
4951
4952 cygwin*)
4953   # func_win32_libid is a shell function defined in ltmain.sh
4954   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4955   lt_cv_file_magic_cmd='func_win32_libid'
4956   ;;
4957
4958 mingw* | pw32*)
4959   # Base MSYS/MinGW do not provide the 'file' command needed by
4960   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4961   # unless we find 'file', for example because we are cross-compiling.
4962   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4963   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4964     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4965     lt_cv_file_magic_cmd='func_win32_libid'
4966   else
4967     # Keep this pattern in sync with the one in func_win32_libid.
4968     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4969     lt_cv_file_magic_cmd='$OBJDUMP -f'
4970   fi
4971   ;;
4972
4973 cegcc*)
4974   # use the weaker test based on 'objdump'. See mingw*.
4975   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4976   lt_cv_file_magic_cmd='$OBJDUMP -f'
4977   ;;
4978
4979 darwin* | rhapsody*)
4980   lt_cv_deplibs_check_method=pass_all
4981   ;;
4982
4983 freebsd* | dragonfly*)
4984   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4985     case $host_cpu in
4986     i*86 )
4987       # Not sure whether the presence of OpenBSD here was a mistake.
4988       # Let's accept both of them until this is cleared up.
4989       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4990       lt_cv_file_magic_cmd=/usr/bin/file
4991       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4992       ;;
4993     esac
4994   else
4995     lt_cv_deplibs_check_method=pass_all
4996   fi
4997   ;;
4998
4999 gnu*)
5000   lt_cv_deplibs_check_method=pass_all
5001   ;;
5002
5003 haiku*)
5004   lt_cv_deplibs_check_method=pass_all
5005   ;;
5006
5007 hpux10.20* | hpux11*)
5008   lt_cv_file_magic_cmd=/usr/bin/file
5009   case $host_cpu in
5010   ia64*)
5011     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5012     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5013     ;;
5014   hppa*64*)
5015     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]'
5016     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5017     ;;
5018   *)
5019     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5020     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5021     ;;
5022   esac
5023   ;;
5024
5025 interix[3-9]*)
5026   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5027   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5028   ;;
5029
5030 irix5* | irix6* | nonstopux*)
5031   case $LD in
5032   *-32|*"-32 ") libmagic=32-bit;;
5033   *-n32|*"-n32 ") libmagic=N32;;
5034   *-64|*"-64 ") libmagic=64-bit;;
5035   *) libmagic=never-match;;
5036   esac
5037   lt_cv_deplibs_check_method=pass_all
5038   ;;
5039
5040 # This must be Linux ELF.
5041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5042   lt_cv_deplibs_check_method=pass_all
5043   ;;
5044
5045 netbsd*)
5046   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5048   else
5049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5050   fi
5051   ;;
5052
5053 newos6*)
5054   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5055   lt_cv_file_magic_cmd=/usr/bin/file
5056   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5057   ;;
5058
5059 *nto* | *qnx*)
5060   lt_cv_deplibs_check_method=pass_all
5061   ;;
5062
5063 openbsd*)
5064   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5066   else
5067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5068   fi
5069   ;;
5070
5071 osf3* | osf4* | osf5*)
5072   lt_cv_deplibs_check_method=pass_all
5073   ;;
5074
5075 rdos*)
5076   lt_cv_deplibs_check_method=pass_all
5077   ;;
5078
5079 solaris*)
5080   lt_cv_deplibs_check_method=pass_all
5081   ;;
5082
5083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5084   lt_cv_deplibs_check_method=pass_all
5085   ;;
5086
5087 sysv4 | sysv4.3*)
5088   case $host_vendor in
5089   motorola)
5090     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]'
5091     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5092     ;;
5093   ncr)
5094     lt_cv_deplibs_check_method=pass_all
5095     ;;
5096   sequent)
5097     lt_cv_file_magic_cmd='/bin/file'
5098     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5099     ;;
5100   sni)
5101     lt_cv_file_magic_cmd='/bin/file'
5102     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5103     lt_cv_file_magic_test_file=/lib/libc.so
5104     ;;
5105   siemens)
5106     lt_cv_deplibs_check_method=pass_all
5107     ;;
5108   pc)
5109     lt_cv_deplibs_check_method=pass_all
5110     ;;
5111   esac
5112   ;;
5113
5114 tpf*)
5115   lt_cv_deplibs_check_method=pass_all
5116   ;;
5117 esac
5118
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5121 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5122
5123 file_magic_glob=
5124 want_nocaseglob=no
5125 if test "$build" = "$host"; then
5126   case $host_os in
5127   mingw* | pw32*)
5128     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5129       want_nocaseglob=yes
5130     else
5131       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5132     fi
5133     ;;
5134   esac
5135 fi
5136
5137 file_magic_cmd=$lt_cv_file_magic_cmd
5138 deplibs_check_method=$lt_cv_deplibs_check_method
5139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 if test -n "$ac_tool_prefix"; then
5163   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_DLLTOOL+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   if test -n "$DLLTOOL"; then
5171   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178     for ac_exec_ext in '' $ac_executable_extensions; do
5179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185   done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 DLLTOOL=$ac_cv_prog_DLLTOOL
5191 if test -n "$DLLTOOL"; then
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5193 $as_echo "$DLLTOOL" >&6; }
5194 else
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 fi
5201 if test -z "$ac_cv_prog_DLLTOOL"; then
5202   ac_ct_DLLTOOL=$DLLTOOL
5203   # Extract the first word of "dlltool", so it can be a program name with args.
5204 set dummy dlltool; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   if test -n "$ac_ct_DLLTOOL"; then
5211   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216   IFS=$as_save_IFS
5217   test -z "$as_dir" && as_dir=.
5218     for ac_exec_ext in '' $ac_executable_extensions; do
5219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222     break 2
5223   fi
5224 done
5225   done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5231 if test -n "$ac_ct_DLLTOOL"; then
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5233 $as_echo "$ac_ct_DLLTOOL" >&6; }
5234 else
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239   if test "x$ac_ct_DLLTOOL" = x; then
5240     DLLTOOL="false"
5241   else
5242     case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248     DLLTOOL=$ac_ct_DLLTOOL
5249   fi
5250 else
5251   DLLTOOL="$ac_cv_prog_DLLTOOL"
5252 fi
5253
5254 test -z "$DLLTOOL" && DLLTOOL=dlltool
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5266 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5267 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   lt_cv_sharedlib_from_linklib_cmd='unknown'
5271
5272 case $host_os in
5273 cygwin* | mingw* | pw32* | cegcc*)
5274   # two different shell functions defined in ltmain.sh
5275   # decide which to use based on capabilities of $DLLTOOL
5276   case `$DLLTOOL --help 2>&1` in
5277   *--identify-strict*)
5278     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5279     ;;
5280   *)
5281     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5282     ;;
5283   esac
5284   ;;
5285 *)
5286   # fallback: assume linklib IS sharedlib
5287   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5288   ;;
5289 esac
5290
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5293 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5294 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5295 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5296
5297
5298
5299
5300
5301
5302
5303
5304 if test -n "$ac_tool_prefix"; then
5305   for ac_prog in ar
5306   do
5307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if ${ac_cv_prog_AR+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   if test -n "$AR"; then
5315   ac_cv_prog_AR="$AR" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322     for ac_exec_ext in '' $ac_executable_extensions; do
5323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329   done
5330 IFS=$as_save_IFS
5331
5332 fi
5333 fi
5334 AR=$ac_cv_prog_AR
5335 if test -n "$AR"; then
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5337 $as_echo "$AR" >&6; }
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342
5343
5344     test -n "$AR" && break
5345   done
5346 fi
5347 if test -z "$AR"; then
5348   ac_ct_AR=$AR
5349   for ac_prog in ar
5350 do
5351   # Extract the first word of "$ac_prog", so it can be a program name with args.
5352 set dummy $ac_prog; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   if test -n "$ac_ct_AR"; then
5359   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368     ac_cv_prog_ac_ct_AR="$ac_prog"
5369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373   done
5374 IFS=$as_save_IFS
5375
5376 fi
5377 fi
5378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5379 if test -n "$ac_ct_AR"; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5381 $as_echo "$ac_ct_AR" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386
5387
5388   test -n "$ac_ct_AR" && break
5389 done
5390
5391   if test "x$ac_ct_AR" = x; then
5392     AR="false"
5393   else
5394     case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400     AR=$ac_ct_AR
5401   fi
5402 fi
5403
5404 : ${AR=ar}
5405 : ${AR_FLAGS=cru}
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5418 $as_echo_n "checking for archiver @FILE support... " >&6; }
5419 if ${lt_cv_ar_at_file+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   lt_cv_ar_at_file=no
5423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h.  */
5425
5426 int
5427 main ()
5428 {
5429
5430   ;
5431   return 0;
5432 }
5433 _ACEOF
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435   echo conftest.$ac_objext > conftest.lst
5436       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5437       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5438   (eval $lt_ar_try) 2>&5
5439   ac_status=$?
5440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5441   test $ac_status = 0; }
5442       if test "$ac_status" -eq 0; then
5443         # Ensure the archiver fails upon bogus file names.
5444         rm -f conftest.$ac_objext libconftest.a
5445         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5446   (eval $lt_ar_try) 2>&5
5447   ac_status=$?
5448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5449   test $ac_status = 0; }
5450         if test "$ac_status" -ne 0; then
5451           lt_cv_ar_at_file=@
5452         fi
5453       fi
5454       rm -f conftest.* libconftest.a
5455
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5461 $as_echo "$lt_cv_ar_at_file" >&6; }
5462
5463 if test "x$lt_cv_ar_at_file" = xno; then
5464   archiver_list_spec=
5465 else
5466   archiver_list_spec=$lt_cv_ar_at_file
5467 fi
5468
5469
5470
5471
5472
5473
5474
5475 if test -n "$ac_tool_prefix"; then
5476   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}strip; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_STRIP+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   if test -n "$STRIP"; then
5484   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489   IFS=$as_save_IFS
5490   test -z "$as_dir" && as_dir=.
5491     for ac_exec_ext in '' $ac_executable_extensions; do
5492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495     break 2
5496   fi
5497 done
5498   done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 STRIP=$ac_cv_prog_STRIP
5504 if test -n "$STRIP"; then
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5506 $as_echo "$STRIP" >&6; }
5507 else
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512
5513 fi
5514 if test -z "$ac_cv_prog_STRIP"; then
5515   ac_ct_STRIP=$STRIP
5516   # Extract the first word of "strip", so it can be a program name with args.
5517 set dummy strip; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   if test -n "$ac_ct_STRIP"; then
5524   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529   IFS=$as_save_IFS
5530   test -z "$as_dir" && as_dir=.
5531     for ac_exec_ext in '' $ac_executable_extensions; do
5532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533     ac_cv_prog_ac_ct_STRIP="strip"
5534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535     break 2
5536   fi
5537 done
5538   done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5544 if test -n "$ac_ct_STRIP"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5546 $as_echo "$ac_ct_STRIP" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552   if test "x$ac_ct_STRIP" = x; then
5553     STRIP=":"
5554   else
5555     case $cross_compiling:$ac_tool_warned in
5556 yes:)
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559 ac_tool_warned=yes ;;
5560 esac
5561     STRIP=$ac_ct_STRIP
5562   fi
5563 else
5564   STRIP="$ac_cv_prog_STRIP"
5565 fi
5566
5567 test -z "$STRIP" && STRIP=:
5568
5569
5570
5571
5572
5573
5574 if test -n "$ac_tool_prefix"; then
5575   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_RANLIB+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   if test -n "$RANLIB"; then
5583   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 RANLIB=$ac_cv_prog_RANLIB
5603 if test -n "$RANLIB"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5605 $as_echo "$RANLIB" >&6; }
5606 else
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612 fi
5613 if test -z "$ac_cv_prog_RANLIB"; then
5614   ac_ct_RANLIB=$RANLIB
5615   # Extract the first word of "ranlib", so it can be a program name with args.
5616 set dummy ranlib; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   if test -n "$ac_ct_RANLIB"; then
5623   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632     ac_cv_prog_ac_ct_RANLIB="ranlib"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5643 if test -n "$ac_ct_RANLIB"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5645 $as_echo "$ac_ct_RANLIB" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651   if test "x$ac_ct_RANLIB" = x; then
5652     RANLIB=":"
5653   else
5654     case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5659 esac
5660     RANLIB=$ac_ct_RANLIB
5661   fi
5662 else
5663   RANLIB="$ac_cv_prog_RANLIB"
5664 fi
5665
5666 test -z "$RANLIB" && RANLIB=:
5667
5668
5669
5670
5671
5672
5673 # Determine commands to create old-style static archives.
5674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5675 old_postinstall_cmds='chmod 644 $oldlib'
5676 old_postuninstall_cmds=
5677
5678 if test -n "$RANLIB"; then
5679   case $host_os in
5680   openbsd*)
5681     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5682     ;;
5683   *)
5684     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5685     ;;
5686   esac
5687   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5688 fi
5689
5690 case $host_os in
5691   darwin*)
5692     lock_old_archive_extraction=yes ;;
5693   *)
5694     lock_old_archive_extraction=no ;;
5695 esac
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735 # If no C compiler was specified, use CC.
5736 LTCC=${LTCC-"$CC"}
5737
5738 # If no C compiler flags were specified, use CFLAGS.
5739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5740
5741 # Allow CC to be a program name with arguments.
5742 compiler=$CC
5743
5744
5745 # Check for command to grab the raw symbol name followed by C symbol from nm.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5747 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5748 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751
5752 # These are sane defaults that work on at least a few old systems.
5753 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5754
5755 # Character class describing NM global symbol codes.
5756 symcode='[BCDEGRST]'
5757
5758 # Regexp to match symbols that can be accessed directly from C.
5759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5760
5761 # Define system-specific variables.
5762 case $host_os in
5763 aix*)
5764   symcode='[BCDT]'
5765   ;;
5766 cygwin* | mingw* | pw32* | cegcc*)
5767   symcode='[ABCDGISTW]'
5768   ;;
5769 hpux*)
5770   if test "$host_cpu" = ia64; then
5771     symcode='[ABCDEGRST]'
5772   fi
5773   ;;
5774 irix* | nonstopux*)
5775   symcode='[BCDEGRST]'
5776   ;;
5777 osf*)
5778   symcode='[BCDEGQRST]'
5779   ;;
5780 solaris*)
5781   symcode='[BDRT]'
5782   ;;
5783 sco3.2v5*)
5784   symcode='[DT]'
5785   ;;
5786 sysv4.2uw2*)
5787   symcode='[DT]'
5788   ;;
5789 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5790   symcode='[ABDT]'
5791   ;;
5792 sysv4)
5793   symcode='[DFNSTU]'
5794   ;;
5795 esac
5796
5797 # If we're using GNU nm, then use its standard symbol codes.
5798 case `$NM -V 2>&1` in
5799 *GNU* | *'with BFD'*)
5800   symcode='[ABCDGIRSTW]' ;;
5801 esac
5802
5803 # Transform an extracted symbol line into a proper C declaration.
5804 # Some systems (esp. on ia64) link data and code symbols differently,
5805 # so use this general approach.
5806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5807
5808 # Transform an extracted symbol line into symbol name and symbol address
5809 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5810 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5811
5812 # Handle CRLF in mingw tool chain
5813 opt_cr=
5814 case $build_os in
5815 mingw*)
5816   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5817   ;;
5818 esac
5819
5820 # Try without a prefix underscore, then with it.
5821 for ac_symprfx in "" "_"; do
5822
5823   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5824   symxfrm="\\1 $ac_symprfx\\2 \\2"
5825
5826   # Write the raw and C identifiers.
5827   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5828     # Fake it for dumpbin and say T for any non-static function
5829     # and D for any global variable.
5830     # Also find C++ and __fastcall symbols from MSVC++,
5831     # which start with @ or ?.
5832     lt_cv_sys_global_symbol_pipe="$AWK '"\
5833 "     {last_section=section; section=\$ 3};"\
5834 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5835 "     \$ 0!~/External *\|/{next};"\
5836 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5837 "     {if(hide[section]) next};"\
5838 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5839 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5840 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5841 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5842 "     ' prfx=^$ac_symprfx"
5843   else
5844     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5845   fi
5846   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5847
5848   # Check to see that the pipe works correctly.
5849   pipe_works=no
5850
5851   rm -f conftest*
5852   cat > conftest.$ac_ext <<_LT_EOF
5853 #ifdef __cplusplus
5854 extern "C" {
5855 #endif
5856 char nm_test_var;
5857 void nm_test_func(void);
5858 void nm_test_func(void){}
5859 #ifdef __cplusplus
5860 }
5861 #endif
5862 int main(){nm_test_var='a';nm_test_func();return(0);}
5863 _LT_EOF
5864
5865   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5866   (eval $ac_compile) 2>&5
5867   ac_status=$?
5868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5869   test $ac_status = 0; }; then
5870     # Now try to grab the symbols.
5871     nlist=conftest.nm
5872     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5873   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5874   ac_status=$?
5875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876   test $ac_status = 0; } && test -s "$nlist"; then
5877       # Try sorting and uniquifying the output.
5878       if sort "$nlist" | uniq > "$nlist"T; then
5879         mv -f "$nlist"T "$nlist"
5880       else
5881         rm -f "$nlist"T
5882       fi
5883
5884       # Make sure that we snagged all the symbols we need.
5885       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5886         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5887           cat <<_LT_EOF > conftest.$ac_ext
5888 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5889 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5890 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5891    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5892 # define LT_DLSYM_CONST
5893 #elif defined(__osf__)
5894 /* This system does not cope well with relocations in const data.  */
5895 # define LT_DLSYM_CONST
5896 #else
5897 # define LT_DLSYM_CONST const
5898 #endif
5899
5900 #ifdef __cplusplus
5901 extern "C" {
5902 #endif
5903
5904 _LT_EOF
5905           # Now generate the symbol file.
5906           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5907
5908           cat <<_LT_EOF >> conftest.$ac_ext
5909
5910 /* The mapping between symbol names and symbols.  */
5911 LT_DLSYM_CONST struct {
5912   const char *name;
5913   void       *address;
5914 }
5915 lt__PROGRAM__LTX_preloaded_symbols[] =
5916 {
5917   { "@PROGRAM@", (void *) 0 },
5918 _LT_EOF
5919           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5920           cat <<\_LT_EOF >> conftest.$ac_ext
5921   {0, (void *) 0}
5922 };
5923
5924 /* This works around a problem in FreeBSD linker */
5925 #ifdef FREEBSD_WORKAROUND
5926 static const void *lt_preloaded_setup() {
5927   return lt__PROGRAM__LTX_preloaded_symbols;
5928 }
5929 #endif
5930
5931 #ifdef __cplusplus
5932 }
5933 #endif
5934 _LT_EOF
5935           # Now try linking the two files.
5936           mv conftest.$ac_objext conftstm.$ac_objext
5937           lt_globsym_save_LIBS=$LIBS
5938           lt_globsym_save_CFLAGS=$CFLAGS
5939           LIBS="conftstm.$ac_objext"
5940           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5941           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5942   (eval $ac_link) 2>&5
5943   ac_status=$?
5944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5946             pipe_works=yes
5947           fi
5948           LIBS=$lt_globsym_save_LIBS
5949           CFLAGS=$lt_globsym_save_CFLAGS
5950         else
5951           echo "cannot find nm_test_func in $nlist" >&5
5952         fi
5953       else
5954         echo "cannot find nm_test_var in $nlist" >&5
5955       fi
5956     else
5957       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5958     fi
5959   else
5960     echo "$progname: failed program was:" >&5
5961     cat conftest.$ac_ext >&5
5962   fi
5963   rm -rf conftest* conftst*
5964
5965   # Do not use the global_symbol_pipe unless it works.
5966   if test "$pipe_works" = yes; then
5967     break
5968   else
5969     lt_cv_sys_global_symbol_pipe=
5970   fi
5971 done
5972
5973 fi
5974
5975 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5976   lt_cv_sys_global_symbol_to_cdecl=
5977 fi
5978 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5980 $as_echo "failed" >&6; }
5981 else
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5983 $as_echo "ok" >&6; }
5984 fi
5985
5986 # Response file support.
5987 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5988   nm_file_list_spec='@'
5989 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5990   nm_file_list_spec='@'
5991 fi
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6020 $as_echo_n "checking for sysroot... " >&6; }
6021
6022 # Check whether --with-sysroot was given.
6023 if test "${with_sysroot+set}" = set; then :
6024   withval=$with_sysroot;
6025 else
6026   with_sysroot=no
6027 fi
6028
6029
6030 lt_sysroot=
6031 case ${with_sysroot} in #(
6032  yes)
6033    if test "$GCC" = yes; then
6034      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6035    fi
6036    ;; #(
6037  /*)
6038    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6039    ;; #(
6040  no|'')
6041    ;; #(
6042  *)
6043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6044 $as_echo "${with_sysroot}" >&6; }
6045    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6046    ;;
6047 esac
6048
6049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6050 $as_echo "${lt_sysroot:-no}" >&6; }
6051
6052
6053
6054
6055
6056 # Check whether --enable-libtool-lock was given.
6057 if test "${enable_libtool_lock+set}" = set; then :
6058   enableval=$enable_libtool_lock;
6059 fi
6060
6061 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6062
6063 # Some flags need to be propagated to the compiler or linker for good
6064 # libtool support.
6065 case $host in
6066 ia64-*-hpux*)
6067   # Find out which ABI we are using.
6068   echo 'int i;' > conftest.$ac_ext
6069   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6070   (eval $ac_compile) 2>&5
6071   ac_status=$?
6072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073   test $ac_status = 0; }; then
6074     case `/usr/bin/file conftest.$ac_objext` in
6075       *ELF-32*)
6076         HPUX_IA64_MODE="32"
6077         ;;
6078       *ELF-64*)
6079         HPUX_IA64_MODE="64"
6080         ;;
6081     esac
6082   fi
6083   rm -rf conftest*
6084   ;;
6085 *-*-irix6*)
6086   # Find out which ABI we are using.
6087   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6088   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6089   (eval $ac_compile) 2>&5
6090   ac_status=$?
6091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6092   test $ac_status = 0; }; then
6093     if test "$lt_cv_prog_gnu_ld" = yes; then
6094       case `/usr/bin/file conftest.$ac_objext` in
6095         *32-bit*)
6096           LD="${LD-ld} -melf32bsmip"
6097           ;;
6098         *N32*)
6099           LD="${LD-ld} -melf32bmipn32"
6100           ;;
6101         *64-bit*)
6102           LD="${LD-ld} -melf64bmip"
6103         ;;
6104       esac
6105     else
6106       case `/usr/bin/file conftest.$ac_objext` in
6107         *32-bit*)
6108           LD="${LD-ld} -32"
6109           ;;
6110         *N32*)
6111           LD="${LD-ld} -n32"
6112           ;;
6113         *64-bit*)
6114           LD="${LD-ld} -64"
6115           ;;
6116       esac
6117     fi
6118   fi
6119   rm -rf conftest*
6120   ;;
6121
6122 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6123 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6124   # Find out which ABI we are using.
6125   echo 'int i;' > conftest.$ac_ext
6126   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6127   (eval $ac_compile) 2>&5
6128   ac_status=$?
6129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130   test $ac_status = 0; }; then
6131     case `/usr/bin/file conftest.o` in
6132       *32-bit*)
6133         case $host in
6134           x86_64-*kfreebsd*-gnu)
6135             LD="${LD-ld} -m elf_i386_fbsd"
6136             ;;
6137           x86_64-*linux*)
6138             LD="${LD-ld} -m elf_i386"
6139             ;;
6140           ppc64-*linux*|powerpc64-*linux*)
6141             LD="${LD-ld} -m elf32ppclinux"
6142             ;;
6143           s390x-*linux*)
6144             LD="${LD-ld} -m elf_s390"
6145             ;;
6146           sparc64-*linux*)
6147             LD="${LD-ld} -m elf32_sparc"
6148             ;;
6149         esac
6150         ;;
6151       *64-bit*)
6152         case $host in
6153           x86_64-*kfreebsd*-gnu)
6154             LD="${LD-ld} -m elf_x86_64_fbsd"
6155             ;;
6156           x86_64-*linux*)
6157             LD="${LD-ld} -m elf_x86_64"
6158             ;;
6159           ppc*-*linux*|powerpc*-*linux*)
6160             LD="${LD-ld} -m elf64ppc"
6161             ;;
6162           s390*-*linux*|s390*-*tpf*)
6163             LD="${LD-ld} -m elf64_s390"
6164             ;;
6165           sparc*-*linux*)
6166             LD="${LD-ld} -m elf64_sparc"
6167             ;;
6168         esac
6169         ;;
6170     esac
6171   fi
6172   rm -rf conftest*
6173   ;;
6174
6175 *-*-sco3.2v5*)
6176   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6177   SAVE_CFLAGS="$CFLAGS"
6178   CFLAGS="$CFLAGS -belf"
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6180 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6181 if ${lt_cv_cc_needs_belf+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   ac_ext=c
6185 ac_cpp='$CPP $CPPFLAGS'
6186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189
6190      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h.  */
6192
6193 int
6194 main ()
6195 {
6196
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_link "$LINENO"; then :
6202   lt_cv_cc_needs_belf=yes
6203 else
6204   lt_cv_cc_needs_belf=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext \
6207     conftest$ac_exeext conftest.$ac_ext
6208      ac_ext=c
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6216 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6217   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6218     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6219     CFLAGS="$SAVE_CFLAGS"
6220   fi
6221   ;;
6222 sparc*-*solaris*)
6223   # Find out which ABI we are using.
6224   echo 'int i;' > conftest.$ac_ext
6225   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6226   (eval $ac_compile) 2>&5
6227   ac_status=$?
6228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6229   test $ac_status = 0; }; then
6230     case `/usr/bin/file conftest.o` in
6231     *64-bit*)
6232       case $lt_cv_prog_gnu_ld in
6233       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6234       *)
6235         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6236           LD="${LD-ld} -64"
6237         fi
6238         ;;
6239       esac
6240       ;;
6241     esac
6242   fi
6243   rm -rf conftest*
6244   ;;
6245 esac
6246
6247 need_locks="$enable_libtool_lock"
6248
6249 if test -n "$ac_tool_prefix"; then
6250   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}mt; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if test -n "$MANIFEST_TOOL"; then
6258   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265     for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272   done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6278 if test -n "$MANIFEST_TOOL"; then
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6280 $as_echo "$MANIFEST_TOOL" >&6; }
6281 else
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 fi
6288 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6289   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6290   # Extract the first word of "mt", so it can be a program name with args.
6291 set dummy mt; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$ac_ct_MANIFEST_TOOL"; then
6298   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6318 if test -n "$ac_ct_MANIFEST_TOOL"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6320 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6327     MANIFEST_TOOL=":"
6328   else
6329     case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6336   fi
6337 else
6338   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6339 fi
6340
6341 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6343 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6344 if ${lt_cv_path_mainfest_tool+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   lt_cv_path_mainfest_tool=no
6348   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6349   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6350   cat conftest.err >&5
6351   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6352     lt_cv_path_mainfest_tool=yes
6353   fi
6354   rm -f conftest*
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6357 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6358 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6359   MANIFEST_TOOL=:
6360 fi
6361
6362
6363
6364
6365
6366
6367   case $host_os in
6368     rhapsody* | darwin*)
6369     if test -n "$ac_tool_prefix"; then
6370   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6371 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   if test -n "$DSYMUTIL"; then
6378   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385     for ac_exec_ext in '' $ac_executable_extensions; do
6386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392   done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6398 if test -n "$DSYMUTIL"; then
6399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6400 $as_echo "$DSYMUTIL" >&6; }
6401 else
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405
6406
6407 fi
6408 if test -z "$ac_cv_prog_DSYMUTIL"; then
6409   ac_ct_DSYMUTIL=$DSYMUTIL
6410   # Extract the first word of "dsymutil", so it can be a program name with args.
6411 set dummy dsymutil; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   if test -n "$ac_ct_DSYMUTIL"; then
6418   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425     for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432   done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6438 if test -n "$ac_ct_DSYMUTIL"; then
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6440 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6441 else
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6444 fi
6445
6446   if test "x$ac_ct_DSYMUTIL" = x; then
6447     DSYMUTIL=":"
6448   else
6449     case $cross_compiling:$ac_tool_warned in
6450 yes:)
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455     DSYMUTIL=$ac_ct_DSYMUTIL
6456   fi
6457 else
6458   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6459 fi
6460
6461     if test -n "$ac_tool_prefix"; then
6462   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6463 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_NMEDIT+:} false; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   if test -n "$NMEDIT"; then
6470   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477     for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484   done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 NMEDIT=$ac_cv_prog_NMEDIT
6490 if test -n "$NMEDIT"; then
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6492 $as_echo "$NMEDIT" >&6; }
6493 else
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498
6499 fi
6500 if test -z "$ac_cv_prog_NMEDIT"; then
6501   ac_ct_NMEDIT=$NMEDIT
6502   # Extract the first word of "nmedit", so it can be a program name with args.
6503 set dummy nmedit; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$ac_ct_NMEDIT"; then
6510   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6530 if test -n "$ac_ct_NMEDIT"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6532 $as_echo "$ac_ct_NMEDIT" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538   if test "x$ac_ct_NMEDIT" = x; then
6539     NMEDIT=":"
6540   else
6541     case $cross_compiling:$ac_tool_warned in
6542 yes:)
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545 ac_tool_warned=yes ;;
6546 esac
6547     NMEDIT=$ac_ct_NMEDIT
6548   fi
6549 else
6550   NMEDIT="$ac_cv_prog_NMEDIT"
6551 fi
6552
6553     if test -n "$ac_tool_prefix"; then
6554   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_LIPO+:} false; then :
6559   $as_echo_n "(cached) " >&6
6560 else
6561   if test -n "$LIPO"; then
6562   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567   IFS=$as_save_IFS
6568   test -z "$as_dir" && as_dir=.
6569     for ac_exec_ext in '' $ac_executable_extensions; do
6570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573     break 2
6574   fi
6575 done
6576   done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 LIPO=$ac_cv_prog_LIPO
6582 if test -n "$LIPO"; then
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6584 $as_echo "$LIPO" >&6; }
6585 else
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590
6591 fi
6592 if test -z "$ac_cv_prog_LIPO"; then
6593   ac_ct_LIPO=$LIPO
6594   # Extract the first word of "lipo", so it can be a program name with args.
6595 set dummy lipo; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   if test -n "$ac_ct_LIPO"; then
6602   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609     for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_prog_ac_ct_LIPO="lipo"
6612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616   done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6622 if test -n "$ac_ct_LIPO"; then
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6624 $as_echo "$ac_ct_LIPO" >&6; }
6625 else
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630   if test "x$ac_ct_LIPO" = x; then
6631     LIPO=":"
6632   else
6633     case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639     LIPO=$ac_ct_LIPO
6640   fi
6641 else
6642   LIPO="$ac_cv_prog_LIPO"
6643 fi
6644
6645     if test -n "$ac_tool_prefix"; then
6646   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}otool; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_prog_OTOOL+:} false; then :
6651   $as_echo_n "(cached) " >&6
6652 else
6653   if test -n "$OTOOL"; then
6654   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659   IFS=$as_save_IFS
6660   test -z "$as_dir" && as_dir=.
6661     for ac_exec_ext in '' $ac_executable_extensions; do
6662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665     break 2
6666   fi
6667 done
6668   done
6669 IFS=$as_save_IFS
6670
6671 fi
6672 fi
6673 OTOOL=$ac_cv_prog_OTOOL
6674 if test -n "$OTOOL"; then
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6676 $as_echo "$OTOOL" >&6; }
6677 else
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6680 fi
6681
6682
6683 fi
6684 if test -z "$ac_cv_prog_OTOOL"; then
6685   ac_ct_OTOOL=$OTOOL
6686   # Extract the first word of "otool", so it can be a program name with args.
6687 set dummy otool; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   if test -n "$ac_ct_OTOOL"; then
6694   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701     for ac_exec_ext in '' $ac_executable_extensions; do
6702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703     ac_cv_prog_ac_ct_OTOOL="otool"
6704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708   done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6714 if test -n "$ac_ct_OTOOL"; then
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6716 $as_echo "$ac_ct_OTOOL" >&6; }
6717 else
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722   if test "x$ac_ct_OTOOL" = x; then
6723     OTOOL=":"
6724   else
6725     case $cross_compiling:$ac_tool_warned in
6726 yes:)
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729 ac_tool_warned=yes ;;
6730 esac
6731     OTOOL=$ac_ct_OTOOL
6732   fi
6733 else
6734   OTOOL="$ac_cv_prog_OTOOL"
6735 fi
6736
6737     if test -n "$ac_tool_prefix"; then
6738   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6739 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_OTOOL64+:} false; then :
6743   $as_echo_n "(cached) " >&6
6744 else
6745   if test -n "$OTOOL64"; then
6746   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751   IFS=$as_save_IFS
6752   test -z "$as_dir" && as_dir=.
6753     for ac_exec_ext in '' $ac_executable_extensions; do
6754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757     break 2
6758   fi
6759 done
6760   done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 OTOOL64=$ac_cv_prog_OTOOL64
6766 if test -n "$OTOOL64"; then
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6768 $as_echo "$OTOOL64" >&6; }
6769 else
6770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774
6775 fi
6776 if test -z "$ac_cv_prog_OTOOL64"; then
6777   ac_ct_OTOOL64=$OTOOL64
6778   # Extract the first word of "otool64", so it can be a program name with args.
6779 set dummy otool64; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   if test -n "$ac_ct_OTOOL64"; then
6786   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793     for ac_exec_ext in '' $ac_executable_extensions; do
6794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795     ac_cv_prog_ac_ct_OTOOL64="otool64"
6796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800   done
6801 IFS=$as_save_IFS
6802
6803 fi
6804 fi
6805 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6806 if test -n "$ac_ct_OTOOL64"; then
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6808 $as_echo "$ac_ct_OTOOL64" >&6; }
6809 else
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 fi
6813
6814   if test "x$ac_ct_OTOOL64" = x; then
6815     OTOOL64=":"
6816   else
6817     case $cross_compiling:$ac_tool_warned in
6818 yes:)
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6821 ac_tool_warned=yes ;;
6822 esac
6823     OTOOL64=$ac_ct_OTOOL64
6824   fi
6825 else
6826   OTOOL64="$ac_cv_prog_OTOOL64"
6827 fi
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6856 $as_echo_n "checking for -single_module linker flag... " >&6; }
6857 if ${lt_cv_apple_cc_single_mod+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   lt_cv_apple_cc_single_mod=no
6861       if test -z "${LT_MULTI_MODULE}"; then
6862         # By default we will add the -single_module flag. You can override
6863         # by either setting the environment variable LT_MULTI_MODULE
6864         # non-empty at configure time, or by adding -multi_module to the
6865         # link flags.
6866         rm -rf libconftest.dylib*
6867         echo "int foo(void){return 1;}" > conftest.c
6868         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6869 -dynamiclib -Wl,-single_module conftest.c" >&5
6870         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6871           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6872         _lt_result=$?
6873         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6874           lt_cv_apple_cc_single_mod=yes
6875         else
6876           cat conftest.err >&5
6877         fi
6878         rm -rf libconftest.dylib*
6879         rm -f conftest.*
6880       fi
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6883 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6885 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6886 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   lt_cv_ld_exported_symbols_list=no
6890       save_LDFLAGS=$LDFLAGS
6891       echo "_main" > conftest.sym
6892       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h.  */
6895
6896 int
6897 main ()
6898 {
6899
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905   lt_cv_ld_exported_symbols_list=yes
6906 else
6907   lt_cv_ld_exported_symbols_list=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext \
6910     conftest$ac_exeext conftest.$ac_ext
6911         LDFLAGS="$save_LDFLAGS"
6912
6913 fi
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6915 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6917 $as_echo_n "checking for -force_load linker flag... " >&6; }
6918 if ${lt_cv_ld_force_load+:} false; then :
6919   $as_echo_n "(cached) " >&6
6920 else
6921   lt_cv_ld_force_load=no
6922       cat > conftest.c << _LT_EOF
6923 int forced_loaded() { return 2;}
6924 _LT_EOF
6925       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6926       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6927       echo "$AR cru libconftest.a conftest.o" >&5
6928       $AR cru libconftest.a conftest.o 2>&5
6929       echo "$RANLIB libconftest.a" >&5
6930       $RANLIB libconftest.a 2>&5
6931       cat > conftest.c << _LT_EOF
6932 int main() { return 0;}
6933 _LT_EOF
6934       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6935       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6936       _lt_result=$?
6937       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6938         lt_cv_ld_force_load=yes
6939       else
6940         cat conftest.err >&5
6941       fi
6942         rm -f conftest.err libconftest.a conftest conftest.c
6943         rm -rf conftest.dSYM
6944
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6947 $as_echo "$lt_cv_ld_force_load" >&6; }
6948     case $host_os in
6949     rhapsody* | darwin1.[012])
6950       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6951     darwin1.*)
6952       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6953     darwin*) # darwin 5.x on
6954       # if running on 10.5 or later, the deployment target defaults
6955       # to the OS version, if on x86, and 10.4, the deployment
6956       # target defaults to 10.4. Don't you love it?
6957       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6958         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6959           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6960         10.[012]*)
6961           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6962         10.*)
6963           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6964       esac
6965     ;;
6966   esac
6967     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6968       _lt_dar_single_mod='$single_module'
6969     fi
6970     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6971       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6972     else
6973       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6974     fi
6975     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6976       _lt_dsymutil='~$DSYMUTIL $lib || :'
6977     else
6978       _lt_dsymutil=
6979     fi
6980     ;;
6981   esac
6982
6983 ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6989 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6990 # On Suns, sometimes $CPP names a directory.
6991 if test -n "$CPP" && test -d "$CPP"; then
6992   CPP=
6993 fi
6994 if test -z "$CPP"; then
6995   if ${ac_cv_prog_CPP+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998       # Double quotes because CPP needs to be expanded
6999     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7000     do
7001       ac_preproc_ok=false
7002 for ac_c_preproc_warn_flag in '' yes
7003 do
7004   # Use a header file that comes with gcc, so configuring glibc
7005   # with a fresh cross-compiler works.
7006   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7007   # <limits.h> exists even on freestanding compilers.
7008   # On the NeXT, cc -E runs the code through the compiler's parser,
7009   # not just through cpp. "Syntax error" is here to catch this case.
7010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h.  */
7012 #ifdef __STDC__
7013 # include <limits.h>
7014 #else
7015 # include <assert.h>
7016 #endif
7017                      Syntax error
7018 _ACEOF
7019 if ac_fn_c_try_cpp "$LINENO"; then :
7020
7021 else
7022   # Broken: fails on valid input.
7023 continue
7024 fi
7025 rm -f conftest.err conftest.i conftest.$ac_ext
7026
7027   # OK, works on sane cases.  Now check whether nonexistent headers
7028   # can be detected and how.
7029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h.  */
7031 #include <ac_nonexistent.h>
7032 _ACEOF
7033 if ac_fn_c_try_cpp "$LINENO"; then :
7034   # Broken: success on invalid input.
7035 continue
7036 else
7037   # Passes both tests.
7038 ac_preproc_ok=:
7039 break
7040 fi
7041 rm -f conftest.err conftest.i conftest.$ac_ext
7042
7043 done
7044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7045 rm -f conftest.i conftest.err conftest.$ac_ext
7046 if $ac_preproc_ok; then :
7047   break
7048 fi
7049
7050     done
7051     ac_cv_prog_CPP=$CPP
7052
7053 fi
7054   CPP=$ac_cv_prog_CPP
7055 else
7056   ac_cv_prog_CPP=$CPP
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7059 $as_echo "$CPP" >&6; }
7060 ac_preproc_ok=false
7061 for ac_c_preproc_warn_flag in '' yes
7062 do
7063   # Use a header file that comes with gcc, so configuring glibc
7064   # with a fresh cross-compiler works.
7065   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066   # <limits.h> exists even on freestanding compilers.
7067   # On the NeXT, cc -E runs the code through the compiler's parser,
7068   # not just through cpp. "Syntax error" is here to catch this case.
7069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h.  */
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076                      Syntax error
7077 _ACEOF
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7079
7080 else
7081   # Broken: fails on valid input.
7082 continue
7083 fi
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7085
7086   # OK, works on sane cases.  Now check whether nonexistent headers
7087   # can be detected and how.
7088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 #include <ac_nonexistent.h>
7091 _ACEOF
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7093   # Broken: success on invalid input.
7094 continue
7095 else
7096   # Passes both tests.
7097 ac_preproc_ok=:
7098 break
7099 fi
7100 rm -f conftest.err conftest.i conftest.$ac_ext
7101
7102 done
7103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7104 rm -f conftest.i conftest.err conftest.$ac_ext
7105 if $ac_preproc_ok; then :
7106
7107 else
7108   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7110 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7111 See \`config.log' for more details" "$LINENO" 5; }
7112 fi
7113
7114 ac_ext=c
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7122 $as_echo_n "checking for ANSI C header files... " >&6; }
7123 if ${ac_cv_header_stdc+:} false; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h.  */
7128 #include <stdlib.h>
7129 #include <stdarg.h>
7130 #include <string.h>
7131 #include <float.h>
7132
7133 int
7134 main ()
7135 {
7136
7137   ;
7138   return 0;
7139 }
7140 _ACEOF
7141 if ac_fn_c_try_compile "$LINENO"; then :
7142   ac_cv_header_stdc=yes
7143 else
7144   ac_cv_header_stdc=no
7145 fi
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147
7148 if test $ac_cv_header_stdc = yes; then
7149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h.  */
7152 #include <string.h>
7153
7154 _ACEOF
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156   $EGREP "memchr" >/dev/null 2>&1; then :
7157
7158 else
7159   ac_cv_header_stdc=no
7160 fi
7161 rm -f conftest*
7162
7163 fi
7164
7165 if test $ac_cv_header_stdc = yes; then
7166   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h.  */
7169 #include <stdlib.h>
7170
7171 _ACEOF
7172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7173   $EGREP "free" >/dev/null 2>&1; then :
7174
7175 else
7176   ac_cv_header_stdc=no
7177 fi
7178 rm -f conftest*
7179
7180 fi
7181
7182 if test $ac_cv_header_stdc = yes; then
7183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7184   if test "$cross_compiling" = yes; then :
7185   :
7186 else
7187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h.  */
7189 #include <ctype.h>
7190 #include <stdlib.h>
7191 #if ((' ' & 0x0FF) == 0x020)
7192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7194 #else
7195 # define ISLOWER(c) \
7196                    (('a' <= (c) && (c) <= 'i') \
7197                      || ('j' <= (c) && (c) <= 'r') \
7198                      || ('s' <= (c) && (c) <= 'z'))
7199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7200 #endif
7201
7202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7203 int
7204 main ()
7205 {
7206   int i;
7207   for (i = 0; i < 256; i++)
7208     if (XOR (islower (i), ISLOWER (i))
7209         || toupper (i) != TOUPPER (i))
7210       return 2;
7211   return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_run "$LINENO"; then :
7215
7216 else
7217   ac_cv_header_stdc=no
7218 fi
7219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7220   conftest.$ac_objext conftest.beam conftest.$ac_ext
7221 fi
7222
7223 fi
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7226 $as_echo "$ac_cv_header_stdc" >&6; }
7227 if test $ac_cv_header_stdc = yes; then
7228
7229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7230
7231 fi
7232
7233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7235                   inttypes.h stdint.h unistd.h
7236 do :
7237   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7239 "
7240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7241   cat >>confdefs.h <<_ACEOF
7242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7243 _ACEOF
7244
7245 fi
7246
7247 done
7248
7249
7250 for ac_header in dlfcn.h
7251 do :
7252   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7253 "
7254 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7255   cat >>confdefs.h <<_ACEOF
7256 #define HAVE_DLFCN_H 1
7257 _ACEOF
7258
7259 fi
7260
7261 done
7262
7263
7264
7265
7266
7267 # Set options
7268
7269
7270
7271         enable_dlopen=no
7272
7273
7274   enable_win32_dll=no
7275
7276
7277             # Check whether --enable-shared was given.
7278 if test "${enable_shared+set}" = set; then :
7279   enableval=$enable_shared; p=${PACKAGE-default}
7280     case $enableval in
7281     yes) enable_shared=yes ;;
7282     no) enable_shared=no ;;
7283     *)
7284       enable_shared=no
7285       # Look at the argument we got.  We use all the common list separators.
7286       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7287       for pkg in $enableval; do
7288         IFS="$lt_save_ifs"
7289         if test "X$pkg" = "X$p"; then
7290           enable_shared=yes
7291         fi
7292       done
7293       IFS="$lt_save_ifs"
7294       ;;
7295     esac
7296 else
7297   enable_shared=yes
7298 fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308   # Check whether --enable-static was given.
7309 if test "${enable_static+set}" = set; then :
7310   enableval=$enable_static; p=${PACKAGE-default}
7311     case $enableval in
7312     yes) enable_static=yes ;;
7313     no) enable_static=no ;;
7314     *)
7315      enable_static=no
7316       # Look at the argument we got.  We use all the common list separators.
7317       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7318       for pkg in $enableval; do
7319         IFS="$lt_save_ifs"
7320         if test "X$pkg" = "X$p"; then
7321           enable_static=yes
7322         fi
7323       done
7324       IFS="$lt_save_ifs"
7325       ;;
7326     esac
7327 else
7328   enable_static=yes
7329 fi
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340 # Check whether --with-pic was given.
7341 if test "${with_pic+set}" = set; then :
7342   withval=$with_pic; pic_mode="$withval"
7343 else
7344   pic_mode=default
7345 fi
7346
7347
7348 test -z "$pic_mode" && pic_mode=default
7349
7350
7351
7352
7353
7354
7355
7356   # Check whether --enable-fast-install was given.
7357 if test "${enable_fast_install+set}" = set; then :
7358   enableval=$enable_fast_install; p=${PACKAGE-default}
7359     case $enableval in
7360     yes) enable_fast_install=yes ;;
7361     no) enable_fast_install=no ;;
7362     *)
7363       enable_fast_install=no
7364       # Look at the argument we got.  We use all the common list separators.
7365       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7366       for pkg in $enableval; do
7367         IFS="$lt_save_ifs"
7368         if test "X$pkg" = "X$p"; then
7369           enable_fast_install=yes
7370         fi
7371       done
7372       IFS="$lt_save_ifs"
7373       ;;
7374     esac
7375 else
7376   enable_fast_install=yes
7377 fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389 # This can be used to rebuild libtool when needed
7390 LIBTOOL_DEPS="$ltmain"
7391
7392 # Always use our own libtool.
7393 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420 test -z "$LN_S" && LN_S="ln -s"
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 if test -n "${ZSH_VERSION+set}" ; then
7436    setopt NO_GLOB_SUBST
7437 fi
7438
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7440 $as_echo_n "checking for objdir... " >&6; }
7441 if ${lt_cv_objdir+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   rm -f .libs 2>/dev/null
7445 mkdir .libs 2>/dev/null
7446 if test -d .libs; then
7447   lt_cv_objdir=.libs
7448 else
7449   # MS-DOS does not allow filenames that begin with a dot.
7450   lt_cv_objdir=_libs
7451 fi
7452 rmdir .libs 2>/dev/null
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7455 $as_echo "$lt_cv_objdir" >&6; }
7456 objdir=$lt_cv_objdir
7457
7458
7459
7460
7461
7462 cat >>confdefs.h <<_ACEOF
7463 #define LT_OBJDIR "$lt_cv_objdir/"
7464 _ACEOF
7465
7466
7467
7468
7469 case $host_os in
7470 aix3*)
7471   # AIX sometimes has problems with the GCC collect2 program.  For some
7472   # reason, if we set the COLLECT_NAMES environment variable, the problems
7473   # vanish in a puff of smoke.
7474   if test "X${COLLECT_NAMES+set}" != Xset; then
7475     COLLECT_NAMES=
7476     export COLLECT_NAMES
7477   fi
7478   ;;
7479 esac
7480
7481 # Global variables:
7482 ofile=libtool
7483 can_build_shared=yes
7484
7485 # All known linkers require a `.a' archive for static linking (except MSVC,
7486 # which needs '.lib').
7487 libext=a
7488
7489 with_gnu_ld="$lt_cv_prog_gnu_ld"
7490
7491 old_CC="$CC"
7492 old_CFLAGS="$CFLAGS"
7493
7494 # Set sane defaults for various variables
7495 test -z "$CC" && CC=cc
7496 test -z "$LTCC" && LTCC=$CC
7497 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7498 test -z "$LD" && LD=ld
7499 test -z "$ac_objext" && ac_objext=o
7500
7501 for cc_temp in $compiler""; do
7502   case $cc_temp in
7503     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7504     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7505     \-*) ;;
7506     *) break;;
7507   esac
7508 done
7509 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7510
7511
7512 # Only perform the check for file, if the check method requires it
7513 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7514 case $deplibs_check_method in
7515 file_magic*)
7516   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7518 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7519 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   case $MAGIC_CMD in
7523 [\\/*] |  ?:[\\/]*)
7524   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7525   ;;
7526 *)
7527   lt_save_MAGIC_CMD="$MAGIC_CMD"
7528   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7529   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7530   for ac_dir in $ac_dummy; do
7531     IFS="$lt_save_ifs"
7532     test -z "$ac_dir" && ac_dir=.
7533     if test -f $ac_dir/${ac_tool_prefix}file; then
7534       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7535       if test -n "$file_magic_test_file"; then
7536         case $deplibs_check_method in
7537         "file_magic "*)
7538           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7539           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7541             $EGREP "$file_magic_regex" > /dev/null; then
7542             :
7543           else
7544             cat <<_LT_EOF 1>&2
7545
7546 *** Warning: the command libtool uses to detect shared libraries,
7547 *** $file_magic_cmd, produces output that libtool cannot recognize.
7548 *** The result is that libtool may fail to recognize shared libraries
7549 *** as such.  This will affect the creation of libtool libraries that
7550 *** depend on shared libraries, but programs linked with such libtool
7551 *** libraries will work regardless of this problem.  Nevertheless, you
7552 *** may want to report the problem to your system manager and/or to
7553 *** bug-libtool@gnu.org
7554
7555 _LT_EOF
7556           fi ;;
7557         esac
7558       fi
7559       break
7560     fi
7561   done
7562   IFS="$lt_save_ifs"
7563   MAGIC_CMD="$lt_save_MAGIC_CMD"
7564   ;;
7565 esac
7566 fi
7567
7568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569 if test -n "$MAGIC_CMD"; then
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7571 $as_echo "$MAGIC_CMD" >&6; }
7572 else
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578
7579
7580
7581 if test -z "$lt_cv_path_MAGIC_CMD"; then
7582   if test -n "$ac_tool_prefix"; then
7583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7584 $as_echo_n "checking for file... " >&6; }
7585 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588   case $MAGIC_CMD in
7589 [\\/*] |  ?:[\\/]*)
7590   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7591   ;;
7592 *)
7593   lt_save_MAGIC_CMD="$MAGIC_CMD"
7594   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7595   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7596   for ac_dir in $ac_dummy; do
7597     IFS="$lt_save_ifs"
7598     test -z "$ac_dir" && ac_dir=.
7599     if test -f $ac_dir/file; then
7600       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7601       if test -n "$file_magic_test_file"; then
7602         case $deplibs_check_method in
7603         "file_magic "*)
7604           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7605           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7606           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7607             $EGREP "$file_magic_regex" > /dev/null; then
7608             :
7609           else
7610             cat <<_LT_EOF 1>&2
7611
7612 *** Warning: the command libtool uses to detect shared libraries,
7613 *** $file_magic_cmd, produces output that libtool cannot recognize.
7614 *** The result is that libtool may fail to recognize shared libraries
7615 *** as such.  This will affect the creation of libtool libraries that
7616 *** depend on shared libraries, but programs linked with such libtool
7617 *** libraries will work regardless of this problem.  Nevertheless, you
7618 *** may want to report the problem to your system manager and/or to
7619 *** bug-libtool@gnu.org
7620
7621 _LT_EOF
7622           fi ;;
7623         esac
7624       fi
7625       break
7626     fi
7627   done
7628   IFS="$lt_save_ifs"
7629   MAGIC_CMD="$lt_save_MAGIC_CMD"
7630   ;;
7631 esac
7632 fi
7633
7634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7635 if test -n "$MAGIC_CMD"; then
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7637 $as_echo "$MAGIC_CMD" >&6; }
7638 else
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641 fi
7642
7643
7644   else
7645     MAGIC_CMD=:
7646   fi
7647 fi
7648
7649   fi
7650   ;;
7651 esac
7652
7653 # Use C for the default configuration in the libtool script
7654
7655 lt_save_CC="$CC"
7656 ac_ext=c
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661
7662
7663 # Source file extension for C test sources.
7664 ac_ext=c
7665
7666 # Object file extension for compiled C test sources.
7667 objext=o
7668 objext=$objext
7669
7670 # Code to be used in simple compile tests
7671 lt_simple_compile_test_code="int some_variable = 0;"
7672
7673 # Code to be used in simple link tests
7674 lt_simple_link_test_code='int main(){return(0);}'
7675
7676
7677
7678
7679
7680
7681
7682 # If no C compiler was specified, use CC.
7683 LTCC=${LTCC-"$CC"}
7684
7685 # If no C compiler flags were specified, use CFLAGS.
7686 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7687
7688 # Allow CC to be a program name with arguments.
7689 compiler=$CC
7690
7691 # Save the default compiler, since it gets overwritten when the other
7692 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7693 compiler_DEFAULT=$CC
7694
7695 # save warnings/boilerplate of simple test code
7696 ac_outfile=conftest.$ac_objext
7697 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7698 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7699 _lt_compiler_boilerplate=`cat conftest.err`
7700 $RM conftest*
7701
7702 ac_outfile=conftest.$ac_objext
7703 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7704 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7705 _lt_linker_boilerplate=`cat conftest.err`
7706 $RM -r conftest*
7707
7708
7709 if test -n "$compiler"; then
7710
7711 lt_prog_compiler_no_builtin_flag=
7712
7713 if test "$GCC" = yes; then
7714   case $cc_basename in
7715   nvcc*)
7716     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7717   *)
7718     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7719   esac
7720
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7722 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7723 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   lt_cv_prog_compiler_rtti_exceptions=no
7727    ac_outfile=conftest.$ac_objext
7728    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7729    lt_compiler_flag="-fno-rtti -fno-exceptions"
7730    # Insert the option either (1) after the last *FLAGS variable, or
7731    # (2) before a word containing "conftest.", or (3) at the end.
7732    # Note that $ac_compile itself does not contain backslashes and begins
7733    # with a dollar sign (not a hyphen), so the echo should work correctly.
7734    # The option is referenced via a variable to avoid confusing sed.
7735    lt_compile=`echo "$ac_compile" | $SED \
7736    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7738    -e 's:$: $lt_compiler_flag:'`
7739    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7740    (eval "$lt_compile" 2>conftest.err)
7741    ac_status=$?
7742    cat conftest.err >&5
7743    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744    if (exit $ac_status) && test -s "$ac_outfile"; then
7745      # The compiler can only warn and ignore the option if not recognized
7746      # So say no if there are warnings other than the usual output.
7747      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7748      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7749      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7750        lt_cv_prog_compiler_rtti_exceptions=yes
7751      fi
7752    fi
7753    $RM conftest*
7754
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7757 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7758
7759 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7760     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7761 else
7762     :
7763 fi
7764
7765 fi
7766
7767
7768
7769
7770
7771
7772   lt_prog_compiler_wl=
7773 lt_prog_compiler_pic=
7774 lt_prog_compiler_static=
7775
7776
7777   if test "$GCC" = yes; then
7778     lt_prog_compiler_wl='-Wl,'
7779     lt_prog_compiler_static='-static'
7780
7781     case $host_os in
7782       aix*)
7783       # All AIX code is PIC.
7784       if test "$host_cpu" = ia64; then
7785         # AIX 5 now supports IA64 processor
7786         lt_prog_compiler_static='-Bstatic'
7787       fi
7788       ;;
7789
7790     amigaos*)
7791       case $host_cpu in
7792       powerpc)
7793             # see comment about AmigaOS4 .so support
7794             lt_prog_compiler_pic='-fPIC'
7795         ;;
7796       m68k)
7797             # FIXME: we need at least 68020 code to build shared libraries, but
7798             # adding the `-m68020' flag to GCC prevents building anything better,
7799             # like `-m68040'.
7800             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7801         ;;
7802       esac
7803       ;;
7804
7805     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7806       # PIC is the default for these OSes.
7807       ;;
7808
7809     mingw* | cygwin* | pw32* | os2* | cegcc*)
7810       # This hack is so that the source file can tell whether it is being
7811       # built for inclusion in a dll (and should export symbols for example).
7812       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7813       # (--disable-auto-import) libraries
7814       lt_prog_compiler_pic='-DDLL_EXPORT'
7815       ;;
7816
7817     darwin* | rhapsody*)
7818       # PIC is the default on this platform
7819       # Common symbols not allowed in MH_DYLIB files
7820       lt_prog_compiler_pic='-fno-common'
7821       ;;
7822
7823     haiku*)
7824       # PIC is the default for Haiku.
7825       # The "-static" flag exists, but is broken.
7826       lt_prog_compiler_static=
7827       ;;
7828
7829     hpux*)
7830       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7831       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7832       # sets the default TLS model and affects inlining.
7833       case $host_cpu in
7834       hppa*64*)
7835         # +Z the default
7836         ;;
7837       *)
7838         lt_prog_compiler_pic='-fPIC'
7839         ;;
7840       esac
7841       ;;
7842
7843     interix[3-9]*)
7844       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7845       # Instead, we relocate shared libraries at runtime.
7846       ;;
7847
7848     msdosdjgpp*)
7849       # Just because we use GCC doesn't mean we suddenly get shared libraries
7850       # on systems that don't support them.
7851       lt_prog_compiler_can_build_shared=no
7852       enable_shared=no
7853       ;;
7854
7855     *nto* | *qnx*)
7856       # QNX uses GNU C++, but need to define -shared option too, otherwise
7857       # it will coredump.
7858       lt_prog_compiler_pic='-fPIC -shared'
7859       ;;
7860
7861     sysv4*MP*)
7862       if test -d /usr/nec; then
7863         lt_prog_compiler_pic=-Kconform_pic
7864       fi
7865       ;;
7866
7867     *)
7868       lt_prog_compiler_pic='-fPIC'
7869       ;;
7870     esac
7871
7872     case $cc_basename in
7873     nvcc*) # Cuda Compiler Driver 2.2
7874       lt_prog_compiler_wl='-Xlinker '
7875       lt_prog_compiler_pic='-Xcompiler -fPIC'
7876       ;;
7877     esac
7878   else
7879     # PORTME Check for flag to pass linker flags through the system compiler.
7880     case $host_os in
7881     aix*)
7882       lt_prog_compiler_wl='-Wl,'
7883       if test "$host_cpu" = ia64; then
7884         # AIX 5 now supports IA64 processor
7885         lt_prog_compiler_static='-Bstatic'
7886       else
7887         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7888       fi
7889       ;;
7890
7891     mingw* | cygwin* | pw32* | os2* | cegcc*)
7892       # This hack is so that the source file can tell whether it is being
7893       # built for inclusion in a dll (and should export symbols for example).
7894       lt_prog_compiler_pic='-DDLL_EXPORT'
7895       ;;
7896
7897     hpux9* | hpux10* | hpux11*)
7898       lt_prog_compiler_wl='-Wl,'
7899       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7900       # not for PA HP-UX.
7901       case $host_cpu in
7902       hppa*64*|ia64*)
7903         # +Z the default
7904         ;;
7905       *)
7906         lt_prog_compiler_pic='+Z'
7907         ;;
7908       esac
7909       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7910       lt_prog_compiler_static='${wl}-a ${wl}archive'
7911       ;;
7912
7913     irix5* | irix6* | nonstopux*)
7914       lt_prog_compiler_wl='-Wl,'
7915       # PIC (with -KPIC) is the default.
7916       lt_prog_compiler_static='-non_shared'
7917       ;;
7918
7919     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7920       case $cc_basename in
7921       # old Intel for x86_64 which still supported -KPIC.
7922       ecc*)
7923         lt_prog_compiler_wl='-Wl,'
7924         lt_prog_compiler_pic='-KPIC'
7925         lt_prog_compiler_static='-static'
7926         ;;
7927       # icc used to be incompatible with GCC.
7928       # ICC 10 doesn't accept -KPIC any more.
7929       icc* | ifort*)
7930         lt_prog_compiler_wl='-Wl,'
7931         lt_prog_compiler_pic='-fPIC'
7932         lt_prog_compiler_static='-static'
7933         ;;
7934       # Lahey Fortran 8.1.
7935       lf95*)
7936         lt_prog_compiler_wl='-Wl,'
7937         lt_prog_compiler_pic='--shared'
7938         lt_prog_compiler_static='--static'
7939         ;;
7940       nagfor*)
7941         # NAG Fortran compiler
7942         lt_prog_compiler_wl='-Wl,-Wl,,'
7943         lt_prog_compiler_pic='-PIC'
7944         lt_prog_compiler_static='-Bstatic'
7945         ;;
7946       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7947         # Portland Group compilers (*not* the Pentium gcc compiler,
7948         # which looks to be a dead project)
7949         lt_prog_compiler_wl='-Wl,'
7950         lt_prog_compiler_pic='-fpic'
7951         lt_prog_compiler_static='-Bstatic'
7952         ;;
7953       ccc*)
7954         lt_prog_compiler_wl='-Wl,'
7955         # All Alpha code is PIC.
7956         lt_prog_compiler_static='-non_shared'
7957         ;;
7958       xl* | bgxl* | bgf* | mpixl*)
7959         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7960         lt_prog_compiler_wl='-Wl,'
7961         lt_prog_compiler_pic='-qpic'
7962         lt_prog_compiler_static='-qstaticlink'
7963         ;;
7964       *)
7965         case `$CC -V 2>&1 | sed 5q` in
7966         *Sun\ F* | *Sun*Fortran*)
7967           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7968           lt_prog_compiler_pic='-KPIC'
7969           lt_prog_compiler_static='-Bstatic'
7970           lt_prog_compiler_wl=''
7971           ;;
7972         *Sun\ C*)
7973           # Sun C 5.9
7974           lt_prog_compiler_pic='-KPIC'
7975           lt_prog_compiler_static='-Bstatic'
7976           lt_prog_compiler_wl='-Wl,'
7977           ;;
7978         esac
7979         ;;
7980       esac
7981       ;;
7982
7983     newsos6)
7984       lt_prog_compiler_pic='-KPIC'
7985       lt_prog_compiler_static='-Bstatic'
7986       ;;
7987
7988     *nto* | *qnx*)
7989       # QNX uses GNU C++, but need to define -shared option too, otherwise
7990       # it will coredump.
7991       lt_prog_compiler_pic='-fPIC -shared'
7992       ;;
7993
7994     osf3* | osf4* | osf5*)
7995       lt_prog_compiler_wl='-Wl,'
7996       # All OSF/1 code is PIC.
7997       lt_prog_compiler_static='-non_shared'
7998       ;;
7999
8000     rdos*)
8001       lt_prog_compiler_static='-non_shared'
8002       ;;
8003
8004     solaris*)
8005       lt_prog_compiler_pic='-KPIC'
8006       lt_prog_compiler_static='-Bstatic'
8007       case $cc_basename in
8008       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8009         lt_prog_compiler_wl='-Qoption ld ';;
8010       *)
8011         lt_prog_compiler_wl='-Wl,';;
8012       esac
8013       ;;
8014
8015     sunos4*)
8016       lt_prog_compiler_wl='-Qoption ld '
8017       lt_prog_compiler_pic='-PIC'
8018       lt_prog_compiler_static='-Bstatic'
8019       ;;
8020
8021     sysv4 | sysv4.2uw2* | sysv4.3*)
8022       lt_prog_compiler_wl='-Wl,'
8023       lt_prog_compiler_pic='-KPIC'
8024       lt_prog_compiler_static='-Bstatic'
8025       ;;
8026
8027     sysv4*MP*)
8028       if test -d /usr/nec ;then
8029         lt_prog_compiler_pic='-Kconform_pic'
8030         lt_prog_compiler_static='-Bstatic'
8031       fi
8032       ;;
8033
8034     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8035       lt_prog_compiler_wl='-Wl,'
8036       lt_prog_compiler_pic='-KPIC'
8037       lt_prog_compiler_static='-Bstatic'
8038       ;;
8039
8040     unicos*)
8041       lt_prog_compiler_wl='-Wl,'
8042       lt_prog_compiler_can_build_shared=no
8043       ;;
8044
8045     uts4*)
8046       lt_prog_compiler_pic='-pic'
8047       lt_prog_compiler_static='-Bstatic'
8048       ;;
8049
8050     *)
8051       lt_prog_compiler_can_build_shared=no
8052       ;;
8053     esac
8054   fi
8055
8056 case $host_os in
8057   # For platforms which do not support PIC, -DPIC is meaningless:
8058   *djgpp*)
8059     lt_prog_compiler_pic=
8060     ;;
8061   *)
8062     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8063     ;;
8064 esac
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8067 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8068 if ${lt_cv_prog_compiler_pic+:} false; then :
8069   $as_echo_n "(cached) " >&6
8070 else
8071   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8074 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8075 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8076
8077 #
8078 # Check to make sure the PIC flag actually works.
8079 #
8080 if test -n "$lt_prog_compiler_pic"; then
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8082 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8083 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   lt_cv_prog_compiler_pic_works=no
8087    ac_outfile=conftest.$ac_objext
8088    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8089    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8090    # Insert the option either (1) after the last *FLAGS variable, or
8091    # (2) before a word containing "conftest.", or (3) at the end.
8092    # Note that $ac_compile itself does not contain backslashes and begins
8093    # with a dollar sign (not a hyphen), so the echo should work correctly.
8094    # The option is referenced via a variable to avoid confusing sed.
8095    lt_compile=`echo "$ac_compile" | $SED \
8096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098    -e 's:$: $lt_compiler_flag:'`
8099    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8100    (eval "$lt_compile" 2>conftest.err)
8101    ac_status=$?
8102    cat conftest.err >&5
8103    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104    if (exit $ac_status) && test -s "$ac_outfile"; then
8105      # The compiler can only warn and ignore the option if not recognized
8106      # So say no if there are warnings other than the usual output.
8107      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8108      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8110        lt_cv_prog_compiler_pic_works=yes
8111      fi
8112    fi
8113    $RM conftest*
8114
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8117 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8118
8119 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8120     case $lt_prog_compiler_pic in
8121      "" | " "*) ;;
8122      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8123      esac
8124 else
8125     lt_prog_compiler_pic=
8126      lt_prog_compiler_can_build_shared=no
8127 fi
8128
8129 fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141 #
8142 # Check to make sure the static flag actually works.
8143 #
8144 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8146 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8147 if ${lt_cv_prog_compiler_static_works+:} false; then :
8148   $as_echo_n "(cached) " >&6
8149 else
8150   lt_cv_prog_compiler_static_works=no
8151    save_LDFLAGS="$LDFLAGS"
8152    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8153    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8154    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8155      # The linker can only warn and ignore the option if not recognized
8156      # So say no if there are warnings
8157      if test -s conftest.err; then
8158        # Append any errors to the config.log.
8159        cat conftest.err 1>&5
8160        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8161        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162        if diff conftest.exp conftest.er2 >/dev/null; then
8163          lt_cv_prog_compiler_static_works=yes
8164        fi
8165      else
8166        lt_cv_prog_compiler_static_works=yes
8167      fi
8168    fi
8169    $RM -r conftest*
8170    LDFLAGS="$save_LDFLAGS"
8171
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8174 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8175
8176 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8177     :
8178 else
8179     lt_prog_compiler_static=
8180 fi
8181
8182
8183
8184
8185
8186
8187
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8190 if ${lt_cv_prog_compiler_c_o+:} false; then :
8191   $as_echo_n "(cached) " >&6
8192 else
8193   lt_cv_prog_compiler_c_o=no
8194    $RM -r conftest 2>/dev/null
8195    mkdir conftest
8196    cd conftest
8197    mkdir out
8198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8199
8200    lt_compiler_flag="-o out/conftest2.$ac_objext"
8201    # Insert the option either (1) after the last *FLAGS variable, or
8202    # (2) before a word containing "conftest.", or (3) at the end.
8203    # Note that $ac_compile itself does not contain backslashes and begins
8204    # with a dollar sign (not a hyphen), so the echo should work correctly.
8205    lt_compile=`echo "$ac_compile" | $SED \
8206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8208    -e 's:$: $lt_compiler_flag:'`
8209    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8210    (eval "$lt_compile" 2>out/conftest.err)
8211    ac_status=$?
8212    cat out/conftest.err >&5
8213    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8215    then
8216      # The compiler can only warn and ignore the option if not recognized
8217      # So say no if there are warnings
8218      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8221        lt_cv_prog_compiler_c_o=yes
8222      fi
8223    fi
8224    chmod u+w . 2>&5
8225    $RM conftest*
8226    # SGI C++ compiler will create directory out/ii_files/ for
8227    # template instantiation
8228    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8229    $RM out/* && rmdir out
8230    cd ..
8231    $RM -r conftest
8232    $RM conftest*
8233
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8236 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8237
8238
8239
8240
8241
8242
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8245 if ${lt_cv_prog_compiler_c_o+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   lt_cv_prog_compiler_c_o=no
8249    $RM -r conftest 2>/dev/null
8250    mkdir conftest
8251    cd conftest
8252    mkdir out
8253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254
8255    lt_compiler_flag="-o out/conftest2.$ac_objext"
8256    # Insert the option either (1) after the last *FLAGS variable, or
8257    # (2) before a word containing "conftest.", or (3) at the end.
8258    # Note that $ac_compile itself does not contain backslashes and begins
8259    # with a dollar sign (not a hyphen), so the echo should work correctly.
8260    lt_compile=`echo "$ac_compile" | $SED \
8261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263    -e 's:$: $lt_compiler_flag:'`
8264    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8265    (eval "$lt_compile" 2>out/conftest.err)
8266    ac_status=$?
8267    cat out/conftest.err >&5
8268    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8270    then
8271      # The compiler can only warn and ignore the option if not recognized
8272      # So say no if there are warnings
8273      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8274      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8275      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8276        lt_cv_prog_compiler_c_o=yes
8277      fi
8278    fi
8279    chmod u+w . 2>&5
8280    $RM conftest*
8281    # SGI C++ compiler will create directory out/ii_files/ for
8282    # template instantiation
8283    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8284    $RM out/* && rmdir out
8285    cd ..
8286    $RM -r conftest
8287    $RM conftest*
8288
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8292
8293
8294
8295
8296 hard_links="nottested"
8297 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8298   # do not overwrite the value of need_locks provided by the user
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8300 $as_echo_n "checking if we can lock with hard links... " >&6; }
8301   hard_links=yes
8302   $RM conftest*
8303   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8304   touch conftest.a
8305   ln conftest.a conftest.b 2>&5 || hard_links=no
8306   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8308 $as_echo "$hard_links" >&6; }
8309   if test "$hard_links" = no; then
8310     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8311 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8312     need_locks=warn
8313   fi
8314 else
8315   need_locks=no
8316 fi
8317
8318
8319
8320
8321
8322
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8324 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8325
8326   runpath_var=
8327   allow_undefined_flag=
8328   always_export_symbols=no
8329   archive_cmds=
8330   archive_expsym_cmds=
8331   compiler_needs_object=no
8332   enable_shared_with_static_runtimes=no
8333   export_dynamic_flag_spec=
8334   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8335   hardcode_automatic=no
8336   hardcode_direct=no
8337   hardcode_direct_absolute=no
8338   hardcode_libdir_flag_spec=
8339   hardcode_libdir_flag_spec_ld=
8340   hardcode_libdir_separator=
8341   hardcode_minus_L=no
8342   hardcode_shlibpath_var=unsupported
8343   inherit_rpath=no
8344   link_all_deplibs=unknown
8345   module_cmds=
8346   module_expsym_cmds=
8347   old_archive_from_new_cmds=
8348   old_archive_from_expsyms_cmds=
8349   thread_safe_flag_spec=
8350   whole_archive_flag_spec=
8351   # include_expsyms should be a list of space-separated symbols to be *always*
8352   # included in the symbol list
8353   include_expsyms=
8354   # exclude_expsyms can be an extended regexp of symbols to exclude
8355   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8356   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8357   # as well as any symbol that contains `d'.
8358   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8359   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8360   # platforms (ab)use it in PIC code, but their linkers get confused if
8361   # the symbol is explicitly referenced.  Since portable code cannot
8362   # rely on this symbol name, it's probably fine to never include it in
8363   # preloaded symbol tables.
8364   # Exclude shared library initialization/finalization symbols.
8365   extract_expsyms_cmds=
8366
8367   case $host_os in
8368   cygwin* | mingw* | pw32* | cegcc*)
8369     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8370     # When not using gcc, we currently assume that we are using
8371     # Microsoft Visual C++.
8372     if test "$GCC" != yes; then
8373       with_gnu_ld=no
8374     fi
8375     ;;
8376   interix*)
8377     # we just hope/assume this is gcc and not c89 (= MSVC++)
8378     with_gnu_ld=yes
8379     ;;
8380   openbsd*)
8381     with_gnu_ld=no
8382     ;;
8383   esac
8384
8385   ld_shlibs=yes
8386
8387   # On some targets, GNU ld is compatible enough with the native linker
8388   # that we're better off using the native interface for both.
8389   lt_use_gnu_ld_interface=no
8390   if test "$with_gnu_ld" = yes; then
8391     case $host_os in
8392       aix*)
8393         # The AIX port of GNU ld has always aspired to compatibility
8394         # with the native linker.  However, as the warning in the GNU ld
8395         # block says, versions before 2.19.5* couldn't really create working
8396         # shared libraries, regardless of the interface used.
8397         case `$LD -v 2>&1` in
8398           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8399           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8400           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8401           *)
8402             lt_use_gnu_ld_interface=yes
8403             ;;
8404         esac
8405         ;;
8406       *)
8407         lt_use_gnu_ld_interface=yes
8408         ;;
8409     esac
8410   fi
8411
8412   if test "$lt_use_gnu_ld_interface" = yes; then
8413     # If archive_cmds runs LD, not CC, wlarc should be empty
8414     wlarc='${wl}'
8415
8416     # Set some defaults for GNU ld with shared library support. These
8417     # are reset later if shared libraries are not supported. Putting them
8418     # here allows them to be overridden if necessary.
8419     runpath_var=LD_RUN_PATH
8420     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421     export_dynamic_flag_spec='${wl}--export-dynamic'
8422     # ancient GNU ld didn't support --whole-archive et. al.
8423     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8424       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8425     else
8426       whole_archive_flag_spec=
8427     fi
8428     supports_anon_versioning=no
8429     case `$LD -v 2>&1` in
8430       *GNU\ gold*) supports_anon_versioning=yes ;;
8431       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8432       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8433       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8434       *\ 2.11.*) ;; # other 2.11 versions
8435       *) supports_anon_versioning=yes ;;
8436     esac
8437
8438     # See if GNU ld supports shared libraries.
8439     case $host_os in
8440     aix[3-9]*)
8441       # On AIX/PPC, the GNU linker is very broken
8442       if test "$host_cpu" != ia64; then
8443         ld_shlibs=no
8444         cat <<_LT_EOF 1>&2
8445
8446 *** Warning: the GNU linker, at least up to release 2.19, is reported
8447 *** to be unable to reliably create shared libraries on AIX.
8448 *** Therefore, libtool is disabling shared libraries support.  If you
8449 *** really care for shared libraries, you may want to install binutils
8450 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8451 *** You will then need to restart the configuration process.
8452
8453 _LT_EOF
8454       fi
8455       ;;
8456
8457     amigaos*)
8458       case $host_cpu in
8459       powerpc)
8460             # see comment about AmigaOS4 .so support
8461             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462             archive_expsym_cmds=''
8463         ;;
8464       m68k)
8465             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)'
8466             hardcode_libdir_flag_spec='-L$libdir'
8467             hardcode_minus_L=yes
8468         ;;
8469       esac
8470       ;;
8471
8472     beos*)
8473       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8474         allow_undefined_flag=unsupported
8475         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8476         # support --undefined.  This deserves some investigation.  FIXME
8477         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478       else
8479         ld_shlibs=no
8480       fi
8481       ;;
8482
8483     cygwin* | mingw* | pw32* | cegcc*)
8484       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8485       # as there is no search path for DLLs.
8486       hardcode_libdir_flag_spec='-L$libdir'
8487       export_dynamic_flag_spec='${wl}--export-all-symbols'
8488       allow_undefined_flag=unsupported
8489       always_export_symbols=no
8490       enable_shared_with_static_runtimes=yes
8491       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'
8492       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8493
8494       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8495         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8496         # If the export-symbols file already is a .def file (1st line
8497         # is EXPORTS), use it as is; otherwise, prepend...
8498         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8499           cp $export_symbols $output_objdir/$soname.def;
8500         else
8501           echo EXPORTS > $output_objdir/$soname.def;
8502           cat $export_symbols >> $output_objdir/$soname.def;
8503         fi~
8504         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8505       else
8506         ld_shlibs=no
8507       fi
8508       ;;
8509
8510     haiku*)
8511       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8512       link_all_deplibs=yes
8513       ;;
8514
8515     interix[3-9]*)
8516       hardcode_direct=no
8517       hardcode_shlibpath_var=no
8518       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8519       export_dynamic_flag_spec='${wl}-E'
8520       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8521       # Instead, shared libraries are loaded at an image base (0x10000000 by
8522       # default) and relocated if they conflict, which is a slow very memory
8523       # consuming and fragmenting process.  To avoid this, we pick a random,
8524       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8525       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8526       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8527       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'
8528       ;;
8529
8530     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8531       tmp_diet=no
8532       if test "$host_os" = linux-dietlibc; then
8533         case $cc_basename in
8534           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8535         esac
8536       fi
8537       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8538          && test "$tmp_diet" = no
8539       then
8540         tmp_addflag=' $pic_flag'
8541         tmp_sharedflag='-shared'
8542         case $cc_basename,$host_cpu in
8543         pgcc*)                          # Portland Group C compiler
8544           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'
8545           tmp_addflag=' $pic_flag'
8546           ;;
8547         pgf77* | pgf90* | pgf95* | pgfortran*)
8548                                         # Portland Group f77 and f90 compilers
8549           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'
8550           tmp_addflag=' $pic_flag -Mnomain' ;;
8551         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8552           tmp_addflag=' -i_dynamic' ;;
8553         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8554           tmp_addflag=' -i_dynamic -nofor_main' ;;
8555         ifc* | ifort*)                  # Intel Fortran compiler
8556           tmp_addflag=' -nofor_main' ;;
8557         lf95*)                          # Lahey Fortran 8.1
8558           whole_archive_flag_spec=
8559           tmp_sharedflag='--shared' ;;
8560         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8561           tmp_sharedflag='-qmkshrobj'
8562           tmp_addflag= ;;
8563         nvcc*)  # Cuda Compiler Driver 2.2
8564           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'
8565           compiler_needs_object=yes
8566           ;;
8567         esac
8568         case `$CC -V 2>&1 | sed 5q` in
8569         *Sun\ C*)                       # Sun C 5.9
8570           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'
8571           compiler_needs_object=yes
8572           tmp_sharedflag='-G' ;;
8573         *Sun\ F*)                       # Sun Fortran 8.3
8574           tmp_sharedflag='-G' ;;
8575         esac
8576         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8577
8578         if test "x$supports_anon_versioning" = xyes; then
8579           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8580             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8581             echo "local: *; };" >> $output_objdir/$libname.ver~
8582             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8583         fi
8584
8585         case $cc_basename in
8586         xlf* | bgf* | bgxlf* | mpixlf*)
8587           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8588           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8589           hardcode_libdir_flag_spec=
8590           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8591           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8592           if test "x$supports_anon_versioning" = xyes; then
8593             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8594               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8595               echo "local: *; };" >> $output_objdir/$libname.ver~
8596               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8597           fi
8598           ;;
8599         esac
8600       else
8601         ld_shlibs=no
8602       fi
8603       ;;
8604
8605     netbsd*)
8606       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8607         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8608         wlarc=
8609       else
8610         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8612       fi
8613       ;;
8614
8615     solaris*)
8616       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8617         ld_shlibs=no
8618         cat <<_LT_EOF 1>&2
8619
8620 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8621 *** create shared libraries on Solaris systems.  Therefore, libtool
8622 *** is disabling shared libraries support.  We urge you to upgrade GNU
8623 *** binutils to release 2.9.1 or newer.  Another option is to modify
8624 *** your PATH or compiler configuration so that the native linker is
8625 *** used, and then restart.
8626
8627 _LT_EOF
8628       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8629         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8631       else
8632         ld_shlibs=no
8633       fi
8634       ;;
8635
8636     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8637       case `$LD -v 2>&1` in
8638         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8639         ld_shlibs=no
8640         cat <<_LT_EOF 1>&2
8641
8642 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8643 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8644 *** is disabling shared libraries support.  We urge you to upgrade GNU
8645 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8646 *** your PATH or compiler configuration so that the native linker is
8647 *** used, and then restart.
8648
8649 _LT_EOF
8650         ;;
8651         *)
8652           # For security reasons, it is highly recommended that you always
8653           # use absolute paths for naming shared libraries, and exclude the
8654           # DT_RUNPATH tag from executables and libraries.  But doing so
8655           # requires that you compile everything twice, which is a pain.
8656           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8658             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8660           else
8661             ld_shlibs=no
8662           fi
8663         ;;
8664       esac
8665       ;;
8666
8667     sunos4*)
8668       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8669       wlarc=
8670       hardcode_direct=yes
8671       hardcode_shlibpath_var=no
8672       ;;
8673
8674     *)
8675       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8676         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8678       else
8679         ld_shlibs=no
8680       fi
8681       ;;
8682     esac
8683
8684     if test "$ld_shlibs" = no; then
8685       runpath_var=
8686       hardcode_libdir_flag_spec=
8687       export_dynamic_flag_spec=
8688       whole_archive_flag_spec=
8689     fi
8690   else
8691     # PORTME fill in a description of your system's linker (not GNU ld)
8692     case $host_os in
8693     aix3*)
8694       allow_undefined_flag=unsupported
8695       always_export_symbols=yes
8696       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'
8697       # Note: this linker hardcodes the directories in LIBPATH if there
8698       # are no directories specified by -L.
8699       hardcode_minus_L=yes
8700       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8701         # Neither direct hardcoding nor static linking is supported with a
8702         # broken collect2.
8703         hardcode_direct=unsupported
8704       fi
8705       ;;
8706
8707     aix[4-9]*)
8708       if test "$host_cpu" = ia64; then
8709         # On IA64, the linker does run time linking by default, so we don't
8710         # have to do anything special.
8711         aix_use_runtimelinking=no
8712         exp_sym_flag='-Bexport'
8713         no_entry_flag=""
8714       else
8715         # If we're using GNU nm, then we don't want the "-C" option.
8716         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8717         # Also, AIX nm treats weak defined symbols like other global
8718         # defined symbols, whereas GNU nm marks them as "W".
8719         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8720           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8721         else
8722           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8723         fi
8724         aix_use_runtimelinking=no
8725
8726         # Test if we are trying to use run time linking or normal
8727         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8728         # need to do runtime linking.
8729         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8730           for ld_flag in $LDFLAGS; do
8731           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8732             aix_use_runtimelinking=yes
8733             break
8734           fi
8735           done
8736           ;;
8737         esac
8738
8739         exp_sym_flag='-bexport'
8740         no_entry_flag='-bnoentry'
8741       fi
8742
8743       # When large executables or shared objects are built, AIX ld can
8744       # have problems creating the table of contents.  If linking a library
8745       # or program results in "error TOC overflow" add -mminimal-toc to
8746       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8747       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8748
8749       archive_cmds=''
8750       hardcode_direct=yes
8751       hardcode_direct_absolute=yes
8752       hardcode_libdir_separator=':'
8753       link_all_deplibs=yes
8754       file_list_spec='${wl}-f,'
8755
8756       if test "$GCC" = yes; then
8757         case $host_os in aix4.[012]|aix4.[012].*)
8758         # We only want to do this on AIX 4.2 and lower, the check
8759         # below for broken collect2 doesn't work under 4.3+
8760           collect2name=`${CC} -print-prog-name=collect2`
8761           if test -f "$collect2name" &&
8762            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8763           then
8764           # We have reworked collect2
8765           :
8766           else
8767           # We have old collect2
8768           hardcode_direct=unsupported
8769           # It fails to find uninstalled libraries when the uninstalled
8770           # path is not listed in the libpath.  Setting hardcode_minus_L
8771           # to unsupported forces relinking
8772           hardcode_minus_L=yes
8773           hardcode_libdir_flag_spec='-L$libdir'
8774           hardcode_libdir_separator=
8775           fi
8776           ;;
8777         esac
8778         shared_flag='-shared'
8779         if test "$aix_use_runtimelinking" = yes; then
8780           shared_flag="$shared_flag "'${wl}-G'
8781         fi
8782       else
8783         # not using gcc
8784         if test "$host_cpu" = ia64; then
8785         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8786         # chokes on -Wl,-G. The following line is correct:
8787           shared_flag='-G'
8788         else
8789           if test "$aix_use_runtimelinking" = yes; then
8790             shared_flag='${wl}-G'
8791           else
8792             shared_flag='${wl}-bM:SRE'
8793           fi
8794         fi
8795       fi
8796
8797       export_dynamic_flag_spec='${wl}-bexpall'
8798       # It seems that -bexpall does not export symbols beginning with
8799       # underscore (_), so it is better to generate a list of symbols to export.
8800       always_export_symbols=yes
8801       if test "$aix_use_runtimelinking" = yes; then
8802         # Warning - without using the other runtime loading flags (-brtl),
8803         # -berok will link without error, but may produce a broken library.
8804         allow_undefined_flag='-berok'
8805         # Determine the default libpath from the value encoded in an
8806         # empty executable.
8807         if test "${lt_cv_aix_libpath+set}" = set; then
8808   aix_libpath=$lt_cv_aix_libpath
8809 else
8810   if ${lt_cv_aix_libpath_+:} false; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h.  */
8815
8816 int
8817 main ()
8818 {
8819
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_link "$LINENO"; then :
8825
8826   lt_aix_libpath_sed='
8827       /Import File Strings/,/^$/ {
8828           /^0/ {
8829               s/^0  *\([^ ]*\) *$/\1/
8830               p
8831           }
8832       }'
8833   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8834   # Check for a 64-bit object if we didn't find anything.
8835   if test -z "$lt_cv_aix_libpath_"; then
8836     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8837   fi
8838 fi
8839 rm -f core conftest.err conftest.$ac_objext \
8840     conftest$ac_exeext conftest.$ac_ext
8841   if test -z "$lt_cv_aix_libpath_"; then
8842     lt_cv_aix_libpath_="/usr/lib:/lib"
8843   fi
8844
8845 fi
8846
8847   aix_libpath=$lt_cv_aix_libpath_
8848 fi
8849
8850         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8851         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8852       else
8853         if test "$host_cpu" = ia64; then
8854           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8855           allow_undefined_flag="-z nodefs"
8856           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"
8857         else
8858          # Determine the default libpath from the value encoded in an
8859          # empty executable.
8860          if test "${lt_cv_aix_libpath+set}" = set; then
8861   aix_libpath=$lt_cv_aix_libpath
8862 else
8863   if ${lt_cv_aix_libpath_+:} false; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h.  */
8868
8869 int
8870 main ()
8871 {
8872
8873   ;
8874   return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8878
8879   lt_aix_libpath_sed='
8880       /Import File Strings/,/^$/ {
8881           /^0/ {
8882               s/^0  *\([^ ]*\) *$/\1/
8883               p
8884           }
8885       }'
8886   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887   # Check for a 64-bit object if we didn't find anything.
8888   if test -z "$lt_cv_aix_libpath_"; then
8889     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8890   fi
8891 fi
8892 rm -f core conftest.err conftest.$ac_objext \
8893     conftest$ac_exeext conftest.$ac_ext
8894   if test -z "$lt_cv_aix_libpath_"; then
8895     lt_cv_aix_libpath_="/usr/lib:/lib"
8896   fi
8897
8898 fi
8899
8900   aix_libpath=$lt_cv_aix_libpath_
8901 fi
8902
8903          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8904           # Warning - without using the other run time loading flags,
8905           # -berok will link without error, but may produce a broken library.
8906           no_undefined_flag=' ${wl}-bernotok'
8907           allow_undefined_flag=' ${wl}-berok'
8908           if test "$with_gnu_ld" = yes; then
8909             # We only use this code for GNU lds that support --whole-archive.
8910             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8911           else
8912             # Exported symbols can be pulled into shared objects from archives
8913             whole_archive_flag_spec='$convenience'
8914           fi
8915           archive_cmds_need_lc=yes
8916           # This is similar to how AIX traditionally builds its shared libraries.
8917           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8918         fi
8919       fi
8920       ;;
8921
8922     amigaos*)
8923       case $host_cpu in
8924       powerpc)
8925             # see comment about AmigaOS4 .so support
8926             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927             archive_expsym_cmds=''
8928         ;;
8929       m68k)
8930             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)'
8931             hardcode_libdir_flag_spec='-L$libdir'
8932             hardcode_minus_L=yes
8933         ;;
8934       esac
8935       ;;
8936
8937     bsdi[45]*)
8938       export_dynamic_flag_spec=-rdynamic
8939       ;;
8940
8941     cygwin* | mingw* | pw32* | cegcc*)
8942       # When not using gcc, we currently assume that we are using
8943       # Microsoft Visual C++.
8944       # hardcode_libdir_flag_spec is actually meaningless, as there is
8945       # no search path for DLLs.
8946       case $cc_basename in
8947       cl*)
8948         # Native MSVC
8949         hardcode_libdir_flag_spec=' '
8950         allow_undefined_flag=unsupported
8951         always_export_symbols=yes
8952         file_list_spec='@'
8953         # Tell ltmain to make .lib files, not .a files.
8954         libext=lib
8955         # Tell ltmain to make .dll files, not .so files.
8956         shrext_cmds=".dll"
8957         # FIXME: Setting linknames here is a bad hack.
8958         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8959         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8960             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8961           else
8962             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8963           fi~
8964           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8965           linknames='
8966         # The linker will not automatically build a static lib if we build a DLL.
8967         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8968         enable_shared_with_static_runtimes=yes
8969         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8970         # Don't use ranlib
8971         old_postinstall_cmds='chmod 644 $oldlib'
8972         postlink_cmds='lt_outputfile="@OUTPUT@"~
8973           lt_tool_outputfile="@TOOL_OUTPUT@"~
8974           case $lt_outputfile in
8975             *.exe|*.EXE) ;;
8976             *)
8977               lt_outputfile="$lt_outputfile.exe"
8978               lt_tool_outputfile="$lt_tool_outputfile.exe"
8979               ;;
8980           esac~
8981           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8982             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8983             $RM "$lt_outputfile.manifest";
8984           fi'
8985         ;;
8986       *)
8987         # Assume MSVC wrapper
8988         hardcode_libdir_flag_spec=' '
8989         allow_undefined_flag=unsupported
8990         # Tell ltmain to make .lib files, not .a files.
8991         libext=lib
8992         # Tell ltmain to make .dll files, not .so files.
8993         shrext_cmds=".dll"
8994         # FIXME: Setting linknames here is a bad hack.
8995         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8996         # The linker will automatically build a .lib file if we build a DLL.
8997         old_archive_from_new_cmds='true'
8998         # FIXME: Should let the user specify the lib program.
8999         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9000         enable_shared_with_static_runtimes=yes
9001         ;;
9002       esac
9003       ;;
9004
9005     darwin* | rhapsody*)
9006
9007
9008   archive_cmds_need_lc=no
9009   hardcode_direct=no
9010   hardcode_automatic=yes
9011   hardcode_shlibpath_var=unsupported
9012   if test "$lt_cv_ld_force_load" = "yes"; then
9013     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\"`'
9014   else
9015     whole_archive_flag_spec=''
9016   fi
9017   link_all_deplibs=yes
9018   allow_undefined_flag="$_lt_dar_allow_undefined"
9019   case $cc_basename in
9020      ifort*) _lt_dar_can_shared=yes ;;
9021      *) _lt_dar_can_shared=$GCC ;;
9022   esac
9023   if test "$_lt_dar_can_shared" = "yes"; then
9024     output_verbose_link_cmd=func_echo_all
9025     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9026     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9027     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}"
9028     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}"
9029
9030   else
9031   ld_shlibs=no
9032   fi
9033
9034       ;;
9035
9036     dgux*)
9037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038       hardcode_libdir_flag_spec='-L$libdir'
9039       hardcode_shlibpath_var=no
9040       ;;
9041
9042     freebsd1*)
9043       ld_shlibs=no
9044       ;;
9045
9046     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9047     # support.  Future versions do this automatically, but an explicit c++rt0.o
9048     # does not break anything, and helps significantly (at the cost of a little
9049     # extra space).
9050     freebsd2.2*)
9051       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9052       hardcode_libdir_flag_spec='-R$libdir'
9053       hardcode_direct=yes
9054       hardcode_shlibpath_var=no
9055       ;;
9056
9057     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9058     freebsd2*)
9059       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9060       hardcode_direct=yes
9061       hardcode_minus_L=yes
9062       hardcode_shlibpath_var=no
9063       ;;
9064
9065     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9066     freebsd* | dragonfly*)
9067       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9068       hardcode_libdir_flag_spec='-R$libdir'
9069       hardcode_direct=yes
9070       hardcode_shlibpath_var=no
9071       ;;
9072
9073     hpux9*)
9074       if test "$GCC" = yes; then
9075         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9076       else
9077         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9078       fi
9079       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9080       hardcode_libdir_separator=:
9081       hardcode_direct=yes
9082
9083       # hardcode_minus_L: Not really in the search PATH,
9084       # but as the default location of the library.
9085       hardcode_minus_L=yes
9086       export_dynamic_flag_spec='${wl}-E'
9087       ;;
9088
9089     hpux10*)
9090       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9091         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9092       else
9093         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9094       fi
9095       if test "$with_gnu_ld" = no; then
9096         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9097         hardcode_libdir_flag_spec_ld='+b $libdir'
9098         hardcode_libdir_separator=:
9099         hardcode_direct=yes
9100         hardcode_direct_absolute=yes
9101         export_dynamic_flag_spec='${wl}-E'
9102         # hardcode_minus_L: Not really in the search PATH,
9103         # but as the default location of the library.
9104         hardcode_minus_L=yes
9105       fi
9106       ;;
9107
9108     hpux11*)
9109       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9110         case $host_cpu in
9111         hppa*64*)
9112           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113           ;;
9114         ia64*)
9115           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9116           ;;
9117         *)
9118           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9119           ;;
9120         esac
9121       else
9122         case $host_cpu in
9123         hppa*64*)
9124           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9125           ;;
9126         ia64*)
9127           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9128           ;;
9129         *)
9130
9131           # Older versions of the 11.00 compiler do not understand -b yet
9132           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9133           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9134 $as_echo_n "checking if $CC understands -b... " >&6; }
9135 if ${lt_cv_prog_compiler__b+:} false; then :
9136   $as_echo_n "(cached) " >&6
9137 else
9138   lt_cv_prog_compiler__b=no
9139    save_LDFLAGS="$LDFLAGS"
9140    LDFLAGS="$LDFLAGS -b"
9141    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9142    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9143      # The linker can only warn and ignore the option if not recognized
9144      # So say no if there are warnings
9145      if test -s conftest.err; then
9146        # Append any errors to the config.log.
9147        cat conftest.err 1>&5
9148        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9149        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9150        if diff conftest.exp conftest.er2 >/dev/null; then
9151          lt_cv_prog_compiler__b=yes
9152        fi
9153      else
9154        lt_cv_prog_compiler__b=yes
9155      fi
9156    fi
9157    $RM -r conftest*
9158    LDFLAGS="$save_LDFLAGS"
9159
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9162 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9163
9164 if test x"$lt_cv_prog_compiler__b" = xyes; then
9165     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166 else
9167     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9168 fi
9169
9170           ;;
9171         esac
9172       fi
9173       if test "$with_gnu_ld" = no; then
9174         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9175         hardcode_libdir_separator=:
9176
9177         case $host_cpu in
9178         hppa*64*|ia64*)
9179           hardcode_direct=no
9180           hardcode_shlibpath_var=no
9181           ;;
9182         *)
9183           hardcode_direct=yes
9184           hardcode_direct_absolute=yes
9185           export_dynamic_flag_spec='${wl}-E'
9186
9187           # hardcode_minus_L: Not really in the search PATH,
9188           # but as the default location of the library.
9189           hardcode_minus_L=yes
9190           ;;
9191         esac
9192       fi
9193       ;;
9194
9195     irix5* | irix6* | nonstopux*)
9196       if test "$GCC" = yes; then
9197         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'
9198         # Try to use the -exported_symbol ld option, if it does not
9199         # work, assume that -exports_file does not work either and
9200         # implicitly export all symbols.
9201         # This should be the same for all languages, so no per-tag cache variable.
9202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9203 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9204 if ${lt_cv_irix_exported_symbol+:} false; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   save_LDFLAGS="$LDFLAGS"
9208            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9209            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h.  */
9211 int foo (void) { return 0; }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214   lt_cv_irix_exported_symbol=yes
9215 else
9216   lt_cv_irix_exported_symbol=no
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219     conftest$ac_exeext conftest.$ac_ext
9220            LDFLAGS="$save_LDFLAGS"
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9223 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9224         if test "$lt_cv_irix_exported_symbol" = yes; then
9225           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'
9226         fi
9227       else
9228         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'
9229         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'
9230       fi
9231       archive_cmds_need_lc='no'
9232       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233       hardcode_libdir_separator=:
9234       inherit_rpath=yes
9235       link_all_deplibs=yes
9236       ;;
9237
9238     netbsd*)
9239       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9240         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9241       else
9242         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9243       fi
9244       hardcode_libdir_flag_spec='-R$libdir'
9245       hardcode_direct=yes
9246       hardcode_shlibpath_var=no
9247       ;;
9248
9249     newsos6)
9250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9251       hardcode_direct=yes
9252       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253       hardcode_libdir_separator=:
9254       hardcode_shlibpath_var=no
9255       ;;
9256
9257     *nto* | *qnx*)
9258       ;;
9259
9260     openbsd*)
9261       if test -f /usr/libexec/ld.so; then
9262         hardcode_direct=yes
9263         hardcode_shlibpath_var=no
9264         hardcode_direct_absolute=yes
9265         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9266           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9267           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9268           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9269           export_dynamic_flag_spec='${wl}-E'
9270         else
9271           case $host_os in
9272            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9273              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9274              hardcode_libdir_flag_spec='-R$libdir'
9275              ;;
9276            *)
9277              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9278              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9279              ;;
9280           esac
9281         fi
9282       else
9283         ld_shlibs=no
9284       fi
9285       ;;
9286
9287     os2*)
9288       hardcode_libdir_flag_spec='-L$libdir'
9289       hardcode_minus_L=yes
9290       allow_undefined_flag=unsupported
9291       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9292       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9293       ;;
9294
9295     osf3*)
9296       if test "$GCC" = yes; then
9297         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9298         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'
9299       else
9300         allow_undefined_flag=' -expect_unresolved \*'
9301         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'
9302       fi
9303       archive_cmds_need_lc='no'
9304       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305       hardcode_libdir_separator=:
9306       ;;
9307
9308     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9309       if test "$GCC" = yes; then
9310         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9311         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'
9312         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313       else
9314         allow_undefined_flag=' -expect_unresolved \*'
9315         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'
9316         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~
9317         $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'
9318
9319         # Both c and cxx compiler support -rpath directly
9320         hardcode_libdir_flag_spec='-rpath $libdir'
9321       fi
9322       archive_cmds_need_lc='no'
9323       hardcode_libdir_separator=:
9324       ;;
9325
9326     solaris*)
9327       no_undefined_flag=' -z defs'
9328       if test "$GCC" = yes; then
9329         wlarc='${wl}'
9330         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9331         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9332           $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'
9333       else
9334         case `$CC -V 2>&1` in
9335         *"Compilers 5.0"*)
9336           wlarc=''
9337           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9338           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9339           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9340           ;;
9341         *)
9342           wlarc='${wl}'
9343           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9344           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9345           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9346           ;;
9347         esac
9348       fi
9349       hardcode_libdir_flag_spec='-R$libdir'
9350       hardcode_shlibpath_var=no
9351       case $host_os in
9352       solaris2.[0-5] | solaris2.[0-5].*) ;;
9353       *)
9354         # The compiler driver will combine and reorder linker options,
9355         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9356         # but is careful enough not to reorder.
9357         # Supported since Solaris 2.6 (maybe 2.5.1?)
9358         if test "$GCC" = yes; then
9359           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9360         else
9361           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9362         fi
9363         ;;
9364       esac
9365       link_all_deplibs=yes
9366       ;;
9367
9368     sunos4*)
9369       if test "x$host_vendor" = xsequent; then
9370         # Use $CC to link under sequent, because it throws in some extra .o
9371         # files that make .init and .fini sections work.
9372         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9373       else
9374         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9375       fi
9376       hardcode_libdir_flag_spec='-L$libdir'
9377       hardcode_direct=yes
9378       hardcode_minus_L=yes
9379       hardcode_shlibpath_var=no
9380       ;;
9381
9382     sysv4)
9383       case $host_vendor in
9384         sni)
9385           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386           hardcode_direct=yes # is this really true???
9387         ;;
9388         siemens)
9389           ## LD is ld it makes a PLAMLIB
9390           ## CC just makes a GrossModule.
9391           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9392           reload_cmds='$CC -r -o $output$reload_objs'
9393           hardcode_direct=no
9394         ;;
9395         motorola)
9396           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9398         ;;
9399       esac
9400       runpath_var='LD_RUN_PATH'
9401       hardcode_shlibpath_var=no
9402       ;;
9403
9404     sysv4.3*)
9405       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406       hardcode_shlibpath_var=no
9407       export_dynamic_flag_spec='-Bexport'
9408       ;;
9409
9410     sysv4*MP*)
9411       if test -d /usr/nec; then
9412         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9413         hardcode_shlibpath_var=no
9414         runpath_var=LD_RUN_PATH
9415         hardcode_runpath_var=yes
9416         ld_shlibs=yes
9417       fi
9418       ;;
9419
9420     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9421       no_undefined_flag='${wl}-z,text'
9422       archive_cmds_need_lc=no
9423       hardcode_shlibpath_var=no
9424       runpath_var='LD_RUN_PATH'
9425
9426       if test "$GCC" = yes; then
9427         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429       else
9430         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432       fi
9433       ;;
9434
9435     sysv5* | sco3.2v5* | sco5v6*)
9436       # Note: We can NOT use -z defs as we might desire, because we do not
9437       # link with -lc, and that would cause any symbols used from libc to
9438       # always be unresolved, which means just about no library would
9439       # ever link correctly.  If we're not using GNU ld we use -z text
9440       # though, which does catch some bad symbols but isn't as heavy-handed
9441       # as -z defs.
9442       no_undefined_flag='${wl}-z,text'
9443       allow_undefined_flag='${wl}-z,nodefs'
9444       archive_cmds_need_lc=no
9445       hardcode_shlibpath_var=no
9446       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9447       hardcode_libdir_separator=':'
9448       link_all_deplibs=yes
9449       export_dynamic_flag_spec='${wl}-Bexport'
9450       runpath_var='LD_RUN_PATH'
9451
9452       if test "$GCC" = yes; then
9453         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455       else
9456         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458       fi
9459       ;;
9460
9461     uts4*)
9462       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463       hardcode_libdir_flag_spec='-L$libdir'
9464       hardcode_shlibpath_var=no
9465       ;;
9466
9467     *)
9468       ld_shlibs=no
9469       ;;
9470     esac
9471
9472     if test x$host_vendor = xsni; then
9473       case $host in
9474       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9475         export_dynamic_flag_spec='${wl}-Blargedynsym'
9476         ;;
9477       esac
9478     fi
9479   fi
9480
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9482 $as_echo "$ld_shlibs" >&6; }
9483 test "$ld_shlibs" = no && can_build_shared=no
9484
9485 with_gnu_ld=$with_gnu_ld
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501 #
9502 # Do we need to explicitly link libc?
9503 #
9504 case "x$archive_cmds_need_lc" in
9505 x|xyes)
9506   # Assume -lc should be added
9507   archive_cmds_need_lc=yes
9508
9509   if test "$enable_shared" = yes && test "$GCC" = yes; then
9510     case $archive_cmds in
9511     *'~'*)
9512       # FIXME: we may have to deal with multi-command sequences.
9513       ;;
9514     '$CC '*)
9515       # Test whether the compiler implicitly links with -lc since on some
9516       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9517       # to ld, don't add -lc before -lgcc.
9518       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9519 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9520 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   $RM conftest*
9524         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9525
9526         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9527   (eval $ac_compile) 2>&5
9528   ac_status=$?
9529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9530   test $ac_status = 0; } 2>conftest.err; then
9531           soname=conftest
9532           lib=conftest
9533           libobjs=conftest.$ac_objext
9534           deplibs=
9535           wl=$lt_prog_compiler_wl
9536           pic_flag=$lt_prog_compiler_pic
9537           compiler_flags=-v
9538           linker_flags=-v
9539           verstring=
9540           output_objdir=.
9541           libname=conftest
9542           lt_save_allow_undefined_flag=$allow_undefined_flag
9543           allow_undefined_flag=
9544           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9545   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9546   ac_status=$?
9547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9548   test $ac_status = 0; }
9549           then
9550             lt_cv_archive_cmds_need_lc=no
9551           else
9552             lt_cv_archive_cmds_need_lc=yes
9553           fi
9554           allow_undefined_flag=$lt_save_allow_undefined_flag
9555         else
9556           cat conftest.err 1>&5
9557         fi
9558         $RM conftest*
9559
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9562 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9563       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9564       ;;
9565     esac
9566   fi
9567   ;;
9568 esac
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9727 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9728
9729 if test "$GCC" = yes; then
9730   case $host_os in
9731     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9732     *) lt_awk_arg="/^libraries:/" ;;
9733   esac
9734   case $host_os in
9735     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9736     *) lt_sed_strip_eq="s,=/,/,g" ;;
9737   esac
9738   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9739   case $lt_search_path_spec in
9740   *\;*)
9741     # if the path contains ";" then we assume it to be the separator
9742     # otherwise default to the standard path separator (i.e. ":") - it is
9743     # assumed that no part of a normal pathname contains ";" but that should
9744     # okay in the real world where ";" in dirpaths is itself problematic.
9745     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9746     ;;
9747   *)
9748     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9749     ;;
9750   esac
9751   # Ok, now we have the path, separated by spaces, we can step through it
9752   # and add multilib dir if necessary.
9753   lt_tmp_lt_search_path_spec=
9754   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9755   for lt_sys_path in $lt_search_path_spec; do
9756     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9757       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9758     else
9759       test -d "$lt_sys_path" && \
9760         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9761     fi
9762   done
9763   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9764 BEGIN {RS=" "; FS="/|\n";} {
9765   lt_foo="";
9766   lt_count=0;
9767   for (lt_i = NF; lt_i > 0; lt_i--) {
9768     if ($lt_i != "" && $lt_i != ".") {
9769       if ($lt_i == "..") {
9770         lt_count++;
9771       } else {
9772         if (lt_count == 0) {
9773           lt_foo="/" $lt_i lt_foo;
9774         } else {
9775           lt_count--;
9776         }
9777       }
9778     }
9779   }
9780   if (lt_foo != "") { lt_freq[lt_foo]++; }
9781   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9782 }'`
9783   # AWK program above erroneously prepends '/' to C:/dos/paths
9784   # for these hosts.
9785   case $host_os in
9786     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9787       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9788   esac
9789   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9790 else
9791   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9792 fi
9793 library_names_spec=
9794 libname_spec='lib$name'
9795 soname_spec=
9796 shrext_cmds=".so"
9797 postinstall_cmds=
9798 postuninstall_cmds=
9799 finish_cmds=
9800 finish_eval=
9801 shlibpath_var=
9802 shlibpath_overrides_runpath=unknown
9803 version_type=none
9804 dynamic_linker="$host_os ld.so"
9805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9806 need_lib_prefix=unknown
9807 hardcode_into_libs=no
9808
9809 # when you set need_version to no, make sure it does not cause -set_version
9810 # flags to be left without arguments
9811 need_version=unknown
9812
9813 case $host_os in
9814 aix3*)
9815   version_type=linux
9816   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9817   shlibpath_var=LIBPATH
9818
9819   # AIX 3 has no versioning support, so we append a major version to the name.
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   ;;
9822
9823 aix[4-9]*)
9824   version_type=linux
9825   need_lib_prefix=no
9826   need_version=no
9827   hardcode_into_libs=yes
9828   if test "$host_cpu" = ia64; then
9829     # AIX 5 supports IA64
9830     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9831     shlibpath_var=LD_LIBRARY_PATH
9832   else
9833     # With GCC up to 2.95.x, collect2 would create an import file
9834     # for dependence libraries.  The import file would start with
9835     # the line `#! .'.  This would cause the generated library to
9836     # depend on `.', always an invalid library.  This was fixed in
9837     # development snapshots of GCC prior to 3.0.
9838     case $host_os in
9839       aix4 | aix4.[01] | aix4.[01].*)
9840       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9841            echo ' yes '
9842            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9843         :
9844       else
9845         can_build_shared=no
9846       fi
9847       ;;
9848     esac
9849     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9850     # soname into executable. Probably we can add versioning support to
9851     # collect2, so additional links can be useful in future.
9852     if test "$aix_use_runtimelinking" = yes; then
9853       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9854       # instead of lib<name>.a to let people know that these are not
9855       # typical AIX shared libraries.
9856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857     else
9858       # We preserve .a as extension for shared libraries through AIX4.2
9859       # and later when we are not doing run time linking.
9860       library_names_spec='${libname}${release}.a $libname.a'
9861       soname_spec='${libname}${release}${shared_ext}$major'
9862     fi
9863     shlibpath_var=LIBPATH
9864   fi
9865   ;;
9866
9867 amigaos*)
9868   case $host_cpu in
9869   powerpc)
9870     # Since July 2007 AmigaOS4 officially supports .so libraries.
9871     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873     ;;
9874   m68k)
9875     library_names_spec='$libname.ixlibrary $libname.a'
9876     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9877     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9878     ;;
9879   esac
9880   ;;
9881
9882 beos*)
9883   library_names_spec='${libname}${shared_ext}'
9884   dynamic_linker="$host_os ld.so"
9885   shlibpath_var=LIBRARY_PATH
9886   ;;
9887
9888 bsdi[45]*)
9889   version_type=linux
9890   need_version=no
9891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892   soname_spec='${libname}${release}${shared_ext}$major'
9893   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9894   shlibpath_var=LD_LIBRARY_PATH
9895   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9896   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9897   # the default ld.so.conf also contains /usr/contrib/lib and
9898   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9899   # libtool to hard-code these into programs
9900   ;;
9901
9902 cygwin* | mingw* | pw32* | cegcc*)
9903   version_type=windows
9904   shrext_cmds=".dll"
9905   need_version=no
9906   need_lib_prefix=no
9907
9908   case $GCC,$cc_basename in
9909   yes,*)
9910     # gcc
9911     library_names_spec='$libname.dll.a'
9912     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9913     postinstall_cmds='base_file=`basename \${file}`~
9914       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9915       dldir=$destdir/`dirname \$dlpath`~
9916       test -d \$dldir || mkdir -p \$dldir~
9917       $install_prog $dir/$dlname \$dldir/$dlname~
9918       chmod a+x \$dldir/$dlname~
9919       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9920         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9921       fi'
9922     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9923       dlpath=$dir/\$dldll~
9924        $RM \$dlpath'
9925     shlibpath_overrides_runpath=yes
9926
9927     case $host_os in
9928     cygwin*)
9929       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9930       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9931
9932       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9933       ;;
9934     mingw* | cegcc*)
9935       # MinGW DLLs use traditional 'lib' prefix
9936       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9937       ;;
9938     pw32*)
9939       # pw32 DLLs use 'pw' prefix rather than 'lib'
9940       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941       ;;
9942     esac
9943     dynamic_linker='Win32 ld.exe'
9944     ;;
9945
9946   *,cl*)
9947     # Native MSVC
9948     libname_spec='$name'
9949     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950     library_names_spec='${libname}.dll.lib'
9951
9952     case $build_os in
9953     mingw*)
9954       sys_lib_search_path_spec=
9955       lt_save_ifs=$IFS
9956       IFS=';'
9957       for lt_path in $LIB
9958       do
9959         IFS=$lt_save_ifs
9960         # Let DOS variable expansion print the short 8.3 style file name.
9961         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9962         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9963       done
9964       IFS=$lt_save_ifs
9965       # Convert to MSYS style.
9966       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9967       ;;
9968     cygwin*)
9969       # Convert to unix form, then to dos form, then back to unix form
9970       # but this time dos style (no spaces!) so that the unix form looks
9971       # like /cygdrive/c/PROGRA~1:/cygdr...
9972       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9973       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9974       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9975       ;;
9976     *)
9977       sys_lib_search_path_spec="$LIB"
9978       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9979         # It is most probably a Windows format PATH.
9980         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9981       else
9982         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9983       fi
9984       # FIXME: find the short name or the path components, as spaces are
9985       # common. (e.g. "Program Files" -> "PROGRA~1")
9986       ;;
9987     esac
9988
9989     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9990     postinstall_cmds='base_file=`basename \${file}`~
9991       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9992       dldir=$destdir/`dirname \$dlpath`~
9993       test -d \$dldir || mkdir -p \$dldir~
9994       $install_prog $dir/$dlname \$dldir/$dlname'
9995     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9996       dlpath=$dir/\$dldll~
9997        $RM \$dlpath'
9998     shlibpath_overrides_runpath=yes
9999     dynamic_linker='Win32 link.exe'
10000     ;;
10001
10002   *)
10003     # Assume MSVC wrapper
10004     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10005     dynamic_linker='Win32 ld.exe'
10006     ;;
10007   esac
10008   # FIXME: first we should search . and the directory the executable is in
10009   shlibpath_var=PATH
10010   ;;
10011
10012 darwin* | rhapsody*)
10013   dynamic_linker="$host_os dyld"
10014   version_type=darwin
10015   need_lib_prefix=no
10016   need_version=no
10017   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10018   soname_spec='${libname}${release}${major}$shared_ext'
10019   shlibpath_overrides_runpath=yes
10020   shlibpath_var=DYLD_LIBRARY_PATH
10021   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10022
10023   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10024   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10025   ;;
10026
10027 dgux*)
10028   version_type=linux
10029   need_lib_prefix=no
10030   need_version=no
10031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10032   soname_spec='${libname}${release}${shared_ext}$major'
10033   shlibpath_var=LD_LIBRARY_PATH
10034   ;;
10035
10036 freebsd1*)
10037   dynamic_linker=no
10038   ;;
10039
10040 freebsd* | dragonfly*)
10041   # DragonFly does not have aout.  When/if they implement a new
10042   # versioning mechanism, adjust this.
10043   if test -x /usr/bin/objformat; then
10044     objformat=`/usr/bin/objformat`
10045   else
10046     case $host_os in
10047     freebsd[123]*) objformat=aout ;;
10048     *) objformat=elf ;;
10049     esac
10050   fi
10051   version_type=freebsd-$objformat
10052   case $version_type in
10053     freebsd-elf*)
10054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10055       need_version=no
10056       need_lib_prefix=no
10057       ;;
10058     freebsd-*)
10059       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10060       need_version=yes
10061       ;;
10062   esac
10063   shlibpath_var=LD_LIBRARY_PATH
10064   case $host_os in
10065   freebsd2*)
10066     shlibpath_overrides_runpath=yes
10067     ;;
10068   freebsd3.[01]* | freebsdelf3.[01]*)
10069     shlibpath_overrides_runpath=yes
10070     hardcode_into_libs=yes
10071     ;;
10072   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10073   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10074     shlibpath_overrides_runpath=no
10075     hardcode_into_libs=yes
10076     ;;
10077   *) # from 4.6 on, and DragonFly
10078     shlibpath_overrides_runpath=yes
10079     hardcode_into_libs=yes
10080     ;;
10081   esac
10082   ;;
10083
10084 gnu*)
10085   version_type=linux
10086   need_lib_prefix=no
10087   need_version=no
10088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10089   soname_spec='${libname}${release}${shared_ext}$major'
10090   shlibpath_var=LD_LIBRARY_PATH
10091   hardcode_into_libs=yes
10092   ;;
10093
10094 haiku*)
10095   version_type=linux
10096   need_lib_prefix=no
10097   need_version=no
10098   dynamic_linker="$host_os runtime_loader"
10099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10100   soname_spec='${libname}${release}${shared_ext}$major'
10101   shlibpath_var=LIBRARY_PATH
10102   shlibpath_overrides_runpath=yes
10103   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10104   hardcode_into_libs=yes
10105   ;;
10106
10107 hpux9* | hpux10* | hpux11*)
10108   # Give a soname corresponding to the major version so that dld.sl refuses to
10109   # link against other versions.
10110   version_type=sunos
10111   need_lib_prefix=no
10112   need_version=no
10113   case $host_cpu in
10114   ia64*)
10115     shrext_cmds='.so'
10116     hardcode_into_libs=yes
10117     dynamic_linker="$host_os dld.so"
10118     shlibpath_var=LD_LIBRARY_PATH
10119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     soname_spec='${libname}${release}${shared_ext}$major'
10122     if test "X$HPUX_IA64_MODE" = X32; then
10123       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10124     else
10125       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10126     fi
10127     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10128     ;;
10129   hppa*64*)
10130     shrext_cmds='.sl'
10131     hardcode_into_libs=yes
10132     dynamic_linker="$host_os dld.sl"
10133     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10134     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136     soname_spec='${libname}${release}${shared_ext}$major'
10137     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10138     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139     ;;
10140   *)
10141     shrext_cmds='.sl'
10142     dynamic_linker="$host_os dld.sl"
10143     shlibpath_var=SHLIB_PATH
10144     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146     soname_spec='${libname}${release}${shared_ext}$major'
10147     ;;
10148   esac
10149   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10150   postinstall_cmds='chmod 555 $lib'
10151   # or fails outright, so override atomically:
10152   install_override_mode=555
10153   ;;
10154
10155 interix[3-9]*)
10156   version_type=linux
10157   need_lib_prefix=no
10158   need_version=no
10159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10160   soname_spec='${libname}${release}${shared_ext}$major'
10161   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10162   shlibpath_var=LD_LIBRARY_PATH
10163   shlibpath_overrides_runpath=no
10164   hardcode_into_libs=yes
10165   ;;
10166
10167 irix5* | irix6* | nonstopux*)
10168   case $host_os in
10169     nonstopux*) version_type=nonstopux ;;
10170     *)
10171         if test "$lt_cv_prog_gnu_ld" = yes; then
10172                 version_type=linux
10173         else
10174                 version_type=irix
10175         fi ;;
10176   esac
10177   need_lib_prefix=no
10178   need_version=no
10179   soname_spec='${libname}${release}${shared_ext}$major'
10180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10181   case $host_os in
10182   irix5* | nonstopux*)
10183     libsuff= shlibsuff=
10184     ;;
10185   *)
10186     case $LD in # libtool.m4 will add one of these switches to LD
10187     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10188       libsuff= shlibsuff= libmagic=32-bit;;
10189     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10190       libsuff=32 shlibsuff=N32 libmagic=N32;;
10191     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10192       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10193     *) libsuff= shlibsuff= libmagic=never-match;;
10194     esac
10195     ;;
10196   esac
10197   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10198   shlibpath_overrides_runpath=no
10199   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10200   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10201   hardcode_into_libs=yes
10202   ;;
10203
10204 # No shared lib support for Linux oldld, aout, or coff.
10205 linux*oldld* | linux*aout* | linux*coff*)
10206   dynamic_linker=no
10207   ;;
10208
10209 # This must be Linux ELF.
10210 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10211   version_type=linux
10212   need_lib_prefix=no
10213   need_version=no
10214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215   soname_spec='${libname}${release}${shared_ext}$major'
10216   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10217   shlibpath_var=LD_LIBRARY_PATH
10218   shlibpath_overrides_runpath=no
10219
10220   # Some binutils ld are patched to set DT_RUNPATH
10221   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10222   $as_echo_n "(cached) " >&6
10223 else
10224   lt_cv_shlibpath_overrides_runpath=no
10225     save_LDFLAGS=$LDFLAGS
10226     save_libdir=$libdir
10227     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10228          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h.  */
10231
10232 int
10233 main ()
10234 {
10235
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"; then :
10241   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10242   lt_cv_shlibpath_overrides_runpath=yes
10243 fi
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext \
10246     conftest$ac_exeext conftest.$ac_ext
10247     LDFLAGS=$save_LDFLAGS
10248     libdir=$save_libdir
10249
10250 fi
10251
10252   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10253
10254   # This implies no fast_install, which is unacceptable.
10255   # Some rework will be needed to allow for fast_install
10256   # before this can be enabled.
10257   hardcode_into_libs=yes
10258
10259   # Append ld.so.conf contents to the search path
10260   if test -f /etc/ld.so.conf; then
10261     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' ' '`
10262     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10263   fi
10264
10265   # We used to test for /lib/ld.so.1 and disable shared libraries on
10266   # powerpc, because MkLinux only supported shared libraries with the
10267   # GNU dynamic linker.  Since this was broken with cross compilers,
10268   # most powerpc-linux boxes support dynamic linking these days and
10269   # people can always --disable-shared, the test was removed, and we
10270   # assume the GNU/Linux dynamic linker is in use.
10271   dynamic_linker='GNU/Linux ld.so'
10272   ;;
10273
10274 netbsd*)
10275   version_type=sunos
10276   need_lib_prefix=no
10277   need_version=no
10278   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281     dynamic_linker='NetBSD (a.out) ld.so'
10282   else
10283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284     soname_spec='${libname}${release}${shared_ext}$major'
10285     dynamic_linker='NetBSD ld.elf_so'
10286   fi
10287   shlibpath_var=LD_LIBRARY_PATH
10288   shlibpath_overrides_runpath=yes
10289   hardcode_into_libs=yes
10290   ;;
10291
10292 newsos6)
10293   version_type=linux
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295   shlibpath_var=LD_LIBRARY_PATH
10296   shlibpath_overrides_runpath=yes
10297   ;;
10298
10299 *nto* | *qnx*)
10300   version_type=qnx
10301   need_lib_prefix=no
10302   need_version=no
10303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304   soname_spec='${libname}${release}${shared_ext}$major'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   shlibpath_overrides_runpath=no
10307   hardcode_into_libs=yes
10308   dynamic_linker='ldqnx.so'
10309   ;;
10310
10311 openbsd*)
10312   version_type=sunos
10313   sys_lib_dlsearch_path_spec="/usr/lib"
10314   need_lib_prefix=no
10315   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10316   case $host_os in
10317     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10318     *)                          need_version=no  ;;
10319   esac
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10324     case $host_os in
10325       openbsd2.[89] | openbsd2.[89].*)
10326         shlibpath_overrides_runpath=no
10327         ;;
10328       *)
10329         shlibpath_overrides_runpath=yes
10330         ;;
10331       esac
10332   else
10333     shlibpath_overrides_runpath=yes
10334   fi
10335   ;;
10336
10337 os2*)
10338   libname_spec='$name'
10339   shrext_cmds=".dll"
10340   need_lib_prefix=no
10341   library_names_spec='$libname${shared_ext} $libname.a'
10342   dynamic_linker='OS/2 ld.exe'
10343   shlibpath_var=LIBPATH
10344   ;;
10345
10346 osf3* | osf4* | osf5*)
10347   version_type=osf
10348   need_lib_prefix=no
10349   need_version=no
10350   soname_spec='${libname}${release}${shared_ext}$major'
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352   shlibpath_var=LD_LIBRARY_PATH
10353   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10354   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10355   ;;
10356
10357 rdos*)
10358   dynamic_linker=no
10359   ;;
10360
10361 solaris*)
10362   version_type=linux
10363   need_lib_prefix=no
10364   need_version=no
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366   soname_spec='${libname}${release}${shared_ext}$major'
10367   shlibpath_var=LD_LIBRARY_PATH
10368   shlibpath_overrides_runpath=yes
10369   hardcode_into_libs=yes
10370   # ldd complains unless libraries are executable
10371   postinstall_cmds='chmod +x $lib'
10372   ;;
10373
10374 sunos4*)
10375   version_type=sunos
10376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10377   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10378   shlibpath_var=LD_LIBRARY_PATH
10379   shlibpath_overrides_runpath=yes
10380   if test "$with_gnu_ld" = yes; then
10381     need_lib_prefix=no
10382   fi
10383   need_version=yes
10384   ;;
10385
10386 sysv4 | sysv4.3*)
10387   version_type=linux
10388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389   soname_spec='${libname}${release}${shared_ext}$major'
10390   shlibpath_var=LD_LIBRARY_PATH
10391   case $host_vendor in
10392     sni)
10393       shlibpath_overrides_runpath=no
10394       need_lib_prefix=no
10395       runpath_var=LD_RUN_PATH
10396       ;;
10397     siemens)
10398       need_lib_prefix=no
10399       ;;
10400     motorola)
10401       need_lib_prefix=no
10402       need_version=no
10403       shlibpath_overrides_runpath=no
10404       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10405       ;;
10406   esac
10407   ;;
10408
10409 sysv4*MP*)
10410   if test -d /usr/nec ;then
10411     version_type=linux
10412     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413     soname_spec='$libname${shared_ext}.$major'
10414     shlibpath_var=LD_LIBRARY_PATH
10415   fi
10416   ;;
10417
10418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10419   version_type=freebsd-elf
10420   need_lib_prefix=no
10421   need_version=no
10422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10423   soname_spec='${libname}${release}${shared_ext}$major'
10424   shlibpath_var=LD_LIBRARY_PATH
10425   shlibpath_overrides_runpath=yes
10426   hardcode_into_libs=yes
10427   if test "$with_gnu_ld" = yes; then
10428     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10429   else
10430     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10431     case $host_os in
10432       sco3.2v5*)
10433         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10434         ;;
10435     esac
10436   fi
10437   sys_lib_dlsearch_path_spec='/usr/lib'
10438   ;;
10439
10440 tpf*)
10441   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10442   version_type=linux
10443   need_lib_prefix=no
10444   need_version=no
10445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446   shlibpath_var=LD_LIBRARY_PATH
10447   shlibpath_overrides_runpath=no
10448   hardcode_into_libs=yes
10449   ;;
10450
10451 uts4*)
10452   version_type=linux
10453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454   soname_spec='${libname}${release}${shared_ext}$major'
10455   shlibpath_var=LD_LIBRARY_PATH
10456   ;;
10457
10458 *)
10459   dynamic_linker=no
10460   ;;
10461 esac
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10463 $as_echo "$dynamic_linker" >&6; }
10464 test "$dynamic_linker" = no && can_build_shared=no
10465
10466 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10467 if test "$GCC" = yes; then
10468   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10469 fi
10470
10471 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10472   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10473 fi
10474 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10475   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10476 fi
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10570 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10571 hardcode_action=
10572 if test -n "$hardcode_libdir_flag_spec" ||
10573    test -n "$runpath_var" ||
10574    test "X$hardcode_automatic" = "Xyes" ; then
10575
10576   # We can hardcode non-existent directories.
10577   if test "$hardcode_direct" != no &&
10578      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10579      # have to relink, otherwise we might link with an installed library
10580      # when we should be linking with a yet-to-be-installed one
10581      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10582      test "$hardcode_minus_L" != no; then
10583     # Linking always hardcodes the temporary library directory.
10584     hardcode_action=relink
10585   else
10586     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10587     hardcode_action=immediate
10588   fi
10589 else
10590   # We cannot hardcode anything, or else we can only hardcode existing
10591   # directories.
10592   hardcode_action=unsupported
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10595 $as_echo "$hardcode_action" >&6; }
10596
10597 if test "$hardcode_action" = relink ||
10598    test "$inherit_rpath" = yes; then
10599   # Fast installation is not supported
10600   enable_fast_install=no
10601 elif test "$shlibpath_overrides_runpath" = yes ||
10602      test "$enable_shared" = no; then
10603   # Fast installation is not necessary
10604   enable_fast_install=needless
10605 fi
10606
10607
10608
10609
10610
10611
10612   if test "x$enable_dlopen" != xyes; then
10613   enable_dlopen=unknown
10614   enable_dlopen_self=unknown
10615   enable_dlopen_self_static=unknown
10616 else
10617   lt_cv_dlopen=no
10618   lt_cv_dlopen_libs=
10619
10620   case $host_os in
10621   beos*)
10622     lt_cv_dlopen="load_add_on"
10623     lt_cv_dlopen_libs=
10624     lt_cv_dlopen_self=yes
10625     ;;
10626
10627   mingw* | pw32* | cegcc*)
10628     lt_cv_dlopen="LoadLibrary"
10629     lt_cv_dlopen_libs=
10630     ;;
10631
10632   cygwin*)
10633     lt_cv_dlopen="dlopen"
10634     lt_cv_dlopen_libs=
10635     ;;
10636
10637   darwin*)
10638   # if libdl is installed we need to link against it
10639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10641 if ${ac_cv_lib_dl_dlopen+:} false; then :
10642   $as_echo_n "(cached) " >&6
10643 else
10644   ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-ldl  $LIBS"
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h.  */
10648
10649 /* Override any GCC internal prototype to avoid an error.
10650    Use char because int might match the return type of a GCC
10651    builtin and then its argument prototype would still apply.  */
10652 #ifdef __cplusplus
10653 extern "C"
10654 #endif
10655 char dlopen ();
10656 int
10657 main ()
10658 {
10659 return dlopen ();
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 if ac_fn_c_try_link "$LINENO"; then :
10665   ac_cv_lib_dl_dlopen=yes
10666 else
10667   ac_cv_lib_dl_dlopen=no
10668 fi
10669 rm -f core conftest.err conftest.$ac_objext \
10670     conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10672 fi
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10675 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10676   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10677 else
10678
10679     lt_cv_dlopen="dyld"
10680     lt_cv_dlopen_libs=
10681     lt_cv_dlopen_self=yes
10682
10683 fi
10684
10685     ;;
10686
10687   *)
10688     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10689 if test "x$ac_cv_func_shl_load" = xyes; then :
10690   lt_cv_dlopen="shl_load"
10691 else
10692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10693 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10694 if ${ac_cv_lib_dld_shl_load+:} false; then :
10695   $as_echo_n "(cached) " >&6
10696 else
10697   ac_check_lib_save_LIBS=$LIBS
10698 LIBS="-ldld  $LIBS"
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h.  */
10701
10702 /* Override any GCC internal prototype to avoid an error.
10703    Use char because int might match the return type of a GCC
10704    builtin and then its argument prototype would still apply.  */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char shl_load ();
10709 int
10710 main ()
10711 {
10712 return shl_load ();
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718   ac_cv_lib_dld_shl_load=yes
10719 else
10720   ac_cv_lib_dld_shl_load=no
10721 fi
10722 rm -f core conftest.err conftest.$ac_objext \
10723     conftest$ac_exeext conftest.$ac_ext
10724 LIBS=$ac_check_lib_save_LIBS
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10727 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10728 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10729   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10730 else
10731   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10732 if test "x$ac_cv_func_dlopen" = xyes; then :
10733   lt_cv_dlopen="dlopen"
10734 else
10735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10736 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10737 if ${ac_cv_lib_dl_dlopen+:} false; then :
10738   $as_echo_n "(cached) " >&6
10739 else
10740   ac_check_lib_save_LIBS=$LIBS
10741 LIBS="-ldl  $LIBS"
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h.  */
10744
10745 /* Override any GCC internal prototype to avoid an error.
10746    Use char because int might match the return type of a GCC
10747    builtin and then its argument prototype would still apply.  */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char dlopen ();
10752 int
10753 main ()
10754 {
10755 return dlopen ();
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_c_try_link "$LINENO"; then :
10761   ac_cv_lib_dl_dlopen=yes
10762 else
10763   ac_cv_lib_dl_dlopen=no
10764 fi
10765 rm -f core conftest.err conftest.$ac_objext \
10766     conftest$ac_exeext conftest.$ac_ext
10767 LIBS=$ac_check_lib_save_LIBS
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10770 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10771 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10772   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10773 else
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10775 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10776 if ${ac_cv_lib_svld_dlopen+:} false; then :
10777   $as_echo_n "(cached) " >&6
10778 else
10779   ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lsvld  $LIBS"
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785    Use char because int might match the return type of a GCC
10786    builtin and then its argument prototype would still apply.  */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char dlopen ();
10791 int
10792 main ()
10793 {
10794 return dlopen ();
10795   ;
10796   return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_link "$LINENO"; then :
10800   ac_cv_lib_svld_dlopen=yes
10801 else
10802   ac_cv_lib_svld_dlopen=no
10803 fi
10804 rm -f core conftest.err conftest.$ac_objext \
10805     conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10807 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10809 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10810 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10811   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10812 else
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10814 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10815 if ${ac_cv_lib_dld_dld_link+:} false; then :
10816   $as_echo_n "(cached) " >&6
10817 else
10818   ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-ldld  $LIBS"
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h.  */
10822
10823 /* Override any GCC internal prototype to avoid an error.
10824    Use char because int might match the return type of a GCC
10825    builtin and then its argument prototype would still apply.  */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 char dld_link ();
10830 int
10831 main ()
10832 {
10833 return dld_link ();
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"; then :
10839   ac_cv_lib_dld_dld_link=yes
10840 else
10841   ac_cv_lib_dld_dld_link=no
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext \
10844     conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10846 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10848 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10849 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10850   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10851 fi
10852
10853
10854 fi
10855
10856
10857 fi
10858
10859
10860 fi
10861
10862
10863 fi
10864
10865
10866 fi
10867
10868     ;;
10869   esac
10870
10871   if test "x$lt_cv_dlopen" != xno; then
10872     enable_dlopen=yes
10873   else
10874     enable_dlopen=no
10875   fi
10876
10877   case $lt_cv_dlopen in
10878   dlopen)
10879     save_CPPFLAGS="$CPPFLAGS"
10880     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10881
10882     save_LDFLAGS="$LDFLAGS"
10883     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10884
10885     save_LIBS="$LIBS"
10886     LIBS="$lt_cv_dlopen_libs $LIBS"
10887
10888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10889 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10890 if ${lt_cv_dlopen_self+:} false; then :
10891   $as_echo_n "(cached) " >&6
10892 else
10893           if test "$cross_compiling" = yes; then :
10894   lt_cv_dlopen_self=cross
10895 else
10896   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10897   lt_status=$lt_dlunknown
10898   cat > conftest.$ac_ext <<_LT_EOF
10899 #line $LINENO "configure"
10900 #include "confdefs.h"
10901
10902 #if HAVE_DLFCN_H
10903 #include <dlfcn.h>
10904 #endif
10905
10906 #include <stdio.h>
10907
10908 #ifdef RTLD_GLOBAL
10909 #  define LT_DLGLOBAL           RTLD_GLOBAL
10910 #else
10911 #  ifdef DL_GLOBAL
10912 #    define LT_DLGLOBAL         DL_GLOBAL
10913 #  else
10914 #    define LT_DLGLOBAL         0
10915 #  endif
10916 #endif
10917
10918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10919    find out it does not work in some platform. */
10920 #ifndef LT_DLLAZY_OR_NOW
10921 #  ifdef RTLD_LAZY
10922 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10923 #  else
10924 #    ifdef DL_LAZY
10925 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10926 #    else
10927 #      ifdef RTLD_NOW
10928 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10929 #      else
10930 #        ifdef DL_NOW
10931 #          define LT_DLLAZY_OR_NOW      DL_NOW
10932 #        else
10933 #          define LT_DLLAZY_OR_NOW      0
10934 #        endif
10935 #      endif
10936 #    endif
10937 #  endif
10938 #endif
10939
10940 /* When -fvisbility=hidden is used, assume the code has been annotated
10941    correspondingly for the symbols needed.  */
10942 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10943 int fnord () __attribute__((visibility("default")));
10944 #endif
10945
10946 int fnord () { return 42; }
10947 int main ()
10948 {
10949   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10950   int status = $lt_dlunknown;
10951
10952   if (self)
10953     {
10954       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10955       else
10956         {
10957           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10958           else puts (dlerror ());
10959         }
10960       /* dlclose (self); */
10961     }
10962   else
10963     puts (dlerror ());
10964
10965   return status;
10966 }
10967 _LT_EOF
10968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10969   (eval $ac_link) 2>&5
10970   ac_status=$?
10971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10972   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10973     (./conftest; exit; ) >&5 2>/dev/null
10974     lt_status=$?
10975     case x$lt_status in
10976       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10977       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10978       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10979     esac
10980   else :
10981     # compilation failed
10982     lt_cv_dlopen_self=no
10983   fi
10984 fi
10985 rm -fr conftest*
10986
10987
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10990 $as_echo "$lt_cv_dlopen_self" >&6; }
10991
10992     if test "x$lt_cv_dlopen_self" = xyes; then
10993       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10994       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10995 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10996 if ${lt_cv_dlopen_self_static+:} false; then :
10997   $as_echo_n "(cached) " >&6
10998 else
10999           if test "$cross_compiling" = yes; then :
11000   lt_cv_dlopen_self_static=cross
11001 else
11002   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11003   lt_status=$lt_dlunknown
11004   cat > conftest.$ac_ext <<_LT_EOF
11005 #line $LINENO "configure"
11006 #include "confdefs.h"
11007
11008 #if HAVE_DLFCN_H
11009 #include <dlfcn.h>
11010 #endif
11011
11012 #include <stdio.h>
11013
11014 #ifdef RTLD_GLOBAL
11015 #  define LT_DLGLOBAL           RTLD_GLOBAL
11016 #else
11017 #  ifdef DL_GLOBAL
11018 #    define LT_DLGLOBAL         DL_GLOBAL
11019 #  else
11020 #    define LT_DLGLOBAL         0
11021 #  endif
11022 #endif
11023
11024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11025    find out it does not work in some platform. */
11026 #ifndef LT_DLLAZY_OR_NOW
11027 #  ifdef RTLD_LAZY
11028 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11029 #  else
11030 #    ifdef DL_LAZY
11031 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11032 #    else
11033 #      ifdef RTLD_NOW
11034 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11035 #      else
11036 #        ifdef DL_NOW
11037 #          define LT_DLLAZY_OR_NOW      DL_NOW
11038 #        else
11039 #          define LT_DLLAZY_OR_NOW      0
11040 #        endif
11041 #      endif
11042 #    endif
11043 #  endif
11044 #endif
11045
11046 /* When -fvisbility=hidden is used, assume the code has been annotated
11047    correspondingly for the symbols needed.  */
11048 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11049 int fnord () __attribute__((visibility("default")));
11050 #endif
11051
11052 int fnord () { return 42; }
11053 int main ()
11054 {
11055   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11056   int status = $lt_dlunknown;
11057
11058   if (self)
11059     {
11060       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11061       else
11062         {
11063           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11064           else puts (dlerror ());
11065         }
11066       /* dlclose (self); */
11067     }
11068   else
11069     puts (dlerror ());
11070
11071   return status;
11072 }
11073 _LT_EOF
11074   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11075   (eval $ac_link) 2>&5
11076   ac_status=$?
11077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11078   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11079     (./conftest; exit; ) >&5 2>/dev/null
11080     lt_status=$?
11081     case x$lt_status in
11082       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11083       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11084       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11085     esac
11086   else :
11087     # compilation failed
11088     lt_cv_dlopen_self_static=no
11089   fi
11090 fi
11091 rm -fr conftest*
11092
11093
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11096 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11097     fi
11098
11099     CPPFLAGS="$save_CPPFLAGS"
11100     LDFLAGS="$save_LDFLAGS"
11101     LIBS="$save_LIBS"
11102     ;;
11103   esac
11104
11105   case $lt_cv_dlopen_self in
11106   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11107   *) enable_dlopen_self=unknown ;;
11108   esac
11109
11110   case $lt_cv_dlopen_self_static in
11111   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11112   *) enable_dlopen_self_static=unknown ;;
11113   esac
11114 fi
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132 striplib=
11133 old_striplib=
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11135 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11136 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11137   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11138   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11140 $as_echo "yes" >&6; }
11141 else
11142 # FIXME - insert some real tests, host_os isn't really good enough
11143   case $host_os in
11144   darwin*)
11145     if test -n "$STRIP" ; then
11146       striplib="$STRIP -x"
11147       old_striplib="$STRIP -S"
11148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149 $as_echo "yes" >&6; }
11150     else
11151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11153     fi
11154     ;;
11155   *)
11156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158     ;;
11159   esac
11160 fi
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173   # Report which library types will actually be built
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11175 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11177 $as_echo "$can_build_shared" >&6; }
11178
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11180 $as_echo_n "checking whether to build shared libraries... " >&6; }
11181   test "$can_build_shared" = "no" && enable_shared=no
11182
11183   # On AIX, shared libraries and static libraries use the same namespace, and
11184   # are all built from PIC.
11185   case $host_os in
11186   aix3*)
11187     test "$enable_shared" = yes && enable_static=no
11188     if test -n "$RANLIB"; then
11189       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11190       postinstall_cmds='$RANLIB $lib'
11191     fi
11192     ;;
11193
11194   aix[4-9]*)
11195     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11196       test "$enable_shared" = yes && enable_static=no
11197     fi
11198     ;;
11199   esac
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11201 $as_echo "$enable_shared" >&6; }
11202
11203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11204 $as_echo_n "checking whether to build static libraries... " >&6; }
11205   # Make sure either enable_shared or enable_static is yes.
11206   test "$enable_shared" = yes || enable_static=yes
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11208 $as_echo "$enable_static" >&6; }
11209
11210
11211
11212
11213 fi
11214 ac_ext=c
11215 ac_cpp='$CPP $CPPFLAGS'
11216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11219
11220 CC="$lt_save_CC"
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234         ac_config_commands="$ac_config_commands libtool"
11235
11236
11237
11238
11239 # Only expand once:
11240
11241
11242
11243 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11256 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11257 if ${ac_cv_prog_cc_c99+:} false; then :
11258   $as_echo_n "(cached) " >&6
11259 else
11260   ac_cv_prog_cc_c99=no
11261 ac_save_CC=$CC
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h.  */
11264 #include <stdarg.h>
11265 #include <stdbool.h>
11266 #include <stdlib.h>
11267 #include <wchar.h>
11268 #include <stdio.h>
11269
11270 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11271 #define debug(...) fprintf (stderr, __VA_ARGS__)
11272 #define showlist(...) puts (#__VA_ARGS__)
11273 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11274 static void
11275 test_varargs_macros (void)
11276 {
11277   int x = 1234;
11278   int y = 5678;
11279   debug ("Flag");
11280   debug ("X = %d\n", x);
11281   showlist (The first, second, and third items.);
11282   report (x>y, "x is %d but y is %d", x, y);
11283 }
11284
11285 // Check long long types.
11286 #define BIG64 18446744073709551615ull
11287 #define BIG32 4294967295ul
11288 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11289 #if !BIG_OK
11290   your preprocessor is broken;
11291 #endif
11292 #if BIG_OK
11293 #else
11294   your preprocessor is broken;
11295 #endif
11296 static long long int bignum = -9223372036854775807LL;
11297 static unsigned long long int ubignum = BIG64;
11298
11299 struct incomplete_array
11300 {
11301   int datasize;
11302   double data[];
11303 };
11304
11305 struct named_init {
11306   int number;
11307   const wchar_t *name;
11308   double average;
11309 };
11310
11311 typedef const char *ccp;
11312
11313 static inline int
11314 test_restrict (ccp restrict text)
11315 {
11316   // See if C++-style comments work.
11317   // Iterate through items via the restricted pointer.
11318   // Also check for declarations in for loops.
11319   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11320     continue;
11321   return 0;
11322 }
11323
11324 // Check varargs and va_copy.
11325 static void
11326 test_varargs (const char *format, ...)
11327 {
11328   va_list args;
11329   va_start (args, format);
11330   va_list args_copy;
11331   va_copy (args_copy, args);
11332
11333   const char *str;
11334   int number;
11335   float fnumber;
11336
11337   while (*format)
11338     {
11339       switch (*format++)
11340         {
11341         case 's': // string
11342           str = va_arg (args_copy, const char *);
11343           break;
11344         case 'd': // int
11345           number = va_arg (args_copy, int);
11346           break;
11347         case 'f': // float
11348           fnumber = va_arg (args_copy, double);
11349           break;
11350         default:
11351           break;
11352         }
11353     }
11354   va_end (args_copy);
11355   va_end (args);
11356 }
11357
11358 int
11359 main ()
11360 {
11361
11362   // Check bool.
11363   _Bool success = false;
11364
11365   // Check restrict.
11366   if (test_restrict ("String literal") == 0)
11367     success = true;
11368   char *restrict newvar = "Another string";
11369
11370   // Check varargs.
11371   test_varargs ("s, d' f .", "string", 65, 34.234);
11372   test_varargs_macros ();
11373
11374   // Check flexible array members.
11375   struct incomplete_array *ia =
11376     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11377   ia->datasize = 10;
11378   for (int i = 0; i < ia->datasize; ++i)
11379     ia->data[i] = i * 1.234;
11380
11381   // Check named initializers.
11382   struct named_init ni = {
11383     .number = 34,
11384     .name = L"Test wide string",
11385     .average = 543.34343,
11386   };
11387
11388   ni.number = 58;
11389
11390   int dynamic_array[ni.number];
11391   dynamic_array[ni.number - 1] = 543;
11392
11393   // work around unused variable warnings
11394   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11395           || dynamic_array[ni.number - 1] != 543);
11396
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11402 do
11403   CC="$ac_save_CC $ac_arg"
11404   if ac_fn_c_try_compile "$LINENO"; then :
11405   ac_cv_prog_cc_c99=$ac_arg
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext
11408   test "x$ac_cv_prog_cc_c99" != "xno" && break
11409 done
11410 rm -f conftest.$ac_ext
11411 CC=$ac_save_CC
11412
11413 fi
11414 # AC_CACHE_VAL
11415 case "x$ac_cv_prog_cc_c99" in
11416   x)
11417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11418 $as_echo "none needed" >&6; } ;;
11419   xno)
11420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11421 $as_echo "unsupported" >&6; } ;;
11422   *)
11423     CC="$CC $ac_cv_prog_cc_c99"
11424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11425 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11426 esac
11427 if test "x$ac_cv_prog_cc_c99" != xno; then :
11428
11429 fi
11430
11431
11432
11433
11434
11435
11436 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11437 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11438   CLANGCC="yes"
11439 else
11440   CLANGCC="no"
11441 fi
11442
11443 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11444 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11445   INTELCC="yes"
11446 else
11447   INTELCC="no"
11448 fi
11449
11450 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11451 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11452   SUNCC="yes"
11453 else
11454   SUNCC="no"
11455 fi
11456
11457
11458
11459
11460 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11461         if test -n "$ac_tool_prefix"; then
11462   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11463 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11467   $as_echo_n "(cached) " >&6
11468 else
11469   case $PKG_CONFIG in
11470   [\\/]* | ?:[\\/]*)
11471   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11472   ;;
11473   *)
11474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11476 do
11477   IFS=$as_save_IFS
11478   test -z "$as_dir" && as_dir=.
11479     for ac_exec_ext in '' $ac_executable_extensions; do
11480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483     break 2
11484   fi
11485 done
11486   done
11487 IFS=$as_save_IFS
11488
11489   ;;
11490 esac
11491 fi
11492 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11493 if test -n "$PKG_CONFIG"; then
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11495 $as_echo "$PKG_CONFIG" >&6; }
11496 else
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11499 fi
11500
11501
11502 fi
11503 if test -z "$ac_cv_path_PKG_CONFIG"; then
11504   ac_pt_PKG_CONFIG=$PKG_CONFIG
11505   # Extract the first word of "pkg-config", so it can be a program name with args.
11506 set dummy pkg-config; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   case $ac_pt_PKG_CONFIG in
11513   [\\/]* | ?:[\\/]*)
11514   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11515   ;;
11516   *)
11517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11519 do
11520   IFS=$as_save_IFS
11521   test -z "$as_dir" && as_dir=.
11522     for ac_exec_ext in '' $ac_executable_extensions; do
11523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11524     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529   done
11530 IFS=$as_save_IFS
11531
11532   ;;
11533 esac
11534 fi
11535 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11536 if test -n "$ac_pt_PKG_CONFIG"; then
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11538 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11539 else
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542 fi
11543
11544   if test "x$ac_pt_PKG_CONFIG" = x; then
11545     PKG_CONFIG=""
11546   else
11547     case $cross_compiling:$ac_tool_warned in
11548 yes:)
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11551 ac_tool_warned=yes ;;
11552 esac
11553     PKG_CONFIG=$ac_pt_PKG_CONFIG
11554   fi
11555 else
11556   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11557 fi
11558
11559 fi
11560 if test -n "$PKG_CONFIG"; then
11561         _pkg_min_version=0.9.0
11562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11563 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11564         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11565                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566 $as_echo "yes" >&6; }
11567         else
11568                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570                 PKG_CONFIG=""
11571         fi
11572
11573 fi
11574
11575
11576
11577
11578
11579 # Check whether --enable-selective-werror was given.
11580 if test "${enable_selective_werror+set}" = set; then :
11581   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11582 else
11583   SELECTIVE_WERROR=yes
11584 fi
11585
11586
11587
11588
11589
11590 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11591 if test "x$SUNCC" = "xyes"; then
11592     BASE_CFLAGS="-v"
11593 else
11594     BASE_CFLAGS=""
11595 fi
11596
11597 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609 xorg_testset_save_CFLAGS="$CFLAGS"
11610
11611 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11612         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11614 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11615 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h.  */
11620 int i;
11621 _ACEOF
11622 if ac_fn_c_try_compile "$LINENO"; then :
11623   xorg_cv_compiler_flag_unknown_warning_option=yes
11624 else
11625   xorg_cv_compiler_flag_unknown_warning_option=no
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11630 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11631         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11632         CFLAGS="$xorg_testset_save_CFLAGS"
11633 fi
11634
11635 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11636         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11637                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11638         fi
11639         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11641 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11642 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11643   $as_echo_n "(cached) " >&6
11644 else
11645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h.  */
11647 int i;
11648 _ACEOF
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650   xorg_cv_compiler_flag_unused_command_line_argument=yes
11651 else
11652   xorg_cv_compiler_flag_unused_command_line_argument=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11657 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11658         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11659         CFLAGS="$xorg_testset_save_CFLAGS"
11660 fi
11661
11662 found="no"
11663
11664         if test $found = "no" ; then
11665                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11666                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11667                 fi
11668
11669                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11670                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11671                 fi
11672
11673                 CFLAGS="$CFLAGS -Wall"
11674
11675                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11676 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11677                 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11678                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11679   $as_echo_n "(cached) " >&6
11680 else
11681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h.  */
11683 int i;
11684 int
11685 main ()
11686 {
11687
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 if ac_fn_c_try_link "$LINENO"; then :
11693   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11694 else
11695   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11696 fi
11697 rm -f core conftest.err conftest.$ac_objext \
11698     conftest$ac_exeext conftest.$ac_ext
11699 fi
11700
11701
11702                 CFLAGS="$xorg_testset_save_CFLAGS"
11703
11704                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11705                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11706 $as_echo "$supported" >&6; }
11707                 if test "$supported" = "yes" ; then
11708                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
11709                         found="yes"
11710                 fi
11711         fi
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725 xorg_testset_save_CFLAGS="$CFLAGS"
11726
11727 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11728         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11730 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11731 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11732   $as_echo_n "(cached) " >&6
11733 else
11734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h.  */
11736 int i;
11737 _ACEOF
11738 if ac_fn_c_try_compile "$LINENO"; then :
11739   xorg_cv_compiler_flag_unknown_warning_option=yes
11740 else
11741   xorg_cv_compiler_flag_unknown_warning_option=no
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11746 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11747         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11748         CFLAGS="$xorg_testset_save_CFLAGS"
11749 fi
11750
11751 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11752         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11753                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11754         fi
11755         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11757 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11758 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11759   $as_echo_n "(cached) " >&6
11760 else
11761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h.  */
11763 int i;
11764 _ACEOF
11765 if ac_fn_c_try_compile "$LINENO"; then :
11766   xorg_cv_compiler_flag_unused_command_line_argument=yes
11767 else
11768   xorg_cv_compiler_flag_unused_command_line_argument=no
11769 fi
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11773 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11774         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11775         CFLAGS="$xorg_testset_save_CFLAGS"
11776 fi
11777
11778 found="no"
11779
11780         if test $found = "no" ; then
11781                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11782                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11783                 fi
11784
11785                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11786                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11787                 fi
11788
11789                 CFLAGS="$CFLAGS -Wpointer-arith"
11790
11791                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11792 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11793                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11794                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11795   $as_echo_n "(cached) " >&6
11796 else
11797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h.  */
11799 int i;
11800 int
11801 main ()
11802 {
11803
11804   ;
11805   return 0;
11806 }
11807 _ACEOF
11808 if ac_fn_c_try_link "$LINENO"; then :
11809   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11810 else
11811   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11812 fi
11813 rm -f core conftest.err conftest.$ac_objext \
11814     conftest$ac_exeext conftest.$ac_ext
11815 fi
11816
11817
11818                 CFLAGS="$xorg_testset_save_CFLAGS"
11819
11820                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11821                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11822 $as_echo "$supported" >&6; }
11823                 if test "$supported" = "yes" ; then
11824                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11825                         found="yes"
11826                 fi
11827         fi
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841 xorg_testset_save_CFLAGS="$CFLAGS"
11842
11843 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11844         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11845         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11846 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11847 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11848   $as_echo_n "(cached) " >&6
11849 else
11850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h.  */
11852 int i;
11853 _ACEOF
11854 if ac_fn_c_try_compile "$LINENO"; then :
11855   xorg_cv_compiler_flag_unknown_warning_option=yes
11856 else
11857   xorg_cv_compiler_flag_unknown_warning_option=no
11858 fi
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11862 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11863         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11864         CFLAGS="$xorg_testset_save_CFLAGS"
11865 fi
11866
11867 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11868         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11869                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11870         fi
11871         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11873 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11874 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11875   $as_echo_n "(cached) " >&6
11876 else
11877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h.  */
11879 int i;
11880 _ACEOF
11881 if ac_fn_c_try_compile "$LINENO"; then :
11882   xorg_cv_compiler_flag_unused_command_line_argument=yes
11883 else
11884   xorg_cv_compiler_flag_unused_command_line_argument=no
11885 fi
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11889 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11890         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11891         CFLAGS="$xorg_testset_save_CFLAGS"
11892 fi
11893
11894 found="no"
11895
11896         if test $found = "no" ; then
11897                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11898                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11899                 fi
11900
11901                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11902                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11903                 fi
11904
11905                 CFLAGS="$CFLAGS -Wmissing-declarations"
11906
11907                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11908 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11909                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11910                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11911   $as_echo_n "(cached) " >&6
11912 else
11913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h.  */
11915 int i;
11916 int
11917 main ()
11918 {
11919
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"; then :
11925   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11926 else
11927   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext \
11930     conftest$ac_exeext conftest.$ac_ext
11931 fi
11932
11933
11934                 CFLAGS="$xorg_testset_save_CFLAGS"
11935
11936                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11937                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11938 $as_echo "$supported" >&6; }
11939                 if test "$supported" = "yes" ; then
11940                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11941                         found="yes"
11942                 fi
11943         fi
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957 xorg_testset_save_CFLAGS="$CFLAGS"
11958
11959 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11960         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11961         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11962 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11963 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11964   $as_echo_n "(cached) " >&6
11965 else
11966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h.  */
11968 int i;
11969 _ACEOF
11970 if ac_fn_c_try_compile "$LINENO"; then :
11971   xorg_cv_compiler_flag_unknown_warning_option=yes
11972 else
11973   xorg_cv_compiler_flag_unknown_warning_option=no
11974 fi
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11978 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11979         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11980         CFLAGS="$xorg_testset_save_CFLAGS"
11981 fi
11982
11983 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11984         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11985                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11986         fi
11987         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11989 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11990 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11991   $as_echo_n "(cached) " >&6
11992 else
11993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h.  */
11995 int i;
11996 _ACEOF
11997 if ac_fn_c_try_compile "$LINENO"; then :
11998   xorg_cv_compiler_flag_unused_command_line_argument=yes
11999 else
12000   xorg_cv_compiler_flag_unused_command_line_argument=no
12001 fi
12002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12003 fi
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12005 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12006         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12007         CFLAGS="$xorg_testset_save_CFLAGS"
12008 fi
12009
12010 found="no"
12011
12012         if test $found = "no" ; then
12013                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12014                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12015                 fi
12016
12017                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12018                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12019                 fi
12020
12021                 CFLAGS="$CFLAGS -Wformat=2"
12022
12023                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12024 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12025                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12026                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12027   $as_echo_n "(cached) " >&6
12028 else
12029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h.  */
12031 int i;
12032 int
12033 main ()
12034 {
12035
12036   ;
12037   return 0;
12038 }
12039 _ACEOF
12040 if ac_fn_c_try_link "$LINENO"; then :
12041   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12042 else
12043   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12044 fi
12045 rm -f core conftest.err conftest.$ac_objext \
12046     conftest$ac_exeext conftest.$ac_ext
12047 fi
12048
12049
12050                 CFLAGS="$xorg_testset_save_CFLAGS"
12051
12052                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12053                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12054 $as_echo "$supported" >&6; }
12055                 if test "$supported" = "yes" ; then
12056                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12057                         found="yes"
12058                 fi
12059         fi
12060
12061         if test $found = "no" ; then
12062                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12063                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12064                 fi
12065
12066                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12067                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12068                 fi
12069
12070                 CFLAGS="$CFLAGS -Wformat"
12071
12072                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12073 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12074                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12075                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h.  */
12080 int i;
12081 int
12082 main ()
12083 {
12084
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12091 else
12092   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095     conftest$ac_exeext conftest.$ac_ext
12096 fi
12097
12098
12099                 CFLAGS="$xorg_testset_save_CFLAGS"
12100
12101                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12103 $as_echo "$supported" >&6; }
12104                 if test "$supported" = "yes" ; then
12105                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12106                         found="yes"
12107                 fi
12108         fi
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124 xorg_testset_save_CFLAGS="$CFLAGS"
12125
12126 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12127         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12129 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12130 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12131   $as_echo_n "(cached) " >&6
12132 else
12133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h.  */
12135 int i;
12136 _ACEOF
12137 if ac_fn_c_try_compile "$LINENO"; then :
12138   xorg_cv_compiler_flag_unknown_warning_option=yes
12139 else
12140   xorg_cv_compiler_flag_unknown_warning_option=no
12141 fi
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12145 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12146         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12147         CFLAGS="$xorg_testset_save_CFLAGS"
12148 fi
12149
12150 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12151         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12152                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12153         fi
12154         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12156 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12157 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12158   $as_echo_n "(cached) " >&6
12159 else
12160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h.  */
12162 int i;
12163 _ACEOF
12164 if ac_fn_c_try_compile "$LINENO"; then :
12165   xorg_cv_compiler_flag_unused_command_line_argument=yes
12166 else
12167   xorg_cv_compiler_flag_unused_command_line_argument=no
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12172 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12173         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12174         CFLAGS="$xorg_testset_save_CFLAGS"
12175 fi
12176
12177 found="no"
12178
12179         if test $found = "no" ; then
12180                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12181                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12182                 fi
12183
12184                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12185                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12186                 fi
12187
12188                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12189
12190                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12191 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12192                 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12193                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12194   $as_echo_n "(cached) " >&6
12195 else
12196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h.  */
12198 int i;
12199 int
12200 main ()
12201 {
12202
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 if ac_fn_c_try_link "$LINENO"; then :
12208   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12209 else
12210   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12211 fi
12212 rm -f core conftest.err conftest.$ac_objext \
12213     conftest$ac_exeext conftest.$ac_ext
12214 fi
12215
12216
12217                 CFLAGS="$xorg_testset_save_CFLAGS"
12218
12219                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12220                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12221 $as_echo "$supported" >&6; }
12222                 if test "$supported" = "yes" ; then
12223                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12224                         found="yes"
12225                 fi
12226         fi
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 xorg_testset_save_CFLAGS="$CFLAGS"
12241
12242 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12243         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12245 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12246 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h.  */
12251 int i;
12252 _ACEOF
12253 if ac_fn_c_try_compile "$LINENO"; then :
12254   xorg_cv_compiler_flag_unknown_warning_option=yes
12255 else
12256   xorg_cv_compiler_flag_unknown_warning_option=no
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12261 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12262         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12263         CFLAGS="$xorg_testset_save_CFLAGS"
12264 fi
12265
12266 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12267         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12268                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12269         fi
12270         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12272 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12273 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278 int i;
12279 _ACEOF
12280 if ac_fn_c_try_compile "$LINENO"; then :
12281   xorg_cv_compiler_flag_unused_command_line_argument=yes
12282 else
12283   xorg_cv_compiler_flag_unused_command_line_argument=no
12284 fi
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286 fi
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12288 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12289         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12290         CFLAGS="$xorg_testset_save_CFLAGS"
12291 fi
12292
12293 found="no"
12294
12295         if test $found = "no" ; then
12296                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12297                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12298                 fi
12299
12300                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12301                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12302                 fi
12303
12304                 CFLAGS="$CFLAGS -Wmissing-prototypes"
12305
12306                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12307 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12308                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12309                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h.  */
12314 int i;
12315 int
12316 main ()
12317 {
12318
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_link "$LINENO"; then :
12324   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12325 else
12326   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12327 fi
12328 rm -f core conftest.err conftest.$ac_objext \
12329     conftest$ac_exeext conftest.$ac_ext
12330 fi
12331
12332
12333                 CFLAGS="$xorg_testset_save_CFLAGS"
12334
12335                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12336                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12337 $as_echo "$supported" >&6; }
12338                 if test "$supported" = "yes" ; then
12339                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12340                         found="yes"
12341                 fi
12342         fi
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356 xorg_testset_save_CFLAGS="$CFLAGS"
12357
12358 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12359         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12361 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12362 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h.  */
12367 int i;
12368 _ACEOF
12369 if ac_fn_c_try_compile "$LINENO"; then :
12370   xorg_cv_compiler_flag_unknown_warning_option=yes
12371 else
12372   xorg_cv_compiler_flag_unknown_warning_option=no
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 fi
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12377 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12378         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12379         CFLAGS="$xorg_testset_save_CFLAGS"
12380 fi
12381
12382 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12383         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12384                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12385         fi
12386         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12388 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12389 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12390   $as_echo_n "(cached) " >&6
12391 else
12392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h.  */
12394 int i;
12395 _ACEOF
12396 if ac_fn_c_try_compile "$LINENO"; then :
12397   xorg_cv_compiler_flag_unused_command_line_argument=yes
12398 else
12399   xorg_cv_compiler_flag_unused_command_line_argument=no
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 fi
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12404 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12405         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12406         CFLAGS="$xorg_testset_save_CFLAGS"
12407 fi
12408
12409 found="no"
12410
12411         if test $found = "no" ; then
12412                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12413                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12414                 fi
12415
12416                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12417                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12418                 fi
12419
12420                 CFLAGS="$CFLAGS -Wnested-externs"
12421
12422                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12423 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12424                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12425                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h.  */
12430 int i;
12431 int
12432 main ()
12433 {
12434
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12441 else
12442   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext \
12445     conftest$ac_exeext conftest.$ac_ext
12446 fi
12447
12448
12449                 CFLAGS="$xorg_testset_save_CFLAGS"
12450
12451                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12452                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12453 $as_echo "$supported" >&6; }
12454                 if test "$supported" = "yes" ; then
12455                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12456                         found="yes"
12457                 fi
12458         fi
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472 xorg_testset_save_CFLAGS="$CFLAGS"
12473
12474 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12475         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12477 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12478 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12479   $as_echo_n "(cached) " >&6
12480 else
12481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h.  */
12483 int i;
12484 _ACEOF
12485 if ac_fn_c_try_compile "$LINENO"; then :
12486   xorg_cv_compiler_flag_unknown_warning_option=yes
12487 else
12488   xorg_cv_compiler_flag_unknown_warning_option=no
12489 fi
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12493 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12494         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12495         CFLAGS="$xorg_testset_save_CFLAGS"
12496 fi
12497
12498 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12499         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12500                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12501         fi
12502         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12504 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12505 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12506   $as_echo_n "(cached) " >&6
12507 else
12508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h.  */
12510 int i;
12511 _ACEOF
12512 if ac_fn_c_try_compile "$LINENO"; then :
12513   xorg_cv_compiler_flag_unused_command_line_argument=yes
12514 else
12515   xorg_cv_compiler_flag_unused_command_line_argument=no
12516 fi
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12520 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12521         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12522         CFLAGS="$xorg_testset_save_CFLAGS"
12523 fi
12524
12525 found="no"
12526
12527         if test $found = "no" ; then
12528                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12529                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12530                 fi
12531
12532                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12533                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12534                 fi
12535
12536                 CFLAGS="$CFLAGS -Wbad-function-cast"
12537
12538                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12539 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12540                 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12541                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12542   $as_echo_n "(cached) " >&6
12543 else
12544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h.  */
12546 int i;
12547 int
12548 main ()
12549 {
12550
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12557 else
12558   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561     conftest$ac_exeext conftest.$ac_ext
12562 fi
12563
12564
12565                 CFLAGS="$xorg_testset_save_CFLAGS"
12566
12567                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12568                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12569 $as_echo "$supported" >&6; }
12570                 if test "$supported" = "yes" ; then
12571                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12572                         found="yes"
12573                 fi
12574         fi
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588 xorg_testset_save_CFLAGS="$CFLAGS"
12589
12590 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12591         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12593 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12594 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12595   $as_echo_n "(cached) " >&6
12596 else
12597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h.  */
12599 int i;
12600 _ACEOF
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602   xorg_cv_compiler_flag_unknown_warning_option=yes
12603 else
12604   xorg_cv_compiler_flag_unknown_warning_option=no
12605 fi
12606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12609 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12610         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12611         CFLAGS="$xorg_testset_save_CFLAGS"
12612 fi
12613
12614 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12615         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12616                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617         fi
12618         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12619         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12620 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12621 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12622   $as_echo_n "(cached) " >&6
12623 else
12624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h.  */
12626 int i;
12627 _ACEOF
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629   xorg_cv_compiler_flag_unused_command_line_argument=yes
12630 else
12631   xorg_cv_compiler_flag_unused_command_line_argument=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12636 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12637         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12638         CFLAGS="$xorg_testset_save_CFLAGS"
12639 fi
12640
12641 found="no"
12642
12643         if test $found = "no" ; then
12644                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12645                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12646                 fi
12647
12648                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12649                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12650                 fi
12651
12652                 CFLAGS="$CFLAGS -Wold-style-definition"
12653
12654                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12655 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12656                 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12657                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h.  */
12662 int i;
12663 int
12664 main ()
12665 {
12666
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12673 else
12674   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12675 fi
12676 rm -f core conftest.err conftest.$ac_objext \
12677     conftest$ac_exeext conftest.$ac_ext
12678 fi
12679
12680
12681                 CFLAGS="$xorg_testset_save_CFLAGS"
12682
12683                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12684                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12685 $as_echo "$supported" >&6; }
12686                 if test "$supported" = "yes" ; then
12687                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12688                         found="yes"
12689                 fi
12690         fi
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704 xorg_testset_save_CFLAGS="$CFLAGS"
12705
12706 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12707         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12709 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12710 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h.  */
12715 int i;
12716 _ACEOF
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718   xorg_cv_compiler_flag_unknown_warning_option=yes
12719 else
12720   xorg_cv_compiler_flag_unknown_warning_option=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12725 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12726         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12727         CFLAGS="$xorg_testset_save_CFLAGS"
12728 fi
12729
12730 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12731         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12732                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12733         fi
12734         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12735         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12736 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12737 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12738   $as_echo_n "(cached) " >&6
12739 else
12740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h.  */
12742 int i;
12743 _ACEOF
12744 if ac_fn_c_try_compile "$LINENO"; then :
12745   xorg_cv_compiler_flag_unused_command_line_argument=yes
12746 else
12747   xorg_cv_compiler_flag_unused_command_line_argument=no
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12752 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12753         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12754         CFLAGS="$xorg_testset_save_CFLAGS"
12755 fi
12756
12757 found="no"
12758
12759         if test $found = "no" ; then
12760                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12761                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12762                 fi
12763
12764                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12765                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12766                 fi
12767
12768                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12769
12770                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12771 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12772                 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12773                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12774   $as_echo_n "(cached) " >&6
12775 else
12776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h.  */
12778 int i;
12779 int
12780 main ()
12781 {
12782
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12789 else
12790   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext \
12793     conftest$ac_exeext conftest.$ac_ext
12794 fi
12795
12796
12797                 CFLAGS="$xorg_testset_save_CFLAGS"
12798
12799                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12800                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12801 $as_echo "$supported" >&6; }
12802                 if test "$supported" = "yes" ; then
12803                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12804                         found="yes"
12805                 fi
12806         fi
12807
12808
12809
12810
12811
12812 # This chunk adds additional warnings that could catch undesired effects.
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824 xorg_testset_save_CFLAGS="$CFLAGS"
12825
12826 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12827         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12829 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12830 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12831   $as_echo_n "(cached) " >&6
12832 else
12833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h.  */
12835 int i;
12836 _ACEOF
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838   xorg_cv_compiler_flag_unknown_warning_option=yes
12839 else
12840   xorg_cv_compiler_flag_unknown_warning_option=no
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12845 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12846         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12847         CFLAGS="$xorg_testset_save_CFLAGS"
12848 fi
12849
12850 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12851         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12852                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853         fi
12854         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12856 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12857 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12858   $as_echo_n "(cached) " >&6
12859 else
12860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12862 int i;
12863 _ACEOF
12864 if ac_fn_c_try_compile "$LINENO"; then :
12865   xorg_cv_compiler_flag_unused_command_line_argument=yes
12866 else
12867   xorg_cv_compiler_flag_unused_command_line_argument=no
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12872 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12873         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12874         CFLAGS="$xorg_testset_save_CFLAGS"
12875 fi
12876
12877 found="no"
12878
12879         if test $found = "no" ; then
12880                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12881                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12882                 fi
12883
12884                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12885                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12886                 fi
12887
12888                 CFLAGS="$CFLAGS -Wunused"
12889
12890                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12891 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12892                 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12893                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12894   $as_echo_n "(cached) " >&6
12895 else
12896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h.  */
12898 int i;
12899 int
12900 main ()
12901 {
12902
12903   ;
12904   return 0;
12905 }
12906 _ACEOF
12907 if ac_fn_c_try_link "$LINENO"; then :
12908   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12909 else
12910   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext \
12913     conftest$ac_exeext conftest.$ac_ext
12914 fi
12915
12916
12917                 CFLAGS="$xorg_testset_save_CFLAGS"
12918
12919                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12920                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12921 $as_echo "$supported" >&6; }
12922                 if test "$supported" = "yes" ; then
12923                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12924                         found="yes"
12925                 fi
12926         fi
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940 xorg_testset_save_CFLAGS="$CFLAGS"
12941
12942 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12943         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12944         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12945 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12946 if ${xorg_cv_compiler_flag_unknown_warning_option+:} 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 _ACEOF
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954   xorg_cv_compiler_flag_unknown_warning_option=yes
12955 else
12956   xorg_cv_compiler_flag_unknown_warning_option=no
12957 fi
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959 fi
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12961 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12962         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12963         CFLAGS="$xorg_testset_save_CFLAGS"
12964 fi
12965
12966 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12967         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12968                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12969         fi
12970         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12971         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12972 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12973 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12974   $as_echo_n "(cached) " >&6
12975 else
12976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h.  */
12978 int i;
12979 _ACEOF
12980 if ac_fn_c_try_compile "$LINENO"; then :
12981   xorg_cv_compiler_flag_unused_command_line_argument=yes
12982 else
12983   xorg_cv_compiler_flag_unused_command_line_argument=no
12984 fi
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12988 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12989         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12990         CFLAGS="$xorg_testset_save_CFLAGS"
12991 fi
12992
12993 found="no"
12994
12995         if test $found = "no" ; then
12996                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12997                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12998                 fi
12999
13000                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13001                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13002                 fi
13003
13004                 CFLAGS="$CFLAGS -Wuninitialized"
13005
13006                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13007 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13008                 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13009                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h.  */
13014 int i;
13015 int
13016 main ()
13017 {
13018
13019   ;
13020   return 0;
13021 }
13022 _ACEOF
13023 if ac_fn_c_try_link "$LINENO"; then :
13024   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13025 else
13026   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext \
13029     conftest$ac_exeext conftest.$ac_ext
13030 fi
13031
13032
13033                 CFLAGS="$xorg_testset_save_CFLAGS"
13034
13035                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13036                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13037 $as_echo "$supported" >&6; }
13038                 if test "$supported" = "yes" ; then
13039                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13040                         found="yes"
13041                 fi
13042         fi
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056 xorg_testset_save_CFLAGS="$CFLAGS"
13057
13058 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13059         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13061 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13062 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13063   $as_echo_n "(cached) " >&6
13064 else
13065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h.  */
13067 int i;
13068 _ACEOF
13069 if ac_fn_c_try_compile "$LINENO"; then :
13070   xorg_cv_compiler_flag_unknown_warning_option=yes
13071 else
13072   xorg_cv_compiler_flag_unknown_warning_option=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13077 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13078         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13079         CFLAGS="$xorg_testset_save_CFLAGS"
13080 fi
13081
13082 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13083         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13084                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13085         fi
13086         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13088 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13089 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094 int i;
13095 _ACEOF
13096 if ac_fn_c_try_compile "$LINENO"; then :
13097   xorg_cv_compiler_flag_unused_command_line_argument=yes
13098 else
13099   xorg_cv_compiler_flag_unused_command_line_argument=no
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13104 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13105         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13106         CFLAGS="$xorg_testset_save_CFLAGS"
13107 fi
13108
13109 found="no"
13110
13111         if test $found = "no" ; then
13112                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13113                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13114                 fi
13115
13116                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13117                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13118                 fi
13119
13120                 CFLAGS="$CFLAGS -Wshadow"
13121
13122                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13123 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13124                 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13125                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h.  */
13130 int i;
13131 int
13132 main ()
13133 {
13134
13135   ;
13136   return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13140   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13141 else
13142   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext \
13145     conftest$ac_exeext conftest.$ac_ext
13146 fi
13147
13148
13149                 CFLAGS="$xorg_testset_save_CFLAGS"
13150
13151                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13152                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13153 $as_echo "$supported" >&6; }
13154                 if test "$supported" = "yes" ; then
13155                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13156                         found="yes"
13157                 fi
13158         fi
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172 xorg_testset_save_CFLAGS="$CFLAGS"
13173
13174 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13175         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13177 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13178 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h.  */
13183 int i;
13184 _ACEOF
13185 if ac_fn_c_try_compile "$LINENO"; then :
13186   xorg_cv_compiler_flag_unknown_warning_option=yes
13187 else
13188   xorg_cv_compiler_flag_unknown_warning_option=no
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13193 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13194         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13195         CFLAGS="$xorg_testset_save_CFLAGS"
13196 fi
13197
13198 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13199         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13200                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13201         fi
13202         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13204 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13205 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h.  */
13210 int i;
13211 _ACEOF
13212 if ac_fn_c_try_compile "$LINENO"; then :
13213   xorg_cv_compiler_flag_unused_command_line_argument=yes
13214 else
13215   xorg_cv_compiler_flag_unused_command_line_argument=no
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13220 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13221         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13222         CFLAGS="$xorg_testset_save_CFLAGS"
13223 fi
13224
13225 found="no"
13226
13227         if test $found = "no" ; then
13228                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13229                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13230                 fi
13231
13232                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13233                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13234                 fi
13235
13236                 CFLAGS="$CFLAGS -Wcast-qual"
13237
13238                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13239 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13240                 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13241                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13242   $as_echo_n "(cached) " >&6
13243 else
13244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h.  */
13246 int i;
13247 int
13248 main ()
13249 {
13250
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13257 else
13258   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext \
13261     conftest$ac_exeext conftest.$ac_ext
13262 fi
13263
13264
13265                 CFLAGS="$xorg_testset_save_CFLAGS"
13266
13267                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13268                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13269 $as_echo "$supported" >&6; }
13270                 if test "$supported" = "yes" ; then
13271                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13272                         found="yes"
13273                 fi
13274         fi
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288 xorg_testset_save_CFLAGS="$CFLAGS"
13289
13290 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13291         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13293 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13294 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13295   $as_echo_n "(cached) " >&6
13296 else
13297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h.  */
13299 int i;
13300 _ACEOF
13301 if ac_fn_c_try_compile "$LINENO"; then :
13302   xorg_cv_compiler_flag_unknown_warning_option=yes
13303 else
13304   xorg_cv_compiler_flag_unknown_warning_option=no
13305 fi
13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307 fi
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13309 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13310         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13311         CFLAGS="$xorg_testset_save_CFLAGS"
13312 fi
13313
13314 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13315         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13316                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13317         fi
13318         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13320 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13321 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h.  */
13326 int i;
13327 _ACEOF
13328 if ac_fn_c_try_compile "$LINENO"; then :
13329   xorg_cv_compiler_flag_unused_command_line_argument=yes
13330 else
13331   xorg_cv_compiler_flag_unused_command_line_argument=no
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 fi
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13336 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13337         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13338         CFLAGS="$xorg_testset_save_CFLAGS"
13339 fi
13340
13341 found="no"
13342
13343         if test $found = "no" ; then
13344                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13345                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13346                 fi
13347
13348                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13349                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13350                 fi
13351
13352                 CFLAGS="$CFLAGS -Wmissing-noreturn"
13353
13354                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13355 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13356                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13357                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13358   $as_echo_n "(cached) " >&6
13359 else
13360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h.  */
13362 int i;
13363 int
13364 main ()
13365 {
13366
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 if ac_fn_c_try_link "$LINENO"; then :
13372   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13373 else
13374   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext \
13377     conftest$ac_exeext conftest.$ac_ext
13378 fi
13379
13380
13381                 CFLAGS="$xorg_testset_save_CFLAGS"
13382
13383                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13384                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13385 $as_echo "$supported" >&6; }
13386                 if test "$supported" = "yes" ; then
13387                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13388                         found="yes"
13389                 fi
13390         fi
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404 xorg_testset_save_CFLAGS="$CFLAGS"
13405
13406 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13407         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13409 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13410 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13411   $as_echo_n "(cached) " >&6
13412 else
13413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h.  */
13415 int i;
13416 _ACEOF
13417 if ac_fn_c_try_compile "$LINENO"; then :
13418   xorg_cv_compiler_flag_unknown_warning_option=yes
13419 else
13420   xorg_cv_compiler_flag_unknown_warning_option=no
13421 fi
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 fi
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13425 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13426         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13427         CFLAGS="$xorg_testset_save_CFLAGS"
13428 fi
13429
13430 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13431         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13432                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13433         fi
13434         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13436 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13437 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13438   $as_echo_n "(cached) " >&6
13439 else
13440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h.  */
13442 int i;
13443 _ACEOF
13444 if ac_fn_c_try_compile "$LINENO"; then :
13445   xorg_cv_compiler_flag_unused_command_line_argument=yes
13446 else
13447   xorg_cv_compiler_flag_unused_command_line_argument=no
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 fi
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13452 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13453         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13454         CFLAGS="$xorg_testset_save_CFLAGS"
13455 fi
13456
13457 found="no"
13458
13459         if test $found = "no" ; then
13460                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13461                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13462                 fi
13463
13464                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13465                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13466                 fi
13467
13468                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13469
13470                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13471 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13472                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13473                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h.  */
13478 int i;
13479 int
13480 main ()
13481 {
13482
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 if ac_fn_c_try_link "$LINENO"; then :
13488   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13489 else
13490   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext \
13493     conftest$ac_exeext conftest.$ac_ext
13494 fi
13495
13496
13497                 CFLAGS="$xorg_testset_save_CFLAGS"
13498
13499                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13500                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13501 $as_echo "$supported" >&6; }
13502                 if test "$supported" = "yes" ; then
13503                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13504                         found="yes"
13505                 fi
13506         fi
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520 xorg_testset_save_CFLAGS="$CFLAGS"
13521
13522 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13523         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13525 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13526 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13527   $as_echo_n "(cached) " >&6
13528 else
13529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h.  */
13531 int i;
13532 _ACEOF
13533 if ac_fn_c_try_compile "$LINENO"; then :
13534   xorg_cv_compiler_flag_unknown_warning_option=yes
13535 else
13536   xorg_cv_compiler_flag_unknown_warning_option=no
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13541 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13542         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13543         CFLAGS="$xorg_testset_save_CFLAGS"
13544 fi
13545
13546 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13547         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13548                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13549         fi
13550         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13552 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13553 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h.  */
13558 int i;
13559 _ACEOF
13560 if ac_fn_c_try_compile "$LINENO"; then :
13561   xorg_cv_compiler_flag_unused_command_line_argument=yes
13562 else
13563   xorg_cv_compiler_flag_unused_command_line_argument=no
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13568 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13569         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13570         CFLAGS="$xorg_testset_save_CFLAGS"
13571 fi
13572
13573 found="no"
13574
13575         if test $found = "no" ; then
13576                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13577                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13578                 fi
13579
13580                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13581                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13582                 fi
13583
13584                 CFLAGS="$CFLAGS -Wredundant-decls"
13585
13586                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13587 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13588                 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13589                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13590   $as_echo_n "(cached) " >&6
13591 else
13592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h.  */
13594 int i;
13595 int
13596 main ()
13597 {
13598
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 if ac_fn_c_try_link "$LINENO"; then :
13604   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13605 else
13606   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13607 fi
13608 rm -f core conftest.err conftest.$ac_objext \
13609     conftest$ac_exeext conftest.$ac_ext
13610 fi
13611
13612
13613                 CFLAGS="$xorg_testset_save_CFLAGS"
13614
13615                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13616                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13617 $as_echo "$supported" >&6; }
13618                 if test "$supported" = "yes" ; then
13619                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13620                         found="yes"
13621                 fi
13622         fi
13623
13624
13625
13626 # These are currently disabled because they are noisy.  They will be enabled
13627 # in the future once the codebase is sufficiently modernized to silence
13628 # them.  For now, I don't want them to drown out the other warnings.
13629 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13630 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13631 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13632
13633 # Turn some warnings into errors, so we don't accidently get successful builds
13634 # when there are problems that should be fixed.
13635
13636 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648 xorg_testset_save_CFLAGS="$CFLAGS"
13649
13650 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13651         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13652         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13653 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13654 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13655   $as_echo_n "(cached) " >&6
13656 else
13657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h.  */
13659 int i;
13660 _ACEOF
13661 if ac_fn_c_try_compile "$LINENO"; then :
13662   xorg_cv_compiler_flag_unknown_warning_option=yes
13663 else
13664   xorg_cv_compiler_flag_unknown_warning_option=no
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13669 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13670         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13671         CFLAGS="$xorg_testset_save_CFLAGS"
13672 fi
13673
13674 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13675         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13676                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13677         fi
13678         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13680 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13681 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13682   $as_echo_n "(cached) " >&6
13683 else
13684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686 int i;
13687 _ACEOF
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689   xorg_cv_compiler_flag_unused_command_line_argument=yes
13690 else
13691   xorg_cv_compiler_flag_unused_command_line_argument=no
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 fi
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13696 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13697         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13698         CFLAGS="$xorg_testset_save_CFLAGS"
13699 fi
13700
13701 found="no"
13702
13703         if test $found = "no" ; then
13704                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13705                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13706                 fi
13707
13708                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13709                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13710                 fi
13711
13712                 CFLAGS="$CFLAGS -Werror=implicit"
13713
13714                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13715 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13716                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13717                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13718   $as_echo_n "(cached) " >&6
13719 else
13720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h.  */
13722 int i;
13723 int
13724 main ()
13725 {
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_link "$LINENO"; then :
13732   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13733 else
13734   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext \
13737     conftest$ac_exeext conftest.$ac_ext
13738 fi
13739
13740
13741                 CFLAGS="$xorg_testset_save_CFLAGS"
13742
13743                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13744                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13745 $as_echo "$supported" >&6; }
13746                 if test "$supported" = "yes" ; then
13747                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13748                         found="yes"
13749                 fi
13750         fi
13751
13752         if test $found = "no" ; then
13753                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13754                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13755                 fi
13756
13757                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13758                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13759                 fi
13760
13761                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13762
13763                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13764 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13765                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13766                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13767   $as_echo_n "(cached) " >&6
13768 else
13769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h.  */
13771 int i;
13772 int
13773 main ()
13774 {
13775
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 if ac_fn_c_try_link "$LINENO"; then :
13781   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13782 else
13783   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13784 fi
13785 rm -f core conftest.err conftest.$ac_objext \
13786     conftest$ac_exeext conftest.$ac_ext
13787 fi
13788
13789
13790                 CFLAGS="$xorg_testset_save_CFLAGS"
13791
13792                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13793                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13794 $as_echo "$supported" >&6; }
13795                 if test "$supported" = "yes" ; then
13796                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13797                         found="yes"
13798                 fi
13799         fi
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813 xorg_testset_save_CFLAGS="$CFLAGS"
13814
13815 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13816         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13818 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13819 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13820   $as_echo_n "(cached) " >&6
13821 else
13822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h.  */
13824 int i;
13825 _ACEOF
13826 if ac_fn_c_try_compile "$LINENO"; then :
13827   xorg_cv_compiler_flag_unknown_warning_option=yes
13828 else
13829   xorg_cv_compiler_flag_unknown_warning_option=no
13830 fi
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13834 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13835         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13836         CFLAGS="$xorg_testset_save_CFLAGS"
13837 fi
13838
13839 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13840         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13841                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13842         fi
13843         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13845 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13846 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13847   $as_echo_n "(cached) " >&6
13848 else
13849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h.  */
13851 int i;
13852 _ACEOF
13853 if ac_fn_c_try_compile "$LINENO"; then :
13854   xorg_cv_compiler_flag_unused_command_line_argument=yes
13855 else
13856   xorg_cv_compiler_flag_unused_command_line_argument=no
13857 fi
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859 fi
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13861 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13862         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13863         CFLAGS="$xorg_testset_save_CFLAGS"
13864 fi
13865
13866 found="no"
13867
13868         if test $found = "no" ; then
13869                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13870                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13871                 fi
13872
13873                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13874                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13875                 fi
13876
13877                 CFLAGS="$CFLAGS -Werror=nonnull"
13878
13879                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13880 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13881                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13882                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13883   $as_echo_n "(cached) " >&6
13884 else
13885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h.  */
13887 int i;
13888 int
13889 main ()
13890 {
13891
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 if ac_fn_c_try_link "$LINENO"; then :
13897   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13898 else
13899   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13900 fi
13901 rm -f core conftest.err conftest.$ac_objext \
13902     conftest$ac_exeext conftest.$ac_ext
13903 fi
13904
13905
13906                 CFLAGS="$xorg_testset_save_CFLAGS"
13907
13908                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13909                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13910 $as_echo "$supported" >&6; }
13911                 if test "$supported" = "yes" ; then
13912                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13913                         found="yes"
13914                 fi
13915         fi
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929 xorg_testset_save_CFLAGS="$CFLAGS"
13930
13931 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13932         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13934 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13935 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13936   $as_echo_n "(cached) " >&6
13937 else
13938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940 int i;
13941 _ACEOF
13942 if ac_fn_c_try_compile "$LINENO"; then :
13943   xorg_cv_compiler_flag_unknown_warning_option=yes
13944 else
13945   xorg_cv_compiler_flag_unknown_warning_option=no
13946 fi
13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 fi
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13950 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13951         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13952         CFLAGS="$xorg_testset_save_CFLAGS"
13953 fi
13954
13955 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13956         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13957                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13958         fi
13959         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13961 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13962 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13963   $as_echo_n "(cached) " >&6
13964 else
13965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967 int i;
13968 _ACEOF
13969 if ac_fn_c_try_compile "$LINENO"; then :
13970   xorg_cv_compiler_flag_unused_command_line_argument=yes
13971 else
13972   xorg_cv_compiler_flag_unused_command_line_argument=no
13973 fi
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 fi
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13977 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13978         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13979         CFLAGS="$xorg_testset_save_CFLAGS"
13980 fi
13981
13982 found="no"
13983
13984         if test $found = "no" ; then
13985                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13986                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13987                 fi
13988
13989                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13990                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13991                 fi
13992
13993                 CFLAGS="$CFLAGS -Werror=init-self"
13994
13995                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13996 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13997                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13998                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13999   $as_echo_n "(cached) " >&6
14000 else
14001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h.  */
14003 int i;
14004 int
14005 main ()
14006 {
14007
14008   ;
14009   return 0;
14010 }
14011 _ACEOF
14012 if ac_fn_c_try_link "$LINENO"; then :
14013   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14014 else
14015   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14016 fi
14017 rm -f core conftest.err conftest.$ac_objext \
14018     conftest$ac_exeext conftest.$ac_ext
14019 fi
14020
14021
14022                 CFLAGS="$xorg_testset_save_CFLAGS"
14023
14024                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14025                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14026 $as_echo "$supported" >&6; }
14027                 if test "$supported" = "yes" ; then
14028                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14029                         found="yes"
14030                 fi
14031         fi
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045 xorg_testset_save_CFLAGS="$CFLAGS"
14046
14047 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14048         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14050 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14051 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14052   $as_echo_n "(cached) " >&6
14053 else
14054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h.  */
14056 int i;
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"; then :
14059   xorg_cv_compiler_flag_unknown_warning_option=yes
14060 else
14061   xorg_cv_compiler_flag_unknown_warning_option=no
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 fi
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14066 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14067         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14068         CFLAGS="$xorg_testset_save_CFLAGS"
14069 fi
14070
14071 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14072         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14073                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074         fi
14075         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14077 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14078 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14079   $as_echo_n "(cached) " >&6
14080 else
14081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h.  */
14083 int i;
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086   xorg_cv_compiler_flag_unused_command_line_argument=yes
14087 else
14088   xorg_cv_compiler_flag_unused_command_line_argument=no
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 fi
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14093 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14094         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14095         CFLAGS="$xorg_testset_save_CFLAGS"
14096 fi
14097
14098 found="no"
14099
14100         if test $found = "no" ; then
14101                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14102                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14103                 fi
14104
14105                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14106                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14107                 fi
14108
14109                 CFLAGS="$CFLAGS -Werror=main"
14110
14111                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14112 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14113                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14114                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14115   $as_echo_n "(cached) " >&6
14116 else
14117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h.  */
14119 int i;
14120 int
14121 main ()
14122 {
14123
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_link "$LINENO"; then :
14129   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14130 else
14131   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext \
14134     conftest$ac_exeext conftest.$ac_ext
14135 fi
14136
14137
14138                 CFLAGS="$xorg_testset_save_CFLAGS"
14139
14140                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14141                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14142 $as_echo "$supported" >&6; }
14143                 if test "$supported" = "yes" ; then
14144                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14145                         found="yes"
14146                 fi
14147         fi
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_unknown_warning_option" = "x" ; then
14164         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14166 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14167 if ${xorg_cv_compiler_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_compiler_flag_unknown_warning_option=yes
14176 else
14177   xorg_cv_compiler_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_compiler_flag_unknown_warning_option" >&5
14182 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14183         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14184         CFLAGS="$xorg_testset_save_CFLAGS"
14185 fi
14186
14187 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14188         if test "x$xorg_testset_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 compiler supports -Werror=unused-command-line-argument" >&5
14193 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14194 if ${xorg_cv_compiler_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_compiler_flag_unused_command_line_argument=yes
14203 else
14204   xorg_cv_compiler_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_compiler_flag_unused_command_line_argument" >&5
14209 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14210         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_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_unknown_warning_option" = "xyes" ; then
14218                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14219                 fi
14220
14221                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14222                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14223                 fi
14224
14225                 CFLAGS="$CFLAGS -Werror=missing-braces"
14226
14227                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14228 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14229                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14230                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes
14246 else
14247   eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh`
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 -Werror=missing-braces"
14261                         found="yes"
14262                 fi
14263         fi
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277 xorg_testset_save_CFLAGS="$CFLAGS"
14278
14279 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14280         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14282 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14283 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14284   $as_echo_n "(cached) " >&6
14285 else
14286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h.  */
14288 int i;
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291   xorg_cv_compiler_flag_unknown_warning_option=yes
14292 else
14293   xorg_cv_compiler_flag_unknown_warning_option=no
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14298 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14299         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14300         CFLAGS="$xorg_testset_save_CFLAGS"
14301 fi
14302
14303 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14304         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14305                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14306         fi
14307         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14309 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14310 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14311   $as_echo_n "(cached) " >&6
14312 else
14313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h.  */
14315 int i;
14316 _ACEOF
14317 if ac_fn_c_try_compile "$LINENO"; then :
14318   xorg_cv_compiler_flag_unused_command_line_argument=yes
14319 else
14320   xorg_cv_compiler_flag_unused_command_line_argument=no
14321 fi
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 fi
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14325 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14326         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14327         CFLAGS="$xorg_testset_save_CFLAGS"
14328 fi
14329
14330 found="no"
14331
14332         if test $found = "no" ; then
14333                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14334                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14335                 fi
14336
14337                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14338                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14339                 fi
14340
14341                 CFLAGS="$CFLAGS -Werror=sequence-point"
14342
14343                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14344 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14345                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14346                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14347   $as_echo_n "(cached) " >&6
14348 else
14349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h.  */
14351 int i;
14352 int
14353 main ()
14354 {
14355
14356   ;
14357   return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"; then :
14361   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14362 else
14363   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext \
14366     conftest$ac_exeext conftest.$ac_ext
14367 fi
14368
14369
14370                 CFLAGS="$xorg_testset_save_CFLAGS"
14371
14372                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14373                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14374 $as_echo "$supported" >&6; }
14375                 if test "$supported" = "yes" ; then
14376                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14377                         found="yes"
14378                 fi
14379         fi
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393 xorg_testset_save_CFLAGS="$CFLAGS"
14394
14395 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14396         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14398 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14399 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14400   $as_echo_n "(cached) " >&6
14401 else
14402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h.  */
14404 int i;
14405 _ACEOF
14406 if ac_fn_c_try_compile "$LINENO"; then :
14407   xorg_cv_compiler_flag_unknown_warning_option=yes
14408 else
14409   xorg_cv_compiler_flag_unknown_warning_option=no
14410 fi
14411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14414 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14415         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14416         CFLAGS="$xorg_testset_save_CFLAGS"
14417 fi
14418
14419 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14420         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14421                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14422         fi
14423         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14425 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14426 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14427   $as_echo_n "(cached) " >&6
14428 else
14429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h.  */
14431 int i;
14432 _ACEOF
14433 if ac_fn_c_try_compile "$LINENO"; then :
14434   xorg_cv_compiler_flag_unused_command_line_argument=yes
14435 else
14436   xorg_cv_compiler_flag_unused_command_line_argument=no
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 fi
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14441 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14442         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14443         CFLAGS="$xorg_testset_save_CFLAGS"
14444 fi
14445
14446 found="no"
14447
14448         if test $found = "no" ; then
14449                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14450                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14451                 fi
14452
14453                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14454                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14455                 fi
14456
14457                 CFLAGS="$CFLAGS -Werror=return-type"
14458
14459                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14460 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14461                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14462                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h.  */
14467 int i;
14468 int
14469 main ()
14470 {
14471
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 if ac_fn_c_try_link "$LINENO"; then :
14477   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14478 else
14479   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext \
14482     conftest$ac_exeext conftest.$ac_ext
14483 fi
14484
14485
14486                 CFLAGS="$xorg_testset_save_CFLAGS"
14487
14488                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14489                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14490 $as_echo "$supported" >&6; }
14491                 if test "$supported" = "yes" ; then
14492                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14493                         found="yes"
14494                 fi
14495         fi
14496
14497         if test $found = "no" ; then
14498                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14499                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14500                 fi
14501
14502                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14503                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14504                 fi
14505
14506                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14507
14508                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14509 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14510                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14511                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14512   $as_echo_n "(cached) " >&6
14513 else
14514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h.  */
14516 int i;
14517 int
14518 main ()
14519 {
14520
14521   ;
14522   return 0;
14523 }
14524 _ACEOF
14525 if ac_fn_c_try_link "$LINENO"; then :
14526   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14527 else
14528   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14529 fi
14530 rm -f core conftest.err conftest.$ac_objext \
14531     conftest$ac_exeext conftest.$ac_ext
14532 fi
14533
14534
14535                 CFLAGS="$xorg_testset_save_CFLAGS"
14536
14537                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14538                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14539 $as_echo "$supported" >&6; }
14540                 if test "$supported" = "yes" ; then
14541                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14542                         found="yes"
14543                 fi
14544         fi
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558 xorg_testset_save_CFLAGS="$CFLAGS"
14559
14560 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14561         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14563 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14564 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h.  */
14569 int i;
14570 _ACEOF
14571 if ac_fn_c_try_compile "$LINENO"; then :
14572   xorg_cv_compiler_flag_unknown_warning_option=yes
14573 else
14574   xorg_cv_compiler_flag_unknown_warning_option=no
14575 fi
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14579 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14580         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14581         CFLAGS="$xorg_testset_save_CFLAGS"
14582 fi
14583
14584 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14585         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14586                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14587         fi
14588         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14590 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14591 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h.  */
14596 int i;
14597 _ACEOF
14598 if ac_fn_c_try_compile "$LINENO"; then :
14599   xorg_cv_compiler_flag_unused_command_line_argument=yes
14600 else
14601   xorg_cv_compiler_flag_unused_command_line_argument=no
14602 fi
14603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604 fi
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14606 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14607         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14608         CFLAGS="$xorg_testset_save_CFLAGS"
14609 fi
14610
14611 found="no"
14612
14613         if test $found = "no" ; then
14614                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14615                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616                 fi
14617
14618                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14619                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14620                 fi
14621
14622                 CFLAGS="$CFLAGS -Werror=trigraphs"
14623
14624                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14625 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14626                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14627                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14628   $as_echo_n "(cached) " >&6
14629 else
14630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h.  */
14632 int i;
14633 int
14634 main ()
14635 {
14636
14637   ;
14638   return 0;
14639 }
14640 _ACEOF
14641 if ac_fn_c_try_link "$LINENO"; then :
14642   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14643 else
14644   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14645 fi
14646 rm -f core conftest.err conftest.$ac_objext \
14647     conftest$ac_exeext conftest.$ac_ext
14648 fi
14649
14650
14651                 CFLAGS="$xorg_testset_save_CFLAGS"
14652
14653                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14654                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14655 $as_echo "$supported" >&6; }
14656                 if test "$supported" = "yes" ; then
14657                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14658                         found="yes"
14659                 fi
14660         fi
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674 xorg_testset_save_CFLAGS="$CFLAGS"
14675
14676 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14677         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14679 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14680 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14681   $as_echo_n "(cached) " >&6
14682 else
14683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h.  */
14685 int i;
14686 _ACEOF
14687 if ac_fn_c_try_compile "$LINENO"; then :
14688   xorg_cv_compiler_flag_unknown_warning_option=yes
14689 else
14690   xorg_cv_compiler_flag_unknown_warning_option=no
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 fi
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14695 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14696         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14697         CFLAGS="$xorg_testset_save_CFLAGS"
14698 fi
14699
14700 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14701         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14702                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14703         fi
14704         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14706 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14707 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14708   $as_echo_n "(cached) " >&6
14709 else
14710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h.  */
14712 int i;
14713 _ACEOF
14714 if ac_fn_c_try_compile "$LINENO"; then :
14715   xorg_cv_compiler_flag_unused_command_line_argument=yes
14716 else
14717   xorg_cv_compiler_flag_unused_command_line_argument=no
14718 fi
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 fi
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14722 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14723         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14724         CFLAGS="$xorg_testset_save_CFLAGS"
14725 fi
14726
14727 found="no"
14728
14729         if test $found = "no" ; then
14730                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14731                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14732                 fi
14733
14734                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14735                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14736                 fi
14737
14738                 CFLAGS="$CFLAGS -Werror=array-bounds"
14739
14740                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14741 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14742                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14743                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14744   $as_echo_n "(cached) " >&6
14745 else
14746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h.  */
14748 int i;
14749 int
14750 main ()
14751 {
14752
14753   ;
14754   return 0;
14755 }
14756 _ACEOF
14757 if ac_fn_c_try_link "$LINENO"; then :
14758   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14759 else
14760   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14761 fi
14762 rm -f core conftest.err conftest.$ac_objext \
14763     conftest$ac_exeext conftest.$ac_ext
14764 fi
14765
14766
14767                 CFLAGS="$xorg_testset_save_CFLAGS"
14768
14769                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14770                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14771 $as_echo "$supported" >&6; }
14772                 if test "$supported" = "yes" ; then
14773                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14774                         found="yes"
14775                 fi
14776         fi
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790 xorg_testset_save_CFLAGS="$CFLAGS"
14791
14792 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14793         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14795 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14796 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14797   $as_echo_n "(cached) " >&6
14798 else
14799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h.  */
14801 int i;
14802 _ACEOF
14803 if ac_fn_c_try_compile "$LINENO"; then :
14804   xorg_cv_compiler_flag_unknown_warning_option=yes
14805 else
14806   xorg_cv_compiler_flag_unknown_warning_option=no
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14809 fi
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14811 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14812         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14813         CFLAGS="$xorg_testset_save_CFLAGS"
14814 fi
14815
14816 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14817         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14818                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14819         fi
14820         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14822 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14823 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14824   $as_echo_n "(cached) " >&6
14825 else
14826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h.  */
14828 int i;
14829 _ACEOF
14830 if ac_fn_c_try_compile "$LINENO"; then :
14831   xorg_cv_compiler_flag_unused_command_line_argument=yes
14832 else
14833   xorg_cv_compiler_flag_unused_command_line_argument=no
14834 fi
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 fi
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14838 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14839         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14840         CFLAGS="$xorg_testset_save_CFLAGS"
14841 fi
14842
14843 found="no"
14844
14845         if test $found = "no" ; then
14846                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14847                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14848                 fi
14849
14850                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14851                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14852                 fi
14853
14854                 CFLAGS="$CFLAGS -Werror=write-strings"
14855
14856                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14857 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14858                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14859                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14860   $as_echo_n "(cached) " >&6
14861 else
14862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h.  */
14864 int i;
14865 int
14866 main ()
14867 {
14868
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_link "$LINENO"; then :
14874   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14875 else
14876   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14877 fi
14878 rm -f core conftest.err conftest.$ac_objext \
14879     conftest$ac_exeext conftest.$ac_ext
14880 fi
14881
14882
14883                 CFLAGS="$xorg_testset_save_CFLAGS"
14884
14885                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14886                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14887 $as_echo "$supported" >&6; }
14888                 if test "$supported" = "yes" ; then
14889                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14890                         found="yes"
14891                 fi
14892         fi
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906 xorg_testset_save_CFLAGS="$CFLAGS"
14907
14908 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14909         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14910         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14911 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14912 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14913   $as_echo_n "(cached) " >&6
14914 else
14915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h.  */
14917 int i;
14918 _ACEOF
14919 if ac_fn_c_try_compile "$LINENO"; then :
14920   xorg_cv_compiler_flag_unknown_warning_option=yes
14921 else
14922   xorg_cv_compiler_flag_unknown_warning_option=no
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14927 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14928         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14929         CFLAGS="$xorg_testset_save_CFLAGS"
14930 fi
14931
14932 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14933         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14934                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14935         fi
14936         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14937         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14938 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14939 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14940   $as_echo_n "(cached) " >&6
14941 else
14942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h.  */
14944 int i;
14945 _ACEOF
14946 if ac_fn_c_try_compile "$LINENO"; then :
14947   xorg_cv_compiler_flag_unused_command_line_argument=yes
14948 else
14949   xorg_cv_compiler_flag_unused_command_line_argument=no
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14954 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14955         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14956         CFLAGS="$xorg_testset_save_CFLAGS"
14957 fi
14958
14959 found="no"
14960
14961         if test $found = "no" ; then
14962                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14963                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964                 fi
14965
14966                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14967                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968                 fi
14969
14970                 CFLAGS="$CFLAGS -Werror=address"
14971
14972                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14973 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14974                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14975                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14976   $as_echo_n "(cached) " >&6
14977 else
14978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h.  */
14980 int i;
14981 int
14982 main ()
14983 {
14984
14985   ;
14986   return 0;
14987 }
14988 _ACEOF
14989 if ac_fn_c_try_link "$LINENO"; then :
14990   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14991 else
14992   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14993 fi
14994 rm -f core conftest.err conftest.$ac_objext \
14995     conftest$ac_exeext conftest.$ac_ext
14996 fi
14997
14998
14999                 CFLAGS="$xorg_testset_save_CFLAGS"
15000
15001                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15002                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15003 $as_echo "$supported" >&6; }
15004                 if test "$supported" = "yes" ; then
15005                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15006                         found="yes"
15007                 fi
15008         fi
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022 xorg_testset_save_CFLAGS="$CFLAGS"
15023
15024 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15025         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15027 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15028 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15029   $as_echo_n "(cached) " >&6
15030 else
15031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15033 int i;
15034 _ACEOF
15035 if ac_fn_c_try_compile "$LINENO"; then :
15036   xorg_cv_compiler_flag_unknown_warning_option=yes
15037 else
15038   xorg_cv_compiler_flag_unknown_warning_option=no
15039 fi
15040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041 fi
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15043 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15044         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15045         CFLAGS="$xorg_testset_save_CFLAGS"
15046 fi
15047
15048 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15049         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15050                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051         fi
15052         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15054 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15055 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15056   $as_echo_n "(cached) " >&6
15057 else
15058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h.  */
15060 int i;
15061 _ACEOF
15062 if ac_fn_c_try_compile "$LINENO"; then :
15063   xorg_cv_compiler_flag_unused_command_line_argument=yes
15064 else
15065   xorg_cv_compiler_flag_unused_command_line_argument=no
15066 fi
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15070 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15071         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15072         CFLAGS="$xorg_testset_save_CFLAGS"
15073 fi
15074
15075 found="no"
15076
15077         if test $found = "no" ; then
15078                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15079                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080                 fi
15081
15082                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15083                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15084                 fi
15085
15086                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15087
15088                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15089 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15090                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15091                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15092   $as_echo_n "(cached) " >&6
15093 else
15094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h.  */
15096 int i;
15097 int
15098 main ()
15099 {
15100
15101   ;
15102   return 0;
15103 }
15104 _ACEOF
15105 if ac_fn_c_try_link "$LINENO"; then :
15106   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15107 else
15108   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext \
15111     conftest$ac_exeext conftest.$ac_ext
15112 fi
15113
15114
15115                 CFLAGS="$xorg_testset_save_CFLAGS"
15116
15117                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15118                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15119 $as_echo "$supported" >&6; }
15120                 if test "$supported" = "yes" ; then
15121                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15122                         found="yes"
15123                 fi
15124         fi
15125
15126         if test $found = "no" ; then
15127                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15128                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15129                 fi
15130
15131                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15132                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15133                 fi
15134
15135                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15136
15137                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15138 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15139                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15140                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h.  */
15145 int i;
15146 int
15147 main ()
15148 {
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 if ac_fn_c_try_link "$LINENO"; then :
15155   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15156 else
15157   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext \
15160     conftest$ac_exeext conftest.$ac_ext
15161 fi
15162
15163
15164                 CFLAGS="$xorg_testset_save_CFLAGS"
15165
15166                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15167                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15168 $as_echo "$supported" >&6; }
15169                 if test "$supported" = "yes" ; then
15170                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15171                         found="yes"
15172                 fi
15173         fi
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187 xorg_testset_save_CFLAGS="$CFLAGS"
15188
15189 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15190         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15192 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15193 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15194   $as_echo_n "(cached) " >&6
15195 else
15196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h.  */
15198 int i;
15199 _ACEOF
15200 if ac_fn_c_try_compile "$LINENO"; then :
15201   xorg_cv_compiler_flag_unknown_warning_option=yes
15202 else
15203   xorg_cv_compiler_flag_unknown_warning_option=no
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 fi
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15208 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15209         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15210         CFLAGS="$xorg_testset_save_CFLAGS"
15211 fi
15212
15213 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15214         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15215                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15216         fi
15217         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15219 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15220 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15221   $as_echo_n "(cached) " >&6
15222 else
15223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h.  */
15225 int i;
15226 _ACEOF
15227 if ac_fn_c_try_compile "$LINENO"; then :
15228   xorg_cv_compiler_flag_unused_command_line_argument=yes
15229 else
15230   xorg_cv_compiler_flag_unused_command_line_argument=no
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15233 fi
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15235 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15236         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15237         CFLAGS="$xorg_testset_save_CFLAGS"
15238 fi
15239
15240 found="no"
15241
15242         if test $found = "no" ; then
15243                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15244                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15245                 fi
15246
15247                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15248                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15249                 fi
15250
15251                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15252
15253                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15254 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15255                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15256                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15257   $as_echo_n "(cached) " >&6
15258 else
15259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h.  */
15261 int i;
15262 int
15263 main ()
15264 {
15265
15266   ;
15267   return 0;
15268 }
15269 _ACEOF
15270 if ac_fn_c_try_link "$LINENO"; then :
15271   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15272 else
15273   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15274 fi
15275 rm -f core conftest.err conftest.$ac_objext \
15276     conftest$ac_exeext conftest.$ac_ext
15277 fi
15278
15279
15280                 CFLAGS="$xorg_testset_save_CFLAGS"
15281
15282                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15283                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15284 $as_echo "$supported" >&6; }
15285                 if test "$supported" = "yes" ; then
15286                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15287                         found="yes"
15288                 fi
15289         fi
15290
15291  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15292 else
15293 { $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
15294 $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;}
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306 xorg_testset_save_CFLAGS="$CFLAGS"
15307
15308 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15309         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15310         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15311 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15312 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15313   $as_echo_n "(cached) " >&6
15314 else
15315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h.  */
15317 int i;
15318 _ACEOF
15319 if ac_fn_c_try_compile "$LINENO"; then :
15320   xorg_cv_compiler_flag_unknown_warning_option=yes
15321 else
15322   xorg_cv_compiler_flag_unknown_warning_option=no
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325 fi
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15327 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15328         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15329         CFLAGS="$xorg_testset_save_CFLAGS"
15330 fi
15331
15332 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15333         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15334                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15335         fi
15336         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15338 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15339 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h.  */
15344 int i;
15345 _ACEOF
15346 if ac_fn_c_try_compile "$LINENO"; then :
15347   xorg_cv_compiler_flag_unused_command_line_argument=yes
15348 else
15349   xorg_cv_compiler_flag_unused_command_line_argument=no
15350 fi
15351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15352 fi
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15354 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15355         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15356         CFLAGS="$xorg_testset_save_CFLAGS"
15357 fi
15358
15359 found="no"
15360
15361         if test $found = "no" ; then
15362                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15363                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364                 fi
15365
15366                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15367                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15368                 fi
15369
15370                 CFLAGS="$CFLAGS -Wimplicit"
15371
15372                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15373 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15374                 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15375                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15376   $as_echo_n "(cached) " >&6
15377 else
15378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380 int i;
15381 int
15382 main ()
15383 {
15384
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 if ac_fn_c_try_link "$LINENO"; then :
15390   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15391 else
15392   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15393 fi
15394 rm -f core conftest.err conftest.$ac_objext \
15395     conftest$ac_exeext conftest.$ac_ext
15396 fi
15397
15398
15399                 CFLAGS="$xorg_testset_save_CFLAGS"
15400
15401                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15402                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15403 $as_echo "$supported" >&6; }
15404                 if test "$supported" = "yes" ; then
15405                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15406                         found="yes"
15407                 fi
15408         fi
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422 xorg_testset_save_CFLAGS="$CFLAGS"
15423
15424 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15425         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15427 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15428 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15429   $as_echo_n "(cached) " >&6
15430 else
15431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h.  */
15433 int i;
15434 _ACEOF
15435 if ac_fn_c_try_compile "$LINENO"; then :
15436   xorg_cv_compiler_flag_unknown_warning_option=yes
15437 else
15438   xorg_cv_compiler_flag_unknown_warning_option=no
15439 fi
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441 fi
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15443 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15444         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15445         CFLAGS="$xorg_testset_save_CFLAGS"
15446 fi
15447
15448 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15449         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15450                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15451         fi
15452         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15454 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15455 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15456   $as_echo_n "(cached) " >&6
15457 else
15458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h.  */
15460 int i;
15461 _ACEOF
15462 if ac_fn_c_try_compile "$LINENO"; then :
15463   xorg_cv_compiler_flag_unused_command_line_argument=yes
15464 else
15465   xorg_cv_compiler_flag_unused_command_line_argument=no
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468 fi
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15470 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15471         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15472         CFLAGS="$xorg_testset_save_CFLAGS"
15473 fi
15474
15475 found="no"
15476
15477         if test $found = "no" ; then
15478                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15479                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15480                 fi
15481
15482                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15483                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15484                 fi
15485
15486                 CFLAGS="$CFLAGS -Wnonnull"
15487
15488                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15489 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15490                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15491                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15492   $as_echo_n "(cached) " >&6
15493 else
15494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h.  */
15496 int i;
15497 int
15498 main ()
15499 {
15500
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 if ac_fn_c_try_link "$LINENO"; then :
15506   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15507 else
15508   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext \
15511     conftest$ac_exeext conftest.$ac_ext
15512 fi
15513
15514
15515                 CFLAGS="$xorg_testset_save_CFLAGS"
15516
15517                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15518                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15519 $as_echo "$supported" >&6; }
15520                 if test "$supported" = "yes" ; then
15521                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15522                         found="yes"
15523                 fi
15524         fi
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538 xorg_testset_save_CFLAGS="$CFLAGS"
15539
15540 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15541         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15543 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15544 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15545   $as_echo_n "(cached) " >&6
15546 else
15547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h.  */
15549 int i;
15550 _ACEOF
15551 if ac_fn_c_try_compile "$LINENO"; then :
15552   xorg_cv_compiler_flag_unknown_warning_option=yes
15553 else
15554   xorg_cv_compiler_flag_unknown_warning_option=no
15555 fi
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15559 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15560         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15561         CFLAGS="$xorg_testset_save_CFLAGS"
15562 fi
15563
15564 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15565         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15566                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15567         fi
15568         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15570 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15571 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15572   $as_echo_n "(cached) " >&6
15573 else
15574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h.  */
15576 int i;
15577 _ACEOF
15578 if ac_fn_c_try_compile "$LINENO"; then :
15579   xorg_cv_compiler_flag_unused_command_line_argument=yes
15580 else
15581   xorg_cv_compiler_flag_unused_command_line_argument=no
15582 fi
15583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15586 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15587         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15588         CFLAGS="$xorg_testset_save_CFLAGS"
15589 fi
15590
15591 found="no"
15592
15593         if test $found = "no" ; then
15594                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15595                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15596                 fi
15597
15598                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15599                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15600                 fi
15601
15602                 CFLAGS="$CFLAGS -Winit-self"
15603
15604                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15605 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15606                 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15607                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15608   $as_echo_n "(cached) " >&6
15609 else
15610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h.  */
15612 int i;
15613 int
15614 main ()
15615 {
15616
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 if ac_fn_c_try_link "$LINENO"; then :
15622   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15623 else
15624   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext \
15627     conftest$ac_exeext conftest.$ac_ext
15628 fi
15629
15630
15631                 CFLAGS="$xorg_testset_save_CFLAGS"
15632
15633                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15634                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15635 $as_echo "$supported" >&6; }
15636                 if test "$supported" = "yes" ; then
15637                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15638                         found="yes"
15639                 fi
15640         fi
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654 xorg_testset_save_CFLAGS="$CFLAGS"
15655
15656 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15657         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15659 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15660 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15661   $as_echo_n "(cached) " >&6
15662 else
15663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h.  */
15665 int i;
15666 _ACEOF
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668   xorg_cv_compiler_flag_unknown_warning_option=yes
15669 else
15670   xorg_cv_compiler_flag_unknown_warning_option=no
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673 fi
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15675 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15676         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15677         CFLAGS="$xorg_testset_save_CFLAGS"
15678 fi
15679
15680 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15681         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15682                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15683         fi
15684         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15686 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15687 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15688   $as_echo_n "(cached) " >&6
15689 else
15690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h.  */
15692 int i;
15693 _ACEOF
15694 if ac_fn_c_try_compile "$LINENO"; then :
15695   xorg_cv_compiler_flag_unused_command_line_argument=yes
15696 else
15697   xorg_cv_compiler_flag_unused_command_line_argument=no
15698 fi
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 fi
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15702 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15703         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15704         CFLAGS="$xorg_testset_save_CFLAGS"
15705 fi
15706
15707 found="no"
15708
15709         if test $found = "no" ; then
15710                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15711                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15712                 fi
15713
15714                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15715                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15716                 fi
15717
15718                 CFLAGS="$CFLAGS -Wmain"
15719
15720                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15721 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15722                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15723                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15724   $as_echo_n "(cached) " >&6
15725 else
15726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h.  */
15728 int i;
15729 int
15730 main ()
15731 {
15732
15733   ;
15734   return 0;
15735 }
15736 _ACEOF
15737 if ac_fn_c_try_link "$LINENO"; then :
15738   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15739 else
15740   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext \
15743     conftest$ac_exeext conftest.$ac_ext
15744 fi
15745
15746
15747                 CFLAGS="$xorg_testset_save_CFLAGS"
15748
15749                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15750                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15751 $as_echo "$supported" >&6; }
15752                 if test "$supported" = "yes" ; then
15753                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15754                         found="yes"
15755                 fi
15756         fi
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770 xorg_testset_save_CFLAGS="$CFLAGS"
15771
15772 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15773         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15775 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15776 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15777   $as_echo_n "(cached) " >&6
15778 else
15779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h.  */
15781 int i;
15782 _ACEOF
15783 if ac_fn_c_try_compile "$LINENO"; then :
15784   xorg_cv_compiler_flag_unknown_warning_option=yes
15785 else
15786   xorg_cv_compiler_flag_unknown_warning_option=no
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 fi
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15791 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15792         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15793         CFLAGS="$xorg_testset_save_CFLAGS"
15794 fi
15795
15796 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15797         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15798                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15799         fi
15800         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15802 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15803 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15804   $as_echo_n "(cached) " >&6
15805 else
15806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h.  */
15808 int i;
15809 _ACEOF
15810 if ac_fn_c_try_compile "$LINENO"; then :
15811   xorg_cv_compiler_flag_unused_command_line_argument=yes
15812 else
15813   xorg_cv_compiler_flag_unused_command_line_argument=no
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15818 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15819         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15820         CFLAGS="$xorg_testset_save_CFLAGS"
15821 fi
15822
15823 found="no"
15824
15825         if test $found = "no" ; then
15826                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15827                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15828                 fi
15829
15830                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15831                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15832                 fi
15833
15834                 CFLAGS="$CFLAGS -Wmissing-braces"
15835
15836                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15837 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15838                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15839                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15840   $as_echo_n "(cached) " >&6
15841 else
15842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h.  */
15844 int i;
15845 int
15846 main ()
15847 {
15848
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 if ac_fn_c_try_link "$LINENO"; then :
15854   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15855 else
15856   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext \
15859     conftest$ac_exeext conftest.$ac_ext
15860 fi
15861
15862
15863                 CFLAGS="$xorg_testset_save_CFLAGS"
15864
15865                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15866                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15867 $as_echo "$supported" >&6; }
15868                 if test "$supported" = "yes" ; then
15869                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15870                         found="yes"
15871                 fi
15872         fi
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886 xorg_testset_save_CFLAGS="$CFLAGS"
15887
15888 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15889         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15891 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15892 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15893   $as_echo_n "(cached) " >&6
15894 else
15895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h.  */
15897 int i;
15898 _ACEOF
15899 if ac_fn_c_try_compile "$LINENO"; then :
15900   xorg_cv_compiler_flag_unknown_warning_option=yes
15901 else
15902   xorg_cv_compiler_flag_unknown_warning_option=no
15903 fi
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 fi
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15907 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15908         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15909         CFLAGS="$xorg_testset_save_CFLAGS"
15910 fi
15911
15912 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15913         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15914                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15915         fi
15916         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15918 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15919 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15920   $as_echo_n "(cached) " >&6
15921 else
15922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h.  */
15924 int i;
15925 _ACEOF
15926 if ac_fn_c_try_compile "$LINENO"; then :
15927   xorg_cv_compiler_flag_unused_command_line_argument=yes
15928 else
15929   xorg_cv_compiler_flag_unused_command_line_argument=no
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932 fi
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15934 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15935         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15936         CFLAGS="$xorg_testset_save_CFLAGS"
15937 fi
15938
15939 found="no"
15940
15941         if test $found = "no" ; then
15942                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15943                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15944                 fi
15945
15946                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15947                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15948                 fi
15949
15950                 CFLAGS="$CFLAGS -Wsequence-point"
15951
15952                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15953 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15954                 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15955                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15956   $as_echo_n "(cached) " >&6
15957 else
15958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h.  */
15960 int i;
15961 int
15962 main ()
15963 {
15964
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_link "$LINENO"; then :
15970   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15971 else
15972   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15973 fi
15974 rm -f core conftest.err conftest.$ac_objext \
15975     conftest$ac_exeext conftest.$ac_ext
15976 fi
15977
15978
15979                 CFLAGS="$xorg_testset_save_CFLAGS"
15980
15981                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15982                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15983 $as_echo "$supported" >&6; }
15984                 if test "$supported" = "yes" ; then
15985                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15986                         found="yes"
15987                 fi
15988         fi
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002 xorg_testset_save_CFLAGS="$CFLAGS"
16003
16004 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16005         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16007 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16008 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16009   $as_echo_n "(cached) " >&6
16010 else
16011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013 int i;
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016   xorg_cv_compiler_flag_unknown_warning_option=yes
16017 else
16018   xorg_cv_compiler_flag_unknown_warning_option=no
16019 fi
16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 fi
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16023 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16024         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16025         CFLAGS="$xorg_testset_save_CFLAGS"
16026 fi
16027
16028 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16029         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16030                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031         fi
16032         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16034 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16035 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16036   $as_echo_n "(cached) " >&6
16037 else
16038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h.  */
16040 int i;
16041 _ACEOF
16042 if ac_fn_c_try_compile "$LINENO"; then :
16043   xorg_cv_compiler_flag_unused_command_line_argument=yes
16044 else
16045   xorg_cv_compiler_flag_unused_command_line_argument=no
16046 fi
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 fi
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16050 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16051         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16052         CFLAGS="$xorg_testset_save_CFLAGS"
16053 fi
16054
16055 found="no"
16056
16057         if test $found = "no" ; then
16058                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16059                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16060                 fi
16061
16062                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16063                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16064                 fi
16065
16066                 CFLAGS="$CFLAGS -Wreturn-type"
16067
16068                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16069 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16070                 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16071                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16072   $as_echo_n "(cached) " >&6
16073 else
16074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h.  */
16076 int i;
16077 int
16078 main ()
16079 {
16080
16081   ;
16082   return 0;
16083 }
16084 _ACEOF
16085 if ac_fn_c_try_link "$LINENO"; then :
16086   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16087 else
16088   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext \
16091     conftest$ac_exeext conftest.$ac_ext
16092 fi
16093
16094
16095                 CFLAGS="$xorg_testset_save_CFLAGS"
16096
16097                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16098                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16099 $as_echo "$supported" >&6; }
16100                 if test "$supported" = "yes" ; then
16101                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16102                         found="yes"
16103                 fi
16104         fi
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118 xorg_testset_save_CFLAGS="$CFLAGS"
16119
16120 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16121         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16123 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16124 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16125   $as_echo_n "(cached) " >&6
16126 else
16127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h.  */
16129 int i;
16130 _ACEOF
16131 if ac_fn_c_try_compile "$LINENO"; then :
16132   xorg_cv_compiler_flag_unknown_warning_option=yes
16133 else
16134   xorg_cv_compiler_flag_unknown_warning_option=no
16135 fi
16136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137 fi
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16139 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16140         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16141         CFLAGS="$xorg_testset_save_CFLAGS"
16142 fi
16143
16144 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16145         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16146                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16147         fi
16148         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16150 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16151 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16152   $as_echo_n "(cached) " >&6
16153 else
16154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h.  */
16156 int i;
16157 _ACEOF
16158 if ac_fn_c_try_compile "$LINENO"; then :
16159   xorg_cv_compiler_flag_unused_command_line_argument=yes
16160 else
16161   xorg_cv_compiler_flag_unused_command_line_argument=no
16162 fi
16163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16166 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16167         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16168         CFLAGS="$xorg_testset_save_CFLAGS"
16169 fi
16170
16171 found="no"
16172
16173         if test $found = "no" ; then
16174                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16175                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16176                 fi
16177
16178                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16179                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16180                 fi
16181
16182                 CFLAGS="$CFLAGS -Wtrigraphs"
16183
16184                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16185 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16186                 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16187                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16188   $as_echo_n "(cached) " >&6
16189 else
16190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h.  */
16192 int i;
16193 int
16194 main ()
16195 {
16196
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 if ac_fn_c_try_link "$LINENO"; then :
16202   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16203 else
16204   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16205 fi
16206 rm -f core conftest.err conftest.$ac_objext \
16207     conftest$ac_exeext conftest.$ac_ext
16208 fi
16209
16210
16211                 CFLAGS="$xorg_testset_save_CFLAGS"
16212
16213                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16214                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16215 $as_echo "$supported" >&6; }
16216                 if test "$supported" = "yes" ; then
16217                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16218                         found="yes"
16219                 fi
16220         fi
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234 xorg_testset_save_CFLAGS="$CFLAGS"
16235
16236 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16237         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16239 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16240 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16241   $as_echo_n "(cached) " >&6
16242 else
16243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h.  */
16245 int i;
16246 _ACEOF
16247 if ac_fn_c_try_compile "$LINENO"; then :
16248   xorg_cv_compiler_flag_unknown_warning_option=yes
16249 else
16250   xorg_cv_compiler_flag_unknown_warning_option=no
16251 fi
16252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16253 fi
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16255 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16256         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16257         CFLAGS="$xorg_testset_save_CFLAGS"
16258 fi
16259
16260 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16261         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16262                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16263         fi
16264         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16266 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16267 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h.  */
16272 int i;
16273 _ACEOF
16274 if ac_fn_c_try_compile "$LINENO"; then :
16275   xorg_cv_compiler_flag_unused_command_line_argument=yes
16276 else
16277   xorg_cv_compiler_flag_unused_command_line_argument=no
16278 fi
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280 fi
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16282 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16283         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16284         CFLAGS="$xorg_testset_save_CFLAGS"
16285 fi
16286
16287 found="no"
16288
16289         if test $found = "no" ; then
16290                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16291                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16292                 fi
16293
16294                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16295                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16296                 fi
16297
16298                 CFLAGS="$CFLAGS -Warray-bounds"
16299
16300                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16301 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16302                 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16303                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16304   $as_echo_n "(cached) " >&6
16305 else
16306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h.  */
16308 int i;
16309 int
16310 main ()
16311 {
16312
16313   ;
16314   return 0;
16315 }
16316 _ACEOF
16317 if ac_fn_c_try_link "$LINENO"; then :
16318   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16319 else
16320   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext \
16323     conftest$ac_exeext conftest.$ac_ext
16324 fi
16325
16326
16327                 CFLAGS="$xorg_testset_save_CFLAGS"
16328
16329                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16330                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16331 $as_echo "$supported" >&6; }
16332                 if test "$supported" = "yes" ; then
16333                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16334                         found="yes"
16335                 fi
16336         fi
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350 xorg_testset_save_CFLAGS="$CFLAGS"
16351
16352 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16353         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16355 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16356 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16357   $as_echo_n "(cached) " >&6
16358 else
16359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h.  */
16361 int i;
16362 _ACEOF
16363 if ac_fn_c_try_compile "$LINENO"; then :
16364   xorg_cv_compiler_flag_unknown_warning_option=yes
16365 else
16366   xorg_cv_compiler_flag_unknown_warning_option=no
16367 fi
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 fi
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16371 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16372         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16373         CFLAGS="$xorg_testset_save_CFLAGS"
16374 fi
16375
16376 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16377         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16378                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16379         fi
16380         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16382 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16383 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16384   $as_echo_n "(cached) " >&6
16385 else
16386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h.  */
16388 int i;
16389 _ACEOF
16390 if ac_fn_c_try_compile "$LINENO"; then :
16391   xorg_cv_compiler_flag_unused_command_line_argument=yes
16392 else
16393   xorg_cv_compiler_flag_unused_command_line_argument=no
16394 fi
16395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16396 fi
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16398 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16399         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16400         CFLAGS="$xorg_testset_save_CFLAGS"
16401 fi
16402
16403 found="no"
16404
16405         if test $found = "no" ; then
16406                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16407                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16408                 fi
16409
16410                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16411                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16412                 fi
16413
16414                 CFLAGS="$CFLAGS -Wwrite-strings"
16415
16416                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16417 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16418                 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16419                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16420   $as_echo_n "(cached) " >&6
16421 else
16422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h.  */
16424 int i;
16425 int
16426 main ()
16427 {
16428
16429   ;
16430   return 0;
16431 }
16432 _ACEOF
16433 if ac_fn_c_try_link "$LINENO"; then :
16434   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16435 else
16436   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16437 fi
16438 rm -f core conftest.err conftest.$ac_objext \
16439     conftest$ac_exeext conftest.$ac_ext
16440 fi
16441
16442
16443                 CFLAGS="$xorg_testset_save_CFLAGS"
16444
16445                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16446                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16447 $as_echo "$supported" >&6; }
16448                 if test "$supported" = "yes" ; then
16449                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16450                         found="yes"
16451                 fi
16452         fi
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466 xorg_testset_save_CFLAGS="$CFLAGS"
16467
16468 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16469         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16471 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16472 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16473   $as_echo_n "(cached) " >&6
16474 else
16475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h.  */
16477 int i;
16478 _ACEOF
16479 if ac_fn_c_try_compile "$LINENO"; then :
16480   xorg_cv_compiler_flag_unknown_warning_option=yes
16481 else
16482   xorg_cv_compiler_flag_unknown_warning_option=no
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485 fi
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16487 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16488         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16489         CFLAGS="$xorg_testset_save_CFLAGS"
16490 fi
16491
16492 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16493         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16494                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16495         fi
16496         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16498 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16499 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16500   $as_echo_n "(cached) " >&6
16501 else
16502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h.  */
16504 int i;
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507   xorg_cv_compiler_flag_unused_command_line_argument=yes
16508 else
16509   xorg_cv_compiler_flag_unused_command_line_argument=no
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 fi
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16514 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16515         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16516         CFLAGS="$xorg_testset_save_CFLAGS"
16517 fi
16518
16519 found="no"
16520
16521         if test $found = "no" ; then
16522                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16523                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16524                 fi
16525
16526                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16527                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16528                 fi
16529
16530                 CFLAGS="$CFLAGS -Waddress"
16531
16532                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16533 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16534                 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16535                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16536   $as_echo_n "(cached) " >&6
16537 else
16538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h.  */
16540 int i;
16541 int
16542 main ()
16543 {
16544
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 if ac_fn_c_try_link "$LINENO"; then :
16550   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16551 else
16552   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16553 fi
16554 rm -f core conftest.err conftest.$ac_objext \
16555     conftest$ac_exeext conftest.$ac_ext
16556 fi
16557
16558
16559                 CFLAGS="$xorg_testset_save_CFLAGS"
16560
16561                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16562                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16563 $as_echo "$supported" >&6; }
16564                 if test "$supported" = "yes" ; then
16565                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16566                         found="yes"
16567                 fi
16568         fi
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582 xorg_testset_save_CFLAGS="$CFLAGS"
16583
16584 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16585         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16587 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16588 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16589   $as_echo_n "(cached) " >&6
16590 else
16591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h.  */
16593 int i;
16594 _ACEOF
16595 if ac_fn_c_try_compile "$LINENO"; then :
16596   xorg_cv_compiler_flag_unknown_warning_option=yes
16597 else
16598   xorg_cv_compiler_flag_unknown_warning_option=no
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16603 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16604         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16605         CFLAGS="$xorg_testset_save_CFLAGS"
16606 fi
16607
16608 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16609         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16610                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16611         fi
16612         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16614 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16615 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16616   $as_echo_n "(cached) " >&6
16617 else
16618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h.  */
16620 int i;
16621 _ACEOF
16622 if ac_fn_c_try_compile "$LINENO"; then :
16623   xorg_cv_compiler_flag_unused_command_line_argument=yes
16624 else
16625   xorg_cv_compiler_flag_unused_command_line_argument=no
16626 fi
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16630 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16631         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16632         CFLAGS="$xorg_testset_save_CFLAGS"
16633 fi
16634
16635 found="no"
16636
16637         if test $found = "no" ; then
16638                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16639                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16640                 fi
16641
16642                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16643                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16644                 fi
16645
16646                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16647
16648                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16649 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16650                 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16651                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16652   $as_echo_n "(cached) " >&6
16653 else
16654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h.  */
16656 int i;
16657 int
16658 main ()
16659 {
16660
16661   ;
16662   return 0;
16663 }
16664 _ACEOF
16665 if ac_fn_c_try_link "$LINENO"; then :
16666   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16667 else
16668   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16669 fi
16670 rm -f core conftest.err conftest.$ac_objext \
16671     conftest$ac_exeext conftest.$ac_ext
16672 fi
16673
16674
16675                 CFLAGS="$xorg_testset_save_CFLAGS"
16676
16677                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16678                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16679 $as_echo "$supported" >&6; }
16680                 if test "$supported" = "yes" ; then
16681                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16682                         found="yes"
16683                 fi
16684         fi
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698 xorg_testset_save_CFLAGS="$CFLAGS"
16699
16700 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16701         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16703 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16704 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16705   $as_echo_n "(cached) " >&6
16706 else
16707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h.  */
16709 int i;
16710 _ACEOF
16711 if ac_fn_c_try_compile "$LINENO"; then :
16712   xorg_cv_compiler_flag_unknown_warning_option=yes
16713 else
16714   xorg_cv_compiler_flag_unknown_warning_option=no
16715 fi
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717 fi
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16719 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16720         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16721         CFLAGS="$xorg_testset_save_CFLAGS"
16722 fi
16723
16724 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16725         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16726                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727         fi
16728         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16730 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16731 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16732   $as_echo_n "(cached) " >&6
16733 else
16734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h.  */
16736 int i;
16737 _ACEOF
16738 if ac_fn_c_try_compile "$LINENO"; then :
16739   xorg_cv_compiler_flag_unused_command_line_argument=yes
16740 else
16741   xorg_cv_compiler_flag_unused_command_line_argument=no
16742 fi
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744 fi
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16746 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16747         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16748         CFLAGS="$xorg_testset_save_CFLAGS"
16749 fi
16750
16751 found="no"
16752
16753         if test $found = "no" ; then
16754                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16755                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16756                 fi
16757
16758                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16759                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16760                 fi
16761
16762                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16763
16764                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16765 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16766                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16767                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16768   $as_echo_n "(cached) " >&6
16769 else
16770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h.  */
16772 int i;
16773 int
16774 main ()
16775 {
16776
16777   ;
16778   return 0;
16779 }
16780 _ACEOF
16781 if ac_fn_c_try_link "$LINENO"; then :
16782   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16783 else
16784   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext \
16787     conftest$ac_exeext conftest.$ac_ext
16788 fi
16789
16790
16791                 CFLAGS="$xorg_testset_save_CFLAGS"
16792
16793                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16794                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16795 $as_echo "$supported" >&6; }
16796                 if test "$supported" = "yes" ; then
16797                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16798                         found="yes"
16799                 fi
16800         fi
16801
16802
16803 fi
16804
16805
16806
16807
16808
16809
16810
16811                 CWARNFLAGS="$BASE_CFLAGS"
16812                 if  test "x$GCC" = xyes ; then
16813                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16814                 fi
16815
16816
16817
16818
16819
16820
16821
16822
16823 # Check whether --enable-strict-compilation was given.
16824 if test "${enable_strict_compilation+set}" = set; then :
16825   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16826 else
16827   STRICT_COMPILE=no
16828 fi
16829
16830
16831
16832
16833
16834
16835 STRICT_CFLAGS=""
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847 xorg_testset_save_CFLAGS="$CFLAGS"
16848
16849 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16850         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16852 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16853 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16854   $as_echo_n "(cached) " >&6
16855 else
16856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h.  */
16858 int i;
16859 _ACEOF
16860 if ac_fn_c_try_compile "$LINENO"; then :
16861   xorg_cv_compiler_flag_unknown_warning_option=yes
16862 else
16863   xorg_cv_compiler_flag_unknown_warning_option=no
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16868 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16869         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16870         CFLAGS="$xorg_testset_save_CFLAGS"
16871 fi
16872
16873 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16874         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16875                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16876         fi
16877         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16879 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16880 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16881   $as_echo_n "(cached) " >&6
16882 else
16883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h.  */
16885 int i;
16886 _ACEOF
16887 if ac_fn_c_try_compile "$LINENO"; then :
16888   xorg_cv_compiler_flag_unused_command_line_argument=yes
16889 else
16890   xorg_cv_compiler_flag_unused_command_line_argument=no
16891 fi
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 fi
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16895 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16896         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16897         CFLAGS="$xorg_testset_save_CFLAGS"
16898 fi
16899
16900 found="no"
16901
16902         if test $found = "no" ; then
16903                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16904                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16905                 fi
16906
16907                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16908                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16909                 fi
16910
16911                 CFLAGS="$CFLAGS -pedantic"
16912
16913                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16914 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16915                 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16916                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16917   $as_echo_n "(cached) " >&6
16918 else
16919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h.  */
16921 int i;
16922 int
16923 main ()
16924 {
16925
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 if ac_fn_c_try_link "$LINENO"; then :
16931   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16932 else
16933   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16934 fi
16935 rm -f core conftest.err conftest.$ac_objext \
16936     conftest$ac_exeext conftest.$ac_ext
16937 fi
16938
16939
16940                 CFLAGS="$xorg_testset_save_CFLAGS"
16941
16942                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16943                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16944 $as_echo "$supported" >&6; }
16945                 if test "$supported" = "yes" ; then
16946                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16947                         found="yes"
16948                 fi
16949         fi
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963 xorg_testset_save_CFLAGS="$CFLAGS"
16964
16965 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16966         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16968 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16969 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16970   $as_echo_n "(cached) " >&6
16971 else
16972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h.  */
16974 int i;
16975 _ACEOF
16976 if ac_fn_c_try_compile "$LINENO"; then :
16977   xorg_cv_compiler_flag_unknown_warning_option=yes
16978 else
16979   xorg_cv_compiler_flag_unknown_warning_option=no
16980 fi
16981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16982 fi
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16984 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16985         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16986         CFLAGS="$xorg_testset_save_CFLAGS"
16987 fi
16988
16989 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16990         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16991                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16992         fi
16993         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16995 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16996 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16997   $as_echo_n "(cached) " >&6
16998 else
16999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h.  */
17001 int i;
17002 _ACEOF
17003 if ac_fn_c_try_compile "$LINENO"; then :
17004   xorg_cv_compiler_flag_unused_command_line_argument=yes
17005 else
17006   xorg_cv_compiler_flag_unused_command_line_argument=no
17007 fi
17008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17009 fi
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17011 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17012         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17013         CFLAGS="$xorg_testset_save_CFLAGS"
17014 fi
17015
17016 found="no"
17017
17018         if test $found = "no" ; then
17019                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17020                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17021                 fi
17022
17023                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17024                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17025                 fi
17026
17027                 CFLAGS="$CFLAGS -Werror"
17028
17029                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17030 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17031                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17032                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17033   $as_echo_n "(cached) " >&6
17034 else
17035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h.  */
17037 int i;
17038 int
17039 main ()
17040 {
17041
17042   ;
17043   return 0;
17044 }
17045 _ACEOF
17046 if ac_fn_c_try_link "$LINENO"; then :
17047   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17048 else
17049   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17050 fi
17051 rm -f core conftest.err conftest.$ac_objext \
17052     conftest$ac_exeext conftest.$ac_ext
17053 fi
17054
17055
17056                 CFLAGS="$xorg_testset_save_CFLAGS"
17057
17058                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17059                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17060 $as_echo "$supported" >&6; }
17061                 if test "$supported" = "yes" ; then
17062                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17063                         found="yes"
17064                 fi
17065         fi
17066
17067         if test $found = "no" ; then
17068                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17069                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17070                 fi
17071
17072                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17073                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17074                 fi
17075
17076                 CFLAGS="$CFLAGS -errwarn"
17077
17078                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17079 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17080                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17081                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17082   $as_echo_n "(cached) " >&6
17083 else
17084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h.  */
17086 int i;
17087 int
17088 main ()
17089 {
17090
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 if ac_fn_c_try_link "$LINENO"; then :
17096   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17097 else
17098   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17099 fi
17100 rm -f core conftest.err conftest.$ac_objext \
17101     conftest$ac_exeext conftest.$ac_ext
17102 fi
17103
17104
17105                 CFLAGS="$xorg_testset_save_CFLAGS"
17106
17107                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17108                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17109 $as_echo "$supported" >&6; }
17110                 if test "$supported" = "yes" ; then
17111                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17112                         found="yes"
17113                 fi
17114         fi
17115
17116
17117
17118 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17119 # activate it with -Werror, so we add it here explicitly.
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131 xorg_testset_save_CFLAGS="$CFLAGS"
17132
17133 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17134         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17136 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17137 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17138   $as_echo_n "(cached) " >&6
17139 else
17140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h.  */
17142 int i;
17143 _ACEOF
17144 if ac_fn_c_try_compile "$LINENO"; then :
17145   xorg_cv_compiler_flag_unknown_warning_option=yes
17146 else
17147   xorg_cv_compiler_flag_unknown_warning_option=no
17148 fi
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 fi
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17152 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17153         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17154         CFLAGS="$xorg_testset_save_CFLAGS"
17155 fi
17156
17157 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17158         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17159                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17160         fi
17161         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17163 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17164 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17165   $as_echo_n "(cached) " >&6
17166 else
17167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h.  */
17169 int i;
17170 _ACEOF
17171 if ac_fn_c_try_compile "$LINENO"; then :
17172   xorg_cv_compiler_flag_unused_command_line_argument=yes
17173 else
17174   xorg_cv_compiler_flag_unused_command_line_argument=no
17175 fi
17176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177 fi
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17179 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17180         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17181         CFLAGS="$xorg_testset_save_CFLAGS"
17182 fi
17183
17184 found="no"
17185
17186         if test $found = "no" ; then
17187                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17188                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17189                 fi
17190
17191                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17192                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17193                 fi
17194
17195                 CFLAGS="$CFLAGS -Werror=attributes"
17196
17197                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17198 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17199                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17200                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17201   $as_echo_n "(cached) " >&6
17202 else
17203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h.  */
17205 int i;
17206 int
17207 main ()
17208 {
17209
17210   ;
17211   return 0;
17212 }
17213 _ACEOF
17214 if ac_fn_c_try_link "$LINENO"; then :
17215   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17216 else
17217   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext \
17220     conftest$ac_exeext conftest.$ac_ext
17221 fi
17222
17223
17224                 CFLAGS="$xorg_testset_save_CFLAGS"
17225
17226                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17227                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17228 $as_echo "$supported" >&6; }
17229                 if test "$supported" = "yes" ; then
17230                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17231                         found="yes"
17232                 fi
17233         fi
17234
17235
17236
17237 if test "x$STRICT_COMPILE" = "xyes"; then
17238     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17239     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17240 fi
17241
17242
17243
17244
17245
17246
17247 cat >>confdefs.h <<_ACEOF
17248 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17249 _ACEOF
17250
17251         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17252         if test "x$PVM" = "x"; then
17253                 PVM="0"
17254         fi
17255
17256 cat >>confdefs.h <<_ACEOF
17257 #define PACKAGE_VERSION_MINOR $PVM
17258 _ACEOF
17259
17260         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17261         if test "x$PVP" = "x"; then
17262                 PVP="0"
17263         fi
17264
17265 cat >>confdefs.h <<_ACEOF
17266 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17267 _ACEOF
17268
17269
17270
17271 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17272 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17273 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17274 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17275
17276
17277
17278
17279 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17280 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17281 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17282 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17283 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17284
17285
17286
17287
17288
17289
17290 if test x$APP_MAN_SUFFIX = x    ; then
17291     APP_MAN_SUFFIX=1
17292 fi
17293 if test x$APP_MAN_DIR = x    ; then
17294     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17295 fi
17296
17297 if test x$LIB_MAN_SUFFIX = x    ; then
17298     LIB_MAN_SUFFIX=3
17299 fi
17300 if test x$LIB_MAN_DIR = x    ; then
17301     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17302 fi
17303
17304 if test x$FILE_MAN_SUFFIX = x    ; then
17305     case $host_os in
17306         solaris*)       FILE_MAN_SUFFIX=4  ;;
17307         *)              FILE_MAN_SUFFIX=5  ;;
17308     esac
17309 fi
17310 if test x$FILE_MAN_DIR = x    ; then
17311     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17312 fi
17313
17314 if test x$MISC_MAN_SUFFIX = x    ; then
17315     case $host_os in
17316         solaris*)       MISC_MAN_SUFFIX=5  ;;
17317         *)              MISC_MAN_SUFFIX=7  ;;
17318     esac
17319 fi
17320 if test x$MISC_MAN_DIR = x    ; then
17321     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17322 fi
17323
17324 if test x$DRIVER_MAN_SUFFIX = x    ; then
17325     case $host_os in
17326         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
17327         *)              DRIVER_MAN_SUFFIX=4  ;;
17328     esac
17329 fi
17330 if test x$DRIVER_MAN_DIR = x    ; then
17331     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17332 fi
17333
17334 if test x$ADMIN_MAN_SUFFIX = x    ; then
17335     case $host_os in
17336         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
17337         *)              ADMIN_MAN_SUFFIX=8  ;;
17338     esac
17339 fi
17340 if test x$ADMIN_MAN_DIR = x    ; then
17341     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17342 fi
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358 XORG_MAN_PAGE="X Version 11"
17359
17360 MAN_SUBSTS="\
17361         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17362         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17363         -e 's|__xservername__|Xorg|g' \
17364         -e 's|__xconfigfile__|xorg.conf|g' \
17365         -e 's|__projectroot__|\$(prefix)|g' \
17366         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17367         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17368         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17369         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17370         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17371         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17372         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17373
17374
17375
17376 # Check whether --enable-silent-rules was given.
17377 if test "${enable_silent_rules+set}" = set; then :
17378   enableval=$enable_silent_rules;
17379 fi
17380
17381 case $enable_silent_rules in
17382 yes) AM_DEFAULT_VERBOSITY=0;;
17383 no)  AM_DEFAULT_VERBOSITY=1;;
17384 *)   AM_DEFAULT_VERBOSITY=0;;
17385 esac
17386 AM_BACKSLASH='\'
17387
17388
17389
17390 # Check whether --enable-malloc0returnsnull was given.
17391 if test "${enable_malloc0returnsnull+set}" = set; then :
17392   enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17393 else
17394   MALLOC_ZERO_RETURNS_NULL=auto
17395 fi
17396
17397
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17399 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17400 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17401         if test "$cross_compiling" = yes; then :
17402   MALLOC_ZERO_RETURNS_NULL=yes
17403 else
17404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h.  */
17406
17407 #include <stdlib.h>
17408
17409 int
17410 main ()
17411 {
17412
17413     char *m0, *r0, *c0, *p;
17414     m0 = malloc(0);
17415     p = malloc(10);
17416     r0 = realloc(p,0);
17417     c0 = calloc(0,10);
17418     exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17419
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 if ac_fn_c_try_run "$LINENO"; then :
17425   MALLOC_ZERO_RETURNS_NULL=yes
17426 else
17427   MALLOC_ZERO_RETURNS_NULL=no
17428 fi
17429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17430   conftest.$ac_objext conftest.beam conftest.$ac_ext
17431 fi
17432
17433 fi
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17435 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17436
17437 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17438         MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17439         XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17440         XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17441 else
17442         MALLOC_ZERO_CFLAGS=""
17443         XMALLOC_ZERO_CFLAGS=""
17444         XTMALLOC_ZERO_CFLAGS=""
17445 fi
17446
17447
17448
17449
17450
17451
17452 # Obtain compiler/linker options for depedencies
17453
17454 pkg_failed=no
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5
17456 $as_echo_n "checking for XV... " >&6; }
17457
17458 if test -n "$XV_CFLAGS"; then
17459     pkg_cv_XV_CFLAGS="$XV_CFLAGS"
17460  elif test -n "$PKG_CONFIG"; then
17461     if test -n "$PKG_CONFIG" && \
17462     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
17463   ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
17464   ac_status=$?
17465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17466   test $ac_status = 0; }; then
17467   pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto videoproto" 2>/dev/null`
17468 else
17469   pkg_failed=yes
17470 fi
17471  else
17472     pkg_failed=untried
17473 fi
17474 if test -n "$XV_LIBS"; then
17475     pkg_cv_XV_LIBS="$XV_LIBS"
17476  elif test -n "$PKG_CONFIG"; then
17477     if test -n "$PKG_CONFIG" && \
17478     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
17479   ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
17480   ac_status=$?
17481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17482   test $ac_status = 0; }; then
17483   pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto videoproto" 2>/dev/null`
17484 else
17485   pkg_failed=yes
17486 fi
17487  else
17488     pkg_failed=untried
17489 fi
17490
17491
17492
17493 if test $pkg_failed = yes; then
17494
17495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17496         _pkg_short_errors_supported=yes
17497 else
17498         _pkg_short_errors_supported=no
17499 fi
17500         if test $_pkg_short_errors_supported = yes; then
17501                 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto videoproto" 2>&1`
17502         else
17503                 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto videoproto" 2>&1`
17504         fi
17505         # Put the nasty error message in config.log where it belongs
17506         echo "$XV_PKG_ERRORS" >&5
17507
17508         as_fn_error $? "Package requirements (x11 xext xextproto videoproto) were not met:
17509
17510 $XV_PKG_ERRORS
17511
17512 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17513 installed software in a non-standard prefix.
17514
17515 Alternatively, you may set the environment variables XV_CFLAGS
17516 and XV_LIBS to avoid the need to call pkg-config.
17517 See the pkg-config man page for more details.
17518 " "$LINENO" 5
17519 elif test $pkg_failed = untried; then
17520         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17522 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17523 is in your PATH or set the PKG_CONFIG environment variable to the full
17524 path to pkg-config.
17525
17526 Alternatively, you may set the environment variables XV_CFLAGS
17527 and XV_LIBS to avoid the need to call pkg-config.
17528 See the pkg-config man page for more details.
17529
17530 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17531 See \`config.log' for more details" "$LINENO" 5; }
17532 else
17533         XV_CFLAGS=$pkg_cv_XV_CFLAGS
17534         XV_LIBS=$pkg_cv_XV_LIBS
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17536 $as_echo "yes" >&6; }
17537         :
17538 fi
17539
17540 # Allow checking code with lint, sparse, etc.
17541
17542
17543
17544
17545
17546 # Check whether --with-lint was given.
17547 if test "${with_lint+set}" = set; then :
17548   withval=$with_lint; use_lint=$withval
17549 else
17550   use_lint=no
17551 fi
17552
17553
17554 # Obtain platform specific info like program name and options
17555 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17556 case $host_os in
17557   *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17558         lint_name=splint
17559         lint_options="-badflag"
17560         ;;
17561   *freebsd* | *netbsd*)
17562         lint_name=lint
17563         lint_options="-u -b"
17564         ;;
17565   *solaris*)
17566         lint_name=lint
17567         lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17568         ;;
17569 esac
17570
17571 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17572 if test "x$use_lint" = x"yes" ; then
17573    # Extract the first word of "$lint_name", so it can be a program name with args.
17574 set dummy $lint_name; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_path_LINT+:} false; then :
17578   $as_echo_n "(cached) " >&6
17579 else
17580   case $LINT in
17581   [\\/]* | ?:[\\/]*)
17582   ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17583   ;;
17584   *)
17585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586 for as_dir in $PATH
17587 do
17588   IFS=$as_save_IFS
17589   test -z "$as_dir" && as_dir=.
17590     for ac_exec_ext in '' $ac_executable_extensions; do
17591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17592     ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17594     break 2
17595   fi
17596 done
17597   done
17598 IFS=$as_save_IFS
17599
17600   ;;
17601 esac
17602 fi
17603 LINT=$ac_cv_path_LINT
17604 if test -n "$LINT"; then
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17606 $as_echo "$LINT" >&6; }
17607 else
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17610 fi
17611
17612
17613    if test "x$LINT" = "x"; then
17614         as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17615    fi
17616 elif test "x$use_lint" = x"no" ; then
17617    if test "x$LINT" != "x"; then
17618       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17619 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17620    fi
17621 else
17622    as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17623 fi
17624
17625 # User supplied flags override default flags
17626 if test "x$LINT_FLAGS" != "x"; then
17627    lint_options=$LINT_FLAGS
17628 fi
17629
17630 LINT_FLAGS=$lint_options
17631
17632  if test "x$LINT" != x; then
17633   LINT_TRUE=
17634   LINT_FALSE='#'
17635 else
17636   LINT_TRUE='#'
17637   LINT_FALSE=
17638 fi
17639
17640
17641
17642
17643
17644 # Check whether --enable-lint-library was given.
17645 if test "${enable_lint_library+set}" = set; then :
17646   enableval=$enable_lint_library; make_lint_lib=$enableval
17647 else
17648   make_lint_lib=no
17649 fi
17650
17651
17652 if test "x$make_lint_lib" = x"yes" ; then
17653    LINTLIB=llib-lXv.ln
17654    if test "x$LINT" = "x"; then
17655         as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
17656    fi
17657 elif test "x$make_lint_lib" != x"no" ; then
17658    as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
17659 fi
17660
17661
17662  if test x$make_lint_lib != xno; then
17663   MAKE_LINT_LIB_TRUE=
17664   MAKE_LINT_LIB_FALSE='#'
17665 else
17666   MAKE_LINT_LIB_TRUE='#'
17667   MAKE_LINT_LIB_FALSE=
17668 fi
17669
17670
17671
17672
17673 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc"
17674
17675 cat >confcache <<\_ACEOF
17676 # This file is a shell script that caches the results of configure
17677 # tests run on this system so they can be shared between configure
17678 # scripts and configure runs, see configure's option --config-cache.
17679 # It is not useful on other systems.  If it contains results you don't
17680 # want to keep, you may remove or edit it.
17681 #
17682 # config.status only pays attention to the cache file if you give it
17683 # the --recheck option to rerun configure.
17684 #
17685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17687 # following values.
17688
17689 _ACEOF
17690
17691 # The following way of writing the cache mishandles newlines in values,
17692 # but we know of no workaround that is simple, portable, and efficient.
17693 # So, we kill variables containing newlines.
17694 # Ultrix sh set writes to stderr and can't be redirected directly,
17695 # and sets the high bit in the cache file unless we assign to the vars.
17696 (
17697   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17698     eval ac_val=\$$ac_var
17699     case $ac_val in #(
17700     *${as_nl}*)
17701       case $ac_var in #(
17702       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17704       esac
17705       case $ac_var in #(
17706       _ | IFS | as_nl) ;; #(
17707       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17708       *) { eval $ac_var=; unset $ac_var;} ;;
17709       esac ;;
17710     esac
17711   done
17712
17713   (set) 2>&1 |
17714     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17715     *${as_nl}ac_space=\ *)
17716       # `set' does not quote correctly, so add quotes: double-quote
17717       # substitution turns \\\\ into \\, and sed turns \\ into \.
17718       sed -n \
17719         "s/'/'\\\\''/g;
17720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17721       ;; #(
17722     *)
17723       # `set' quotes correctly as required by POSIX, so do not add quotes.
17724       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17725       ;;
17726     esac |
17727     sort
17728 ) |
17729   sed '
17730      /^ac_cv_env_/b end
17731      t clear
17732      :clear
17733      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17734      t end
17735      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17736      :end' >>confcache
17737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17738   if test -w "$cache_file"; then
17739     if test "x$cache_file" != "x/dev/null"; then
17740       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17741 $as_echo "$as_me: updating cache $cache_file" >&6;}
17742       if test ! -f "$cache_file" || test -h "$cache_file"; then
17743         cat confcache >"$cache_file"
17744       else
17745         case $cache_file in #(
17746         */* | ?:*)
17747           mv -f confcache "$cache_file"$$ &&
17748           mv -f "$cache_file"$$ "$cache_file" ;; #(
17749         *)
17750           mv -f confcache "$cache_file" ;;
17751         esac
17752       fi
17753     fi
17754   else
17755     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17756 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17757   fi
17758 fi
17759 rm -f confcache
17760
17761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17762 # Let make expand exec_prefix.
17763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17764
17765 DEFS=-DHAVE_CONFIG_H
17766
17767 ac_libobjs=
17768 ac_ltlibobjs=
17769 U=
17770 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17771   # 1. Remove the extension, and $U if already installed.
17772   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17773   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17774   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17775   #    will be set to the directory where LIBOBJS objects are built.
17776   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17777   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17778 done
17779 LIBOBJS=$ac_libobjs
17780
17781 LTLIBOBJS=$ac_ltlibobjs
17782
17783
17784  if test -n "$EXEEXT"; then
17785   am__EXEEXT_TRUE=
17786   am__EXEEXT_FALSE='#'
17787 else
17788   am__EXEEXT_TRUE='#'
17789   am__EXEEXT_FALSE=
17790 fi
17791
17792 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17793   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17795 fi
17796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17797   as_fn_error $? "conditional \"AMDEP\" was never defined.
17798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17799 fi
17800 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17801   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17803 fi
17804 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17805   as_fn_error $? "conditional \"LINT\" was never defined.
17806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17807 fi
17808 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
17809   as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
17810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17811 fi
17812
17813 : "${CONFIG_STATUS=./config.status}"
17814 ac_write_fail=0
17815 ac_clean_files_save=$ac_clean_files
17816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17819 as_write_fail=0
17820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17821 #! $SHELL
17822 # Generated by $as_me.
17823 # Run this file to recreate the current configuration.
17824 # Compiler output produced by configure, useful for debugging
17825 # configure, is in config.log if it exists.
17826
17827 debug=false
17828 ac_cs_recheck=false
17829 ac_cs_silent=false
17830
17831 SHELL=\${CONFIG_SHELL-$SHELL}
17832 export SHELL
17833 _ASEOF
17834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17835 ## -------------------- ##
17836 ## M4sh Initialization. ##
17837 ## -------------------- ##
17838
17839 # Be more Bourne compatible
17840 DUALCASE=1; export DUALCASE # for MKS sh
17841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17842   emulate sh
17843   NULLCMD=:
17844   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17845   # is contrary to our usage.  Disable this feature.
17846   alias -g '${1+"$@"}'='"$@"'
17847   setopt NO_GLOB_SUBST
17848 else
17849   case `(set -o) 2>/dev/null` in #(
17850   *posix*) :
17851     set -o posix ;; #(
17852   *) :
17853      ;;
17854 esac
17855 fi
17856
17857
17858 as_nl='
17859 '
17860 export as_nl
17861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17865 # Prefer a ksh shell builtin over an external printf program on Solaris,
17866 # but without wasting forks for bash or zsh.
17867 if test -z "$BASH_VERSION$ZSH_VERSION" \
17868     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17869   as_echo='print -r --'
17870   as_echo_n='print -rn --'
17871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17872   as_echo='printf %s\n'
17873   as_echo_n='printf %s'
17874 else
17875   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17876     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17877     as_echo_n='/usr/ucb/echo -n'
17878   else
17879     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17880     as_echo_n_body='eval
17881       arg=$1;
17882       case $arg in #(
17883       *"$as_nl"*)
17884         expr "X$arg" : "X\\(.*\\)$as_nl";
17885         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17886       esac;
17887       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17888     '
17889     export as_echo_n_body
17890     as_echo_n='sh -c $as_echo_n_body as_echo'
17891   fi
17892   export as_echo_body
17893   as_echo='sh -c $as_echo_body as_echo'
17894 fi
17895
17896 # The user is always right.
17897 if test "${PATH_SEPARATOR+set}" != set; then
17898   PATH_SEPARATOR=:
17899   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17900     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17901       PATH_SEPARATOR=';'
17902   }
17903 fi
17904
17905
17906 # IFS
17907 # We need space, tab and new line, in precisely that order.  Quoting is
17908 # there to prevent editors from complaining about space-tab.
17909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17910 # splitting by setting IFS to empty value.)
17911 IFS=" ""        $as_nl"
17912
17913 # Find who we are.  Look in the path if we contain no directory separator.
17914 as_myself=
17915 case $0 in #((
17916   *[\\/]* ) as_myself=$0 ;;
17917   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17918 for as_dir in $PATH
17919 do
17920   IFS=$as_save_IFS
17921   test -z "$as_dir" && as_dir=.
17922     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17923   done
17924 IFS=$as_save_IFS
17925
17926      ;;
17927 esac
17928 # We did not find ourselves, most probably we were run as `sh COMMAND'
17929 # in which case we are not to be found in the path.
17930 if test "x$as_myself" = x; then
17931   as_myself=$0
17932 fi
17933 if test ! -f "$as_myself"; then
17934   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17935   exit 1
17936 fi
17937
17938 # Unset variables that we do not need and which cause bugs (e.g. in
17939 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17940 # suppresses any "Segmentation fault" message there.  '((' could
17941 # trigger a bug in pdksh 5.2.14.
17942 for as_var in BASH_ENV ENV MAIL MAILPATH
17943 do eval test x\${$as_var+set} = xset \
17944   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17945 done
17946 PS1='$ '
17947 PS2='> '
17948 PS4='+ '
17949
17950 # NLS nuisances.
17951 LC_ALL=C
17952 export LC_ALL
17953 LANGUAGE=C
17954 export LANGUAGE
17955
17956 # CDPATH.
17957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17958
17959
17960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17961 # ----------------------------------------
17962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17964 # script with STATUS, using 1 if that was 0.
17965 as_fn_error ()
17966 {
17967   as_status=$1; test $as_status -eq 0 && as_status=1
17968   if test "$4"; then
17969     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17970     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17971   fi
17972   $as_echo "$as_me: error: $2" >&2
17973   as_fn_exit $as_status
17974 } # as_fn_error
17975
17976
17977 # as_fn_set_status STATUS
17978 # -----------------------
17979 # Set $? to STATUS, without forking.
17980 as_fn_set_status ()
17981 {
17982   return $1
17983 } # as_fn_set_status
17984
17985 # as_fn_exit STATUS
17986 # -----------------
17987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17988 as_fn_exit ()
17989 {
17990   set +e
17991   as_fn_set_status $1
17992   exit $1
17993 } # as_fn_exit
17994
17995 # as_fn_unset VAR
17996 # ---------------
17997 # Portably unset VAR.
17998 as_fn_unset ()
17999 {
18000   { eval $1=; unset $1;}
18001 }
18002 as_unset=as_fn_unset
18003 # as_fn_append VAR VALUE
18004 # ----------------------
18005 # Append the text in VALUE to the end of the definition contained in VAR. Take
18006 # advantage of any shell optimizations that allow amortized linear growth over
18007 # repeated appends, instead of the typical quadratic growth present in naive
18008 # implementations.
18009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18010   eval 'as_fn_append ()
18011   {
18012     eval $1+=\$2
18013   }'
18014 else
18015   as_fn_append ()
18016   {
18017     eval $1=\$$1\$2
18018   }
18019 fi # as_fn_append
18020
18021 # as_fn_arith ARG...
18022 # ------------------
18023 # Perform arithmetic evaluation on the ARGs, and store the result in the
18024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18025 # must be portable across $(()) and expr.
18026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18027   eval 'as_fn_arith ()
18028   {
18029     as_val=$(( $* ))
18030   }'
18031 else
18032   as_fn_arith ()
18033   {
18034     as_val=`expr "$@" || test $? -eq 1`
18035   }
18036 fi # as_fn_arith
18037
18038
18039 if expr a : '\(a\)' >/dev/null 2>&1 &&
18040    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18041   as_expr=expr
18042 else
18043   as_expr=false
18044 fi
18045
18046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18047   as_basename=basename
18048 else
18049   as_basename=false
18050 fi
18051
18052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18053   as_dirname=dirname
18054 else
18055   as_dirname=false
18056 fi
18057
18058 as_me=`$as_basename -- "$0" ||
18059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18060          X"$0" : 'X\(//\)$' \| \
18061          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18062 $as_echo X/"$0" |
18063     sed '/^.*\/\([^/][^/]*\)\/*$/{
18064             s//\1/
18065             q
18066           }
18067           /^X\/\(\/\/\)$/{
18068             s//\1/
18069             q
18070           }
18071           /^X\/\(\/\).*/{
18072             s//\1/
18073             q
18074           }
18075           s/.*/./; q'`
18076
18077 # Avoid depending upon Character Ranges.
18078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18081 as_cr_digits='0123456789'
18082 as_cr_alnum=$as_cr_Letters$as_cr_digits
18083
18084 ECHO_C= ECHO_N= ECHO_T=
18085 case `echo -n x` in #(((((
18086 -n*)
18087   case `echo 'xy\c'` in
18088   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18089   xy)  ECHO_C='\c';;
18090   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18091        ECHO_T=' ';;
18092   esac;;
18093 *)
18094   ECHO_N='-n';;
18095 esac
18096
18097 rm -f conf$$ conf$$.exe conf$$.file
18098 if test -d conf$$.dir; then
18099   rm -f conf$$.dir/conf$$.file
18100 else
18101   rm -f conf$$.dir
18102   mkdir conf$$.dir 2>/dev/null
18103 fi
18104 if (echo >conf$$.file) 2>/dev/null; then
18105   if ln -s conf$$.file conf$$ 2>/dev/null; then
18106     as_ln_s='ln -s'
18107     # ... but there are two gotchas:
18108     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18109     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18110     # In both cases, we have to default to `cp -p'.
18111     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18112       as_ln_s='cp -p'
18113   elif ln conf$$.file conf$$ 2>/dev/null; then
18114     as_ln_s=ln
18115   else
18116     as_ln_s='cp -p'
18117   fi
18118 else
18119   as_ln_s='cp -p'
18120 fi
18121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18122 rmdir conf$$.dir 2>/dev/null
18123
18124
18125 # as_fn_mkdir_p
18126 # -------------
18127 # Create "$as_dir" as a directory, including parents if necessary.
18128 as_fn_mkdir_p ()
18129 {
18130
18131   case $as_dir in #(
18132   -*) as_dir=./$as_dir;;
18133   esac
18134   test -d "$as_dir" || eval $as_mkdir_p || {
18135     as_dirs=
18136     while :; do
18137       case $as_dir in #(
18138       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18139       *) as_qdir=$as_dir;;
18140       esac
18141       as_dirs="'$as_qdir' $as_dirs"
18142       as_dir=`$as_dirname -- "$as_dir" ||
18143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18144          X"$as_dir" : 'X\(//\)[^/]' \| \
18145          X"$as_dir" : 'X\(//\)$' \| \
18146          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18147 $as_echo X"$as_dir" |
18148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18149             s//\1/
18150             q
18151           }
18152           /^X\(\/\/\)[^/].*/{
18153             s//\1/
18154             q
18155           }
18156           /^X\(\/\/\)$/{
18157             s//\1/
18158             q
18159           }
18160           /^X\(\/\).*/{
18161             s//\1/
18162             q
18163           }
18164           s/.*/./; q'`
18165       test -d "$as_dir" && break
18166     done
18167     test -z "$as_dirs" || eval "mkdir $as_dirs"
18168   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18169
18170
18171 } # as_fn_mkdir_p
18172 if mkdir -p . 2>/dev/null; then
18173   as_mkdir_p='mkdir -p "$as_dir"'
18174 else
18175   test -d ./-p && rmdir ./-p
18176   as_mkdir_p=false
18177 fi
18178
18179 if test -x / >/dev/null 2>&1; then
18180   as_test_x='test -x'
18181 else
18182   if ls -dL / >/dev/null 2>&1; then
18183     as_ls_L_option=L
18184   else
18185     as_ls_L_option=
18186   fi
18187   as_test_x='
18188     eval sh -c '\''
18189       if test -d "$1"; then
18190         test -d "$1/.";
18191       else
18192         case $1 in #(
18193         -*)set "./$1";;
18194         esac;
18195         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18196         ???[sx]*):;;*)false;;esac;fi
18197     '\'' sh
18198   '
18199 fi
18200 as_executable_p=$as_test_x
18201
18202 # Sed expression to map a string onto a valid CPP name.
18203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18204
18205 # Sed expression to map a string onto a valid variable name.
18206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18207
18208
18209 exec 6>&1
18210 ## ----------------------------------- ##
18211 ## Main body of $CONFIG_STATUS script. ##
18212 ## ----------------------------------- ##
18213 _ASEOF
18214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18215
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 # Save the log message, to keep $0 and so on meaningful, and to
18218 # report actual input values of CONFIG_FILES etc. instead of their
18219 # values after options handling.
18220 ac_log="
18221 This file was extended by libXv $as_me 1.0.7, which was
18222 generated by GNU Autoconf 2.68.  Invocation command line was
18223
18224   CONFIG_FILES    = $CONFIG_FILES
18225   CONFIG_HEADERS  = $CONFIG_HEADERS
18226   CONFIG_LINKS    = $CONFIG_LINKS
18227   CONFIG_COMMANDS = $CONFIG_COMMANDS
18228   $ $0 $@
18229
18230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18231 "
18232
18233 _ACEOF
18234
18235 case $ac_config_files in *"
18236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18237 esac
18238
18239 case $ac_config_headers in *"
18240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18241 esac
18242
18243
18244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18245 # Files that config.status was made for.
18246 config_files="$ac_config_files"
18247 config_headers="$ac_config_headers"
18248 config_commands="$ac_config_commands"
18249
18250 _ACEOF
18251
18252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18253 ac_cs_usage="\
18254 \`$as_me' instantiates files and other configuration actions
18255 from templates according to the current configuration.  Unless the files
18256 and actions are specified as TAGs, all are instantiated by default.
18257
18258 Usage: $0 [OPTION]... [TAG]...
18259
18260   -h, --help       print this help, then exit
18261   -V, --version    print version number and configuration settings, then exit
18262       --config     print configuration, then exit
18263   -q, --quiet, --silent
18264                    do not print progress messages
18265   -d, --debug      don't remove temporary files
18266       --recheck    update $as_me by reconfiguring in the same conditions
18267       --file=FILE[:TEMPLATE]
18268                    instantiate the configuration file FILE
18269       --header=FILE[:TEMPLATE]
18270                    instantiate the configuration header FILE
18271
18272 Configuration files:
18273 $config_files
18274
18275 Configuration headers:
18276 $config_headers
18277
18278 Configuration commands:
18279 $config_commands
18280
18281 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18282
18283 _ACEOF
18284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18286 ac_cs_version="\\
18287 libXv config.status 1.0.7
18288 configured by $0, generated by GNU Autoconf 2.68,
18289   with options \\"\$ac_cs_config\\"
18290
18291 Copyright (C) 2010 Free Software Foundation, Inc.
18292 This config.status script is free software; the Free Software Foundation
18293 gives unlimited permission to copy, distribute and modify it."
18294
18295 ac_pwd='$ac_pwd'
18296 srcdir='$srcdir'
18297 INSTALL='$INSTALL'
18298 MKDIR_P='$MKDIR_P'
18299 AWK='$AWK'
18300 test -n "\$AWK" || AWK=awk
18301 _ACEOF
18302
18303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18304 # The default lists apply if the user does not specify any file.
18305 ac_need_defaults=:
18306 while test $# != 0
18307 do
18308   case $1 in
18309   --*=?*)
18310     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18311     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18312     ac_shift=:
18313     ;;
18314   --*=)
18315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18316     ac_optarg=
18317     ac_shift=:
18318     ;;
18319   *)
18320     ac_option=$1
18321     ac_optarg=$2
18322     ac_shift=shift
18323     ;;
18324   esac
18325
18326   case $ac_option in
18327   # Handling of the options.
18328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18329     ac_cs_recheck=: ;;
18330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18331     $as_echo "$ac_cs_version"; exit ;;
18332   --config | --confi | --conf | --con | --co | --c )
18333     $as_echo "$ac_cs_config"; exit ;;
18334   --debug | --debu | --deb | --de | --d | -d )
18335     debug=: ;;
18336   --file | --fil | --fi | --f )
18337     $ac_shift
18338     case $ac_optarg in
18339     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18340     '') as_fn_error $? "missing file argument" ;;
18341     esac
18342     as_fn_append CONFIG_FILES " '$ac_optarg'"
18343     ac_need_defaults=false;;
18344   --header | --heade | --head | --hea )
18345     $ac_shift
18346     case $ac_optarg in
18347     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18348     esac
18349     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18350     ac_need_defaults=false;;
18351   --he | --h)
18352     # Conflict between --help and --header
18353     as_fn_error $? "ambiguous option: \`$1'
18354 Try \`$0 --help' for more information.";;
18355   --help | --hel | -h )
18356     $as_echo "$ac_cs_usage"; exit ;;
18357   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18358   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18359     ac_cs_silent=: ;;
18360
18361   # This is an error.
18362   -*) as_fn_error $? "unrecognized option: \`$1'
18363 Try \`$0 --help' for more information." ;;
18364
18365   *) as_fn_append ac_config_targets " $1"
18366      ac_need_defaults=false ;;
18367
18368   esac
18369   shift
18370 done
18371
18372 ac_configure_extra_args=
18373
18374 if $ac_cs_silent; then
18375   exec 6>/dev/null
18376   ac_configure_extra_args="$ac_configure_extra_args --silent"
18377 fi
18378
18379 _ACEOF
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 if \$ac_cs_recheck; then
18382   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18383   shift
18384   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18385   CONFIG_SHELL='$SHELL'
18386   export CONFIG_SHELL
18387   exec "\$@"
18388 fi
18389
18390 _ACEOF
18391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18392 exec 5>>config.log
18393 {
18394   echo
18395   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18396 ## Running $as_me. ##
18397 _ASBOX
18398   $as_echo "$ac_log"
18399 } >&5
18400
18401 _ACEOF
18402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18403 #
18404 # INIT-COMMANDS
18405 #
18406 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18407
18408
18409 # The HP-UX ksh and POSIX shell print the target directory to stdout
18410 # if CDPATH is set.
18411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18412
18413 sed_quote_subst='$sed_quote_subst'
18414 double_quote_subst='$double_quote_subst'
18415 delay_variable_subst='$delay_variable_subst'
18416 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18417 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18418 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18419 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18420 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18421 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18422 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18423 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18424 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18425 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18426 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18427 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18428 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18429 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18430 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18431 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18432 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18433 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18434 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18435 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18436 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18437 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18438 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18439 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18440 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18441 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18442 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18443 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18444 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18445 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18446 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18447 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18448 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18449 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18450 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18451 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18452 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18453 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18454 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18455 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18456 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18457 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18458 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18459 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18460 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18461 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18462 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18463 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18464 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18465 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18466 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18467 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18468 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18469 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18470 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18471 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"`'
18472 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18473 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18474 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18475 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18476 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18477 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18478 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18479 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18480 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18481 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18482 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18483 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18484 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18485 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18486 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18487 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18488 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18489 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18490 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18491 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18492 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18493 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18494 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18495 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18496 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18497 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18498 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18499 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18500 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18501 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18502 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18503 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18504 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18505 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18506 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18507 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18508 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18509 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18510 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18511 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18512 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18513 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18514 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18515 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18516 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18517 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18518 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18519 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18520 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18521 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18522 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18523 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18524 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18525 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18526 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18527 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18528 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18529 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18530 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18531 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18532 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18533 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18534 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18535 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18536 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18537 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18538 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18539 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18540 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18541 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18542 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18543 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18544 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18545 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18546
18547 LTCC='$LTCC'
18548 LTCFLAGS='$LTCFLAGS'
18549 compiler='$compiler_DEFAULT'
18550
18551 # A function that is used when there is no print builtin or printf.
18552 func_fallback_echo ()
18553 {
18554   eval 'cat <<_LTECHO_EOF
18555 \$1
18556 _LTECHO_EOF'
18557 }
18558
18559 # Quote evaled strings.
18560 for var in SHELL \
18561 ECHO \
18562 SED \
18563 GREP \
18564 EGREP \
18565 FGREP \
18566 LD \
18567 NM \
18568 LN_S \
18569 lt_SP2NL \
18570 lt_NL2SP \
18571 reload_flag \
18572 OBJDUMP \
18573 deplibs_check_method \
18574 file_magic_cmd \
18575 file_magic_glob \
18576 want_nocaseglob \
18577 DLLTOOL \
18578 sharedlib_from_linklib_cmd \
18579 AR \
18580 AR_FLAGS \
18581 archiver_list_spec \
18582 STRIP \
18583 RANLIB \
18584 CC \
18585 CFLAGS \
18586 compiler \
18587 lt_cv_sys_global_symbol_pipe \
18588 lt_cv_sys_global_symbol_to_cdecl \
18589 lt_cv_sys_global_symbol_to_c_name_address \
18590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18591 nm_file_list_spec \
18592 lt_prog_compiler_no_builtin_flag \
18593 lt_prog_compiler_pic \
18594 lt_prog_compiler_wl \
18595 lt_prog_compiler_static \
18596 lt_cv_prog_compiler_c_o \
18597 need_locks \
18598 MANIFEST_TOOL \
18599 DSYMUTIL \
18600 NMEDIT \
18601 LIPO \
18602 OTOOL \
18603 OTOOL64 \
18604 shrext_cmds \
18605 export_dynamic_flag_spec \
18606 whole_archive_flag_spec \
18607 compiler_needs_object \
18608 with_gnu_ld \
18609 allow_undefined_flag \
18610 no_undefined_flag \
18611 hardcode_libdir_flag_spec \
18612 hardcode_libdir_flag_spec_ld \
18613 hardcode_libdir_separator \
18614 exclude_expsyms \
18615 include_expsyms \
18616 file_list_spec \
18617 variables_saved_for_relink \
18618 libname_spec \
18619 library_names_spec \
18620 soname_spec \
18621 install_override_mode \
18622 finish_eval \
18623 old_striplib \
18624 striplib; do
18625     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18626     *[\\\\\\\`\\"\\\$]*)
18627       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18628       ;;
18629     *)
18630       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18631       ;;
18632     esac
18633 done
18634
18635 # Double-quote double-evaled strings.
18636 for var in reload_cmds \
18637 old_postinstall_cmds \
18638 old_postuninstall_cmds \
18639 old_archive_cmds \
18640 extract_expsyms_cmds \
18641 old_archive_from_new_cmds \
18642 old_archive_from_expsyms_cmds \
18643 archive_cmds \
18644 archive_expsym_cmds \
18645 module_cmds \
18646 module_expsym_cmds \
18647 export_symbols_cmds \
18648 prelink_cmds \
18649 postlink_cmds \
18650 postinstall_cmds \
18651 postuninstall_cmds \
18652 finish_cmds \
18653 sys_lib_search_path_spec \
18654 sys_lib_dlsearch_path_spec; do
18655     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18656     *[\\\\\\\`\\"\\\$]*)
18657       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18658       ;;
18659     *)
18660       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18661       ;;
18662     esac
18663 done
18664
18665 ac_aux_dir='$ac_aux_dir'
18666 xsi_shell='$xsi_shell'
18667 lt_shell_append='$lt_shell_append'
18668
18669 # See if we are running on zsh, and set the options which allow our
18670 # commands through without removal of \ escapes INIT.
18671 if test -n "\${ZSH_VERSION+set}" ; then
18672    setopt NO_GLOB_SUBST
18673 fi
18674
18675
18676     PACKAGE='$PACKAGE'
18677     VERSION='$VERSION'
18678     TIMESTAMP='$TIMESTAMP'
18679     RM='$RM'
18680     ofile='$ofile'
18681
18682
18683
18684
18685 _ACEOF
18686
18687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18688
18689 # Handling of arguments.
18690 for ac_config_target in $ac_config_targets
18691 do
18692   case $ac_config_target in
18693     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18694     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18695     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18696     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18697     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18698     "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
18699     "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
18700     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18701     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18702     "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;;
18703
18704   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18705   esac
18706 done
18707
18708
18709 # If the user did not use the arguments to specify the items to instantiate,
18710 # then the envvar interface is used.  Set only those that are not.
18711 # We use the long form for the default assignment because of an extremely
18712 # bizarre bug on SunOS 4.1.3.
18713 if $ac_need_defaults; then
18714   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18715   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18716   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18717 fi
18718
18719 # Have a temporary directory for convenience.  Make it in the build tree
18720 # simply because there is no reason against having it here, and in addition,
18721 # creating and moving files from /tmp can sometimes cause problems.
18722 # Hook for its removal unless debugging.
18723 # Note that there is a small window in which the directory will not be cleaned:
18724 # after its creation but before its name has been assigned to `$tmp'.
18725 $debug ||
18726 {
18727   tmp= ac_tmp=
18728   trap 'exit_status=$?
18729   : "${ac_tmp:=$tmp}"
18730   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18731 ' 0
18732   trap 'as_fn_exit 1' 1 2 13 15
18733 }
18734 # Create a (secure) tmp directory for tmp files.
18735
18736 {
18737   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18738   test -d "$tmp"
18739 }  ||
18740 {
18741   tmp=./conf$$-$RANDOM
18742   (umask 077 && mkdir "$tmp")
18743 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18744 ac_tmp=$tmp
18745
18746 # Set up the scripts for CONFIG_FILES section.
18747 # No need to generate them if there are no CONFIG_FILES.
18748 # This happens for instance with `./config.status config.h'.
18749 if test -n "$CONFIG_FILES"; then
18750
18751
18752 ac_cr=`echo X | tr X '\015'`
18753 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18754 # But we know of no other shell where ac_cr would be empty at this
18755 # point, so we can use a bashism as a fallback.
18756 if test "x$ac_cr" = x; then
18757   eval ac_cr=\$\'\\r\'
18758 fi
18759 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18760 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18761   ac_cs_awk_cr='\\r'
18762 else
18763   ac_cs_awk_cr=$ac_cr
18764 fi
18765
18766 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18767 _ACEOF
18768
18769
18770 {
18771   echo "cat >conf$$subs.awk <<_ACEOF" &&
18772   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18773   echo "_ACEOF"
18774 } >conf$$subs.sh ||
18775   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18776 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18777 ac_delim='%!_!# '
18778 for ac_last_try in false false false false false :; do
18779   . ./conf$$subs.sh ||
18780     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18781
18782   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18783   if test $ac_delim_n = $ac_delim_num; then
18784     break
18785   elif $ac_last_try; then
18786     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18787   else
18788     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18789   fi
18790 done
18791 rm -f conf$$subs.sh
18792
18793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18794 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18795 _ACEOF
18796 sed -n '
18797 h
18798 s/^/S["/; s/!.*/"]=/
18799 p
18800 g
18801 s/^[^!]*!//
18802 :repl
18803 t repl
18804 s/'"$ac_delim"'$//
18805 t delim
18806 :nl
18807 h
18808 s/\(.\{148\}\)..*/\1/
18809 t more1
18810 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18811 p
18812 n
18813 b repl
18814 :more1
18815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18816 p
18817 g
18818 s/.\{148\}//
18819 t nl
18820 :delim
18821 h
18822 s/\(.\{148\}\)..*/\1/
18823 t more2
18824 s/["\\]/\\&/g; s/^/"/; s/$/"/
18825 p
18826 b
18827 :more2
18828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18829 p
18830 g
18831 s/.\{148\}//
18832 t delim
18833 ' <conf$$subs.awk | sed '
18834 /^[^""]/{
18835   N
18836   s/\n//
18837 }
18838 ' >>$CONFIG_STATUS || ac_write_fail=1
18839 rm -f conf$$subs.awk
18840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18841 _ACAWK
18842 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18843   for (key in S) S_is_set[key] = 1
18844   FS = "\a"
18845
18846 }
18847 {
18848   line = $ 0
18849   nfields = split(line, field, "@")
18850   substed = 0
18851   len = length(field[1])
18852   for (i = 2; i < nfields; i++) {
18853     key = field[i]
18854     keylen = length(key)
18855     if (S_is_set[key]) {
18856       value = S[key]
18857       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18858       len += length(value) + length(field[++i])
18859       substed = 1
18860     } else
18861       len += 1 + keylen
18862   }
18863
18864   print line
18865 }
18866
18867 _ACAWK
18868 _ACEOF
18869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18870 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18871   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18872 else
18873   cat
18874 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18875   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18876 _ACEOF
18877
18878 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18879 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18880 # trailing colons and then remove the whole line if VPATH becomes empty
18881 # (actually we leave an empty line to preserve line numbers).
18882 if test "x$srcdir" = x.; then
18883   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18884 h
18885 s///
18886 s/^/:/
18887 s/[      ]*$/:/
18888 s/:\$(srcdir):/:/g
18889 s/:\${srcdir}:/:/g
18890 s/:@srcdir@:/:/g
18891 s/^:*//
18892 s/:*$//
18893 x
18894 s/\(=[   ]*\).*/\1/
18895 G
18896 s/\n//
18897 s/^[^=]*=[       ]*$//
18898 }'
18899 fi
18900
18901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18902 fi # test -n "$CONFIG_FILES"
18903
18904 # Set up the scripts for CONFIG_HEADERS section.
18905 # No need to generate them if there are no CONFIG_HEADERS.
18906 # This happens for instance with `./config.status Makefile'.
18907 if test -n "$CONFIG_HEADERS"; then
18908 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18909 BEGIN {
18910 _ACEOF
18911
18912 # Transform confdefs.h into an awk script `defines.awk', embedded as
18913 # here-document in config.status, that substitutes the proper values into
18914 # config.h.in to produce config.h.
18915
18916 # Create a delimiter string that does not exist in confdefs.h, to ease
18917 # handling of long lines.
18918 ac_delim='%!_!# '
18919 for ac_last_try in false false :; do
18920   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18921   if test -z "$ac_tt"; then
18922     break
18923   elif $ac_last_try; then
18924     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18925   else
18926     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18927   fi
18928 done
18929
18930 # For the awk script, D is an array of macro values keyed by name,
18931 # likewise P contains macro parameters if any.  Preserve backslash
18932 # newline sequences.
18933
18934 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18935 sed -n '
18936 s/.\{148\}/&'"$ac_delim"'/g
18937 t rset
18938 :rset
18939 s/^[     ]*#[    ]*define[       ][      ]*/ /
18940 t def
18941 d
18942 :def
18943 s/\\$//
18944 t bsnl
18945 s/["\\]/\\&/g
18946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18947 D["\1"]=" \3"/p
18948 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18949 d
18950 :bsnl
18951 s/["\\]/\\&/g
18952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18953 D["\1"]=" \3\\\\\\n"\\/p
18954 t cont
18955 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18956 t cont
18957 d
18958 :cont
18959 n
18960 s/.\{148\}/&'"$ac_delim"'/g
18961 t clear
18962 :clear
18963 s/\\$//
18964 t bsnlc
18965 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18966 d
18967 :bsnlc
18968 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18969 b cont
18970 ' <confdefs.h | sed '
18971 s/'"$ac_delim"'/"\\\
18972 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18973
18974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18975   for (key in D) D_is_set[key] = 1
18976   FS = "\a"
18977 }
18978 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18979   line = \$ 0
18980   split(line, arg, " ")
18981   if (arg[1] == "#") {
18982     defundef = arg[2]
18983     mac1 = arg[3]
18984   } else {
18985     defundef = substr(arg[1], 2)
18986     mac1 = arg[2]
18987   }
18988   split(mac1, mac2, "(") #)
18989   macro = mac2[1]
18990   prefix = substr(line, 1, index(line, defundef) - 1)
18991   if (D_is_set[macro]) {
18992     # Preserve the white space surrounding the "#".
18993     print prefix "define", macro P[macro] D[macro]
18994     next
18995   } else {
18996     # Replace #undef with comments.  This is necessary, for example,
18997     # in the case of _POSIX_SOURCE, which is predefined and required
18998     # on some systems where configure will not decide to define it.
18999     if (defundef == "undef") {
19000       print "/*", prefix defundef, macro, "*/"
19001       next
19002     }
19003   }
19004 }
19005 { print }
19006 _ACAWK
19007 _ACEOF
19008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19009   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19010 fi # test -n "$CONFIG_HEADERS"
19011
19012
19013 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19014 shift
19015 for ac_tag
19016 do
19017   case $ac_tag in
19018   :[FHLC]) ac_mode=$ac_tag; continue;;
19019   esac
19020   case $ac_mode$ac_tag in
19021   :[FHL]*:*);;
19022   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19023   :[FH]-) ac_tag=-:-;;
19024   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19025   esac
19026   ac_save_IFS=$IFS
19027   IFS=:
19028   set x $ac_tag
19029   IFS=$ac_save_IFS
19030   shift
19031   ac_file=$1
19032   shift
19033
19034   case $ac_mode in
19035   :L) ac_source=$1;;
19036   :[FH])
19037     ac_file_inputs=
19038     for ac_f
19039     do
19040       case $ac_f in
19041       -) ac_f="$ac_tmp/stdin";;
19042       *) # Look for the file first in the build tree, then in the source tree
19043          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19044          # because $ac_f cannot contain `:'.
19045          test -f "$ac_f" ||
19046            case $ac_f in
19047            [\\/$]*) false;;
19048            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19049            esac ||
19050            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19051       esac
19052       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19053       as_fn_append ac_file_inputs " '$ac_f'"
19054     done
19055
19056     # Let's still pretend it is `configure' which instantiates (i.e., don't
19057     # use $as_me), people would be surprised to read:
19058     #    /* config.h.  Generated by config.status.  */
19059     configure_input='Generated from '`
19060           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19061         `' by configure.'
19062     if test x"$ac_file" != x-; then
19063       configure_input="$ac_file.  $configure_input"
19064       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19065 $as_echo "$as_me: creating $ac_file" >&6;}
19066     fi
19067     # Neutralize special characters interpreted by sed in replacement strings.
19068     case $configure_input in #(
19069     *\&* | *\|* | *\\* )
19070        ac_sed_conf_input=`$as_echo "$configure_input" |
19071        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19072     *) ac_sed_conf_input=$configure_input;;
19073     esac
19074
19075     case $ac_tag in
19076     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19077       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19078     esac
19079     ;;
19080   esac
19081
19082   ac_dir=`$as_dirname -- "$ac_file" ||
19083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19084          X"$ac_file" : 'X\(//\)[^/]' \| \
19085          X"$ac_file" : 'X\(//\)$' \| \
19086          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19087 $as_echo X"$ac_file" |
19088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19089             s//\1/
19090             q
19091           }
19092           /^X\(\/\/\)[^/].*/{
19093             s//\1/
19094             q
19095           }
19096           /^X\(\/\/\)$/{
19097             s//\1/
19098             q
19099           }
19100           /^X\(\/\).*/{
19101             s//\1/
19102             q
19103           }
19104           s/.*/./; q'`
19105   as_dir="$ac_dir"; as_fn_mkdir_p
19106   ac_builddir=.
19107
19108 case "$ac_dir" in
19109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19110 *)
19111   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19112   # A ".." for each directory in $ac_dir_suffix.
19113   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19114   case $ac_top_builddir_sub in
19115   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19116   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19117   esac ;;
19118 esac
19119 ac_abs_top_builddir=$ac_pwd
19120 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19121 # for backward compatibility:
19122 ac_top_builddir=$ac_top_build_prefix
19123
19124 case $srcdir in
19125   .)  # We are building in place.
19126     ac_srcdir=.
19127     ac_top_srcdir=$ac_top_builddir_sub
19128     ac_abs_top_srcdir=$ac_pwd ;;
19129   [\\/]* | ?:[\\/]* )  # Absolute name.
19130     ac_srcdir=$srcdir$ac_dir_suffix;
19131     ac_top_srcdir=$srcdir
19132     ac_abs_top_srcdir=$srcdir ;;
19133   *) # Relative name.
19134     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19135     ac_top_srcdir=$ac_top_build_prefix$srcdir
19136     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19137 esac
19138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19139
19140
19141   case $ac_mode in
19142   :F)
19143   #
19144   # CONFIG_FILE
19145   #
19146
19147   case $INSTALL in
19148   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19149   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19150   esac
19151   ac_MKDIR_P=$MKDIR_P
19152   case $MKDIR_P in
19153   [\\/$]* | ?:[\\/]* ) ;;
19154   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19155   esac
19156 _ACEOF
19157
19158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19159 # If the template does not know about datarootdir, expand it.
19160 # FIXME: This hack should be removed a few years after 2.60.
19161 ac_datarootdir_hack=; ac_datarootdir_seen=
19162 ac_sed_dataroot='
19163 /datarootdir/ {
19164   p
19165   q
19166 }
19167 /@datadir@/p
19168 /@docdir@/p
19169 /@infodir@/p
19170 /@localedir@/p
19171 /@mandir@/p'
19172 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19173 *datarootdir*) ac_datarootdir_seen=yes;;
19174 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19175   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19176 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19177 _ACEOF
19178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19179   ac_datarootdir_hack='
19180   s&@datadir@&$datadir&g
19181   s&@docdir@&$docdir&g
19182   s&@infodir@&$infodir&g
19183   s&@localedir@&$localedir&g
19184   s&@mandir@&$mandir&g
19185   s&\\\${datarootdir}&$datarootdir&g' ;;
19186 esac
19187 _ACEOF
19188
19189 # Neutralize VPATH when `$srcdir' = `.'.
19190 # Shell code in configure.ac might set extrasub.
19191 # FIXME: do we really want to maintain this feature?
19192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19193 ac_sed_extra="$ac_vpsub
19194 $extrasub
19195 _ACEOF
19196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19197 :t
19198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19199 s|@configure_input@|$ac_sed_conf_input|;t t
19200 s&@top_builddir@&$ac_top_builddir_sub&;t t
19201 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19202 s&@srcdir@&$ac_srcdir&;t t
19203 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19204 s&@top_srcdir@&$ac_top_srcdir&;t t
19205 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19206 s&@builddir@&$ac_builddir&;t t
19207 s&@abs_builddir@&$ac_abs_builddir&;t t
19208 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19209 s&@INSTALL@&$ac_INSTALL&;t t
19210 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19211 $ac_datarootdir_hack
19212 "
19213 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19214   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19215
19216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19217   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19218   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19219       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19220   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19221 which seems to be undefined.  Please make sure it is defined" >&5
19222 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19223 which seems to be undefined.  Please make sure it is defined" >&2;}
19224
19225   rm -f "$ac_tmp/stdin"
19226   case $ac_file in
19227   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19228   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19229   esac \
19230   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19231  ;;
19232   :H)
19233   #
19234   # CONFIG_HEADER
19235   #
19236   if test x"$ac_file" != x-; then
19237     {
19238       $as_echo "/* $configure_input  */" \
19239       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19240     } >"$ac_tmp/config.h" \
19241       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19242     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19243       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19244 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19245     else
19246       rm -f "$ac_file"
19247       mv "$ac_tmp/config.h" "$ac_file" \
19248         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19249     fi
19250   else
19251     $as_echo "/* $configure_input  */" \
19252       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19253       || as_fn_error $? "could not create -" "$LINENO" 5
19254   fi
19255 # Compute "$ac_file"'s index in $config_headers.
19256 _am_arg="$ac_file"
19257 _am_stamp_count=1
19258 for _am_header in $config_headers :; do
19259   case $_am_header in
19260     $_am_arg | $_am_arg:* )
19261       break ;;
19262     * )
19263       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19264   esac
19265 done
19266 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19267 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19268          X"$_am_arg" : 'X\(//\)[^/]' \| \
19269          X"$_am_arg" : 'X\(//\)$' \| \
19270          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19271 $as_echo X"$_am_arg" |
19272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19273             s//\1/
19274             q
19275           }
19276           /^X\(\/\/\)[^/].*/{
19277             s//\1/
19278             q
19279           }
19280           /^X\(\/\/\)$/{
19281             s//\1/
19282             q
19283           }
19284           /^X\(\/\).*/{
19285             s//\1/
19286             q
19287           }
19288           s/.*/./; q'`/stamp-h$_am_stamp_count
19289  ;;
19290
19291   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19292 $as_echo "$as_me: executing $ac_file commands" >&6;}
19293  ;;
19294   esac
19295
19296
19297   case $ac_file$ac_mode in
19298     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19299   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19300   # are listed without --file.  Let's play safe and only enable the eval
19301   # if we detect the quoting.
19302   case $CONFIG_FILES in
19303   *\'*) eval set x "$CONFIG_FILES" ;;
19304   *)   set x $CONFIG_FILES ;;
19305   esac
19306   shift
19307   for mf
19308   do
19309     # Strip MF so we end up with the name of the file.
19310     mf=`echo "$mf" | sed -e 's/:.*$//'`
19311     # Check whether this is an Automake generated Makefile or not.
19312     # We used to match only the files named `Makefile.in', but
19313     # some people rename them; so instead we look at the file content.
19314     # Grep'ing the first line is not enough: some people post-process
19315     # each Makefile.in and add a new line on top of each file to say so.
19316     # Grep'ing the whole file is not good either: AIX grep has a line
19317     # limit of 2048, but all sed's we know have understand at least 4000.
19318     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19319       dirpart=`$as_dirname -- "$mf" ||
19320 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19321          X"$mf" : 'X\(//\)[^/]' \| \
19322          X"$mf" : 'X\(//\)$' \| \
19323          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19324 $as_echo X"$mf" |
19325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19326             s//\1/
19327             q
19328           }
19329           /^X\(\/\/\)[^/].*/{
19330             s//\1/
19331             q
19332           }
19333           /^X\(\/\/\)$/{
19334             s//\1/
19335             q
19336           }
19337           /^X\(\/\).*/{
19338             s//\1/
19339             q
19340           }
19341           s/.*/./; q'`
19342     else
19343       continue
19344     fi
19345     # Extract the definition of DEPDIR, am__include, and am__quote
19346     # from the Makefile without running `make'.
19347     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19348     test -z "$DEPDIR" && continue
19349     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19350     test -z "am__include" && continue
19351     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19352     # When using ansi2knr, U may be empty or an underscore; expand it
19353     U=`sed -n 's/^U = //p' < "$mf"`
19354     # Find all dependency output files, they are included files with
19355     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19356     # simplest approach to changing $(DEPDIR) to its actual value in the
19357     # expansion.
19358     for file in `sed -n "
19359       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19360          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19361       # Make sure the directory exists.
19362       test -f "$dirpart/$file" && continue
19363       fdir=`$as_dirname -- "$file" ||
19364 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19365          X"$file" : 'X\(//\)[^/]' \| \
19366          X"$file" : 'X\(//\)$' \| \
19367          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19368 $as_echo X"$file" |
19369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19370             s//\1/
19371             q
19372           }
19373           /^X\(\/\/\)[^/].*/{
19374             s//\1/
19375             q
19376           }
19377           /^X\(\/\/\)$/{
19378             s//\1/
19379             q
19380           }
19381           /^X\(\/\).*/{
19382             s//\1/
19383             q
19384           }
19385           s/.*/./; q'`
19386       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19387       # echo "creating $dirpart/$file"
19388       echo '# dummy' > "$dirpart/$file"
19389     done
19390   done
19391 }
19392  ;;
19393     "libtool":C)
19394
19395     # See if we are running on zsh, and set the options which allow our
19396     # commands through without removal of \ escapes.
19397     if test -n "${ZSH_VERSION+set}" ; then
19398       setopt NO_GLOB_SUBST
19399     fi
19400
19401     cfgfile="${ofile}T"
19402     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19403     $RM "$cfgfile"
19404
19405     cat <<_LT_EOF >> "$cfgfile"
19406 #! $SHELL
19407
19408 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19409 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19410 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19411 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19412 #
19413 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19414 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19415 #                 Inc.
19416 #   Written by Gordon Matzigkeit, 1996
19417 #
19418 #   This file is part of GNU Libtool.
19419 #
19420 # GNU Libtool is free software; you can redistribute it and/or
19421 # modify it under the terms of the GNU General Public License as
19422 # published by the Free Software Foundation; either version 2 of
19423 # the License, or (at your option) any later version.
19424 #
19425 # As a special exception to the GNU General Public License,
19426 # if you distribute this file as part of a program or library that
19427 # is built using GNU Libtool, you may include this file under the
19428 # same distribution terms that you use for the rest of that program.
19429 #
19430 # GNU Libtool is distributed in the hope that it will be useful,
19431 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19432 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19433 # GNU General Public License for more details.
19434 #
19435 # You should have received a copy of the GNU General Public License
19436 # along with GNU Libtool; see the file COPYING.  If not, a copy
19437 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19438 # obtained by writing to the Free Software Foundation, Inc.,
19439 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19440
19441
19442 # The names of the tagged configurations supported by this script.
19443 available_tags=""
19444
19445 # ### BEGIN LIBTOOL CONFIG
19446
19447 # Which release of libtool.m4 was used?
19448 macro_version=$macro_version
19449 macro_revision=$macro_revision
19450
19451 # Whether or not to build shared libraries.
19452 build_libtool_libs=$enable_shared
19453
19454 # Whether or not to build static libraries.
19455 build_old_libs=$enable_static
19456
19457 # What type of objects to build.
19458 pic_mode=$pic_mode
19459
19460 # Whether or not to optimize for fast installation.
19461 fast_install=$enable_fast_install
19462
19463 # Shell to use when invoking shell scripts.
19464 SHELL=$lt_SHELL
19465
19466 # An echo program that protects backslashes.
19467 ECHO=$lt_ECHO
19468
19469 # The host system.
19470 host_alias=$host_alias
19471 host=$host
19472 host_os=$host_os
19473
19474 # The build system.
19475 build_alias=$build_alias
19476 build=$build
19477 build_os=$build_os
19478
19479 # A sed program that does not truncate output.
19480 SED=$lt_SED
19481
19482 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19483 Xsed="\$SED -e 1s/^X//"
19484
19485 # A grep program that handles long lines.
19486 GREP=$lt_GREP
19487
19488 # An ERE matcher.
19489 EGREP=$lt_EGREP
19490
19491 # A literal string matcher.
19492 FGREP=$lt_FGREP
19493
19494 # A BSD- or MS-compatible name lister.
19495 NM=$lt_NM
19496
19497 # Whether we need soft or hard links.
19498 LN_S=$lt_LN_S
19499
19500 # What is the maximum length of a command?
19501 max_cmd_len=$max_cmd_len
19502
19503 # Object file suffix (normally "o").
19504 objext=$ac_objext
19505
19506 # Executable file suffix (normally "").
19507 exeext=$exeext
19508
19509 # whether the shell understands "unset".
19510 lt_unset=$lt_unset
19511
19512 # turn spaces into newlines.
19513 SP2NL=$lt_lt_SP2NL
19514
19515 # turn newlines into spaces.
19516 NL2SP=$lt_lt_NL2SP
19517
19518 # convert \$build file names to \$host format.
19519 to_host_file_cmd=$lt_cv_to_host_file_cmd
19520
19521 # convert \$build files to toolchain format.
19522 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19523
19524 # An object symbol dumper.
19525 OBJDUMP=$lt_OBJDUMP
19526
19527 # Method to check whether dependent libraries are shared objects.
19528 deplibs_check_method=$lt_deplibs_check_method
19529
19530 # Command to use when deplibs_check_method = "file_magic".
19531 file_magic_cmd=$lt_file_magic_cmd
19532
19533 # How to find potential files when deplibs_check_method = "file_magic".
19534 file_magic_glob=$lt_file_magic_glob
19535
19536 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19537 want_nocaseglob=$lt_want_nocaseglob
19538
19539 # DLL creation program.
19540 DLLTOOL=$lt_DLLTOOL
19541
19542 # Command to associate shared and link libraries.
19543 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19544
19545 # The archiver.
19546 AR=$lt_AR
19547
19548 # Flags to create an archive.
19549 AR_FLAGS=$lt_AR_FLAGS
19550
19551 # How to feed a file listing to the archiver.
19552 archiver_list_spec=$lt_archiver_list_spec
19553
19554 # A symbol stripping program.
19555 STRIP=$lt_STRIP
19556
19557 # Commands used to install an old-style archive.
19558 RANLIB=$lt_RANLIB
19559 old_postinstall_cmds=$lt_old_postinstall_cmds
19560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19561
19562 # Whether to use a lock for old archive extraction.
19563 lock_old_archive_extraction=$lock_old_archive_extraction
19564
19565 # A C compiler.
19566 LTCC=$lt_CC
19567
19568 # LTCC compiler flags.
19569 LTCFLAGS=$lt_CFLAGS
19570
19571 # Take the output of nm and produce a listing of raw symbols and C names.
19572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19573
19574 # Transform the output of nm in a proper C declaration.
19575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19576
19577 # Transform the output of nm in a C name address pair.
19578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19579
19580 # Transform the output of nm in a C name address pair when lib prefix is needed.
19581 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19582
19583 # Specify filename containing input files for \$NM.
19584 nm_file_list_spec=$lt_nm_file_list_spec
19585
19586 # The root where to search for dependent libraries,and in which our libraries should be installed.
19587 lt_sysroot=$lt_sysroot
19588
19589 # The name of the directory that contains temporary libtool files.
19590 objdir=$objdir
19591
19592 # Used to examine libraries when file_magic_cmd begins with "file".
19593 MAGIC_CMD=$MAGIC_CMD
19594
19595 # Must we lock files when doing compilation?
19596 need_locks=$lt_need_locks
19597
19598 # Manifest tool.
19599 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19600
19601 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19602 DSYMUTIL=$lt_DSYMUTIL
19603
19604 # Tool to change global to local symbols on Mac OS X.
19605 NMEDIT=$lt_NMEDIT
19606
19607 # Tool to manipulate fat objects and archives on Mac OS X.
19608 LIPO=$lt_LIPO
19609
19610 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19611 OTOOL=$lt_OTOOL
19612
19613 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19614 OTOOL64=$lt_OTOOL64
19615
19616 # Old archive suffix (normally "a").
19617 libext=$libext
19618
19619 # Shared library suffix (normally ".so").
19620 shrext_cmds=$lt_shrext_cmds
19621
19622 # The commands to extract the exported symbol list from a shared archive.
19623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19624
19625 # Variables whose values should be saved in libtool wrapper scripts and
19626 # restored at link time.
19627 variables_saved_for_relink=$lt_variables_saved_for_relink
19628
19629 # Do we need the "lib" prefix for modules?
19630 need_lib_prefix=$need_lib_prefix
19631
19632 # Do we need a version for libraries?
19633 need_version=$need_version
19634
19635 # Library versioning type.
19636 version_type=$version_type
19637
19638 # Shared library runtime path variable.
19639 runpath_var=$runpath_var
19640
19641 # Shared library path variable.
19642 shlibpath_var=$shlibpath_var
19643
19644 # Is shlibpath searched before the hard-coded library search path?
19645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19646
19647 # Format of library name prefix.
19648 libname_spec=$lt_libname_spec
19649
19650 # List of archive names.  First name is the real one, the rest are links.
19651 # The last name is the one that the linker finds with -lNAME
19652 library_names_spec=$lt_library_names_spec
19653
19654 # The coded name of the library, if different from the real name.
19655 soname_spec=$lt_soname_spec
19656
19657 # Permission mode override for installation of shared libraries.
19658 install_override_mode=$lt_install_override_mode
19659
19660 # Command to use after installation of a shared archive.
19661 postinstall_cmds=$lt_postinstall_cmds
19662
19663 # Command to use after uninstallation of a shared archive.
19664 postuninstall_cmds=$lt_postuninstall_cmds
19665
19666 # Commands used to finish a libtool library installation in a directory.
19667 finish_cmds=$lt_finish_cmds
19668
19669 # As "finish_cmds", except a single script fragment to be evaled but
19670 # not shown.
19671 finish_eval=$lt_finish_eval
19672
19673 # Whether we should hardcode library paths into libraries.
19674 hardcode_into_libs=$hardcode_into_libs
19675
19676 # Compile-time system search path for libraries.
19677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19678
19679 # Run-time system search path for libraries.
19680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19681
19682 # Whether dlopen is supported.
19683 dlopen_support=$enable_dlopen
19684
19685 # Whether dlopen of programs is supported.
19686 dlopen_self=$enable_dlopen_self
19687
19688 # Whether dlopen of statically linked programs is supported.
19689 dlopen_self_static=$enable_dlopen_self_static
19690
19691 # Commands to strip libraries.
19692 old_striplib=$lt_old_striplib
19693 striplib=$lt_striplib
19694
19695
19696 # The linker used to build libraries.
19697 LD=$lt_LD
19698
19699 # How to create reloadable object files.
19700 reload_flag=$lt_reload_flag
19701 reload_cmds=$lt_reload_cmds
19702
19703 # Commands used to build an old-style archive.
19704 old_archive_cmds=$lt_old_archive_cmds
19705
19706 # A language specific compiler.
19707 CC=$lt_compiler
19708
19709 # Is the compiler the GNU compiler?
19710 with_gcc=$GCC
19711
19712 # Compiler flag to turn off builtin functions.
19713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19714
19715 # Additional compiler flags for building library objects.
19716 pic_flag=$lt_lt_prog_compiler_pic
19717
19718 # How to pass a linker flag through the compiler.
19719 wl=$lt_lt_prog_compiler_wl
19720
19721 # Compiler flag to prevent dynamic linking.
19722 link_static_flag=$lt_lt_prog_compiler_static
19723
19724 # Does compiler simultaneously support -c and -o options?
19725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19726
19727 # Whether or not to add -lc for building shared libraries.
19728 build_libtool_need_lc=$archive_cmds_need_lc
19729
19730 # Whether or not to disallow shared libs when runtime libs are static.
19731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19732
19733 # Compiler flag to allow reflexive dlopens.
19734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19735
19736 # Compiler flag to generate shared objects directly from archives.
19737 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19738
19739 # Whether the compiler copes with passing no objects directly.
19740 compiler_needs_object=$lt_compiler_needs_object
19741
19742 # Create an old-style archive from a shared archive.
19743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19744
19745 # Create a temporary old-style archive to link instead of a shared archive.
19746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19747
19748 # Commands used to build a shared archive.
19749 archive_cmds=$lt_archive_cmds
19750 archive_expsym_cmds=$lt_archive_expsym_cmds
19751
19752 # Commands used to build a loadable module if different from building
19753 # a shared archive.
19754 module_cmds=$lt_module_cmds
19755 module_expsym_cmds=$lt_module_expsym_cmds
19756
19757 # Whether we are building with GNU ld or not.
19758 with_gnu_ld=$lt_with_gnu_ld
19759
19760 # Flag that allows shared libraries with undefined symbols to be built.
19761 allow_undefined_flag=$lt_allow_undefined_flag
19762
19763 # Flag that enforces no undefined symbols.
19764 no_undefined_flag=$lt_no_undefined_flag
19765
19766 # Flag to hardcode \$libdir into a binary during linking.
19767 # This must work even if \$libdir does not exist
19768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19769
19770 # If ld is used when linking, flag to hardcode \$libdir into a binary
19771 # during linking.  This must work even if \$libdir does not exist.
19772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19773
19774 # Whether we need a single "-rpath" flag with a separated argument.
19775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19776
19777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19778 # DIR into the resulting binary.
19779 hardcode_direct=$hardcode_direct
19780
19781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19782 # DIR into the resulting binary and the resulting library dependency is
19783 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19784 # library is relocated.
19785 hardcode_direct_absolute=$hardcode_direct_absolute
19786
19787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19788 # into the resulting binary.
19789 hardcode_minus_L=$hardcode_minus_L
19790
19791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19792 # into the resulting binary.
19793 hardcode_shlibpath_var=$hardcode_shlibpath_var
19794
19795 # Set to "yes" if building a shared library automatically hardcodes DIR
19796 # into the library and all subsequent libraries and executables linked
19797 # against it.
19798 hardcode_automatic=$hardcode_automatic
19799
19800 # Set to yes if linker adds runtime paths of dependent libraries
19801 # to runtime path list.
19802 inherit_rpath=$inherit_rpath
19803
19804 # Whether libtool must link a program against all its dependency libraries.
19805 link_all_deplibs=$link_all_deplibs
19806
19807 # Set to "yes" if exported symbols are required.
19808 always_export_symbols=$always_export_symbols
19809
19810 # The commands to list exported symbols.
19811 export_symbols_cmds=$lt_export_symbols_cmds
19812
19813 # Symbols that should not be listed in the preloaded symbols.
19814 exclude_expsyms=$lt_exclude_expsyms
19815
19816 # Symbols that must always be exported.
19817 include_expsyms=$lt_include_expsyms
19818
19819 # Commands necessary for linking programs (against libraries) with templates.
19820 prelink_cmds=$lt_prelink_cmds
19821
19822 # Commands necessary for finishing linking programs.
19823 postlink_cmds=$lt_postlink_cmds
19824
19825 # Specify filename containing input files.
19826 file_list_spec=$lt_file_list_spec
19827
19828 # How to hardcode a shared library path into an executable.
19829 hardcode_action=$hardcode_action
19830
19831 # ### END LIBTOOL CONFIG
19832
19833 _LT_EOF
19834
19835   case $host_os in
19836   aix3*)
19837     cat <<\_LT_EOF >> "$cfgfile"
19838 # AIX sometimes has problems with the GCC collect2 program.  For some
19839 # reason, if we set the COLLECT_NAMES environment variable, the problems
19840 # vanish in a puff of smoke.
19841 if test "X${COLLECT_NAMES+set}" != Xset; then
19842   COLLECT_NAMES=
19843   export COLLECT_NAMES
19844 fi
19845 _LT_EOF
19846     ;;
19847   esac
19848
19849
19850 ltmain="$ac_aux_dir/ltmain.sh"
19851
19852
19853   # We use sed instead of cat because bash on DJGPP gets confused if
19854   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19855   # text mode, it properly converts lines to CR/LF.  This bash problem
19856   # is reportedly fixed, but why not run on old versions too?
19857   sed '$q' "$ltmain" >> "$cfgfile" \
19858      || (rm -f "$cfgfile"; exit 1)
19859
19860   if test x"$xsi_shell" = xyes; then
19861   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19862 func_dirname ()\
19863 {\
19864 \    case ${1} in\
19865 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19866 \      *  ) func_dirname_result="${3}" ;;\
19867 \    esac\
19868 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19869   && mv -f "$cfgfile.tmp" "$cfgfile" \
19870     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19871 test 0 -eq $? || _lt_function_replace_fail=:
19872
19873
19874   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19875 func_basename ()\
19876 {\
19877 \    func_basename_result="${1##*/}"\
19878 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19879   && mv -f "$cfgfile.tmp" "$cfgfile" \
19880     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19881 test 0 -eq $? || _lt_function_replace_fail=:
19882
19883
19884   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19885 func_dirname_and_basename ()\
19886 {\
19887 \    case ${1} in\
19888 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19889 \      *  ) func_dirname_result="${3}" ;;\
19890 \    esac\
19891 \    func_basename_result="${1##*/}"\
19892 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19893   && mv -f "$cfgfile.tmp" "$cfgfile" \
19894     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19895 test 0 -eq $? || _lt_function_replace_fail=:
19896
19897
19898   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19899 func_stripname ()\
19900 {\
19901 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19902 \    # positional parameters, so assign one to ordinary parameter first.\
19903 \    func_stripname_result=${3}\
19904 \    func_stripname_result=${func_stripname_result#"${1}"}\
19905 \    func_stripname_result=${func_stripname_result%"${2}"}\
19906 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19907   && mv -f "$cfgfile.tmp" "$cfgfile" \
19908     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19909 test 0 -eq $? || _lt_function_replace_fail=:
19910
19911
19912   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19913 func_split_long_opt ()\
19914 {\
19915 \    func_split_long_opt_name=${1%%=*}\
19916 \    func_split_long_opt_arg=${1#*=}\
19917 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19918   && mv -f "$cfgfile.tmp" "$cfgfile" \
19919     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19920 test 0 -eq $? || _lt_function_replace_fail=:
19921
19922
19923   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19924 func_split_short_opt ()\
19925 {\
19926 \    func_split_short_opt_arg=${1#??}\
19927 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19928 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19929   && mv -f "$cfgfile.tmp" "$cfgfile" \
19930     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19931 test 0 -eq $? || _lt_function_replace_fail=:
19932
19933
19934   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19935 func_lo2o ()\
19936 {\
19937 \    case ${1} in\
19938 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19939 \      *)    func_lo2o_result=${1} ;;\
19940 \    esac\
19941 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19942   && mv -f "$cfgfile.tmp" "$cfgfile" \
19943     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19944 test 0 -eq $? || _lt_function_replace_fail=:
19945
19946
19947   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19948 func_xform ()\
19949 {\
19950     func_xform_result=${1%.*}.lo\
19951 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19952   && mv -f "$cfgfile.tmp" "$cfgfile" \
19953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19954 test 0 -eq $? || _lt_function_replace_fail=:
19955
19956
19957   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19958 func_arith ()\
19959 {\
19960     func_arith_result=$(( $* ))\
19961 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19962   && mv -f "$cfgfile.tmp" "$cfgfile" \
19963     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19964 test 0 -eq $? || _lt_function_replace_fail=:
19965
19966
19967   sed -e '/^func_len ()$/,/^} # func_len /c\
19968 func_len ()\
19969 {\
19970     func_len_result=${#1}\
19971 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19972   && mv -f "$cfgfile.tmp" "$cfgfile" \
19973     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19974 test 0 -eq $? || _lt_function_replace_fail=:
19975
19976 fi
19977
19978 if test x"$lt_shell_append" = xyes; then
19979   sed -e '/^func_append ()$/,/^} # func_append /c\
19980 func_append ()\
19981 {\
19982     eval "${1}+=\\${2}"\
19983 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19984   && mv -f "$cfgfile.tmp" "$cfgfile" \
19985     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19986 test 0 -eq $? || _lt_function_replace_fail=:
19987
19988
19989   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19990 func_append_quoted ()\
19991 {\
19992 \    func_quote_for_eval "${2}"\
19993 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19994 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19995   && mv -f "$cfgfile.tmp" "$cfgfile" \
19996     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19997 test 0 -eq $? || _lt_function_replace_fail=:
19998
19999
20000   # Save a `func_append' function call where possible by direct use of '+='
20001   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20002     && mv -f "$cfgfile.tmp" "$cfgfile" \
20003       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20004   test 0 -eq $? || _lt_function_replace_fail=:
20005 else
20006   # Save a `func_append' function call even when '+=' is not available
20007   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20008     && mv -f "$cfgfile.tmp" "$cfgfile" \
20009       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20010   test 0 -eq $? || _lt_function_replace_fail=:
20011 fi
20012
20013 if test x"$_lt_function_replace_fail" = x":"; then
20014   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20015 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20016 fi
20017
20018
20019    mv -f "$cfgfile" "$ofile" ||
20020     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20021   chmod +x "$ofile"
20022
20023  ;;
20024
20025   esac
20026 done # for ac_tag
20027
20028
20029 as_fn_exit 0
20030 _ACEOF
20031 ac_clean_files=$ac_clean_files_save
20032
20033 test $ac_write_fail = 0 ||
20034   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20035
20036
20037 # configure is writing to config.log, and then calls config.status.
20038 # config.status does its own redirection, appending to config.log.
20039 # Unfortunately, on DOS this fails, as config.log is still kept open
20040 # by configure, so config.status won't be able to write to it; its
20041 # output is simply discarded.  So we exec the FD to /dev/null,
20042 # effectively closing config.log, so it can be properly (re)opened and
20043 # appended to by config.status.  When coming back to configure, we
20044 # need to make the FD available again.
20045 if test "$no_create" != yes; then
20046   ac_cs_success=:
20047   ac_config_status_args=
20048   test "$silent" = yes &&
20049     ac_config_status_args="$ac_config_status_args --quiet"
20050   exec 5>/dev/null
20051   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20052   exec 5>>config.log
20053   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20054   # would make configure fail if this is the last instruction.
20055   $ac_cs_success || as_fn_exit 1
20056 fi
20057 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20058   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20059 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20060 fi
20061